@vinicunca/eslint-config 2.11.2 → 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 +1 -1
- package/dist/index.d.cts +170 -106
- package/dist/index.d.ts +170 -106
- package/package.json +20 -20
package/dist/index.d.ts
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
|
/**
|
|
@@ -4767,103 +4772,103 @@ interface RuleOptions {
|
|
|
4767
4772
|
'template-tag-spacing'?: Linter.RuleEntry<TemplateTagSpacing>
|
|
4768
4773
|
/**
|
|
4769
4774
|
* require .spec test file pattern
|
|
4770
|
-
* @see https://github.com/
|
|
4775
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-filename.md
|
|
4771
4776
|
*/
|
|
4772
4777
|
'test/consistent-test-filename'?: Linter.RuleEntry<TestConsistentTestFilename>
|
|
4773
4778
|
/**
|
|
4774
4779
|
* enforce using test or it but not both
|
|
4775
|
-
* @see https://github.com/
|
|
4780
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-it.md
|
|
4776
4781
|
*/
|
|
4777
4782
|
'test/consistent-test-it'?: Linter.RuleEntry<TestConsistentTestIt>
|
|
4778
4783
|
/**
|
|
4779
4784
|
* enforce having expectation in test body
|
|
4780
|
-
* @see https://github.com/
|
|
4785
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/expect-expect.md
|
|
4781
4786
|
*/
|
|
4782
4787
|
'test/expect-expect'?: Linter.RuleEntry<TestExpectExpect>
|
|
4783
4788
|
/**
|
|
4784
4789
|
* enforce a maximum number of expect per test
|
|
4785
|
-
* @see https://github.com/
|
|
4790
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/max-expects.md
|
|
4786
4791
|
*/
|
|
4787
4792
|
'test/max-expects'?: Linter.RuleEntry<TestMaxExpects>
|
|
4788
4793
|
/**
|
|
4789
4794
|
* require describe block to be less than set max value or default value
|
|
4790
|
-
* @see https://github.com/
|
|
4795
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/max-nested-describe.md
|
|
4791
4796
|
*/
|
|
4792
4797
|
'test/max-nested-describe'?: Linter.RuleEntry<TestMaxNestedDescribe>
|
|
4793
4798
|
/**
|
|
4794
4799
|
* disallow alias methods
|
|
4795
|
-
* @see https://github.com/
|
|
4800
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-alias-methods.md
|
|
4796
4801
|
*/
|
|
4797
4802
|
'test/no-alias-methods'?: Linter.RuleEntry<[]>
|
|
4798
4803
|
/**
|
|
4799
4804
|
* disallow commented out tests
|
|
4800
|
-
* @see https://github.com/
|
|
4805
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-commented-out-tests.md
|
|
4801
4806
|
*/
|
|
4802
4807
|
'test/no-commented-out-tests'?: Linter.RuleEntry<[]>
|
|
4803
4808
|
/**
|
|
4804
4809
|
* disallow conditional expects
|
|
4805
|
-
* @see https://github.com/
|
|
4810
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-expect.md
|
|
4806
4811
|
*/
|
|
4807
4812
|
'test/no-conditional-expect'?: Linter.RuleEntry<[]>
|
|
4808
4813
|
/**
|
|
4809
4814
|
* disallow conditional tests
|
|
4810
|
-
* @see https://github.com/
|
|
4815
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-in-test.md
|
|
4811
4816
|
*/
|
|
4812
4817
|
'test/no-conditional-in-test'?: Linter.RuleEntry<[]>
|
|
4813
4818
|
/**
|
|
4814
4819
|
* disallow conditional tests
|
|
4815
|
-
* @see https://github.com/
|
|
4820
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-tests.md
|
|
4816
4821
|
*/
|
|
4817
4822
|
'test/no-conditional-tests'?: Linter.RuleEntry<[]>
|
|
4818
4823
|
/**
|
|
4819
4824
|
* disallow disabled tests
|
|
4820
|
-
* @see https://github.com/
|
|
4825
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-disabled-tests.md
|
|
4821
4826
|
*/
|
|
4822
4827
|
'test/no-disabled-tests'?: Linter.RuleEntry<[]>
|
|
4823
4828
|
/**
|
|
4824
4829
|
* disallow using a callback in asynchronous tests and hooks
|
|
4825
|
-
* @see https://github.com/
|
|
4830
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-done-callback.md
|
|
4826
4831
|
* @deprecated
|
|
4827
4832
|
*/
|
|
4828
4833
|
'test/no-done-callback'?: Linter.RuleEntry<[]>
|
|
4829
4834
|
/**
|
|
4830
4835
|
* disallow duplicate hooks and teardown hooks
|
|
4831
|
-
* @see https://github.com/
|
|
4836
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-duplicate-hooks.md
|
|
4832
4837
|
*/
|
|
4833
4838
|
'test/no-duplicate-hooks'?: Linter.RuleEntry<[]>
|
|
4834
4839
|
/**
|
|
4835
4840
|
* disallow focused tests
|
|
4836
|
-
* @see https://github.com/
|
|
4841
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-focused-tests.md
|
|
4837
4842
|
*/
|
|
4838
4843
|
'test/no-focused-tests'?: Linter.RuleEntry<TestNoFocusedTests>
|
|
4839
4844
|
/**
|
|
4840
4845
|
* disallow setup and teardown hooks
|
|
4841
|
-
* @see https://github.com/
|
|
4846
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-hooks.md
|
|
4842
4847
|
*/
|
|
4843
4848
|
'test/no-hooks'?: Linter.RuleEntry<TestNoHooks>
|
|
4844
4849
|
/**
|
|
4845
4850
|
* disallow identical titles
|
|
4846
|
-
* @see https://github.com/
|
|
4851
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-identical-title.md
|
|
4847
4852
|
*/
|
|
4848
4853
|
'test/no-identical-title'?: Linter.RuleEntry<[]>
|
|
4849
4854
|
/**
|
|
4850
4855
|
* disallow importing `node:test`
|
|
4851
|
-
* @see https://github.com/
|
|
4856
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-import-node-test.md
|
|
4852
4857
|
*/
|
|
4853
4858
|
'test/no-import-node-test'?: Linter.RuleEntry<[]>
|
|
4854
4859
|
/**
|
|
4855
4860
|
* disallow string interpolation in snapshots
|
|
4856
|
-
* @see https://github.com/
|
|
4861
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-interpolation-in-snapshots.md
|
|
4857
4862
|
*/
|
|
4858
4863
|
'test/no-interpolation-in-snapshots'?: Linter.RuleEntry<[]>
|
|
4859
4864
|
/**
|
|
4860
4865
|
* disallow large snapshots
|
|
4861
|
-
* @see https://github.com/
|
|
4866
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-large-snapshots.md
|
|
4862
4867
|
*/
|
|
4863
4868
|
'test/no-large-snapshots'?: Linter.RuleEntry<TestNoLargeSnapshots>
|
|
4864
4869
|
/**
|
|
4865
4870
|
* disallow importing from __mocks__ directory
|
|
4866
|
-
* @see https://github.com/
|
|
4871
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-mocks-import.md
|
|
4867
4872
|
*/
|
|
4868
4873
|
'test/no-mocks-import'?: Linter.RuleEntry<[]>
|
|
4869
4874
|
/**
|
|
@@ -4873,202 +4878,202 @@ interface RuleOptions {
|
|
|
4873
4878
|
'test/no-only-tests'?: Linter.RuleEntry<TestNoOnlyTests>
|
|
4874
4879
|
/**
|
|
4875
4880
|
* disallow the use of certain matchers
|
|
4876
|
-
* @see https://github.com/
|
|
4881
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-restricted-matchers.md
|
|
4877
4882
|
*/
|
|
4878
4883
|
'test/no-restricted-matchers'?: Linter.RuleEntry<TestNoRestrictedMatchers>
|
|
4879
4884
|
/**
|
|
4880
4885
|
* disallow specific `vi.` methods
|
|
4881
|
-
* @see https://github.com/
|
|
4886
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-restricted-vi-methods.md
|
|
4882
4887
|
*/
|
|
4883
4888
|
'test/no-restricted-vi-methods'?: Linter.RuleEntry<TestNoRestrictedViMethods>
|
|
4884
4889
|
/**
|
|
4885
4890
|
* disallow using `expect` outside of `it` or `test` blocks
|
|
4886
|
-
* @see https://github.com/
|
|
4891
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-standalone-expect.md
|
|
4887
4892
|
*/
|
|
4888
4893
|
'test/no-standalone-expect'?: Linter.RuleEntry<TestNoStandaloneExpect>
|
|
4889
4894
|
/**
|
|
4890
4895
|
* disallow using `test` as a prefix
|
|
4891
|
-
* @see https://github.com/
|
|
4896
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-prefixes.md
|
|
4892
4897
|
*/
|
|
4893
4898
|
'test/no-test-prefixes'?: Linter.RuleEntry<[]>
|
|
4894
4899
|
/**
|
|
4895
4900
|
* disallow return statements in tests
|
|
4896
|
-
* @see https://github.com/
|
|
4901
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-return-statement.md
|
|
4897
4902
|
*/
|
|
4898
4903
|
'test/no-test-return-statement'?: Linter.RuleEntry<[]>
|
|
4899
4904
|
/**
|
|
4900
4905
|
* Enforce padding around `afterAll` blocks
|
|
4901
|
-
* @see https://github.com/
|
|
4906
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-after-all-blocks.md
|
|
4902
4907
|
*/
|
|
4903
4908
|
'test/padding-around-after-all-blocks'?: Linter.RuleEntry<[]>
|
|
4904
4909
|
/**
|
|
4905
4910
|
* Enforce padding around `afterEach` blocks
|
|
4906
|
-
* @see https://github.com/
|
|
4911
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-after-each-blocks.md
|
|
4907
4912
|
*/
|
|
4908
4913
|
'test/padding-around-after-each-blocks'?: Linter.RuleEntry<[]>
|
|
4909
4914
|
/**
|
|
4910
4915
|
* Enforce padding around vitest functions
|
|
4911
|
-
* @see https://github.com/
|
|
4916
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-all.md
|
|
4912
4917
|
*/
|
|
4913
4918
|
'test/padding-around-all'?: Linter.RuleEntry<[]>
|
|
4914
4919
|
/**
|
|
4915
4920
|
* Enforce padding around `beforeAll` blocks
|
|
4916
|
-
* @see https://github.com/
|
|
4921
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-before-all-blocks.md
|
|
4917
4922
|
*/
|
|
4918
4923
|
'test/padding-around-before-all-blocks'?: Linter.RuleEntry<[]>
|
|
4919
4924
|
/**
|
|
4920
4925
|
* Enforce padding around `beforeEach` blocks
|
|
4921
|
-
* @see https://github.com/
|
|
4926
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-before-each-blocks.md
|
|
4922
4927
|
*/
|
|
4923
4928
|
'test/padding-around-before-each-blocks'?: Linter.RuleEntry<[]>
|
|
4924
4929
|
/**
|
|
4925
4930
|
* Enforce padding around `describe` blocks
|
|
4926
|
-
* @see https://github.com/
|
|
4931
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-describe-blocks.md
|
|
4927
4932
|
*/
|
|
4928
4933
|
'test/padding-around-describe-blocks'?: Linter.RuleEntry<[]>
|
|
4929
4934
|
/**
|
|
4930
4935
|
* Enforce padding around `expect` groups
|
|
4931
|
-
* @see https://github.com/
|
|
4936
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-expect-groups.md
|
|
4932
4937
|
*/
|
|
4933
4938
|
'test/padding-around-expect-groups'?: Linter.RuleEntry<[]>
|
|
4934
4939
|
/**
|
|
4935
4940
|
* Enforce padding around afterAll blocks
|
|
4936
|
-
* @see https://github.com/
|
|
4941
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-test-blocks.md
|
|
4937
4942
|
*/
|
|
4938
4943
|
'test/padding-around-test-blocks'?: Linter.RuleEntry<[]>
|
|
4939
4944
|
/**
|
|
4940
4945
|
* enforce using `toBeCalledWith()` or `toHaveBeenCalledWith()`
|
|
4941
|
-
* @see https://github.com/
|
|
4946
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-called-with.md
|
|
4942
4947
|
*/
|
|
4943
4948
|
'test/prefer-called-with'?: Linter.RuleEntry<[]>
|
|
4944
4949
|
/**
|
|
4945
4950
|
* enforce using the built-in comparison matchers
|
|
4946
|
-
* @see https://github.com/
|
|
4951
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-comparison-matcher.md
|
|
4947
4952
|
*/
|
|
4948
4953
|
'test/prefer-comparison-matcher'?: Linter.RuleEntry<[]>
|
|
4949
4954
|
/**
|
|
4950
4955
|
* enforce using `each` rather than manual loops
|
|
4951
|
-
* @see https://github.com/
|
|
4956
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-each.md
|
|
4952
4957
|
*/
|
|
4953
4958
|
'test/prefer-each'?: Linter.RuleEntry<[]>
|
|
4954
4959
|
/**
|
|
4955
4960
|
* enforce using the built-in quality matchers
|
|
4956
|
-
* @see https://github.com/
|
|
4961
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-equality-matcher.md
|
|
4957
4962
|
*/
|
|
4958
4963
|
'test/prefer-equality-matcher'?: Linter.RuleEntry<[]>
|
|
4959
4964
|
/**
|
|
4960
4965
|
* enforce using expect assertions instead of callbacks
|
|
4961
|
-
* @see https://github.com/
|
|
4966
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-expect-assertions.md
|
|
4962
4967
|
*/
|
|
4963
4968
|
'test/prefer-expect-assertions'?: Linter.RuleEntry<TestPreferExpectAssertions>
|
|
4964
4969
|
/**
|
|
4965
4970
|
* enforce using `expect().resolves` over `expect(await ...)` syntax
|
|
4966
|
-
* @see https://github.com/
|
|
4971
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-expect-resolves.md
|
|
4967
4972
|
*/
|
|
4968
4973
|
'test/prefer-expect-resolves'?: Linter.RuleEntry<[]>
|
|
4969
4974
|
/**
|
|
4970
4975
|
* enforce having hooks in consistent order
|
|
4971
|
-
* @see https://github.com/
|
|
4976
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-hooks-in-order.md
|
|
4972
4977
|
*/
|
|
4973
4978
|
'test/prefer-hooks-in-order'?: Linter.RuleEntry<[]>
|
|
4974
4979
|
/**
|
|
4975
4980
|
* enforce having hooks before any test cases
|
|
4976
|
-
* @see https://github.com/
|
|
4981
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-hooks-on-top.md
|
|
4977
4982
|
*/
|
|
4978
4983
|
'test/prefer-hooks-on-top'?: Linter.RuleEntry<[]>
|
|
4979
4984
|
/**
|
|
4980
4985
|
* enforce lowercase titles
|
|
4981
|
-
* @see https://github.com/
|
|
4986
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-lowercase-title.md
|
|
4982
4987
|
*/
|
|
4983
4988
|
'test/prefer-lowercase-title'?: Linter.RuleEntry<TestPreferLowercaseTitle>
|
|
4984
4989
|
/**
|
|
4985
4990
|
* enforce mock resolved/rejected shorthands for promises
|
|
4986
|
-
* @see https://github.com/
|
|
4991
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-mock-promise-shorthand.md
|
|
4987
4992
|
*/
|
|
4988
4993
|
'test/prefer-mock-promise-shorthand'?: Linter.RuleEntry<[]>
|
|
4989
4994
|
/**
|
|
4990
4995
|
* enforce including a hint with external snapshots
|
|
4991
|
-
* @see https://github.com/
|
|
4996
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-snapshot-hint.md
|
|
4992
4997
|
*/
|
|
4993
4998
|
'test/prefer-snapshot-hint'?: Linter.RuleEntry<TestPreferSnapshotHint>
|
|
4994
4999
|
/**
|
|
4995
5000
|
* enforce using `vi.spyOn`
|
|
4996
|
-
* @see https://github.com/
|
|
5001
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-spy-on.md
|
|
4997
5002
|
*/
|
|
4998
5003
|
'test/prefer-spy-on'?: Linter.RuleEntry<[]>
|
|
4999
5004
|
/**
|
|
5000
5005
|
* enforce strict equal over equal
|
|
5001
|
-
* @see https://github.com/
|
|
5006
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-strict-equal.md
|
|
5002
5007
|
*/
|
|
5003
5008
|
'test/prefer-strict-equal'?: Linter.RuleEntry<[]>
|
|
5004
5009
|
/**
|
|
5005
5010
|
* enforce using toBe()
|
|
5006
|
-
* @see https://github.com/
|
|
5011
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be.md
|
|
5007
5012
|
*/
|
|
5008
5013
|
'test/prefer-to-be'?: Linter.RuleEntry<[]>
|
|
5009
5014
|
/**
|
|
5010
5015
|
* enforce using toBeFalsy()
|
|
5011
|
-
* @see https://github.com/
|
|
5016
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be-falsy.md
|
|
5012
5017
|
*/
|
|
5013
5018
|
'test/prefer-to-be-falsy'?: Linter.RuleEntry<[]>
|
|
5014
5019
|
/**
|
|
5015
5020
|
* enforce using toBeObject()
|
|
5016
|
-
* @see https://github.com/
|
|
5021
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be-object.md
|
|
5017
5022
|
*/
|
|
5018
5023
|
'test/prefer-to-be-object'?: Linter.RuleEntry<[]>
|
|
5019
5024
|
/**
|
|
5020
5025
|
* enforce using `toBeTruthy`
|
|
5021
|
-
* @see https://github.com/
|
|
5026
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be-truthy.md
|
|
5022
5027
|
*/
|
|
5023
5028
|
'test/prefer-to-be-truthy'?: Linter.RuleEntry<[]>
|
|
5024
5029
|
/**
|
|
5025
5030
|
* enforce using toContain()
|
|
5026
|
-
* @see https://github.com/
|
|
5031
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-contain.md
|
|
5027
5032
|
*/
|
|
5028
5033
|
'test/prefer-to-contain'?: Linter.RuleEntry<[]>
|
|
5029
5034
|
/**
|
|
5030
5035
|
* enforce using toHaveLength()
|
|
5031
|
-
* @see https://github.com/
|
|
5036
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-length.md
|
|
5032
5037
|
*/
|
|
5033
5038
|
'test/prefer-to-have-length'?: Linter.RuleEntry<[]>
|
|
5034
5039
|
/**
|
|
5035
5040
|
* enforce using `test.todo`
|
|
5036
|
-
* @see https://github.com/
|
|
5041
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-todo.md
|
|
5037
5042
|
*/
|
|
5038
5043
|
'test/prefer-todo'?: Linter.RuleEntry<[]>
|
|
5039
5044
|
/**
|
|
5040
5045
|
* require setup and teardown to be within a hook
|
|
5041
|
-
* @see https://github.com/
|
|
5046
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
|
|
5042
5047
|
*/
|
|
5043
5048
|
'test/require-hook'?: Linter.RuleEntry<TestRequireHook>
|
|
5044
5049
|
/**
|
|
5045
5050
|
* require local Test Context for concurrent snapshot tests
|
|
5046
|
-
* @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
|
|
5047
5052
|
*/
|
|
5048
5053
|
'test/require-local-test-context-for-concurrent-snapshots'?: Linter.RuleEntry<[]>
|
|
5049
5054
|
/**
|
|
5050
5055
|
* require toThrow() to be called with an error message
|
|
5051
|
-
* @see https://github.com/
|
|
5056
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-to-throw-message.md
|
|
5052
5057
|
*/
|
|
5053
5058
|
'test/require-to-throw-message'?: Linter.RuleEntry<[]>
|
|
5054
5059
|
/**
|
|
5055
5060
|
* enforce that all tests are in a top-level describe
|
|
5056
|
-
* @see https://github.com/
|
|
5061
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-top-level-describe.md
|
|
5057
5062
|
*/
|
|
5058
5063
|
'test/require-top-level-describe'?: Linter.RuleEntry<TestRequireTopLevelDescribe>
|
|
5059
5064
|
/**
|
|
5060
5065
|
* enforce valid describe callback
|
|
5061
|
-
* @see https://github.com/
|
|
5066
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-describe-callback.md
|
|
5062
5067
|
*/
|
|
5063
5068
|
'test/valid-describe-callback'?: Linter.RuleEntry<[]>
|
|
5064
5069
|
/**
|
|
5065
5070
|
* enforce valid `expect()` usage
|
|
5066
|
-
* @see https://github.com/
|
|
5071
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-expect.md
|
|
5067
5072
|
*/
|
|
5068
5073
|
'test/valid-expect'?: Linter.RuleEntry<TestValidExpect>
|
|
5069
5074
|
/**
|
|
5070
5075
|
* enforce valid titles
|
|
5071
|
-
* @see https://github.com/
|
|
5076
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-title.md
|
|
5072
5077
|
*/
|
|
5073
5078
|
'test/valid-title'?: Linter.RuleEntry<TestValidTitle>
|
|
5074
5079
|
/**
|
|
@@ -8852,6 +8857,7 @@ type JsdocRequireParam = []|[{
|
|
|
8852
8857
|
enableRestElementFixer?: boolean
|
|
8853
8858
|
enableRootFixer?: boolean
|
|
8854
8859
|
exemptedBy?: string[]
|
|
8860
|
+
ignoreWhenAllParamsMissing?: boolean
|
|
8855
8861
|
unnamedRootBase?: string[]
|
|
8856
8862
|
useDefaultObjectProperties?: boolean
|
|
8857
8863
|
}]
|
|
@@ -10502,6 +10508,10 @@ type PerfectionistSortArrayIncludes = []|[{
|
|
|
10502
10508
|
ignoreCase?: boolean
|
|
10503
10509
|
|
|
10504
10510
|
groupKind?: ("mixed" | "literals-first" | "spreads-first")
|
|
10511
|
+
|
|
10512
|
+
partitionByComment?: (string[] | boolean | string)
|
|
10513
|
+
|
|
10514
|
+
partitionByNewLine?: boolean
|
|
10505
10515
|
}]
|
|
10506
10516
|
// ----- perfectionist/sort-astro-attributes -----
|
|
10507
10517
|
type PerfectionistSortAstroAttributes = []|[{
|
|
@@ -10581,6 +10591,8 @@ type PerfectionistSortEnums = []|[{
|
|
|
10581
10591
|
forceNumericSort?: boolean
|
|
10582
10592
|
|
|
10583
10593
|
partitionByComment?: (string[] | boolean | string)
|
|
10594
|
+
|
|
10595
|
+
partitionByNewLine?: boolean
|
|
10584
10596
|
}]
|
|
10585
10597
|
// ----- perfectionist/sort-exports -----
|
|
10586
10598
|
type PerfectionistSortExports = []|[{
|
|
@@ -10590,6 +10602,12 @@ type PerfectionistSortExports = []|[{
|
|
|
10590
10602
|
order?: ("asc" | "desc")
|
|
10591
10603
|
|
|
10592
10604
|
ignoreCase?: boolean
|
|
10605
|
+
|
|
10606
|
+
partitionByComment?: (string[] | boolean | string)
|
|
10607
|
+
|
|
10608
|
+
partitionByNewLine?: boolean
|
|
10609
|
+
|
|
10610
|
+
groupKind?: ("mixed" | "values-first" | "types-first")
|
|
10593
10611
|
}]
|
|
10594
10612
|
// ----- perfectionist/sort-imports -----
|
|
10595
10613
|
type PerfectionistSortImports = []|[_PerfectionistSortImportsSortImports]
|
|
@@ -10640,6 +10658,8 @@ type PerfectionistSortInterfaces = []|[{
|
|
|
10640
10658
|
|
|
10641
10659
|
ignorePattern?: string[]
|
|
10642
10660
|
|
|
10661
|
+
partitionByComment?: (boolean | string | string[])
|
|
10662
|
+
|
|
10643
10663
|
partitionByNewLine?: boolean
|
|
10644
10664
|
|
|
10645
10665
|
groupKind?: ("mixed" | "optional-first" | "required-first")
|
|
@@ -10660,6 +10680,10 @@ type PerfectionistSortIntersectionTypes = []|[{
|
|
|
10660
10680
|
ignoreCase?: boolean
|
|
10661
10681
|
|
|
10662
10682
|
groups?: (string | string[])[]
|
|
10683
|
+
|
|
10684
|
+
partitionByComment?: (string[] | boolean | string)
|
|
10685
|
+
|
|
10686
|
+
partitionByNewLine?: boolean
|
|
10663
10687
|
}]
|
|
10664
10688
|
// ----- perfectionist/sort-jsx-props -----
|
|
10665
10689
|
type PerfectionistSortJsxProps = []|[{
|
|
@@ -10686,6 +10710,10 @@ type PerfectionistSortMaps = []|[{
|
|
|
10686
10710
|
order?: ("asc" | "desc")
|
|
10687
10711
|
|
|
10688
10712
|
ignoreCase?: boolean
|
|
10713
|
+
|
|
10714
|
+
partitionByComment?: (string[] | boolean | string)
|
|
10715
|
+
|
|
10716
|
+
partitionByNewLine?: boolean
|
|
10689
10717
|
}]
|
|
10690
10718
|
// ----- perfectionist/sort-named-exports -----
|
|
10691
10719
|
type PerfectionistSortNamedExports = []|[{
|
|
@@ -10697,6 +10725,10 @@ type PerfectionistSortNamedExports = []|[{
|
|
|
10697
10725
|
ignoreCase?: boolean
|
|
10698
10726
|
|
|
10699
10727
|
groupKind?: ("mixed" | "values-first" | "types-first")
|
|
10728
|
+
|
|
10729
|
+
partitionByComment?: (string[] | boolean | string)
|
|
10730
|
+
|
|
10731
|
+
partitionByNewLine?: boolean
|
|
10700
10732
|
}]
|
|
10701
10733
|
// ----- perfectionist/sort-named-imports -----
|
|
10702
10734
|
type PerfectionistSortNamedImports = []|[{
|
|
@@ -10710,6 +10742,10 @@ type PerfectionistSortNamedImports = []|[{
|
|
|
10710
10742
|
ignoreAlias?: boolean
|
|
10711
10743
|
|
|
10712
10744
|
groupKind?: ("mixed" | "values-first" | "types-first")
|
|
10745
|
+
|
|
10746
|
+
partitionByComment?: (string[] | boolean | string)
|
|
10747
|
+
|
|
10748
|
+
partitionByNewLine?: boolean
|
|
10713
10749
|
}]
|
|
10714
10750
|
// ----- perfectionist/sort-object-types -----
|
|
10715
10751
|
type PerfectionistSortObjectTypes = []|[{
|
|
@@ -10720,6 +10756,8 @@ type PerfectionistSortObjectTypes = []|[{
|
|
|
10720
10756
|
|
|
10721
10757
|
ignoreCase?: boolean
|
|
10722
10758
|
|
|
10759
|
+
partitionByComment?: (string[] | boolean | string)
|
|
10760
|
+
|
|
10723
10761
|
partitionByNewLine?: boolean
|
|
10724
10762
|
|
|
10725
10763
|
groupKind?: ("mixed" | "required-first" | "optional-first")
|
|
@@ -10765,6 +10803,10 @@ type PerfectionistSortSets = []|[{
|
|
|
10765
10803
|
ignoreCase?: boolean
|
|
10766
10804
|
|
|
10767
10805
|
groupKind?: ("mixed" | "literals-first" | "spreads-first")
|
|
10806
|
+
|
|
10807
|
+
partitionByComment?: (string[] | boolean | string)
|
|
10808
|
+
|
|
10809
|
+
partitionByNewLine?: boolean
|
|
10768
10810
|
}]
|
|
10769
10811
|
// ----- perfectionist/sort-svelte-attributes -----
|
|
10770
10812
|
type PerfectionistSortSvelteAttributes = []|[{
|
|
@@ -10800,6 +10842,10 @@ type PerfectionistSortUnionTypes = []|[{
|
|
|
10800
10842
|
ignoreCase?: boolean
|
|
10801
10843
|
|
|
10802
10844
|
groups?: (string | string[])[]
|
|
10845
|
+
|
|
10846
|
+
partitionByComment?: (string[] | boolean | string)
|
|
10847
|
+
|
|
10848
|
+
partitionByNewLine?: boolean
|
|
10803
10849
|
}]
|
|
10804
10850
|
// ----- perfectionist/sort-variable-declarations -----
|
|
10805
10851
|
type PerfectionistSortVariableDeclarations = []|[{
|
|
@@ -10809,6 +10855,10 @@ type PerfectionistSortVariableDeclarations = []|[{
|
|
|
10809
10855
|
order?: ("asc" | "desc")
|
|
10810
10856
|
|
|
10811
10857
|
ignoreCase?: boolean
|
|
10858
|
+
|
|
10859
|
+
partitionByComment?: (string[] | boolean | string)
|
|
10860
|
+
|
|
10861
|
+
partitionByNewLine?: boolean
|
|
10812
10862
|
}]
|
|
10813
10863
|
// ----- perfectionist/sort-vue-attributes -----
|
|
10814
10864
|
type PerfectionistSortVueAttributes = []|[{
|
|
@@ -12265,6 +12315,7 @@ type SvelteHtmlQuotes = []|[{
|
|
|
12265
12315
|
type SvelteHtmlSelfClosing = []|[({
|
|
12266
12316
|
void?: ("never" | "always" | "ignore")
|
|
12267
12317
|
normal?: ("never" | "always" | "ignore")
|
|
12318
|
+
foreign?: ("never" | "always" | "ignore")
|
|
12268
12319
|
component?: ("never" | "always" | "ignore")
|
|
12269
12320
|
svelte?: ("never" | "always" | "ignore")
|
|
12270
12321
|
} | ("all" | "html" | "none"))]
|
|
@@ -13594,6 +13645,19 @@ type TsRestrictTemplateExpressions = []|[{
|
|
|
13594
13645
|
allowRegExp?: boolean
|
|
13595
13646
|
|
|
13596
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
|
+
})[]
|
|
13597
13661
|
}]
|
|
13598
13662
|
// ----- ts/return-await -----
|
|
13599
13663
|
type TsReturnAwait = []|[(("always" | "error-handling-correctness-only" | "in-try-catch" | "never") & string)]
|