@lntvow/eslint-config 9.3.8 → 9.3.10
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 +17 -8
- package/dist/index.js +17 -8
- 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 导致竞争条件的分配
|
|
@@ -499,10 +499,13 @@ async function test(options = {}) {
|
|
|
499
499
|
const { overrides } = options;
|
|
500
500
|
return [
|
|
501
501
|
{
|
|
502
|
-
name: "lntvow/test/
|
|
502
|
+
name: "lntvow/test/setup",
|
|
503
503
|
plugins: {
|
|
504
504
|
test: import_eslint_plugin_vitest.default
|
|
505
|
-
}
|
|
505
|
+
}
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
name: "lntvow/test/rules",
|
|
506
509
|
files: [...GLOB_TESTS],
|
|
507
510
|
rules: {
|
|
508
511
|
"lntvow/newline-before-describe-test": "error",
|
|
@@ -536,10 +539,13 @@ async function typescript(options = {}) {
|
|
|
536
539
|
const files = [GLOB_SRC, ...componentExts.map((ext) => `**/*.${ext}`)];
|
|
537
540
|
return [
|
|
538
541
|
{
|
|
539
|
-
name: "lntvow/typescript/
|
|
542
|
+
name: "lntvow/typescript/setup",
|
|
540
543
|
plugins: {
|
|
541
544
|
ts: import_eslint_plugin3.default
|
|
542
|
-
}
|
|
545
|
+
}
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
name: "lntvow/typescript/rules",
|
|
543
549
|
languageOptions: {
|
|
544
550
|
parser: import_parser.default,
|
|
545
551
|
parserOptions: {
|
|
@@ -563,7 +569,7 @@ async function typescript(options = {}) {
|
|
|
563
569
|
"ts/no-unused-vars": "warn",
|
|
564
570
|
// Override javascript configuration
|
|
565
571
|
"no-use-before-define": "off",
|
|
566
|
-
"ts/no-use-before-define": ["error", { functions: false }],
|
|
572
|
+
"ts/no-use-before-define": ["error", { functions: false, variables: false }],
|
|
567
573
|
// Overrides
|
|
568
574
|
...overrides
|
|
569
575
|
}
|
|
@@ -595,10 +601,13 @@ async function vue(options = {}) {
|
|
|
595
601
|
};
|
|
596
602
|
return [
|
|
597
603
|
{
|
|
598
|
-
name: "lntvow/vue/
|
|
604
|
+
name: "lntvow/vue/setup",
|
|
599
605
|
plugins: {
|
|
600
606
|
vue: import_eslint_plugin_vue.default
|
|
601
|
-
}
|
|
607
|
+
}
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
name: "lntvow/vue/rules",
|
|
602
611
|
languageOptions: {
|
|
603
612
|
parser: import_vue_eslint_parser.default,
|
|
604
613
|
parserOptions: {
|
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 导致竞争条件的分配
|
|
@@ -420,10 +420,13 @@ async function test(options = {}) {
|
|
|
420
420
|
const { overrides } = options;
|
|
421
421
|
return [
|
|
422
422
|
{
|
|
423
|
-
name: "lntvow/test/
|
|
423
|
+
name: "lntvow/test/setup",
|
|
424
424
|
plugins: {
|
|
425
425
|
test: pluginVitest
|
|
426
|
-
}
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
name: "lntvow/test/rules",
|
|
427
430
|
files: [...GLOB_TESTS],
|
|
428
431
|
rules: {
|
|
429
432
|
"lntvow/newline-before-describe-test": "error",
|
|
@@ -457,10 +460,13 @@ async function typescript(options = {}) {
|
|
|
457
460
|
const files = [GLOB_SRC, ...componentExts.map((ext) => `**/*.${ext}`)];
|
|
458
461
|
return [
|
|
459
462
|
{
|
|
460
|
-
name: "lntvow/typescript/
|
|
463
|
+
name: "lntvow/typescript/setup",
|
|
461
464
|
plugins: {
|
|
462
465
|
ts: pluginTs
|
|
463
|
-
}
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
name: "lntvow/typescript/rules",
|
|
464
470
|
languageOptions: {
|
|
465
471
|
parser: tsParser,
|
|
466
472
|
parserOptions: {
|
|
@@ -484,7 +490,7 @@ async function typescript(options = {}) {
|
|
|
484
490
|
"ts/no-unused-vars": "warn",
|
|
485
491
|
// Override javascript configuration
|
|
486
492
|
"no-use-before-define": "off",
|
|
487
|
-
"ts/no-use-before-define": ["error", { functions: false }],
|
|
493
|
+
"ts/no-use-before-define": ["error", { functions: false, variables: false }],
|
|
488
494
|
// Overrides
|
|
489
495
|
...overrides
|
|
490
496
|
}
|
|
@@ -516,10 +522,13 @@ async function vue(options = {}) {
|
|
|
516
522
|
};
|
|
517
523
|
return [
|
|
518
524
|
{
|
|
519
|
-
name: "lntvow/vue/
|
|
525
|
+
name: "lntvow/vue/setup",
|
|
520
526
|
plugins: {
|
|
521
527
|
vue: pluginVue
|
|
522
|
-
}
|
|
528
|
+
}
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
name: "lntvow/vue/rules",
|
|
523
532
|
languageOptions: {
|
|
524
533
|
parser: parserVue,
|
|
525
534
|
parserOptions: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lntvow/eslint-config",
|
|
3
|
-
"version": "9.3.
|
|
3
|
+
"version": "9.3.10",
|
|
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.10"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"dev": "pnpm build --format esm --watch",
|