@jimmy.codes/eslint-config 5.16.0 → 5.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts
CHANGED
|
@@ -149,7 +149,7 @@ declare function testingLibraryConfig(): Promise<{
|
|
|
149
149
|
};
|
|
150
150
|
};
|
|
151
151
|
rules: {
|
|
152
|
-
|
|
152
|
+
"testing-library/no-test-id-queries": "error";
|
|
153
153
|
};
|
|
154
154
|
}[]>;
|
|
155
155
|
|
|
@@ -164,6 +164,7 @@ declare function vitestConfig(): Promise<{
|
|
|
164
164
|
fn: "test";
|
|
165
165
|
withinDescribe: "it";
|
|
166
166
|
}];
|
|
167
|
+
"vitest/consistent-vitest-vi": "error";
|
|
167
168
|
"vitest/no-alias-methods": "error";
|
|
168
169
|
"vitest/no-commented-out-tests": "error";
|
|
169
170
|
"vitest/no-conditional-in-test": "error";
|
|
@@ -2819,233 +2820,233 @@ interface RuleOptions {
|
|
|
2819
2820
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
2820
2821
|
/**
|
|
2821
2822
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
2822
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2823
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/consistent-type-specifier-style.md
|
|
2823
2824
|
*/
|
|
2824
2825
|
'import-x/consistent-type-specifier-style'?: Linter.RuleEntry<ImportXConsistentTypeSpecifierStyle>
|
|
2825
2826
|
/**
|
|
2826
2827
|
* Ensure a default export is present, given a default import.
|
|
2827
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2828
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/default.md
|
|
2828
2829
|
*/
|
|
2829
2830
|
'import-x/default'?: Linter.RuleEntry<[]>
|
|
2830
2831
|
/**
|
|
2831
2832
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
2832
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2833
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/dynamic-import-chunkname.md
|
|
2833
2834
|
*/
|
|
2834
2835
|
'import-x/dynamic-import-chunkname'?: Linter.RuleEntry<ImportXDynamicImportChunkname>
|
|
2835
2836
|
/**
|
|
2836
2837
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
2837
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2838
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/export.md
|
|
2838
2839
|
*/
|
|
2839
2840
|
'import-x/export'?: Linter.RuleEntry<[]>
|
|
2840
2841
|
/**
|
|
2841
2842
|
* Ensure all exports appear after other statements.
|
|
2842
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2843
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/exports-last.md
|
|
2843
2844
|
*/
|
|
2844
2845
|
'import-x/exports-last'?: Linter.RuleEntry<[]>
|
|
2845
2846
|
/**
|
|
2846
2847
|
* Ensure consistent use of file extension within the import path.
|
|
2847
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2848
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/extensions.md
|
|
2848
2849
|
*/
|
|
2849
2850
|
'import-x/extensions'?: Linter.RuleEntry<ImportXExtensions>
|
|
2850
2851
|
/**
|
|
2851
2852
|
* Ensure all imports appear before other statements.
|
|
2852
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2853
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/first.md
|
|
2853
2854
|
*/
|
|
2854
2855
|
'import-x/first'?: Linter.RuleEntry<ImportXFirst>
|
|
2855
2856
|
/**
|
|
2856
2857
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
2857
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2858
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/group-exports.md
|
|
2858
2859
|
*/
|
|
2859
2860
|
'import-x/group-exports'?: Linter.RuleEntry<[]>
|
|
2860
2861
|
/**
|
|
2861
2862
|
* Replaced by `import-x/first`.
|
|
2862
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2863
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/imports-first.md
|
|
2863
2864
|
* @deprecated
|
|
2864
2865
|
*/
|
|
2865
2866
|
'import-x/imports-first'?: Linter.RuleEntry<ImportXImportsFirst>
|
|
2866
2867
|
/**
|
|
2867
2868
|
* Enforce the maximum number of dependencies a module can have.
|
|
2868
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2869
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/max-dependencies.md
|
|
2869
2870
|
*/
|
|
2870
2871
|
'import-x/max-dependencies'?: Linter.RuleEntry<ImportXMaxDependencies>
|
|
2871
2872
|
/**
|
|
2872
2873
|
* Ensure named imports correspond to a named export in the remote file.
|
|
2873
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2874
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/named.md
|
|
2874
2875
|
*/
|
|
2875
2876
|
'import-x/named'?: Linter.RuleEntry<ImportXNamed>
|
|
2876
2877
|
/**
|
|
2877
2878
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
2878
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2879
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/namespace.md
|
|
2879
2880
|
*/
|
|
2880
2881
|
'import-x/namespace'?: Linter.RuleEntry<ImportXNamespace>
|
|
2881
2882
|
/**
|
|
2882
2883
|
* Enforce a newline after import statements.
|
|
2883
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2884
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/newline-after-import.md
|
|
2884
2885
|
*/
|
|
2885
2886
|
'import-x/newline-after-import'?: Linter.RuleEntry<ImportXNewlineAfterImport>
|
|
2886
2887
|
/**
|
|
2887
2888
|
* Forbid import of modules using absolute paths.
|
|
2888
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2889
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-absolute-path.md
|
|
2889
2890
|
*/
|
|
2890
2891
|
'import-x/no-absolute-path'?: Linter.RuleEntry<ImportXNoAbsolutePath>
|
|
2891
2892
|
/**
|
|
2892
2893
|
* Forbid AMD `require` and `define` calls.
|
|
2893
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2894
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-amd.md
|
|
2894
2895
|
*/
|
|
2895
2896
|
'import-x/no-amd'?: Linter.RuleEntry<[]>
|
|
2896
2897
|
/**
|
|
2897
2898
|
* Forbid anonymous values as default exports.
|
|
2898
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2899
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-anonymous-default-export.md
|
|
2899
2900
|
*/
|
|
2900
2901
|
'import-x/no-anonymous-default-export'?: Linter.RuleEntry<ImportXNoAnonymousDefaultExport>
|
|
2901
2902
|
/**
|
|
2902
2903
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
2903
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2904
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-commonjs.md
|
|
2904
2905
|
*/
|
|
2905
2906
|
'import-x/no-commonjs'?: Linter.RuleEntry<ImportXNoCommonjs>
|
|
2906
2907
|
/**
|
|
2907
2908
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
2908
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2909
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-cycle.md
|
|
2909
2910
|
*/
|
|
2910
2911
|
'import-x/no-cycle'?: Linter.RuleEntry<ImportXNoCycle>
|
|
2911
2912
|
/**
|
|
2912
2913
|
* Forbid default exports.
|
|
2913
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2914
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-default-export.md
|
|
2914
2915
|
*/
|
|
2915
2916
|
'import-x/no-default-export'?: Linter.RuleEntry<[]>
|
|
2916
2917
|
/**
|
|
2917
2918
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
2918
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2919
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-deprecated.md
|
|
2919
2920
|
*/
|
|
2920
2921
|
'import-x/no-deprecated'?: Linter.RuleEntry<[]>
|
|
2921
2922
|
/**
|
|
2922
2923
|
* Forbid repeated import of the same module in multiple places.
|
|
2923
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2924
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-duplicates.md
|
|
2924
2925
|
*/
|
|
2925
2926
|
'import-x/no-duplicates'?: Linter.RuleEntry<ImportXNoDuplicates>
|
|
2926
2927
|
/**
|
|
2927
2928
|
* Forbid `require()` calls with expressions.
|
|
2928
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2929
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-dynamic-require.md
|
|
2929
2930
|
*/
|
|
2930
2931
|
'import-x/no-dynamic-require'?: Linter.RuleEntry<ImportXNoDynamicRequire>
|
|
2931
2932
|
/**
|
|
2932
2933
|
* Forbid empty named import blocks.
|
|
2933
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2934
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-empty-named-blocks.md
|
|
2934
2935
|
*/
|
|
2935
2936
|
'import-x/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
2936
2937
|
/**
|
|
2937
2938
|
* Forbid the use of extraneous packages.
|
|
2938
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2939
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-extraneous-dependencies.md
|
|
2939
2940
|
*/
|
|
2940
2941
|
'import-x/no-extraneous-dependencies'?: Linter.RuleEntry<ImportXNoExtraneousDependencies>
|
|
2941
2942
|
/**
|
|
2942
2943
|
* Forbid import statements with CommonJS module.exports.
|
|
2943
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2944
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-import-module-exports.md
|
|
2944
2945
|
*/
|
|
2945
2946
|
'import-x/no-import-module-exports'?: Linter.RuleEntry<ImportXNoImportModuleExports>
|
|
2946
2947
|
/**
|
|
2947
2948
|
* Forbid importing the submodules of other modules.
|
|
2948
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2949
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-internal-modules.md
|
|
2949
2950
|
*/
|
|
2950
2951
|
'import-x/no-internal-modules'?: Linter.RuleEntry<ImportXNoInternalModules>
|
|
2951
2952
|
/**
|
|
2952
2953
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
2953
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2954
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-mutable-exports.md
|
|
2954
2955
|
*/
|
|
2955
2956
|
'import-x/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
2956
2957
|
/**
|
|
2957
2958
|
* Forbid use of exported name as identifier of default export.
|
|
2958
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2959
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-named-as-default.md
|
|
2959
2960
|
*/
|
|
2960
2961
|
'import-x/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
2961
2962
|
/**
|
|
2962
2963
|
* Forbid use of exported name as property of default export.
|
|
2963
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2964
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-named-as-default-member.md
|
|
2964
2965
|
*/
|
|
2965
2966
|
'import-x/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
2966
2967
|
/**
|
|
2967
2968
|
* Forbid named default exports.
|
|
2968
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2969
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-named-default.md
|
|
2969
2970
|
*/
|
|
2970
2971
|
'import-x/no-named-default'?: Linter.RuleEntry<[]>
|
|
2971
2972
|
/**
|
|
2972
2973
|
* Forbid named exports.
|
|
2973
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2974
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-named-export.md
|
|
2974
2975
|
*/
|
|
2975
2976
|
'import-x/no-named-export'?: Linter.RuleEntry<[]>
|
|
2976
2977
|
/**
|
|
2977
2978
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
2978
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2979
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-namespace.md
|
|
2979
2980
|
*/
|
|
2980
2981
|
'import-x/no-namespace'?: Linter.RuleEntry<ImportXNoNamespace>
|
|
2981
2982
|
/**
|
|
2982
2983
|
* Forbid Node.js builtin modules.
|
|
2983
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2984
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-nodejs-modules.md
|
|
2984
2985
|
*/
|
|
2985
2986
|
'import-x/no-nodejs-modules'?: Linter.RuleEntry<ImportXNoNodejsModules>
|
|
2986
2987
|
/**
|
|
2987
2988
|
* Forbid importing packages through relative paths.
|
|
2988
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2989
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-relative-packages.md
|
|
2989
2990
|
*/
|
|
2990
2991
|
'import-x/no-relative-packages'?: Linter.RuleEntry<ImportXNoRelativePackages>
|
|
2991
2992
|
/**
|
|
2992
2993
|
* Forbid importing modules from parent directories.
|
|
2993
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2994
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-relative-parent-imports.md
|
|
2994
2995
|
*/
|
|
2995
2996
|
'import-x/no-relative-parent-imports'?: Linter.RuleEntry<ImportXNoRelativeParentImports>
|
|
2996
2997
|
/**
|
|
2997
2998
|
* Forbid importing a default export by a different name.
|
|
2998
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
2999
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-rename-default.md
|
|
2999
3000
|
*/
|
|
3000
3001
|
'import-x/no-rename-default'?: Linter.RuleEntry<ImportXNoRenameDefault>
|
|
3001
3002
|
/**
|
|
3002
3003
|
* Enforce which files can be imported in a given folder.
|
|
3003
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
3004
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-restricted-paths.md
|
|
3004
3005
|
*/
|
|
3005
3006
|
'import-x/no-restricted-paths'?: Linter.RuleEntry<ImportXNoRestrictedPaths>
|
|
3006
3007
|
/**
|
|
3007
3008
|
* Forbid a module from importing itself.
|
|
3008
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
3009
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-self-import.md
|
|
3009
3010
|
*/
|
|
3010
3011
|
'import-x/no-self-import'?: Linter.RuleEntry<[]>
|
|
3011
3012
|
/**
|
|
3012
3013
|
* Forbid unassigned imports.
|
|
3013
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
3014
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-unassigned-import.md
|
|
3014
3015
|
*/
|
|
3015
3016
|
'import-x/no-unassigned-import'?: Linter.RuleEntry<ImportXNoUnassignedImport>
|
|
3016
3017
|
/**
|
|
3017
3018
|
* Ensure imports point to a file/module that can be resolved.
|
|
3018
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
3019
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-unresolved.md
|
|
3019
3020
|
*/
|
|
3020
3021
|
'import-x/no-unresolved'?: Linter.RuleEntry<ImportXNoUnresolved>
|
|
3021
3022
|
/**
|
|
3022
3023
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
3023
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
3024
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-unused-modules.md
|
|
3024
3025
|
*/
|
|
3025
3026
|
'import-x/no-unused-modules'?: Linter.RuleEntry<ImportXNoUnusedModules>
|
|
3026
3027
|
/**
|
|
3027
3028
|
* Forbid unnecessary path segments in import and require statements.
|
|
3028
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
3029
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-useless-path-segments.md
|
|
3029
3030
|
*/
|
|
3030
3031
|
'import-x/no-useless-path-segments'?: Linter.RuleEntry<ImportXNoUselessPathSegments>
|
|
3031
3032
|
/**
|
|
3032
3033
|
* Forbid webpack loader syntax in imports.
|
|
3033
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
3034
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/no-webpack-loader-syntax.md
|
|
3034
3035
|
*/
|
|
3035
3036
|
'import-x/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
3036
3037
|
/**
|
|
3037
3038
|
* Enforce a convention in module import order.
|
|
3038
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
3039
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/order.md
|
|
3039
3040
|
*/
|
|
3040
3041
|
'import-x/order'?: Linter.RuleEntry<ImportXOrder>
|
|
3041
3042
|
/**
|
|
3042
3043
|
* Prefer a default export if module exports a single name or multiple names.
|
|
3043
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
3044
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/prefer-default-export.md
|
|
3044
3045
|
*/
|
|
3045
3046
|
'import-x/prefer-default-export'?: Linter.RuleEntry<ImportXPreferDefaultExport>
|
|
3046
3047
|
/**
|
|
3047
3048
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
3048
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.
|
|
3049
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.15.2/docs/rules/unambiguous.md
|
|
3049
3050
|
*/
|
|
3050
3051
|
'import-x/unambiguous'?: Linter.RuleEntry<[]>
|
|
3051
3052
|
/**
|
|
@@ -3122,312 +3123,317 @@ interface RuleOptions {
|
|
|
3122
3123
|
'jest-dom/prefer-to-have-value'?: Linter.RuleEntry<[]>
|
|
3123
3124
|
/**
|
|
3124
3125
|
* Enforce `test` and `it` usage conventions
|
|
3125
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3126
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/consistent-test-it.md
|
|
3126
3127
|
*/
|
|
3127
3128
|
'jest/consistent-test-it'?: Linter.RuleEntry<JestConsistentTestIt>
|
|
3128
3129
|
/**
|
|
3129
3130
|
* Enforce assertion to be made in a test body
|
|
3130
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3131
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/expect-expect.md
|
|
3131
3132
|
*/
|
|
3132
3133
|
'jest/expect-expect'?: Linter.RuleEntry<JestExpectExpect>
|
|
3133
3134
|
/**
|
|
3134
3135
|
* Enforces a maximum number assertion calls in a test body
|
|
3135
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3136
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/max-expects.md
|
|
3136
3137
|
*/
|
|
3137
3138
|
'jest/max-expects'?: Linter.RuleEntry<JestMaxExpects>
|
|
3138
3139
|
/**
|
|
3139
3140
|
* Enforces a maximum depth to nested describe calls
|
|
3140
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3141
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/max-nested-describe.md
|
|
3141
3142
|
*/
|
|
3142
3143
|
'jest/max-nested-describe'?: Linter.RuleEntry<JestMaxNestedDescribe>
|
|
3143
3144
|
/**
|
|
3144
3145
|
* Disallow alias methods
|
|
3145
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3146
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/no-alias-methods.md
|
|
3146
3147
|
*/
|
|
3147
3148
|
'jest/no-alias-methods'?: Linter.RuleEntry<[]>
|
|
3148
3149
|
/**
|
|
3149
3150
|
* Disallow commented out tests
|
|
3150
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3151
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/no-commented-out-tests.md
|
|
3151
3152
|
*/
|
|
3152
3153
|
'jest/no-commented-out-tests'?: Linter.RuleEntry<[]>
|
|
3153
3154
|
/**
|
|
3154
3155
|
* Disallow calling `expect` conditionally
|
|
3155
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3156
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/no-conditional-expect.md
|
|
3156
3157
|
*/
|
|
3157
3158
|
'jest/no-conditional-expect'?: Linter.RuleEntry<[]>
|
|
3158
3159
|
/**
|
|
3159
3160
|
* Disallow conditional logic in tests
|
|
3160
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3161
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/no-conditional-in-test.md
|
|
3161
3162
|
*/
|
|
3162
3163
|
'jest/no-conditional-in-test'?: Linter.RuleEntry<[]>
|
|
3163
3164
|
/**
|
|
3164
3165
|
* Disallow confusing usages of jest.setTimeout
|
|
3165
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3166
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/no-confusing-set-timeout.md
|
|
3166
3167
|
*/
|
|
3167
3168
|
'jest/no-confusing-set-timeout'?: Linter.RuleEntry<[]>
|
|
3168
3169
|
/**
|
|
3169
3170
|
* Disallow use of deprecated functions
|
|
3170
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3171
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/no-deprecated-functions.md
|
|
3171
3172
|
*/
|
|
3172
3173
|
'jest/no-deprecated-functions'?: Linter.RuleEntry<[]>
|
|
3173
3174
|
/**
|
|
3174
3175
|
* Disallow disabled tests
|
|
3175
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3176
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/no-disabled-tests.md
|
|
3176
3177
|
*/
|
|
3177
3178
|
'jest/no-disabled-tests'?: Linter.RuleEntry<[]>
|
|
3178
3179
|
/**
|
|
3179
3180
|
* Disallow using a callback in asynchronous tests and hooks
|
|
3180
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3181
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/no-done-callback.md
|
|
3181
3182
|
*/
|
|
3182
3183
|
'jest/no-done-callback'?: Linter.RuleEntry<[]>
|
|
3183
3184
|
/**
|
|
3184
3185
|
* Disallow duplicate setup and teardown hooks
|
|
3185
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3186
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/no-duplicate-hooks.md
|
|
3186
3187
|
*/
|
|
3187
3188
|
'jest/no-duplicate-hooks'?: Linter.RuleEntry<[]>
|
|
3188
3189
|
/**
|
|
3189
3190
|
* Disallow using `exports` in files containing tests
|
|
3190
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3191
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/no-export.md
|
|
3191
3192
|
*/
|
|
3192
3193
|
'jest/no-export'?: Linter.RuleEntry<[]>
|
|
3193
3194
|
/**
|
|
3194
3195
|
* Disallow focused tests
|
|
3195
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3196
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/no-focused-tests.md
|
|
3196
3197
|
*/
|
|
3197
3198
|
'jest/no-focused-tests'?: Linter.RuleEntry<[]>
|
|
3198
3199
|
/**
|
|
3199
3200
|
* Disallow setup and teardown hooks
|
|
3200
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3201
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/no-hooks.md
|
|
3201
3202
|
*/
|
|
3202
3203
|
'jest/no-hooks'?: Linter.RuleEntry<JestNoHooks>
|
|
3203
3204
|
/**
|
|
3204
3205
|
* Disallow identical titles
|
|
3205
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3206
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/no-identical-title.md
|
|
3206
3207
|
*/
|
|
3207
3208
|
'jest/no-identical-title'?: Linter.RuleEntry<[]>
|
|
3208
3209
|
/**
|
|
3209
3210
|
* Disallow string interpolation inside snapshots
|
|
3210
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3211
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/no-interpolation-in-snapshots.md
|
|
3211
3212
|
*/
|
|
3212
3213
|
'jest/no-interpolation-in-snapshots'?: Linter.RuleEntry<[]>
|
|
3213
3214
|
/**
|
|
3214
3215
|
* Disallow Jasmine globals
|
|
3215
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3216
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/no-jasmine-globals.md
|
|
3216
3217
|
*/
|
|
3217
3218
|
'jest/no-jasmine-globals'?: Linter.RuleEntry<[]>
|
|
3218
3219
|
/**
|
|
3219
3220
|
* Disallow large snapshots
|
|
3220
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3221
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/no-large-snapshots.md
|
|
3221
3222
|
*/
|
|
3222
3223
|
'jest/no-large-snapshots'?: Linter.RuleEntry<JestNoLargeSnapshots>
|
|
3223
3224
|
/**
|
|
3224
3225
|
* Disallow manually importing from `__mocks__`
|
|
3225
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3226
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/no-mocks-import.md
|
|
3226
3227
|
*/
|
|
3227
3228
|
'jest/no-mocks-import'?: Linter.RuleEntry<[]>
|
|
3228
3229
|
/**
|
|
3229
3230
|
* Disallow specific `jest.` methods
|
|
3230
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3231
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/no-restricted-jest-methods.md
|
|
3231
3232
|
*/
|
|
3232
3233
|
'jest/no-restricted-jest-methods'?: Linter.RuleEntry<JestNoRestrictedJestMethods>
|
|
3233
3234
|
/**
|
|
3234
3235
|
* Disallow specific matchers & modifiers
|
|
3235
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3236
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/no-restricted-matchers.md
|
|
3236
3237
|
*/
|
|
3237
3238
|
'jest/no-restricted-matchers'?: Linter.RuleEntry<JestNoRestrictedMatchers>
|
|
3238
3239
|
/**
|
|
3239
3240
|
* Disallow using `expect` outside of `it` or `test` blocks
|
|
3240
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3241
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/no-standalone-expect.md
|
|
3241
3242
|
*/
|
|
3242
3243
|
'jest/no-standalone-expect'?: Linter.RuleEntry<JestNoStandaloneExpect>
|
|
3243
3244
|
/**
|
|
3244
3245
|
* Require using `.only` and `.skip` over `f` and `x`
|
|
3245
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3246
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/no-test-prefixes.md
|
|
3246
3247
|
*/
|
|
3247
3248
|
'jest/no-test-prefixes'?: Linter.RuleEntry<[]>
|
|
3248
3249
|
/**
|
|
3249
3250
|
* Disallow explicitly returning from tests
|
|
3250
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3251
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/no-test-return-statement.md
|
|
3251
3252
|
*/
|
|
3252
3253
|
'jest/no-test-return-statement'?: Linter.RuleEntry<[]>
|
|
3253
3254
|
/**
|
|
3254
3255
|
* Disallow using `jest.mock()` factories without an explicit type parameter
|
|
3255
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3256
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/no-untyped-mock-factory.md
|
|
3256
3257
|
*/
|
|
3257
3258
|
'jest/no-untyped-mock-factory'?: Linter.RuleEntry<[]>
|
|
3258
3259
|
/**
|
|
3259
3260
|
* Enforce padding around `afterAll` blocks
|
|
3260
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3261
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/padding-around-after-all-blocks.md
|
|
3261
3262
|
*/
|
|
3262
3263
|
'jest/padding-around-after-all-blocks'?: Linter.RuleEntry<[]>
|
|
3263
3264
|
/**
|
|
3264
3265
|
* Enforce padding around `afterEach` blocks
|
|
3265
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3266
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/padding-around-after-each-blocks.md
|
|
3266
3267
|
*/
|
|
3267
3268
|
'jest/padding-around-after-each-blocks'?: Linter.RuleEntry<[]>
|
|
3268
3269
|
/**
|
|
3269
3270
|
* Enforce padding around Jest functions
|
|
3270
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3271
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/padding-around-all.md
|
|
3271
3272
|
*/
|
|
3272
3273
|
'jest/padding-around-all'?: Linter.RuleEntry<[]>
|
|
3273
3274
|
/**
|
|
3274
3275
|
* Enforce padding around `beforeAll` blocks
|
|
3275
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3276
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/padding-around-before-all-blocks.md
|
|
3276
3277
|
*/
|
|
3277
3278
|
'jest/padding-around-before-all-blocks'?: Linter.RuleEntry<[]>
|
|
3278
3279
|
/**
|
|
3279
3280
|
* Enforce padding around `beforeEach` blocks
|
|
3280
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3281
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/padding-around-before-each-blocks.md
|
|
3281
3282
|
*/
|
|
3282
3283
|
'jest/padding-around-before-each-blocks'?: Linter.RuleEntry<[]>
|
|
3283
3284
|
/**
|
|
3284
3285
|
* Enforce padding around `describe` blocks
|
|
3285
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3286
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/padding-around-describe-blocks.md
|
|
3286
3287
|
*/
|
|
3287
3288
|
'jest/padding-around-describe-blocks'?: Linter.RuleEntry<[]>
|
|
3288
3289
|
/**
|
|
3289
3290
|
* Enforce padding around `expect` groups
|
|
3290
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3291
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/padding-around-expect-groups.md
|
|
3291
3292
|
*/
|
|
3292
3293
|
'jest/padding-around-expect-groups'?: Linter.RuleEntry<[]>
|
|
3293
3294
|
/**
|
|
3294
3295
|
* Enforce padding around `test` and `it` blocks
|
|
3295
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3296
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/padding-around-test-blocks.md
|
|
3296
3297
|
*/
|
|
3297
3298
|
'jest/padding-around-test-blocks'?: Linter.RuleEntry<[]>
|
|
3298
3299
|
/**
|
|
3299
3300
|
* Suggest using `toBeCalledWith()` or `toHaveBeenCalledWith()`
|
|
3300
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3301
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/prefer-called-with.md
|
|
3301
3302
|
*/
|
|
3302
3303
|
'jest/prefer-called-with'?: Linter.RuleEntry<[]>
|
|
3303
3304
|
/**
|
|
3304
3305
|
* Suggest using the built-in comparison matchers
|
|
3305
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3306
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/prefer-comparison-matcher.md
|
|
3306
3307
|
*/
|
|
3307
3308
|
'jest/prefer-comparison-matcher'?: Linter.RuleEntry<[]>
|
|
3308
3309
|
/**
|
|
3309
3310
|
* Prefer using `.each` rather than manual loops
|
|
3310
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3311
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/prefer-each.md
|
|
3311
3312
|
*/
|
|
3312
3313
|
'jest/prefer-each'?: Linter.RuleEntry<[]>
|
|
3314
|
+
/**
|
|
3315
|
+
* Prefer having the last statement in a test be an assertion
|
|
3316
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/prefer-ending-with-an-expect.md
|
|
3317
|
+
*/
|
|
3318
|
+
'jest/prefer-ending-with-an-expect'?: Linter.RuleEntry<JestPreferEndingWithAnExpect>
|
|
3313
3319
|
/**
|
|
3314
3320
|
* Suggest using the built-in equality matchers
|
|
3315
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3321
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/prefer-equality-matcher.md
|
|
3316
3322
|
*/
|
|
3317
3323
|
'jest/prefer-equality-matcher'?: Linter.RuleEntry<[]>
|
|
3318
3324
|
/**
|
|
3319
3325
|
* Suggest using `expect.assertions()` OR `expect.hasAssertions()`
|
|
3320
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3326
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/prefer-expect-assertions.md
|
|
3321
3327
|
*/
|
|
3322
3328
|
'jest/prefer-expect-assertions'?: Linter.RuleEntry<JestPreferExpectAssertions>
|
|
3323
3329
|
/**
|
|
3324
3330
|
* Prefer `await expect(...).resolves` over `expect(await ...)` syntax
|
|
3325
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3331
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/prefer-expect-resolves.md
|
|
3326
3332
|
*/
|
|
3327
3333
|
'jest/prefer-expect-resolves'?: Linter.RuleEntry<[]>
|
|
3328
3334
|
/**
|
|
3329
3335
|
* Prefer having hooks in a consistent order
|
|
3330
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3336
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/prefer-hooks-in-order.md
|
|
3331
3337
|
*/
|
|
3332
3338
|
'jest/prefer-hooks-in-order'?: Linter.RuleEntry<[]>
|
|
3333
3339
|
/**
|
|
3334
3340
|
* Suggest having hooks before any test cases
|
|
3335
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3341
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/prefer-hooks-on-top.md
|
|
3336
3342
|
*/
|
|
3337
3343
|
'jest/prefer-hooks-on-top'?: Linter.RuleEntry<[]>
|
|
3338
3344
|
/**
|
|
3339
3345
|
* Prefer importing Jest globals
|
|
3340
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3346
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/prefer-importing-jest-globals.md
|
|
3341
3347
|
*/
|
|
3342
3348
|
'jest/prefer-importing-jest-globals'?: Linter.RuleEntry<JestPreferImportingJestGlobals>
|
|
3343
3349
|
/**
|
|
3344
3350
|
* Prefer `jest.mocked()` over `fn as jest.Mock`
|
|
3345
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3351
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/prefer-jest-mocked.md
|
|
3346
3352
|
*/
|
|
3347
3353
|
'jest/prefer-jest-mocked'?: Linter.RuleEntry<[]>
|
|
3348
3354
|
/**
|
|
3349
3355
|
* Enforce lowercase test names
|
|
3350
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3356
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/prefer-lowercase-title.md
|
|
3351
3357
|
*/
|
|
3352
3358
|
'jest/prefer-lowercase-title'?: Linter.RuleEntry<JestPreferLowercaseTitle>
|
|
3353
3359
|
/**
|
|
3354
3360
|
* Prefer mock resolved/rejected shorthands for promises
|
|
3355
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3361
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/prefer-mock-promise-shorthand.md
|
|
3356
3362
|
*/
|
|
3357
3363
|
'jest/prefer-mock-promise-shorthand'?: Linter.RuleEntry<[]>
|
|
3358
3364
|
/**
|
|
3359
3365
|
* Prefer including a hint with external snapshots
|
|
3360
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3366
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/prefer-snapshot-hint.md
|
|
3361
3367
|
*/
|
|
3362
3368
|
'jest/prefer-snapshot-hint'?: Linter.RuleEntry<JestPreferSnapshotHint>
|
|
3363
3369
|
/**
|
|
3364
3370
|
* Suggest using `jest.spyOn()`
|
|
3365
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3371
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/prefer-spy-on.md
|
|
3366
3372
|
*/
|
|
3367
3373
|
'jest/prefer-spy-on'?: Linter.RuleEntry<[]>
|
|
3368
3374
|
/**
|
|
3369
3375
|
* Suggest using `toStrictEqual()`
|
|
3370
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3376
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/prefer-strict-equal.md
|
|
3371
3377
|
*/
|
|
3372
3378
|
'jest/prefer-strict-equal'?: Linter.RuleEntry<[]>
|
|
3373
3379
|
/**
|
|
3374
3380
|
* Suggest using `toBe()` for primitive literals
|
|
3375
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3381
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/prefer-to-be.md
|
|
3376
3382
|
*/
|
|
3377
3383
|
'jest/prefer-to-be'?: Linter.RuleEntry<[]>
|
|
3378
3384
|
/**
|
|
3379
3385
|
* Suggest using `toContain()`
|
|
3380
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3386
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/prefer-to-contain.md
|
|
3381
3387
|
*/
|
|
3382
3388
|
'jest/prefer-to-contain'?: Linter.RuleEntry<[]>
|
|
3383
3389
|
/**
|
|
3384
3390
|
* Suggest using `toHaveLength()`
|
|
3385
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3391
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/prefer-to-have-length.md
|
|
3386
3392
|
*/
|
|
3387
3393
|
'jest/prefer-to-have-length'?: Linter.RuleEntry<[]>
|
|
3388
3394
|
/**
|
|
3389
3395
|
* Suggest using `test.todo`
|
|
3390
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3396
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/prefer-todo.md
|
|
3391
3397
|
*/
|
|
3392
3398
|
'jest/prefer-todo'?: Linter.RuleEntry<[]>
|
|
3393
3399
|
/**
|
|
3394
3400
|
* Require setup and teardown code to be within a hook
|
|
3395
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3401
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/require-hook.md
|
|
3396
3402
|
*/
|
|
3397
3403
|
'jest/require-hook'?: Linter.RuleEntry<JestRequireHook>
|
|
3398
3404
|
/**
|
|
3399
3405
|
* Require a message for `toThrow()`
|
|
3400
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3406
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/require-to-throw-message.md
|
|
3401
3407
|
*/
|
|
3402
3408
|
'jest/require-to-throw-message'?: Linter.RuleEntry<[]>
|
|
3403
3409
|
/**
|
|
3404
3410
|
* Require test cases and hooks to be inside a `describe` block
|
|
3405
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3411
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/require-top-level-describe.md
|
|
3406
3412
|
*/
|
|
3407
3413
|
'jest/require-top-level-describe'?: Linter.RuleEntry<JestRequireTopLevelDescribe>
|
|
3408
3414
|
/**
|
|
3409
3415
|
* Enforce unbound methods are called with their expected scope
|
|
3410
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3416
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/unbound-method.md
|
|
3411
3417
|
*/
|
|
3412
3418
|
'jest/unbound-method'?: Linter.RuleEntry<JestUnboundMethod>
|
|
3413
3419
|
/**
|
|
3414
3420
|
* Enforce valid `describe()` callback
|
|
3415
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3421
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/valid-describe-callback.md
|
|
3416
3422
|
*/
|
|
3417
3423
|
'jest/valid-describe-callback'?: Linter.RuleEntry<[]>
|
|
3418
3424
|
/**
|
|
3419
3425
|
* Enforce valid `expect()` usage
|
|
3420
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3426
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/valid-expect.md
|
|
3421
3427
|
*/
|
|
3422
3428
|
'jest/valid-expect'?: Linter.RuleEntry<JestValidExpect>
|
|
3423
3429
|
/**
|
|
3424
3430
|
* Require promises that have expectations in their chain to be valid
|
|
3425
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3431
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/valid-expect-in-promise.md
|
|
3426
3432
|
*/
|
|
3427
3433
|
'jest/valid-expect-in-promise'?: Linter.RuleEntry<[]>
|
|
3428
3434
|
/**
|
|
3429
3435
|
* Enforce valid titles
|
|
3430
|
-
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.
|
|
3436
|
+
* @see https://github.com/jest-community/eslint-plugin-jest/blob/v28.14.0/docs/rules/valid-title.md
|
|
3431
3437
|
*/
|
|
3432
3438
|
'jest/valid-title'?: Linter.RuleEntry<JestValidTitle>
|
|
3433
3439
|
/**
|
|
@@ -7024,6 +7030,11 @@ interface RuleOptions {
|
|
|
7024
7030
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-it.md
|
|
7025
7031
|
*/
|
|
7026
7032
|
'vitest/consistent-test-it'?: Linter.RuleEntry<VitestConsistentTestIt>
|
|
7033
|
+
/**
|
|
7034
|
+
* enforce using vitest or vi but not both
|
|
7035
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-vitest-vi.md
|
|
7036
|
+
*/
|
|
7037
|
+
'vitest/consistent-vitest-vi'?: Linter.RuleEntry<VitestConsistentVitestVi>
|
|
7027
7038
|
/**
|
|
7028
7039
|
* enforce having expectation in test body
|
|
7029
7040
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/expect-expect.md
|
|
@@ -7100,6 +7111,11 @@ interface RuleOptions {
|
|
|
7100
7111
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-import-node-test.md
|
|
7101
7112
|
*/
|
|
7102
7113
|
'vitest/no-import-node-test'?: Linter.RuleEntry<[]>
|
|
7114
|
+
/**
|
|
7115
|
+
* disallow importing Vitest globals
|
|
7116
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-importing-vitest-globals.md
|
|
7117
|
+
*/
|
|
7118
|
+
'vitest/no-importing-vitest-globals'?: Linter.RuleEntry<[]>
|
|
7103
7119
|
/**
|
|
7104
7120
|
* disallow string interpolation in snapshots
|
|
7105
7121
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-interpolation-in-snapshots.md
|
|
@@ -7131,7 +7147,7 @@ interface RuleOptions {
|
|
|
7131
7147
|
*/
|
|
7132
7148
|
'vitest/no-standalone-expect'?: Linter.RuleEntry<VitestNoStandaloneExpect>
|
|
7133
7149
|
/**
|
|
7134
|
-
*
|
|
7150
|
+
* disallow using the `f` and `x` prefixes in favour of `.only` and `.skip`
|
|
7135
7151
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-prefixes.md
|
|
7136
7152
|
*/
|
|
7137
7153
|
'vitest/no-test-prefixes'?: Linter.RuleEntry<[]>
|
|
@@ -7225,6 +7241,11 @@ interface RuleOptions {
|
|
|
7225
7241
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-hooks-on-top.md
|
|
7226
7242
|
*/
|
|
7227
7243
|
'vitest/prefer-hooks-on-top'?: Linter.RuleEntry<[]>
|
|
7244
|
+
/**
|
|
7245
|
+
* enforce importing Vitest globals
|
|
7246
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-importing-vitest-globals.md
|
|
7247
|
+
*/
|
|
7248
|
+
'vitest/prefer-importing-vitest-globals'?: Linter.RuleEntry<[]>
|
|
7228
7249
|
/**
|
|
7229
7250
|
* enforce lowercase titles
|
|
7230
7251
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-lowercase-title.md
|
|
@@ -10524,6 +10545,11 @@ type JestNoRestrictedMatchers = []|[{
|
|
|
10524
10545
|
type JestNoStandaloneExpect = []|[{
|
|
10525
10546
|
additionalTestBlockFunctions?: string[]
|
|
10526
10547
|
}]
|
|
10548
|
+
// ----- jest/prefer-ending-with-an-expect -----
|
|
10549
|
+
type JestPreferEndingWithAnExpect = []|[{
|
|
10550
|
+
assertFunctionNames?: string[]
|
|
10551
|
+
additionalTestBlockFunctions?: string[]
|
|
10552
|
+
}]
|
|
10527
10553
|
// ----- jest/prefer-expect-assertions -----
|
|
10528
10554
|
type JestPreferExpectAssertions = []|[{
|
|
10529
10555
|
onlyFunctionsWithAsyncKeyword?: boolean
|
|
@@ -12579,8 +12605,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
12579
12605
|
groupKind?: ("mixed" | "literals-first" | "spreads-first")
|
|
12580
12606
|
|
|
12581
12607
|
customGroups?: ({
|
|
12582
|
-
|
|
12583
|
-
newlinesInside?: ("always" | "never")
|
|
12608
|
+
newlinesInside?: (("always" | "never") | number)
|
|
12584
12609
|
|
|
12585
12610
|
fallbackSort?: {
|
|
12586
12611
|
|
|
@@ -12611,8 +12636,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
12611
12636
|
} | string))
|
|
12612
12637
|
}[]
|
|
12613
12638
|
} | {
|
|
12614
|
-
|
|
12615
|
-
newlinesInside?: ("always" | "never")
|
|
12639
|
+
newlinesInside?: (("always" | "never") | number)
|
|
12616
12640
|
|
|
12617
12641
|
fallbackSort?: {
|
|
12618
12642
|
|
|
@@ -12695,12 +12719,10 @@ type PerfectionistSortArrayIncludes = {
|
|
|
12695
12719
|
})
|
|
12696
12720
|
|
|
12697
12721
|
partitionByNewLine?: boolean
|
|
12698
|
-
|
|
12699
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
12722
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
12700
12723
|
|
|
12701
12724
|
groups?: (string | string[] | {
|
|
12702
|
-
|
|
12703
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
12725
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
12704
12726
|
|
|
12705
12727
|
commentAbove?: string
|
|
12706
12728
|
})[]
|
|
@@ -12728,8 +12750,7 @@ type PerfectionistSortClasses = []|[{
|
|
|
12728
12750
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
12729
12751
|
|
|
12730
12752
|
customGroups?: ({
|
|
12731
|
-
|
|
12732
|
-
newlinesInside?: ("always" | "never")
|
|
12753
|
+
newlinesInside?: (("always" | "never") | number)
|
|
12733
12754
|
|
|
12734
12755
|
fallbackSort?: {
|
|
12735
12756
|
|
|
@@ -12786,8 +12807,7 @@ type PerfectionistSortClasses = []|[{
|
|
|
12786
12807
|
} | string))
|
|
12787
12808
|
}[]
|
|
12788
12809
|
} | {
|
|
12789
|
-
|
|
12790
|
-
newlinesInside?: ("always" | "never")
|
|
12810
|
+
newlinesInside?: (("always" | "never") | number)
|
|
12791
12811
|
|
|
12792
12812
|
fallbackSort?: {
|
|
12793
12813
|
|
|
@@ -12893,12 +12913,10 @@ type PerfectionistSortClasses = []|[{
|
|
|
12893
12913
|
})
|
|
12894
12914
|
|
|
12895
12915
|
partitionByNewLine?: boolean
|
|
12896
|
-
|
|
12897
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
12916
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
12898
12917
|
|
|
12899
12918
|
groups?: (string | string[] | {
|
|
12900
|
-
|
|
12901
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
12919
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
12902
12920
|
|
|
12903
12921
|
commentAbove?: string
|
|
12904
12922
|
})[]
|
|
@@ -12977,8 +12995,7 @@ type PerfectionistSortDecorators = []|[{
|
|
|
12977
12995
|
}
|
|
12978
12996
|
|
|
12979
12997
|
groups?: (string | string[] | {
|
|
12980
|
-
|
|
12981
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
12998
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
12982
12999
|
|
|
12983
13000
|
commentAbove?: string
|
|
12984
13001
|
})[]
|
|
@@ -13007,8 +13024,7 @@ type PerfectionistSortEnums = []|[{
|
|
|
13007
13024
|
customGroups?: ({
|
|
13008
13025
|
[k: string]: (string | string[]) | undefined
|
|
13009
13026
|
} | ({
|
|
13010
|
-
|
|
13011
|
-
newlinesInside?: ("always" | "never")
|
|
13027
|
+
newlinesInside?: (("always" | "never") | number)
|
|
13012
13028
|
|
|
13013
13029
|
fallbackSort?: {
|
|
13014
13030
|
|
|
@@ -13049,8 +13065,7 @@ type PerfectionistSortEnums = []|[{
|
|
|
13049
13065
|
} | string))
|
|
13050
13066
|
}[]
|
|
13051
13067
|
} | {
|
|
13052
|
-
|
|
13053
|
-
newlinesInside?: ("always" | "never")
|
|
13068
|
+
newlinesInside?: (("always" | "never") | number)
|
|
13054
13069
|
|
|
13055
13070
|
fallbackSort?: {
|
|
13056
13071
|
|
|
@@ -13132,12 +13147,10 @@ type PerfectionistSortEnums = []|[{
|
|
|
13132
13147
|
})
|
|
13133
13148
|
|
|
13134
13149
|
partitionByNewLine?: boolean
|
|
13135
|
-
|
|
13136
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
13150
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
13137
13151
|
|
|
13138
13152
|
groups?: (string | string[] | {
|
|
13139
|
-
|
|
13140
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
13153
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
13141
13154
|
|
|
13142
13155
|
commentAbove?: string
|
|
13143
13156
|
})[]
|
|
@@ -13167,8 +13180,7 @@ type PerfectionistSortExports = {
|
|
|
13167
13180
|
groupKind?: ("mixed" | "values-first" | "types-first")
|
|
13168
13181
|
|
|
13169
13182
|
customGroups?: ({
|
|
13170
|
-
|
|
13171
|
-
newlinesInside?: ("always" | "never")
|
|
13183
|
+
newlinesInside?: (("always" | "never") | number)
|
|
13172
13184
|
|
|
13173
13185
|
fallbackSort?: {
|
|
13174
13186
|
|
|
@@ -13201,8 +13213,7 @@ type PerfectionistSortExports = {
|
|
|
13201
13213
|
} | string))
|
|
13202
13214
|
}[]
|
|
13203
13215
|
} | {
|
|
13204
|
-
|
|
13205
|
-
newlinesInside?: ("always" | "never")
|
|
13216
|
+
newlinesInside?: (("always" | "never") | number)
|
|
13206
13217
|
|
|
13207
13218
|
fallbackSort?: {
|
|
13208
13219
|
|
|
@@ -13272,12 +13283,10 @@ type PerfectionistSortExports = {
|
|
|
13272
13283
|
})
|
|
13273
13284
|
|
|
13274
13285
|
partitionByNewLine?: boolean
|
|
13275
|
-
|
|
13276
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
13286
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
13277
13287
|
|
|
13278
13288
|
groups?: (string | string[] | {
|
|
13279
|
-
|
|
13280
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
13289
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
13281
13290
|
|
|
13282
13291
|
commentAbove?: string
|
|
13283
13292
|
})[]
|
|
@@ -13309,8 +13318,7 @@ type PerfectionistSortHeritageClauses = []|[{
|
|
|
13309
13318
|
}
|
|
13310
13319
|
|
|
13311
13320
|
groups?: (string | string[] | {
|
|
13312
|
-
|
|
13313
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
13321
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
13314
13322
|
|
|
13315
13323
|
commentAbove?: string
|
|
13316
13324
|
})[]
|
|
@@ -13346,8 +13354,7 @@ type PerfectionistSortImports = {
|
|
|
13346
13354
|
[k: string]: (string | string[]) | undefined
|
|
13347
13355
|
}
|
|
13348
13356
|
} | ({
|
|
13349
|
-
|
|
13350
|
-
newlinesInside?: ("always" | "never")
|
|
13357
|
+
newlinesInside?: (("always" | "never") | number)
|
|
13351
13358
|
|
|
13352
13359
|
fallbackSort?: {
|
|
13353
13360
|
|
|
@@ -13392,8 +13399,7 @@ type PerfectionistSortImports = {
|
|
|
13392
13399
|
} | string))
|
|
13393
13400
|
}[]
|
|
13394
13401
|
} | {
|
|
13395
|
-
|
|
13396
|
-
newlinesInside?: ("always" | "never")
|
|
13402
|
+
newlinesInside?: (("always" | "never") | number)
|
|
13397
13403
|
|
|
13398
13404
|
fallbackSort?: {
|
|
13399
13405
|
|
|
@@ -13489,8 +13495,7 @@ type PerfectionistSortImports = {
|
|
|
13489
13495
|
})
|
|
13490
13496
|
|
|
13491
13497
|
partitionByNewLine?: boolean
|
|
13492
|
-
|
|
13493
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
13498
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
13494
13499
|
|
|
13495
13500
|
internalPattern?: (({
|
|
13496
13501
|
|
|
@@ -13505,8 +13510,7 @@ type PerfectionistSortImports = {
|
|
|
13505
13510
|
} | string))
|
|
13506
13511
|
|
|
13507
13512
|
groups?: (string | string[] | {
|
|
13508
|
-
|
|
13509
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
13513
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
13510
13514
|
|
|
13511
13515
|
commentAbove?: string
|
|
13512
13516
|
})[]
|
|
@@ -13536,8 +13540,7 @@ type PerfectionistSortInterfaces = {
|
|
|
13536
13540
|
customGroups?: ({
|
|
13537
13541
|
[k: string]: (string | string[]) | undefined
|
|
13538
13542
|
} | ({
|
|
13539
|
-
|
|
13540
|
-
newlinesInside?: ("always" | "never")
|
|
13543
|
+
newlinesInside?: (("always" | "never") | number)
|
|
13541
13544
|
|
|
13542
13545
|
fallbackSort?: {
|
|
13543
13546
|
|
|
@@ -13584,8 +13587,7 @@ type PerfectionistSortInterfaces = {
|
|
|
13584
13587
|
sortBy?: ("name" | "value")
|
|
13585
13588
|
}[]
|
|
13586
13589
|
} | {
|
|
13587
|
-
|
|
13588
|
-
newlinesInside?: ("always" | "never")
|
|
13590
|
+
newlinesInside?: (("always" | "never") | number)
|
|
13589
13591
|
|
|
13590
13592
|
fallbackSort?: {
|
|
13591
13593
|
|
|
@@ -13698,8 +13700,7 @@ type PerfectionistSortInterfaces = {
|
|
|
13698
13700
|
})
|
|
13699
13701
|
|
|
13700
13702
|
partitionByNewLine?: boolean
|
|
13701
|
-
|
|
13702
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
13703
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
13703
13704
|
|
|
13704
13705
|
ignorePattern?: (({
|
|
13705
13706
|
|
|
@@ -13715,8 +13716,7 @@ type PerfectionistSortInterfaces = {
|
|
|
13715
13716
|
sortBy?: ("name" | "value")
|
|
13716
13717
|
|
|
13717
13718
|
groups?: (string | string[] | {
|
|
13718
|
-
|
|
13719
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
13719
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
13720
13720
|
|
|
13721
13721
|
commentAbove?: string
|
|
13722
13722
|
})[]
|
|
@@ -13744,8 +13744,7 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
13744
13744
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
13745
13745
|
|
|
13746
13746
|
customGroups?: ({
|
|
13747
|
-
|
|
13748
|
-
newlinesInside?: ("always" | "never")
|
|
13747
|
+
newlinesInside?: (("always" | "never") | number)
|
|
13749
13748
|
|
|
13750
13749
|
fallbackSort?: {
|
|
13751
13750
|
|
|
@@ -13776,8 +13775,7 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
13776
13775
|
} | string))
|
|
13777
13776
|
}[]
|
|
13778
13777
|
} | {
|
|
13779
|
-
|
|
13780
|
-
newlinesInside?: ("always" | "never")
|
|
13778
|
+
newlinesInside?: (("always" | "never") | number)
|
|
13781
13779
|
|
|
13782
13780
|
fallbackSort?: {
|
|
13783
13781
|
|
|
@@ -13845,12 +13843,10 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
13845
13843
|
})
|
|
13846
13844
|
|
|
13847
13845
|
partitionByNewLine?: boolean
|
|
13848
|
-
|
|
13849
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
13846
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
13850
13847
|
|
|
13851
13848
|
groups?: (string | string[] | {
|
|
13852
|
-
|
|
13853
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
13849
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
13854
13850
|
|
|
13855
13851
|
commentAbove?: string
|
|
13856
13852
|
})[]
|
|
@@ -13879,8 +13875,7 @@ type PerfectionistSortJsxProps = {
|
|
|
13879
13875
|
customGroups?: ({
|
|
13880
13876
|
[k: string]: (string | string[]) | undefined
|
|
13881
13877
|
} | ({
|
|
13882
|
-
|
|
13883
|
-
newlinesInside?: ("always" | "never")
|
|
13878
|
+
newlinesInside?: (("always" | "never") | number)
|
|
13884
13879
|
|
|
13885
13880
|
fallbackSort?: {
|
|
13886
13881
|
|
|
@@ -13925,8 +13920,7 @@ type PerfectionistSortJsxProps = {
|
|
|
13925
13920
|
} | string))
|
|
13926
13921
|
}[]
|
|
13927
13922
|
} | {
|
|
13928
|
-
|
|
13929
|
-
newlinesInside?: ("always" | "never")
|
|
13923
|
+
newlinesInside?: (("always" | "never") | number)
|
|
13930
13924
|
|
|
13931
13925
|
fallbackSort?: {
|
|
13932
13926
|
|
|
@@ -13998,8 +13992,7 @@ type PerfectionistSortJsxProps = {
|
|
|
13998
13992
|
}
|
|
13999
13993
|
|
|
14000
13994
|
partitionByNewLine?: boolean
|
|
14001
|
-
|
|
14002
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
13995
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
14003
13996
|
|
|
14004
13997
|
ignorePattern?: (({
|
|
14005
13998
|
|
|
@@ -14014,8 +14007,7 @@ type PerfectionistSortJsxProps = {
|
|
|
14014
14007
|
} | string))
|
|
14015
14008
|
|
|
14016
14009
|
groups?: (string | string[] | {
|
|
14017
|
-
|
|
14018
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
14010
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
14019
14011
|
|
|
14020
14012
|
commentAbove?: string
|
|
14021
14013
|
})[]
|
|
@@ -14043,8 +14035,7 @@ type PerfectionistSortMaps = {
|
|
|
14043
14035
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
14044
14036
|
|
|
14045
14037
|
customGroups?: ({
|
|
14046
|
-
|
|
14047
|
-
newlinesInside?: ("always" | "never")
|
|
14038
|
+
newlinesInside?: (("always" | "never") | number)
|
|
14048
14039
|
|
|
14049
14040
|
fallbackSort?: {
|
|
14050
14041
|
|
|
@@ -14073,8 +14064,7 @@ type PerfectionistSortMaps = {
|
|
|
14073
14064
|
} | string))
|
|
14074
14065
|
}[]
|
|
14075
14066
|
} | {
|
|
14076
|
-
|
|
14077
|
-
newlinesInside?: ("always" | "never")
|
|
14067
|
+
newlinesInside?: (("always" | "never") | number)
|
|
14078
14068
|
|
|
14079
14069
|
fallbackSort?: {
|
|
14080
14070
|
|
|
@@ -14155,12 +14145,10 @@ type PerfectionistSortMaps = {
|
|
|
14155
14145
|
})
|
|
14156
14146
|
|
|
14157
14147
|
partitionByNewLine?: boolean
|
|
14158
|
-
|
|
14159
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
14148
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
14160
14149
|
|
|
14161
14150
|
groups?: (string | string[] | {
|
|
14162
|
-
|
|
14163
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
14151
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
14164
14152
|
|
|
14165
14153
|
commentAbove?: string
|
|
14166
14154
|
})[]
|
|
@@ -14188,8 +14176,7 @@ type PerfectionistSortModules = []|[{
|
|
|
14188
14176
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
14189
14177
|
|
|
14190
14178
|
customGroups?: ({
|
|
14191
|
-
|
|
14192
|
-
newlinesInside?: ("always" | "never")
|
|
14179
|
+
newlinesInside?: (("always" | "never") | number)
|
|
14193
14180
|
|
|
14194
14181
|
fallbackSort?: {
|
|
14195
14182
|
|
|
@@ -14234,8 +14221,7 @@ type PerfectionistSortModules = []|[{
|
|
|
14234
14221
|
} | string))
|
|
14235
14222
|
}[]
|
|
14236
14223
|
} | {
|
|
14237
|
-
|
|
14238
|
-
newlinesInside?: ("always" | "never")
|
|
14224
|
+
newlinesInside?: (("always" | "never") | number)
|
|
14239
14225
|
|
|
14240
14226
|
fallbackSort?: {
|
|
14241
14227
|
|
|
@@ -14317,12 +14303,10 @@ type PerfectionistSortModules = []|[{
|
|
|
14317
14303
|
})
|
|
14318
14304
|
|
|
14319
14305
|
partitionByNewLine?: boolean
|
|
14320
|
-
|
|
14321
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
14306
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
14322
14307
|
|
|
14323
14308
|
groups?: (string | string[] | {
|
|
14324
|
-
|
|
14325
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
14309
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
14326
14310
|
|
|
14327
14311
|
commentAbove?: string
|
|
14328
14312
|
})[]
|
|
@@ -14354,8 +14338,7 @@ type PerfectionistSortNamedExports = {
|
|
|
14354
14338
|
ignoreAlias?: boolean
|
|
14355
14339
|
|
|
14356
14340
|
customGroups?: ({
|
|
14357
|
-
|
|
14358
|
-
newlinesInside?: ("always" | "never")
|
|
14341
|
+
newlinesInside?: (("always" | "never") | number)
|
|
14359
14342
|
|
|
14360
14343
|
fallbackSort?: {
|
|
14361
14344
|
|
|
@@ -14388,8 +14371,7 @@ type PerfectionistSortNamedExports = {
|
|
|
14388
14371
|
} | string))
|
|
14389
14372
|
}[]
|
|
14390
14373
|
} | {
|
|
14391
|
-
|
|
14392
|
-
newlinesInside?: ("always" | "never")
|
|
14374
|
+
newlinesInside?: (("always" | "never") | number)
|
|
14393
14375
|
|
|
14394
14376
|
fallbackSort?: {
|
|
14395
14377
|
|
|
@@ -14459,12 +14441,10 @@ type PerfectionistSortNamedExports = {
|
|
|
14459
14441
|
})
|
|
14460
14442
|
|
|
14461
14443
|
partitionByNewLine?: boolean
|
|
14462
|
-
|
|
14463
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
14444
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
14464
14445
|
|
|
14465
14446
|
groups?: (string | string[] | {
|
|
14466
|
-
|
|
14467
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
14447
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
14468
14448
|
|
|
14469
14449
|
commentAbove?: string
|
|
14470
14450
|
})[]
|
|
@@ -14496,8 +14476,7 @@ type PerfectionistSortNamedImports = {
|
|
|
14496
14476
|
ignoreAlias?: boolean
|
|
14497
14477
|
|
|
14498
14478
|
customGroups?: ({
|
|
14499
|
-
|
|
14500
|
-
newlinesInside?: ("always" | "never")
|
|
14479
|
+
newlinesInside?: (("always" | "never") | number)
|
|
14501
14480
|
|
|
14502
14481
|
fallbackSort?: {
|
|
14503
14482
|
|
|
@@ -14530,8 +14509,7 @@ type PerfectionistSortNamedImports = {
|
|
|
14530
14509
|
} | string))
|
|
14531
14510
|
}[]
|
|
14532
14511
|
} | {
|
|
14533
|
-
|
|
14534
|
-
newlinesInside?: ("always" | "never")
|
|
14512
|
+
newlinesInside?: (("always" | "never") | number)
|
|
14535
14513
|
|
|
14536
14514
|
fallbackSort?: {
|
|
14537
14515
|
|
|
@@ -14601,12 +14579,10 @@ type PerfectionistSortNamedImports = {
|
|
|
14601
14579
|
})
|
|
14602
14580
|
|
|
14603
14581
|
partitionByNewLine?: boolean
|
|
14604
|
-
|
|
14605
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
14582
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
14606
14583
|
|
|
14607
14584
|
groups?: (string | string[] | {
|
|
14608
|
-
|
|
14609
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
14585
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
14610
14586
|
|
|
14611
14587
|
commentAbove?: string
|
|
14612
14588
|
})[]
|
|
@@ -14636,8 +14612,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
14636
14612
|
customGroups?: ({
|
|
14637
14613
|
[k: string]: (string | string[]) | undefined
|
|
14638
14614
|
} | ({
|
|
14639
|
-
|
|
14640
|
-
newlinesInside?: ("always" | "never")
|
|
14615
|
+
newlinesInside?: (("always" | "never") | number)
|
|
14641
14616
|
|
|
14642
14617
|
fallbackSort?: {
|
|
14643
14618
|
|
|
@@ -14684,8 +14659,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
14684
14659
|
sortBy?: ("name" | "value")
|
|
14685
14660
|
}[]
|
|
14686
14661
|
} | {
|
|
14687
|
-
|
|
14688
|
-
newlinesInside?: ("always" | "never")
|
|
14662
|
+
newlinesInside?: (("always" | "never") | number)
|
|
14689
14663
|
|
|
14690
14664
|
fallbackSort?: {
|
|
14691
14665
|
|
|
@@ -14798,8 +14772,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
14798
14772
|
})
|
|
14799
14773
|
|
|
14800
14774
|
partitionByNewLine?: boolean
|
|
14801
|
-
|
|
14802
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
14775
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
14803
14776
|
|
|
14804
14777
|
ignorePattern?: (({
|
|
14805
14778
|
|
|
@@ -14815,8 +14788,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
14815
14788
|
sortBy?: ("name" | "value")
|
|
14816
14789
|
|
|
14817
14790
|
groups?: (string | string[] | {
|
|
14818
|
-
|
|
14819
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
14791
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
14820
14792
|
|
|
14821
14793
|
commentAbove?: string
|
|
14822
14794
|
})[]
|
|
@@ -14850,8 +14822,7 @@ type PerfectionistSortObjects = {
|
|
|
14850
14822
|
customGroups?: ({
|
|
14851
14823
|
[k: string]: (string | string[]) | undefined
|
|
14852
14824
|
} | ({
|
|
14853
|
-
|
|
14854
|
-
newlinesInside?: ("always" | "never")
|
|
14825
|
+
newlinesInside?: (("always" | "never") | number)
|
|
14855
14826
|
|
|
14856
14827
|
fallbackSort?: {
|
|
14857
14828
|
|
|
@@ -14896,8 +14867,7 @@ type PerfectionistSortObjects = {
|
|
|
14896
14867
|
} | string))
|
|
14897
14868
|
}[]
|
|
14898
14869
|
} | {
|
|
14899
|
-
|
|
14900
|
-
newlinesInside?: ("always" | "never")
|
|
14870
|
+
newlinesInside?: (("always" | "never") | number)
|
|
14901
14871
|
|
|
14902
14872
|
fallbackSort?: {
|
|
14903
14873
|
|
|
@@ -15012,8 +14982,7 @@ type PerfectionistSortObjects = {
|
|
|
15012
14982
|
})
|
|
15013
14983
|
|
|
15014
14984
|
partitionByNewLine?: boolean
|
|
15015
|
-
|
|
15016
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
14985
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
15017
14986
|
|
|
15018
14987
|
ignorePattern?: (({
|
|
15019
14988
|
|
|
@@ -15028,8 +14997,7 @@ type PerfectionistSortObjects = {
|
|
|
15028
14997
|
} | string))
|
|
15029
14998
|
|
|
15030
14999
|
groups?: (string | string[] | {
|
|
15031
|
-
|
|
15032
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
15000
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
15033
15001
|
|
|
15034
15002
|
commentAbove?: string
|
|
15035
15003
|
})[]
|
|
@@ -15059,8 +15027,7 @@ type PerfectionistSortSets = {
|
|
|
15059
15027
|
groupKind?: ("mixed" | "literals-first" | "spreads-first")
|
|
15060
15028
|
|
|
15061
15029
|
customGroups?: ({
|
|
15062
|
-
|
|
15063
|
-
newlinesInside?: ("always" | "never")
|
|
15030
|
+
newlinesInside?: (("always" | "never") | number)
|
|
15064
15031
|
|
|
15065
15032
|
fallbackSort?: {
|
|
15066
15033
|
|
|
@@ -15091,8 +15058,7 @@ type PerfectionistSortSets = {
|
|
|
15091
15058
|
} | string))
|
|
15092
15059
|
}[]
|
|
15093
15060
|
} | {
|
|
15094
|
-
|
|
15095
|
-
newlinesInside?: ("always" | "never")
|
|
15061
|
+
newlinesInside?: (("always" | "never") | number)
|
|
15096
15062
|
|
|
15097
15063
|
fallbackSort?: {
|
|
15098
15064
|
|
|
@@ -15175,12 +15141,10 @@ type PerfectionistSortSets = {
|
|
|
15175
15141
|
})
|
|
15176
15142
|
|
|
15177
15143
|
partitionByNewLine?: boolean
|
|
15178
|
-
|
|
15179
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
15144
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
15180
15145
|
|
|
15181
15146
|
groups?: (string | string[] | {
|
|
15182
|
-
|
|
15183
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
15147
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
15184
15148
|
|
|
15185
15149
|
commentAbove?: string
|
|
15186
15150
|
})[]
|
|
@@ -15230,8 +15194,7 @@ type PerfectionistSortUnionTypes = {
|
|
|
15230
15194
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
15231
15195
|
|
|
15232
15196
|
customGroups?: ({
|
|
15233
|
-
|
|
15234
|
-
newlinesInside?: ("always" | "never")
|
|
15197
|
+
newlinesInside?: (("always" | "never") | number)
|
|
15235
15198
|
|
|
15236
15199
|
fallbackSort?: {
|
|
15237
15200
|
|
|
@@ -15262,8 +15225,7 @@ type PerfectionistSortUnionTypes = {
|
|
|
15262
15225
|
} | string))
|
|
15263
15226
|
}[]
|
|
15264
15227
|
} | {
|
|
15265
|
-
|
|
15266
|
-
newlinesInside?: ("always" | "never")
|
|
15228
|
+
newlinesInside?: (("always" | "never") | number)
|
|
15267
15229
|
|
|
15268
15230
|
fallbackSort?: {
|
|
15269
15231
|
|
|
@@ -15331,12 +15293,10 @@ type PerfectionistSortUnionTypes = {
|
|
|
15331
15293
|
})
|
|
15332
15294
|
|
|
15333
15295
|
partitionByNewLine?: boolean
|
|
15334
|
-
|
|
15335
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
15296
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
15336
15297
|
|
|
15337
15298
|
groups?: (string | string[] | {
|
|
15338
|
-
|
|
15339
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
15299
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
15340
15300
|
|
|
15341
15301
|
commentAbove?: string
|
|
15342
15302
|
})[]
|
|
@@ -15364,8 +15324,7 @@ type PerfectionistSortVariableDeclarations = []|[{
|
|
|
15364
15324
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
15365
15325
|
|
|
15366
15326
|
customGroups?: ({
|
|
15367
|
-
|
|
15368
|
-
newlinesInside?: ("always" | "never")
|
|
15327
|
+
newlinesInside?: (("always" | "never") | number)
|
|
15369
15328
|
|
|
15370
15329
|
fallbackSort?: {
|
|
15371
15330
|
|
|
@@ -15396,8 +15355,7 @@ type PerfectionistSortVariableDeclarations = []|[{
|
|
|
15396
15355
|
} | string))
|
|
15397
15356
|
}[]
|
|
15398
15357
|
} | {
|
|
15399
|
-
|
|
15400
|
-
newlinesInside?: ("always" | "never")
|
|
15358
|
+
newlinesInside?: (("always" | "never") | number)
|
|
15401
15359
|
|
|
15402
15360
|
fallbackSort?: {
|
|
15403
15361
|
|
|
@@ -15465,12 +15423,10 @@ type PerfectionistSortVariableDeclarations = []|[{
|
|
|
15465
15423
|
})
|
|
15466
15424
|
|
|
15467
15425
|
partitionByNewLine?: boolean
|
|
15468
|
-
|
|
15469
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
15426
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
15470
15427
|
|
|
15471
15428
|
groups?: (string | string[] | {
|
|
15472
|
-
|
|
15473
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
15429
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
15474
15430
|
|
|
15475
15431
|
commentAbove?: string
|
|
15476
15432
|
})[]
|
|
@@ -16152,6 +16108,10 @@ type VitestConsistentTestIt = []|[{
|
|
|
16152
16108
|
fn?: ("test" | "it")
|
|
16153
16109
|
withinDescribe?: ("test" | "it")
|
|
16154
16110
|
}]
|
|
16111
|
+
// ----- vitest/consistent-vitest-vi -----
|
|
16112
|
+
type VitestConsistentVitestVi = []|[{
|
|
16113
|
+
fn?: ("vi" | "vitest")
|
|
16114
|
+
}]
|
|
16155
16115
|
// ----- vitest/expect-expect -----
|
|
16156
16116
|
type VitestExpectExpect = []|[{
|
|
16157
16117
|
assertFunctionNames?: string[]
|