@lntvow/eslint-config 9.3.14 → 9.4.1
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 +6 -2
- package/dist/index.mjs +6 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -360,7 +360,7 @@ async function javascript(options = {}) {
|
|
|
360
360
|
reportUnusedDisableDirectives: true
|
|
361
361
|
},
|
|
362
362
|
rules: {
|
|
363
|
-
// Update to eslint-plugin-vue v9.
|
|
363
|
+
// Update to eslint-plugin-vue v9.4.0
|
|
364
364
|
...import_js.default.configs.all.rules,
|
|
365
365
|
// Possible Problems
|
|
366
366
|
// 禁止未使用过的变量
|
|
@@ -477,6 +477,8 @@ async function javascript(options = {}) {
|
|
|
477
477
|
"no-warning-comments": "off",
|
|
478
478
|
// 强制函数中的变量在一起声明
|
|
479
479
|
"one-var": "off",
|
|
480
|
+
// 优先使用数组和对象解构
|
|
481
|
+
"prefer-destructuring": "off",
|
|
480
482
|
// 禁止使用 Math.pow 幂运算符
|
|
481
483
|
"prefer-exponentiation-operator": "off",
|
|
482
484
|
// 要求使用 Error 对象作为 Promise 拒绝的原因
|
|
@@ -590,7 +592,9 @@ async function stylistic(options = {}) {
|
|
|
590
592
|
"error",
|
|
591
593
|
{ blankLine: "always", prev: "*", next: "cjs-export" },
|
|
592
594
|
{ blankLine: "always", prev: "*", next: "export" },
|
|
593
|
-
{ blankLine: "always", prev: "*", next: "function" }
|
|
595
|
+
{ blankLine: "always", prev: "*", next: "function" },
|
|
596
|
+
{ blankLine: "always", prev: "*", next: ["interface", "type"] },
|
|
597
|
+
{ blankLine: "never", prev: "function-overload", next: "function" }
|
|
594
598
|
],
|
|
595
599
|
// overrides
|
|
596
600
|
...overrides
|
package/dist/index.mjs
CHANGED
|
@@ -279,7 +279,7 @@ async function javascript(options = {}) {
|
|
|
279
279
|
reportUnusedDisableDirectives: true
|
|
280
280
|
},
|
|
281
281
|
rules: {
|
|
282
|
-
// Update to eslint-plugin-vue v9.
|
|
282
|
+
// Update to eslint-plugin-vue v9.4.0
|
|
283
283
|
...js.configs.all.rules,
|
|
284
284
|
// Possible Problems
|
|
285
285
|
// 禁止未使用过的变量
|
|
@@ -396,6 +396,8 @@ async function javascript(options = {}) {
|
|
|
396
396
|
"no-warning-comments": "off",
|
|
397
397
|
// 强制函数中的变量在一起声明
|
|
398
398
|
"one-var": "off",
|
|
399
|
+
// 优先使用数组和对象解构
|
|
400
|
+
"prefer-destructuring": "off",
|
|
399
401
|
// 禁止使用 Math.pow 幂运算符
|
|
400
402
|
"prefer-exponentiation-operator": "off",
|
|
401
403
|
// 要求使用 Error 对象作为 Promise 拒绝的原因
|
|
@@ -509,7 +511,9 @@ async function stylistic(options = {}) {
|
|
|
509
511
|
"error",
|
|
510
512
|
{ blankLine: "always", prev: "*", next: "cjs-export" },
|
|
511
513
|
{ blankLine: "always", prev: "*", next: "export" },
|
|
512
|
-
{ blankLine: "always", prev: "*", next: "function" }
|
|
514
|
+
{ blankLine: "always", prev: "*", next: "function" },
|
|
515
|
+
{ blankLine: "always", prev: "*", next: ["interface", "type"] },
|
|
516
|
+
{ blankLine: "never", prev: "function-overload", next: "function" }
|
|
513
517
|
],
|
|
514
518
|
// overrides
|
|
515
519
|
...overrides
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lntvow/eslint-config",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.4.1",
|
|
4
4
|
"author": "lntvow",
|
|
5
5
|
"description": "eslint-config",
|
|
6
6
|
"type": "module",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"tslib": "^2.6.2",
|
|
55
55
|
"typescript": "^5.4.5",
|
|
56
56
|
"vue-eslint-parser": "^9.4.2",
|
|
57
|
-
"@lntvow/eslint-plugin": "^9.
|
|
57
|
+
"@lntvow/eslint-plugin": "^9.4.1"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"dev": "pnpm build --format esm --watch",
|