@lntvow/eslint-config 9.3.7 → 9.3.9
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 +3 -3
- package/dist/index.js +3 -3
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -265,7 +265,7 @@ async function javascript(options = {}) {
|
|
|
265
265
|
// 禁止未使用过的变量
|
|
266
266
|
"no-unused-vars": "warn",
|
|
267
267
|
// 禁止定义前使用
|
|
268
|
-
"no-use-before-define": ["error", { functions: false }],
|
|
268
|
+
"no-use-before-define": ["error", { functions: false, variables: false }],
|
|
269
269
|
// 禁止无用的分配 有时候需要置空变量时候需要用到
|
|
270
270
|
"no-useless-assignment": "off",
|
|
271
271
|
// 禁止使用 await 或 yield 导致竞争条件的分配
|
|
@@ -505,7 +505,7 @@ async function test(options = {}) {
|
|
|
505
505
|
},
|
|
506
506
|
files: [...GLOB_TESTS],
|
|
507
507
|
rules: {
|
|
508
|
-
"lntvow/newline-before": "error",
|
|
508
|
+
"lntvow/newline-before-describe-test": "error",
|
|
509
509
|
// Overrides
|
|
510
510
|
...overrides
|
|
511
511
|
}
|
|
@@ -563,7 +563,7 @@ async function typescript(options = {}) {
|
|
|
563
563
|
"ts/no-unused-vars": "warn",
|
|
564
564
|
// Override javascript configuration
|
|
565
565
|
"no-use-before-define": "off",
|
|
566
|
-
"ts/no-use-before-define": ["error", { functions: false }],
|
|
566
|
+
"ts/no-use-before-define": ["error", { functions: false, variables: false }],
|
|
567
567
|
// Overrides
|
|
568
568
|
...overrides
|
|
569
569
|
}
|
package/dist/index.js
CHANGED
|
@@ -186,7 +186,7 @@ async function javascript(options = {}) {
|
|
|
186
186
|
// 禁止未使用过的变量
|
|
187
187
|
"no-unused-vars": "warn",
|
|
188
188
|
// 禁止定义前使用
|
|
189
|
-
"no-use-before-define": ["error", { functions: false }],
|
|
189
|
+
"no-use-before-define": ["error", { functions: false, variables: false }],
|
|
190
190
|
// 禁止无用的分配 有时候需要置空变量时候需要用到
|
|
191
191
|
"no-useless-assignment": "off",
|
|
192
192
|
// 禁止使用 await 或 yield 导致竞争条件的分配
|
|
@@ -426,7 +426,7 @@ async function test(options = {}) {
|
|
|
426
426
|
},
|
|
427
427
|
files: [...GLOB_TESTS],
|
|
428
428
|
rules: {
|
|
429
|
-
"lntvow/newline-before": "error",
|
|
429
|
+
"lntvow/newline-before-describe-test": "error",
|
|
430
430
|
// Overrides
|
|
431
431
|
...overrides
|
|
432
432
|
}
|
|
@@ -484,7 +484,7 @@ async function typescript(options = {}) {
|
|
|
484
484
|
"ts/no-unused-vars": "warn",
|
|
485
485
|
// Override javascript configuration
|
|
486
486
|
"no-use-before-define": "off",
|
|
487
|
-
"ts/no-use-before-define": ["error", { functions: false }],
|
|
487
|
+
"ts/no-use-before-define": ["error", { functions: false, variables: false }],
|
|
488
488
|
// Overrides
|
|
489
489
|
...overrides
|
|
490
490
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lntvow/eslint-config",
|
|
3
|
-
"version": "9.3.
|
|
3
|
+
"version": "9.3.9",
|
|
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.3.
|
|
57
|
+
"@lntvow/eslint-plugin": "^9.3.9"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"dev": "pnpm build --format esm --watch",
|