@vinicunca/eslint-config 2.11.1 → 2.11.3
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 +2 -2
- package/dist/index.d.cts +206 -106
- package/dist/index.d.ts +206 -106
- package/dist/index.js +1 -1
- package/package.json +20 -20
package/dist/index.d.cts
CHANGED
|
@@ -64,6 +64,11 @@ interface RuleOptions {
|
|
|
64
64
|
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-import-node-modules-by-path.test.ts
|
|
65
65
|
*/
|
|
66
66
|
'antfu/no-import-node-modules-by-path'?: Linter.RuleEntry<[]>
|
|
67
|
+
/**
|
|
68
|
+
* Prevent using top-level await
|
|
69
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-top-level-await.test.ts
|
|
70
|
+
*/
|
|
71
|
+
'antfu/no-top-level-await'?: Linter.RuleEntry<[]>
|
|
67
72
|
/**
|
|
68
73
|
* Do not use `exports =`
|
|
69
74
|
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-ts-export-equal.test.ts
|
|
@@ -651,233 +656,233 @@ interface RuleOptions {
|
|
|
651
656
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
652
657
|
/**
|
|
653
658
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
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.3.1/docs/rules/consistent-type-specifier-style.md
|
|
655
660
|
*/
|
|
656
661
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
|
|
657
662
|
/**
|
|
658
663
|
* Ensure a default export is present, given a default import.
|
|
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.3.1/docs/rules/default.md
|
|
660
665
|
*/
|
|
661
666
|
'import/default'?: Linter.RuleEntry<[]>
|
|
662
667
|
/**
|
|
663
668
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
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.3.1/docs/rules/dynamic-import-chunkname.md
|
|
665
670
|
*/
|
|
666
671
|
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
|
|
667
672
|
/**
|
|
668
673
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
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.3.1/docs/rules/export.md
|
|
670
675
|
*/
|
|
671
676
|
'import/export'?: Linter.RuleEntry<[]>
|
|
672
677
|
/**
|
|
673
678
|
* Ensure all exports appear after other statements.
|
|
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.3.1/docs/rules/exports-last.md
|
|
675
680
|
*/
|
|
676
681
|
'import/exports-last'?: Linter.RuleEntry<[]>
|
|
677
682
|
/**
|
|
678
683
|
* Ensure consistent use of file extension within the import path.
|
|
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.3.1/docs/rules/extensions.md
|
|
680
685
|
*/
|
|
681
686
|
'import/extensions'?: Linter.RuleEntry<ImportExtensions>
|
|
682
687
|
/**
|
|
683
688
|
* Ensure all imports appear before other statements.
|
|
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.3.1/docs/rules/first.md
|
|
685
690
|
*/
|
|
686
691
|
'import/first'?: Linter.RuleEntry<ImportFirst>
|
|
687
692
|
/**
|
|
688
693
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
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.3.1/docs/rules/group-exports.md
|
|
690
695
|
*/
|
|
691
696
|
'import/group-exports'?: Linter.RuleEntry<[]>
|
|
692
697
|
/**
|
|
693
698
|
* Replaced by `import-x/first`.
|
|
694
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
699
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/imports-first.md
|
|
695
700
|
* @deprecated
|
|
696
701
|
*/
|
|
697
702
|
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
|
|
698
703
|
/**
|
|
699
704
|
* Enforce the maximum number of dependencies a module can have.
|
|
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.3.1/docs/rules/max-dependencies.md
|
|
701
706
|
*/
|
|
702
707
|
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
|
|
703
708
|
/**
|
|
704
709
|
* Ensure named imports correspond to a named export in the remote file.
|
|
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.3.1/docs/rules/named.md
|
|
706
711
|
*/
|
|
707
712
|
'import/named'?: Linter.RuleEntry<ImportNamed>
|
|
708
713
|
/**
|
|
709
714
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
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.3.1/docs/rules/namespace.md
|
|
711
716
|
*/
|
|
712
717
|
'import/namespace'?: Linter.RuleEntry<ImportNamespace>
|
|
713
718
|
/**
|
|
714
719
|
* Enforce a newline after import statements.
|
|
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.3.1/docs/rules/newline-after-import.md
|
|
716
721
|
*/
|
|
717
722
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
|
|
718
723
|
/**
|
|
719
724
|
* Forbid import of modules using absolute paths.
|
|
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.3.1/docs/rules/no-absolute-path.md
|
|
721
726
|
*/
|
|
722
727
|
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
|
|
723
728
|
/**
|
|
724
729
|
* Forbid AMD `require` and `define` calls.
|
|
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.3.1/docs/rules/no-amd.md
|
|
726
731
|
*/
|
|
727
732
|
'import/no-amd'?: Linter.RuleEntry<[]>
|
|
728
733
|
/**
|
|
729
734
|
* Forbid anonymous values as default 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.3.1/docs/rules/no-anonymous-default-export.md
|
|
731
736
|
*/
|
|
732
737
|
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
|
|
733
738
|
/**
|
|
734
739
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
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.3.1/docs/rules/no-commonjs.md
|
|
736
741
|
*/
|
|
737
742
|
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
|
|
738
743
|
/**
|
|
739
744
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
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.3.1/docs/rules/no-cycle.md
|
|
741
746
|
*/
|
|
742
747
|
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
|
|
743
748
|
/**
|
|
744
749
|
* Forbid default exports.
|
|
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.3.1/docs/rules/no-default-export.md
|
|
746
751
|
*/
|
|
747
752
|
'import/no-default-export'?: Linter.RuleEntry<[]>
|
|
748
753
|
/**
|
|
749
754
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
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.3.1/docs/rules/no-deprecated.md
|
|
751
756
|
*/
|
|
752
757
|
'import/no-deprecated'?: Linter.RuleEntry<[]>
|
|
753
758
|
/**
|
|
754
759
|
* Forbid repeated import of the same module in multiple places.
|
|
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.3.1/docs/rules/no-duplicates.md
|
|
756
761
|
*/
|
|
757
762
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
|
|
758
763
|
/**
|
|
759
764
|
* Forbid `require()` calls with expressions.
|
|
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.3.1/docs/rules/no-dynamic-require.md
|
|
761
766
|
*/
|
|
762
767
|
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
|
|
763
768
|
/**
|
|
764
769
|
* Forbid empty named import blocks.
|
|
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.3.1/docs/rules/no-empty-named-blocks.md
|
|
766
771
|
*/
|
|
767
772
|
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
768
773
|
/**
|
|
769
774
|
* Forbid the use of extraneous packages.
|
|
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.3.1/docs/rules/no-extraneous-dependencies.md
|
|
771
776
|
*/
|
|
772
777
|
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
|
|
773
778
|
/**
|
|
774
779
|
* Forbid import statements with CommonJS module.exports.
|
|
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.3.1/docs/rules/no-import-module-exports.md
|
|
776
781
|
*/
|
|
777
782
|
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
|
|
778
783
|
/**
|
|
779
784
|
* Forbid importing the submodules of other modules.
|
|
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.3.1/docs/rules/no-internal-modules.md
|
|
781
786
|
*/
|
|
782
787
|
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
|
|
783
788
|
/**
|
|
784
789
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
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.3.1/docs/rules/no-mutable-exports.md
|
|
786
791
|
*/
|
|
787
792
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
788
793
|
/**
|
|
789
794
|
* Forbid use of exported name as identifier 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.3.1/docs/rules/no-named-as-default.md
|
|
791
796
|
*/
|
|
792
797
|
'import/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
793
798
|
/**
|
|
794
799
|
* Forbid use of exported name as property of default export.
|
|
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.3.1/docs/rules/no-named-as-default-member.md
|
|
796
801
|
*/
|
|
797
802
|
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
798
803
|
/**
|
|
799
804
|
* Forbid named default 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.3.1/docs/rules/no-named-default.md
|
|
801
806
|
*/
|
|
802
807
|
'import/no-named-default'?: Linter.RuleEntry<[]>
|
|
803
808
|
/**
|
|
804
809
|
* Forbid named exports.
|
|
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.3.1/docs/rules/no-named-export.md
|
|
806
811
|
*/
|
|
807
812
|
'import/no-named-export'?: Linter.RuleEntry<[]>
|
|
808
813
|
/**
|
|
809
814
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
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.3.1/docs/rules/no-namespace.md
|
|
811
816
|
*/
|
|
812
817
|
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
|
|
813
818
|
/**
|
|
814
819
|
* Forbid Node.js builtin modules.
|
|
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.3.1/docs/rules/no-nodejs-modules.md
|
|
816
821
|
*/
|
|
817
822
|
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
|
|
818
823
|
/**
|
|
819
824
|
* Forbid importing packages through relative paths.
|
|
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.3.1/docs/rules/no-relative-packages.md
|
|
821
826
|
*/
|
|
822
827
|
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
|
|
823
828
|
/**
|
|
824
829
|
* Forbid importing modules from parent directories.
|
|
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.3.1/docs/rules/no-relative-parent-imports.md
|
|
826
831
|
*/
|
|
827
832
|
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
|
|
828
833
|
/**
|
|
829
834
|
* Forbid importing a default export by a different name.
|
|
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.3.1/docs/rules/no-rename-default.md
|
|
831
836
|
*/
|
|
832
837
|
'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>
|
|
833
838
|
/**
|
|
834
839
|
* Enforce which files can be imported in a given folder.
|
|
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.3.1/docs/rules/no-restricted-paths.md
|
|
836
841
|
*/
|
|
837
842
|
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
|
|
838
843
|
/**
|
|
839
844
|
* Forbid a module from importing itself.
|
|
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.3.1/docs/rules/no-self-import.md
|
|
841
846
|
*/
|
|
842
847
|
'import/no-self-import'?: Linter.RuleEntry<[]>
|
|
843
848
|
/**
|
|
844
849
|
* Forbid unassigned imports.
|
|
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.3.1/docs/rules/no-unassigned-import.md
|
|
846
851
|
*/
|
|
847
852
|
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
|
|
848
853
|
/**
|
|
849
854
|
* Ensure imports point to a file/module that can be resolved.
|
|
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.3.1/docs/rules/no-unresolved.md
|
|
851
856
|
*/
|
|
852
857
|
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
|
|
853
858
|
/**
|
|
854
859
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
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.3.1/docs/rules/no-unused-modules.md
|
|
856
861
|
*/
|
|
857
862
|
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
|
|
858
863
|
/**
|
|
859
864
|
* Forbid unnecessary path segments in import and require statements.
|
|
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.3.1/docs/rules/no-useless-path-segments.md
|
|
861
866
|
*/
|
|
862
867
|
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
|
|
863
868
|
/**
|
|
864
869
|
* Forbid webpack loader syntax in imports.
|
|
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.3.1/docs/rules/no-webpack-loader-syntax.md
|
|
866
871
|
*/
|
|
867
872
|
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
868
873
|
/**
|
|
869
874
|
* Enforce a convention in module import order.
|
|
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.3.1/docs/rules/order.md
|
|
871
876
|
*/
|
|
872
877
|
'import/order'?: Linter.RuleEntry<ImportOrder>
|
|
873
878
|
/**
|
|
874
879
|
* Prefer a default export if module exports a single name or multiple names.
|
|
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.3.1/docs/rules/prefer-default-export.md
|
|
876
881
|
*/
|
|
877
882
|
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
|
|
878
883
|
/**
|
|
879
884
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
880
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
885
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/unambiguous.md
|
|
881
886
|
*/
|
|
882
887
|
'import/unambiguous'?: Linter.RuleEntry<[]>
|
|
883
888
|
/**
|
|
@@ -1453,6 +1458,34 @@ interface RuleOptions {
|
|
|
1453
1458
|
* @see https://eslint.org/docs/latest/rules/logical-assignment-operators
|
|
1454
1459
|
*/
|
|
1455
1460
|
'logical-assignment-operators'?: Linter.RuleEntry<LogicalAssignmentOperators>
|
|
1461
|
+
/**
|
|
1462
|
+
* Require languages for fenced code blocks.
|
|
1463
|
+
*/
|
|
1464
|
+
'markdown/fenced-code-language'?: Linter.RuleEntry<MarkdownFencedCodeLanguage>
|
|
1465
|
+
/**
|
|
1466
|
+
* Enforce heading levels increment by one.
|
|
1467
|
+
*/
|
|
1468
|
+
'markdown/heading-increment'?: Linter.RuleEntry<[]>
|
|
1469
|
+
/**
|
|
1470
|
+
* Disallow duplicate headings in the same document.
|
|
1471
|
+
*/
|
|
1472
|
+
'markdown/no-duplicate-headings'?: Linter.RuleEntry<[]>
|
|
1473
|
+
/**
|
|
1474
|
+
* Disallow empty links.
|
|
1475
|
+
*/
|
|
1476
|
+
'markdown/no-empty-links'?: Linter.RuleEntry<[]>
|
|
1477
|
+
/**
|
|
1478
|
+
* Disallow HTML tags.
|
|
1479
|
+
*/
|
|
1480
|
+
'markdown/no-html'?: Linter.RuleEntry<MarkdownNoHtml>
|
|
1481
|
+
/**
|
|
1482
|
+
* Disallow invalid label references.
|
|
1483
|
+
*/
|
|
1484
|
+
'markdown/no-invalid-label-refs'?: Linter.RuleEntry<[]>
|
|
1485
|
+
/**
|
|
1486
|
+
* Disallow missing label references.
|
|
1487
|
+
*/
|
|
1488
|
+
'markdown/no-missing-label-refs'?: Linter.RuleEntry<[]>
|
|
1456
1489
|
/**
|
|
1457
1490
|
* Enforce a maximum number of classes per file
|
|
1458
1491
|
* @see https://eslint.org/docs/latest/rules/max-classes-per-file
|
|
@@ -4739,103 +4772,103 @@ interface RuleOptions {
|
|
|
4739
4772
|
'template-tag-spacing'?: Linter.RuleEntry<TemplateTagSpacing>
|
|
4740
4773
|
/**
|
|
4741
4774
|
* require .spec test file pattern
|
|
4742
|
-
* @see https://github.com/
|
|
4775
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-filename.md
|
|
4743
4776
|
*/
|
|
4744
4777
|
'test/consistent-test-filename'?: Linter.RuleEntry<TestConsistentTestFilename>
|
|
4745
4778
|
/**
|
|
4746
4779
|
* enforce using test or it but not both
|
|
4747
|
-
* @see https://github.com/
|
|
4780
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-it.md
|
|
4748
4781
|
*/
|
|
4749
4782
|
'test/consistent-test-it'?: Linter.RuleEntry<TestConsistentTestIt>
|
|
4750
4783
|
/**
|
|
4751
4784
|
* enforce having expectation in test body
|
|
4752
|
-
* @see https://github.com/
|
|
4785
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/expect-expect.md
|
|
4753
4786
|
*/
|
|
4754
4787
|
'test/expect-expect'?: Linter.RuleEntry<TestExpectExpect>
|
|
4755
4788
|
/**
|
|
4756
4789
|
* enforce a maximum number of expect per test
|
|
4757
|
-
* @see https://github.com/
|
|
4790
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/max-expects.md
|
|
4758
4791
|
*/
|
|
4759
4792
|
'test/max-expects'?: Linter.RuleEntry<TestMaxExpects>
|
|
4760
4793
|
/**
|
|
4761
4794
|
* require describe block to be less than set max value or default value
|
|
4762
|
-
* @see https://github.com/
|
|
4795
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/max-nested-describe.md
|
|
4763
4796
|
*/
|
|
4764
4797
|
'test/max-nested-describe'?: Linter.RuleEntry<TestMaxNestedDescribe>
|
|
4765
4798
|
/**
|
|
4766
4799
|
* disallow alias methods
|
|
4767
|
-
* @see https://github.com/
|
|
4800
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-alias-methods.md
|
|
4768
4801
|
*/
|
|
4769
4802
|
'test/no-alias-methods'?: Linter.RuleEntry<[]>
|
|
4770
4803
|
/**
|
|
4771
4804
|
* disallow commented out tests
|
|
4772
|
-
* @see https://github.com/
|
|
4805
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-commented-out-tests.md
|
|
4773
4806
|
*/
|
|
4774
4807
|
'test/no-commented-out-tests'?: Linter.RuleEntry<[]>
|
|
4775
4808
|
/**
|
|
4776
4809
|
* disallow conditional expects
|
|
4777
|
-
* @see https://github.com/
|
|
4810
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-expect.md
|
|
4778
4811
|
*/
|
|
4779
4812
|
'test/no-conditional-expect'?: Linter.RuleEntry<[]>
|
|
4780
4813
|
/**
|
|
4781
4814
|
* disallow conditional tests
|
|
4782
|
-
* @see https://github.com/
|
|
4815
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-in-test.md
|
|
4783
4816
|
*/
|
|
4784
4817
|
'test/no-conditional-in-test'?: Linter.RuleEntry<[]>
|
|
4785
4818
|
/**
|
|
4786
4819
|
* disallow conditional tests
|
|
4787
|
-
* @see https://github.com/
|
|
4820
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-tests.md
|
|
4788
4821
|
*/
|
|
4789
4822
|
'test/no-conditional-tests'?: Linter.RuleEntry<[]>
|
|
4790
4823
|
/**
|
|
4791
4824
|
* disallow disabled tests
|
|
4792
|
-
* @see https://github.com/
|
|
4825
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-disabled-tests.md
|
|
4793
4826
|
*/
|
|
4794
4827
|
'test/no-disabled-tests'?: Linter.RuleEntry<[]>
|
|
4795
4828
|
/**
|
|
4796
4829
|
* disallow using a callback in asynchronous tests and hooks
|
|
4797
|
-
* @see https://github.com/
|
|
4830
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-done-callback.md
|
|
4798
4831
|
* @deprecated
|
|
4799
4832
|
*/
|
|
4800
4833
|
'test/no-done-callback'?: Linter.RuleEntry<[]>
|
|
4801
4834
|
/**
|
|
4802
4835
|
* disallow duplicate hooks and teardown hooks
|
|
4803
|
-
* @see https://github.com/
|
|
4836
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-duplicate-hooks.md
|
|
4804
4837
|
*/
|
|
4805
4838
|
'test/no-duplicate-hooks'?: Linter.RuleEntry<[]>
|
|
4806
4839
|
/**
|
|
4807
4840
|
* disallow focused tests
|
|
4808
|
-
* @see https://github.com/
|
|
4841
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-focused-tests.md
|
|
4809
4842
|
*/
|
|
4810
4843
|
'test/no-focused-tests'?: Linter.RuleEntry<TestNoFocusedTests>
|
|
4811
4844
|
/**
|
|
4812
4845
|
* disallow setup and teardown hooks
|
|
4813
|
-
* @see https://github.com/
|
|
4846
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-hooks.md
|
|
4814
4847
|
*/
|
|
4815
4848
|
'test/no-hooks'?: Linter.RuleEntry<TestNoHooks>
|
|
4816
4849
|
/**
|
|
4817
4850
|
* disallow identical titles
|
|
4818
|
-
* @see https://github.com/
|
|
4851
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-identical-title.md
|
|
4819
4852
|
*/
|
|
4820
4853
|
'test/no-identical-title'?: Linter.RuleEntry<[]>
|
|
4821
4854
|
/**
|
|
4822
4855
|
* disallow importing `node:test`
|
|
4823
|
-
* @see https://github.com/
|
|
4856
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-import-node-test.md
|
|
4824
4857
|
*/
|
|
4825
4858
|
'test/no-import-node-test'?: Linter.RuleEntry<[]>
|
|
4826
4859
|
/**
|
|
4827
4860
|
* disallow string interpolation in snapshots
|
|
4828
|
-
* @see https://github.com/
|
|
4861
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-interpolation-in-snapshots.md
|
|
4829
4862
|
*/
|
|
4830
4863
|
'test/no-interpolation-in-snapshots'?: Linter.RuleEntry<[]>
|
|
4831
4864
|
/**
|
|
4832
4865
|
* disallow large snapshots
|
|
4833
|
-
* @see https://github.com/
|
|
4866
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-large-snapshots.md
|
|
4834
4867
|
*/
|
|
4835
4868
|
'test/no-large-snapshots'?: Linter.RuleEntry<TestNoLargeSnapshots>
|
|
4836
4869
|
/**
|
|
4837
4870
|
* disallow importing from __mocks__ directory
|
|
4838
|
-
* @see https://github.com/
|
|
4871
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-mocks-import.md
|
|
4839
4872
|
*/
|
|
4840
4873
|
'test/no-mocks-import'?: Linter.RuleEntry<[]>
|
|
4841
4874
|
/**
|
|
@@ -4845,202 +4878,202 @@ interface RuleOptions {
|
|
|
4845
4878
|
'test/no-only-tests'?: Linter.RuleEntry<TestNoOnlyTests>
|
|
4846
4879
|
/**
|
|
4847
4880
|
* disallow the use of certain matchers
|
|
4848
|
-
* @see https://github.com/
|
|
4881
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-restricted-matchers.md
|
|
4849
4882
|
*/
|
|
4850
4883
|
'test/no-restricted-matchers'?: Linter.RuleEntry<TestNoRestrictedMatchers>
|
|
4851
4884
|
/**
|
|
4852
4885
|
* disallow specific `vi.` methods
|
|
4853
|
-
* @see https://github.com/
|
|
4886
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-restricted-vi-methods.md
|
|
4854
4887
|
*/
|
|
4855
4888
|
'test/no-restricted-vi-methods'?: Linter.RuleEntry<TestNoRestrictedViMethods>
|
|
4856
4889
|
/**
|
|
4857
4890
|
* disallow using `expect` outside of `it` or `test` blocks
|
|
4858
|
-
* @see https://github.com/
|
|
4891
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-standalone-expect.md
|
|
4859
4892
|
*/
|
|
4860
4893
|
'test/no-standalone-expect'?: Linter.RuleEntry<TestNoStandaloneExpect>
|
|
4861
4894
|
/**
|
|
4862
4895
|
* disallow using `test` as a prefix
|
|
4863
|
-
* @see https://github.com/
|
|
4896
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-prefixes.md
|
|
4864
4897
|
*/
|
|
4865
4898
|
'test/no-test-prefixes'?: Linter.RuleEntry<[]>
|
|
4866
4899
|
/**
|
|
4867
4900
|
* disallow return statements in tests
|
|
4868
|
-
* @see https://github.com/
|
|
4901
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-return-statement.md
|
|
4869
4902
|
*/
|
|
4870
4903
|
'test/no-test-return-statement'?: Linter.RuleEntry<[]>
|
|
4871
4904
|
/**
|
|
4872
4905
|
* Enforce padding around `afterAll` blocks
|
|
4873
|
-
* @see https://github.com/
|
|
4906
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-after-all-blocks.md
|
|
4874
4907
|
*/
|
|
4875
4908
|
'test/padding-around-after-all-blocks'?: Linter.RuleEntry<[]>
|
|
4876
4909
|
/**
|
|
4877
4910
|
* Enforce padding around `afterEach` blocks
|
|
4878
|
-
* @see https://github.com/
|
|
4911
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-after-each-blocks.md
|
|
4879
4912
|
*/
|
|
4880
4913
|
'test/padding-around-after-each-blocks'?: Linter.RuleEntry<[]>
|
|
4881
4914
|
/**
|
|
4882
4915
|
* Enforce padding around vitest functions
|
|
4883
|
-
* @see https://github.com/
|
|
4916
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-all.md
|
|
4884
4917
|
*/
|
|
4885
4918
|
'test/padding-around-all'?: Linter.RuleEntry<[]>
|
|
4886
4919
|
/**
|
|
4887
4920
|
* Enforce padding around `beforeAll` blocks
|
|
4888
|
-
* @see https://github.com/
|
|
4921
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-before-all-blocks.md
|
|
4889
4922
|
*/
|
|
4890
4923
|
'test/padding-around-before-all-blocks'?: Linter.RuleEntry<[]>
|
|
4891
4924
|
/**
|
|
4892
4925
|
* Enforce padding around `beforeEach` blocks
|
|
4893
|
-
* @see https://github.com/
|
|
4926
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-before-each-blocks.md
|
|
4894
4927
|
*/
|
|
4895
4928
|
'test/padding-around-before-each-blocks'?: Linter.RuleEntry<[]>
|
|
4896
4929
|
/**
|
|
4897
4930
|
* Enforce padding around `describe` blocks
|
|
4898
|
-
* @see https://github.com/
|
|
4931
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-describe-blocks.md
|
|
4899
4932
|
*/
|
|
4900
4933
|
'test/padding-around-describe-blocks'?: Linter.RuleEntry<[]>
|
|
4901
4934
|
/**
|
|
4902
4935
|
* Enforce padding around `expect` groups
|
|
4903
|
-
* @see https://github.com/
|
|
4936
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-expect-groups.md
|
|
4904
4937
|
*/
|
|
4905
4938
|
'test/padding-around-expect-groups'?: Linter.RuleEntry<[]>
|
|
4906
4939
|
/**
|
|
4907
4940
|
* Enforce padding around afterAll blocks
|
|
4908
|
-
* @see https://github.com/
|
|
4941
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-test-blocks.md
|
|
4909
4942
|
*/
|
|
4910
4943
|
'test/padding-around-test-blocks'?: Linter.RuleEntry<[]>
|
|
4911
4944
|
/**
|
|
4912
4945
|
* enforce using `toBeCalledWith()` or `toHaveBeenCalledWith()`
|
|
4913
|
-
* @see https://github.com/
|
|
4946
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-called-with.md
|
|
4914
4947
|
*/
|
|
4915
4948
|
'test/prefer-called-with'?: Linter.RuleEntry<[]>
|
|
4916
4949
|
/**
|
|
4917
4950
|
* enforce using the built-in comparison matchers
|
|
4918
|
-
* @see https://github.com/
|
|
4951
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-comparison-matcher.md
|
|
4919
4952
|
*/
|
|
4920
4953
|
'test/prefer-comparison-matcher'?: Linter.RuleEntry<[]>
|
|
4921
4954
|
/**
|
|
4922
4955
|
* enforce using `each` rather than manual loops
|
|
4923
|
-
* @see https://github.com/
|
|
4956
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-each.md
|
|
4924
4957
|
*/
|
|
4925
4958
|
'test/prefer-each'?: Linter.RuleEntry<[]>
|
|
4926
4959
|
/**
|
|
4927
4960
|
* enforce using the built-in quality matchers
|
|
4928
|
-
* @see https://github.com/
|
|
4961
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-equality-matcher.md
|
|
4929
4962
|
*/
|
|
4930
4963
|
'test/prefer-equality-matcher'?: Linter.RuleEntry<[]>
|
|
4931
4964
|
/**
|
|
4932
4965
|
* enforce using expect assertions instead of callbacks
|
|
4933
|
-
* @see https://github.com/
|
|
4966
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-expect-assertions.md
|
|
4934
4967
|
*/
|
|
4935
4968
|
'test/prefer-expect-assertions'?: Linter.RuleEntry<TestPreferExpectAssertions>
|
|
4936
4969
|
/**
|
|
4937
4970
|
* enforce using `expect().resolves` over `expect(await ...)` syntax
|
|
4938
|
-
* @see https://github.com/
|
|
4971
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-expect-resolves.md
|
|
4939
4972
|
*/
|
|
4940
4973
|
'test/prefer-expect-resolves'?: Linter.RuleEntry<[]>
|
|
4941
4974
|
/**
|
|
4942
4975
|
* enforce having hooks in consistent order
|
|
4943
|
-
* @see https://github.com/
|
|
4976
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-hooks-in-order.md
|
|
4944
4977
|
*/
|
|
4945
4978
|
'test/prefer-hooks-in-order'?: Linter.RuleEntry<[]>
|
|
4946
4979
|
/**
|
|
4947
4980
|
* enforce having hooks before any test cases
|
|
4948
|
-
* @see https://github.com/
|
|
4981
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-hooks-on-top.md
|
|
4949
4982
|
*/
|
|
4950
4983
|
'test/prefer-hooks-on-top'?: Linter.RuleEntry<[]>
|
|
4951
4984
|
/**
|
|
4952
4985
|
* enforce lowercase titles
|
|
4953
|
-
* @see https://github.com/
|
|
4986
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-lowercase-title.md
|
|
4954
4987
|
*/
|
|
4955
4988
|
'test/prefer-lowercase-title'?: Linter.RuleEntry<TestPreferLowercaseTitle>
|
|
4956
4989
|
/**
|
|
4957
4990
|
* enforce mock resolved/rejected shorthands for promises
|
|
4958
|
-
* @see https://github.com/
|
|
4991
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-mock-promise-shorthand.md
|
|
4959
4992
|
*/
|
|
4960
4993
|
'test/prefer-mock-promise-shorthand'?: Linter.RuleEntry<[]>
|
|
4961
4994
|
/**
|
|
4962
4995
|
* enforce including a hint with external snapshots
|
|
4963
|
-
* @see https://github.com/
|
|
4996
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-snapshot-hint.md
|
|
4964
4997
|
*/
|
|
4965
4998
|
'test/prefer-snapshot-hint'?: Linter.RuleEntry<TestPreferSnapshotHint>
|
|
4966
4999
|
/**
|
|
4967
5000
|
* enforce using `vi.spyOn`
|
|
4968
|
-
* @see https://github.com/
|
|
5001
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-spy-on.md
|
|
4969
5002
|
*/
|
|
4970
5003
|
'test/prefer-spy-on'?: Linter.RuleEntry<[]>
|
|
4971
5004
|
/**
|
|
4972
5005
|
* enforce strict equal over equal
|
|
4973
|
-
* @see https://github.com/
|
|
5006
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-strict-equal.md
|
|
4974
5007
|
*/
|
|
4975
5008
|
'test/prefer-strict-equal'?: Linter.RuleEntry<[]>
|
|
4976
5009
|
/**
|
|
4977
5010
|
* enforce using toBe()
|
|
4978
|
-
* @see https://github.com/
|
|
5011
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be.md
|
|
4979
5012
|
*/
|
|
4980
5013
|
'test/prefer-to-be'?: Linter.RuleEntry<[]>
|
|
4981
5014
|
/**
|
|
4982
5015
|
* enforce using toBeFalsy()
|
|
4983
|
-
* @see https://github.com/
|
|
5016
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be-falsy.md
|
|
4984
5017
|
*/
|
|
4985
5018
|
'test/prefer-to-be-falsy'?: Linter.RuleEntry<[]>
|
|
4986
5019
|
/**
|
|
4987
5020
|
* enforce using toBeObject()
|
|
4988
|
-
* @see https://github.com/
|
|
5021
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be-object.md
|
|
4989
5022
|
*/
|
|
4990
5023
|
'test/prefer-to-be-object'?: Linter.RuleEntry<[]>
|
|
4991
5024
|
/**
|
|
4992
5025
|
* enforce using `toBeTruthy`
|
|
4993
|
-
* @see https://github.com/
|
|
5026
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be-truthy.md
|
|
4994
5027
|
*/
|
|
4995
5028
|
'test/prefer-to-be-truthy'?: Linter.RuleEntry<[]>
|
|
4996
5029
|
/**
|
|
4997
5030
|
* enforce using toContain()
|
|
4998
|
-
* @see https://github.com/
|
|
5031
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-contain.md
|
|
4999
5032
|
*/
|
|
5000
5033
|
'test/prefer-to-contain'?: Linter.RuleEntry<[]>
|
|
5001
5034
|
/**
|
|
5002
5035
|
* enforce using toHaveLength()
|
|
5003
|
-
* @see https://github.com/
|
|
5036
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-length.md
|
|
5004
5037
|
*/
|
|
5005
5038
|
'test/prefer-to-have-length'?: Linter.RuleEntry<[]>
|
|
5006
5039
|
/**
|
|
5007
5040
|
* enforce using `test.todo`
|
|
5008
|
-
* @see https://github.com/
|
|
5041
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-todo.md
|
|
5009
5042
|
*/
|
|
5010
5043
|
'test/prefer-todo'?: Linter.RuleEntry<[]>
|
|
5011
5044
|
/**
|
|
5012
5045
|
* require setup and teardown to be within a hook
|
|
5013
|
-
* @see https://github.com/
|
|
5046
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
|
|
5014
5047
|
*/
|
|
5015
5048
|
'test/require-hook'?: Linter.RuleEntry<TestRequireHook>
|
|
5016
5049
|
/**
|
|
5017
5050
|
* require local Test Context for concurrent snapshot tests
|
|
5018
|
-
* @see https://github.com/
|
|
5051
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-local-test-context-for-concurrent-snapshots.md
|
|
5019
5052
|
*/
|
|
5020
5053
|
'test/require-local-test-context-for-concurrent-snapshots'?: Linter.RuleEntry<[]>
|
|
5021
5054
|
/**
|
|
5022
5055
|
* require toThrow() to be called with an error message
|
|
5023
|
-
* @see https://github.com/
|
|
5056
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-to-throw-message.md
|
|
5024
5057
|
*/
|
|
5025
5058
|
'test/require-to-throw-message'?: Linter.RuleEntry<[]>
|
|
5026
5059
|
/**
|
|
5027
5060
|
* enforce that all tests are in a top-level describe
|
|
5028
|
-
* @see https://github.com/
|
|
5061
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-top-level-describe.md
|
|
5029
5062
|
*/
|
|
5030
5063
|
'test/require-top-level-describe'?: Linter.RuleEntry<TestRequireTopLevelDescribe>
|
|
5031
5064
|
/**
|
|
5032
5065
|
* enforce valid describe callback
|
|
5033
|
-
* @see https://github.com/
|
|
5066
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-describe-callback.md
|
|
5034
5067
|
*/
|
|
5035
5068
|
'test/valid-describe-callback'?: Linter.RuleEntry<[]>
|
|
5036
5069
|
/**
|
|
5037
5070
|
* enforce valid `expect()` usage
|
|
5038
|
-
* @see https://github.com/
|
|
5071
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-expect.md
|
|
5039
5072
|
*/
|
|
5040
5073
|
'test/valid-expect'?: Linter.RuleEntry<TestValidExpect>
|
|
5041
5074
|
/**
|
|
5042
5075
|
* enforce valid titles
|
|
5043
|
-
* @see https://github.com/
|
|
5076
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-title.md
|
|
5044
5077
|
*/
|
|
5045
5078
|
'test/valid-title'?: Linter.RuleEntry<TestValidTitle>
|
|
5046
5079
|
/**
|
|
@@ -8824,6 +8857,7 @@ type JsdocRequireParam = []|[{
|
|
|
8824
8857
|
enableRestElementFixer?: boolean
|
|
8825
8858
|
enableRootFixer?: boolean
|
|
8826
8859
|
exemptedBy?: string[]
|
|
8860
|
+
ignoreWhenAllParamsMissing?: boolean
|
|
8827
8861
|
unnamedRootBase?: string[]
|
|
8828
8862
|
useDefaultObjectProperties?: boolean
|
|
8829
8863
|
}]
|
|
@@ -9610,6 +9644,14 @@ type LinesBetweenClassMembers = []|[({
|
|
|
9610
9644
|
type LogicalAssignmentOperators = (([]|["always"]|["always", {
|
|
9611
9645
|
enforceForIfStatements?: boolean
|
|
9612
9646
|
}] | ["never"]) & unknown[])
|
|
9647
|
+
// ----- markdown/fenced-code-language -----
|
|
9648
|
+
type MarkdownFencedCodeLanguage = []|[{
|
|
9649
|
+
required?: string[]
|
|
9650
|
+
}]
|
|
9651
|
+
// ----- markdown/no-html -----
|
|
9652
|
+
type MarkdownNoHtml = []|[{
|
|
9653
|
+
allowed?: string[]
|
|
9654
|
+
}]
|
|
9613
9655
|
// ----- max-classes-per-file -----
|
|
9614
9656
|
type MaxClassesPerFile = []|[(number | {
|
|
9615
9657
|
ignoreExpressions?: boolean
|
|
@@ -10466,6 +10508,10 @@ type PerfectionistSortArrayIncludes = []|[{
|
|
|
10466
10508
|
ignoreCase?: boolean
|
|
10467
10509
|
|
|
10468
10510
|
groupKind?: ("mixed" | "literals-first" | "spreads-first")
|
|
10511
|
+
|
|
10512
|
+
partitionByComment?: (string[] | boolean | string)
|
|
10513
|
+
|
|
10514
|
+
partitionByNewLine?: boolean
|
|
10469
10515
|
}]
|
|
10470
10516
|
// ----- perfectionist/sort-astro-attributes -----
|
|
10471
10517
|
type PerfectionistSortAstroAttributes = []|[{
|
|
@@ -10545,6 +10591,8 @@ type PerfectionistSortEnums = []|[{
|
|
|
10545
10591
|
forceNumericSort?: boolean
|
|
10546
10592
|
|
|
10547
10593
|
partitionByComment?: (string[] | boolean | string)
|
|
10594
|
+
|
|
10595
|
+
partitionByNewLine?: boolean
|
|
10548
10596
|
}]
|
|
10549
10597
|
// ----- perfectionist/sort-exports -----
|
|
10550
10598
|
type PerfectionistSortExports = []|[{
|
|
@@ -10554,6 +10602,12 @@ type PerfectionistSortExports = []|[{
|
|
|
10554
10602
|
order?: ("asc" | "desc")
|
|
10555
10603
|
|
|
10556
10604
|
ignoreCase?: boolean
|
|
10605
|
+
|
|
10606
|
+
partitionByComment?: (string[] | boolean | string)
|
|
10607
|
+
|
|
10608
|
+
partitionByNewLine?: boolean
|
|
10609
|
+
|
|
10610
|
+
groupKind?: ("mixed" | "values-first" | "types-first")
|
|
10557
10611
|
}]
|
|
10558
10612
|
// ----- perfectionist/sort-imports -----
|
|
10559
10613
|
type PerfectionistSortImports = []|[_PerfectionistSortImportsSortImports]
|
|
@@ -10604,6 +10658,8 @@ type PerfectionistSortInterfaces = []|[{
|
|
|
10604
10658
|
|
|
10605
10659
|
ignorePattern?: string[]
|
|
10606
10660
|
|
|
10661
|
+
partitionByComment?: (boolean | string | string[])
|
|
10662
|
+
|
|
10607
10663
|
partitionByNewLine?: boolean
|
|
10608
10664
|
|
|
10609
10665
|
groupKind?: ("mixed" | "optional-first" | "required-first")
|
|
@@ -10624,6 +10680,10 @@ type PerfectionistSortIntersectionTypes = []|[{
|
|
|
10624
10680
|
ignoreCase?: boolean
|
|
10625
10681
|
|
|
10626
10682
|
groups?: (string | string[])[]
|
|
10683
|
+
|
|
10684
|
+
partitionByComment?: (string[] | boolean | string)
|
|
10685
|
+
|
|
10686
|
+
partitionByNewLine?: boolean
|
|
10627
10687
|
}]
|
|
10628
10688
|
// ----- perfectionist/sort-jsx-props -----
|
|
10629
10689
|
type PerfectionistSortJsxProps = []|[{
|
|
@@ -10650,6 +10710,10 @@ type PerfectionistSortMaps = []|[{
|
|
|
10650
10710
|
order?: ("asc" | "desc")
|
|
10651
10711
|
|
|
10652
10712
|
ignoreCase?: boolean
|
|
10713
|
+
|
|
10714
|
+
partitionByComment?: (string[] | boolean | string)
|
|
10715
|
+
|
|
10716
|
+
partitionByNewLine?: boolean
|
|
10653
10717
|
}]
|
|
10654
10718
|
// ----- perfectionist/sort-named-exports -----
|
|
10655
10719
|
type PerfectionistSortNamedExports = []|[{
|
|
@@ -10661,6 +10725,10 @@ type PerfectionistSortNamedExports = []|[{
|
|
|
10661
10725
|
ignoreCase?: boolean
|
|
10662
10726
|
|
|
10663
10727
|
groupKind?: ("mixed" | "values-first" | "types-first")
|
|
10728
|
+
|
|
10729
|
+
partitionByComment?: (string[] | boolean | string)
|
|
10730
|
+
|
|
10731
|
+
partitionByNewLine?: boolean
|
|
10664
10732
|
}]
|
|
10665
10733
|
// ----- perfectionist/sort-named-imports -----
|
|
10666
10734
|
type PerfectionistSortNamedImports = []|[{
|
|
@@ -10674,6 +10742,10 @@ type PerfectionistSortNamedImports = []|[{
|
|
|
10674
10742
|
ignoreAlias?: boolean
|
|
10675
10743
|
|
|
10676
10744
|
groupKind?: ("mixed" | "values-first" | "types-first")
|
|
10745
|
+
|
|
10746
|
+
partitionByComment?: (string[] | boolean | string)
|
|
10747
|
+
|
|
10748
|
+
partitionByNewLine?: boolean
|
|
10677
10749
|
}]
|
|
10678
10750
|
// ----- perfectionist/sort-object-types -----
|
|
10679
10751
|
type PerfectionistSortObjectTypes = []|[{
|
|
@@ -10684,6 +10756,8 @@ type PerfectionistSortObjectTypes = []|[{
|
|
|
10684
10756
|
|
|
10685
10757
|
ignoreCase?: boolean
|
|
10686
10758
|
|
|
10759
|
+
partitionByComment?: (string[] | boolean | string)
|
|
10760
|
+
|
|
10687
10761
|
partitionByNewLine?: boolean
|
|
10688
10762
|
|
|
10689
10763
|
groupKind?: ("mixed" | "required-first" | "optional-first")
|
|
@@ -10729,6 +10803,10 @@ type PerfectionistSortSets = []|[{
|
|
|
10729
10803
|
ignoreCase?: boolean
|
|
10730
10804
|
|
|
10731
10805
|
groupKind?: ("mixed" | "literals-first" | "spreads-first")
|
|
10806
|
+
|
|
10807
|
+
partitionByComment?: (string[] | boolean | string)
|
|
10808
|
+
|
|
10809
|
+
partitionByNewLine?: boolean
|
|
10732
10810
|
}]
|
|
10733
10811
|
// ----- perfectionist/sort-svelte-attributes -----
|
|
10734
10812
|
type PerfectionistSortSvelteAttributes = []|[{
|
|
@@ -10764,6 +10842,10 @@ type PerfectionistSortUnionTypes = []|[{
|
|
|
10764
10842
|
ignoreCase?: boolean
|
|
10765
10843
|
|
|
10766
10844
|
groups?: (string | string[])[]
|
|
10845
|
+
|
|
10846
|
+
partitionByComment?: (string[] | boolean | string)
|
|
10847
|
+
|
|
10848
|
+
partitionByNewLine?: boolean
|
|
10767
10849
|
}]
|
|
10768
10850
|
// ----- perfectionist/sort-variable-declarations -----
|
|
10769
10851
|
type PerfectionistSortVariableDeclarations = []|[{
|
|
@@ -10773,6 +10855,10 @@ type PerfectionistSortVariableDeclarations = []|[{
|
|
|
10773
10855
|
order?: ("asc" | "desc")
|
|
10774
10856
|
|
|
10775
10857
|
ignoreCase?: boolean
|
|
10858
|
+
|
|
10859
|
+
partitionByComment?: (string[] | boolean | string)
|
|
10860
|
+
|
|
10861
|
+
partitionByNewLine?: boolean
|
|
10776
10862
|
}]
|
|
10777
10863
|
// ----- perfectionist/sort-vue-attributes -----
|
|
10778
10864
|
type PerfectionistSortVueAttributes = []|[{
|
|
@@ -12229,6 +12315,7 @@ type SvelteHtmlQuotes = []|[{
|
|
|
12229
12315
|
type SvelteHtmlSelfClosing = []|[({
|
|
12230
12316
|
void?: ("never" | "always" | "ignore")
|
|
12231
12317
|
normal?: ("never" | "always" | "ignore")
|
|
12318
|
+
foreign?: ("never" | "always" | "ignore")
|
|
12232
12319
|
component?: ("never" | "always" | "ignore")
|
|
12233
12320
|
svelte?: ("never" | "always" | "ignore")
|
|
12234
12321
|
} | ("all" | "html" | "none"))]
|
|
@@ -13558,6 +13645,19 @@ type TsRestrictTemplateExpressions = []|[{
|
|
|
13558
13645
|
allowRegExp?: boolean
|
|
13559
13646
|
|
|
13560
13647
|
allowNever?: boolean
|
|
13648
|
+
|
|
13649
|
+
allow?: (string | {
|
|
13650
|
+
from: "file"
|
|
13651
|
+
name: (string | [string, ...(string)[]])
|
|
13652
|
+
path?: string
|
|
13653
|
+
} | {
|
|
13654
|
+
from: "lib"
|
|
13655
|
+
name: (string | [string, ...(string)[]])
|
|
13656
|
+
} | {
|
|
13657
|
+
from: "package"
|
|
13658
|
+
name: (string | [string, ...(string)[]])
|
|
13659
|
+
package: string
|
|
13660
|
+
})[]
|
|
13561
13661
|
}]
|
|
13562
13662
|
// ----- ts/return-await -----
|
|
13563
13663
|
type TsReturnAwait = []|[(("always" | "error-handling-correctness-only" | "in-try-catch" | "never") & string)]
|