@sxzz/eslint-config 3.6.2 → 3.6.4
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 +48 -48
- package/dist/index.js +48 -48
- package/package.json +12 -12
package/dist/index.cjs
CHANGED
|
@@ -216,7 +216,6 @@ var imports = [
|
|
|
216
216
|
},
|
|
217
217
|
rules: {
|
|
218
218
|
"antfu/import-dedupe": "error",
|
|
219
|
-
"antfu/prefer-inline-type-import": "error",
|
|
220
219
|
"import/first": "error",
|
|
221
220
|
"import/no-default-export": "error",
|
|
222
221
|
"import/no-duplicates": "error",
|
|
@@ -617,70 +616,39 @@ var sortTsconfig = [
|
|
|
617
616
|
"disableReferencedProjectLoad",
|
|
618
617
|
/* Language and Environment */
|
|
619
618
|
"target",
|
|
620
|
-
"lib",
|
|
621
619
|
"jsx",
|
|
622
|
-
"experimentalDecorators",
|
|
623
|
-
"emitDecoratorMetadata",
|
|
624
620
|
"jsxFactory",
|
|
625
621
|
"jsxFragmentFactory",
|
|
626
622
|
"jsxImportSource",
|
|
627
|
-
"
|
|
623
|
+
"lib",
|
|
624
|
+
"moduleDetection",
|
|
628
625
|
"noLib",
|
|
626
|
+
"reactNamespace",
|
|
629
627
|
"useDefineForClassFields",
|
|
630
|
-
"
|
|
628
|
+
"emitDecoratorMetadata",
|
|
629
|
+
"experimentalDecorators",
|
|
631
630
|
/* Modules */
|
|
632
|
-
"module",
|
|
633
|
-
"rootDir",
|
|
634
|
-
"moduleResolution",
|
|
635
631
|
"baseUrl",
|
|
636
|
-
"
|
|
632
|
+
"rootDir",
|
|
637
633
|
"rootDirs",
|
|
638
|
-
"
|
|
639
|
-
"
|
|
640
|
-
"
|
|
634
|
+
"customConditions",
|
|
635
|
+
"module",
|
|
636
|
+
"moduleResolution",
|
|
641
637
|
"moduleSuffixes",
|
|
642
|
-
"
|
|
638
|
+
"noResolve",
|
|
639
|
+
"paths",
|
|
640
|
+
"resolveJsonModule",
|
|
643
641
|
"resolvePackageJsonExports",
|
|
644
642
|
"resolvePackageJsonImports",
|
|
645
|
-
"
|
|
646
|
-
"
|
|
643
|
+
"typeRoots",
|
|
644
|
+
"types",
|
|
647
645
|
"allowArbitraryExtensions",
|
|
648
|
-
"
|
|
646
|
+
"allowImportingTsExtensions",
|
|
647
|
+
"allowUmdGlobalAccess",
|
|
649
648
|
/* JavaScript Support */
|
|
650
649
|
"allowJs",
|
|
651
650
|
"checkJs",
|
|
652
651
|
"maxNodeModuleJsDepth",
|
|
653
|
-
/* Emit */
|
|
654
|
-
"declaration",
|
|
655
|
-
"declarationMap",
|
|
656
|
-
"emitDeclarationOnly",
|
|
657
|
-
"sourceMap",
|
|
658
|
-
"inlineSourceMap",
|
|
659
|
-
"outFile",
|
|
660
|
-
"outDir",
|
|
661
|
-
"removeComments",
|
|
662
|
-
"noEmit",
|
|
663
|
-
"importHelpers",
|
|
664
|
-
"importsNotUsedAsValues",
|
|
665
|
-
"downlevelIteration",
|
|
666
|
-
"sourceRoot",
|
|
667
|
-
"mapRoot",
|
|
668
|
-
"inlineSources",
|
|
669
|
-
"emitBOM",
|
|
670
|
-
"newLine",
|
|
671
|
-
"stripInternal",
|
|
672
|
-
"noEmitHelpers",
|
|
673
|
-
"noEmitOnError",
|
|
674
|
-
"preserveConstEnums",
|
|
675
|
-
"declarationDir",
|
|
676
|
-
"preserveValueImports",
|
|
677
|
-
/* Interop Constraints */
|
|
678
|
-
"isolatedModules",
|
|
679
|
-
"verbatimModuleSyntax",
|
|
680
|
-
"allowSyntheticDefaultImports",
|
|
681
|
-
"esModuleInterop",
|
|
682
|
-
"preserveSymlinks",
|
|
683
|
-
"forceConsistentCasingInFileNames",
|
|
684
652
|
/* Type Checking */
|
|
685
653
|
"strict",
|
|
686
654
|
"strictBindCallApply",
|
|
@@ -701,6 +669,37 @@ var sortTsconfig = [
|
|
|
701
669
|
"noUnusedLocals",
|
|
702
670
|
"noUnusedParameters",
|
|
703
671
|
"useUnknownInCatchVariables",
|
|
672
|
+
/* Emit */
|
|
673
|
+
"declaration",
|
|
674
|
+
"declarationDir",
|
|
675
|
+
"declarationMap",
|
|
676
|
+
"downlevelIteration",
|
|
677
|
+
"emitBOM",
|
|
678
|
+
"emitDeclarationOnly",
|
|
679
|
+
"importHelpers",
|
|
680
|
+
"importsNotUsedAsValues",
|
|
681
|
+
"inlineSourceMap",
|
|
682
|
+
"inlineSources",
|
|
683
|
+
"mapRoot",
|
|
684
|
+
"newLine",
|
|
685
|
+
"noEmit",
|
|
686
|
+
"noEmitHelpers",
|
|
687
|
+
"noEmitOnError",
|
|
688
|
+
"outDir",
|
|
689
|
+
"outFile",
|
|
690
|
+
"preserveConstEnums",
|
|
691
|
+
"preserveValueImports",
|
|
692
|
+
"removeComments",
|
|
693
|
+
"sourceMap",
|
|
694
|
+
"sourceRoot",
|
|
695
|
+
"stripInternal",
|
|
696
|
+
/* Interop Constraints */
|
|
697
|
+
"allowSyntheticDefaultImports",
|
|
698
|
+
"esModuleInterop",
|
|
699
|
+
"forceConsistentCasingInFileNames",
|
|
700
|
+
"isolatedModules",
|
|
701
|
+
"preserveSymlinks",
|
|
702
|
+
"verbatimModuleSyntax",
|
|
704
703
|
/* Completeness */
|
|
705
704
|
"skipDefaultLibCheck",
|
|
706
705
|
"skipLibCheck"
|
|
@@ -743,6 +742,7 @@ var typescript = [
|
|
|
743
742
|
{ disallowTypeAnnotations: false, fixStyle: "inline-type-imports" }
|
|
744
743
|
],
|
|
745
744
|
"@typescript-eslint/no-explicit-any": "off",
|
|
745
|
+
"@typescript-eslint/no-import-type-side-effects": "error",
|
|
746
746
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
747
747
|
"@typescript-eslint/no-redeclare": "error",
|
|
748
748
|
// handled by unused-imports/no-unused-imports
|
package/dist/index.js
CHANGED
|
@@ -117,7 +117,6 @@ var imports = [
|
|
|
117
117
|
},
|
|
118
118
|
rules: {
|
|
119
119
|
"antfu/import-dedupe": "error",
|
|
120
|
-
"antfu/prefer-inline-type-import": "error",
|
|
121
120
|
"import/first": "error",
|
|
122
121
|
"import/no-default-export": "error",
|
|
123
122
|
"import/no-duplicates": "error",
|
|
@@ -518,70 +517,39 @@ var sortTsconfig = [
|
|
|
518
517
|
"disableReferencedProjectLoad",
|
|
519
518
|
/* Language and Environment */
|
|
520
519
|
"target",
|
|
521
|
-
"lib",
|
|
522
520
|
"jsx",
|
|
523
|
-
"experimentalDecorators",
|
|
524
|
-
"emitDecoratorMetadata",
|
|
525
521
|
"jsxFactory",
|
|
526
522
|
"jsxFragmentFactory",
|
|
527
523
|
"jsxImportSource",
|
|
528
|
-
"
|
|
524
|
+
"lib",
|
|
525
|
+
"moduleDetection",
|
|
529
526
|
"noLib",
|
|
527
|
+
"reactNamespace",
|
|
530
528
|
"useDefineForClassFields",
|
|
531
|
-
"
|
|
529
|
+
"emitDecoratorMetadata",
|
|
530
|
+
"experimentalDecorators",
|
|
532
531
|
/* Modules */
|
|
533
|
-
"module",
|
|
534
|
-
"rootDir",
|
|
535
|
-
"moduleResolution",
|
|
536
532
|
"baseUrl",
|
|
537
|
-
"
|
|
533
|
+
"rootDir",
|
|
538
534
|
"rootDirs",
|
|
539
|
-
"
|
|
540
|
-
"
|
|
541
|
-
"
|
|
535
|
+
"customConditions",
|
|
536
|
+
"module",
|
|
537
|
+
"moduleResolution",
|
|
542
538
|
"moduleSuffixes",
|
|
543
|
-
"
|
|
539
|
+
"noResolve",
|
|
540
|
+
"paths",
|
|
541
|
+
"resolveJsonModule",
|
|
544
542
|
"resolvePackageJsonExports",
|
|
545
543
|
"resolvePackageJsonImports",
|
|
546
|
-
"
|
|
547
|
-
"
|
|
544
|
+
"typeRoots",
|
|
545
|
+
"types",
|
|
548
546
|
"allowArbitraryExtensions",
|
|
549
|
-
"
|
|
547
|
+
"allowImportingTsExtensions",
|
|
548
|
+
"allowUmdGlobalAccess",
|
|
550
549
|
/* JavaScript Support */
|
|
551
550
|
"allowJs",
|
|
552
551
|
"checkJs",
|
|
553
552
|
"maxNodeModuleJsDepth",
|
|
554
|
-
/* Emit */
|
|
555
|
-
"declaration",
|
|
556
|
-
"declarationMap",
|
|
557
|
-
"emitDeclarationOnly",
|
|
558
|
-
"sourceMap",
|
|
559
|
-
"inlineSourceMap",
|
|
560
|
-
"outFile",
|
|
561
|
-
"outDir",
|
|
562
|
-
"removeComments",
|
|
563
|
-
"noEmit",
|
|
564
|
-
"importHelpers",
|
|
565
|
-
"importsNotUsedAsValues",
|
|
566
|
-
"downlevelIteration",
|
|
567
|
-
"sourceRoot",
|
|
568
|
-
"mapRoot",
|
|
569
|
-
"inlineSources",
|
|
570
|
-
"emitBOM",
|
|
571
|
-
"newLine",
|
|
572
|
-
"stripInternal",
|
|
573
|
-
"noEmitHelpers",
|
|
574
|
-
"noEmitOnError",
|
|
575
|
-
"preserveConstEnums",
|
|
576
|
-
"declarationDir",
|
|
577
|
-
"preserveValueImports",
|
|
578
|
-
/* Interop Constraints */
|
|
579
|
-
"isolatedModules",
|
|
580
|
-
"verbatimModuleSyntax",
|
|
581
|
-
"allowSyntheticDefaultImports",
|
|
582
|
-
"esModuleInterop",
|
|
583
|
-
"preserveSymlinks",
|
|
584
|
-
"forceConsistentCasingInFileNames",
|
|
585
553
|
/* Type Checking */
|
|
586
554
|
"strict",
|
|
587
555
|
"strictBindCallApply",
|
|
@@ -602,6 +570,37 @@ var sortTsconfig = [
|
|
|
602
570
|
"noUnusedLocals",
|
|
603
571
|
"noUnusedParameters",
|
|
604
572
|
"useUnknownInCatchVariables",
|
|
573
|
+
/* Emit */
|
|
574
|
+
"declaration",
|
|
575
|
+
"declarationDir",
|
|
576
|
+
"declarationMap",
|
|
577
|
+
"downlevelIteration",
|
|
578
|
+
"emitBOM",
|
|
579
|
+
"emitDeclarationOnly",
|
|
580
|
+
"importHelpers",
|
|
581
|
+
"importsNotUsedAsValues",
|
|
582
|
+
"inlineSourceMap",
|
|
583
|
+
"inlineSources",
|
|
584
|
+
"mapRoot",
|
|
585
|
+
"newLine",
|
|
586
|
+
"noEmit",
|
|
587
|
+
"noEmitHelpers",
|
|
588
|
+
"noEmitOnError",
|
|
589
|
+
"outDir",
|
|
590
|
+
"outFile",
|
|
591
|
+
"preserveConstEnums",
|
|
592
|
+
"preserveValueImports",
|
|
593
|
+
"removeComments",
|
|
594
|
+
"sourceMap",
|
|
595
|
+
"sourceRoot",
|
|
596
|
+
"stripInternal",
|
|
597
|
+
/* Interop Constraints */
|
|
598
|
+
"allowSyntheticDefaultImports",
|
|
599
|
+
"esModuleInterop",
|
|
600
|
+
"forceConsistentCasingInFileNames",
|
|
601
|
+
"isolatedModules",
|
|
602
|
+
"preserveSymlinks",
|
|
603
|
+
"verbatimModuleSyntax",
|
|
605
604
|
/* Completeness */
|
|
606
605
|
"skipDefaultLibCheck",
|
|
607
606
|
"skipLibCheck"
|
|
@@ -644,6 +643,7 @@ var typescript = [
|
|
|
644
643
|
{ disallowTypeAnnotations: false, fixStyle: "inline-type-imports" }
|
|
645
644
|
],
|
|
646
645
|
"@typescript-eslint/no-explicit-any": "off",
|
|
646
|
+
"@typescript-eslint/no-import-type-side-effects": "error",
|
|
647
647
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
648
648
|
"@typescript-eslint/no-redeclare": "error",
|
|
649
649
|
// handled by unused-imports/no-unused-imports
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sxzz/eslint-config",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.4",
|
|
4
4
|
"packageManager": "pnpm@8.8.0",
|
|
5
5
|
"description": "ESLint config for @sxzz.",
|
|
6
6
|
"type": "module",
|
|
@@ -31,33 +31,33 @@
|
|
|
31
31
|
"eslint": "^8.0.0"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@typescript-eslint/eslint-plugin": "^6.7.
|
|
35
|
-
"@typescript-eslint/parser": "^6.7.
|
|
36
|
-
"@unocss/eslint-plugin": "^0.56.
|
|
34
|
+
"@typescript-eslint/eslint-plugin": "^6.7.5",
|
|
35
|
+
"@typescript-eslint/parser": "^6.7.5",
|
|
36
|
+
"@unocss/eslint-plugin": "^0.56.5",
|
|
37
37
|
"eslint-config-prettier": "^9.0.0",
|
|
38
|
-
"eslint-define-config": "^1.
|
|
39
|
-
"eslint-plugin-antfu": "^0.
|
|
38
|
+
"eslint-define-config": "^1.24.1",
|
|
39
|
+
"eslint-plugin-antfu": "^1.0.0-beta.12",
|
|
40
40
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
41
41
|
"eslint-plugin-i": "^2.28.1",
|
|
42
|
-
"eslint-plugin-jsonc": "^2.
|
|
42
|
+
"eslint-plugin-jsonc": "^2.10.0",
|
|
43
43
|
"eslint-plugin-markdown": "^3.0.1",
|
|
44
44
|
"eslint-plugin-prettier": "^5.0.0",
|
|
45
45
|
"eslint-plugin-unicorn": "^48.0.1",
|
|
46
46
|
"eslint-plugin-unused-imports": "^3.0.0",
|
|
47
47
|
"eslint-plugin-vue": "^9.17.0",
|
|
48
|
-
"eslint-plugin-yml": "^1.
|
|
49
|
-
"globals": "^13.
|
|
48
|
+
"eslint-plugin-yml": "^1.10.0",
|
|
49
|
+
"globals": "^13.23.0",
|
|
50
50
|
"jsonc-eslint-parser": "^2.3.0",
|
|
51
51
|
"local-pkg": "^0.5.0",
|
|
52
52
|
"prettier": "^3.0.3",
|
|
53
|
-
"vue-eslint-parser": "^9.3.
|
|
53
|
+
"vue-eslint-parser": "^9.3.2",
|
|
54
54
|
"yaml-eslint-parser": "^1.2.2"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@sxzz/prettier-config": "^1.0.4",
|
|
58
|
-
"@types/node": "^20.8.
|
|
58
|
+
"@types/node": "^20.8.4",
|
|
59
59
|
"bumpp": "^9.2.0",
|
|
60
|
-
"eslint": "^8.
|
|
60
|
+
"eslint": "^8.51.0",
|
|
61
61
|
"eslint-plugin-sort-keys": "^2.3.5",
|
|
62
62
|
"sucrase": "^3.34.0",
|
|
63
63
|
"tsup": "^7.2.0",
|