@lntvow/eslint-config 9.4.3 → 9.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -80,8 +80,7 @@ function renameRules(rules, map) {
80
80
  return Object.fromEntries(
81
81
  Object.entries(rules).map(([key, value]) => {
82
82
  for (const [from, to] of Object.entries(map)) {
83
- if (key.startsWith(`${from}/`))
84
- return [to + key.slice(from.length), value];
83
+ if (key.startsWith(`${from}/`)) return [to + key.slice(from.length), value];
85
84
  }
86
85
  return [key, value];
87
86
  })
@@ -572,6 +571,19 @@ async function stylistic(options = {}) {
572
571
  { blankLine: "always", prev: "*", next: ["interface", "type"] },
573
572
  { blankLine: "never", prev: "function-overload", next: "function" }
574
573
  ],
574
+ "style/lines-around-comment": [
575
+ 2,
576
+ {
577
+ beforeBlockComment: true,
578
+ allowBlockStart: true,
579
+ allowObjectStart: true,
580
+ allowInterfaceStart: true,
581
+ allowTypeStart: true,
582
+ allowArrayStart: true,
583
+ allowClassStart: true,
584
+ allowModuleStart: true
585
+ }
586
+ ],
575
587
  // overrides
576
588
  ...overrides
577
589
  }
package/dist/index.mjs CHANGED
@@ -3,8 +3,7 @@ function renameRules(rules, map) {
3
3
  return Object.fromEntries(
4
4
  Object.entries(rules).map(([key, value]) => {
5
5
  for (const [from, to] of Object.entries(map)) {
6
- if (key.startsWith(`${from}/`))
7
- return [to + key.slice(from.length), value];
6
+ if (key.startsWith(`${from}/`)) return [to + key.slice(from.length), value];
8
7
  }
9
8
  return [key, value];
10
9
  })
@@ -492,6 +491,19 @@ async function stylistic(options = {}) {
492
491
  { blankLine: "always", prev: "*", next: ["interface", "type"] },
493
492
  { blankLine: "never", prev: "function-overload", next: "function" }
494
493
  ],
494
+ "style/lines-around-comment": [
495
+ 2,
496
+ {
497
+ beforeBlockComment: true,
498
+ allowBlockStart: true,
499
+ allowObjectStart: true,
500
+ allowInterfaceStart: true,
501
+ allowTypeStart: true,
502
+ allowArrayStart: true,
503
+ allowClassStart: true,
504
+ allowModuleStart: true
505
+ }
506
+ ],
495
507
  // overrides
496
508
  ...overrides
497
509
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lntvow/eslint-config",
3
- "version": "9.4.3",
3
+ "version": "9.5.0",
4
4
  "author": "lntvow",
5
5
  "description": "eslint-config",
6
6
  "type": "module",
@@ -24,37 +24,37 @@
24
24
  "module": "./dist/index.mjs",
25
25
  "types": "./dist/index.d.ts",
26
26
  "devDependencies": {
27
- "@lntvow/dev": "^1.1.0",
27
+ "@lntvow/dev": "^1.1.5",
28
28
  "@types/eslint": "^8.56.10",
29
- "@types/node": "^20.12.12",
29
+ "@types/node": "^20.14.8",
30
30
  "axios": "^1.7.2",
31
31
  "cheerio": "1.0.0-rc.12",
32
- "tsup": "^8.0.2",
32
+ "tsup": "^8.1.0",
33
33
  "typescript": "^5.4.5",
34
- "vue": "^3.4.27"
34
+ "vue": "^3.4.30"
35
35
  },
36
36
  "dependencies": {
37
- "@eslint/js": "^9.3.0",
38
- "@lntvow/utils": "^3.0.3",
39
- "@stylistic/eslint-plugin": "^2.1.0",
40
- "@typescript-eslint/eslint-plugin": "^7.10.0",
41
- "@typescript-eslint/parser": "^7.10.0",
42
- "eslint": "^9.3.0",
37
+ "@eslint/js": "^9.5.0",
38
+ "@lntvow/utils": "^3.0.12",
39
+ "@stylistic/eslint-plugin": "^2.2.2",
40
+ "@typescript-eslint/eslint-plugin": "^7.13.1",
41
+ "@typescript-eslint/parser": "^7.13.1",
42
+ "eslint": "^9.5.0",
43
43
  "eslint-config-prettier": "^9.1.0",
44
44
  "eslint-flat-config-utils": "^0.2.5",
45
- "eslint-plugin-import-x": "^0.5.0",
45
+ "eslint-plugin-import-x": "^0.5.1",
46
46
  "eslint-plugin-prettier": "^5.1.3",
47
47
  "eslint-plugin-regexp": "^2.6.0",
48
48
  "eslint-plugin-vitest": "^0.5.4",
49
49
  "eslint-plugin-vue": "^9.26.0",
50
50
  "find-up": "^7.0.0",
51
- "globals": "^15.3.0",
51
+ "globals": "^15.6.0",
52
52
  "local-pkg": "^0.5.0",
53
53
  "parse-gitignore": "^2.0.0",
54
- "tslib": "^2.6.2",
55
- "typescript": "^5.4.5",
56
- "vue-eslint-parser": "^9.4.2",
57
- "@lntvow/eslint-plugin": "^9.4.3"
54
+ "tslib": "^2.6.3",
55
+ "typescript": "^5.5.2",
56
+ "vue-eslint-parser": "^9.4.3",
57
+ "@lntvow/eslint-plugin": "^9.5.0"
58
58
  },
59
59
  "scripts": {
60
60
  "dev": "pnpm build --format esm --watch",