@vinicunca/eslint-config 2.10.0 → 2.11.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 +1 -1
- package/dist/index.d.cts +302 -72
- package/dist/index.d.ts +302 -72
- package/dist/index.js +1 -1
- package/package.json +19 -24
package/dist/index.d.cts
CHANGED
|
@@ -24,6 +24,11 @@ interface RuleOptions {
|
|
|
24
24
|
* @see https://eslint.org/docs/latest/rules/accessor-pairs
|
|
25
25
|
*/
|
|
26
26
|
'accessor-pairs'?: Linter.RuleEntry<AccessorPairs>
|
|
27
|
+
/**
|
|
28
|
+
* Having line breaks styles to object, array and named imports
|
|
29
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/consistent-chaining.md
|
|
30
|
+
*/
|
|
31
|
+
'antfu/consistent-chaining'?: Linter.RuleEntry<AntfuConsistentChaining>
|
|
27
32
|
/**
|
|
28
33
|
* Having line breaks styles to object, array and named imports
|
|
29
34
|
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/consistent-list-newline.md
|
|
@@ -31,7 +36,7 @@ interface RuleOptions {
|
|
|
31
36
|
'antfu/consistent-list-newline'?: Linter.RuleEntry<AntfuConsistentListNewline>
|
|
32
37
|
/**
|
|
33
38
|
* Enforce Anthony's style of curly bracket
|
|
34
|
-
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/curly.
|
|
39
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/curly.md
|
|
35
40
|
*/
|
|
36
41
|
'antfu/curly'?: Linter.RuleEntry<[]>
|
|
37
42
|
/**
|
|
@@ -46,7 +51,7 @@ interface RuleOptions {
|
|
|
46
51
|
'antfu/import-dedupe'?: Linter.RuleEntry<[]>
|
|
47
52
|
/**
|
|
48
53
|
* Enforce consistent indentation in `unindent` template tag
|
|
49
|
-
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/indent-unindent.
|
|
54
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/indent-unindent.md
|
|
50
55
|
*/
|
|
51
56
|
'antfu/indent-unindent'?: Linter.RuleEntry<AntfuIndentUnindent>
|
|
52
57
|
/**
|
|
@@ -646,233 +651,233 @@ interface RuleOptions {
|
|
|
646
651
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
647
652
|
/**
|
|
648
653
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
649
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
654
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/consistent-type-specifier-style.md
|
|
650
655
|
*/
|
|
651
656
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
|
|
652
657
|
/**
|
|
653
658
|
* Ensure a default export is present, given a default import.
|
|
654
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
659
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/default.md
|
|
655
660
|
*/
|
|
656
661
|
'import/default'?: Linter.RuleEntry<[]>
|
|
657
662
|
/**
|
|
658
663
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
659
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
664
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/dynamic-import-chunkname.md
|
|
660
665
|
*/
|
|
661
666
|
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
|
|
662
667
|
/**
|
|
663
668
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
664
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
669
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/export.md
|
|
665
670
|
*/
|
|
666
671
|
'import/export'?: Linter.RuleEntry<[]>
|
|
667
672
|
/**
|
|
668
673
|
* Ensure all exports appear after other statements.
|
|
669
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
674
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/exports-last.md
|
|
670
675
|
*/
|
|
671
676
|
'import/exports-last'?: Linter.RuleEntry<[]>
|
|
672
677
|
/**
|
|
673
678
|
* Ensure consistent use of file extension within the import path.
|
|
674
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
679
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/extensions.md
|
|
675
680
|
*/
|
|
676
681
|
'import/extensions'?: Linter.RuleEntry<ImportExtensions>
|
|
677
682
|
/**
|
|
678
683
|
* Ensure all imports appear before other statements.
|
|
679
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
684
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/first.md
|
|
680
685
|
*/
|
|
681
686
|
'import/first'?: Linter.RuleEntry<ImportFirst>
|
|
682
687
|
/**
|
|
683
688
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
684
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
689
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/group-exports.md
|
|
685
690
|
*/
|
|
686
691
|
'import/group-exports'?: Linter.RuleEntry<[]>
|
|
687
692
|
/**
|
|
688
693
|
* Replaced by `import-x/first`.
|
|
689
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
694
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/imports-first.md
|
|
690
695
|
* @deprecated
|
|
691
696
|
*/
|
|
692
697
|
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
|
|
693
698
|
/**
|
|
694
699
|
* Enforce the maximum number of dependencies a module can have.
|
|
695
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
700
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/max-dependencies.md
|
|
696
701
|
*/
|
|
697
702
|
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
|
|
698
703
|
/**
|
|
699
704
|
* Ensure named imports correspond to a named export in the remote file.
|
|
700
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
705
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/named.md
|
|
701
706
|
*/
|
|
702
707
|
'import/named'?: Linter.RuleEntry<ImportNamed>
|
|
703
708
|
/**
|
|
704
709
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
705
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
710
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/namespace.md
|
|
706
711
|
*/
|
|
707
712
|
'import/namespace'?: Linter.RuleEntry<ImportNamespace>
|
|
708
713
|
/**
|
|
709
714
|
* Enforce a newline after import statements.
|
|
710
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
715
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/newline-after-import.md
|
|
711
716
|
*/
|
|
712
717
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
|
|
713
718
|
/**
|
|
714
719
|
* Forbid import of modules using absolute paths.
|
|
715
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
720
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-absolute-path.md
|
|
716
721
|
*/
|
|
717
722
|
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
|
|
718
723
|
/**
|
|
719
724
|
* Forbid AMD `require` and `define` calls.
|
|
720
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
725
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-amd.md
|
|
721
726
|
*/
|
|
722
727
|
'import/no-amd'?: Linter.RuleEntry<[]>
|
|
723
728
|
/**
|
|
724
729
|
* Forbid anonymous values as default exports.
|
|
725
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
730
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-anonymous-default-export.md
|
|
726
731
|
*/
|
|
727
732
|
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
|
|
728
733
|
/**
|
|
729
734
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
730
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
735
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-commonjs.md
|
|
731
736
|
*/
|
|
732
737
|
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
|
|
733
738
|
/**
|
|
734
739
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
735
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
740
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-cycle.md
|
|
736
741
|
*/
|
|
737
742
|
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
|
|
738
743
|
/**
|
|
739
744
|
* Forbid default exports.
|
|
740
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
745
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-default-export.md
|
|
741
746
|
*/
|
|
742
747
|
'import/no-default-export'?: Linter.RuleEntry<[]>
|
|
743
748
|
/**
|
|
744
749
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
745
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
750
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-deprecated.md
|
|
746
751
|
*/
|
|
747
752
|
'import/no-deprecated'?: Linter.RuleEntry<[]>
|
|
748
753
|
/**
|
|
749
754
|
* Forbid repeated import of the same module in multiple places.
|
|
750
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
755
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-duplicates.md
|
|
751
756
|
*/
|
|
752
757
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
|
|
753
758
|
/**
|
|
754
759
|
* Forbid `require()` calls with expressions.
|
|
755
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
760
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-dynamic-require.md
|
|
756
761
|
*/
|
|
757
762
|
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
|
|
758
763
|
/**
|
|
759
764
|
* Forbid empty named import blocks.
|
|
760
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
765
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-empty-named-blocks.md
|
|
761
766
|
*/
|
|
762
767
|
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
763
768
|
/**
|
|
764
769
|
* Forbid the use of extraneous packages.
|
|
765
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
770
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-extraneous-dependencies.md
|
|
766
771
|
*/
|
|
767
772
|
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
|
|
768
773
|
/**
|
|
769
774
|
* Forbid import statements with CommonJS module.exports.
|
|
770
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
775
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-import-module-exports.md
|
|
771
776
|
*/
|
|
772
777
|
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
|
|
773
778
|
/**
|
|
774
779
|
* Forbid importing the submodules of other modules.
|
|
775
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
780
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-internal-modules.md
|
|
776
781
|
*/
|
|
777
782
|
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
|
|
778
783
|
/**
|
|
779
784
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
780
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
785
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-mutable-exports.md
|
|
781
786
|
*/
|
|
782
787
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
783
788
|
/**
|
|
784
789
|
* Forbid use of exported name as identifier of default export.
|
|
785
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
790
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-as-default.md
|
|
786
791
|
*/
|
|
787
792
|
'import/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
788
793
|
/**
|
|
789
794
|
* Forbid use of exported name as property of default export.
|
|
790
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
795
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-as-default-member.md
|
|
791
796
|
*/
|
|
792
797
|
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
793
798
|
/**
|
|
794
799
|
* Forbid named default exports.
|
|
795
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
800
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-default.md
|
|
796
801
|
*/
|
|
797
802
|
'import/no-named-default'?: Linter.RuleEntry<[]>
|
|
798
803
|
/**
|
|
799
804
|
* Forbid named exports.
|
|
800
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
805
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-export.md
|
|
801
806
|
*/
|
|
802
807
|
'import/no-named-export'?: Linter.RuleEntry<[]>
|
|
803
808
|
/**
|
|
804
809
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
805
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
810
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-namespace.md
|
|
806
811
|
*/
|
|
807
812
|
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
|
|
808
813
|
/**
|
|
809
814
|
* Forbid Node.js builtin modules.
|
|
810
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
815
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-nodejs-modules.md
|
|
811
816
|
*/
|
|
812
817
|
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
|
|
813
818
|
/**
|
|
814
819
|
* Forbid importing packages through relative paths.
|
|
815
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
820
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-relative-packages.md
|
|
816
821
|
*/
|
|
817
822
|
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
|
|
818
823
|
/**
|
|
819
824
|
* Forbid importing modules from parent directories.
|
|
820
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
825
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-relative-parent-imports.md
|
|
821
826
|
*/
|
|
822
827
|
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
|
|
823
828
|
/**
|
|
824
829
|
* Forbid importing a default export by a different name.
|
|
825
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
830
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-rename-default.md
|
|
826
831
|
*/
|
|
827
832
|
'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>
|
|
828
833
|
/**
|
|
829
834
|
* Enforce which files can be imported in a given folder.
|
|
830
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
835
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-restricted-paths.md
|
|
831
836
|
*/
|
|
832
837
|
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
|
|
833
838
|
/**
|
|
834
839
|
* Forbid a module from importing itself.
|
|
835
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
840
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-self-import.md
|
|
836
841
|
*/
|
|
837
842
|
'import/no-self-import'?: Linter.RuleEntry<[]>
|
|
838
843
|
/**
|
|
839
844
|
* Forbid unassigned imports.
|
|
840
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
845
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unassigned-import.md
|
|
841
846
|
*/
|
|
842
847
|
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
|
|
843
848
|
/**
|
|
844
849
|
* Ensure imports point to a file/module that can be resolved.
|
|
845
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
850
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unresolved.md
|
|
846
851
|
*/
|
|
847
852
|
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
|
|
848
853
|
/**
|
|
849
854
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
850
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
855
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unused-modules.md
|
|
851
856
|
*/
|
|
852
857
|
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
|
|
853
858
|
/**
|
|
854
859
|
* Forbid unnecessary path segments in import and require statements.
|
|
855
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
860
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-useless-path-segments.md
|
|
856
861
|
*/
|
|
857
862
|
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
|
|
858
863
|
/**
|
|
859
864
|
* Forbid webpack loader syntax in imports.
|
|
860
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
865
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-webpack-loader-syntax.md
|
|
861
866
|
*/
|
|
862
867
|
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
863
868
|
/**
|
|
864
869
|
* Enforce a convention in module import order.
|
|
865
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
870
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/order.md
|
|
866
871
|
*/
|
|
867
872
|
'import/order'?: Linter.RuleEntry<ImportOrder>
|
|
868
873
|
/**
|
|
869
874
|
* Prefer a default export if module exports a single name or multiple names.
|
|
870
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
875
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/prefer-default-export.md
|
|
871
876
|
*/
|
|
872
877
|
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
|
|
873
878
|
/**
|
|
874
879
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
875
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
880
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/unambiguous.md
|
|
876
881
|
*/
|
|
877
882
|
'import/unambiguous'?: Linter.RuleEntry<[]>
|
|
878
883
|
/**
|
|
@@ -2672,6 +2677,11 @@ interface RuleOptions {
|
|
|
2672
2677
|
* @see https://perfectionist.dev/rules/sort-objects
|
|
2673
2678
|
*/
|
|
2674
2679
|
'perfectionist/sort-objects'?: Linter.RuleEntry<PerfectionistSortObjects>
|
|
2680
|
+
/**
|
|
2681
|
+
* Enforce sorted sets.
|
|
2682
|
+
* @see https://perfectionist.dev/rules/sort-sets
|
|
2683
|
+
*/
|
|
2684
|
+
'perfectionist/sort-sets'?: Linter.RuleEntry<PerfectionistSortSets>
|
|
2675
2685
|
/**
|
|
2676
2686
|
* Enforce sorted Svelte attributes.
|
|
2677
2687
|
* @see https://perfectionist.dev/rules/sort-svelte-attributes
|
|
@@ -2841,18 +2851,13 @@ interface RuleOptions {
|
|
|
2841
2851
|
*/
|
|
2842
2852
|
'react-dom/no-unsafe-target-blank'?: Linter.RuleEntry<[]>
|
|
2843
2853
|
/**
|
|
2844
|
-
* enforce custom hooks
|
|
2845
|
-
* @see https://eslint-react.xyz/docs/rules/hooks-extra-
|
|
2854
|
+
* enforce custom hooks to use at least one other hook inside
|
|
2855
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-redundant-custom-hook
|
|
2846
2856
|
*/
|
|
2847
2857
|
'react-hooks-extra/ensure-custom-hooks-using-other-hooks'?: Linter.RuleEntry<[]>
|
|
2848
2858
|
/**
|
|
2849
|
-
*
|
|
2850
|
-
* @see https://eslint-react.xyz/docs/rules/hooks-extra-
|
|
2851
|
-
*/
|
|
2852
|
-
'react-hooks-extra/ensure-use-callback-has-non-empty-deps'?: Linter.RuleEntry<[]>
|
|
2853
|
-
/**
|
|
2854
|
-
* enforce 'useMemo' has non-empty dependencies array
|
|
2855
|
-
* @see https://eslint-react.xyz/docs/rules/hooks-extra-ensure-use-memo-has-non-empty-deps
|
|
2859
|
+
* disallow unnecessary usage of 'useMemo'
|
|
2860
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-memo
|
|
2856
2861
|
*/
|
|
2857
2862
|
'react-hooks-extra/ensure-use-memo-has-non-empty-deps'?: Linter.RuleEntry<[]>
|
|
2858
2863
|
/**
|
|
@@ -2861,10 +2866,25 @@ interface RuleOptions {
|
|
|
2861
2866
|
*/
|
|
2862
2867
|
'react-hooks-extra/no-direct-set-state-in-use-effect'?: Linter.RuleEntry<[]>
|
|
2863
2868
|
/**
|
|
2864
|
-
* disallow direct calls to the 'set' function of 'useState' in '
|
|
2865
|
-
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-
|
|
2869
|
+
* disallow direct calls to the 'set' function of 'useState' in 'useEffect'
|
|
2870
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-effect
|
|
2866
2871
|
*/
|
|
2867
2872
|
'react-hooks-extra/no-direct-set-state-in-use-layout-effect'?: Linter.RuleEntry<[]>
|
|
2873
|
+
/**
|
|
2874
|
+
* enforce custom hooks to use at least one other hook inside
|
|
2875
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-redundant-custom-hook
|
|
2876
|
+
*/
|
|
2877
|
+
'react-hooks-extra/no-redundant-custom-hook'?: Linter.RuleEntry<[]>
|
|
2878
|
+
/**
|
|
2879
|
+
* disallow unnecessary usage of 'useCallback'
|
|
2880
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-callback
|
|
2881
|
+
*/
|
|
2882
|
+
'react-hooks-extra/no-unnecessary-use-callback'?: Linter.RuleEntry<[]>
|
|
2883
|
+
/**
|
|
2884
|
+
* disallow unnecessary usage of 'useMemo'
|
|
2885
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-memo
|
|
2886
|
+
*/
|
|
2887
|
+
'react-hooks-extra/no-unnecessary-use-memo'?: Linter.RuleEntry<[]>
|
|
2868
2888
|
/**
|
|
2869
2889
|
* disallow function calls in 'useState' that aren't wrapped in an initializer function
|
|
2870
2890
|
* @see https://eslint-react.xyz/docs/rules/hooks-extra-prefer-use-state-lazy-initialization
|
|
@@ -3555,7 +3575,7 @@ interface RuleOptions {
|
|
|
3555
3575
|
* Enforce the use of `u` or `v` flag on RegExp
|
|
3556
3576
|
* @see https://eslint.org/docs/latest/rules/require-unicode-regexp
|
|
3557
3577
|
*/
|
|
3558
|
-
'require-unicode-regexp'?: Linter.RuleEntry<
|
|
3578
|
+
'require-unicode-regexp'?: Linter.RuleEntry<RequireUnicodeRegexp>
|
|
3559
3579
|
/**
|
|
3560
3580
|
* Require generator functions to contain `yield`
|
|
3561
3581
|
* @see https://eslint.org/docs/latest/rules/require-yield
|
|
@@ -6627,7 +6647,7 @@ interface RuleOptions {
|
|
|
6627
6647
|
*/
|
|
6628
6648
|
'vue/define-emits-declaration'?: Linter.RuleEntry<VueDefineEmitsDeclaration>
|
|
6629
6649
|
/**
|
|
6630
|
-
* enforce order of
|
|
6650
|
+
* enforce order of compiler macros (`defineProps`, `defineEmits`, etc.)
|
|
6631
6651
|
* @see https://eslint.vuejs.org/rules/define-macros-order.html
|
|
6632
6652
|
*/
|
|
6633
6653
|
'vue/define-macros-order'?: Linter.RuleEntry<VueDefineMacrosOrder>
|
|
@@ -6756,6 +6776,16 @@ interface RuleOptions {
|
|
|
6756
6776
|
* @see https://eslint.vuejs.org/rules/max-lines-per-block.html
|
|
6757
6777
|
*/
|
|
6758
6778
|
'vue/max-lines-per-block'?: Linter.RuleEntry<VueMaxLinesPerBlock>
|
|
6779
|
+
/**
|
|
6780
|
+
* enforce maximum number of props in Vue component
|
|
6781
|
+
* @see https://eslint.vuejs.org/rules/max-props.html
|
|
6782
|
+
*/
|
|
6783
|
+
'vue/max-props'?: Linter.RuleEntry<VueMaxProps>
|
|
6784
|
+
/**
|
|
6785
|
+
* enforce maximum depth of template
|
|
6786
|
+
* @see https://eslint.vuejs.org/rules/max-template-depth.html
|
|
6787
|
+
*/
|
|
6788
|
+
'vue/max-template-depth'?: Linter.RuleEntry<VueMaxTemplateDepth>
|
|
6759
6789
|
/**
|
|
6760
6790
|
* require component names to be always multi-word
|
|
6761
6791
|
* @see https://eslint.vuejs.org/rules/multi-word-component-names.html
|
|
@@ -6812,7 +6842,7 @@ interface RuleOptions {
|
|
|
6812
6842
|
*/
|
|
6813
6843
|
'vue/no-child-content'?: Linter.RuleEntry<VueNoChildContent>
|
|
6814
6844
|
/**
|
|
6815
|
-
* disallow accessing computed properties in `data
|
|
6845
|
+
* disallow accessing computed properties in `data`
|
|
6816
6846
|
* @see https://eslint.vuejs.org/rules/no-computed-properties-in-data.html
|
|
6817
6847
|
*/
|
|
6818
6848
|
'vue/no-computed-properties-in-data'?: Linter.RuleEntry<[]>
|
|
@@ -7360,7 +7390,7 @@ interface RuleOptions {
|
|
|
7360
7390
|
*/
|
|
7361
7391
|
'vue/padding-lines-in-component-definition'?: Linter.RuleEntry<VuePaddingLinesInComponentDefinition>
|
|
7362
7392
|
/**
|
|
7363
|
-
* enforce use of `defineOptions` instead of default export
|
|
7393
|
+
* enforce use of `defineOptions` instead of default export
|
|
7364
7394
|
* @see https://eslint.vuejs.org/rules/prefer-define-options.html
|
|
7365
7395
|
*/
|
|
7366
7396
|
'vue/prefer-define-options'?: Linter.RuleEntry<[]>
|
|
@@ -7404,6 +7434,11 @@ interface RuleOptions {
|
|
|
7404
7434
|
* @see https://eslint.vuejs.org/rules/require-component-is.html
|
|
7405
7435
|
*/
|
|
7406
7436
|
'vue/require-component-is'?: Linter.RuleEntry<[]>
|
|
7437
|
+
/**
|
|
7438
|
+
* require components to be the default export
|
|
7439
|
+
* @see https://eslint.vuejs.org/rules/require-default-export.html
|
|
7440
|
+
*/
|
|
7441
|
+
'vue/require-default-export'?: Linter.RuleEntry<[]>
|
|
7407
7442
|
/**
|
|
7408
7443
|
* require default value for props
|
|
7409
7444
|
* @see https://eslint.vuejs.org/rules/require-default-prop.html
|
|
@@ -7473,7 +7508,7 @@ interface RuleOptions {
|
|
|
7473
7508
|
* require control the display of the content inside `<transition>`
|
|
7474
7509
|
* @see https://eslint.vuejs.org/rules/require-toggle-inside-transition.html
|
|
7475
7510
|
*/
|
|
7476
|
-
'vue/require-toggle-inside-transition'?: Linter.RuleEntry<
|
|
7511
|
+
'vue/require-toggle-inside-transition'?: Linter.RuleEntry<VueRequireToggleInsideTransition>
|
|
7477
7512
|
/**
|
|
7478
7513
|
* enforce adding type declarations to object props
|
|
7479
7514
|
* @see https://eslint.vuejs.org/rules/require-typed-object-prop.html
|
|
@@ -7893,6 +7928,11 @@ type AccessorPairs = []|[{
|
|
|
7893
7928
|
setWithoutGet?: boolean
|
|
7894
7929
|
enforceForClassMembers?: boolean
|
|
7895
7930
|
}]
|
|
7931
|
+
// ----- antfu/consistent-chaining -----
|
|
7932
|
+
type AntfuConsistentChaining = []|[{
|
|
7933
|
+
|
|
7934
|
+
allowFirstPropertyAccess?: boolean
|
|
7935
|
+
}]
|
|
7896
7936
|
// ----- antfu/consistent-list-newline -----
|
|
7897
7937
|
type AntfuConsistentListNewline = []|[{
|
|
7898
7938
|
ArrayExpression?: boolean
|
|
@@ -8283,6 +8323,7 @@ type ImportNoExtraneousDependencies = []|[{
|
|
|
8283
8323
|
packageDir?: (string | unknown[])
|
|
8284
8324
|
includeInternal?: boolean
|
|
8285
8325
|
includeTypes?: boolean
|
|
8326
|
+
whitelist?: unknown[]
|
|
8286
8327
|
}]
|
|
8287
8328
|
// ----- import/no-import-module-exports -----
|
|
8288
8329
|
type ImportNoImportModuleExports = []|[{
|
|
@@ -10454,9 +10495,41 @@ type PerfectionistSortClasses = []|[{
|
|
|
10454
10495
|
|
|
10455
10496
|
groups?: (string | string[])[]
|
|
10456
10497
|
|
|
10457
|
-
customGroups?: {
|
|
10498
|
+
customGroups?: ({
|
|
10458
10499
|
[k: string]: (string | string[]) | undefined
|
|
10459
|
-
}
|
|
10500
|
+
} | ({
|
|
10501
|
+
|
|
10502
|
+
groupName?: string
|
|
10503
|
+
|
|
10504
|
+
type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
|
|
10505
|
+
|
|
10506
|
+
order?: ("desc" | "asc")
|
|
10507
|
+
anyOf?: {
|
|
10508
|
+
|
|
10509
|
+
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
|
|
10510
|
+
|
|
10511
|
+
modifiers?: ("protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
|
|
10512
|
+
|
|
10513
|
+
elementNamePattern?: string
|
|
10514
|
+
|
|
10515
|
+
decoratorNamePattern?: string
|
|
10516
|
+
}[]
|
|
10517
|
+
} | {
|
|
10518
|
+
|
|
10519
|
+
groupName?: string
|
|
10520
|
+
|
|
10521
|
+
type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
|
|
10522
|
+
|
|
10523
|
+
order?: ("desc" | "asc")
|
|
10524
|
+
|
|
10525
|
+
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
|
|
10526
|
+
|
|
10527
|
+
modifiers?: ("protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
|
|
10528
|
+
|
|
10529
|
+
elementNamePattern?: string
|
|
10530
|
+
|
|
10531
|
+
decoratorNamePattern?: string
|
|
10532
|
+
})[])
|
|
10460
10533
|
}]
|
|
10461
10534
|
// ----- perfectionist/sort-enums -----
|
|
10462
10535
|
type PerfectionistSortEnums = []|[{
|
|
@@ -10494,6 +10567,8 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
|
|
|
10494
10567
|
|
|
10495
10568
|
internalPattern?: string[]
|
|
10496
10569
|
|
|
10570
|
+
sortSideEffects?: boolean
|
|
10571
|
+
|
|
10497
10572
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10498
10573
|
|
|
10499
10574
|
maxLineLength?: number
|
|
@@ -10644,6 +10719,17 @@ type PerfectionistSortObjects = []|[{
|
|
|
10644
10719
|
[k: string]: (string | string[]) | undefined
|
|
10645
10720
|
}
|
|
10646
10721
|
}]
|
|
10722
|
+
// ----- perfectionist/sort-sets -----
|
|
10723
|
+
type PerfectionistSortSets = []|[{
|
|
10724
|
+
|
|
10725
|
+
type?: ("alphabetical" | "natural" | "line-length")
|
|
10726
|
+
|
|
10727
|
+
order?: ("asc" | "desc")
|
|
10728
|
+
|
|
10729
|
+
ignoreCase?: boolean
|
|
10730
|
+
|
|
10731
|
+
groupKind?: ("mixed" | "literals-first" | "spreads-first")
|
|
10732
|
+
}]
|
|
10647
10733
|
// ----- perfectionist/sort-svelte-attributes -----
|
|
10648
10734
|
type PerfectionistSortSvelteAttributes = []|[{
|
|
10649
10735
|
|
|
@@ -10918,6 +11004,10 @@ type RegexpUnicodeProperty = []|[{
|
|
|
10918
11004
|
type RequireAtomicUpdates = []|[{
|
|
10919
11005
|
allowProperties?: boolean
|
|
10920
11006
|
}]
|
|
11007
|
+
// ----- require-unicode-regexp -----
|
|
11008
|
+
type RequireUnicodeRegexp = []|[{
|
|
11009
|
+
requireFlag?: ("u" | "v")
|
|
11010
|
+
}]
|
|
10921
11011
|
// ----- rest-spread-spacing -----
|
|
10922
11012
|
type RestSpreadSpacing = []|[("always" | "never")]
|
|
10923
11013
|
// ----- semi -----
|
|
@@ -12490,6 +12580,7 @@ type TsBanTsComment = []|[{
|
|
|
12490
12580
|
"ts-check"?: (boolean | "allow-with-description" | {
|
|
12491
12581
|
descriptionFormat?: string
|
|
12492
12582
|
})
|
|
12583
|
+
|
|
12493
12584
|
minimumDescriptionLength?: number
|
|
12494
12585
|
}]
|
|
12495
12586
|
// ----- ts/class-literal-property-style -----
|
|
@@ -12515,29 +12606,41 @@ type TsConsistentReturn = []|[{
|
|
|
12515
12606
|
}]
|
|
12516
12607
|
// ----- ts/consistent-type-assertions -----
|
|
12517
12608
|
type TsConsistentTypeAssertions = []|[({
|
|
12609
|
+
|
|
12518
12610
|
assertionStyle: "never"
|
|
12519
12611
|
} | {
|
|
12612
|
+
|
|
12520
12613
|
assertionStyle: ("as" | "angle-bracket")
|
|
12614
|
+
|
|
12521
12615
|
objectLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
|
|
12522
12616
|
})]
|
|
12523
12617
|
// ----- ts/consistent-type-definitions -----
|
|
12524
12618
|
type TsConsistentTypeDefinitions = []|[("interface" | "type")]
|
|
12525
12619
|
// ----- ts/consistent-type-exports -----
|
|
12526
12620
|
type TsConsistentTypeExports = []|[{
|
|
12621
|
+
|
|
12527
12622
|
fixMixedExportsWithInlineTypeSpecifier?: boolean
|
|
12528
12623
|
}]
|
|
12529
12624
|
// ----- ts/consistent-type-imports -----
|
|
12530
12625
|
type TsConsistentTypeImports = []|[{
|
|
12626
|
+
|
|
12531
12627
|
disallowTypeAnnotations?: boolean
|
|
12628
|
+
|
|
12532
12629
|
fixStyle?: ("separate-type-imports" | "inline-type-imports")
|
|
12630
|
+
|
|
12533
12631
|
prefer?: ("type-imports" | "no-type-imports")
|
|
12534
12632
|
}]
|
|
12535
12633
|
// ----- ts/dot-notation -----
|
|
12536
12634
|
type TsDotNotation = []|[{
|
|
12635
|
+
|
|
12537
12636
|
allowKeywords?: boolean
|
|
12637
|
+
|
|
12538
12638
|
allowPattern?: string
|
|
12639
|
+
|
|
12539
12640
|
allowPrivateClassPropertyAccess?: boolean
|
|
12641
|
+
|
|
12540
12642
|
allowProtectedClassPropertyAccess?: boolean
|
|
12643
|
+
|
|
12541
12644
|
allowIndexSignaturePropertyAccess?: boolean
|
|
12542
12645
|
}]
|
|
12543
12646
|
// ----- ts/explicit-function-return-type -----
|
|
@@ -12569,6 +12672,7 @@ type TsExplicitMemberAccessibility = []|[{
|
|
|
12569
12672
|
properties?: ("explicit" | "no-public" | "off")
|
|
12570
12673
|
parameterProperties?: ("explicit" | "no-public" | "off")
|
|
12571
12674
|
}
|
|
12675
|
+
|
|
12572
12676
|
ignoredMethodNames?: string[]
|
|
12573
12677
|
}]
|
|
12574
12678
|
// ----- ts/explicit-module-boundary-types -----
|
|
@@ -12590,8 +12694,11 @@ type TsInitDeclarations = ([]|["always"] | []|["never"]|["never", {
|
|
|
12590
12694
|
}])
|
|
12591
12695
|
// ----- ts/max-params -----
|
|
12592
12696
|
type TsMaxParams = []|[{
|
|
12593
|
-
|
|
12697
|
+
|
|
12594
12698
|
max?: number
|
|
12699
|
+
|
|
12700
|
+
maximum?: number
|
|
12701
|
+
|
|
12595
12702
|
countVoidThis?: boolean
|
|
12596
12703
|
}]
|
|
12597
12704
|
// ----- ts/member-ordering -----
|
|
@@ -12945,30 +13052,40 @@ interface _TsNamingConvention_MatchRegexConfig {
|
|
|
12945
13052
|
}
|
|
12946
13053
|
// ----- ts/no-base-to-string -----
|
|
12947
13054
|
type TsNoBaseToString = []|[{
|
|
13055
|
+
|
|
12948
13056
|
ignoredTypeNames?: string[]
|
|
12949
13057
|
}]
|
|
12950
13058
|
// ----- ts/no-confusing-void-expression -----
|
|
12951
13059
|
type TsNoConfusingVoidExpression = []|[{
|
|
13060
|
+
|
|
12952
13061
|
ignoreArrowShorthand?: boolean
|
|
13062
|
+
|
|
12953
13063
|
ignoreVoidOperator?: boolean
|
|
12954
13064
|
}]
|
|
12955
13065
|
// ----- ts/no-duplicate-type-constituents -----
|
|
12956
13066
|
type TsNoDuplicateTypeConstituents = []|[{
|
|
13067
|
+
|
|
12957
13068
|
ignoreIntersections?: boolean
|
|
13069
|
+
|
|
12958
13070
|
ignoreUnions?: boolean
|
|
12959
13071
|
}]
|
|
12960
13072
|
// ----- ts/no-empty-function -----
|
|
12961
13073
|
type TsNoEmptyFunction = []|[{
|
|
13074
|
+
|
|
12962
13075
|
allow?: ("functions" | "arrowFunctions" | "generatorFunctions" | "methods" | "generatorMethods" | "getters" | "setters" | "constructors" | "private-constructors" | "protected-constructors" | "asyncFunctions" | "asyncMethods" | "decoratedFunctions" | "overrideMethods")[]
|
|
12963
13076
|
}]
|
|
12964
13077
|
// ----- ts/no-empty-interface -----
|
|
12965
13078
|
type TsNoEmptyInterface = []|[{
|
|
13079
|
+
|
|
12966
13080
|
allowSingleExtends?: boolean
|
|
12967
13081
|
}]
|
|
12968
13082
|
// ----- ts/no-empty-object-type -----
|
|
12969
13083
|
type TsNoEmptyObjectType = []|[{
|
|
13084
|
+
|
|
12970
13085
|
allowInterfaces?: ("always" | "never" | "with-single-extends")
|
|
13086
|
+
|
|
12971
13087
|
allowObjectTypes?: ("always" | "never")
|
|
13088
|
+
|
|
12972
13089
|
allowWithName?: string
|
|
12973
13090
|
}]
|
|
12974
13091
|
// ----- ts/no-explicit-any -----
|
|
@@ -12991,6 +13108,7 @@ type TsNoExtraneousClass = []|[{
|
|
|
12991
13108
|
}]
|
|
12992
13109
|
// ----- ts/no-floating-promises -----
|
|
12993
13110
|
type TsNoFloatingPromises = []|[{
|
|
13111
|
+
|
|
12994
13112
|
allowForKnownSafePromises?: (string | {
|
|
12995
13113
|
from: "file"
|
|
12996
13114
|
name: (string | [string, ...(string)[]])
|
|
@@ -13003,6 +13121,7 @@ type TsNoFloatingPromises = []|[{
|
|
|
13003
13121
|
name: (string | [string, ...(string)[]])
|
|
13004
13122
|
package: string
|
|
13005
13123
|
})[]
|
|
13124
|
+
|
|
13006
13125
|
allowForKnownSafeCalls?: (string | {
|
|
13007
13126
|
from: "file"
|
|
13008
13127
|
name: (string | [string, ...(string)[]])
|
|
@@ -13024,7 +13143,9 @@ type TsNoFloatingPromises = []|[{
|
|
|
13024
13143
|
}]
|
|
13025
13144
|
// ----- ts/no-inferrable-types -----
|
|
13026
13145
|
type TsNoInferrableTypes = []|[{
|
|
13146
|
+
|
|
13027
13147
|
ignoreParameters?: boolean
|
|
13148
|
+
|
|
13028
13149
|
ignoreProperties?: boolean
|
|
13029
13150
|
}]
|
|
13030
13151
|
// ----- ts/no-invalid-this -----
|
|
@@ -13033,7 +13154,9 @@ type TsNoInvalidThis = []|[{
|
|
|
13033
13154
|
}]
|
|
13034
13155
|
// ----- ts/no-invalid-void-type -----
|
|
13035
13156
|
type TsNoInvalidVoidType = []|[{
|
|
13157
|
+
|
|
13036
13158
|
allowInGenericTypeArguments?: (boolean | [string, ...(string)[]])
|
|
13159
|
+
|
|
13037
13160
|
allowAsThisParameter?: boolean
|
|
13038
13161
|
}]
|
|
13039
13162
|
// ----- ts/no-magic-numbers -----
|
|
@@ -13044,26 +13167,38 @@ type TsNoMagicNumbers = []|[{
|
|
|
13044
13167
|
ignoreArrayIndexes?: boolean
|
|
13045
13168
|
ignoreDefaultValues?: boolean
|
|
13046
13169
|
ignoreClassFieldInitialValues?: boolean
|
|
13170
|
+
|
|
13047
13171
|
ignoreNumericLiteralTypes?: boolean
|
|
13172
|
+
|
|
13048
13173
|
ignoreEnums?: boolean
|
|
13174
|
+
|
|
13049
13175
|
ignoreReadonlyClassProperties?: boolean
|
|
13176
|
+
|
|
13050
13177
|
ignoreTypeIndexes?: boolean
|
|
13051
13178
|
}]
|
|
13052
13179
|
// ----- ts/no-meaningless-void-operator -----
|
|
13053
13180
|
type TsNoMeaninglessVoidOperator = []|[{
|
|
13181
|
+
|
|
13054
13182
|
checkNever?: boolean
|
|
13055
13183
|
}]
|
|
13056
13184
|
// ----- ts/no-misused-promises -----
|
|
13057
13185
|
type TsNoMisusedPromises = []|[{
|
|
13058
13186
|
checksConditionals?: boolean
|
|
13059
13187
|
checksVoidReturn?: (boolean | {
|
|
13188
|
+
|
|
13060
13189
|
arguments?: boolean
|
|
13190
|
+
|
|
13061
13191
|
attributes?: boolean
|
|
13192
|
+
|
|
13062
13193
|
inheritedMethods?: boolean
|
|
13194
|
+
|
|
13063
13195
|
properties?: boolean
|
|
13196
|
+
|
|
13064
13197
|
returns?: boolean
|
|
13198
|
+
|
|
13065
13199
|
variables?: boolean
|
|
13066
13200
|
})
|
|
13201
|
+
|
|
13067
13202
|
checksSpreads?: boolean
|
|
13068
13203
|
}]
|
|
13069
13204
|
// ----- ts/no-namespace -----
|
|
@@ -13075,7 +13210,9 @@ type TsNoNamespace = []|[{
|
|
|
13075
13210
|
}]
|
|
13076
13211
|
// ----- ts/no-redeclare -----
|
|
13077
13212
|
type TsNoRedeclare = []|[{
|
|
13213
|
+
|
|
13078
13214
|
builtinGlobals?: boolean
|
|
13215
|
+
|
|
13079
13216
|
ignoreDeclarationMerge?: boolean
|
|
13080
13217
|
}]
|
|
13081
13218
|
// ----- ts/no-require-imports -----
|
|
@@ -13133,11 +13270,17 @@ type TsNoRestrictedTypes = []|[{
|
|
|
13133
13270
|
}]
|
|
13134
13271
|
// ----- ts/no-shadow -----
|
|
13135
13272
|
type TsNoShadow = []|[{
|
|
13273
|
+
|
|
13136
13274
|
builtinGlobals?: boolean
|
|
13275
|
+
|
|
13137
13276
|
hoist?: ("all" | "functions" | "never")
|
|
13277
|
+
|
|
13138
13278
|
allow?: string[]
|
|
13279
|
+
|
|
13139
13280
|
ignoreOnInitialization?: boolean
|
|
13281
|
+
|
|
13140
13282
|
ignoreTypeValueShadow?: boolean
|
|
13283
|
+
|
|
13141
13284
|
ignoreFunctionTypeParameterNameValueShadow?: boolean
|
|
13142
13285
|
}]
|
|
13143
13286
|
// ----- ts/no-this-alias -----
|
|
@@ -13194,24 +13337,40 @@ type TsNoUnusedExpressions = []|[{
|
|
|
13194
13337
|
}]
|
|
13195
13338
|
// ----- ts/no-unused-vars -----
|
|
13196
13339
|
type TsNoUnusedVars = []|[(("all" | "local") | {
|
|
13340
|
+
|
|
13197
13341
|
vars?: ("all" | "local")
|
|
13342
|
+
|
|
13198
13343
|
varsIgnorePattern?: string
|
|
13344
|
+
|
|
13199
13345
|
args?: ("all" | "after-used" | "none")
|
|
13200
|
-
|
|
13346
|
+
|
|
13201
13347
|
argsIgnorePattern?: string
|
|
13348
|
+
|
|
13202
13349
|
caughtErrors?: ("all" | "none")
|
|
13350
|
+
|
|
13203
13351
|
caughtErrorsIgnorePattern?: string
|
|
13352
|
+
|
|
13204
13353
|
destructuredArrayIgnorePattern?: string
|
|
13354
|
+
|
|
13205
13355
|
ignoreClassWithStaticInitBlock?: boolean
|
|
13356
|
+
|
|
13357
|
+
ignoreRestSiblings?: boolean
|
|
13358
|
+
|
|
13206
13359
|
reportUsedIgnorePattern?: boolean
|
|
13207
13360
|
})]
|
|
13208
13361
|
// ----- ts/no-use-before-define -----
|
|
13209
13362
|
type TsNoUseBeforeDefine = []|[("nofunc" | {
|
|
13363
|
+
|
|
13210
13364
|
functions?: boolean
|
|
13365
|
+
|
|
13211
13366
|
classes?: boolean
|
|
13367
|
+
|
|
13212
13368
|
enums?: boolean
|
|
13369
|
+
|
|
13213
13370
|
variables?: boolean
|
|
13371
|
+
|
|
13214
13372
|
typedefs?: boolean
|
|
13373
|
+
|
|
13215
13374
|
ignoreTypeReferences?: boolean
|
|
13216
13375
|
allowNamedExports?: boolean
|
|
13217
13376
|
})]
|
|
@@ -13222,12 +13381,16 @@ type TsNoVarRequires = []|[{
|
|
|
13222
13381
|
}]
|
|
13223
13382
|
// ----- ts/only-throw-error -----
|
|
13224
13383
|
type TsOnlyThrowError = []|[{
|
|
13384
|
+
|
|
13225
13385
|
allowThrowingAny?: boolean
|
|
13386
|
+
|
|
13226
13387
|
allowThrowingUnknown?: boolean
|
|
13227
13388
|
}]
|
|
13228
13389
|
// ----- ts/parameter-properties -----
|
|
13229
13390
|
type TsParameterProperties = []|[{
|
|
13391
|
+
|
|
13230
13392
|
allow?: ("readonly" | "private" | "protected" | "public" | "private readonly" | "protected readonly" | "public readonly")[]
|
|
13393
|
+
|
|
13231
13394
|
prefer?: ("class-property" | "parameter-property")
|
|
13232
13395
|
}]
|
|
13233
13396
|
// ----- ts/prefer-destructuring -----
|
|
@@ -13262,13 +13425,18 @@ type TsPreferDestructuring = []|[({
|
|
|
13262
13425
|
}]
|
|
13263
13426
|
// ----- ts/prefer-literal-enum-member -----
|
|
13264
13427
|
type TsPreferLiteralEnumMember = []|[{
|
|
13428
|
+
|
|
13265
13429
|
allowBitwiseExpressions?: boolean
|
|
13266
13430
|
}]
|
|
13267
13431
|
// ----- ts/prefer-nullish-coalescing -----
|
|
13268
13432
|
type TsPreferNullishCoalescing = []|[{
|
|
13433
|
+
|
|
13269
13434
|
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
|
|
13435
|
+
|
|
13270
13436
|
ignoreConditionalTests?: boolean
|
|
13437
|
+
|
|
13271
13438
|
ignoreMixedLogicalExpressions?: boolean
|
|
13439
|
+
|
|
13272
13440
|
ignorePrimitives?: ({
|
|
13273
13441
|
bigint?: boolean
|
|
13274
13442
|
boolean?: boolean
|
|
@@ -13276,6 +13444,7 @@ type TsPreferNullishCoalescing = []|[{
|
|
|
13276
13444
|
string?: boolean
|
|
13277
13445
|
[k: string]: unknown | undefined
|
|
13278
13446
|
} | true)
|
|
13447
|
+
|
|
13279
13448
|
ignoreTernaryTests?: boolean
|
|
13280
13449
|
}]
|
|
13281
13450
|
// ----- ts/prefer-optional-chain -----
|
|
@@ -13299,14 +13468,17 @@ type TsPreferOptionalChain = []|[{
|
|
|
13299
13468
|
}]
|
|
13300
13469
|
// ----- ts/prefer-promise-reject-errors -----
|
|
13301
13470
|
type TsPreferPromiseRejectErrors = []|[{
|
|
13471
|
+
|
|
13302
13472
|
allowEmptyReject?: boolean
|
|
13303
13473
|
}]
|
|
13304
13474
|
// ----- ts/prefer-readonly -----
|
|
13305
13475
|
type TsPreferReadonly = []|[{
|
|
13476
|
+
|
|
13306
13477
|
onlyInlineLambdas?: boolean
|
|
13307
13478
|
}]
|
|
13308
13479
|
// ----- ts/prefer-readonly-parameter-types -----
|
|
13309
13480
|
type TsPreferReadonlyParameterTypes = []|[{
|
|
13481
|
+
|
|
13310
13482
|
allow?: (string | {
|
|
13311
13483
|
from: "file"
|
|
13312
13484
|
name: (string | [string, ...(string)[]])
|
|
@@ -13319,8 +13491,11 @@ type TsPreferReadonlyParameterTypes = []|[{
|
|
|
13319
13491
|
name: (string | [string, ...(string)[]])
|
|
13320
13492
|
package: string
|
|
13321
13493
|
})[]
|
|
13494
|
+
|
|
13322
13495
|
checkParameterProperties?: boolean
|
|
13496
|
+
|
|
13323
13497
|
ignoreInferredTypes?: boolean
|
|
13498
|
+
|
|
13324
13499
|
treatMethodsAsReadonly?: boolean
|
|
13325
13500
|
}]
|
|
13326
13501
|
// ----- ts/prefer-string-starts-ends-with -----
|
|
@@ -13334,9 +13509,13 @@ type TsPromiseFunctionAsync = []|[{
|
|
|
13334
13509
|
allowAny?: boolean
|
|
13335
13510
|
|
|
13336
13511
|
allowedPromiseNames?: string[]
|
|
13512
|
+
|
|
13337
13513
|
checkArrowFunctions?: boolean
|
|
13514
|
+
|
|
13338
13515
|
checkFunctionDeclarations?: boolean
|
|
13516
|
+
|
|
13339
13517
|
checkFunctionExpressions?: boolean
|
|
13518
|
+
|
|
13340
13519
|
checkMethodDeclarations?: boolean
|
|
13341
13520
|
}]
|
|
13342
13521
|
// ----- ts/require-array-sort-compare -----
|
|
@@ -13377,7 +13556,7 @@ type TsRestrictTemplateExpressions = []|[{
|
|
|
13377
13556
|
allowNever?: boolean
|
|
13378
13557
|
}]
|
|
13379
13558
|
// ----- ts/return-await -----
|
|
13380
|
-
type TsReturnAwait = []|[("
|
|
13559
|
+
type TsReturnAwait = []|[(("always" | "error-handling-correctness-only" | "in-try-catch" | "never") & string)]
|
|
13381
13560
|
// ----- ts/sort-type-constituents -----
|
|
13382
13561
|
type TsSortTypeConstituents = []|[{
|
|
13383
13562
|
|
|
@@ -13391,13 +13570,21 @@ type TsSortTypeConstituents = []|[{
|
|
|
13391
13570
|
}]
|
|
13392
13571
|
// ----- ts/strict-boolean-expressions -----
|
|
13393
13572
|
type TsStrictBooleanExpressions = []|[{
|
|
13573
|
+
|
|
13394
13574
|
allowString?: boolean
|
|
13575
|
+
|
|
13395
13576
|
allowNumber?: boolean
|
|
13577
|
+
|
|
13396
13578
|
allowNullableObject?: boolean
|
|
13579
|
+
|
|
13397
13580
|
allowNullableBoolean?: boolean
|
|
13581
|
+
|
|
13398
13582
|
allowNullableString?: boolean
|
|
13583
|
+
|
|
13399
13584
|
allowNullableNumber?: boolean
|
|
13585
|
+
|
|
13400
13586
|
allowNullableEnum?: boolean
|
|
13587
|
+
|
|
13401
13588
|
allowAny?: boolean
|
|
13402
13589
|
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
|
|
13403
13590
|
}]
|
|
@@ -13410,19 +13597,30 @@ type TsSwitchExhaustivenessCheck = []|[{
|
|
|
13410
13597
|
}]
|
|
13411
13598
|
// ----- ts/triple-slash-reference -----
|
|
13412
13599
|
type TsTripleSlashReference = []|[{
|
|
13600
|
+
|
|
13413
13601
|
lib?: ("always" | "never")
|
|
13602
|
+
|
|
13414
13603
|
path?: ("always" | "never")
|
|
13604
|
+
|
|
13415
13605
|
types?: ("always" | "never" | "prefer-import")
|
|
13416
13606
|
}]
|
|
13417
13607
|
// ----- ts/typedef -----
|
|
13418
13608
|
type TsTypedef = []|[{
|
|
13609
|
+
|
|
13419
13610
|
arrayDestructuring?: boolean
|
|
13611
|
+
|
|
13420
13612
|
arrowParameter?: boolean
|
|
13613
|
+
|
|
13421
13614
|
memberVariableDeclaration?: boolean
|
|
13615
|
+
|
|
13422
13616
|
objectDestructuring?: boolean
|
|
13617
|
+
|
|
13423
13618
|
parameter?: boolean
|
|
13619
|
+
|
|
13424
13620
|
propertyDeclaration?: boolean
|
|
13621
|
+
|
|
13425
13622
|
variableDeclaration?: boolean
|
|
13623
|
+
|
|
13426
13624
|
variableDeclarationIgnoreFunction?: boolean
|
|
13427
13625
|
}]
|
|
13428
13626
|
// ----- ts/unbound-method -----
|
|
@@ -13642,28 +13840,48 @@ type UnocssEnforceClassCompile = []|[{
|
|
|
13642
13840
|
}]
|
|
13643
13841
|
// ----- unused-imports/no-unused-imports -----
|
|
13644
13842
|
type UnusedImportsNoUnusedImports = []|[(("all" | "local") | {
|
|
13843
|
+
|
|
13645
13844
|
vars?: ("all" | "local")
|
|
13845
|
+
|
|
13646
13846
|
varsIgnorePattern?: string
|
|
13847
|
+
|
|
13647
13848
|
args?: ("all" | "after-used" | "none")
|
|
13648
|
-
|
|
13849
|
+
|
|
13649
13850
|
argsIgnorePattern?: string
|
|
13851
|
+
|
|
13650
13852
|
caughtErrors?: ("all" | "none")
|
|
13853
|
+
|
|
13651
13854
|
caughtErrorsIgnorePattern?: string
|
|
13855
|
+
|
|
13652
13856
|
destructuredArrayIgnorePattern?: string
|
|
13857
|
+
|
|
13653
13858
|
ignoreClassWithStaticInitBlock?: boolean
|
|
13859
|
+
|
|
13860
|
+
ignoreRestSiblings?: boolean
|
|
13861
|
+
|
|
13654
13862
|
reportUsedIgnorePattern?: boolean
|
|
13655
13863
|
})]
|
|
13656
13864
|
// ----- unused-imports/no-unused-vars -----
|
|
13657
13865
|
type UnusedImportsNoUnusedVars = []|[(("all" | "local") | {
|
|
13866
|
+
|
|
13658
13867
|
vars?: ("all" | "local")
|
|
13868
|
+
|
|
13659
13869
|
varsIgnorePattern?: string
|
|
13870
|
+
|
|
13660
13871
|
args?: ("all" | "after-used" | "none")
|
|
13661
|
-
|
|
13872
|
+
|
|
13662
13873
|
argsIgnorePattern?: string
|
|
13874
|
+
|
|
13663
13875
|
caughtErrors?: ("all" | "none")
|
|
13876
|
+
|
|
13664
13877
|
caughtErrorsIgnorePattern?: string
|
|
13878
|
+
|
|
13665
13879
|
destructuredArrayIgnorePattern?: string
|
|
13880
|
+
|
|
13666
13881
|
ignoreClassWithStaticInitBlock?: boolean
|
|
13882
|
+
|
|
13883
|
+
ignoreRestSiblings?: boolean
|
|
13884
|
+
|
|
13667
13885
|
reportUsedIgnorePattern?: boolean
|
|
13668
13886
|
})]
|
|
13669
13887
|
// ----- use-isnan -----
|
|
@@ -13807,7 +14025,7 @@ type VueCustomEventNameCasing = ([]|[("kebab-case" | "camelCase")]|[("kebab-case
|
|
|
13807
14025
|
type VueDefineEmitsDeclaration = []|[("type-based" | "type-literal" | "runtime")]
|
|
13808
14026
|
// ----- vue/define-macros-order -----
|
|
13809
14027
|
type VueDefineMacrosOrder = []|[{
|
|
13810
|
-
order?:
|
|
14028
|
+
order?: string[]
|
|
13811
14029
|
defineExposeLast?: boolean
|
|
13812
14030
|
}]
|
|
13813
14031
|
// ----- vue/define-props-declaration -----
|
|
@@ -14342,6 +14560,14 @@ type VueMaxLinesPerBlock = []|[{
|
|
|
14342
14560
|
script?: number
|
|
14343
14561
|
skipBlankLines?: boolean
|
|
14344
14562
|
}]
|
|
14563
|
+
// ----- vue/max-props -----
|
|
14564
|
+
type VueMaxProps = []|[{
|
|
14565
|
+
maxProps?: number
|
|
14566
|
+
}]
|
|
14567
|
+
// ----- vue/max-template-depth -----
|
|
14568
|
+
type VueMaxTemplateDepth = []|[{
|
|
14569
|
+
maxDepth?: number
|
|
14570
|
+
}]
|
|
14345
14571
|
// ----- vue/multi-word-component-names -----
|
|
14346
14572
|
type VueMultiWordComponentNames = []|[{
|
|
14347
14573
|
ignores?: string[]
|
|
@@ -14756,6 +14982,10 @@ type VueRequireMacroVariableName = []|[{
|
|
|
14756
14982
|
type VueRequirePropComment = []|[{
|
|
14757
14983
|
type?: ("JSDoc" | "line" | "block" | "any")
|
|
14758
14984
|
}]
|
|
14985
|
+
// ----- vue/require-toggle-inside-transition -----
|
|
14986
|
+
type VueRequireToggleInsideTransition = []|[{
|
|
14987
|
+
additionalDirectives?: string[]
|
|
14988
|
+
}]
|
|
14759
14989
|
// ----- vue/return-in-computed-property -----
|
|
14760
14990
|
type VueReturnInComputedProperty = []|[{
|
|
14761
14991
|
treatUndefinedAsUnspecified?: boolean
|