@ntnyq/eslint-config 7.0.0-beta.30 → 7.0.0-beta.32
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/README.md +1 -0
- package/dist/index.d.mts +917 -564
- package/dist/index.mjs +263 -114
- package/package.json +36 -33
package/dist/index.d.mts
CHANGED
|
@@ -2,14 +2,18 @@
|
|
|
2
2
|
* @file export
|
|
3
3
|
*/
|
|
4
4
|
import { FlatConfigComposer } from "eslint-flat-config-utils";
|
|
5
|
-
import {
|
|
5
|
+
import pluginVuePerfectionist, { VuePerfectionistSettings } from "eslint-plugin-vue-perfectionist";
|
|
6
|
+
import processorVueBlocks, { Options } from "eslint-processor-vue-blocks";
|
|
7
|
+
import { ESLintPluginCommandOptions } from "eslint-plugin-command/types";
|
|
8
|
+
import { FlatGitignoreOptions } from "eslint-config-flat-gitignore";
|
|
9
|
+
import { Linter } from "eslint";
|
|
6
10
|
import { ConfigWithExtends, configs as configsTypeScript, parser as parserTypeScript, plugin as pluginTypeScript } from "typescript-eslint";
|
|
11
|
+
import { BuiltInParserName, Options as Options$1 } from "prettier";
|
|
7
12
|
import * as parserVue from "vue-eslint-parser";
|
|
8
13
|
import * as parserToml from "toml-eslint-parser";
|
|
9
14
|
import * as parserYaml from "yaml-eslint-parser";
|
|
10
15
|
import * as parserPlain from "eslint-parser-plain";
|
|
11
16
|
import * as parserJsonc from "jsonc-eslint-parser";
|
|
12
|
-
import pluginShell from "@eslint/shell";
|
|
13
17
|
import pluginNode from "eslint-plugin-n";
|
|
14
18
|
import pluginVue from "eslint-plugin-vue";
|
|
15
19
|
import pluginYml from "eslint-plugin-yml";
|
|
@@ -30,16 +34,10 @@ import pluginUnicorn from "eslint-plugin-unicorn";
|
|
|
30
34
|
import pluginImportX from "eslint-plugin-import-x";
|
|
31
35
|
import pluginPrettier from "eslint-plugin-prettier";
|
|
32
36
|
import pluginDeMorgan from "eslint-plugin-de-morgan";
|
|
33
|
-
import pluginNoOnlyTests from "eslint-plugin-no-only-tests";
|
|
34
37
|
import pluginGitHubAction from "eslint-plugin-github-action";
|
|
35
38
|
import pluginPerfectionist from "eslint-plugin-perfectionist";
|
|
36
|
-
import pluginVuePerfectionist from "eslint-plugin-vue-perfectionist";
|
|
37
39
|
import * as pluginESLintComments from "@eslint-community/eslint-plugin-eslint-comments";
|
|
38
|
-
import
|
|
39
|
-
import { FlatGitignoreOptions } from "eslint-config-flat-gitignore";
|
|
40
|
-
import { ESLintPluginCommandOptions } from "eslint-plugin-command/types";
|
|
41
|
-
import { Linter } from "eslint";
|
|
42
|
-
import { BuiltInParserName, Options as Options$1 } from "prettier";
|
|
40
|
+
import { mergeProcessors, processorPassThrough } from "eslint-merge-processors";
|
|
43
41
|
/**
|
|
44
42
|
* @file Type Utils
|
|
45
43
|
*/
|
|
@@ -66,12 +64,7 @@ export type ResolvedOptions<T> = T extends boolean ? never : NonNullable<T>;
|
|
|
66
64
|
/**
|
|
67
65
|
* Options for a Vue config branch
|
|
68
66
|
*/
|
|
69
|
-
export type VuePerfectionistOptions = OptionsFiles & OptionsOverrides &
|
|
70
|
-
/**
|
|
71
|
-
* Enable settings `auto-import` of `eslint-plugin-vue-perfectionist`
|
|
72
|
-
*/
|
|
73
|
-
autoImport?: boolean;
|
|
74
|
-
};
|
|
67
|
+
export type VuePerfectionistOptions = OptionsFiles & OptionsOverrides & VuePerfectionistSettings;
|
|
75
68
|
/**
|
|
76
69
|
* Options type of {@link configVue}
|
|
77
70
|
*/
|
|
@@ -122,9 +115,10 @@ export type ConfigHtmlOptions = OptionsFiles & OptionsOverrides;
|
|
|
122
115
|
* @see {@link https://github.com/yeonjuan/html-eslint}
|
|
123
116
|
*
|
|
124
117
|
* @param options - {@link ConfigHtmlOptions}
|
|
118
|
+
* @param oxfmtConfigs - File scopes formatted by oxfmt
|
|
125
119
|
* @returns ESLint configs
|
|
126
120
|
*/
|
|
127
|
-
export declare const configHtml: (options?: ConfigHtmlOptions) => Promise<TypedConfigItem[]>;
|
|
121
|
+
export declare const configHtml: (options?: ConfigHtmlOptions, oxfmtConfigs?: Pick<TypedConfigItem, "name" | "files" | "ignores">[]) => Promise<TypedConfigItem[]>;
|
|
128
122
|
/**
|
|
129
123
|
* Options type of {@link configNode}
|
|
130
124
|
*/
|
|
@@ -338,7 +332,7 @@ export interface ConfigOxfmtOptions extends OptionsOverrides, OptionsFiles, Opti
|
|
|
338
332
|
*
|
|
339
333
|
* @returns ESLint configs
|
|
340
334
|
*/
|
|
341
|
-
export declare const configOxfmt: (options?: ConfigOxfmtOptions) => TypedConfigItem[];
|
|
335
|
+
export declare const configOxfmt: (options?: ConfigOxfmtOptions) => [parser: TypedConfigItem, ...rules: TypedConfigItem[]];
|
|
342
336
|
/**
|
|
343
337
|
* Options type of {@link configPinia}
|
|
344
338
|
*/
|
|
@@ -364,7 +358,7 @@ export interface ConfigShellOptions extends OptionsFiles, OptionsOverrides {
|
|
|
364
358
|
* Shell dialect used to parse matching files
|
|
365
359
|
* @default 'bash'
|
|
366
360
|
*/
|
|
367
|
-
language?:
|
|
361
|
+
language?: 'bash' | 'posix' | 'mksh';
|
|
368
362
|
}
|
|
369
363
|
/**
|
|
370
364
|
* Config for shell scripts
|
|
@@ -374,7 +368,7 @@ export interface ConfigShellOptions extends OptionsFiles, OptionsOverrides {
|
|
|
374
368
|
* @param options - {@link ConfigShellOptions}
|
|
375
369
|
* @returns ESLint configs
|
|
376
370
|
*/
|
|
377
|
-
export declare const configShell: (options?: ConfigShellOptions) => TypedConfigItem[]
|
|
371
|
+
export declare const configShell: (options?: ConfigShellOptions) => Promise<TypedConfigItem[]>;
|
|
378
372
|
/**
|
|
379
373
|
* Options type of {@link configDepend}
|
|
380
374
|
*/
|
|
@@ -708,7 +702,7 @@ export type ConfigTypeScriptOptions = OptionsFiles & OptionsOverrides & Pick<Opt
|
|
|
708
702
|
filesTypeAware?: string[];
|
|
709
703
|
/**
|
|
710
704
|
* Glob patterns for files that should not be type aware.
|
|
711
|
-
* @default [
|
|
705
|
+
* @default [GLOB_ASTRO, GLOB_ASTRO_TS, `${GLOB_MARKDOWN}/**`]
|
|
712
706
|
*/
|
|
713
707
|
ignoresTypeAware?: string[];
|
|
714
708
|
/**
|
|
@@ -1075,7 +1069,7 @@ interface RuleOptions {
|
|
|
1075
1069
|
*/
|
|
1076
1070
|
'@html-eslint/no-redundant-role'?: Linter.RuleEntry<[]>;
|
|
1077
1071
|
/**
|
|
1078
|
-
* Disallow specified
|
|
1072
|
+
* Disallow specified attribute values
|
|
1079
1073
|
* @see https://html-eslint.org/docs/rules/no-restricted-attr-values
|
|
1080
1074
|
*/
|
|
1081
1075
|
'@html-eslint/no-restricted-attr-values'?: Linter.RuleEntry<HtmlEslintNoRestrictedAttrValues>;
|
|
@@ -1233,7 +1227,7 @@ interface RuleOptions {
|
|
|
1233
1227
|
* Require that function overload signatures be consecutive
|
|
1234
1228
|
* @see https://typescript-eslint.io/rules/adjacent-overload-signatures
|
|
1235
1229
|
*/
|
|
1236
|
-
'@typescript-eslint/adjacent-overload-signatures'?: Linter.RuleEntry<
|
|
1230
|
+
'@typescript-eslint/adjacent-overload-signatures'?: Linter.RuleEntry<TypescriptEslintAdjacentOverloadSignatures>;
|
|
1237
1231
|
/**
|
|
1238
1232
|
* Require consistently using either `T[]` or `Array<T>` for arrays
|
|
1239
1233
|
* @see https://typescript-eslint.io/rules/array-type
|
|
@@ -1639,6 +1633,11 @@ interface RuleOptions {
|
|
|
1639
1633
|
* @see https://typescript-eslint.io/rules/no-unsafe-call
|
|
1640
1634
|
*/
|
|
1641
1635
|
'@typescript-eslint/no-unsafe-call'?: Linter.RuleEntry<[]>;
|
|
1636
|
+
/**
|
|
1637
|
+
* Disallow assigning non-instance values to class instance typed locations
|
|
1638
|
+
* @see https://typescript-eslint.io/rules/no-unsafe-class-instance-assignment
|
|
1639
|
+
*/
|
|
1640
|
+
'@typescript-eslint/no-unsafe-class-instance-assignment'?: Linter.RuleEntry<[]>;
|
|
1642
1641
|
/**
|
|
1643
1642
|
* Disallow unsafe declaration merging
|
|
1644
1643
|
* @see https://typescript-eslint.io/rules/no-unsafe-declaration-merging
|
|
@@ -2839,258 +2838,258 @@ interface RuleOptions {
|
|
|
2839
2838
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>;
|
|
2840
2839
|
/**
|
|
2841
2840
|
* Forbid authoring of barrel files.
|
|
2842
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
2841
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/avoid-barrel-files.md
|
|
2843
2842
|
*/
|
|
2844
2843
|
'import-x/avoid-barrel-files'?: Linter.RuleEntry<ImportXAvoidBarrelFiles>;
|
|
2845
2844
|
/**
|
|
2846
2845
|
* Forbid importing barrel files.
|
|
2847
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
2846
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/avoid-importing-barrel-files.md
|
|
2848
2847
|
*/
|
|
2849
2848
|
'import-x/avoid-importing-barrel-files'?: Linter.RuleEntry<ImportXAvoidImportingBarrelFiles>;
|
|
2850
2849
|
/**
|
|
2851
2850
|
* Forbid namespace imports.
|
|
2852
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
2851
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/avoid-namespace-import.md
|
|
2853
2852
|
*/
|
|
2854
2853
|
'import-x/avoid-namespace-import'?: Linter.RuleEntry<ImportXAvoidNamespaceImport>;
|
|
2855
2854
|
/**
|
|
2856
2855
|
* Forbid re-exporting * from a module.
|
|
2857
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
2856
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/avoid-re-export-all.md
|
|
2858
2857
|
*/
|
|
2859
2858
|
'import-x/avoid-re-export-all'?: Linter.RuleEntry<[]>;
|
|
2860
2859
|
/**
|
|
2861
2860
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
2862
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
2861
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/consistent-type-specifier-style.md
|
|
2863
2862
|
*/
|
|
2864
2863
|
'import-x/consistent-type-specifier-style'?: Linter.RuleEntry<ImportXConsistentTypeSpecifierStyle>;
|
|
2865
2864
|
/**
|
|
2866
2865
|
* Ensure a default export is present, given a default import.
|
|
2867
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
2866
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/default.md
|
|
2868
2867
|
*/
|
|
2869
2868
|
'import-x/default'?: Linter.RuleEntry<[]>;
|
|
2870
2869
|
/**
|
|
2871
2870
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
2872
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
2871
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/dynamic-import-chunkname.md
|
|
2873
2872
|
*/
|
|
2874
2873
|
'import-x/dynamic-import-chunkname'?: Linter.RuleEntry<ImportXDynamicImportChunkname>;
|
|
2875
2874
|
/**
|
|
2876
2875
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
2877
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
2876
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/export.md
|
|
2878
2877
|
*/
|
|
2879
2878
|
'import-x/export'?: Linter.RuleEntry<[]>;
|
|
2880
2879
|
/**
|
|
2881
2880
|
* Ensure all exports appear after other statements.
|
|
2882
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
2881
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/exports-last.md
|
|
2883
2882
|
*/
|
|
2884
2883
|
'import-x/exports-last'?: Linter.RuleEntry<[]>;
|
|
2885
2884
|
/**
|
|
2886
2885
|
* Ensure consistent use of file extension within the import path.
|
|
2887
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
2886
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/extensions.md
|
|
2888
2887
|
*/
|
|
2889
2888
|
'import-x/extensions'?: Linter.RuleEntry<ImportXExtensions>;
|
|
2890
2889
|
/**
|
|
2891
2890
|
* Ensure all imports appear before other statements.
|
|
2892
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
2891
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/first.md
|
|
2893
2892
|
*/
|
|
2894
2893
|
'import-x/first'?: Linter.RuleEntry<ImportXFirst>;
|
|
2895
2894
|
/**
|
|
2896
2895
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
2897
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
2896
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/group-exports.md
|
|
2898
2897
|
*/
|
|
2899
2898
|
'import-x/group-exports'?: Linter.RuleEntry<[]>;
|
|
2900
2899
|
/**
|
|
2901
2900
|
* Replaced by `import-x/first`.
|
|
2902
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
2901
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/imports-first.md
|
|
2903
2902
|
* @deprecated
|
|
2904
2903
|
*/
|
|
2905
2904
|
'import-x/imports-first'?: Linter.RuleEntry<ImportXImportsFirst>;
|
|
2906
2905
|
/**
|
|
2907
2906
|
* Enforce the maximum number of dependencies a module can have.
|
|
2908
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
2907
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/max-dependencies.md
|
|
2909
2908
|
*/
|
|
2910
2909
|
'import-x/max-dependencies'?: Linter.RuleEntry<ImportXMaxDependencies>;
|
|
2911
2910
|
/**
|
|
2912
2911
|
* Ensure named imports correspond to a named export in the remote file.
|
|
2913
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
2912
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/named.md
|
|
2914
2913
|
*/
|
|
2915
2914
|
'import-x/named'?: Linter.RuleEntry<ImportXNamed>;
|
|
2916
2915
|
/**
|
|
2917
2916
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
2918
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
2917
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/namespace.md
|
|
2919
2918
|
*/
|
|
2920
2919
|
'import-x/namespace'?: Linter.RuleEntry<ImportXNamespace>;
|
|
2921
2920
|
/**
|
|
2922
2921
|
* Enforce a newline after import statements.
|
|
2923
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
2922
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/newline-after-import.md
|
|
2924
2923
|
*/
|
|
2925
2924
|
'import-x/newline-after-import'?: Linter.RuleEntry<ImportXNewlineAfterImport>;
|
|
2926
2925
|
/**
|
|
2927
2926
|
* Forbid import of modules using absolute paths.
|
|
2928
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
2927
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/no-absolute-path.md
|
|
2929
2928
|
*/
|
|
2930
2929
|
'import-x/no-absolute-path'?: Linter.RuleEntry<ImportXNoAbsolutePath>;
|
|
2931
2930
|
/**
|
|
2932
2931
|
* Forbid AMD `require` and `define` calls.
|
|
2933
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
2932
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/no-amd.md
|
|
2934
2933
|
*/
|
|
2935
2934
|
'import-x/no-amd'?: Linter.RuleEntry<[]>;
|
|
2936
2935
|
/**
|
|
2937
2936
|
* Forbid anonymous values as default exports.
|
|
2938
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
2937
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/no-anonymous-default-export.md
|
|
2939
2938
|
*/
|
|
2940
2939
|
'import-x/no-anonymous-default-export'?: Linter.RuleEntry<ImportXNoAnonymousDefaultExport>;
|
|
2941
2940
|
/**
|
|
2942
2941
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
2943
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
2942
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/no-commonjs.md
|
|
2944
2943
|
*/
|
|
2945
2944
|
'import-x/no-commonjs'?: Linter.RuleEntry<ImportXNoCommonjs>;
|
|
2946
2945
|
/**
|
|
2947
2946
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
2948
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
2947
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/no-cycle.md
|
|
2949
2948
|
*/
|
|
2950
2949
|
'import-x/no-cycle'?: Linter.RuleEntry<ImportXNoCycle>;
|
|
2951
2950
|
/**
|
|
2952
2951
|
* Forbid default exports.
|
|
2953
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
2952
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/no-default-export.md
|
|
2954
2953
|
*/
|
|
2955
2954
|
'import-x/no-default-export'?: Linter.RuleEntry<[]>;
|
|
2956
2955
|
/**
|
|
2957
2956
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
2958
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
2957
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/no-deprecated.md
|
|
2959
2958
|
*/
|
|
2960
2959
|
'import-x/no-deprecated'?: Linter.RuleEntry<[]>;
|
|
2961
2960
|
/**
|
|
2962
2961
|
* Forbid repeated import of the same module in multiple places.
|
|
2963
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
2962
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/no-duplicates.md
|
|
2964
2963
|
*/
|
|
2965
2964
|
'import-x/no-duplicates'?: Linter.RuleEntry<ImportXNoDuplicates>;
|
|
2966
2965
|
/**
|
|
2967
2966
|
* Forbid `require()` calls with expressions.
|
|
2968
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
2967
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/no-dynamic-require.md
|
|
2969
2968
|
*/
|
|
2970
2969
|
'import-x/no-dynamic-require'?: Linter.RuleEntry<ImportXNoDynamicRequire>;
|
|
2971
2970
|
/**
|
|
2972
2971
|
* Forbid empty named import blocks.
|
|
2973
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
2972
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/no-empty-named-blocks.md
|
|
2974
2973
|
*/
|
|
2975
2974
|
'import-x/no-empty-named-blocks'?: Linter.RuleEntry<[]>;
|
|
2976
2975
|
/**
|
|
2977
2976
|
* Forbid the use of extraneous packages.
|
|
2978
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
2977
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/no-extraneous-dependencies.md
|
|
2979
2978
|
*/
|
|
2980
2979
|
'import-x/no-extraneous-dependencies'?: Linter.RuleEntry<ImportXNoExtraneousDependencies>;
|
|
2981
2980
|
/**
|
|
2982
2981
|
* Forbid import statements with CommonJS module.exports.
|
|
2983
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
2982
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/no-import-module-exports.md
|
|
2984
2983
|
*/
|
|
2985
2984
|
'import-x/no-import-module-exports'?: Linter.RuleEntry<ImportXNoImportModuleExports>;
|
|
2986
2985
|
/**
|
|
2987
2986
|
* Forbid importing the submodules of other modules.
|
|
2988
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
2987
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/no-internal-modules.md
|
|
2989
2988
|
*/
|
|
2990
2989
|
'import-x/no-internal-modules'?: Linter.RuleEntry<ImportXNoInternalModules>;
|
|
2991
2990
|
/**
|
|
2992
2991
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
2993
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
2992
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/no-mutable-exports.md
|
|
2994
2993
|
*/
|
|
2995
2994
|
'import-x/no-mutable-exports'?: Linter.RuleEntry<[]>;
|
|
2996
2995
|
/**
|
|
2997
2996
|
* Forbid use of exported name as identifier of default export.
|
|
2998
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
2997
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/no-named-as-default.md
|
|
2999
2998
|
*/
|
|
3000
2999
|
'import-x/no-named-as-default'?: Linter.RuleEntry<[]>;
|
|
3001
3000
|
/**
|
|
3002
3001
|
* Forbid use of exported name as property of default export.
|
|
3003
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
3002
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/no-named-as-default-member.md
|
|
3004
3003
|
*/
|
|
3005
3004
|
'import-x/no-named-as-default-member'?: Linter.RuleEntry<[]>;
|
|
3006
3005
|
/**
|
|
3007
3006
|
* Forbid named default exports.
|
|
3008
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
3007
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/no-named-default.md
|
|
3009
3008
|
*/
|
|
3010
3009
|
'import-x/no-named-default'?: Linter.RuleEntry<[]>;
|
|
3011
3010
|
/**
|
|
3012
3011
|
* Forbid named exports.
|
|
3013
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
3012
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/no-named-export.md
|
|
3014
3013
|
*/
|
|
3015
3014
|
'import-x/no-named-export'?: Linter.RuleEntry<[]>;
|
|
3016
3015
|
/**
|
|
3017
3016
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
3018
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
3017
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/no-namespace.md
|
|
3019
3018
|
*/
|
|
3020
3019
|
'import-x/no-namespace'?: Linter.RuleEntry<ImportXNoNamespace>;
|
|
3021
3020
|
/**
|
|
3022
3021
|
* Forbid Node.js builtin modules.
|
|
3023
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
3022
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/no-nodejs-modules.md
|
|
3024
3023
|
*/
|
|
3025
3024
|
'import-x/no-nodejs-modules'?: Linter.RuleEntry<ImportXNoNodejsModules>;
|
|
3026
3025
|
/**
|
|
3027
3026
|
* Forbid importing packages through relative paths.
|
|
3028
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
3027
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/no-relative-packages.md
|
|
3029
3028
|
*/
|
|
3030
3029
|
'import-x/no-relative-packages'?: Linter.RuleEntry<ImportXNoRelativePackages>;
|
|
3031
3030
|
/**
|
|
3032
3031
|
* Forbid importing modules from parent directories.
|
|
3033
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
3032
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/no-relative-parent-imports.md
|
|
3034
3033
|
*/
|
|
3035
3034
|
'import-x/no-relative-parent-imports'?: Linter.RuleEntry<ImportXNoRelativeParentImports>;
|
|
3036
3035
|
/**
|
|
3037
3036
|
* Forbid importing a default export by a different name.
|
|
3038
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
3037
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/no-rename-default.md
|
|
3039
3038
|
*/
|
|
3040
3039
|
'import-x/no-rename-default'?: Linter.RuleEntry<ImportXNoRenameDefault>;
|
|
3041
3040
|
/**
|
|
3042
3041
|
* Enforce which files can be imported in a given folder.
|
|
3043
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
3042
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/no-restricted-paths.md
|
|
3044
3043
|
*/
|
|
3045
3044
|
'import-x/no-restricted-paths'?: Linter.RuleEntry<ImportXNoRestrictedPaths>;
|
|
3046
3045
|
/**
|
|
3047
3046
|
* Forbid a module from importing itself.
|
|
3048
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
3047
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/no-self-import.md
|
|
3049
3048
|
*/
|
|
3050
3049
|
'import-x/no-self-import'?: Linter.RuleEntry<[]>;
|
|
3051
3050
|
/**
|
|
3052
3051
|
* Forbid unassigned imports.
|
|
3053
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
3052
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/no-unassigned-import.md
|
|
3054
3053
|
*/
|
|
3055
3054
|
'import-x/no-unassigned-import'?: Linter.RuleEntry<ImportXNoUnassignedImport>;
|
|
3056
3055
|
/**
|
|
3057
3056
|
* Ensure imports point to a file/module that can be resolved.
|
|
3058
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
3057
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/no-unresolved.md
|
|
3059
3058
|
*/
|
|
3060
3059
|
'import-x/no-unresolved'?: Linter.RuleEntry<ImportXNoUnresolved>;
|
|
3061
3060
|
/**
|
|
3062
3061
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
3063
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
3062
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/no-unused-modules.md
|
|
3064
3063
|
*/
|
|
3065
3064
|
'import-x/no-unused-modules'?: Linter.RuleEntry<ImportXNoUnusedModules>;
|
|
3066
3065
|
/**
|
|
3067
3066
|
* Forbid unnecessary path segments in import and require statements.
|
|
3068
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
3067
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/no-useless-path-segments.md
|
|
3069
3068
|
*/
|
|
3070
3069
|
'import-x/no-useless-path-segments'?: Linter.RuleEntry<ImportXNoUselessPathSegments>;
|
|
3071
3070
|
/**
|
|
3072
3071
|
* Forbid webpack loader syntax in imports.
|
|
3073
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
3072
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/no-webpack-loader-syntax.md
|
|
3074
3073
|
*/
|
|
3075
3074
|
'import-x/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>;
|
|
3076
3075
|
/**
|
|
3077
3076
|
* Enforce a convention in module import order.
|
|
3078
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
3077
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/order.md
|
|
3079
3078
|
*/
|
|
3080
3079
|
'import-x/order'?: Linter.RuleEntry<ImportXOrder>;
|
|
3081
3080
|
/**
|
|
3082
3081
|
* Prefer a default export if module exports a single name or multiple names.
|
|
3083
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
3082
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/prefer-default-export.md
|
|
3084
3083
|
*/
|
|
3085
3084
|
'import-x/prefer-default-export'?: Linter.RuleEntry<ImportXPreferDefaultExport>;
|
|
3086
3085
|
/**
|
|
3087
3086
|
* Enforce using namespace imports for specific modules, like `react`/`react-dom`, etc.
|
|
3088
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
3087
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/prefer-namespace-import.md
|
|
3089
3088
|
*/
|
|
3090
3089
|
'import-x/prefer-namespace-import'?: Linter.RuleEntry<ImportXPreferNamespaceImport>;
|
|
3091
3090
|
/**
|
|
3092
3091
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
3093
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.
|
|
3092
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.18.1/docs/rules/unambiguous.md
|
|
3094
3093
|
*/
|
|
3095
3094
|
'import-x/unambiguous'?: Linter.RuleEntry<[]>;
|
|
3096
3095
|
/**
|
|
@@ -3194,7 +3193,7 @@ interface RuleOptions {
|
|
|
3194
3193
|
* Reports if JSDoc `import()` statements point to a package which is not listed in `dependencies` or `devDependencies`
|
|
3195
3194
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/imports-as-dependencies.md#repos-sticky-header
|
|
3196
3195
|
*/
|
|
3197
|
-
'jsdoc/imports-as-dependencies'?: Linter.RuleEntry<
|
|
3196
|
+
'jsdoc/imports-as-dependencies'?: Linter.RuleEntry<JsdocImportsAsDependencies>;
|
|
3198
3197
|
/**
|
|
3199
3198
|
* This rule reports doc comments that only restate their attached name.
|
|
3200
3199
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/informative-docs.md#repos-sticky-header
|
|
@@ -4426,11 +4425,6 @@ interface RuleOptions {
|
|
|
4426
4425
|
* @see https://eslint.org/docs/latest/rules/no-octal-escape
|
|
4427
4426
|
*/
|
|
4428
4427
|
'no-octal-escape'?: Linter.RuleEntry<[]>;
|
|
4429
|
-
/**
|
|
4430
|
-
* disallow focused/only tests
|
|
4431
|
-
* @see https://github.com/levibuzolic/eslint-plugin-no-only-tests
|
|
4432
|
-
*/
|
|
4433
|
-
'no-only-tests/no-only-tests'?: Linter.RuleEntry<NoOnlyTestsNoOnlyTests>;
|
|
4434
4428
|
/**
|
|
4435
4429
|
* Disallow reassigning function parameters
|
|
4436
4430
|
* @see https://eslint.org/docs/latest/rules/no-param-reassign
|
|
@@ -4997,6 +4991,11 @@ interface RuleOptions {
|
|
|
4997
4991
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/process-exit-as-throw.md
|
|
4998
4992
|
*/
|
|
4999
4993
|
'node/process-exit-as-throw'?: Linter.RuleEntry<[]>;
|
|
4994
|
+
/**
|
|
4995
|
+
* require a timeout or signal for child processes
|
|
4996
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/require-child-process-timeout.md
|
|
4997
|
+
*/
|
|
4998
|
+
'node/require-child-process-timeout'?: Linter.RuleEntry<[]>;
|
|
5000
4999
|
/**
|
|
5001
5000
|
* require correct usage of hashbang
|
|
5002
5001
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/hashbang.md
|
|
@@ -5029,16 +5028,16 @@ interface RuleOptions {
|
|
|
5029
5028
|
* @see https://eslint-plugin.ntnyq.com/rules/no-member-accessibility.html
|
|
5030
5029
|
*/
|
|
5031
5030
|
'ntnyq/no-member-accessibility'?: Linter.RuleEntry<[]>;
|
|
5032
|
-
/**
|
|
5033
|
-
* disallow .only blocks in tests
|
|
5034
|
-
* @see https://eslint-plugin.ntnyq.com/rules/no-only-tests.html
|
|
5035
|
-
*/
|
|
5036
|
-
'ntnyq/no-only-tests'?: Linter.RuleEntry<NtnyqNoOnlyTests>;
|
|
5037
5031
|
/**
|
|
5038
5032
|
* disallow specified binding names in selected regions and scopes
|
|
5039
5033
|
* @see https://eslint-plugin.ntnyq.com/rules/no-restricted-bindings.html
|
|
5040
5034
|
*/
|
|
5041
5035
|
'ntnyq/no-restricted-bindings'?: Linter.RuleEntry<NtnyqNoRestrictedBindings>;
|
|
5036
|
+
/**
|
|
5037
|
+
* require or disallow padding lines between statements
|
|
5038
|
+
* @see https://eslint-plugin.ntnyq.com/rules/padding-line-between-statements.html
|
|
5039
|
+
*/
|
|
5040
|
+
'ntnyq/padding-line-between-statements'?: Linter.RuleEntry<NtnyqPaddingLineBetweenStatements>;
|
|
5042
5041
|
/**
|
|
5043
5042
|
* require a newline after file header
|
|
5044
5043
|
* @see https://eslint-plugin.ntnyq.com/rules/prefer-newline-after-file-header.html
|
|
@@ -6563,2002 +6562,2017 @@ interface RuleOptions {
|
|
|
6563
6562
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
|
|
6564
6563
|
/**
|
|
6565
6564
|
* Prefer better DOM traversal APIs.
|
|
6566
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6565
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/better-dom-traversing.md
|
|
6567
6566
|
*/
|
|
6568
6567
|
'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
|
|
6569
6568
|
/**
|
|
6570
6569
|
* Removed. Prefer `eslint-plugin-regexp`
|
|
6571
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6570
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#better-regex
|
|
6572
6571
|
* @deprecated
|
|
6573
6572
|
*/
|
|
6574
6573
|
'unicorn/better-regex'?: Linter.RuleEntry<[]>;
|
|
6575
6574
|
/**
|
|
6576
6575
|
* Enforce a specific parameter name in catch clauses.
|
|
6577
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6576
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/catch-error-name.md
|
|
6578
6577
|
*/
|
|
6579
6578
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
6580
6579
|
/**
|
|
6581
6580
|
* Enforce consistent class references in static methods.
|
|
6582
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6581
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/class-reference-in-static-methods.md
|
|
6583
6582
|
*/
|
|
6584
6583
|
'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
|
|
6585
6584
|
/**
|
|
6586
6585
|
* Enforce consistent spacing before and after commas in JSON and SOML.
|
|
6587
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6586
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/comma-spacing.md
|
|
6588
6587
|
*/
|
|
6589
6588
|
'unicorn/comma-spacing'?: Linter.RuleEntry<[]>;
|
|
6590
6589
|
/**
|
|
6591
6590
|
* Enforce better comment content.
|
|
6592
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6591
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/comment-content.md
|
|
6593
6592
|
*/
|
|
6594
6593
|
'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
|
|
6595
6594
|
/**
|
|
6596
6595
|
* Enforce a consistent return style for multiline arrow function bodies.
|
|
6597
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6596
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-arrow-return-style.md
|
|
6598
6597
|
*/
|
|
6599
6598
|
'unicorn/consistent-arrow-return-style'?: Linter.RuleEntry<[]>;
|
|
6600
6599
|
/**
|
|
6601
6600
|
* Enforce consistent assertion style with `node:assert`.
|
|
6602
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6601
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-assert.md
|
|
6603
6602
|
*/
|
|
6604
6603
|
'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
|
|
6605
6604
|
/**
|
|
6606
6605
|
* Enforce consistent naming for boolean names.
|
|
6607
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6606
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-boolean-name.md
|
|
6608
6607
|
*/
|
|
6609
6608
|
'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
|
|
6610
6609
|
/**
|
|
6611
6610
|
* Enforce consistent class member order.
|
|
6612
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6611
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-class-member-order.md
|
|
6613
6612
|
*/
|
|
6614
6613
|
'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
|
|
6615
6614
|
/**
|
|
6616
6615
|
* Enforce consistent spelling of compound words in identifiers.
|
|
6617
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6616
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-compound-words.md
|
|
6618
6617
|
*/
|
|
6619
6618
|
'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
|
|
6620
6619
|
/**
|
|
6621
6620
|
* Enforce consistent conditional object spread style.
|
|
6622
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6621
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-conditional-object-spread.md
|
|
6623
6622
|
*/
|
|
6624
6623
|
'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
|
|
6625
6624
|
/**
|
|
6626
6625
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
6627
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6626
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-date-clone.md
|
|
6628
6627
|
*/
|
|
6629
6628
|
'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
|
|
6630
6629
|
/**
|
|
6631
6630
|
* Use destructured variables over properties.
|
|
6632
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6631
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-destructuring.md
|
|
6633
6632
|
*/
|
|
6634
6633
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
|
|
6635
6634
|
/**
|
|
6636
6635
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
6637
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6636
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-empty-array-spread.md
|
|
6638
6637
|
*/
|
|
6639
6638
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
|
|
6640
6639
|
/**
|
|
6641
6640
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
6642
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6641
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-existence-index-check.md
|
|
6643
6642
|
*/
|
|
6644
6643
|
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
|
|
6645
6644
|
/**
|
|
6646
6645
|
* Enforce consistent decorator position on exported classes.
|
|
6647
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6646
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-export-decorator-position.md
|
|
6648
6647
|
*/
|
|
6649
6648
|
'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
|
|
6650
6649
|
/**
|
|
6651
6650
|
* Move function definitions to the highest possible scope.
|
|
6652
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6651
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-function-scoping.md
|
|
6653
6652
|
*/
|
|
6654
6653
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
6655
6654
|
/**
|
|
6656
6655
|
* Enforce function syntax by role.
|
|
6657
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6656
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-function-style.md
|
|
6658
6657
|
*/
|
|
6659
6658
|
'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
|
|
6660
6659
|
/**
|
|
6661
6660
|
* Enforce consistent JSON file reads before `JSON.parse()`.
|
|
6662
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6661
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-json-file-read.md
|
|
6663
6662
|
*/
|
|
6664
6663
|
'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
|
|
6665
6664
|
/**
|
|
6666
6665
|
* Enforce consistent optional chaining for same-base member access.
|
|
6667
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6666
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-optional-chaining.md
|
|
6668
6667
|
*/
|
|
6669
6668
|
'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
|
|
6670
6669
|
/**
|
|
6671
6670
|
* Enforce consistent style for escaping `${` in template literals.
|
|
6672
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6671
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-template-literal-escape.md
|
|
6673
6672
|
*/
|
|
6674
6673
|
'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
|
|
6675
6674
|
/**
|
|
6676
6675
|
* Enforce consistent labels on tuple type elements.
|
|
6677
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6676
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/consistent-tuple-labels.md
|
|
6678
6677
|
*/
|
|
6679
6678
|
'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
|
|
6680
6679
|
/**
|
|
6681
6680
|
* Enforce correct `Error` subclassing.
|
|
6682
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6681
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/custom-error-definition.md
|
|
6683
6682
|
*/
|
|
6684
6683
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
|
|
6685
6684
|
/**
|
|
6686
6685
|
* Enforce consistent default export declarations.
|
|
6687
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6686
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/default-export-style.md
|
|
6688
6687
|
*/
|
|
6689
6688
|
'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
|
|
6690
6689
|
/**
|
|
6691
6690
|
* Enforce consistent style for DOM element dataset access.
|
|
6692
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6691
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/dom-node-dataset.md
|
|
6693
6692
|
*/
|
|
6694
6693
|
'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
|
|
6695
6694
|
/**
|
|
6696
6695
|
* Enforce no spaces between braces.
|
|
6697
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6696
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/empty-brace-spaces.md
|
|
6698
6697
|
*/
|
|
6699
6698
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
|
|
6700
6699
|
/**
|
|
6701
6700
|
* Enforce passing a `message` value when creating a built-in error.
|
|
6702
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6701
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/error-message.md
|
|
6703
6702
|
*/
|
|
6704
6703
|
'unicorn/error-message'?: Linter.RuleEntry<[]>;
|
|
6705
6704
|
/**
|
|
6706
6705
|
* Require escape sequences to use uppercase or lowercase values.
|
|
6707
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6706
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/escape-case.md
|
|
6708
6707
|
*/
|
|
6709
6708
|
'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
|
|
6710
6709
|
/**
|
|
6711
6710
|
* Add expiration conditions to TODO comments.
|
|
6712
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6711
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/expiring-todo-comments.md
|
|
6713
6712
|
*/
|
|
6714
6713
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
6715
6714
|
/**
|
|
6716
6715
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
6717
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6716
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/explicit-length-check.md
|
|
6718
6717
|
*/
|
|
6719
6718
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
6720
6719
|
/**
|
|
6721
6720
|
* Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
|
|
6722
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6721
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/explicit-timer-delay.md
|
|
6723
6722
|
*/
|
|
6724
6723
|
'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
|
|
6725
6724
|
/**
|
|
6726
6725
|
* Enforce a case style for filenames and directory names.
|
|
6727
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6726
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/filename-case.md
|
|
6728
6727
|
*/
|
|
6729
6728
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
6730
6729
|
/**
|
|
6731
6730
|
* Require identifiers to match a specified regular expression.
|
|
6732
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6731
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/id-match.md
|
|
6733
6732
|
*/
|
|
6734
6733
|
'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
|
|
6735
6734
|
/**
|
|
6736
6735
|
* Enforce specific import styles per module.
|
|
6737
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6736
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/import-style.md
|
|
6738
6737
|
*/
|
|
6739
6738
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
|
|
6740
6739
|
/**
|
|
6741
6740
|
* Enforce consistent indentation in JSON and CSS.
|
|
6742
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6741
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/indent.md
|
|
6743
6742
|
*/
|
|
6744
6743
|
'unicorn/indent'?: Linter.RuleEntry<UnicornIndent>;
|
|
6745
6744
|
/**
|
|
6746
6745
|
* Prevent usage of variables from outside the scope of isolated functions.
|
|
6747
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6746
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/isolated-functions.md
|
|
6748
6747
|
*/
|
|
6749
6748
|
'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
|
|
6750
6749
|
/**
|
|
6751
6750
|
* Enforce a consistent style for optional loop sources.
|
|
6752
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6751
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/iteration-fallback-style.md
|
|
6753
6752
|
*/
|
|
6754
6753
|
'unicorn/iteration-fallback-style'?: Linter.RuleEntry<UnicornIterationFallbackStyle>;
|
|
6755
6754
|
/**
|
|
6756
6755
|
* Enforce a case style for data keys.
|
|
6757
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6756
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/key-name-casing.md
|
|
6758
6757
|
*/
|
|
6759
6758
|
'unicorn/key-name-casing'?: Linter.RuleEntry<UnicornKeyNameCasing>;
|
|
6760
6759
|
/**
|
|
6761
6760
|
* Require or disallow logical assignment operator shorthand
|
|
6762
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6761
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/logical-assignment-operators.md
|
|
6763
6762
|
*/
|
|
6764
6763
|
'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
|
|
6765
6764
|
/**
|
|
6766
6765
|
* Limit the depth of nested calls.
|
|
6767
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6766
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/max-nested-calls.md
|
|
6768
6767
|
*/
|
|
6769
6768
|
'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
|
|
6770
6769
|
/**
|
|
6771
6770
|
* Enforce replacements for variable, property, and filenames.
|
|
6772
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6771
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/name-replacements.md
|
|
6773
6772
|
*/
|
|
6774
6773
|
'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
|
|
6775
6774
|
/**
|
|
6776
6775
|
* Enforce correct use of `new` for builtin constructors.
|
|
6777
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6776
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/new-for-builtins.md
|
|
6778
6777
|
*/
|
|
6779
6778
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
|
|
6780
6779
|
/**
|
|
6781
6780
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
6782
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6781
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
6783
6782
|
*/
|
|
6784
6783
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
|
|
6785
6784
|
/**
|
|
6786
6785
|
* Disallow recursive access to `this` within getters and setters.
|
|
6787
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6786
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-accessor-recursion.md
|
|
6788
6787
|
*/
|
|
6789
6788
|
'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
|
|
6790
6789
|
/**
|
|
6791
6790
|
* Disallow bitwise operators where a logical operator was likely intended.
|
|
6792
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6791
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-accidental-bitwise-operator.md
|
|
6793
6792
|
*/
|
|
6794
6793
|
'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
|
|
6795
6794
|
/**
|
|
6796
6795
|
* Disallow anonymous functions and classes as the default export.
|
|
6797
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6796
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-anonymous-default-export.md
|
|
6798
6797
|
*/
|
|
6799
6798
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
|
|
6800
6799
|
/**
|
|
6801
6800
|
* Prevent passing a function reference directly to iterator methods.
|
|
6802
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6801
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-array-callback-reference.md
|
|
6803
6802
|
*/
|
|
6804
6803
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
|
|
6805
6804
|
/**
|
|
6806
6805
|
* Disallow array accumulation with `Array#concat()` in loops.
|
|
6807
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6806
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-array-concat-in-loop.md
|
|
6808
6807
|
*/
|
|
6809
6808
|
'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
|
|
6810
6809
|
/**
|
|
6811
6810
|
* Disallow using reference values as `Array#fill()` values.
|
|
6812
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6811
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-array-fill-with-reference-type.md
|
|
6813
6812
|
*/
|
|
6814
6813
|
'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
|
|
6815
6814
|
/**
|
|
6816
6815
|
* Disallow `.fill()` after `Array.from({length: …})`.
|
|
6817
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6816
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-array-from-fill.md
|
|
6818
6817
|
*/
|
|
6819
6818
|
'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
|
|
6820
6819
|
/**
|
|
6821
6820
|
* Disallow front-of-array mutation.
|
|
6822
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6821
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-array-front-mutation.md
|
|
6823
6822
|
*/
|
|
6824
6823
|
'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
|
|
6825
6824
|
/**
|
|
6826
6825
|
* Disallow using the `this` argument in array methods.
|
|
6827
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6826
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-array-method-this-argument.md
|
|
6828
6827
|
*/
|
|
6829
6828
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
|
|
6830
6829
|
/**
|
|
6831
6830
|
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
6832
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6831
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
|
|
6833
6832
|
* @deprecated
|
|
6834
6833
|
*/
|
|
6835
6834
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
|
|
6836
6835
|
/**
|
|
6837
6836
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
6838
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6837
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-array-reduce.md
|
|
6839
6838
|
*/
|
|
6840
6839
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
6841
6840
|
/**
|
|
6842
6841
|
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
6843
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6842
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-array-reverse.md
|
|
6844
6843
|
*/
|
|
6845
6844
|
'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
|
|
6846
6845
|
/**
|
|
6847
6846
|
* Prefer `Array#toSorted()` over `Array#sort()`.
|
|
6848
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6847
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-array-sort.md
|
|
6849
6848
|
*/
|
|
6850
6849
|
'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
|
|
6851
6850
|
/**
|
|
6852
6851
|
* Disallow sorting arrays to get the minimum or maximum value.
|
|
6853
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6852
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-array-sort-for-min-max.md
|
|
6854
6853
|
*/
|
|
6855
6854
|
'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
|
|
6856
6855
|
/**
|
|
6857
6856
|
* Prefer `Array#toSpliced()` over `Array#splice()`.
|
|
6858
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6857
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-array-splice.md
|
|
6859
6858
|
*/
|
|
6860
6859
|
'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
|
|
6861
6860
|
/**
|
|
6862
6861
|
* Disallow asterisk prefixes and shared indentation in multiline comments.
|
|
6863
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6862
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
|
|
6864
6863
|
*/
|
|
6865
6864
|
'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
|
|
6866
6865
|
/**
|
|
6867
6866
|
* Disallow asynchronous callbacks in synchronous iterator helpers.
|
|
6868
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6867
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-async-iterator-callback.md
|
|
6869
6868
|
*/
|
|
6870
6869
|
'unicorn/no-async-iterator-callback'?: Linter.RuleEntry<[]>;
|
|
6871
6870
|
/**
|
|
6872
6871
|
* Disallow async functions as `Promise#finally()` callbacks.
|
|
6873
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6872
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-async-promise-finally.md
|
|
6874
6873
|
*/
|
|
6875
6874
|
'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
|
|
6876
6875
|
/**
|
|
6877
6876
|
* Disallow member access from await expression.
|
|
6878
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6877
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-await-expression-member.md
|
|
6879
6878
|
*/
|
|
6880
6879
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
|
|
6881
6880
|
/**
|
|
6882
6881
|
* Disallow using `await` in `Promise` method parameters.
|
|
6883
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6882
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-await-in-promise-methods.md
|
|
6884
6883
|
*/
|
|
6885
6884
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
6886
6885
|
/**
|
|
6887
6886
|
* Disallow barrel files.
|
|
6888
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6887
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-barrel-files.md
|
|
6889
6888
|
*/
|
|
6890
6889
|
'unicorn/no-barrel-files'?: Linter.RuleEntry<[]>;
|
|
6891
6890
|
/**
|
|
6892
6891
|
* Disallow unnecessary `Blob` to `File` conversion.
|
|
6893
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6892
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-blob-to-file.md
|
|
6894
6893
|
*/
|
|
6895
6894
|
'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
|
|
6896
6895
|
/**
|
|
6897
6896
|
* Disallow boolean-returning sort comparators.
|
|
6898
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6897
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-boolean-sort-comparator.md
|
|
6899
6898
|
*/
|
|
6900
6899
|
'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
|
|
6901
6900
|
/**
|
|
6902
6901
|
* Disallow `break` and optionally `continue` in nested loops and switches inside loops.
|
|
6903
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6902
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-break-in-nested-loop.md
|
|
6904
6903
|
*/
|
|
6905
6904
|
'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<UnicornNoBreakInNestedLoop>;
|
|
6906
6905
|
/**
|
|
6907
6906
|
* Prefer drawing canvases directly instead of converting them to images.
|
|
6908
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6907
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-canvas-to-image.md
|
|
6909
6908
|
*/
|
|
6910
6909
|
'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
|
|
6911
6910
|
/**
|
|
6912
6911
|
* Disallow chained comparisons such as `a < b < c`.
|
|
6913
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6912
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-chained-comparison.md
|
|
6914
6913
|
*/
|
|
6915
6914
|
'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
|
|
6916
6915
|
/**
|
|
6917
6916
|
* Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
|
|
6918
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6917
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-collection-bracket-access.md
|
|
6919
6918
|
*/
|
|
6920
6919
|
'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
|
|
6921
6920
|
/**
|
|
6922
6921
|
* Disallow dynamic object property existence checks.
|
|
6923
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6922
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-computed-property-existence-check.md
|
|
6924
6923
|
*/
|
|
6925
6924
|
'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
|
|
6926
6925
|
/**
|
|
6927
6926
|
* Disallow conflicting CSS query and HTML form constraints.
|
|
6928
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6927
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-conflicting-constraints.md
|
|
6929
6928
|
*/
|
|
6930
6929
|
'unicorn/no-conflicting-constraints'?: Linter.RuleEntry<[]>;
|
|
6931
6930
|
/**
|
|
6932
6931
|
* Disallow confusing uses of `Array#{splice,toSpliced}()`.
|
|
6933
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6932
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-confusing-array-splice.md
|
|
6934
6933
|
*/
|
|
6935
6934
|
'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
|
|
6936
6935
|
/**
|
|
6937
6936
|
* Disallow confusing uses of `Array#with()`.
|
|
6938
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6937
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-confusing-array-with.md
|
|
6939
6938
|
*/
|
|
6940
6939
|
'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
|
|
6941
6940
|
/**
|
|
6942
6941
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
6943
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6942
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-console-spaces.md
|
|
6944
6943
|
*/
|
|
6945
6944
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
|
|
6946
6945
|
/**
|
|
6947
6946
|
* Disallow arithmetic and bitwise operations that always evaluate to `0`.
|
|
6948
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6947
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-constant-zero-expression.md
|
|
6949
6948
|
*/
|
|
6950
6949
|
'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
|
|
6951
6950
|
/**
|
|
6952
6951
|
* Disallow declarations before conditional early exits when they are only used after the exit.
|
|
6953
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6952
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-declarations-before-early-exit.md
|
|
6954
6953
|
*/
|
|
6955
6954
|
'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
|
|
6956
6955
|
/**
|
|
6957
6956
|
* Moved to `eslint-cssicorn` as `cssicorn/no-deprecated-features`.
|
|
6958
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6957
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-deprecated-css-features
|
|
6959
6958
|
* @deprecated
|
|
6960
6959
|
*/
|
|
6961
6960
|
'unicorn/no-deprecated-css-features'?: Linter.RuleEntry<[]>;
|
|
6962
6961
|
/**
|
|
6963
6962
|
* Do not use `document.cookie` directly.
|
|
6964
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6963
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-document-cookie.md
|
|
6965
6964
|
*/
|
|
6966
6965
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
|
|
6967
6966
|
/**
|
|
6968
6967
|
* Disallow two comparisons of the same operands that can be combined into one.
|
|
6969
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6968
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-double-comparison.md
|
|
6970
6969
|
*/
|
|
6971
6970
|
'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
|
|
6972
6971
|
/**
|
|
6973
6972
|
* Moved to `eslint-cssicorn` as `cssicorn/no-duplicate-selectors`.
|
|
6974
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6973
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-css-selectors
|
|
6975
6974
|
* @deprecated
|
|
6976
6975
|
*/
|
|
6977
6976
|
'unicorn/no-duplicate-css-selectors'?: Linter.RuleEntry<[]>;
|
|
6978
6977
|
/**
|
|
6979
6978
|
* Moved to `eslint-cssicorn` as `cssicorn/no-duplicate-font-family-names`.
|
|
6980
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6979
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-font-family-names
|
|
6981
6980
|
* @deprecated
|
|
6982
6981
|
*/
|
|
6983
6982
|
'unicorn/no-duplicate-font-family-names'?: Linter.RuleEntry<[]>;
|
|
6984
6983
|
/**
|
|
6985
6984
|
* Disallow duplicate adjacent branches in if chains.
|
|
6986
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6985
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-duplicate-if-branches.md
|
|
6987
6986
|
*/
|
|
6988
6987
|
'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
|
|
6989
6988
|
/**
|
|
6990
6989
|
* Disallow adjacent duplicate operands in logical expressions.
|
|
6991
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6990
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-duplicate-logical-operands.md
|
|
6992
6991
|
*/
|
|
6993
6992
|
'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
|
|
6994
6993
|
/**
|
|
6995
6994
|
* Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
|
|
6996
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6995
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-duplicate-loops.md
|
|
6997
6996
|
*/
|
|
6998
6997
|
'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
|
|
6999
6998
|
/**
|
|
7000
6999
|
* Disallow duplicate values in `Set` constructor array literals.
|
|
7001
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7000
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-duplicate-set-values.md
|
|
7002
7001
|
*/
|
|
7003
7002
|
'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
|
|
7004
7003
|
/**
|
|
7005
7004
|
* Disallow empty files.
|
|
7006
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7005
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-empty-file.md
|
|
7007
7006
|
*/
|
|
7008
7007
|
'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
|
|
7009
7008
|
/**
|
|
7010
7009
|
* Disallow empty link text in Markdown.
|
|
7011
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7010
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-empty-link-text.md
|
|
7012
7011
|
*/
|
|
7013
7012
|
'unicorn/no-empty-link-text'?: Linter.RuleEntry<[]>;
|
|
7014
7013
|
/**
|
|
7015
7014
|
* Disallow assigning to built-in error properties.
|
|
7016
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7015
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-error-property-assignment.md
|
|
7017
7016
|
*/
|
|
7018
7017
|
'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
|
|
7019
7018
|
/**
|
|
7020
7019
|
* Disallow exports in scripts.
|
|
7021
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7020
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-exports-in-scripts.md
|
|
7022
7021
|
*/
|
|
7023
7022
|
'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
|
|
7024
7023
|
/**
|
|
7025
7024
|
* Prefer `for…of` over the `forEach` method.
|
|
7026
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7025
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-for-each.md
|
|
7027
7026
|
*/
|
|
7028
7027
|
'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
|
|
7029
7028
|
/**
|
|
7030
7029
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
7031
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7030
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-for-loop.md
|
|
7032
7031
|
*/
|
|
7033
7032
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
|
|
7034
7033
|
/**
|
|
7035
7034
|
* Disallow assigning properties on the global object.
|
|
7036
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7035
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-global-object-property-assignment.md
|
|
7037
7036
|
*/
|
|
7038
7037
|
'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
|
|
7039
7038
|
/**
|
|
7040
7039
|
* Replaced by `unicorn/prefer-literal-ascii` and `unicorn/prefer-unicode-code-point-escapes`, which cover more cases.
|
|
7041
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7040
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
|
|
7042
7041
|
* @deprecated
|
|
7043
7042
|
*/
|
|
7044
7043
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
|
|
7045
7044
|
/**
|
|
7046
7045
|
* Disallow immediate mutation after assignment and initialization immediately after declaration.
|
|
7047
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7046
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-immediate-mutation.md
|
|
7048
7047
|
*/
|
|
7049
7048
|
'unicorn/no-immediate-mutation'?: Linter.RuleEntry<UnicornNoImmediateMutation>;
|
|
7050
7049
|
/**
|
|
7051
7050
|
* Disallow impossible comparisons against `.length` or `.size`.
|
|
7052
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7051
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-impossible-length-comparison.md
|
|
7053
7052
|
*/
|
|
7054
7053
|
'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
|
|
7055
7054
|
/**
|
|
7056
7055
|
* Disallow class accessors that hide an inherited getter or setter.
|
|
7057
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7056
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-incomplete-accessor-override.md
|
|
7058
7057
|
*/
|
|
7059
7058
|
'unicorn/no-incomplete-accessor-override'?: Linter.RuleEntry<[]>;
|
|
7060
7059
|
/**
|
|
7061
7060
|
* Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
|
|
7062
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7061
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-incorrect-query-selector.md
|
|
7063
7062
|
*/
|
|
7064
7063
|
'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
|
|
7065
7064
|
/**
|
|
7066
7065
|
* Disallow incorrect template literal interpolation syntax.
|
|
7067
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7066
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-incorrect-template-string-interpolation.md
|
|
7068
7067
|
*/
|
|
7069
7068
|
'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
|
|
7070
7069
|
/**
|
|
7071
7070
|
* Disallow ineffective CSP directives in `<meta>` elements.
|
|
7072
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7071
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-ineffective-csp-directives.md
|
|
7073
7072
|
*/
|
|
7074
7073
|
'unicorn/no-ineffective-csp-directives'?: Linter.RuleEntry<[]>;
|
|
7075
7074
|
/**
|
|
7076
7075
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
7077
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7076
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
|
|
7078
7077
|
* @deprecated
|
|
7079
7078
|
*/
|
|
7080
7079
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
|
|
7081
7080
|
/**
|
|
7082
7081
|
* Disallow `instanceof` with built-in objects
|
|
7083
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7082
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-instanceof-builtins.md
|
|
7084
7083
|
*/
|
|
7085
7084
|
'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
|
|
7086
7085
|
/**
|
|
7087
7086
|
* Disallow calling functions and constructors with an invalid number of arguments.
|
|
7088
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7087
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-argument-count.md
|
|
7089
7088
|
*/
|
|
7090
7089
|
'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
|
|
7091
7090
|
/**
|
|
7092
7091
|
* Disallow invalid values for HTML boolean attributes.
|
|
7093
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7092
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-boolean-attribute-value.md
|
|
7094
7093
|
*/
|
|
7095
7094
|
'unicorn/no-invalid-boolean-attribute-value'?: Linter.RuleEntry<[]>;
|
|
7096
7095
|
/**
|
|
7097
7096
|
* Disallow comparing a single character from a string to a multi-character string.
|
|
7098
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7097
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-character-comparison.md
|
|
7099
7098
|
*/
|
|
7100
7099
|
'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
|
|
7101
7100
|
/**
|
|
7102
7101
|
* Disallow invalid DOM tokens.
|
|
7103
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7102
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-dom-token.md
|
|
7104
7103
|
*/
|
|
7105
7104
|
'unicorn/no-invalid-dom-token'?: Linter.RuleEntry<[]>;
|
|
7106
7105
|
/**
|
|
7107
7106
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
7108
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7107
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-fetch-options.md
|
|
7109
7108
|
*/
|
|
7110
7109
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
|
|
7111
7110
|
/**
|
|
7112
7111
|
* Disallow invalid `accept` values on file inputs.
|
|
7113
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7112
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-file-input-accept.md
|
|
7114
7113
|
*/
|
|
7115
7114
|
'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
|
|
7116
7115
|
/**
|
|
7117
7116
|
* Disallow invalid subresource integrity metadata.
|
|
7118
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7117
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-integrity.md
|
|
7119
7118
|
*/
|
|
7120
7119
|
'unicorn/no-invalid-integrity'?: Linter.RuleEntry<[]>;
|
|
7121
7120
|
/**
|
|
7122
7121
|
* Disallow invalid or ignored Intl options.
|
|
7123
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7122
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-intl-options.md
|
|
7124
7123
|
*/
|
|
7125
7124
|
'unicorn/no-invalid-intl-options'?: Linter.RuleEntry<[]>;
|
|
7126
7125
|
/**
|
|
7127
7126
|
* Moved to `eslint-cssicorn` as `cssicorn/no-invalid-media-features`.
|
|
7128
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7127
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-invalid-media-features
|
|
7129
7128
|
* @deprecated
|
|
7130
7129
|
*/
|
|
7131
7130
|
'unicorn/no-invalid-media-features'?: Linter.RuleEntry<[]>;
|
|
7132
7131
|
/**
|
|
7133
7132
|
* Disallow invalid property descriptors.
|
|
7134
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7133
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-property-descriptor.md
|
|
7135
7134
|
*/
|
|
7136
7135
|
'unicorn/no-invalid-property-descriptor'?: Linter.RuleEntry<[]>;
|
|
7137
7136
|
/**
|
|
7138
7137
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
7139
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7138
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
7140
7139
|
*/
|
|
7141
7140
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
|
|
7142
7141
|
/**
|
|
7143
7142
|
* Disallow invalid options in `new Response()`, `Response.json()`, and `Response.redirect()`.
|
|
7144
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7143
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-response-options.md
|
|
7145
7144
|
*/
|
|
7146
7145
|
'unicorn/no-invalid-response-options'?: Linter.RuleEntry<[]>;
|
|
7147
7146
|
/**
|
|
7148
7147
|
* Disallow invalid arguments to `CSSStyleDeclaration#setProperty()`.
|
|
7149
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7148
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-style-set-property.md
|
|
7150
7149
|
*/
|
|
7151
7150
|
'unicorn/no-invalid-style-set-property'?: Linter.RuleEntry<[]>;
|
|
7152
7151
|
/**
|
|
7153
7152
|
* Disallow statically known invalid Temporal arithmetic.
|
|
7154
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7153
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-temporal-arithmetic.md
|
|
7155
7154
|
*/
|
|
7156
7155
|
'unicorn/no-invalid-temporal-arithmetic'?: Linter.RuleEntry<[]>;
|
|
7157
7156
|
/**
|
|
7158
7157
|
* Disallow invalid protocol strings in comparisons with `URL#protocol`.
|
|
7159
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7158
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-url-protocol-comparison.md
|
|
7160
7159
|
*/
|
|
7161
7160
|
'unicorn/no-invalid-url-protocol-comparison'?: Linter.RuleEntry<[]>;
|
|
7162
7161
|
/**
|
|
7163
7162
|
* Disallow invalid implementations of well-known symbol methods.
|
|
7164
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7163
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
|
|
7165
7164
|
*/
|
|
7166
7165
|
'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
|
|
7167
7166
|
/**
|
|
7168
7167
|
* Disallow `javascript:` URLs in Markdown.
|
|
7169
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7168
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-javascript-url.md
|
|
7170
7169
|
*/
|
|
7171
7170
|
'unicorn/no-javascript-url'?: Linter.RuleEntry<[]>;
|
|
7172
7171
|
/**
|
|
7173
7172
|
* Disallow identifiers starting with `new` or `class`.
|
|
7174
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7173
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-keyword-prefix.md
|
|
7175
7174
|
*/
|
|
7176
7175
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
7177
7176
|
/**
|
|
7178
7177
|
* Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
|
|
7179
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7178
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-late-current-target-access.md
|
|
7180
7179
|
*/
|
|
7181
7180
|
'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
|
|
7182
7181
|
/**
|
|
7183
7182
|
* Disallow event-control method calls after the synchronous event dispatch has finished.
|
|
7184
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7183
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-late-event-control.md
|
|
7185
7184
|
*/
|
|
7186
7185
|
'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
|
|
7187
7186
|
/**
|
|
7188
7187
|
* Disallow empty lines at the beginning of a file.
|
|
7189
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7188
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-leading-empty-lines.md
|
|
7190
7189
|
*/
|
|
7191
7190
|
'unicorn/no-leading-empty-lines'?: Linter.RuleEntry<[]>;
|
|
7192
7191
|
/**
|
|
7193
7192
|
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
7194
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7193
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
|
|
7195
7194
|
* @deprecated
|
|
7196
7195
|
*/
|
|
7197
7196
|
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
|
|
7198
7197
|
/**
|
|
7199
7198
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
7200
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7199
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-lonely-if.md
|
|
7201
7200
|
*/
|
|
7202
7201
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
|
|
7203
7202
|
/**
|
|
7204
7203
|
* Disallow mutating a loop iterable during iteration.
|
|
7205
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7204
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-loop-iterable-mutation.md
|
|
7206
7205
|
*/
|
|
7207
7206
|
'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
|
|
7208
7207
|
/**
|
|
7209
7208
|
* Disallow numeric literals that lose precision when represented as IEEE 754 binary64 values.
|
|
7210
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7209
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-loss-of-precision.md
|
|
7211
7210
|
*/
|
|
7212
7211
|
'unicorn/no-loss-of-precision'?: Linter.RuleEntry<[]>;
|
|
7213
7212
|
/**
|
|
7214
7213
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
7215
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7214
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
7216
7215
|
*/
|
|
7217
7216
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
7218
7217
|
/**
|
|
7219
7218
|
* Disallow manually wrapped comments.
|
|
7220
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7219
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-manually-wrapped-comments.md
|
|
7221
7220
|
*/
|
|
7222
7221
|
'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
|
|
7223
7222
|
/**
|
|
7224
7223
|
* Disallow checking a Map key before accessing a different key.
|
|
7225
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7224
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-mismatched-map-key.md
|
|
7226
7225
|
*/
|
|
7227
7226
|
'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
|
|
7228
7227
|
/**
|
|
7229
7228
|
* Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
|
|
7230
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7229
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-misrefactored-assignment.md
|
|
7231
7230
|
*/
|
|
7232
7231
|
'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
|
|
7233
7232
|
/**
|
|
7234
7233
|
* Disallow references to missing local resources.
|
|
7235
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7234
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-missing-local-resource.md
|
|
7236
7235
|
*/
|
|
7237
7236
|
'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>;
|
|
7238
7237
|
/**
|
|
7239
7238
|
* Disallow calling Promise executor resolver functions more than once on the same execution path.
|
|
7240
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7239
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-multiple-promise-resolver-calls.md
|
|
7241
7240
|
*/
|
|
7242
7241
|
'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>;
|
|
7243
7242
|
/**
|
|
7244
7243
|
* Disallow named usage of default import and export.
|
|
7245
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7244
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-named-default.md
|
|
7246
7245
|
*/
|
|
7247
7246
|
'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
|
|
7248
7247
|
/**
|
|
7249
7248
|
* Disallow negated array predicate calls.
|
|
7250
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7249
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-negated-array-predicate.md
|
|
7251
7250
|
*/
|
|
7252
7251
|
'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
|
|
7253
7252
|
/**
|
|
7254
7253
|
* Disallow negated comparisons.
|
|
7255
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7254
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-negated-comparison.md
|
|
7256
7255
|
*/
|
|
7257
7256
|
'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
|
|
7258
7257
|
/**
|
|
7259
7258
|
* Disallow negated conditions.
|
|
7260
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7259
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-negated-condition.md
|
|
7261
7260
|
*/
|
|
7262
7261
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
|
|
7263
7262
|
/**
|
|
7264
7263
|
* Disallow negated expression in equality check.
|
|
7265
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7264
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-negation-in-equality-check.md
|
|
7266
7265
|
*/
|
|
7267
7266
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
|
|
7268
7267
|
/**
|
|
7269
7268
|
* Disallow nested ternary expressions.
|
|
7270
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7269
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-nested-ternary.md
|
|
7271
7270
|
*/
|
|
7272
7271
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
|
|
7273
7272
|
/**
|
|
7274
7273
|
* Moved to `eslint-cssicorn` as `cssicorn/no-nesting-with-mixed-specificity`.
|
|
7275
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7274
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-nesting-with-mixed-specificity
|
|
7276
7275
|
* @deprecated
|
|
7277
7276
|
*/
|
|
7278
7277
|
'unicorn/no-nesting-with-mixed-specificity'?: Linter.RuleEntry<[]>;
|
|
7279
7278
|
/**
|
|
7280
7279
|
* Disallow `new Array()`.
|
|
7281
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7280
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-new-array.md
|
|
7282
7281
|
*/
|
|
7283
7282
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
|
|
7284
7283
|
/**
|
|
7285
7284
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
7286
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7285
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-new-buffer.md
|
|
7287
7286
|
*/
|
|
7288
7287
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
|
|
7289
7288
|
/**
|
|
7290
7289
|
* Disallow non-function values with function-style verb prefixes.
|
|
7291
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7290
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-non-function-verb-prefix.md
|
|
7292
7291
|
*/
|
|
7293
7292
|
'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
|
|
7294
7293
|
/**
|
|
7295
7294
|
* Disallow non-standard properties on built-in objects.
|
|
7296
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7295
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-nonstandard-builtin-properties.md
|
|
7297
7296
|
*/
|
|
7298
7297
|
'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
|
|
7299
7298
|
/**
|
|
7300
7299
|
* Disallow the use of the `null` literal.
|
|
7301
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7300
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-null.md
|
|
7302
7301
|
*/
|
|
7303
7302
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
|
|
7304
7303
|
/**
|
|
7305
7304
|
* Disallow the use of objects as default parameters.
|
|
7306
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7305
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-object-as-default-parameter.md
|
|
7307
7306
|
*/
|
|
7308
7307
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
|
|
7309
7308
|
/**
|
|
7310
7309
|
* Disallow `Object` methods with `Map` or `Set`.
|
|
7311
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7310
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-object-methods-with-collections.md
|
|
7312
7311
|
*/
|
|
7313
7312
|
'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
|
|
7314
7313
|
/**
|
|
7315
7314
|
* Disallow optional chaining on undeclared variables.
|
|
7316
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7315
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
|
|
7317
7316
|
*/
|
|
7318
7317
|
'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
|
|
7319
7318
|
/**
|
|
7320
7319
|
* Disallow ineffective `preventDefault()` calls in passive event listeners.
|
|
7321
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7320
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-prevent-default-in-passive-listener.md
|
|
7322
7321
|
*/
|
|
7323
7322
|
'unicorn/no-prevent-default-in-passive-listener'?: Linter.RuleEntry<[]>;
|
|
7324
7323
|
/**
|
|
7325
7324
|
* Disallow `process.exit()`.
|
|
7326
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7325
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-process-exit.md
|
|
7327
7326
|
*/
|
|
7328
7327
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
|
|
7329
7328
|
/**
|
|
7330
7329
|
* Disallow comparisons made redundant by an equality check in the same logical AND.
|
|
7331
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7330
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-redundant-comparison.md
|
|
7332
7331
|
*/
|
|
7333
7332
|
'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
|
|
7334
7333
|
/**
|
|
7335
7334
|
* Moved to `eslint-cssicorn` as `cssicorn/no-redundant-nested-style-rules`.
|
|
7336
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7335
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-redundant-nested-style-rules
|
|
7337
7336
|
* @deprecated
|
|
7338
7337
|
*/
|
|
7339
7338
|
'unicorn/no-redundant-nested-style-rules'?: Linter.RuleEntry<[]>;
|
|
7340
7339
|
/**
|
|
7341
7340
|
* Disallow repeating the same wrapper at every call to a function.
|
|
7342
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7341
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-repeated-call-wrappers.md
|
|
7343
7342
|
*/
|
|
7344
7343
|
'unicorn/no-repeated-call-wrappers'?: Linter.RuleEntry<[]>;
|
|
7345
7344
|
/**
|
|
7346
7345
|
* Disallow using the return value of `Array#push()` and `Array#unshift()`.
|
|
7347
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7346
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-return-array-push.md
|
|
7348
7347
|
*/
|
|
7349
7348
|
'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
|
|
7350
7349
|
/**
|
|
7351
7350
|
* Disallow selector syntax in DOM names.
|
|
7352
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7351
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-selector-as-dom-name.md
|
|
7353
7352
|
*/
|
|
7354
7353
|
'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
|
|
7355
7354
|
/**
|
|
7356
7355
|
* Disallow shorthand properties that override related longhand properties.
|
|
7357
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7356
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-shorthand-property-overrides.md
|
|
7358
7357
|
*/
|
|
7359
7358
|
'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>;
|
|
7360
7359
|
/**
|
|
7361
7360
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
7362
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7361
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
7363
7362
|
*/
|
|
7364
7363
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
7365
7364
|
/**
|
|
7366
7365
|
* Disallow classes that only have static members.
|
|
7367
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7366
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-static-only-class.md
|
|
7368
7367
|
*/
|
|
7369
7368
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
|
|
7370
7369
|
/**
|
|
7371
7370
|
* Prefer comparing values directly over subtracting and comparing to `0`.
|
|
7372
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7371
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-subtraction-comparison.md
|
|
7373
7372
|
*/
|
|
7374
7373
|
'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
|
|
7375
7374
|
/**
|
|
7376
7375
|
* Disallow `then` property.
|
|
7377
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7376
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-thenable.md
|
|
7378
7377
|
*/
|
|
7379
7378
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
|
|
7380
7379
|
/**
|
|
7381
7380
|
* Disallow assigning `this` to a variable.
|
|
7382
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7381
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-this-assignment.md
|
|
7383
7382
|
*/
|
|
7384
7383
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
|
|
7385
7384
|
/**
|
|
7386
7385
|
* Disallow `this` outside of classes.
|
|
7387
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7386
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-this-outside-of-class.md
|
|
7388
7387
|
*/
|
|
7389
7388
|
'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
|
|
7390
7389
|
/**
|
|
7391
7390
|
* Disallow assigning to top-level variables from inside functions.
|
|
7392
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7391
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-top-level-assignment-in-function.md
|
|
7393
7392
|
*/
|
|
7394
7393
|
'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
|
|
7395
7394
|
/**
|
|
7396
7395
|
* Disallow top-level side effects in exported modules.
|
|
7397
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7396
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-top-level-side-effects.md
|
|
7398
7397
|
*/
|
|
7399
7398
|
'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<UnicornNoTopLevelSideEffects>;
|
|
7400
7399
|
/**
|
|
7401
7400
|
* Disallow `all` as a transition property.
|
|
7402
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7401
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-transition-all.md
|
|
7403
7402
|
*/
|
|
7404
7403
|
'unicorn/no-transition-all'?: Linter.RuleEntry<[]>;
|
|
7405
7404
|
/**
|
|
7406
7405
|
* Disallow comparing `undefined` using `typeof`.
|
|
7407
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7406
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-typeof-undefined.md
|
|
7408
7407
|
*/
|
|
7409
7408
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
7410
7409
|
/**
|
|
7411
7410
|
* Disallow referencing methods without calling them.
|
|
7412
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7411
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-uncalled-method.md
|
|
7413
7412
|
*/
|
|
7414
7413
|
'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
|
|
7415
7414
|
/**
|
|
7416
7415
|
* Require class members to be declared.
|
|
7417
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7416
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-undeclared-class-members.md
|
|
7418
7417
|
*/
|
|
7419
7418
|
'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
|
|
7420
7419
|
/**
|
|
7421
7420
|
* Moved to `eslint-cssicorn` as `cssicorn/no-unknown-annotations`.
|
|
7422
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7421
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-css-annotations
|
|
7423
7422
|
* @deprecated
|
|
7424
7423
|
*/
|
|
7425
7424
|
'unicorn/no-unknown-css-annotations'?: Linter.RuleEntry<[]>;
|
|
7426
7425
|
/**
|
|
7427
7426
|
* Moved to `eslint-cssicorn` as `cssicorn/no-unknown-pseudo-selectors`.
|
|
7428
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7427
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-pseudo-selectors
|
|
7429
7428
|
* @deprecated
|
|
7430
7429
|
*/
|
|
7431
7430
|
'unicorn/no-unknown-pseudo-selectors'?: Linter.RuleEntry<[]>;
|
|
7432
7431
|
/**
|
|
7433
7432
|
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
7434
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7433
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-array-flat-depth.md
|
|
7435
7434
|
*/
|
|
7436
7435
|
'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
7437
7436
|
/**
|
|
7438
7437
|
* Disallow unnecessary use of `Array#flatMap()`.
|
|
7439
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7438
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-array-flat-map.md
|
|
7440
7439
|
*/
|
|
7441
7440
|
'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
|
|
7442
7441
|
/**
|
|
7443
7442
|
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
7444
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7443
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-array-splice-count.md
|
|
7445
7444
|
*/
|
|
7446
7445
|
'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
|
|
7447
7446
|
/**
|
|
7448
7447
|
* Disallow awaiting non-promise values.
|
|
7449
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7448
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-await.md
|
|
7450
7449
|
*/
|
|
7451
7450
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
|
|
7452
7451
|
/**
|
|
7453
7452
|
* Disallow unnecessary comparisons against boolean literals.
|
|
7454
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7453
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-boolean-comparison.md
|
|
7455
7454
|
*/
|
|
7456
7455
|
'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
|
|
7457
7456
|
/**
|
|
7458
7457
|
* Disallow arguments that match their parameter defaults.
|
|
7459
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7458
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-default-arguments.md
|
|
7460
7459
|
*/
|
|
7461
7460
|
'unicorn/no-unnecessary-default-arguments'?: Linter.RuleEntry<[]>;
|
|
7462
7461
|
/**
|
|
7463
7462
|
* Disallow unnecessary options in `fetch()` and `new Request()`.
|
|
7464
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7463
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-fetch-options.md
|
|
7465
7464
|
*/
|
|
7466
7465
|
'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
|
|
7467
7466
|
/**
|
|
7468
7467
|
* Disallow unnecessary `globalThis` references.
|
|
7469
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7468
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-global-this.md
|
|
7470
7469
|
*/
|
|
7471
7470
|
'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
|
|
7472
7471
|
/**
|
|
7473
7472
|
* Disallow unnecessary nested ternary expressions.
|
|
7474
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7473
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-nested-ternary.md
|
|
7475
7474
|
*/
|
|
7476
7475
|
'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
|
|
7477
7476
|
/**
|
|
7478
7477
|
* Disallow parameters that receive the same value at every call.
|
|
7479
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7478
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-parameters.md
|
|
7480
7479
|
*/
|
|
7481
7480
|
'unicorn/no-unnecessary-parameters'?: Linter.RuleEntry<UnicornNoUnnecessaryParameters>;
|
|
7482
7481
|
/**
|
|
7483
7482
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
7484
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7483
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
7485
7484
|
*/
|
|
7486
7485
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
7487
7486
|
/**
|
|
7488
7487
|
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
7489
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7488
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-slice-end.md
|
|
7490
7489
|
*/
|
|
7491
7490
|
'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
|
|
7492
7491
|
/**
|
|
7493
7492
|
* Disallow `Array#splice()` when simpler alternatives exist.
|
|
7494
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7493
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-splice.md
|
|
7495
7494
|
*/
|
|
7496
7495
|
'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
|
|
7497
7496
|
/**
|
|
7498
7497
|
* Disallow `String#trim()` before `String#startsWith()` or `String#endsWith()`.
|
|
7499
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7498
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unnecessary-string-trim.md
|
|
7500
7499
|
*/
|
|
7501
7500
|
'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>;
|
|
7502
7501
|
/**
|
|
7503
7502
|
* Disallow unreadable array destructuring.
|
|
7504
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7503
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
7505
7504
|
*/
|
|
7506
7505
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
|
|
7507
7506
|
/**
|
|
7508
7507
|
* Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
|
|
7509
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7508
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unreadable-for-of-expression.md
|
|
7510
7509
|
*/
|
|
7511
7510
|
'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
|
|
7512
7511
|
/**
|
|
7513
7512
|
* Disallow unreadable IIFEs.
|
|
7514
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7513
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unreadable-iife.md
|
|
7515
7514
|
*/
|
|
7516
7515
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
|
|
7517
7516
|
/**
|
|
7518
7517
|
* Disallow unreadable `new` expressions.
|
|
7519
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7518
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unreadable-new-expression.md
|
|
7520
7519
|
*/
|
|
7521
7520
|
'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
|
|
7522
7521
|
/**
|
|
7523
7522
|
* Disallow unreadable object destructuring.
|
|
7524
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7523
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unreadable-object-destructuring.md
|
|
7525
7524
|
*/
|
|
7526
7525
|
'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
|
|
7527
7526
|
/**
|
|
7528
7527
|
* Prevent unsafe use of ArrayBuffer view `.buffer`.
|
|
7529
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7528
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unsafe-buffer-conversion.md
|
|
7530
7529
|
*/
|
|
7531
7530
|
'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
|
|
7532
7531
|
/**
|
|
7533
7532
|
* Disallow unsafe DOM HTML APIs.
|
|
7534
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7533
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unsafe-dom-html.md
|
|
7535
7534
|
*/
|
|
7536
7535
|
'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
|
|
7537
7536
|
/**
|
|
7538
7537
|
* Disallow known values that JSON serialization cannot represent faithfully.
|
|
7539
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7538
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unsafe-json-serialization.md
|
|
7540
7539
|
*/
|
|
7541
7540
|
'unicorn/no-unsafe-json-serialization'?: Linter.RuleEntry<[]>;
|
|
7542
7541
|
/**
|
|
7543
7542
|
* Disallow reading `.value` from `Promise.allSettled()` results without a fulfilled status guard.
|
|
7544
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7543
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
|
|
7545
7544
|
*/
|
|
7546
7545
|
'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
|
|
7547
7546
|
/**
|
|
7548
7547
|
* Disallow unsafe values as property keys.
|
|
7549
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7548
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unsafe-property-key.md
|
|
7550
7549
|
*/
|
|
7551
7550
|
'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
|
|
7552
7551
|
/**
|
|
7553
7552
|
* Disallow interpolation into SQL strings passed to Node’s `node:sqlite` APIs.
|
|
7554
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7553
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
|
|
7555
7554
|
*/
|
|
7556
7555
|
'unicorn/no-unsafe-sqlite-interpolation'?: Linter.RuleEntry<[]>;
|
|
7557
7556
|
/**
|
|
7558
7557
|
* Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
|
|
7559
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7558
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unsafe-string-replacement.md
|
|
7560
7559
|
*/
|
|
7561
7560
|
'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
|
|
7562
7561
|
/**
|
|
7563
7562
|
* Moved to `eslint-cssicorn` as `cssicorn/no-unscoped-nesting-selector`.
|
|
7564
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7563
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-unscoped-css-nesting-selector
|
|
7565
7564
|
* @deprecated
|
|
7566
7565
|
*/
|
|
7567
7566
|
'unicorn/no-unscoped-css-nesting-selector'?: Linter.RuleEntry<[]>;
|
|
7568
7567
|
/**
|
|
7569
7568
|
* Replaced by `unicorn/no-unused-builtin-method-return` which covers more cases.
|
|
7570
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7569
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#no-unused-array-method-return
|
|
7571
7570
|
* @deprecated
|
|
7572
7571
|
*/
|
|
7573
7572
|
'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
|
|
7574
7573
|
/**
|
|
7575
7574
|
* Disallow ignoring the return value of selected built-in methods.
|
|
7576
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7575
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unused-builtin-method-return.md
|
|
7577
7576
|
*/
|
|
7578
7577
|
'unicorn/no-unused-builtin-method-return'?: Linter.RuleEntry<[]>;
|
|
7579
7578
|
/**
|
|
7580
7579
|
* Disallow discarding lazy iterator helpers.
|
|
7581
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7580
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unused-iterator-helper.md
|
|
7582
7581
|
*/
|
|
7583
7582
|
'unicorn/no-unused-iterator-helper'?: Linter.RuleEntry<[]>;
|
|
7584
7583
|
/**
|
|
7585
7584
|
* Disallow unused object properties.
|
|
7586
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7585
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-unused-properties.md
|
|
7587
7586
|
*/
|
|
7588
7587
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
|
|
7589
7588
|
/**
|
|
7590
7589
|
* Disallow passing full URLs to `URLSearchParams`.
|
|
7591
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7590
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-url-in-search-params.md
|
|
7592
7591
|
*/
|
|
7593
7592
|
'unicorn/no-url-in-search-params'?: Linter.RuleEntry<[]>;
|
|
7594
7593
|
/**
|
|
7595
7594
|
* Disallow unnecessary `Boolean()` casts in array predicate callbacks.
|
|
7596
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7595
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-boolean-cast.md
|
|
7597
7596
|
*/
|
|
7598
7597
|
'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
|
|
7599
7598
|
/**
|
|
7600
7599
|
* Disallow useless type coercions of values that are already of the target type.
|
|
7601
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7600
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-coercion.md
|
|
7602
7601
|
*/
|
|
7603
7602
|
'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
|
|
7604
7603
|
/**
|
|
7605
7604
|
* Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
|
|
7606
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7605
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-collection-argument.md
|
|
7607
7606
|
*/
|
|
7608
7607
|
'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
|
|
7609
7608
|
/**
|
|
7610
7609
|
* Disallow useless compound assignments such as `x += 0`.
|
|
7611
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7610
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-compound-assignment.md
|
|
7612
7611
|
*/
|
|
7613
7612
|
'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
|
|
7614
7613
|
/**
|
|
7615
7614
|
* Disallow useless concatenation of literals.
|
|
7616
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7615
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-concat.md
|
|
7617
7616
|
*/
|
|
7618
7617
|
'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
|
|
7619
7618
|
/**
|
|
7620
7619
|
* Disallow useless `continue` statements.
|
|
7621
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7620
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-continue.md
|
|
7622
7621
|
*/
|
|
7623
7622
|
'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
|
|
7624
7623
|
/**
|
|
7625
7624
|
* Disallow unnecessary existence checks before deletion.
|
|
7626
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7625
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-delete-check.md
|
|
7627
7626
|
*/
|
|
7628
7627
|
'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
|
|
7629
7628
|
/**
|
|
7630
7629
|
* Disallow `else` after a statement that exits.
|
|
7631
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7630
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-else.md
|
|
7632
7631
|
*/
|
|
7633
7632
|
'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
|
|
7634
7633
|
/**
|
|
7635
7634
|
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
7636
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7635
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-error-capture-stack-trace.md
|
|
7637
7636
|
*/
|
|
7638
7637
|
'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
|
|
7639
7638
|
/**
|
|
7640
7639
|
* Disallow useless fallback when spreading in object literals.
|
|
7641
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7640
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
7642
7641
|
*/
|
|
7643
7642
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
|
|
7644
7643
|
/**
|
|
7645
7644
|
* Disallow unnecessary `.toArray()` on iterators.
|
|
7646
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7645
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-iterator-to-array.md
|
|
7647
7646
|
*/
|
|
7648
7647
|
'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
|
|
7649
7648
|
/**
|
|
7650
7649
|
* Disallow useless array length check.
|
|
7651
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7650
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-length-check.md
|
|
7652
7651
|
*/
|
|
7653
7652
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
|
|
7654
7653
|
/**
|
|
7655
7654
|
* Disallow unnecessary operands in logical expressions involving boolean literals.
|
|
7656
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7655
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-logical-operand.md
|
|
7657
7656
|
*/
|
|
7658
7657
|
'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
|
|
7659
7658
|
/**
|
|
7660
7659
|
* Disallow useless overrides of class methods.
|
|
7661
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7660
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-override.md
|
|
7662
7661
|
*/
|
|
7663
7662
|
'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
|
|
7664
7663
|
/**
|
|
7665
7664
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
7666
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7665
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
7667
7666
|
*/
|
|
7668
7667
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
|
|
7669
7668
|
/**
|
|
7670
7669
|
* Disallow redundant re-exports.
|
|
7671
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7670
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-re-export.md
|
|
7672
7671
|
*/
|
|
7673
7672
|
'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>;
|
|
7674
7673
|
/**
|
|
7675
7674
|
* Disallow simple recursive function calls that can be replaced with a loop.
|
|
7676
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7675
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-recursion.md
|
|
7677
7676
|
*/
|
|
7678
7677
|
'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
|
|
7679
7678
|
/**
|
|
7680
7679
|
* Disallow unnecessary `Set` construction around `Set` methods.
|
|
7681
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7680
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-set-construction.md
|
|
7682
7681
|
*/
|
|
7683
7682
|
'unicorn/no-useless-set-construction'?: Linter.RuleEntry<[]>;
|
|
7684
7683
|
/**
|
|
7685
7684
|
* Disallow unnecessary spread.
|
|
7686
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7685
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-spread.md
|
|
7687
7686
|
*/
|
|
7688
7687
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
|
|
7689
7688
|
/**
|
|
7690
7689
|
* Disallow useless case in switch statements.
|
|
7691
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7690
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-switch-case.md
|
|
7692
7691
|
*/
|
|
7693
7692
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
|
|
7694
7693
|
/**
|
|
7695
7694
|
* Disallow useless template literal expressions.
|
|
7696
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7695
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-template-literals.md
|
|
7697
7696
|
*/
|
|
7698
7697
|
'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
|
|
7699
7698
|
/**
|
|
7700
7699
|
* Disallow useless `undefined`.
|
|
7701
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7700
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-useless-undefined.md
|
|
7702
7701
|
*/
|
|
7703
7702
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
7704
7703
|
/**
|
|
7705
7704
|
* Disallow returning or exporting resources declared with `using`, including through capturing functions.
|
|
7706
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7705
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-using-resource-escape.md
|
|
7707
7706
|
*/
|
|
7708
7707
|
'unicorn/no-using-resource-escape'?: Linter.RuleEntry<[]>;
|
|
7709
7708
|
/**
|
|
7710
7709
|
* Disallow the bitwise XOR operator where exponentiation was likely intended.
|
|
7711
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7710
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-xor-as-exponentiation.md
|
|
7712
7711
|
*/
|
|
7713
7712
|
'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
|
|
7714
7713
|
/**
|
|
7715
7714
|
* Require consistent decimal numbers without redundant zeros.
|
|
7716
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7715
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/no-zero-fractions.md
|
|
7717
7716
|
*/
|
|
7718
7717
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
|
|
7719
7718
|
/**
|
|
7720
7719
|
* Enforce proper case for numeric literals.
|
|
7721
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7720
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/number-literal-case.md
|
|
7722
7721
|
*/
|
|
7723
7722
|
'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
|
|
7724
7723
|
/**
|
|
7725
7724
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
7726
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7725
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/numeric-separators-style.md
|
|
7727
7726
|
*/
|
|
7728
7727
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
7729
7728
|
/**
|
|
7730
7729
|
* Require assignment operator shorthand where possible.
|
|
7731
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7730
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/operator-assignment.md
|
|
7732
7731
|
*/
|
|
7733
7732
|
'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
|
|
7734
7733
|
/**
|
|
7735
7734
|
* Prefer `AbortSignal.any()` over manually forwarding abort events between signals.
|
|
7736
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7735
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-abort-signal-any.md
|
|
7737
7736
|
*/
|
|
7738
7737
|
'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
|
|
7739
7738
|
/**
|
|
7740
7739
|
* Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
|
|
7741
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7740
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-abort-signal-timeout.md
|
|
7742
7741
|
*/
|
|
7743
7742
|
'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
|
|
7744
7743
|
/**
|
|
7745
7744
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
7746
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7745
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-add-event-listener.md
|
|
7747
7746
|
*/
|
|
7748
7747
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
7749
7748
|
/**
|
|
7750
7749
|
* Prefer an options object over a boolean in `.addEventListener()`.
|
|
7751
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7750
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-add-event-listener-options.md
|
|
7752
7751
|
*/
|
|
7753
7752
|
'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
|
|
7754
7753
|
/**
|
|
7755
7754
|
* Prefer `AggregateError` when throwing collected errors.
|
|
7756
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7755
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-aggregate-error.md
|
|
7757
7756
|
*/
|
|
7758
7757
|
'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
|
|
7759
7758
|
/**
|
|
7760
7759
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
7761
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7760
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-array-find.md
|
|
7762
7761
|
*/
|
|
7763
7762
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
7764
7763
|
/**
|
|
7765
7764
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
7766
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7765
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-array-flat.md
|
|
7767
7766
|
*/
|
|
7768
7767
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
7769
7768
|
/**
|
|
7770
7769
|
* Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
|
|
7771
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7770
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-array-flat-map.md
|
|
7772
7771
|
*/
|
|
7773
7772
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
|
|
7774
7773
|
/**
|
|
7775
7774
|
* Prefer `Array.fromAsync()` over array accumulation loops.
|
|
7776
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7775
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-array-from-async.md
|
|
7777
7776
|
*/
|
|
7778
7777
|
'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
|
|
7779
7778
|
/**
|
|
7780
7779
|
* Prefer using the `Array.from()` mapping function argument.
|
|
7781
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7780
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-array-from-map.md
|
|
7782
7781
|
*/
|
|
7783
7782
|
'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
|
|
7784
7783
|
/**
|
|
7785
7784
|
* Prefer `Array.from({length}, …)` when creating range arrays.
|
|
7786
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7785
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-array-from-range.md
|
|
7787
7786
|
*/
|
|
7788
7787
|
'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
|
|
7789
7788
|
/**
|
|
7790
7789
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
7791
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7790
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-array-index-of.md
|
|
7792
7791
|
*/
|
|
7793
7792
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
|
|
7794
7793
|
/**
|
|
7795
7794
|
* Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
|
|
7796
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7795
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-array-iterable-methods.md
|
|
7797
7796
|
*/
|
|
7798
7797
|
'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
|
|
7799
7798
|
/**
|
|
7800
7799
|
* Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
|
|
7801
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7800
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-array-last-methods.md
|
|
7802
7801
|
*/
|
|
7803
7802
|
'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
|
|
7804
7803
|
/**
|
|
7805
7804
|
* Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
|
|
7806
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7805
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-array-slice.md
|
|
7807
7806
|
*/
|
|
7808
7807
|
'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
|
|
7809
7808
|
/**
|
|
7810
7809
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
7811
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7810
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-array-some.md
|
|
7812
7811
|
*/
|
|
7813
7812
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
|
|
7814
7813
|
/**
|
|
7815
7814
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
7816
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7815
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-at.md
|
|
7817
7816
|
*/
|
|
7818
7817
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
|
|
7819
7818
|
/**
|
|
7820
7819
|
* Prefer `await` over promise chaining.
|
|
7821
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7820
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-await.md
|
|
7822
7821
|
*/
|
|
7823
7822
|
'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
|
|
7824
7823
|
/**
|
|
7825
7824
|
* Prefer `BigInt` literals over the constructor.
|
|
7826
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7825
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-bigint-literals.md
|
|
7827
7826
|
*/
|
|
7828
7827
|
'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
|
|
7829
7828
|
/**
|
|
7830
7829
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
7831
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7830
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
7832
7831
|
*/
|
|
7833
7832
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
|
|
7834
7833
|
/**
|
|
7835
7834
|
* Prefer block statements over IIFEs used only for scoping.
|
|
7836
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7835
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-block-statement-over-iife.md
|
|
7837
7836
|
*/
|
|
7838
7837
|
'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
|
|
7839
7838
|
/**
|
|
7840
7839
|
* Prefer directly returning boolean expressions over `if` statements.
|
|
7841
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7840
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-boolean-return.md
|
|
7842
7841
|
*/
|
|
7843
7842
|
'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
|
|
7844
7843
|
/**
|
|
7845
7844
|
* Prefer class field declarations over `this` assignments in constructors.
|
|
7846
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7845
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-class-fields.md
|
|
7847
7846
|
*/
|
|
7848
7847
|
'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
|
|
7849
7848
|
/**
|
|
7850
7849
|
* Prefer using `Element#classList.toggle()` to toggle class names.
|
|
7851
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7850
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-classlist-toggle.md
|
|
7852
7851
|
*/
|
|
7853
7852
|
'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
|
|
7854
7853
|
/**
|
|
7855
7854
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
7856
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7855
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-code-point.md
|
|
7857
7856
|
*/
|
|
7858
7857
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
|
|
7859
7858
|
/**
|
|
7860
7859
|
* Prefer combining consecutive guards with identical exit statements.
|
|
7861
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7860
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-combined-guards.md
|
|
7862
7861
|
*/
|
|
7863
7862
|
'unicorn/prefer-combined-guards'?: Linter.RuleEntry<UnicornPreferCombinedGuards>;
|
|
7864
7863
|
/**
|
|
7865
7864
|
* Prefer early continues over conditionals wrapping the remainder of the loop body.
|
|
7866
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7865
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-continue.md
|
|
7867
7866
|
*/
|
|
7868
7867
|
'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
|
|
7869
7868
|
/**
|
|
7870
7869
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
7871
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7870
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-date-now.md
|
|
7872
7871
|
*/
|
|
7873
7872
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
|
|
7874
7873
|
/**
|
|
7875
7874
|
* Prefer default parameters and destructuring defaults over reassignment and fallback expressions.
|
|
7876
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7875
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-default-parameters.md
|
|
7877
7876
|
*/
|
|
7878
7877
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<UnicornPreferDefaultParameters>;
|
|
7879
7878
|
/**
|
|
7880
7879
|
* Prefer direct iteration over default iterator method calls.
|
|
7881
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7880
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-direct-iteration.md
|
|
7882
7881
|
*/
|
|
7883
7882
|
'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
|
|
7884
7883
|
/**
|
|
7885
7884
|
* Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
|
|
7886
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7885
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-dispose.md
|
|
7887
7886
|
*/
|
|
7888
7887
|
'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
|
|
7889
7888
|
/**
|
|
7890
7889
|
* Prefer `Element#append()` over `Node#appendChild()`.
|
|
7891
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7890
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-dom-node-append.md
|
|
7892
7891
|
*/
|
|
7893
7892
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
|
|
7894
7893
|
/**
|
|
7895
7894
|
* Renamed to `unicorn/dom-node-dataset`.
|
|
7896
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7895
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
|
|
7897
7896
|
* @deprecated
|
|
7898
7897
|
*/
|
|
7899
7898
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
|
|
7900
7899
|
/**
|
|
7901
7900
|
* Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
|
|
7902
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7901
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-dom-node-html-methods.md
|
|
7903
7902
|
*/
|
|
7904
7903
|
'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
|
|
7905
7904
|
/**
|
|
7906
7905
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
7907
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7906
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-dom-node-remove.md
|
|
7908
7907
|
*/
|
|
7909
7908
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
|
|
7910
7909
|
/**
|
|
7911
7910
|
* Prefer `.replaceChildren()` when replacing DOM children.
|
|
7912
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7911
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-dom-node-replace-children.md
|
|
7913
7912
|
*/
|
|
7914
7913
|
'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
|
|
7915
7914
|
/**
|
|
7916
7915
|
* Prefer `.textContent` over `.innerText`.
|
|
7917
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7916
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
7918
7917
|
*/
|
|
7919
7918
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
|
|
7920
7919
|
/**
|
|
7921
7920
|
* Prefer early returns over conditionals wrapping the remainder of the function body.
|
|
7922
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7921
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-early-return.md
|
|
7923
7922
|
*/
|
|
7924
7923
|
'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
|
|
7925
7924
|
/**
|
|
7926
7925
|
* Prefer `else if` over adjacent `if` statements with related conditions.
|
|
7927
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7926
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-else-if.md
|
|
7928
7927
|
*/
|
|
7929
7928
|
'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
|
|
7930
7929
|
/**
|
|
7931
7930
|
* Prefer `Error.isError()` when checking for errors.
|
|
7932
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7931
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-error-is-error.md
|
|
7933
7932
|
*/
|
|
7934
7933
|
'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
|
|
7935
7934
|
/**
|
|
7936
7935
|
* Prefer escape sequences for irregular whitespace characters.
|
|
7937
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7936
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-escaped-irregular-whitespace.md
|
|
7938
7937
|
*/
|
|
7939
7938
|
'unicorn/prefer-escaped-irregular-whitespace'?: Linter.RuleEntry<[]>;
|
|
7940
7939
|
/**
|
|
7941
7940
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
7942
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7941
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-event-target.md
|
|
7943
7942
|
*/
|
|
7944
7943
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
|
|
7945
7944
|
/**
|
|
7946
7945
|
* Moved to `eslint-cssicorn` as `cssicorn/prefer-explicit-viewport-units`.
|
|
7947
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7946
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#prefer-explicit-viewport-units
|
|
7948
7947
|
* @deprecated
|
|
7949
7948
|
*/
|
|
7950
7949
|
'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<[]>;
|
|
7951
7950
|
/**
|
|
7952
7951
|
* Prefer `export…from` when re-exporting.
|
|
7953
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7952
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-export-from.md
|
|
7954
7953
|
*/
|
|
7955
7954
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
7956
7955
|
/**
|
|
7957
7956
|
* Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
|
|
7958
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7957
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-flat-math-min-max.md
|
|
7959
7958
|
*/
|
|
7960
7959
|
'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
|
|
7961
7960
|
/**
|
|
7962
7961
|
* Prefer `.getOrInsertComputed()` when the default value has side effects.
|
|
7963
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7962
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-get-or-insert-computed.md
|
|
7964
7963
|
*/
|
|
7965
7964
|
'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
|
|
7966
7965
|
/**
|
|
7967
7966
|
* Prefer global numeric constants over `Number` static properties.
|
|
7968
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7967
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-global-number-constants.md
|
|
7969
7968
|
*/
|
|
7970
7969
|
'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
|
|
7971
7970
|
/**
|
|
7972
7971
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
7973
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7972
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-global-this.md
|
|
7974
7973
|
*/
|
|
7975
7974
|
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
|
|
7976
7975
|
/**
|
|
7977
7976
|
* Prefer `Object.groupBy()` or `Map.groupBy()` over manual grouping.
|
|
7978
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7977
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-group-by.md
|
|
7979
7978
|
*/
|
|
7980
7979
|
'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
|
|
7981
7980
|
/**
|
|
7982
7981
|
* Prefer `.has()` when checking existence.
|
|
7983
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7982
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-has-check.md
|
|
7984
7983
|
*/
|
|
7985
7984
|
'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
|
|
7986
7985
|
/**
|
|
7987
7986
|
* Prefer moving code shared by all branches of an `if` statement out of the branches.
|
|
7988
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7987
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-hoisting-branch-code.md
|
|
7989
7988
|
*/
|
|
7990
7989
|
'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
|
|
7991
7990
|
/**
|
|
7992
7991
|
* Prefer HTTPS over HTTP.
|
|
7993
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7992
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-https.md
|
|
7994
7993
|
*/
|
|
7995
7994
|
'unicorn/prefer-https'?: Linter.RuleEntry<UnicornPreferHttps>;
|
|
7996
7995
|
/**
|
|
7997
7996
|
* Prefer identifiers over string literals in import and export specifiers.
|
|
7998
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7997
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
|
|
7999
7998
|
*/
|
|
8000
7999
|
'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
|
|
8001
8000
|
/**
|
|
8002
8001
|
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
8003
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8002
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-import-meta-properties.md
|
|
8004
8003
|
*/
|
|
8005
8004
|
'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
|
|
8006
8005
|
/**
|
|
8007
8006
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
8008
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8007
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-includes.md
|
|
8009
8008
|
*/
|
|
8010
8009
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
|
|
8011
8010
|
/**
|
|
8012
8011
|
* Prefer `.includes()` over repeated equality comparisons.
|
|
8013
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8012
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
|
|
8014
8013
|
*/
|
|
8015
8014
|
'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
|
|
8016
8015
|
/**
|
|
8017
8016
|
* Prefer passing iterables directly to constructors instead of filling empty collections.
|
|
8018
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8017
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-iterable-in-constructor.md
|
|
8019
8018
|
*/
|
|
8020
8019
|
'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
|
|
8021
8020
|
/**
|
|
8022
8021
|
* Prefer `Iterator.concat(…)` over temporary spread arrays.
|
|
8023
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8022
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-iterator-concat.md
|
|
8024
8023
|
*/
|
|
8025
8024
|
'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
|
|
8026
8025
|
/**
|
|
8027
8026
|
* Prefer iterator helpers over temporary arrays from iterators.
|
|
8028
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8027
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-iterator-helpers.md
|
|
8029
8028
|
*/
|
|
8030
8029
|
'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
|
|
8031
8030
|
/**
|
|
8032
8031
|
* Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
|
|
8033
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8032
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-iterator-to-array.md
|
|
8034
8033
|
*/
|
|
8035
8034
|
'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
|
|
8036
8035
|
/**
|
|
8037
8036
|
* Prefer moving `.toArray()` to the end of iterator helper chains.
|
|
8038
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8037
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-iterator-to-array-at-end.md
|
|
8039
8038
|
*/
|
|
8040
8039
|
'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
|
|
8041
8040
|
/**
|
|
8042
8041
|
* Prefer `Iterator.zip()` over parallel-array indexing.
|
|
8043
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8042
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-iterator-zip.md
|
|
8044
8043
|
*/
|
|
8045
8044
|
'unicorn/prefer-iterator-zip'?: Linter.RuleEntry<[]>;
|
|
8046
8045
|
/**
|
|
8047
8046
|
* Prefer JSON imports over reading and parsing JSON files.
|
|
8048
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8047
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-json-import.md
|
|
8049
8048
|
*/
|
|
8050
8049
|
'unicorn/prefer-json-import'?: Linter.RuleEntry<[]>;
|
|
8051
8050
|
/**
|
|
8052
8051
|
* Renamed to `unicorn/consistent-json-file-read`.
|
|
8053
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8052
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
|
|
8054
8053
|
* @deprecated
|
|
8055
8054
|
*/
|
|
8056
8055
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
|
|
8057
8056
|
/**
|
|
8058
8057
|
* Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
|
|
8059
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8058
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
8060
8059
|
*/
|
|
8061
8060
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
|
|
8062
8061
|
/**
|
|
8063
8062
|
* Prefer literal printable ASCII characters over escape sequences.
|
|
8064
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8063
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-literal-ascii.md
|
|
8065
8064
|
*/
|
|
8066
8065
|
'unicorn/prefer-literal-ascii'?: Linter.RuleEntry<[]>;
|
|
8067
8066
|
/**
|
|
8068
8067
|
* Prefer `location.assign()` over assigning to `location.href`.
|
|
8069
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8068
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-location-assign.md
|
|
8070
8069
|
*/
|
|
8071
8070
|
'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
|
|
8072
8071
|
/**
|
|
8073
8072
|
* Prefer using a logical operator over a ternary.
|
|
8074
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8073
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
8075
8074
|
*/
|
|
8076
8075
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
|
|
8077
8076
|
/**
|
|
8078
8077
|
* Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
|
|
8079
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8078
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-map-from-entries.md
|
|
8080
8079
|
*/
|
|
8081
8080
|
'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
|
|
8082
8081
|
/**
|
|
8083
8082
|
* Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
|
|
8084
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8083
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-math-abs.md
|
|
8085
8084
|
*/
|
|
8086
8085
|
'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
|
|
8087
8086
|
/**
|
|
8088
8087
|
* Prefer `Math` constants over their approximate numeric values.
|
|
8089
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8088
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-math-constants.md
|
|
8090
8089
|
*/
|
|
8091
8090
|
'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
|
|
8092
8091
|
/**
|
|
8093
8092
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
8094
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8093
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-math-min-max.md
|
|
8095
8094
|
*/
|
|
8096
8095
|
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
|
|
8097
8096
|
/**
|
|
8098
8097
|
* Prefer `Math.trunc()` for truncating numbers.
|
|
8099
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8098
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-math-trunc.md
|
|
8100
8099
|
*/
|
|
8101
8100
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
|
|
8102
8101
|
/**
|
|
8103
8102
|
* Moved to `eslint-cssicorn` as `cssicorn/prefer-media-feature-range-syntax`.
|
|
8104
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8103
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#prefer-media-feature-range-syntax
|
|
8105
8104
|
* @deprecated
|
|
8106
8105
|
*/
|
|
8107
8106
|
'unicorn/prefer-media-feature-range-syntax'?: Linter.RuleEntry<[]>;
|
|
8108
8107
|
/**
|
|
8109
8108
|
* Prefer moving ternaries into the minimal varying part of an expression.
|
|
8110
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8109
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-minimal-ternary.md
|
|
8111
8110
|
*/
|
|
8112
8111
|
'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
|
|
8113
8112
|
/**
|
|
8114
8113
|
* Prefer modern DOM APIs.
|
|
8115
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8114
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
8116
8115
|
*/
|
|
8117
8116
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
|
|
8118
8117
|
/**
|
|
8119
8118
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
8120
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8119
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-modern-math-apis.md
|
|
8121
8120
|
*/
|
|
8122
8121
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
|
|
8123
8122
|
/**
|
|
8124
8123
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
8125
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8124
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-module.md
|
|
8126
8125
|
*/
|
|
8127
8126
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
|
|
8128
8127
|
/**
|
|
8129
8128
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
8130
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8129
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
8131
8130
|
*/
|
|
8132
8131
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
|
|
8133
8132
|
/**
|
|
8134
8133
|
* Prefer negative index over `.length - index` when possible.
|
|
8135
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8134
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-negative-index.md
|
|
8136
8135
|
*/
|
|
8137
8136
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
|
|
8138
8137
|
/**
|
|
8139
8138
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
8140
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8139
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-node-protocol.md
|
|
8141
8140
|
*/
|
|
8142
8141
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
|
|
8143
8142
|
/**
|
|
8144
8143
|
* Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
|
|
8145
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8144
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-number-coercion.md
|
|
8146
8145
|
*/
|
|
8147
8146
|
'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
|
|
8148
8147
|
/**
|
|
8149
8148
|
* Prefer `Number.isSafeInteger()` over integer checks.
|
|
8150
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8149
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-number-is-safe-integer.md
|
|
8151
8150
|
*/
|
|
8152
8151
|
'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
|
|
8153
8152
|
/**
|
|
8154
8153
|
* Prefer `Number` static methods over global functions and optionally static properties over global constants.
|
|
8155
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8154
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-number-properties.md
|
|
8156
8155
|
*/
|
|
8157
8156
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
8158
8157
|
/**
|
|
8159
8158
|
* Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
|
|
8160
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8159
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-object-define-properties.md
|
|
8161
8160
|
*/
|
|
8162
8161
|
'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
|
|
8163
8162
|
/**
|
|
8164
8163
|
* Prefer object destructuring defaults over default object literals with spread.
|
|
8165
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8164
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-object-destructuring-defaults.md
|
|
8166
8165
|
*/
|
|
8167
8166
|
'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
|
|
8168
8167
|
/**
|
|
8169
8168
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
8170
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8169
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-object-from-entries.md
|
|
8171
8170
|
*/
|
|
8172
8171
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
8173
8172
|
/**
|
|
8174
8173
|
* Prefer the most specific `Object` iterable method.
|
|
8175
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8174
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-object-iterable-methods.md
|
|
8176
8175
|
*/
|
|
8177
8176
|
'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
|
|
8178
8177
|
/**
|
|
8179
8178
|
* Prefer observer APIs over resize and scroll listeners with layout reads.
|
|
8180
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8179
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-observer-apis.md
|
|
8181
8180
|
*/
|
|
8182
8181
|
'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
|
|
8183
8182
|
/**
|
|
8184
8183
|
* Prefer omitting the `catch` binding parameter.
|
|
8185
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8184
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
8186
8185
|
*/
|
|
8187
8186
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
|
|
8187
|
+
/**
|
|
8188
|
+
* Prefer an options object over optional positional parameters.
|
|
8189
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-options-parameter.md
|
|
8190
|
+
*/
|
|
8191
|
+
'unicorn/prefer-options-parameter'?: Linter.RuleEntry<UnicornPreferOptionsParameter>;
|
|
8188
8192
|
/**
|
|
8189
8193
|
* Prefer `Path2D` for repeatedly drawn canvas paths.
|
|
8190
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8194
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-path2d.md
|
|
8191
8195
|
*/
|
|
8192
8196
|
'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
|
|
8193
8197
|
/**
|
|
8194
8198
|
* Prefer private class fields over the underscore-prefix convention.
|
|
8195
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8199
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-private-class-fields.md
|
|
8196
8200
|
*/
|
|
8197
8201
|
'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
|
|
8198
8202
|
/**
|
|
8199
8203
|
* Prefer `Promise.resolve()` and `Promise.reject()` over trivial `new Promise()` calls.
|
|
8200
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8204
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-promise-static-methods.md
|
|
8201
8205
|
*/
|
|
8202
8206
|
'unicorn/prefer-promise-static-methods'?: Linter.RuleEntry<[]>;
|
|
8203
8207
|
/**
|
|
8204
8208
|
* Prefer `Promise.try()` over promise-wrapping boilerplate.
|
|
8205
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8209
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-promise-try.md
|
|
8206
8210
|
*/
|
|
8207
8211
|
'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
|
|
8208
8212
|
/**
|
|
8209
8213
|
* Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
|
|
8210
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8214
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-promise-with-resolvers.md
|
|
8211
8215
|
*/
|
|
8212
8216
|
'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
|
|
8213
8217
|
/**
|
|
8214
8218
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
8215
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8219
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-prototype-methods.md
|
|
8216
8220
|
*/
|
|
8217
8221
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
|
|
8218
8222
|
/**
|
|
8219
8223
|
* Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
|
|
8220
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8224
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-query-selector.md
|
|
8221
8225
|
*/
|
|
8222
8226
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
|
|
8223
8227
|
/**
|
|
8224
8228
|
* Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
|
|
8225
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8229
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-queue-microtask.md
|
|
8226
8230
|
*/
|
|
8227
8231
|
'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
|
|
8228
8232
|
/**
|
|
8229
8233
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
8230
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8234
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-reflect-apply.md
|
|
8231
8235
|
*/
|
|
8232
8236
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
|
|
8233
8237
|
/**
|
|
8234
8238
|
* Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
|
|
8235
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8239
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-regexp-escape.md
|
|
8236
8240
|
*/
|
|
8237
8241
|
'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
|
|
8242
|
+
/**
|
|
8243
|
+
* Prefer `RegExp#exec()` over `String#match()` for non-global regular expressions.
|
|
8244
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-regexp-exec.md
|
|
8245
|
+
*/
|
|
8246
|
+
'unicorn/prefer-regexp-exec'?: Linter.RuleEntry<[]>;
|
|
8238
8247
|
/**
|
|
8239
8248
|
* Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
|
|
8240
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8249
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-regexp-test.md
|
|
8241
8250
|
*/
|
|
8242
8251
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
|
|
8243
8252
|
/**
|
|
8244
8253
|
* Prefer `Response.json()` over `new Response(JSON.stringify())`.
|
|
8245
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8254
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-response-static-json.md
|
|
8246
8255
|
*/
|
|
8247
8256
|
'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
|
|
8248
8257
|
/**
|
|
8249
8258
|
* Prefer `:scope` when using element query selector methods.
|
|
8250
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8259
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-scoped-selector.md
|
|
8251
8260
|
*/
|
|
8252
8261
|
'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
|
|
8253
8262
|
/**
|
|
8254
8263
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
8255
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8264
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-set-has.md
|
|
8256
8265
|
*/
|
|
8257
8266
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
|
|
8258
8267
|
/**
|
|
8259
8268
|
* Prefer `Set` methods for Set operations.
|
|
8260
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8269
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-set-methods.md
|
|
8261
8270
|
*/
|
|
8262
8271
|
'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
|
|
8263
8272
|
/**
|
|
8264
8273
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
8265
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8274
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-set-size.md
|
|
8266
8275
|
*/
|
|
8267
8276
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
|
|
8268
8277
|
/**
|
|
8269
8278
|
* Prefer arrow function properties over methods with a single return.
|
|
8270
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8279
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-short-arrow-method.md
|
|
8271
8280
|
*/
|
|
8272
8281
|
'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
|
|
8273
8282
|
/**
|
|
8274
8283
|
* Prefer shorter alternatives to Unicode escape sequences.
|
|
8275
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8284
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-short-escape-sequences.md
|
|
8276
8285
|
*/
|
|
8277
8286
|
'unicorn/prefer-short-escape-sequences'?: Linter.RuleEntry<[]>;
|
|
8278
8287
|
/**
|
|
8279
8288
|
* Prefer simple conditions first in logical expressions.
|
|
8280
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8289
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-simple-condition-first.md
|
|
8281
8290
|
*/
|
|
8282
8291
|
'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
|
|
8283
8292
|
/**
|
|
8284
8293
|
* Prefer a simple comparison function for `Array#sort()`.
|
|
8285
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8294
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-simple-sort-comparator.md
|
|
8286
8295
|
*/
|
|
8287
8296
|
'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
|
|
8288
8297
|
/**
|
|
8289
8298
|
* Prefer simplified conditions.
|
|
8290
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8299
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-simplified-conditions.md
|
|
8291
8300
|
*/
|
|
8292
8301
|
'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<UnicornPreferSimplifiedConditions>;
|
|
8293
8302
|
/**
|
|
8294
8303
|
* Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
|
|
8295
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8304
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-single-array-predicate.md
|
|
8296
8305
|
*/
|
|
8297
8306
|
'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
|
|
8298
8307
|
/**
|
|
8299
8308
|
* Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
8300
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8309
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-single-call.md
|
|
8301
8310
|
*/
|
|
8302
8311
|
'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
|
|
8303
8312
|
/**
|
|
8304
8313
|
* Prefer a single object destructuring declaration per local const source.
|
|
8305
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8314
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-single-object-destructuring.md
|
|
8306
8315
|
*/
|
|
8307
8316
|
'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
|
|
8308
8317
|
/**
|
|
8309
8318
|
* Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
|
|
8310
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8319
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-single-replace.md
|
|
8311
8320
|
*/
|
|
8312
8321
|
'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
|
|
8313
8322
|
/**
|
|
8314
8323
|
* Prefer declaring variables and type aliases in the smallest possible scope.
|
|
8315
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8324
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-smaller-scope.md
|
|
8316
8325
|
*/
|
|
8317
|
-
'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<
|
|
8326
|
+
'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<UnicornPreferSmallerScope>;
|
|
8318
8327
|
/**
|
|
8319
8328
|
* Prefer `String#split()` with a limit.
|
|
8320
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8329
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-split-limit.md
|
|
8321
8330
|
*/
|
|
8322
8331
|
'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
|
|
8323
8332
|
/**
|
|
8324
8333
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
|
|
8325
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8334
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-spread.md
|
|
8326
8335
|
*/
|
|
8327
8336
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
|
|
8328
8337
|
/**
|
|
8329
8338
|
* Prefer `String#matchAll()` over `RegExp#exec()` loops.
|
|
8330
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8339
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-string-match-all.md
|
|
8331
8340
|
*/
|
|
8332
8341
|
'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
|
|
8333
8342
|
/**
|
|
8334
8343
|
* Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
|
|
8335
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8344
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-string-pad-start-end.md
|
|
8336
8345
|
*/
|
|
8337
8346
|
'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
|
|
8338
8347
|
/**
|
|
8339
8348
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
8340
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8349
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-string-raw.md
|
|
8341
8350
|
*/
|
|
8342
8351
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
|
|
8343
8352
|
/**
|
|
8344
8353
|
* Prefer `String#repeat()` for repeated whitespace.
|
|
8345
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8354
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-string-repeat.md
|
|
8346
8355
|
*/
|
|
8347
8356
|
'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
|
|
8348
8357
|
/**
|
|
8349
8358
|
* Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
|
|
8350
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8359
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-string-replace-all.md
|
|
8351
8360
|
*/
|
|
8352
8361
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
|
|
8353
8362
|
/**
|
|
8354
8363
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
8355
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8364
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-string-slice.md
|
|
8356
8365
|
*/
|
|
8357
8366
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
|
|
8358
8367
|
/**
|
|
8359
8368
|
* Prefer `String#startsWith()` & `String#endsWith()` over regexes, `String#indexOf() === 0`, and slice checks.
|
|
8360
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8369
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
8361
8370
|
*/
|
|
8362
8371
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
|
|
8363
8372
|
/**
|
|
8364
8373
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
8365
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8374
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
8366
8375
|
*/
|
|
8367
8376
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
|
|
8368
8377
|
/**
|
|
8369
8378
|
* Prefer using `structuredClone` to create a deep clone.
|
|
8370
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8379
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-structured-clone.md
|
|
8371
8380
|
*/
|
|
8372
8381
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
8373
8382
|
/**
|
|
8374
8383
|
* Prefer `switch` over multiple `else-if`.
|
|
8375
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8384
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-switch.md
|
|
8376
8385
|
*/
|
|
8377
8386
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
8378
8387
|
/**
|
|
8379
8388
|
* Prefer `Temporal` over `Date`.
|
|
8380
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8389
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-temporal.md
|
|
8381
8390
|
*/
|
|
8382
8391
|
'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
|
|
8383
8392
|
/**
|
|
8384
8393
|
* Prefer direct Temporal conversion methods.
|
|
8385
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8394
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-temporal-conversion.md
|
|
8386
8395
|
*/
|
|
8387
8396
|
'unicorn/prefer-temporal-conversion'?: Linter.RuleEntry<[]>;
|
|
8388
8397
|
/**
|
|
8389
8398
|
* Prefer ternary expressions over simple `if` statements.
|
|
8390
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8399
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-ternary.md
|
|
8391
8400
|
*/
|
|
8392
8401
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
8393
8402
|
/**
|
|
8394
8403
|
* Prefer `.then().catch()` over `.then(…, …)` for error handling.
|
|
8395
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8404
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-then-catch.md
|
|
8396
8405
|
*/
|
|
8397
8406
|
'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>;
|
|
8398
8407
|
/**
|
|
8399
8408
|
* Prefer using `Element#toggleAttribute()` to toggle attributes.
|
|
8400
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8409
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-toggle-attribute.md
|
|
8401
8410
|
*/
|
|
8402
8411
|
'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
|
|
8403
8412
|
/**
|
|
8404
8413
|
* Prefer top-level await over top-level promises and async function calls.
|
|
8405
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8414
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-top-level-await.md
|
|
8406
8415
|
*/
|
|
8407
8416
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
|
|
8408
8417
|
/**
|
|
8409
8418
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
8410
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8419
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-type-error.md
|
|
8411
8420
|
*/
|
|
8412
8421
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
|
|
8413
8422
|
/**
|
|
8414
8423
|
* Require type literals to be last in union types.
|
|
8415
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8424
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-type-literal-last.md
|
|
8416
8425
|
*/
|
|
8417
8426
|
'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
|
|
8418
8427
|
/**
|
|
8419
8428
|
* Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over legacy base64 conversions and manual postprocessing.
|
|
8420
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8429
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-uint8array-base64.md
|
|
8421
8430
|
*/
|
|
8422
|
-
'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<
|
|
8431
|
+
'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<UnicornPreferUint8ArrayBase64>;
|
|
8423
8432
|
/**
|
|
8424
8433
|
* Prefer `Uint8Array#toHex()` and `Uint8Array.fromHex()` over manual and Buffer hex conversions.
|
|
8425
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8434
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-uint8array-hex.md
|
|
8426
8435
|
*/
|
|
8427
|
-
'unicorn/prefer-uint8array-hex'?: Linter.RuleEntry<
|
|
8436
|
+
'unicorn/prefer-uint8array-hex'?: Linter.RuleEntry<UnicornPreferUint8ArrayHex>;
|
|
8428
8437
|
/**
|
|
8429
8438
|
* Prefer the unary minus operator over multiplying or dividing by `-1`.
|
|
8430
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8439
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-unary-minus.md
|
|
8431
8440
|
*/
|
|
8432
8441
|
'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
|
|
8433
8442
|
/**
|
|
8434
8443
|
* Prefer Unicode code point escapes over legacy escape sequences.
|
|
8435
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8444
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-unicode-code-point-escapes.md
|
|
8436
8445
|
*/
|
|
8437
8446
|
'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
|
|
8438
8447
|
/**
|
|
8439
8448
|
* Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
|
|
8440
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8449
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-url-can-parse.md
|
|
8441
8450
|
*/
|
|
8442
8451
|
'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
|
|
8443
8452
|
/**
|
|
8444
8453
|
* Prefer `URL#href` over stringifying a `URL`.
|
|
8445
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8454
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-url-href.md
|
|
8446
8455
|
*/
|
|
8447
8456
|
'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
|
|
8448
8457
|
/**
|
|
8449
8458
|
* Prefer `URLSearchParams` over manually splitting query strings.
|
|
8450
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8459
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-url-search-parameters.md
|
|
8451
8460
|
*/
|
|
8452
8461
|
'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
|
|
8453
8462
|
/**
|
|
8454
8463
|
* Prefer putting the condition in the while statement.
|
|
8455
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8464
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/prefer-while-loop-condition.md
|
|
8456
8465
|
*/
|
|
8457
8466
|
'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
|
|
8458
8467
|
/**
|
|
8459
8468
|
* Renamed to `unicorn/name-replacements`.
|
|
8460
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8469
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
|
|
8461
8470
|
* @deprecated
|
|
8462
8471
|
*/
|
|
8463
8472
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
|
|
8464
8473
|
/**
|
|
8465
8474
|
* Enforce consistent relative URL style.
|
|
8466
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8475
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/relative-url-style.md
|
|
8467
8476
|
*/
|
|
8468
8477
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
8469
8478
|
/**
|
|
8470
8479
|
* Enforce using the separator argument with `Array#join()`.
|
|
8471
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8480
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/require-array-join-separator.md
|
|
8472
8481
|
*/
|
|
8473
8482
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
|
|
8474
8483
|
/**
|
|
8475
8484
|
* Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
|
|
8476
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8485
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/require-array-sort-compare.md
|
|
8477
8486
|
*/
|
|
8478
8487
|
'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
|
|
8479
8488
|
/**
|
|
8480
8489
|
* Require `CSS.escape()` for interpolated values in CSS selectors.
|
|
8481
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8490
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/require-css-escape.md
|
|
8482
8491
|
*/
|
|
8483
8492
|
'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
|
|
8484
8493
|
/**
|
|
8485
8494
|
* Require configured YAML frontmatter fields.
|
|
8486
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8495
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/require-frontmatter-fields.md
|
|
8487
8496
|
*/
|
|
8488
8497
|
'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
|
|
8489
8498
|
/**
|
|
8490
8499
|
* Require non-empty module attributes for imports and exports
|
|
8491
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8500
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/require-module-attributes.md
|
|
8492
8501
|
*/
|
|
8493
8502
|
'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
|
|
8494
8503
|
/**
|
|
8495
8504
|
* Require non-empty specifier list in import and export statements.
|
|
8496
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8505
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/require-module-specifiers.md
|
|
8497
8506
|
*/
|
|
8498
8507
|
'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
|
|
8499
8508
|
/**
|
|
8500
8509
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
8501
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8510
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
8502
8511
|
*/
|
|
8503
8512
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
|
|
8504
8513
|
/**
|
|
8505
8514
|
* Require passive event listeners for high-frequency events.
|
|
8506
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8515
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/require-passive-events.md
|
|
8507
8516
|
*/
|
|
8508
8517
|
'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
|
|
8509
8518
|
/**
|
|
8510
8519
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
8511
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8520
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/require-post-message-target-origin.md
|
|
8512
8521
|
*/
|
|
8513
8522
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
|
|
8514
8523
|
/**
|
|
8515
8524
|
* Require boolean-returning Proxy traps to return booleans.
|
|
8516
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8525
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/require-proxy-trap-boolean-return.md
|
|
8517
8526
|
*/
|
|
8518
8527
|
'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
|
|
8528
|
+
/**
|
|
8529
|
+
* Require parentheses around complex spread arguments.
|
|
8530
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/require-spread-parentheses.md
|
|
8531
|
+
*/
|
|
8532
|
+
'unicorn/require-spread-parentheses'?: Linter.RuleEntry<[]>;
|
|
8519
8533
|
/**
|
|
8520
8534
|
* Require streaming decoding of fetch-body chunks with `TextDecoder`.
|
|
8521
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8535
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/require-text-decoder-streaming.md
|
|
8522
8536
|
*/
|
|
8523
8537
|
'unicorn/require-text-decoder-streaming'?: Linter.RuleEntry<[]>;
|
|
8524
8538
|
/**
|
|
8525
8539
|
* Enforce a consistent style for single-line block comments.
|
|
8526
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8540
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/single-line-block-comment-style.md
|
|
8527
8541
|
*/
|
|
8528
8542
|
'unicorn/single-line-block-comment-style'?: Linter.RuleEntry<UnicornSingleLineBlockCommentStyle>;
|
|
8529
8543
|
/**
|
|
8530
8544
|
* Enforce better string content.
|
|
8531
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8545
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/string-content.md
|
|
8532
8546
|
*/
|
|
8533
8547
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
|
|
8534
8548
|
/**
|
|
8535
8549
|
* Enforce consistent brace style for `case` clauses.
|
|
8536
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8550
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/switch-case-braces.md
|
|
8537
8551
|
*/
|
|
8538
8552
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
8539
8553
|
/**
|
|
8540
8554
|
* Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
|
|
8541
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8555
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/switch-case-break-position.md
|
|
8542
8556
|
*/
|
|
8543
8557
|
'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
|
|
8544
8558
|
/**
|
|
8545
8559
|
* Fix whitespace-insensitive template indentation.
|
|
8546
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8560
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/template-indent.md
|
|
8547
8561
|
*/
|
|
8548
8562
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
8549
8563
|
/**
|
|
8550
8564
|
* Enforce consistent case for text encoding identifiers.
|
|
8551
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8565
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/text-encoding-identifier-case.md
|
|
8552
8566
|
*/
|
|
8553
8567
|
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
|
|
8554
8568
|
/**
|
|
8555
8569
|
* Require `new` when creating an error.
|
|
8556
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8570
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/throw-new-error.md
|
|
8557
8571
|
*/
|
|
8558
8572
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
|
|
8559
8573
|
/**
|
|
8560
8574
|
* Limit the complexity of `try` blocks.
|
|
8561
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
8575
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v80.0.0/docs/rules/try-complexity.md
|
|
8562
8576
|
*/
|
|
8563
8577
|
'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
|
|
8564
8578
|
/**
|
|
@@ -8581,6 +8595,16 @@ interface RuleOptions {
|
|
|
8581
8595
|
* @see https://unocss.dev/integrations/eslint#rules
|
|
8582
8596
|
*/
|
|
8583
8597
|
'unocss/order-attributify'?: Linter.RuleEntry<[]>;
|
|
8598
|
+
/**
|
|
8599
|
+
* Disallow unused variables
|
|
8600
|
+
* @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-imports.md
|
|
8601
|
+
*/
|
|
8602
|
+
'unused-imports/no-unused-imports'?: Linter.RuleEntry<UnusedImportsNoUnusedImports>;
|
|
8603
|
+
/**
|
|
8604
|
+
* Disallow unused variables
|
|
8605
|
+
* @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-vars.md
|
|
8606
|
+
*/
|
|
8607
|
+
'unused-imports/no-unused-vars'?: Linter.RuleEntry<UnusedImportsNoUnusedVars>;
|
|
8584
8608
|
/**
|
|
8585
8609
|
* Require calls to `isNaN()` when checking for `NaN`
|
|
8586
8610
|
* @see https://eslint.org/docs/latest/rules/use-isnan
|
|
@@ -9009,152 +9033,187 @@ interface RuleOptions {
|
|
|
9009
9033
|
'vitest/warn-todo'?: Linter.RuleEntry<[]>;
|
|
9010
9034
|
/**
|
|
9011
9035
|
* enforce inline callback function and body styles for Vue APIs.
|
|
9012
|
-
* @see https://
|
|
9036
|
+
* @see https://vue-perfectionist.ntnyq.dev/rules/callback-style
|
|
9013
9037
|
*/
|
|
9014
9038
|
'vue-perfectionist/callback-style'?: Linter.RuleEntry<VuePerfectionistCallbackStyle>;
|
|
9015
9039
|
/**
|
|
9016
9040
|
* enforce configured prop value types at Vue component usage sites.
|
|
9017
|
-
* @see https://
|
|
9041
|
+
* @see https://vue-perfectionist.ntnyq.dev/rules/component-prop-types
|
|
9018
9042
|
*/
|
|
9019
9043
|
'vue-perfectionist/component-prop-types'?: Linter.RuleEntry<VuePerfectionistComponentPropTypes>;
|
|
9020
9044
|
/**
|
|
9021
9045
|
* enforce configured prop value constraints at Vue component usage sites.
|
|
9022
|
-
* @see https://
|
|
9046
|
+
* @see https://vue-perfectionist.ntnyq.dev/rules/component-prop-values
|
|
9023
9047
|
*/
|
|
9024
9048
|
'vue-perfectionist/component-prop-values'?: Linter.RuleEntry<VuePerfectionistComponentPropValues>;
|
|
9049
|
+
/**
|
|
9050
|
+
* enforce consistent Vue template element layouts.
|
|
9051
|
+
* @see https://vue-perfectionist.ntnyq.dev/rules/consistent-template-element-layout
|
|
9052
|
+
*/
|
|
9053
|
+
'vue-perfectionist/consistent-template-element-layout'?: Linter.RuleEntry<VuePerfectionistConsistentTemplateElementLayout>;
|
|
9025
9054
|
/**
|
|
9026
9055
|
* require template ref variable names to match their keys.
|
|
9027
|
-
* @see https://
|
|
9056
|
+
* @see https://vue-perfectionist.ntnyq.dev/rules/consistent-template-ref-name
|
|
9028
9057
|
*/
|
|
9029
9058
|
'vue-perfectionist/consistent-template-ref-name'?: Linter.RuleEntry<[]>;
|
|
9030
9059
|
/**
|
|
9031
9060
|
* require multiline inline declarations in Vue compiler macros.
|
|
9032
|
-
* @see https://
|
|
9061
|
+
* @see https://vue-perfectionist.ntnyq.dev/rules/define-macros-newline
|
|
9033
9062
|
*/
|
|
9034
9063
|
'vue-perfectionist/define-macros-newline'?: Linter.RuleEntry<VuePerfectionistDefineMacrosNewline>;
|
|
9035
9064
|
/**
|
|
9036
9065
|
* enforce declaration styles for Vue macro type arguments.
|
|
9037
|
-
* @see https://
|
|
9066
|
+
* @see https://vue-perfectionist.ntnyq.dev/rules/define-macros-type-style
|
|
9038
9067
|
*/
|
|
9039
9068
|
'vue-perfectionist/define-macros-type-style'?: Linter.RuleEntry<VuePerfectionistDefineMacrosTypeStyle>;
|
|
9040
9069
|
/**
|
|
9041
9070
|
* enforce casing for explicit defineModel names.
|
|
9042
|
-
* @see https://
|
|
9071
|
+
* @see https://vue-perfectionist.ntnyq.dev/rules/define-model-name-casing
|
|
9043
9072
|
*/
|
|
9044
9073
|
'vue-perfectionist/define-model-name-casing'?: Linter.RuleEntry<VuePerfectionistDefineModelNameCasing>;
|
|
9045
9074
|
/**
|
|
9046
9075
|
* enforce a maximum number of lines in inline callbacks for Vue APIs.
|
|
9047
|
-
* @see https://
|
|
9076
|
+
* @see https://vue-perfectionist.ntnyq.dev/rules/max-lines-per-callback
|
|
9048
9077
|
*/
|
|
9049
9078
|
'vue-perfectionist/max-lines-per-callback'?: Linter.RuleEntry<VuePerfectionistMaxLinesPerCallback>;
|
|
9050
9079
|
/**
|
|
9051
9080
|
* enforce limits on logical operators and conditional nesting in Vue templates.
|
|
9052
|
-
* @see https://
|
|
9081
|
+
* @see https://vue-perfectionist.ntnyq.dev/rules/no-complex-template-expression
|
|
9053
9082
|
*/
|
|
9054
9083
|
'vue-perfectionist/no-complex-template-expression'?: Linter.RuleEntry<VuePerfectionistNoComplexTemplateExpression>;
|
|
9055
9084
|
/**
|
|
9056
9085
|
* disallow complex expressions in Vue v-for sources.
|
|
9057
|
-
* @see https://
|
|
9086
|
+
* @see https://vue-perfectionist.ntnyq.dev/rules/no-complex-v-for-source
|
|
9058
9087
|
*/
|
|
9059
9088
|
'vue-perfectionist/no-complex-v-for-source'?: Linter.RuleEntry<VuePerfectionistNoComplexVForSource>;
|
|
9089
|
+
/**
|
|
9090
|
+
* disallow returning Vue reactive proxies directly from composables.
|
|
9091
|
+
* @see https://vue-perfectionist.ntnyq.dev/rules/no-reactive-composable-return
|
|
9092
|
+
*/
|
|
9093
|
+
'vue-perfectionist/no-reactive-composable-return'?: Linter.RuleEntry<VuePerfectionistNoReactiveComposableReturn>;
|
|
9060
9094
|
/**
|
|
9061
9095
|
* disallow specified native HTML elements in Vue templates.
|
|
9062
|
-
* @see https://
|
|
9096
|
+
* @see https://vue-perfectionist.ntnyq.dev/rules/no-restricted-html-elements
|
|
9063
9097
|
*/
|
|
9064
9098
|
'vue-perfectionist/no-restricted-html-elements'?: Linter.RuleEntry<VuePerfectionistNoRestrictedHtmlElements>;
|
|
9099
|
+
/**
|
|
9100
|
+
* disallow as type assertions in Vue templates.
|
|
9101
|
+
* @see https://vue-perfectionist.ntnyq.dev/rules/no-template-type-assertion
|
|
9102
|
+
*/
|
|
9103
|
+
'vue-perfectionist/no-template-type-assertion'?: Linter.RuleEntry<[]>;
|
|
9104
|
+
/**
|
|
9105
|
+
* disallow calling onWatcherCleanup after await in inline Vue watcher callbacks.
|
|
9106
|
+
* @see https://vue-perfectionist.ntnyq.dev/rules/no-watcher-cleanup-after-await
|
|
9107
|
+
*/
|
|
9108
|
+
'vue-perfectionist/no-watcher-cleanup-after-await'?: Linter.RuleEntry<[]>;
|
|
9065
9109
|
/**
|
|
9066
9110
|
* enforce blank lines between consecutive Vue template tags.
|
|
9067
|
-
* @see https://
|
|
9111
|
+
* @see https://vue-perfectionist.ntnyq.dev/rules/padding-line-between-tags
|
|
9068
9112
|
*/
|
|
9069
9113
|
'vue-perfectionist/padding-line-between-tags'?: Linter.RuleEntry<VuePerfectionistPaddingLineBetweenTags>;
|
|
9070
9114
|
/**
|
|
9071
9115
|
* require a final options object for composable parameters.
|
|
9072
|
-
* @see https://
|
|
9116
|
+
* @see https://vue-perfectionist.ntnyq.dev/rules/prefer-composable-options
|
|
9073
9117
|
*/
|
|
9074
9118
|
'vue-perfectionist/prefer-composable-options'?: Linter.RuleEntry<VuePerfectionistPreferComposableOptions>;
|
|
9075
9119
|
/**
|
|
9076
9120
|
* require defineModel instead of matching prop and update event declarations.
|
|
9077
|
-
* @see https://
|
|
9121
|
+
* @see https://vue-perfectionist.ntnyq.dev/rules/prefer-define-model
|
|
9078
9122
|
*/
|
|
9079
|
-
'vue-perfectionist/prefer-define-model'?: Linter.RuleEntry<
|
|
9123
|
+
'vue-perfectionist/prefer-define-model'?: Linter.RuleEntry<VuePerfectionistPreferDefineModel>;
|
|
9080
9124
|
/**
|
|
9081
9125
|
* require function declarations at the top level of SFCs and composables.
|
|
9082
|
-
* @see https://
|
|
9126
|
+
* @see https://vue-perfectionist.ntnyq.dev/rules/prefer-function-declaration
|
|
9083
9127
|
*/
|
|
9084
9128
|
'vue-perfectionist/prefer-function-declaration'?: Linter.RuleEntry<VuePerfectionistPreferFunctionDeclaration>;
|
|
9085
9129
|
/**
|
|
9086
9130
|
* enforce naming patterns for function result bindings.
|
|
9087
|
-
* @see https://
|
|
9131
|
+
* @see https://vue-perfectionist.ntnyq.dev/rules/prefer-function-result-pattern
|
|
9088
9132
|
*/
|
|
9089
9133
|
'vue-perfectionist/prefer-function-result-pattern'?: Linter.RuleEntry<VuePerfectionistPreferFunctionResultPattern>;
|
|
9090
9134
|
/**
|
|
9091
9135
|
* require scope-based cleanup in named Vue composables.
|
|
9092
|
-
* @see https://
|
|
9136
|
+
* @see https://vue-perfectionist.ntnyq.dev/rules/prefer-on-scope-dispose
|
|
9093
9137
|
*/
|
|
9094
9138
|
'vue-perfectionist/prefer-on-scope-dispose'?: Linter.RuleEntry<VuePerfectionistPreferOnScopeDispose>;
|
|
9095
9139
|
/**
|
|
9096
9140
|
* enforce a naming pattern for Vue template references.
|
|
9097
|
-
* @see https://
|
|
9141
|
+
* @see https://vue-perfectionist.ntnyq.dev/rules/prefer-ref-pattern
|
|
9098
9142
|
*/
|
|
9099
9143
|
'vue-perfectionist/prefer-ref-pattern'?: Linter.RuleEntry<VuePerfectionistPreferRefPattern>;
|
|
9100
9144
|
/**
|
|
9101
9145
|
* require simple expressions in Vue template event handlers.
|
|
9102
|
-
* @see https://
|
|
9146
|
+
* @see https://vue-perfectionist.ntnyq.dev/rules/prefer-simple-event-handler
|
|
9103
9147
|
*/
|
|
9104
9148
|
'vue-perfectionist/prefer-simple-event-handler'?: Linter.RuleEntry<VuePerfectionistPreferSimpleEventHandler>;
|
|
9105
9149
|
/**
|
|
9106
9150
|
* require a single template literal for mixed text and interpolation.
|
|
9107
|
-
* @see https://
|
|
9151
|
+
* @see https://vue-perfectionist.ntnyq.dev/rules/prefer-template-literal-in-interpolation
|
|
9108
9152
|
*/
|
|
9109
9153
|
'vue-perfectionist/prefer-template-literal-in-interpolation'?: Linter.RuleEntry<VuePerfectionistPreferTemplateLiteralInInterpolation>;
|
|
9110
9154
|
/**
|
|
9111
9155
|
* enforce inferred types for static Vue template refs.
|
|
9112
|
-
* @see https://
|
|
9156
|
+
* @see https://vue-perfectionist.ntnyq.dev/rules/prefer-use-template-ref-inference
|
|
9113
9157
|
*/
|
|
9114
9158
|
'vue-perfectionist/prefer-use-template-ref-inference'?: Linter.RuleEntry<VuePerfectionistPreferUseTemplateRefInference>;
|
|
9115
9159
|
/**
|
|
9116
9160
|
* require dedicated aliases for post and sync watch effects.
|
|
9117
|
-
* @see https://
|
|
9161
|
+
* @see https://vue-perfectionist.ntnyq.dev/rules/prefer-watch-effect-alias
|
|
9118
9162
|
*/
|
|
9119
9163
|
'vue-perfectionist/prefer-watch-effect-alias'?: Linter.RuleEntry<VuePerfectionistPreferWatchEffectAlias>;
|
|
9120
9164
|
/**
|
|
9121
9165
|
* require configured props at Vue component usage sites.
|
|
9122
|
-
* @see https://
|
|
9166
|
+
* @see https://vue-perfectionist.ntnyq.dev/rules/require-component-props
|
|
9123
9167
|
*/
|
|
9124
9168
|
'vue-perfectionist/require-component-props'?: Linter.RuleEntry<VuePerfectionistRequireComponentProps>;
|
|
9125
9169
|
/**
|
|
9126
9170
|
* require configured slots at Vue component usage sites.
|
|
9127
|
-
* @see https://
|
|
9171
|
+
* @see https://vue-perfectionist.ntnyq.dev/rules/require-component-slots
|
|
9128
9172
|
*/
|
|
9129
9173
|
'vue-perfectionist/require-component-slots'?: Linter.RuleEntry<VuePerfectionistRequireComponentSlots>;
|
|
9174
|
+
/**
|
|
9175
|
+
* require composable return fields to expose local bindings.
|
|
9176
|
+
* @see https://vue-perfectionist.ntnyq.dev/rules/require-composable-return-bindings
|
|
9177
|
+
*/
|
|
9178
|
+
'vue-perfectionist/require-composable-return-bindings'?: Linter.RuleEntry<VuePerfectionistRequireComposableReturnBindings>;
|
|
9130
9179
|
/**
|
|
9131
9180
|
* disallow string keys in Vue provide and inject calls.
|
|
9132
|
-
* @see https://
|
|
9181
|
+
* @see https://vue-perfectionist.ntnyq.dev/rules/require-injection-key
|
|
9133
9182
|
*/
|
|
9134
9183
|
'vue-perfectionist/require-injection-key'?: Linter.RuleEntry<VuePerfectionistRequireInjectionKey>;
|
|
9135
9184
|
/**
|
|
9136
9185
|
* require exact call-site names for Vue macro type arguments.
|
|
9137
|
-
* @see https://
|
|
9186
|
+
* @see https://vue-perfectionist.ntnyq.dev/rules/require-macro-type-name
|
|
9138
9187
|
*/
|
|
9139
9188
|
'vue-perfectionist/require-macro-type-name'?: Linter.RuleEntry<VuePerfectionistRequireMacroTypeName>;
|
|
9189
|
+
/**
|
|
9190
|
+
* require explicit props object prefixes in Vue templates.
|
|
9191
|
+
* @see https://vue-perfectionist.ntnyq.dev/rules/require-props-prefix
|
|
9192
|
+
*/
|
|
9193
|
+
'vue-perfectionist/require-props-prefix'?: Linter.RuleEntry<VuePerfectionistRequirePropsPrefix>;
|
|
9140
9194
|
/**
|
|
9141
9195
|
* require explicit @vue-generic comments on configured components.
|
|
9142
|
-
* @see https://
|
|
9196
|
+
* @see https://vue-perfectionist.ntnyq.dev/rules/require-vue-generic
|
|
9143
9197
|
*/
|
|
9144
9198
|
'vue-perfectionist/require-vue-generic'?: Linter.RuleEntry<VuePerfectionistRequireVueGeneric>;
|
|
9199
|
+
/**
|
|
9200
|
+
* enforce consistent ordering of direct statements in composable functions.
|
|
9201
|
+
* @see https://vue-perfectionist.ntnyq.dev/rules/sort-composable-body
|
|
9202
|
+
*/
|
|
9203
|
+
'vue-perfectionist/sort-composable-body'?: Linter.RuleEntry<VuePerfectionistSortComposableBody>;
|
|
9145
9204
|
/**
|
|
9146
9205
|
* enforce grouping of destructured composable members by state and method.
|
|
9147
|
-
* @see https://
|
|
9206
|
+
* @see https://vue-perfectionist.ntnyq.dev/rules/sort-composable-destructure
|
|
9148
9207
|
*/
|
|
9149
9208
|
'vue-perfectionist/sort-composable-destructure'?: Linter.RuleEntry<VuePerfectionistSortComposableDestructure>;
|
|
9150
9209
|
/**
|
|
9151
9210
|
* enforce grouping of composable return members by state and method.
|
|
9152
|
-
* @see https://
|
|
9211
|
+
* @see https://vue-perfectionist.ntnyq.dev/rules/sort-composable-return
|
|
9153
9212
|
*/
|
|
9154
9213
|
'vue-perfectionist/sort-composable-return'?: Linter.RuleEntry<VuePerfectionistSortComposableReturn>;
|
|
9155
9214
|
/**
|
|
9156
9215
|
* enforce consistent ordering of Vue 3 script setup statements.
|
|
9157
|
-
* @see https://
|
|
9216
|
+
* @see https://vue-perfectionist.ntnyq.dev/rules/sort-script-setup
|
|
9158
9217
|
*/
|
|
9159
9218
|
'vue-perfectionist/sort-script-setup'?: Linter.RuleEntry<VuePerfectionistSortScriptSetup>;
|
|
9160
9219
|
/**
|
|
@@ -10693,6 +10752,7 @@ type HtmlEslintNoExtraSpacingTags = [] | [{
|
|
|
10693
10752
|
// ----- @html-eslint/no-extra-spacing-text -----
|
|
10694
10753
|
type HtmlEslintNoExtraSpacingText = [] | [{
|
|
10695
10754
|
skip?: string[];
|
|
10755
|
+
skipComments?: boolean;
|
|
10696
10756
|
}];
|
|
10697
10757
|
// ----- @html-eslint/no-inline-styles -----
|
|
10698
10758
|
type HtmlEslintNoInlineStyles = [] | [{
|
|
@@ -10774,6 +10834,10 @@ type HtmlEslintSortAttrs = [] | [{
|
|
|
10774
10834
|
type HtmlEslintUseBaseline = [] | [{
|
|
10775
10835
|
available?: (("widely" | "newly") | number);
|
|
10776
10836
|
}];
|
|
10837
|
+
// ----- @typescript-eslint/adjacent-overload-signatures -----
|
|
10838
|
+
type TypescriptEslintAdjacentOverloadSignatures = [] | [{
|
|
10839
|
+
ignoreAccessors?: boolean;
|
|
10840
|
+
}];
|
|
10777
10841
|
// ----- @typescript-eslint/array-type -----
|
|
10778
10842
|
type TypescriptEslintArrayType = [] | [{
|
|
10779
10843
|
default?: ("array" | "generic" | "array-simple");
|
|
@@ -12644,6 +12708,13 @@ type JsdocImplementsOnClasses = [] | [{
|
|
|
12644
12708
|
comment?: string;
|
|
12645
12709
|
context?: string;
|
|
12646
12710
|
})[];
|
|
12711
|
+
fix?: ("remove" | "type");
|
|
12712
|
+
}];
|
|
12713
|
+
// ----- jsdoc/imports-as-dependencies -----
|
|
12714
|
+
type JsdocImportsAsDependencies = [] | [{
|
|
12715
|
+
dependencies?: boolean;
|
|
12716
|
+
devDependencies?: boolean;
|
|
12717
|
+
peerDependencies?: boolean;
|
|
12647
12718
|
}];
|
|
12648
12719
|
// ----- jsdoc/informative-docs -----
|
|
12649
12720
|
type JsdocInformativeDocs = [] | [{
|
|
@@ -12799,6 +12870,12 @@ type JsdocRequireDescription = [] | [{
|
|
|
12799
12870
|
})[];
|
|
12800
12871
|
descriptionStyle?: ("body" | "tag" | "any");
|
|
12801
12872
|
exemptedBy?: string[];
|
|
12873
|
+
publicOnly?: (boolean | {
|
|
12874
|
+
ancestorsOnly?: boolean;
|
|
12875
|
+
cjs?: boolean;
|
|
12876
|
+
esm?: boolean;
|
|
12877
|
+
window?: boolean;
|
|
12878
|
+
});
|
|
12802
12879
|
}];
|
|
12803
12880
|
// ----- jsdoc/require-description-complete-sentence -----
|
|
12804
12881
|
type JsdocRequireDescriptionCompleteSentence = [] | [{
|
|
@@ -12890,6 +12967,7 @@ type JsdocRequireParam = [] | [{
|
|
|
12890
12967
|
interfaceExemptsParamsCheck?: boolean;
|
|
12891
12968
|
unnamedRootBase?: string[];
|
|
12892
12969
|
useDefaultObjectProperties?: boolean;
|
|
12970
|
+
useObjectTypeForDestructuredRoots?: boolean;
|
|
12893
12971
|
}];
|
|
12894
12972
|
// ----- jsdoc/require-param-description -----
|
|
12895
12973
|
type JsdocRequireParamDescription = [] | [{
|
|
@@ -12898,6 +12976,12 @@ type JsdocRequireParamDescription = [] | [{
|
|
|
12898
12976
|
context?: string;
|
|
12899
12977
|
})[];
|
|
12900
12978
|
defaultDestructuredRootDescription?: string;
|
|
12979
|
+
publicOnly?: (boolean | {
|
|
12980
|
+
ancestorsOnly?: boolean;
|
|
12981
|
+
cjs?: boolean;
|
|
12982
|
+
esm?: boolean;
|
|
12983
|
+
window?: boolean;
|
|
12984
|
+
});
|
|
12901
12985
|
setDefaultDestructuredRootDescription?: boolean;
|
|
12902
12986
|
}];
|
|
12903
12987
|
// ----- jsdoc/require-param-name -----
|
|
@@ -12957,6 +13041,12 @@ type JsdocRequireReturnsDescription = [] | [{
|
|
|
12957
13041
|
comment?: string;
|
|
12958
13042
|
context?: string;
|
|
12959
13043
|
})[];
|
|
13044
|
+
publicOnly?: (boolean | {
|
|
13045
|
+
ancestorsOnly?: boolean;
|
|
13046
|
+
cjs?: boolean;
|
|
13047
|
+
esm?: boolean;
|
|
13048
|
+
window?: boolean;
|
|
13049
|
+
});
|
|
12960
13050
|
}];
|
|
12961
13051
|
// ----- jsdoc/require-returns-type -----
|
|
12962
13052
|
type JsdocRequireReturnsType = [] | [{
|
|
@@ -14147,13 +14237,6 @@ type NoMultipleEmptyLines = [] | [{
|
|
|
14147
14237
|
type NoNativeReassign = [] | [{
|
|
14148
14238
|
exceptions?: string[];
|
|
14149
14239
|
}];
|
|
14150
|
-
// ----- no-only-tests/no-only-tests -----
|
|
14151
|
-
type NoOnlyTestsNoOnlyTests = [] | [{
|
|
14152
|
-
block?: string[];
|
|
14153
|
-
focus?: string[];
|
|
14154
|
-
functions?: string[];
|
|
14155
|
-
fix?: boolean;
|
|
14156
|
-
}];
|
|
14157
14240
|
// ----- no-param-reassign -----
|
|
14158
14241
|
type NoParamReassign = [] | [({
|
|
14159
14242
|
props?: false;
|
|
@@ -14599,6 +14682,7 @@ type NodeNoUnsupportedFeaturesEsSyntax = [] | [{
|
|
|
14599
14682
|
type NodeNoUnsupportedFeaturesNodeBuiltins = [] | [{
|
|
14600
14683
|
version?: string;
|
|
14601
14684
|
allowExperimental?: boolean;
|
|
14685
|
+
allowUnflagged?: boolean;
|
|
14602
14686
|
ignores?: ("__filename" | "__dirname" | "require" | "require.cache" | "require.extensions" | "require.main" | "require.resolve" | "require.resolve.paths" | "module" | "module.children" | "module.exports" | "module.filename" | "module.id" | "module.isPreloading" | "module.loaded" | "module.parent" | "module.path" | "module.paths" | "module.require" | "exports" | "AbortController" | "AbortSignal" | "AbortSignal.abort" | "AbortSignal.timeout" | "AbortSignal.any" | "DOMException" | "QuotaExceededError" | "FormData" | "Headers" | "MessageEvent" | "Navigator" | "Request" | "Response" | "WebAssembly" | "Worker" | "WebSocket" | "fetch" | "global" | "queueMicrotask" | "navigator" | "navigator.hardwareConcurrency" | "navigator.language" | "navigator.languages" | "navigator.locks" | "navigator.locks.request" | "navigator.locks.query" | "navigator.platform" | "navigator.userAgent" | "structuredClone" | "localStorage" | "sessionStorage" | "Storage" | "Blob" | "new Buffer()" | "Buffer" | "Buffer.alloc" | "Buffer.allocUnsafe" | "Buffer.allocUnsafeSlow" | "Buffer.byteLength" | "Buffer.compare" | "Buffer.concat" | "Buffer.copyBytesFrom" | "Buffer.from" | "Buffer.isBuffer" | "Buffer.isEncoding" | "Buffer.stringLength" | "File" | "atob" | "btoa" | "console" | "console.profile" | "console.profileEnd" | "console.timeStamp" | "console.Console" | "console.assert" | "console.clear" | "console.count" | "console.countReset" | "console.debug" | "console.dir" | "console.dirxml" | "console.error" | "console.group" | "console.groupCollapsed" | "console.groupEnd" | "console.info" | "console.log" | "console.table" | "console.time" | "console.timeEnd" | "console.timeLog" | "console.trace" | "console.warn" | "crypto" | "crypto.subtle" | "crypto.subtle.decapsulateBits" | "crypto.subtle.decapsulateKey" | "crypto.subtle.decrypt" | "crypto.subtle.deriveBits" | "crypto.subtle.deriveKey" | "crypto.subtle.digest" | "crypto.subtle.encapsulateBits" | "crypto.subtle.encapsulateKey" | "crypto.subtle.encrypt" | "crypto.subtle.exportKey" | "crypto.subtle.generateKey" | "crypto.subtle.getPublicKey" | "crypto.subtle.importKey" | "crypto.subtle.sign" | "crypto.subtle.unwrapKey" | "crypto.subtle.verify" | "crypto.subtle.wrapKey" | "crypto.getRandomValues" | "crypto.randomUUID" | "Crypto" | "CryptoKey" | "SubtleCrypto" | "SubtleCrypto.supports" | "CloseEvent" | "CustomEvent" | "ErrorEvent" | "Event" | "EventSource" | "EventTarget" | "PerformanceEntry" | "PerformanceMark" | "PerformanceMeasure" | "PerformanceObserver" | "PerformanceObserverEntryList" | "PerformanceResourceTiming" | "performance" | "performance.clearMarks" | "performance.clearMeasures" | "performance.clearResourceTimings" | "performance.eventLoopUtilization" | "performance.getEntries" | "performance.getEntriesByName" | "performance.getEntriesByType" | "performance.mark" | "performance.markResourceTiming" | "performance.measure" | "performance.nodeTiming" | "performance.nodeTiming.bootstrapComplete" | "performance.nodeTiming.environment" | "performance.nodeTiming.idleTime" | "performance.nodeTiming.loopExit" | "performance.nodeTiming.loopStart" | "performance.nodeTiming.nodeStart" | "performance.nodeTiming.uvMetricsInfo" | "performance.nodeTiming.v8Start" | "performance.now" | "performance.onresourcetimingbufferfull" | "performance.setResourceTimingBufferSize" | "performance.timeOrigin" | "performance.timerify" | "performance.toJSON" | "process" | "process.allowedNodeEnvironmentFlags" | "process.availableMemory" | "process.arch" | "process.argv" | "process.argv0" | "process.channel" | "process.config" | "process.connected" | "process.debugPort" | "process.env" | "process.execArgv" | "process.execPath" | "process.execve" | "process.exitCode" | "process.features.cached_builtins" | "process.features.debug" | "process.features.inspector" | "process.features.ipv6" | "process.features.require_module" | "process.features.tls" | "process.features.tls_alpn" | "process.features.tls_ocsp" | "process.features.tls_sni" | "process.features.typescript" | "process.features.uv" | "process.finalization.register" | "process.finalization.registerBeforeExit" | "process.finalization.unregister" | "process.getBuiltinModule" | "process.mainModule" | "process.noDeprecation" | "process.permission" | "process.permission.drop" | "process.pid" | "process.platform" | "process.ppid" | "process.ref" | "process.release" | "process.report" | "process.report.excludeEnv" | "process.sourceMapsEnabled" | "process.stdin" | "process.stdin.isRaw" | "process.stdin.isTTY" | "process.stdin.setRawMode" | "process.stdout" | "process.stdout.clearLine" | "process.stdout.clearScreenDown" | "process.stdout.columns" | "process.stdout.cursorTo" | "process.stdout.getColorDepth" | "process.stdout.getWindowSize" | "process.stdout.hasColors" | "process.stdout.isTTY" | "process.stdout.moveCursor" | "process.stdout.rows" | "process.stderr" | "process.stderr.clearLine" | "process.stderr.clearScreenDown" | "process.stderr.columns" | "process.stderr.cursorTo" | "process.stderr.getColorDepth" | "process.stderr.getWindowSize" | "process.stderr.hasColors" | "process.stderr.isTTY" | "process.stderr.moveCursor" | "process.stderr.rows" | "process.threadCpuUsage" | "process.throwDeprecation" | "process.title" | "process.traceDeprecation" | "process.version" | "process.versions" | "process.abort" | "process.addUncaughtExceptionCaptureCallback" | "process.chdir" | "process.constrainedMemory" | "process.cpuUsage" | "process.cwd" | "process.disconnect" | "process.dlopen" | "process.emitWarning" | "process.exit" | "process.getActiveResourcesInfo" | "process.getegid" | "process.geteuid" | "process.getgid" | "process.getgroups" | "process.getuid" | "process.hasUncaughtExceptionCaptureCallback" | "process.hrtime" | "process.hrtime.bigint" | "process.initgroups" | "process.kill" | "process.loadEnvFile" | "process.memoryUsage" | "process.rss" | "process.nextTick" | "process.resourceUsage" | "process.send" | "process.setegid" | "process.seteuid" | "process.setgid" | "process.setgroups" | "process.setuid" | "process.setSourceMapsEnabled" | "process.setUncaughtExceptionCaptureCallback" | "process.umask" | "process.unref" | "process.uptime" | "ReadableStream" | "ReadableStream.from" | "ReadableStreamDefaultReader" | "ReadableStreamBYOBReader" | "ReadableStreamDefaultController" | "ReadableByteStreamController" | "ReadableStreamBYOBRequest" | "WritableStream" | "WritableStreamDefaultWriter" | "WritableStreamDefaultController" | "TransformStream" | "TransformStreamDefaultController" | "ByteLengthQueuingStrategy" | "CountQueuingStrategy" | "TextEncoderStream" | "TextDecoderStream" | "CompressionStream" | "DecompressionStream" | "setInterval" | "clearInterval" | "setTimeout" | "clearTimeout" | "setImmediate" | "clearImmediate" | "URL" | "URL.canParse" | "URL.createObjectURL" | "URL.revokeObjectURL" | "URLSearchParams" | "TextDecoder" | "TextEncoder" | "BroadcastChannel" | "MessageChannel" | "MessagePort" | "assert" | "assert.Assert" | "assert.assert" | "assert.deepEqual" | "assert.deepStrictEqual" | "assert.doesNotMatch" | "assert.doesNotReject" | "assert.doesNotThrow" | "assert.equal" | "assert.fail" | "assert.ifError" | "assert.match" | "assert.notDeepEqual" | "assert.notDeepStrictEqual" | "assert.notEqual" | "assert.notStrictEqual" | "assert.ok" | "assert.partialDeepStrictEqual" | "assert.rejects" | "assert.strictEqual" | "assert.throws" | "assert.CallTracker" | "assert.strict" | "assert.strict.Assert" | "assert.strict.assert" | "assert.strict.deepEqual" | "assert.strict.deepStrictEqual" | "assert.strict.doesNotMatch" | "assert.strict.doesNotReject" | "assert.strict.doesNotThrow" | "assert.strict.equal" | "assert.strict.fail" | "assert.strict.ifError" | "assert.strict.match" | "assert.strict.notDeepEqual" | "assert.strict.notDeepStrictEqual" | "assert.strict.notEqual" | "assert.strict.notStrictEqual" | "assert.strict.ok" | "assert.strict.partialDeepStrictEqual" | "assert.strict.rejects" | "assert.strict.strictEqual" | "assert.strict.throws" | "assert.strict.CallTracker" | "assert/strict" | "assert/strict.Assert" | "assert/strict.assert" | "assert/strict.deepEqual" | "assert/strict.deepStrictEqual" | "assert/strict.doesNotMatch" | "assert/strict.doesNotReject" | "assert/strict.doesNotThrow" | "assert/strict.equal" | "assert/strict.fail" | "assert/strict.ifError" | "assert/strict.match" | "assert/strict.notDeepEqual" | "assert/strict.notDeepStrictEqual" | "assert/strict.notEqual" | "assert/strict.notStrictEqual" | "assert/strict.ok" | "assert/strict.partialDeepStrictEqual" | "assert/strict.rejects" | "assert/strict.strictEqual" | "assert/strict.throws" | "assert/strict.CallTracker" | "async_hooks" | "async_hooks.createHook" | "async_hooks.executionAsyncResource" | "async_hooks.executionAsyncId" | "async_hooks.triggerAsyncId" | "async_hooks.AsyncLocalStorage" | "async_hooks.AsyncLocalStorage.bind" | "async_hooks.AsyncLocalStorage.snapshot" | "async_hooks.AsyncResource" | "async_hooks.AsyncResource.bind" | "bench" | "bench.after" | "bench.afterEach" | "bench.before" | "bench.beforeEach" | "bench.bench" | "bench.bench.only" | "bench.bench.skip" | "bench.createRunner" | "bench.describe" | "bench.only" | "bench.run" | "bench.runFile" | "bench.skip" | "bench.suite" | "bench/reporters" | "bench/reporters.json" | "bench/reporters.spec" | "buffer" | "buffer.constants" | "buffer.INSPECT_MAX_BYTES" | "buffer.kMaxLength" | "buffer.kStringMaxLength" | "buffer.atob" | "buffer.btoa" | "buffer.isAscii" | "buffer.isLatin1" | "buffer.isUtf8" | "buffer.resolveObjectURL" | "buffer.transcode" | "buffer.SlowBuffer" | "buffer.Blob" | "new buffer.Buffer()" | "buffer.Buffer" | "buffer.Buffer.alloc" | "buffer.Buffer.allocUnsafe" | "buffer.Buffer.allocUnsafeSlow" | "buffer.Buffer.byteLength" | "buffer.Buffer.compare" | "buffer.Buffer.concat" | "buffer.Buffer.copyBytesFrom" | "buffer.Buffer.from" | "buffer.Buffer.isBuffer" | "buffer.Buffer.isEncoding" | "buffer.Buffer.stringLength" | "buffer.File" | "child_process" | "child_process.exec" | "child_process.execFile" | "child_process.fork" | "child_process.spawn" | "child_process.execFileSync" | "child_process.execSync" | "child_process.spawnSync" | "child_process.ChildProcess" | "cluster" | "cluster.isMaster" | "cluster.isPrimary" | "cluster.isWorker" | "cluster.schedulingPolicy" | "cluster.settings" | "cluster.worker" | "cluster.workers" | "cluster.disconnect" | "cluster.fork" | "cluster.setupMaster" | "cluster.setupPrimary" | "cluster.Worker" | "crypto.constants" | "crypto.fips" | "crypto.webcrypto" | "crypto.webcrypto.subtle" | "crypto.webcrypto.subtle.decapsulateBits" | "crypto.webcrypto.subtle.decapsulateKey" | "crypto.webcrypto.subtle.decrypt" | "crypto.webcrypto.subtle.deriveBits" | "crypto.webcrypto.subtle.deriveKey" | "crypto.webcrypto.subtle.digest" | "crypto.webcrypto.subtle.encapsulateBits" | "crypto.webcrypto.subtle.encapsulateKey" | "crypto.webcrypto.subtle.encrypt" | "crypto.webcrypto.subtle.exportKey" | "crypto.webcrypto.subtle.generateKey" | "crypto.webcrypto.subtle.getPublicKey" | "crypto.webcrypto.subtle.importKey" | "crypto.webcrypto.subtle.sign" | "crypto.webcrypto.subtle.unwrapKey" | "crypto.webcrypto.subtle.verify" | "crypto.webcrypto.subtle.wrapKey" | "crypto.webcrypto.getRandomValues" | "crypto.webcrypto.randomUUID" | "crypto.argon2" | "crypto.argon2Sync" | "crypto.checkPrime" | "crypto.checkPrimeSync" | "crypto.createCipher" | "crypto.createCipheriv" | "crypto.createDecipher" | "crypto.createDecipheriv" | "crypto.createDiffieHellman" | "crypto.createDiffieHellmanGroup" | "crypto.createECDH" | "crypto.createHash" | "crypto.createHmac" | "crypto.createMac" | "crypto.createPrivateKey" | "crypto.createPublicKey" | "crypto.createSecretKey" | "crypto.createSign" | "crypto.createVerify" | "crypto.decapsulate" | "crypto.diffieHellman" | "crypto.encapsulate" | "crypto.generateKey" | "crypto.generateKeyPair" | "crypto.generateKeyPairSync" | "crypto.generateKeySync" | "crypto.generatePrime" | "crypto.generatePrimeSync" | "crypto.getCipherInfo" | "crypto.getCiphers" | "crypto.getCurves" | "crypto.getDiffieHellman" | "crypto.getFips" | "crypto.getHashes" | "crypto.getMacs" | "crypto.hash" | "crypto.hkdf" | "crypto.hkdfSync" | "crypto.parsePKCS12" | "crypto.pbkdf2" | "crypto.pbkdf2Sync" | "crypto.privateDecrypt" | "crypto.privateEncrypt" | "crypto.publicDecrypt" | "crypto.publicEncrypt" | "crypto.randomBytes" | "crypto.randomFillSync" | "crypto.randomFill" | "crypto.randomInt" | "crypto.randomUUIDv7" | "crypto.scrypt" | "crypto.scryptSync" | "crypto.secureHeapUsed" | "crypto.setEngine" | "crypto.setFips" | "crypto.sign" | "crypto.timingSafeEqual" | "crypto.verify" | "crypto.Certificate" | "crypto.Certificate.exportChallenge" | "crypto.Certificate.exportPublicKey" | "crypto.Certificate.verifySpkac" | "crypto.Cipher" | "crypto.Decipher" | "crypto.DiffieHellman" | "crypto.DiffieHellmanGroup" | "crypto.ECDH" | "crypto.ECDH.convertKey" | "crypto.Hash()" | "new crypto.Hash()" | "crypto.Hash" | "crypto.Hmac()" | "new crypto.Hmac()" | "crypto.Hmac" | "crypto.KeyObject" | "crypto.KeyObject.from" | "crypto.Sign" | "crypto.Verify" | "crypto.X509Certificate" | "dgram" | "dgram.createSocket" | "dgram.Socket" | "diagnostics_channel" | "diagnostics_channel.hasSubscribers" | "diagnostics_channel.channel" | "diagnostics_channel.subscribe" | "diagnostics_channel.unsubscribe" | "diagnostics_channel.tracingChannel" | "diagnostics_channel.boundedChannel" | "diagnostics_channel.Channel" | "diagnostics_channel.TracingChannel" | "diagnostics_channel.BoundedChannel" | "dns" | "dns.Resolver" | "dns.getServers" | "dns.lookup" | "dns.lookupService" | "dns.resolve" | "dns.resolve4" | "dns.resolve6" | "dns.resolveAny" | "dns.resolveCname" | "dns.resolveCaa" | "dns.resolveMx" | "dns.resolveNaptr" | "dns.resolveNs" | "dns.resolvePtr" | "dns.resolveSoa" | "dns.resolveSrv" | "dns.resolveTlsa" | "dns.resolveTxt" | "dns.reverse" | "dns.setDefaultResultOrder" | "dns.getDefaultResultOrder" | "dns.setServers" | "dns.promises" | "dns.promises.Resolver" | "dns.promises.cancel" | "dns.promises.getServers" | "dns.promises.lookup" | "dns.promises.lookupService" | "dns.promises.resolve" | "dns.promises.resolve4" | "dns.promises.resolve6" | "dns.promises.resolveAny" | "dns.promises.resolveCaa" | "dns.promises.resolveCname" | "dns.promises.resolveMx" | "dns.promises.resolveNaptr" | "dns.promises.resolveNs" | "dns.promises.resolvePtr" | "dns.promises.resolveSoa" | "dns.promises.resolveSrv" | "dns.promises.resolveTlsa" | "dns.promises.resolveTxt" | "dns.promises.reverse" | "dns.promises.setDefaultResultOrder" | "dns.promises.getDefaultResultOrder" | "dns.promises.setServers" | "dns/promises" | "dns/promises.Resolver" | "dns/promises.cancel" | "dns/promises.getServers" | "dns/promises.lookup" | "dns/promises.lookupService" | "dns/promises.resolve" | "dns/promises.resolve4" | "dns/promises.resolve6" | "dns/promises.resolveAny" | "dns/promises.resolveCaa" | "dns/promises.resolveCname" | "dns/promises.resolveMx" | "dns/promises.resolveNaptr" | "dns/promises.resolveNs" | "dns/promises.resolvePtr" | "dns/promises.resolveSoa" | "dns/promises.resolveSrv" | "dns/promises.resolveTlsa" | "dns/promises.resolveTxt" | "dns/promises.reverse" | "dns/promises.setDefaultResultOrder" | "dns/promises.getDefaultResultOrder" | "dns/promises.setServers" | "dtls" | "dtls.connect" | "dtls.createSecureContext" | "dtls.listen" | "domain" | "domain.create" | "domain.Domain" | "events" | "events.Event" | "events.EventTarget" | "events.CustomEvent" | "events.NodeEventTarget" | "events.EventEmitter" | "events.EventEmitter.defaultMaxListeners" | "events.EventEmitter.errorMonitor" | "events.EventEmitter.captureRejections" | "events.EventEmitter.captureRejectionSymbol" | "events.EventEmitter.getEventListeners" | "events.EventEmitter.getMaxListeners" | "events.EventEmitter.once" | "events.EventEmitter.listenerCount" | "events.EventEmitter.on" | "events.EventEmitter.setMaxListeners" | "events.EventEmitter.addAbortListener" | "events.EventEmitterAsyncResource" | "events.EventEmitterAsyncResource.defaultMaxListeners" | "events.EventEmitterAsyncResource.errorMonitor" | "events.EventEmitterAsyncResource.captureRejections" | "events.EventEmitterAsyncResource.captureRejectionSymbol" | "events.EventEmitterAsyncResource.getEventListeners" | "events.EventEmitterAsyncResource.getMaxListeners" | "events.EventEmitterAsyncResource.once" | "events.EventEmitterAsyncResource.listenerCount" | "events.EventEmitterAsyncResource.on" | "events.EventEmitterAsyncResource.setMaxListeners" | "events.EventEmitterAsyncResource.addAbortListener" | "events.defaultMaxListeners" | "events.errorMonitor" | "events.captureRejections" | "events.captureRejectionSymbol" | "events.getEventListeners" | "events.getMaxListeners" | "events.once" | "events.listenerCount" | "events.on" | "events.setMaxListeners" | "events.addAbortListener" | "ffi" | "ffi.DynamicLibrary" | "ffi.dlclose" | "ffi.dlopen" | "ffi.dlsym" | "ffi.exportArrayBuffer" | "ffi.exportArrayBufferView" | "ffi.exportBuffer" | "ffi.exportString" | "ffi.getCurrentEventLoop" | "ffi.getFloat32" | "ffi.getFloat64" | "ffi.getInt16" | "ffi.getInt32" | "ffi.getInt64" | "ffi.getInt8" | "ffi.getRawPointer" | "ffi.getUint16" | "ffi.getUint32" | "ffi.getUint64" | "ffi.getUint8" | "ffi.setFloat32" | "ffi.setFloat64" | "ffi.setInt16" | "ffi.setInt32" | "ffi.setInt64" | "ffi.setInt8" | "ffi.setUint16" | "ffi.setUint32" | "ffi.setUint64" | "ffi.setUint8" | "ffi.suffix" | "ffi.toArrayBuffer" | "ffi.toBuffer" | "ffi.toString" | "ffi.types" | "fs" | "fs.promises" | "fs.promises.FileHandle" | "fs.promises.access" | "fs.promises.appendFile" | "fs.promises.chmod" | "fs.promises.chown" | "fs.promises.constants" | "fs.promises.copyFile" | "fs.promises.cp" | "fs.promises.glob" | "fs.promises.lchmod" | "fs.promises.lchown" | "fs.promises.link" | "fs.promises.lstat" | "fs.promises.lutimes" | "fs.promises.mkdir" | "fs.promises.mkdtemp" | "fs.promises.mkdtempDisposable" | "fs.promises.open" | "fs.promises.opendir" | "fs.promises.readFile" | "fs.promises.readdir" | "fs.promises.readlink" | "fs.promises.realpath" | "fs.promises.rename" | "fs.promises.rm" | "fs.promises.rmdir" | "fs.promises.stat" | "fs.promises.statfs" | "fs.promises.symlink" | "fs.promises.truncate" | "fs.promises.unlink" | "fs.promises.utimes" | "fs.promises.watch" | "fs.promises.writeFile" | "fs.access" | "fs.appendFile" | "fs.chmod" | "fs.chown" | "fs.close" | "fs.copyFile" | "fs.cp" | "fs.createReadStream" | "fs.createWriteStream" | "fs.exists" | "fs.fchmod" | "fs.fchown" | "fs.fdatasync" | "fs.fstat" | "fs.fsync" | "fs.ftruncate" | "fs.futimes" | "fs.glob" | "fs.lchmod" | "fs.lchown" | "fs.link" | "fs.lstat" | "fs.lutimes" | "fs.mkdir" | "fs.mkdtemp" | "fs.native" | "fs.open" | "fs.openAsBlob" | "fs.opendir" | "fs.read" | "fs.readdir" | "fs.readFile" | "fs.readlink" | "fs.readv" | "fs.realpath" | "fs.realpath.native" | "fs.rename" | "fs.rm" | "fs.rmdir" | "fs.stat" | "fs.statfs" | "fs.symlink" | "fs.truncate" | "fs.unlink" | "fs.unwatchFile" | "fs.utimes" | "fs.watch" | "fs.watchFile" | "fs.write" | "fs.writeFile" | "fs.writev" | "fs.accessSync" | "fs.appendFileSync" | "fs.chmodSync" | "fs.chownSync" | "fs.closeSync" | "fs.copyFileSync" | "fs.cpSync" | "fs.existsSync" | "fs.fchmodSync" | "fs.fchownSync" | "fs.fdatasyncSync" | "fs.fstatSync" | "fs.fsyncSync" | "fs.ftruncateSync" | "fs.futimesSync" | "fs.globSync" | "fs.lchmodSync" | "fs.lchownSync" | "fs.linkSync" | "fs.lstatSync" | "fs.lutimesSync" | "fs.mkdirSync" | "fs.mkdtempSync" | "fs.mkdtempDisposableSync" | "fs.opendirSync" | "fs.openSync" | "fs.openAsBlobSync" | "fs.readdirSync" | "fs.readFileSync" | "fs.readlinkSync" | "fs.readSync" | "fs.readvSync" | "fs.realpathSync" | "fs.realpathSync.native" | "fs.renameSync" | "fs.rmdirSync" | "fs.rmSync" | "fs.statfsSync" | "fs.statSync" | "fs.symlinkSync" | "fs.truncateSync" | "fs.unlinkSync" | "fs.utimesSync" | "fs.writeFileSync" | "fs.writeSync" | "fs.writevSync" | "fs.constants" | "fs.F_OK" | "fs.R_OK" | "fs.W_OK" | "fs.X_OK" | "fs.Dir" | "fs.Dirent" | "fs.FSWatcher" | "fs.StatWatcher" | "fs.ReadStream" | "fs.Stats()" | "new fs.Stats()" | "fs.Stats" | "fs.StatFs" | "fs.WriteStream" | "fs.Utf8Stream" | "fs.common_objects" | "fs/promises" | "fs/promises.FileHandle" | "fs/promises.access" | "fs/promises.appendFile" | "fs/promises.chmod" | "fs/promises.chown" | "fs/promises.constants" | "fs/promises.copyFile" | "fs/promises.cp" | "fs/promises.glob" | "fs/promises.lchmod" | "fs/promises.lchown" | "fs/promises.link" | "fs/promises.lstat" | "fs/promises.lutimes" | "fs/promises.mkdir" | "fs/promises.mkdtemp" | "fs/promises.mkdtempDisposable" | "fs/promises.open" | "fs/promises.opendir" | "fs/promises.readFile" | "fs/promises.readdir" | "fs/promises.readlink" | "fs/promises.realpath" | "fs/promises.rename" | "fs/promises.rm" | "fs/promises.rmdir" | "fs/promises.stat" | "fs/promises.statfs" | "fs/promises.symlink" | "fs/promises.truncate" | "fs/promises.unlink" | "fs/promises.utimes" | "fs/promises.watch" | "fs/promises.writeFile" | "http2" | "http2.constants" | "http2.sensitiveHeaders" | "http2.createServer" | "http2.createSecureServer" | "http2.connect" | "http2.getDefaultSettings" | "http2.getPackedSettings" | "http2.getUnpackedSettings" | "http2.performServerHandshake" | "http2.Http2Session" | "http2.ServerHttp2Session" | "http2.ClientHttp2Session" | "http2.Http2Stream" | "http2.ClientHttp2Stream" | "http2.ServerHttp2Stream" | "http2.Http2Server" | "http2.Http2SecureServer" | "http2.Http2ServerRequest" | "http2.Http2ServerResponse" | "http" | "http.METHODS" | "http.STATUS_CODES" | "http.globalAgent" | "http.maxHeaderSize" | "http.createServer" | "http.get" | "http.request" | "http.validateHeaderName" | "http.validateHeaderValue" | "http.isValidHeaderName" | "http.isValidHeaderValue" | "http.websocketMask" | "http.websocketUnmask" | "http.setMaxIdleHTTPParsers" | "http.setGlobalProxyFromEnv" | "http.Agent()" | "http.Agent" | "http.ClientRequest()" | "http.ClientRequest" | "http.Server()" | "http.Server" | "http.ServerResponse()" | "http.ServerResponse" | "http.IncomingMessage()" | "http.IncomingMessage" | "http.OutgoingMessage()" | "http.OutgoingMessage" | "http.WebSocket()" | "http.WebSocket" | "_http_agent" | "_http_client" | "_http_common" | "_http_incoming" | "_http_outgoing" | "_http_server" | "https" | "https.globalAgent" | "https.createServer" | "https.get" | "https.request" | "https.Agent" | "https.Server" | "inspector" | "inspector.Session" | "inspector.DOMStorage.domStorageItemAdded" | "inspector.DOMStorage.domStorageItemRemoved" | "inspector.DOMStorage.domStorageItemUpdated" | "inspector.DOMStorage.domStorageItemsCleared" | "inspector.DOMStorage.registerStorage" | "inspector.Network.dataReceived" | "inspector.Network.dataSent" | "inspector.Network.loadingFailed" | "inspector.Network.loadingFinished" | "inspector.Network.requestWillBeSent" | "inspector.Network.responseReceived" | "inspector.Network.webSocketCreated" | "inspector.Network.webSocketHandshakeResponseReceived" | "inspector.Network.webSocketClosed" | "inspector.NetworkResources.put" | "inspector.console" | "inspector.close" | "inspector.open" | "inspector.url" | "inspector.waitForDebugger" | "inspector/promises" | "inspector/promises.Session" | "inspector/promises.DOMStorage.domStorageItemAdded" | "inspector/promises.DOMStorage.domStorageItemRemoved" | "inspector/promises.DOMStorage.domStorageItemUpdated" | "inspector/promises.DOMStorage.domStorageItemsCleared" | "inspector/promises.DOMStorage.registerStorage" | "inspector/promises.Network.dataReceived" | "inspector/promises.Network.dataSent" | "inspector/promises.Network.loadingFailed" | "inspector/promises.Network.loadingFinished" | "inspector/promises.Network.requestWillBeSent" | "inspector/promises.Network.responseReceived" | "inspector/promises.Network.webSocketCreated" | "inspector/promises.Network.webSocketHandshakeResponseReceived" | "inspector/promises.Network.webSocketClosed" | "inspector/promises.NetworkResources.put" | "inspector/promises.console" | "inspector/promises.close" | "inspector/promises.open" | "inspector/promises.url" | "inspector/promises.waitForDebugger" | "module._debug" | "module.builtinModules" | "module.constants.compileCacheStatus" | "module.createRequire" | "module.createRequireFromPath" | "module.enableCompileCache" | "module.findPackageJSON" | "module.flushCompileCache" | "module.getCompileCacheDir" | "module.getSourceMapsSupport" | "module.isBuiltin" | "module.registerHooks" | "module.register" | "module.setSourceMapsSupport" | "module.stripTypeScriptTypes" | "module.syncBuiltinESMExports" | "module.findSourceMap" | "module.SourceMap" | "module.Module._debug" | "module.Module.builtinModules" | "module.Module.createRequire" | "module.Module.createRequireFromPath" | "module.Module.enableCompileCache" | "module.Module.findPackageJSON" | "module.Module.flushCompileCache" | "module.Module.getCompileCacheDir" | "module.Module.getSourceMapsSupport" | "module.Module.isBuiltin" | "module.Module.registerHooks" | "module.Module.register" | "module.Module.setSourceMapsSupport" | "module.Module.stripTypeScriptTypes" | "module.Module.syncBuiltinESMExports" | "module.Module.findSourceMap" | "module.Module.SourceMap" | "net" | "net.connect" | "net.createConnection" | "net.createServer" | "net.getDefaultAutoSelectFamily" | "net.setDefaultAutoSelectFamily" | "net.getDefaultAutoSelectFamilyAttemptTimeout" | "net.setDefaultAutoSelectFamilyAttemptTimeout" | "net.isIP" | "net.isIPv4" | "net.isIPv6" | "net.BoundSocket" | "net.BlockList" | "net.BlockList.isBlockList" | "net.BlockList.PRIVATE_RANGES" | "net.SocketAddress" | "net.SocketAddress.parse" | "net.Server" | "net.Socket" | "os" | "os.EOL" | "os.constants" | "os.constants.priority" | "os.devNull" | "os.availableParallelism" | "os.arch" | "os.cpus" | "os.endianness" | "os.freemem" | "os.getPriority" | "os.homedir" | "os.hostname" | "os.loadavg" | "os.machine" | "os.networkInterfaces" | "os.platform" | "os.release" | "os.setPriority" | "os.tmpdir" | "os.totalmem" | "os.type" | "os.uptime" | "os.userInfo" | "os.version" | "path" | "path.posix" | "path.posix.delimiter" | "path.posix.sep" | "path.posix.basename" | "path.posix.dirname" | "path.posix.extname" | "path.posix.format" | "path.posix.matchesGlob" | "path.posix.isAbsolute" | "path.posix.join" | "path.posix.normalize" | "path.posix.parse" | "path.posix.relative" | "path.posix.resolve" | "path.posix.toNamespacedPath" | "path.win32" | "path.win32.delimiter" | "path.win32.sep" | "path.win32.basename" | "path.win32.dirname" | "path.win32.extname" | "path.win32.format" | "path.win32.matchesGlob" | "path.win32.isAbsolute" | "path.win32.join" | "path.win32.normalize" | "path.win32.parse" | "path.win32.relative" | "path.win32.resolve" | "path.win32.toNamespacedPath" | "path.delimiter" | "path.sep" | "path.basename" | "path.dirname" | "path.extname" | "path.format" | "path.matchesGlob" | "path.isAbsolute" | "path.join" | "path.normalize" | "path.parse" | "path.relative" | "path.resolve" | "path.toNamespacedPath" | "path/posix" | "path/posix.delimiter" | "path/posix.sep" | "path/posix.basename" | "path/posix.dirname" | "path/posix.extname" | "path/posix.format" | "path/posix.matchesGlob" | "path/posix.isAbsolute" | "path/posix.join" | "path/posix.normalize" | "path/posix.parse" | "path/posix.relative" | "path/posix.resolve" | "path/posix.toNamespacedPath" | "path/win32" | "path/win32.delimiter" | "path/win32.sep" | "path/win32.basename" | "path/win32.dirname" | "path/win32.extname" | "path/win32.format" | "path/win32.matchesGlob" | "path/win32.isAbsolute" | "path/win32.join" | "path/win32.normalize" | "path/win32.parse" | "path/win32.relative" | "path/win32.resolve" | "path/win32.toNamespacedPath" | "perf_hooks" | "perf_hooks.performance" | "perf_hooks.performance.clearMarks" | "perf_hooks.performance.clearMeasures" | "perf_hooks.performance.clearResourceTimings" | "perf_hooks.performance.eventLoopUtilization" | "perf_hooks.performance.getEntries" | "perf_hooks.performance.getEntriesByName" | "perf_hooks.performance.getEntriesByType" | "perf_hooks.performance.mark" | "perf_hooks.performance.markResourceTiming" | "perf_hooks.performance.measure" | "perf_hooks.performance.nodeTiming" | "perf_hooks.performance.nodeTiming.bootstrapComplete" | "perf_hooks.performance.nodeTiming.environment" | "perf_hooks.performance.nodeTiming.idleTime" | "perf_hooks.performance.nodeTiming.loopExit" | "perf_hooks.performance.nodeTiming.loopStart" | "perf_hooks.performance.nodeTiming.nodeStart" | "perf_hooks.performance.nodeTiming.uvMetricsInfo" | "perf_hooks.performance.nodeTiming.v8Start" | "perf_hooks.performance.now" | "perf_hooks.performance.onresourcetimingbufferfull" | "perf_hooks.performance.setResourceTimingBufferSize" | "perf_hooks.performance.timeOrigin" | "perf_hooks.performance.timerify" | "perf_hooks.performance.toJSON" | "perf_hooks.createHistogram" | "perf_hooks.createSlidingWindowHistogram" | "perf_hooks.eventLoopUtilization" | "perf_hooks.importHistogram" | "perf_hooks.timerify" | "perf_hooks.monitorEventLoopDelay" | "perf_hooks.PerformanceEntry" | "perf_hooks.PerformanceMark" | "perf_hooks.PerformanceMeasure" | "perf_hooks.PerformanceNodeEntry" | "perf_hooks.PerformanceNodeTiming" | "perf_hooks.PerformanceResourceTiming" | "perf_hooks.PerformanceObserver" | "perf_hooks.PerformanceObserverEntryList" | "perf_hooks.Histogram" | "perf_hooks.IntervalHistogram" | "perf_hooks.RecordableHistogram" | "punycode" | "punycode.ucs2" | "punycode.version" | "punycode.decode" | "punycode.encode" | "punycode.toASCII" | "punycode.toUnicode" | "querystring" | "querystring.decode" | "querystring.encode" | "querystring.escape" | "querystring.parse" | "querystring.stringify" | "querystring.unescape" | "readline" | "readline.promises" | "readline.promises.createInterface" | "readline.promises.Interface" | "readline.promises.Readline" | "readline.clearLine" | "readline.clearScreenDown" | "readline.createInterface" | "readline.cursorTo" | "readline.moveCursor" | "readline.Interface" | "readline.emitKeypressEvents" | "readline.InterfaceConstructor" | "readline/promises" | "readline/promises.createInterface" | "readline/promises.Interface" | "readline/promises.Readline" | "repl" | "repl.start" | "repl.writer" | "repl.REPLServer()" | "repl.REPLServer" | "repl.REPL_MODE_MAGIC" | "repl.REPL_MODE_SLOPPY" | "repl.REPL_MODE_STRICT" | "repl.Recoverable()" | "repl.Recoverable" | "repl.builtinModules" | "sea" | "sea.isSea" | "sea.getAsset" | "sea.getAssetAsBlob" | "sea.getAssetKeys" | "sea.getRawAsset" | "sea.sea.isSea" | "sea.sea.getAsset" | "sea.sea.getAssetAsBlob" | "sea.sea.getAssetKeys" | "sea.sea.getRawAsset" | "stream" | "stream.promises" | "stream.promises.pipeline" | "stream.promises.finished" | "stream.finished" | "stream.pipeline" | "stream.compose" | "stream.duplexPair" | "stream.Readable" | "stream.Readable.from" | "stream.Readable.isDisturbed" | "stream.Readable.fromWeb" | "stream.Readable.toWeb" | "stream.Writable" | "stream.Writable.fromWeb" | "stream.Writable.toWeb" | "stream.Duplex" | "stream.Duplex.from" | "stream.Duplex.fromWeb" | "stream.Duplex.toWeb" | "stream.Transform" | "stream.isErrored" | "stream.isReadable" | "stream.addAbortSignal" | "stream.getDefaultHighWaterMark" | "stream.setDefaultHighWaterMark" | "stream/promises.pipeline" | "stream/promises.finished" | "stream/web" | "stream/web.ReadableStream" | "stream/web.ReadableStream.from" | "stream/web.ReadableStreamDefaultReader" | "stream/web.ReadableStreamBYOBReader" | "stream/web.ReadableStreamDefaultController" | "stream/web.ReadableByteStreamController" | "stream/web.ReadableStreamBYOBRequest" | "stream/web.ReadableStreamTee" | "stream/web.WritableStream" | "stream/web.WritableStreamDefaultWriter" | "stream/web.WritableStreamDefaultController" | "stream/web.TransformStream" | "stream/web.TransformStreamDefaultController" | "stream/web.ByteLengthQueuingStrategy" | "stream/web.CountQueuingStrategy" | "stream/web.TextEncoderStream" | "stream/web.TextDecoderStream" | "stream/web.CompressionStream" | "stream/web.DecompressionStream" | "stream/consumers" | "stream/consumers.arrayBuffer" | "stream/consumers.blob" | "stream/consumers.buffer" | "stream/consumers.bytes" | "stream/consumers.json" | "stream/consumers.text" | "stream/iter" | "stream/iter.array" | "stream/iter.arrayBuffer" | "stream/iter.arrayBufferSync" | "stream/iter.arraySync" | "stream/iter.broadcast" | "stream/iter.broadcastProtocol" | "stream/iter.bytes" | "stream/iter.bytesSync" | "stream/iter.drainableProtocol" | "stream/iter.dump" | "stream/iter.dumpSync" | "stream/iter.duplex" | "stream/iter.from" | "stream/iter.fromSync" | "stream/iter.merge" | "stream/iter.ondrain" | "stream/iter.pipeTo" | "stream/iter.pipeToSync" | "stream/iter.pull" | "stream/iter.pullSync" | "stream/iter.push" | "stream/iter.share" | "stream/iter.shareProtocol" | "stream/iter.shareSync" | "stream/iter.shareSyncProtocol" | "stream/iter.tap" | "stream/iter.tapSync" | "stream/iter.text" | "stream/iter.textSync" | "stream/iter.toAsyncStreamable" | "stream/iter.toStreamable" | "stream/iter.fromReadable" | "stream/iter.fromWritable" | "stream/iter.toReadable" | "stream/iter.toReadableSync" | "stream/iter.toWritable" | "stream/iter.Broadcast" | "stream/iter.Broadcast.from" | "stream/iter.Share" | "stream/iter.Share.from" | "stream/iter.Stream" | "stream/iter.Stream.array" | "stream/iter.Stream.arrayBuffer" | "stream/iter.Stream.arrayBufferSync" | "stream/iter.Stream.arraySync" | "stream/iter.Stream.broadcast" | "stream/iter.Stream.broadcastProtocol" | "stream/iter.Stream.bytes" | "stream/iter.Stream.bytesSync" | "stream/iter.Stream.drainableProtocol" | "stream/iter.Stream.dump" | "stream/iter.Stream.dumpSync" | "stream/iter.Stream.duplex" | "stream/iter.Stream.from" | "stream/iter.Stream.fromSync" | "stream/iter.Stream.merge" | "stream/iter.Stream.ondrain" | "stream/iter.Stream.pipeTo" | "stream/iter.Stream.pipeToSync" | "stream/iter.Stream.pull" | "stream/iter.Stream.pullSync" | "stream/iter.Stream.push" | "stream/iter.Stream.share" | "stream/iter.Stream.shareProtocol" | "stream/iter.Stream.shareSync" | "stream/iter.Stream.shareSyncProtocol" | "stream/iter.Stream.tap" | "stream/iter.Stream.tapSync" | "stream/iter.Stream.text" | "stream/iter.Stream.textSync" | "stream/iter.Stream.toAsyncStreamable" | "stream/iter.Stream.toStreamable" | "stream/iter.SyncShare" | "stream/iter.SyncShare.fromSync" | "_stream_duplex" | "_stream_passthrough" | "_stream_readable" | "_stream_transform" | "_stream_wrap" | "_stream_writable" | "string_decoder" | "string_decoder.StringDecoder" | "sqlite" | "sqlite.constants" | "sqlite.constants.SQLITE_CHANGESET_OMIT" | "sqlite.constants.SQLITE_CHANGESET_REPLACE" | "sqlite.constants.SQLITE_CHANGESET_ABORT" | "sqlite.backup" | "sqlite.Database" | "sqlite.DatabaseSync" | "sqlite.Session" | "sqlite.Statement" | "sqlite.StatementSync" | "sqlite.SQLITE_CHANGESET_OMIT" | "sqlite.SQLITE_CHANGESET_REPLACE" | "sqlite.SQLITE_CHANGESET_ABORT" | "test" | "test.after" | "test.afterEach" | "test.assert" | "test.assert.register" | "test.before" | "test.beforeEach" | "test.describe" | "test.describe.only" | "test.describe.skip" | "test.describe.todo" | "test.getTestContext" | "test.it" | "test.it.only" | "test.it.skip" | "test.it.todo" | "test.mock" | "test.mock.fn" | "test.mock.getter" | "test.mock.method" | "test.mock.module" | "test.mock.property" | "test.mock.reset" | "test.mock.restoreAll" | "test.mock.setter" | "test.mock.timers" | "test.mock.timers.enable" | "test.mock.timers.reset" | "test.mock.timers.tick" | "test.only" | "test.run" | "test.snapshot" | "test.snapshot.setDefaultSnapshotSerializers" | "test.snapshot.setResolveSnapshotPath" | "test.skip" | "test.suite" | "test.test" | "test.test.only" | "test.test.skip" | "test.test.todo" | "test.todo" | "timers" | "timers.Immediate" | "timers.Timeout" | "timers.setImmediate" | "timers.clearImmediate" | "timers.setInterval" | "timers.clearInterval" | "timers.setTimeout" | "timers.clearTimeout" | "timers.promises" | "timers.promises.setTimeout" | "timers.promises.setImmediate" | "timers.promises.setInterval" | "timers.promises.scheduler.wait" | "timers.promises.scheduler.yield" | "timers/promises" | "timers/promises.setTimeout" | "timers/promises.setImmediate" | "timers/promises.setInterval" | "timers/promises.scheduler.wait" | "timers/promises.scheduler.yield" | "tls" | "tls.checkServerIdentity" | "tls.connect" | "tls.createSecureContext" | "tls.createSecurePair" | "tls.createServer" | "tls.CryptoStream" | "tls.DEFAULT_CIPHERS" | "tls.DEFAULT_ECDH_CURVE" | "tls.DEFAULT_MAX_VERSION" | "tls.DEFAULT_MIN_VERSION" | "tls.getCertificateCompressionAlgorithms" | "tls.getCACertificates" | "tls.getCiphers" | "tls.rootCertificates" | "tls.SecureContext" | "tls.SecurePair" | "tls.Server" | "tls.setDefaultCACertificates" | "tls.TLSSocket" | "_tls_common" | "_tls_wrap" | "trace_events" | "trace_events.createTracing" | "trace_events.getEnabledCategories" | "tty" | "tty.isatty" | "tty.ReadStream" | "tty.WriteStream" | "url" | "url.domainToASCII" | "url.domainToUnicode" | "url.fileURLToPath" | "url.format" | "url.pathToFileURL" | "url.urlToHttpOptions" | "url.URL" | "url.URL.canParse" | "url.URL.createObjectURL" | "url.URL.revokeObjectURL" | "url.URLPattern" | "url.URLSearchParams" | "url.Url" | "util.promisify" | "util.promisify.custom" | "util.callbackify" | "util.convertProcessSignalToExitCode" | "util.debounce" | "util.debuglog" | "util.debug" | "util.deprecate" | "util.diff" | "util.format" | "util.formatWithOptions" | "util.getCallSite" | "util.getCallSites" | "util.getSystemErrorName" | "util.getSystemErrorMap" | "util.getSystemErrorMessage" | "util.inherits" | "util.inspect" | "util.inspect.custom" | "util.inspect.defaultOptions" | "util.inspect.replDefaults" | "util.isDeepStrictEqual" | "util.isPartialDeepStrictEqual" | "util.markPromiseAsHandled" | "util.parseArgs" | "util.parseEnv" | "util.setTraceSigInt" | "util.stripVTControlCharacters" | "util.styleText" | "util.throttle" | "util.toUSVString" | "util.transferableAbortController" | "util.transferableAbortSignal" | "util.aborted" | "util.MIMEType" | "util.MIMEType.parse" | "util.MIMEParams" | "util.TextDecoder" | "util.TextEncoder" | "util.types" | "util.types.isExternal" | "util.types.isDate" | "util.types.isArgumentsObject" | "util.types.isBigIntObject" | "util.types.isBooleanObject" | "util.types.isNumberObject" | "util.types.isStringObject" | "util.types.isSymbolObject" | "util.types.isNativeError" | "util.types.isRegExp" | "util.types.isAsyncFunction" | "util.types.isGeneratorFunction" | "util.types.isGeneratorObject" | "util.types.isPromise" | "util.types.isMap" | "util.types.isSet" | "util.types.isMapIterator" | "util.types.isSetIterator" | "util.types.isWeakMap" | "util.types.isWeakSet" | "util.types.isArrayBuffer" | "util.types.isDataView" | "util.types.isSharedArrayBuffer" | "util.types.isProxy" | "util.types.isModuleNamespaceObject" | "util.types.isAnyArrayBuffer" | "util.types.isBoxedPrimitive" | "util.types.isArrayBufferView" | "util.types.isTypedArray" | "util.types.isUint8Array" | "util.types.isUint8ClampedArray" | "util.types.isUint16Array" | "util.types.isUint32Array" | "util.types.isInt8Array" | "util.types.isInt16Array" | "util.types.isInt32Array" | "util.types.isFloat16Array" | "util.types.isFloat32Array" | "util.types.isFloat64Array" | "util.types.isBigInt64Array" | "util.types.isBigUint64Array" | "util.types.isKeyObject" | "util.types.isCryptoKey" | "util.types.isWebAssemblyCompiledModule" | "util._extend" | "util.isArray" | "util.isBoolean" | "util.isBuffer" | "util.isDate" | "util.isError" | "util.isFunction" | "util.isNull" | "util.isNullOrUndefined" | "util.isNumber" | "util.isObject" | "util.isPrimitive" | "util.isRegExp" | "util.isString" | "util.isSymbol" | "util.isUndefined" | "util.log" | "util" | "util/types" | "util/types.isExternal" | "util/types.isDate" | "util/types.isArgumentsObject" | "util/types.isBigIntObject" | "util/types.isBooleanObject" | "util/types.isNumberObject" | "util/types.isStringObject" | "util/types.isSymbolObject" | "util/types.isNativeError" | "util/types.isRegExp" | "util/types.isAsyncFunction" | "util/types.isGeneratorFunction" | "util/types.isGeneratorObject" | "util/types.isPromise" | "util/types.isMap" | "util/types.isSet" | "util/types.isMapIterator" | "util/types.isSetIterator" | "util/types.isWeakMap" | "util/types.isWeakSet" | "util/types.isArrayBuffer" | "util/types.isDataView" | "util/types.isSharedArrayBuffer" | "util/types.isProxy" | "util/types.isModuleNamespaceObject" | "util/types.isAnyArrayBuffer" | "util/types.isBoxedPrimitive" | "util/types.isArrayBufferView" | "util/types.isTypedArray" | "util/types.isUint8Array" | "util/types.isUint8ClampedArray" | "util/types.isUint16Array" | "util/types.isUint32Array" | "util/types.isInt8Array" | "util/types.isInt16Array" | "util/types.isInt32Array" | "util/types.isFloat16Array" | "util/types.isFloat32Array" | "util/types.isFloat64Array" | "util/types.isBigInt64Array" | "util/types.isBigUint64Array" | "util/types.isKeyObject" | "util/types.isCryptoKey" | "util/types.isWebAssemblyCompiledModule" | "v8" | "v8.serialize" | "v8.deserialize" | "v8.Serializer" | "v8.Deserializer" | "v8.DefaultSerializer" | "v8.DefaultDeserializer" | "v8.promiseHooks" | "v8.promiseHooks.onInit" | "v8.promiseHooks.onSettled" | "v8.promiseHooks.onBefore" | "v8.promiseHooks.onAfter" | "v8.promiseHooks.createHook" | "v8.startupSnapshot" | "v8.startupSnapshot.addSerializeCallback" | "v8.startupSnapshot.addDeserializeCallback" | "v8.startupSnapshot.setDeserializeMainFunction" | "v8.startupSnapshot.isBuildingSnapshot" | "v8.cachedDataVersionTag" | "v8.getHeapCodeStatistics" | "v8.getHeapSnapshot" | "v8.getHeapSpaceStatistics" | "v8.getHeapStatistics" | "v8.isStringOneByteRepresentation" | "v8.queryObjects" | "v8.setFlagsFromString" | "v8.stopCoverage" | "v8.takeCoverage" | "v8.writeHeapSnapshot" | "v8.setHeapSnapshotNearHeapLimit" | "v8.setHeapProfileNearHeapLimit" | "v8.GCProfiler" | "v8.startCpuProfile" | "v8.startHeapProfile" | "vfs" | "vfs.ComposableProvider" | "vfs.create" | "vfs.MemoryProvider" | "vfs.registerProvider" | "vfs.RealFSProvider" | "vfs.vfsBase" | "vfs.VirtualFileSystem" | "vfs.VirtualProvider" | "vfs.ZipProvider" | "vm.constants" | "vm.compileFunction" | "vm.createContext" | "vm.isContext" | "vm.measureMemory" | "vm.runInContext" | "vm.runInNewContext" | "vm.runInThisContext" | "vm.Script" | "vm.Module" | "vm.SourceTextModule" | "vm.SyntheticModule" | "vm" | "wasi.WASI" | "wasi" | "worker_threads" | "worker_threads.parentPort" | "worker_threads.resourceLimits" | "worker_threads.SHARE_ENV" | "worker_threads.threadId" | "worker_threads.threadName" | "worker_threads.workerData" | "worker_threads.getEnvironmentData" | "worker_threads.getHeapStatistics" | "worker_threads.markAsUncloneable" | "worker_threads.markAsUntransferable" | "worker_threads.isInternalThread" | "worker_threads.isMainThread" | "worker_threads.isMarkedAsUntransferable" | "worker_threads.locks" | "worker_threads.locks.request" | "worker_threads.locks.query" | "worker_threads.moveMessagePortToContext" | "worker_threads.postMessageToThread" | "worker_threads.receiveMessageOnPort" | "worker_threads.setEnvironmentData" | "worker_threads.BroadcastChannel" | "worker_threads.MessageChannel" | "worker_threads.MessagePort" | "worker_threads.Worker" | "zlib.brotliCompress" | "zlib.brotliCompressSync" | "zlib.brotliDecompress" | "zlib.brotliDecompressSync" | "zlib.constants" | "zlib.constants.ZSTD_e_continue" | "zlib.constants.ZSTD_e_flush" | "zlib.constants.ZSTD_e_end" | "zlib.constants.ZSTD_fast" | "zlib.constants.ZSTD_dfast" | "zlib.constants.ZSTD_greedy" | "zlib.constants.ZSTD_lazy" | "zlib.constants.ZSTD_lazy2" | "zlib.constants.ZSTD_btlazy2" | "zlib.constants.ZSTD_btopt" | "zlib.constants.ZSTD_btultra" | "zlib.constants.ZSTD_btultra2" | "zlib.constants.ZSTD_c_compressionLevel" | "zlib.constants.ZSTD_c_windowLog" | "zlib.constants.ZSTD_c_hashLog" | "zlib.constants.ZSTD_c_chainLog" | "zlib.constants.ZSTD_c_searchLog" | "zlib.constants.ZSTD_c_minMatch" | "zlib.constants.ZSTD_c_targetLength" | "zlib.constants.ZSTD_c_strategy" | "zlib.constants.ZSTD_c_enableLongDistanceMatching" | "zlib.constants.ZSTD_c_ldmHashLog" | "zlib.constants.ZSTD_c_ldmMinMatch" | "zlib.constants.ZSTD_c_ldmBucketSizeLog" | "zlib.constants.ZSTD_c_ldmHashRateLog" | "zlib.constants.ZSTD_c_contentSizeFlag" | "zlib.constants.ZSTD_c_checksumFlag" | "zlib.constants.ZSTD_c_dictIDFlag" | "zlib.constants.ZSTD_c_nbWorkers" | "zlib.constants.ZSTD_c_jobSize" | "zlib.constants.ZSTD_c_overlapLog" | "zlib.constants.ZSTD_d_windowLogMax" | "zlib.constants.ZSTD_CLEVEL_DEFAULT" | "zlib.constants.ZSTD_error_no_error" | "zlib.constants.ZSTD_error_GENERIC" | "zlib.constants.ZSTD_error_prefix_unknown" | "zlib.constants.ZSTD_error_version_unsupported" | "zlib.constants.ZSTD_error_frameParameter_unsupported" | "zlib.constants.ZSTD_error_frameParameter_windowTooLarge" | "zlib.constants.ZSTD_error_corruption_detected" | "zlib.constants.ZSTD_error_checksum_wrong" | "zlib.constants.ZSTD_error_literals_headerWrong" | "zlib.constants.ZSTD_error_dictionary_corrupted" | "zlib.constants.ZSTD_error_dictionary_wrong" | "zlib.constants.ZSTD_error_dictionaryCreation_failed" | "zlib.constants.ZSTD_error_parameter_unsupported" | "zlib.constants.ZSTD_error_parameter_combination_unsupported" | "zlib.constants.ZSTD_error_parameter_outOfBound" | "zlib.constants.ZSTD_error_tableLog_tooLarge" | "zlib.constants.ZSTD_error_maxSymbolValue_tooLarge" | "zlib.constants.ZSTD_error_maxSymbolValue_tooSmall" | "zlib.constants.ZSTD_error_stabilityCondition_notRespected" | "zlib.constants.ZSTD_error_stage_wrong" | "zlib.constants.ZSTD_error_init_missing" | "zlib.constants.ZSTD_error_memory_allocation" | "zlib.constants.ZSTD_error_workSpace_tooSmall" | "zlib.constants.ZSTD_error_dstSize_tooSmall" | "zlib.constants.ZSTD_error_srcSize_wrong" | "zlib.constants.ZSTD_error_dstBuffer_null" | "zlib.constants.ZSTD_error_noForwardProgress_destFull" | "zlib.constants.ZSTD_error_noForwardProgress_inputEmpty" | "zlib.crc32" | "zlib.createBrotliCompress" | "zlib.createBrotliDecompress" | "zlib.createDeflate" | "zlib.createDeflateRaw" | "zlib.createGunzip" | "zlib.createGzip" | "zlib.createInflate" | "zlib.createInflateRaw" | "zlib.createUnzip" | "zlib.createZstdCompress" | "zlib.createZstdDecompress" | "zlib.deflate" | "zlib.deflateRaw" | "zlib.deflateRawSync" | "zlib.deflateSync" | "zlib.gunzip" | "zlib.gunzipSync" | "zlib.gzip" | "zlib.gzipSync" | "zlib.inflate" | "zlib.inflateRaw" | "zlib.inflateRawSync" | "zlib.inflateSync" | "zlib.unzip" | "zlib.unzipSync" | "zlib.zstdCompress" | "zlib.zstdCompressSync" | "zlib.zstdDecompress" | "zlib.zstdDecompressSync" | "zlib.createZipArchive" | "zlib.createZipArchiveSync" | "zlib.getMaxZipContentSize" | "zlib.setMaxZipContentSize" | "zlib.zipFiles" | "zlib.BrotliCompress()" | "zlib.BrotliCompress" | "zlib.BrotliDecompress()" | "zlib.BrotliDecompress" | "zlib.Deflate()" | "zlib.Deflate" | "zlib.DeflateRaw()" | "zlib.DeflateRaw" | "zlib.Gunzip()" | "zlib.Gunzip" | "zlib.Gzip()" | "zlib.Gzip" | "zlib.Inflate()" | "zlib.Inflate" | "zlib.InflateRaw()" | "zlib.InflateRaw" | "zlib.Unzip()" | "zlib.Unzip" | "zlib.ZstdCompress" | "zlib.ZstdDecompress" | "zlib.ZstdOptions" | "zlib.ZipBuffer" | "zlib.ZipEntry" | "zlib.ZipEntry.create" | "zlib.ZipEntry.createStream" | "zlib.ZipEntry.createSymlink" | "zlib.ZipEntry.createSync" | "zlib.ZipEntry.read" | "zlib.ZipFile" | "zlib.ZipFile.open" | "zlib.ZipFile.openSync" | "zlib" | "zlib/iter" | "zlib/iter.compressBrotli" | "zlib/iter.compressBrotliSync" | "zlib/iter.compressDeflate" | "zlib/iter.compressDeflateSync" | "zlib/iter.compressGzip" | "zlib/iter.compressGzipSync" | "zlib/iter.compressZstd" | "zlib/iter.compressZstdSync" | "zlib/iter.decompressBrotli" | "zlib/iter.decompressBrotliSync" | "zlib/iter.decompressDeflate" | "zlib/iter.decompressDeflateSync" | "zlib/iter.decompressGzip" | "zlib/iter.decompressGzipSync" | "zlib/iter.decompressZstd" | "zlib/iter.decompressZstdSync" | "import.meta.resolve" | "import.meta.dirname" | "import.meta.filename" | "import.meta.main")[];
|
|
14603
14687
|
}];
|
|
14604
14688
|
// ----- node/prefer-global/buffer -----
|
|
@@ -14665,13 +14749,6 @@ type NtnyqIndentUnindent = [] | [{
|
|
|
14665
14749
|
type NtnyqNoDuplicateExports = [] | [{
|
|
14666
14750
|
style?: ("inline" | "separate");
|
|
14667
14751
|
}];
|
|
14668
|
-
// ----- ntnyq/no-only-tests -----
|
|
14669
|
-
type NtnyqNoOnlyTests = [] | [{
|
|
14670
|
-
block?: string[];
|
|
14671
|
-
focus?: string[];
|
|
14672
|
-
functions?: string[];
|
|
14673
|
-
fix?: boolean;
|
|
14674
|
-
}];
|
|
14675
14752
|
// ----- ntnyq/no-restricted-bindings -----
|
|
14676
14753
|
type NtnyqNoRestrictedBindings = [] | [{
|
|
14677
14754
|
restrictions: {
|
|
@@ -14682,6 +14759,13 @@ type NtnyqNoRestrictedBindings = [] | [{
|
|
|
14682
14759
|
message?: string;
|
|
14683
14760
|
}[];
|
|
14684
14761
|
}];
|
|
14762
|
+
// ----- ntnyq/padding-line-between-statements -----
|
|
14763
|
+
type _NtnyqPaddingLineBetweenStatementsStatementType = (("*" | "block" | "block-like" | "break" | "case" | "cjs-export" | "cjs-import" | "class" | "const" | "continue" | "debugger" | "default" | "directive" | "do" | "empty" | "export" | "expression" | "for" | "function" | "if" | "iife" | "import" | "let" | "multiline-block-like" | "multiline-const" | "multiline-expression" | "multiline-let" | "multiline-var" | "return" | "singleline-const" | "singleline-let" | "singleline-var" | "switch" | "throw" | "try" | "var" | "while" | "with") | [("*" | "block" | "block-like" | "break" | "case" | "cjs-export" | "cjs-import" | "class" | "const" | "continue" | "debugger" | "default" | "directive" | "do" | "empty" | "export" | "expression" | "for" | "function" | "if" | "iife" | "import" | "let" | "multiline-block-like" | "multiline-const" | "multiline-expression" | "multiline-let" | "multiline-var" | "return" | "singleline-const" | "singleline-let" | "singleline-var" | "switch" | "throw" | "try" | "var" | "while" | "with"), ...(("*" | "block" | "block-like" | "break" | "case" | "cjs-export" | "cjs-import" | "class" | "const" | "continue" | "debugger" | "default" | "directive" | "do" | "empty" | "export" | "expression" | "for" | "function" | "if" | "iife" | "import" | "let" | "multiline-block-like" | "multiline-const" | "multiline-expression" | "multiline-let" | "multiline-var" | "return" | "singleline-const" | "singleline-let" | "singleline-var" | "switch" | "throw" | "try" | "var" | "while" | "with"))[]]);
|
|
14764
|
+
type NtnyqPaddingLineBetweenStatements = {
|
|
14765
|
+
blankLine: ("always" | "never" | "any");
|
|
14766
|
+
prev: _NtnyqPaddingLineBetweenStatementsStatementType;
|
|
14767
|
+
next: _NtnyqPaddingLineBetweenStatementsStatementType;
|
|
14768
|
+
}[];
|
|
14685
14769
|
// ----- ntnyq/prefer-newline-after-file-header -----
|
|
14686
14770
|
type NtnyqPreferNewlineAfterFileHeader = [] | [{
|
|
14687
14771
|
tags?: string[];
|
|
@@ -14802,8 +14886,8 @@ type OxfmtOxfmt = [] | [{
|
|
|
14802
14886
|
customGroups?: {
|
|
14803
14887
|
elementNamePattern?: string[];
|
|
14804
14888
|
groupName?: string;
|
|
14805
|
-
modifiers?:
|
|
14806
|
-
selector?:
|
|
14889
|
+
modifiers?: ("default" | "named" | "side_effect" | "type" | "value" | "wildcard")[];
|
|
14890
|
+
selector?: ("builtin" | "external" | "import" | "index" | "internal" | "parent" | "sibling" | "side_effect" | "side_effect_style" | "style" | "subpath" | "type");
|
|
14807
14891
|
}[];
|
|
14808
14892
|
groups?: (string | string[] | {
|
|
14809
14893
|
newlinesBetween: boolean;
|
|
@@ -14844,6 +14928,8 @@ type OxfmtOxfmt = [] | [{
|
|
|
14844
14928
|
});
|
|
14845
14929
|
ignorePath?: (string | string[]);
|
|
14846
14930
|
respectOxfmtDefaultIgnores?: boolean;
|
|
14931
|
+
useCache?: boolean;
|
|
14932
|
+
useCliConfig?: boolean;
|
|
14847
14933
|
useConfig?: boolean;
|
|
14848
14934
|
withNodeModules?: boolean;
|
|
14849
14935
|
associations?: {
|
|
@@ -14893,8 +14979,8 @@ type OxfmtOxfmt = [] | [{
|
|
|
14893
14979
|
customGroups?: {
|
|
14894
14980
|
elementNamePattern?: string[];
|
|
14895
14981
|
groupName?: string;
|
|
14896
|
-
modifiers?:
|
|
14897
|
-
selector?:
|
|
14982
|
+
modifiers?: ("default" | "named" | "side_effect" | "type" | "value" | "wildcard")[];
|
|
14983
|
+
selector?: ("builtin" | "external" | "import" | "index" | "internal" | "parent" | "sibling" | "side_effect" | "side_effect_style" | "style" | "subpath" | "type");
|
|
14898
14984
|
}[];
|
|
14899
14985
|
groups?: (string | string[] | {
|
|
14900
14986
|
newlinesBetween: boolean;
|
|
@@ -15298,8 +15384,8 @@ type PerfectionistSortClasses = {
|
|
|
15298
15384
|
pattern: string;
|
|
15299
15385
|
flags?: string;
|
|
15300
15386
|
} | string));
|
|
15301
|
-
modifiers?: ("
|
|
15302
|
-
selector?: ("
|
|
15387
|
+
modifiers?: ("static" | "declare" | "abstract" | "decorated" | "override" | "readonly" | "protected" | "private" | "public" | "optional" | "async")[];
|
|
15388
|
+
selector?: ("function-property" | "accessor-property" | "property" | "constructor" | "get-method" | "set-method" | "method" | "index-signature" | "static-block");
|
|
15303
15389
|
decoratorNamePattern?: (({
|
|
15304
15390
|
pattern: string;
|
|
15305
15391
|
flags?: string;
|
|
@@ -15322,8 +15408,8 @@ type PerfectionistSortClasses = {
|
|
|
15322
15408
|
pattern: string;
|
|
15323
15409
|
flags?: string;
|
|
15324
15410
|
} | string));
|
|
15325
|
-
modifiers?: ("
|
|
15326
|
-
selector?: ("
|
|
15411
|
+
modifiers?: ("static" | "declare" | "abstract" | "decorated" | "override" | "readonly" | "protected" | "private" | "public" | "optional" | "async")[];
|
|
15412
|
+
selector?: ("function-property" | "accessor-property" | "property" | "constructor" | "get-method" | "set-method" | "method" | "index-signature" | "static-block");
|
|
15327
15413
|
decoratorNamePattern?: (({
|
|
15328
15414
|
pattern: string;
|
|
15329
15415
|
flags?: string;
|
|
@@ -15355,8 +15441,8 @@ type PerfectionistSortClasses = {
|
|
|
15355
15441
|
pattern: string;
|
|
15356
15442
|
flags?: string;
|
|
15357
15443
|
} | string));
|
|
15358
|
-
modifiers?: ("
|
|
15359
|
-
selector?: ("
|
|
15444
|
+
modifiers?: ("static" | "declare" | "abstract" | "decorated" | "override" | "readonly" | "protected" | "private" | "public" | "optional" | "async")[];
|
|
15445
|
+
selector?: ("function-property" | "accessor-property" | "property" | "constructor" | "get-method" | "set-method" | "method" | "index-signature" | "static-block");
|
|
15360
15446
|
decoratorNamePattern?: (({
|
|
15361
15447
|
pattern: string;
|
|
15362
15448
|
flags?: string;
|
|
@@ -16361,8 +16447,8 @@ type PerfectionistSortImports = {
|
|
|
16361
16447
|
pattern: string;
|
|
16362
16448
|
flags?: string;
|
|
16363
16449
|
} | string));
|
|
16364
|
-
modifiers?: ("
|
|
16365
|
-
selector?: ("
|
|
16450
|
+
modifiers?: ("side-effect" | "type" | "value" | "ts-equals" | "require" | "default" | "wildcard" | "named" | "multiline" | "singleline")[];
|
|
16451
|
+
selector?: ("type" | "side-effect-style" | "side-effect" | "style" | "tsconfig-path" | "index" | "sibling" | "parent" | "subpath" | "internal" | "builtin" | "external" | "import");
|
|
16366
16452
|
}, ...({
|
|
16367
16453
|
elementNamePattern?: (({
|
|
16368
16454
|
pattern: string;
|
|
@@ -16371,8 +16457,8 @@ type PerfectionistSortImports = {
|
|
|
16371
16457
|
pattern: string;
|
|
16372
16458
|
flags?: string;
|
|
16373
16459
|
} | string));
|
|
16374
|
-
modifiers?: ("
|
|
16375
|
-
selector?: ("
|
|
16460
|
+
modifiers?: ("side-effect" | "type" | "value" | "ts-equals" | "require" | "default" | "wildcard" | "named" | "multiline" | "singleline")[];
|
|
16461
|
+
selector?: ("type" | "side-effect-style" | "side-effect" | "style" | "tsconfig-path" | "index" | "sibling" | "parent" | "subpath" | "internal" | "builtin" | "external" | "import");
|
|
16376
16462
|
})[]];
|
|
16377
16463
|
} | {
|
|
16378
16464
|
fallbackSort?: {
|
|
@@ -16392,8 +16478,8 @@ type PerfectionistSortImports = {
|
|
|
16392
16478
|
pattern: string;
|
|
16393
16479
|
flags?: string;
|
|
16394
16480
|
} | string));
|
|
16395
|
-
modifiers?: ("
|
|
16396
|
-
selector?: ("
|
|
16481
|
+
modifiers?: ("side-effect" | "type" | "value" | "ts-equals" | "require" | "default" | "wildcard" | "named" | "multiline" | "singleline")[];
|
|
16482
|
+
selector?: ("type" | "side-effect-style" | "side-effect" | "style" | "tsconfig-path" | "index" | "sibling" | "parent" | "subpath" | "internal" | "builtin" | "external" | "import");
|
|
16397
16483
|
})[];
|
|
16398
16484
|
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
16399
16485
|
groups?: (string | [string, ...(string)[]] | {
|
|
@@ -16484,8 +16570,8 @@ type PerfectionistSortInterfaces = {
|
|
|
16484
16570
|
pattern: string;
|
|
16485
16571
|
flags?: string;
|
|
16486
16572
|
} | string));
|
|
16487
|
-
modifiers?: ("
|
|
16488
|
-
selector?: ("index-signature" | "
|
|
16573
|
+
modifiers?: ("multiline" | "optional" | "required")[];
|
|
16574
|
+
selector?: ("index-signature" | "method" | "property" | "member");
|
|
16489
16575
|
elementValuePattern?: (({
|
|
16490
16576
|
pattern: string;
|
|
16491
16577
|
flags?: string;
|
|
@@ -16501,8 +16587,8 @@ type PerfectionistSortInterfaces = {
|
|
|
16501
16587
|
pattern: string;
|
|
16502
16588
|
flags?: string;
|
|
16503
16589
|
} | string));
|
|
16504
|
-
modifiers?: ("
|
|
16505
|
-
selector?: ("index-signature" | "
|
|
16590
|
+
modifiers?: ("multiline" | "optional" | "required")[];
|
|
16591
|
+
selector?: ("index-signature" | "method" | "property" | "member");
|
|
16506
16592
|
elementValuePattern?: (({
|
|
16507
16593
|
pattern: string;
|
|
16508
16594
|
flags?: string;
|
|
@@ -16529,8 +16615,8 @@ type PerfectionistSortInterfaces = {
|
|
|
16529
16615
|
pattern: string;
|
|
16530
16616
|
flags?: string;
|
|
16531
16617
|
} | string));
|
|
16532
|
-
modifiers?: ("
|
|
16533
|
-
selector?: ("index-signature" | "
|
|
16618
|
+
modifiers?: ("multiline" | "optional" | "required")[];
|
|
16619
|
+
selector?: ("index-signature" | "method" | "property" | "member");
|
|
16534
16620
|
elementValuePattern?: (({
|
|
16535
16621
|
pattern: string;
|
|
16536
16622
|
flags?: string;
|
|
@@ -16966,7 +17052,7 @@ type PerfectionistSortModules = [] | [{
|
|
|
16966
17052
|
pattern: string;
|
|
16967
17053
|
flags?: string;
|
|
16968
17054
|
} | string));
|
|
16969
|
-
modifiers?: ("
|
|
17055
|
+
modifiers?: ("arrow" | "declare" | "default" | "async" | "decorated" | "export")[];
|
|
16970
17056
|
selector?: ("enum" | "function" | "interface" | "type" | "class");
|
|
16971
17057
|
decoratorNamePattern?: (({
|
|
16972
17058
|
pattern: string;
|
|
@@ -16983,7 +17069,7 @@ type PerfectionistSortModules = [] | [{
|
|
|
16983
17069
|
pattern: string;
|
|
16984
17070
|
flags?: string;
|
|
16985
17071
|
} | string));
|
|
16986
|
-
modifiers?: ("
|
|
17072
|
+
modifiers?: ("arrow" | "declare" | "default" | "async" | "decorated" | "export")[];
|
|
16987
17073
|
selector?: ("enum" | "function" | "interface" | "type" | "class");
|
|
16988
17074
|
decoratorNamePattern?: (({
|
|
16989
17075
|
pattern: string;
|
|
@@ -17009,7 +17095,7 @@ type PerfectionistSortModules = [] | [{
|
|
|
17009
17095
|
pattern: string;
|
|
17010
17096
|
flags?: string;
|
|
17011
17097
|
} | string));
|
|
17012
|
-
modifiers?: ("
|
|
17098
|
+
modifiers?: ("arrow" | "declare" | "default" | "async" | "decorated" | "export")[];
|
|
17013
17099
|
selector?: ("enum" | "function" | "interface" | "type" | "class");
|
|
17014
17100
|
decoratorNamePattern?: (({
|
|
17015
17101
|
pattern: string;
|
|
@@ -17035,6 +17121,7 @@ type PerfectionistSortModules = [] | [{
|
|
|
17035
17121
|
})[];
|
|
17036
17122
|
newlinesBetween?: ("ignore" | number);
|
|
17037
17123
|
additionalModuleBlockTypes?: string[];
|
|
17124
|
+
sortArrowFunctions?: boolean;
|
|
17038
17125
|
useExperimentalDependencyDetection?: boolean;
|
|
17039
17126
|
newlinesBetweenOverloadSignatures?: ("ignore" | number);
|
|
17040
17127
|
partitionByComment?: (boolean | (({
|
|
@@ -17320,8 +17407,8 @@ type PerfectionistSortObjectTypes = {
|
|
|
17320
17407
|
pattern: string;
|
|
17321
17408
|
flags?: string;
|
|
17322
17409
|
} | string));
|
|
17323
|
-
modifiers?: ("
|
|
17324
|
-
selector?: ("index-signature" | "
|
|
17410
|
+
modifiers?: ("multiline" | "optional" | "required")[];
|
|
17411
|
+
selector?: ("index-signature" | "method" | "property" | "member");
|
|
17325
17412
|
elementValuePattern?: (({
|
|
17326
17413
|
pattern: string;
|
|
17327
17414
|
flags?: string;
|
|
@@ -17337,8 +17424,8 @@ type PerfectionistSortObjectTypes = {
|
|
|
17337
17424
|
pattern: string;
|
|
17338
17425
|
flags?: string;
|
|
17339
17426
|
} | string));
|
|
17340
|
-
modifiers?: ("
|
|
17341
|
-
selector?: ("index-signature" | "
|
|
17427
|
+
modifiers?: ("multiline" | "optional" | "required")[];
|
|
17428
|
+
selector?: ("index-signature" | "method" | "property" | "member");
|
|
17342
17429
|
elementValuePattern?: (({
|
|
17343
17430
|
pattern: string;
|
|
17344
17431
|
flags?: string;
|
|
@@ -17365,8 +17452,8 @@ type PerfectionistSortObjectTypes = {
|
|
|
17365
17452
|
pattern: string;
|
|
17366
17453
|
flags?: string;
|
|
17367
17454
|
} | string));
|
|
17368
|
-
modifiers?: ("
|
|
17369
|
-
selector?: ("index-signature" | "
|
|
17455
|
+
modifiers?: ("multiline" | "optional" | "required")[];
|
|
17456
|
+
selector?: ("index-signature" | "method" | "property" | "member");
|
|
17370
17457
|
elementValuePattern?: (({
|
|
17371
17458
|
pattern: string;
|
|
17372
17459
|
flags?: string;
|
|
@@ -17479,7 +17566,7 @@ type PerfectionistSortObjects = {
|
|
|
17479
17566
|
flags?: string;
|
|
17480
17567
|
} | string));
|
|
17481
17568
|
modifiers?: ("multiline")[];
|
|
17482
|
-
selector?: ("
|
|
17569
|
+
selector?: ("method" | "property" | "member");
|
|
17483
17570
|
elementValuePattern?: (({
|
|
17484
17571
|
pattern: string;
|
|
17485
17572
|
flags?: string;
|
|
@@ -17496,7 +17583,7 @@ type PerfectionistSortObjects = {
|
|
|
17496
17583
|
flags?: string;
|
|
17497
17584
|
} | string));
|
|
17498
17585
|
modifiers?: ("multiline")[];
|
|
17499
|
-
selector?: ("
|
|
17586
|
+
selector?: ("method" | "property" | "member");
|
|
17500
17587
|
elementValuePattern?: (({
|
|
17501
17588
|
pattern: string;
|
|
17502
17589
|
flags?: string;
|
|
@@ -17524,7 +17611,7 @@ type PerfectionistSortObjects = {
|
|
|
17524
17611
|
flags?: string;
|
|
17525
17612
|
} | string));
|
|
17526
17613
|
modifiers?: ("multiline")[];
|
|
17527
|
-
selector?: ("
|
|
17614
|
+
selector?: ("method" | "property" | "member");
|
|
17528
17615
|
elementValuePattern?: (({
|
|
17529
17616
|
pattern: string;
|
|
17530
17617
|
flags?: string;
|
|
@@ -19399,6 +19486,7 @@ type UnicornNoEmptyFile = [] | [{
|
|
|
19399
19486
|
}];
|
|
19400
19487
|
// ----- unicorn/no-immediate-mutation -----
|
|
19401
19488
|
type UnicornNoImmediateMutation = [] | [{
|
|
19489
|
+
checkCollections?: boolean;
|
|
19402
19490
|
checkConditionals?: boolean;
|
|
19403
19491
|
}];
|
|
19404
19492
|
// ----- unicorn/no-instanceof-builtins -----
|
|
@@ -19567,6 +19655,10 @@ type UnicornPreferNumberProperties = [] | [{
|
|
|
19567
19655
|
type UnicornPreferObjectFromEntries = [] | [{
|
|
19568
19656
|
functions?: string[];
|
|
19569
19657
|
}];
|
|
19658
|
+
// ----- unicorn/prefer-options-parameter -----
|
|
19659
|
+
type UnicornPreferOptionsParameter = [] | [{
|
|
19660
|
+
checkWithoutOptionsObject?: boolean;
|
|
19661
|
+
}];
|
|
19570
19662
|
// ----- unicorn/prefer-query-selector -----
|
|
19571
19663
|
type UnicornPreferQuerySelector = [] | [{
|
|
19572
19664
|
allowWithVariables?: boolean;
|
|
@@ -19590,6 +19682,10 @@ type UnicornPreferSimplifiedConditions = [] | [{
|
|
|
19590
19682
|
type UnicornPreferSingleCall = [] | [{
|
|
19591
19683
|
ignore?: string[];
|
|
19592
19684
|
}];
|
|
19685
|
+
// ----- unicorn/prefer-smaller-scope -----
|
|
19686
|
+
type UnicornPreferSmallerScope = [] | [{
|
|
19687
|
+
checkTypeAliases?: boolean;
|
|
19688
|
+
}];
|
|
19593
19689
|
// ----- unicorn/prefer-string-repeat -----
|
|
19594
19690
|
type UnicornPreferStringRepeat = [] | [{
|
|
19595
19691
|
minimumRepetitions?: number;
|
|
@@ -19613,6 +19709,15 @@ type UnicornPreferTemporal = [] | [{
|
|
|
19613
19709
|
type UnicornPreferTernary = [] | [("always" | "only-single-line")] | [("always" | "only-single-line"), {
|
|
19614
19710
|
checkVaryingBase?: boolean;
|
|
19615
19711
|
checkComputedMemberAccess?: boolean;
|
|
19712
|
+
checkNestedTernaries?: boolean;
|
|
19713
|
+
}];
|
|
19714
|
+
// ----- unicorn/prefer-uint8array-base64 -----
|
|
19715
|
+
type UnicornPreferUint8ArrayBase64 = [] | [{
|
|
19716
|
+
checkBufferDecoding?: boolean;
|
|
19717
|
+
}];
|
|
19718
|
+
// ----- unicorn/prefer-uint8array-hex -----
|
|
19719
|
+
type UnicornPreferUint8ArrayHex = [] | [{
|
|
19720
|
+
checkBufferDecoding?: boolean;
|
|
19616
19721
|
}];
|
|
19617
19722
|
// ----- unicorn/relative-url-style -----
|
|
19618
19723
|
type UnicornRelativeUrlStyle = [] | [("never" | "always")];
|
|
@@ -19670,6 +19775,40 @@ type UnocssOrder = [] | [{
|
|
|
19670
19775
|
unoFunctions?: string[];
|
|
19671
19776
|
unoVariables?: string[];
|
|
19672
19777
|
}];
|
|
19778
|
+
// ----- unused-imports/no-unused-imports -----
|
|
19779
|
+
type UnusedImportsNoUnusedImports = [] | [(("all" | "local") | {
|
|
19780
|
+
args?: ("all" | "after-used" | "none");
|
|
19781
|
+
argsIgnorePattern?: string;
|
|
19782
|
+
caughtErrors?: ("all" | "none");
|
|
19783
|
+
caughtErrorsIgnorePattern?: string;
|
|
19784
|
+
destructuredArrayIgnorePattern?: string;
|
|
19785
|
+
enableAutofixRemoval?: {
|
|
19786
|
+
imports?: boolean;
|
|
19787
|
+
};
|
|
19788
|
+
ignoreClassWithStaticInitBlock?: boolean;
|
|
19789
|
+
ignoreRestSiblings?: boolean;
|
|
19790
|
+
ignoreUsingDeclarations?: boolean;
|
|
19791
|
+
reportUsedIgnorePattern?: boolean;
|
|
19792
|
+
vars?: ("all" | "local");
|
|
19793
|
+
varsIgnorePattern?: string;
|
|
19794
|
+
})];
|
|
19795
|
+
// ----- unused-imports/no-unused-vars -----
|
|
19796
|
+
type UnusedImportsNoUnusedVars = [] | [(("all" | "local") | {
|
|
19797
|
+
args?: ("all" | "after-used" | "none");
|
|
19798
|
+
argsIgnorePattern?: string;
|
|
19799
|
+
caughtErrors?: ("all" | "none");
|
|
19800
|
+
caughtErrorsIgnorePattern?: string;
|
|
19801
|
+
destructuredArrayIgnorePattern?: string;
|
|
19802
|
+
enableAutofixRemoval?: {
|
|
19803
|
+
imports?: boolean;
|
|
19804
|
+
};
|
|
19805
|
+
ignoreClassWithStaticInitBlock?: boolean;
|
|
19806
|
+
ignoreRestSiblings?: boolean;
|
|
19807
|
+
ignoreUsingDeclarations?: boolean;
|
|
19808
|
+
reportUsedIgnorePattern?: boolean;
|
|
19809
|
+
vars?: ("all" | "local");
|
|
19810
|
+
varsIgnorePattern?: string;
|
|
19811
|
+
})];
|
|
19673
19812
|
// ----- use-isnan -----
|
|
19674
19813
|
type UseIsnan = [] | [{
|
|
19675
19814
|
enforceForSwitchCase?: boolean;
|
|
@@ -19809,6 +19948,7 @@ type VuePerfectionistCallbackStyle = [] | [{
|
|
|
19809
19948
|
groups?: ("lifecycle" | "watch" | "cleanup" | "scheduler")[];
|
|
19810
19949
|
vueGlobals?: string[];
|
|
19811
19950
|
vueImportSources?: string[];
|
|
19951
|
+
vueuse?: boolean;
|
|
19812
19952
|
functionStyle?: ("arrow" | "any");
|
|
19813
19953
|
bodyStyle?: ("block" | "any");
|
|
19814
19954
|
}];
|
|
@@ -19843,6 +19983,15 @@ type VuePerfectionistComponentPropValues = [] | [{
|
|
|
19843
19983
|
}[];
|
|
19844
19984
|
unknownValues?: ("ignore" | "report");
|
|
19845
19985
|
}];
|
|
19986
|
+
// ----- vue-perfectionist/consistent-template-element-layout -----
|
|
19987
|
+
type VuePerfectionistConsistentTemplateElementLayout = [] | [{
|
|
19988
|
+
mode?: ("compatible" | "strict");
|
|
19989
|
+
fix?: ("never" | "safe");
|
|
19990
|
+
groups?: {
|
|
19991
|
+
tags: [string, ...(string)[]];
|
|
19992
|
+
layout: ("block" | "inline" | "preserve");
|
|
19993
|
+
}[];
|
|
19994
|
+
}];
|
|
19846
19995
|
// ----- vue-perfectionist/define-macros-newline -----
|
|
19847
19996
|
type VuePerfectionistDefineMacrosNewline = [] | [{
|
|
19848
19997
|
macros?: ("defineProps" | "defineEmits" | "defineSlots" | "defineExpose" | "defineOptions")[];
|
|
@@ -19872,6 +20021,7 @@ type VuePerfectionistMaxLinesPerCallback = [] | [{
|
|
|
19872
20021
|
groups?: ("lifecycle" | "watch" | "cleanup" | "scheduler")[];
|
|
19873
20022
|
vueGlobals?: string[];
|
|
19874
20023
|
vueImportSources?: string[];
|
|
20024
|
+
vueuse?: boolean;
|
|
19875
20025
|
max?: number;
|
|
19876
20026
|
skipBlankLines?: boolean;
|
|
19877
20027
|
skipComments?: boolean;
|
|
@@ -19889,6 +20039,11 @@ type VuePerfectionistNoComplexVForSource = [] | [{
|
|
|
19889
20039
|
allowCallExpression?: boolean;
|
|
19890
20040
|
allowLiteral?: boolean;
|
|
19891
20041
|
}];
|
|
20042
|
+
// ----- vue-perfectionist/no-reactive-composable-return -----
|
|
20043
|
+
type VuePerfectionistNoReactiveComposableReturn = [] | [{
|
|
20044
|
+
functionPattern?: string;
|
|
20045
|
+
ignoreNames?: string[];
|
|
20046
|
+
}];
|
|
19892
20047
|
// ----- vue-perfectionist/no-restricted-html-elements -----
|
|
19893
20048
|
type VuePerfectionistNoRestrictedHtmlElements = [] | [{
|
|
19894
20049
|
elements?: (("a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "label" | "legend" | "li" | "link" | "main" | "map" | "mark" | "menu" | "meta" | "meter" | "nav" | "noscript" | "object" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "script" | "search" | "section" | "select" | "selectedcontent" | "small" | "source" | "span" | "strong" | "style" | "sub" | "summary" | "sup" | "table" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr") | {
|
|
@@ -19911,6 +20066,10 @@ type VuePerfectionistPreferComposableOptions = [] | [{
|
|
|
19911
20066
|
functionPattern?: string;
|
|
19912
20067
|
ignoreNames?: string[];
|
|
19913
20068
|
}];
|
|
20069
|
+
// ----- vue-perfectionist/prefer-define-model -----
|
|
20070
|
+
type VuePerfectionistPreferDefineModel = [] | [{
|
|
20071
|
+
vueuse?: boolean;
|
|
20072
|
+
}];
|
|
19914
20073
|
// ----- vue-perfectionist/prefer-function-declaration -----
|
|
19915
20074
|
type VuePerfectionistPreferFunctionDeclaration = [] | [{
|
|
19916
20075
|
scopes?: ("sfc" | "composables")[];
|
|
@@ -19920,6 +20079,7 @@ type VuePerfectionistPreferFunctionDeclaration = [] | [{
|
|
|
19920
20079
|
}];
|
|
19921
20080
|
// ----- vue-perfectionist/prefer-function-result-pattern -----
|
|
19922
20081
|
type VuePerfectionistPreferFunctionResultPattern = [] | [{
|
|
20082
|
+
vueuse?: boolean;
|
|
19923
20083
|
targets?: {
|
|
19924
20084
|
source: string;
|
|
19925
20085
|
names: [string, ...(string)[]];
|
|
@@ -19977,6 +20137,13 @@ type VuePerfectionistRequireComponentSlots = [] | [{
|
|
|
19977
20137
|
}[];
|
|
19978
20138
|
unknownSlots?: ("report" | "ignore");
|
|
19979
20139
|
}];
|
|
20140
|
+
// ----- vue-perfectionist/require-composable-return-bindings -----
|
|
20141
|
+
type VuePerfectionistRequireComposableReturnBindings = [] | [{
|
|
20142
|
+
functionPattern?: string;
|
|
20143
|
+
ignoreNames?: string[];
|
|
20144
|
+
allowAliases?: boolean;
|
|
20145
|
+
allowParameters?: boolean;
|
|
20146
|
+
}];
|
|
19980
20147
|
// ----- vue-perfectionist/require-injection-key -----
|
|
19981
20148
|
type VuePerfectionistRequireInjectionKey = [] | [{
|
|
19982
20149
|
strict?: boolean;
|
|
@@ -19992,6 +20159,10 @@ type VuePerfectionistRequireMacroTypeName = [] | [{
|
|
|
19992
20159
|
defineSlots?: (string | false);
|
|
19993
20160
|
};
|
|
19994
20161
|
}];
|
|
20162
|
+
// ----- vue-perfectionist/require-props-prefix -----
|
|
20163
|
+
type VuePerfectionistRequirePropsPrefix = [] | [{
|
|
20164
|
+
autofix?: boolean;
|
|
20165
|
+
}];
|
|
19995
20166
|
// ----- vue-perfectionist/require-vue-generic -----
|
|
19996
20167
|
type VuePerfectionistRequireVueGeneric = [] | [{
|
|
19997
20168
|
targets?: {
|
|
@@ -20012,6 +20183,188 @@ type VuePerfectionistRequireVueGeneric = [] | [{
|
|
|
20012
20183
|
}[];
|
|
20013
20184
|
unknownValues?: ("ignore" | "report");
|
|
20014
20185
|
}];
|
|
20186
|
+
// ----- vue-perfectionist/sort-composable-body -----
|
|
20187
|
+
type VuePerfectionistSortComposableBody = [] | [{
|
|
20188
|
+
newlinesInside?: ((number | "ignore") | "newlinesBetween");
|
|
20189
|
+
fallbackSort?: {
|
|
20190
|
+
order?: ("asc" | "desc");
|
|
20191
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
20192
|
+
};
|
|
20193
|
+
order?: ("asc" | "desc");
|
|
20194
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
20195
|
+
newlinesBetween?: (number | "ignore");
|
|
20196
|
+
alphabet?: string;
|
|
20197
|
+
ignoreCase?: boolean;
|
|
20198
|
+
locales?: (string | [string, ...(string)[]]);
|
|
20199
|
+
partitionByComment?: ((boolean | ((string | {
|
|
20200
|
+
flags?: string;
|
|
20201
|
+
pattern: string;
|
|
20202
|
+
}) | [(string | {
|
|
20203
|
+
flags?: string;
|
|
20204
|
+
pattern: string;
|
|
20205
|
+
}), ...((string | {
|
|
20206
|
+
flags?: string;
|
|
20207
|
+
pattern: string;
|
|
20208
|
+
}))[]])) | {
|
|
20209
|
+
block?: (boolean | ((string | {
|
|
20210
|
+
flags?: string;
|
|
20211
|
+
pattern: string;
|
|
20212
|
+
}) | [(string | {
|
|
20213
|
+
flags?: string;
|
|
20214
|
+
pattern: string;
|
|
20215
|
+
}), ...((string | {
|
|
20216
|
+
flags?: string;
|
|
20217
|
+
pattern: string;
|
|
20218
|
+
}))[]]));
|
|
20219
|
+
line?: (boolean | ((string | {
|
|
20220
|
+
flags?: string;
|
|
20221
|
+
pattern: string;
|
|
20222
|
+
}) | [(string | {
|
|
20223
|
+
flags?: string;
|
|
20224
|
+
pattern: string;
|
|
20225
|
+
}), ...((string | {
|
|
20226
|
+
flags?: string;
|
|
20227
|
+
pattern: string;
|
|
20228
|
+
}))[]]));
|
|
20229
|
+
});
|
|
20230
|
+
partitionByNewLine?: boolean;
|
|
20231
|
+
specialCharacters?: ("keep" | "trim" | "remove");
|
|
20232
|
+
vueImportSources?: string[];
|
|
20233
|
+
customGroups?: ({
|
|
20234
|
+
groupName: string;
|
|
20235
|
+
newlinesInside?: (number | "ignore");
|
|
20236
|
+
fallbackSort?: {
|
|
20237
|
+
order?: ("asc" | "desc");
|
|
20238
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
20239
|
+
};
|
|
20240
|
+
order?: ("asc" | "desc");
|
|
20241
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
20242
|
+
callNamePattern?: ((string | {
|
|
20243
|
+
flags?: string;
|
|
20244
|
+
pattern: string;
|
|
20245
|
+
}) | [(string | {
|
|
20246
|
+
flags?: string;
|
|
20247
|
+
pattern: string;
|
|
20248
|
+
}), ...((string | {
|
|
20249
|
+
flags?: string;
|
|
20250
|
+
pattern: string;
|
|
20251
|
+
}))[]]);
|
|
20252
|
+
elementNamePattern?: ((string | {
|
|
20253
|
+
flags?: string;
|
|
20254
|
+
pattern: string;
|
|
20255
|
+
}) | [(string | {
|
|
20256
|
+
flags?: string;
|
|
20257
|
+
pattern: string;
|
|
20258
|
+
}), ...((string | {
|
|
20259
|
+
flags?: string;
|
|
20260
|
+
pattern: string;
|
|
20261
|
+
}))[]]);
|
|
20262
|
+
importSourcePattern?: ((string | {
|
|
20263
|
+
flags?: string;
|
|
20264
|
+
pattern: string;
|
|
20265
|
+
}) | [(string | {
|
|
20266
|
+
flags?: string;
|
|
20267
|
+
pattern: string;
|
|
20268
|
+
}), ...((string | {
|
|
20269
|
+
flags?: string;
|
|
20270
|
+
pattern: string;
|
|
20271
|
+
}))[]]);
|
|
20272
|
+
modifiers?: [("declare" | "async" | "destructured" | "const" | "let" | "var"), ...(("declare" | "async" | "destructured" | "const" | "let" | "var"))[]];
|
|
20273
|
+
selector?: ("interface" | "type" | "enum" | "class" | "constant" | "inject" | "template-ref" | "ref" | "reactive" | "computed" | "composable" | "variable" | "function" | "watch" | "lifecycle-hook" | "provide" | "call");
|
|
20274
|
+
} | {
|
|
20275
|
+
groupName: string;
|
|
20276
|
+
newlinesInside?: (number | "ignore");
|
|
20277
|
+
fallbackSort?: {
|
|
20278
|
+
order?: ("asc" | "desc");
|
|
20279
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
20280
|
+
};
|
|
20281
|
+
order?: ("asc" | "desc");
|
|
20282
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
20283
|
+
anyOf: [{
|
|
20284
|
+
callNamePattern?: ((string | {
|
|
20285
|
+
flags?: string;
|
|
20286
|
+
pattern: string;
|
|
20287
|
+
}) | [(string | {
|
|
20288
|
+
flags?: string;
|
|
20289
|
+
pattern: string;
|
|
20290
|
+
}), ...((string | {
|
|
20291
|
+
flags?: string;
|
|
20292
|
+
pattern: string;
|
|
20293
|
+
}))[]]);
|
|
20294
|
+
elementNamePattern?: ((string | {
|
|
20295
|
+
flags?: string;
|
|
20296
|
+
pattern: string;
|
|
20297
|
+
}) | [(string | {
|
|
20298
|
+
flags?: string;
|
|
20299
|
+
pattern: string;
|
|
20300
|
+
}), ...((string | {
|
|
20301
|
+
flags?: string;
|
|
20302
|
+
pattern: string;
|
|
20303
|
+
}))[]]);
|
|
20304
|
+
importSourcePattern?: ((string | {
|
|
20305
|
+
flags?: string;
|
|
20306
|
+
pattern: string;
|
|
20307
|
+
}) | [(string | {
|
|
20308
|
+
flags?: string;
|
|
20309
|
+
pattern: string;
|
|
20310
|
+
}), ...((string | {
|
|
20311
|
+
flags?: string;
|
|
20312
|
+
pattern: string;
|
|
20313
|
+
}))[]]);
|
|
20314
|
+
modifiers?: [("declare" | "async" | "destructured" | "const" | "let" | "var"), ...(("declare" | "async" | "destructured" | "const" | "let" | "var"))[]];
|
|
20315
|
+
selector?: ("interface" | "type" | "enum" | "class" | "constant" | "inject" | "template-ref" | "ref" | "reactive" | "computed" | "composable" | "variable" | "function" | "watch" | "lifecycle-hook" | "provide" | "call");
|
|
20316
|
+
}, ...({
|
|
20317
|
+
callNamePattern?: ((string | {
|
|
20318
|
+
flags?: string;
|
|
20319
|
+
pattern: string;
|
|
20320
|
+
}) | [(string | {
|
|
20321
|
+
flags?: string;
|
|
20322
|
+
pattern: string;
|
|
20323
|
+
}), ...((string | {
|
|
20324
|
+
flags?: string;
|
|
20325
|
+
pattern: string;
|
|
20326
|
+
}))[]]);
|
|
20327
|
+
elementNamePattern?: ((string | {
|
|
20328
|
+
flags?: string;
|
|
20329
|
+
pattern: string;
|
|
20330
|
+
}) | [(string | {
|
|
20331
|
+
flags?: string;
|
|
20332
|
+
pattern: string;
|
|
20333
|
+
}), ...((string | {
|
|
20334
|
+
flags?: string;
|
|
20335
|
+
pattern: string;
|
|
20336
|
+
}))[]]);
|
|
20337
|
+
importSourcePattern?: ((string | {
|
|
20338
|
+
flags?: string;
|
|
20339
|
+
pattern: string;
|
|
20340
|
+
}) | [(string | {
|
|
20341
|
+
flags?: string;
|
|
20342
|
+
pattern: string;
|
|
20343
|
+
}), ...((string | {
|
|
20344
|
+
flags?: string;
|
|
20345
|
+
pattern: string;
|
|
20346
|
+
}))[]]);
|
|
20347
|
+
modifiers?: [("declare" | "async" | "destructured" | "const" | "let" | "var"), ...(("declare" | "async" | "destructured" | "const" | "let" | "var"))[]];
|
|
20348
|
+
selector?: ("interface" | "type" | "enum" | "class" | "constant" | "inject" | "template-ref" | "ref" | "reactive" | "computed" | "composable" | "variable" | "function" | "watch" | "lifecycle-hook" | "provide" | "call");
|
|
20349
|
+
})[]];
|
|
20350
|
+
})[];
|
|
20351
|
+
fix?: ("safe" | "none");
|
|
20352
|
+
groups?: ((string | [string, ...(string)[]]) | {
|
|
20353
|
+
group: (string | [string, ...(string)[]]);
|
|
20354
|
+
newlinesInside?: (number | "ignore");
|
|
20355
|
+
fallbackSort?: {
|
|
20356
|
+
order?: ("asc" | "desc");
|
|
20357
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
|
|
20358
|
+
};
|
|
20359
|
+
order?: ("asc" | "desc");
|
|
20360
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
20361
|
+
} | {
|
|
20362
|
+
newlinesBetween: (number | "ignore");
|
|
20363
|
+
})[];
|
|
20364
|
+
vueGlobals?: string[];
|
|
20365
|
+
functionPattern?: string;
|
|
20366
|
+
ignoreNames?: string[];
|
|
20367
|
+
}];
|
|
20015
20368
|
// ----- vue-perfectionist/sort-composable-destructure -----
|
|
20016
20369
|
type VuePerfectionistSortComposableDestructure = [] | [{
|
|
20017
20370
|
newlinesInside?: (number | "ignore");
|
|
@@ -21708,7 +22061,7 @@ type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
|
|
|
21708
22061
|
onlyEquality?: boolean;
|
|
21709
22062
|
}];
|
|
21710
22063
|
// Names of all the configs
|
|
21711
|
-
type ConfigNames = 'ntnyq/gitignore' | 'ntnyq/ignores' | 'ntnyq/jsx' | 'ntnyq/node' | 'ntnyq/command' | 'ntnyq/eslint-comments' | 'ntnyq/javascript/recommended' | 'ntnyq/javascript/core' | 'ntnyq/import-x' | 'ntnyq/jsdoc/base' | 'ntnyq/jsdoc/javascript' | 'ntnyq/jsdoc/typescript' | 'ntnyq/perfectionist/common' | 'ntnyq/perfectionist/enums' | 'ntnyq/perfectionist/types' | 'ntnyq/perfectionist/constants' | 'ntnyq/unicorn' | 'ntnyq/pinia' | 'ntnyq/de-morgan' | 'ntnyq/regexp' | 'ntnyq/typescript/setup' | 'ntnyq/typescript/parser' | 'ntnyq/typescript/parser-type-aware' | 'ntnyq/typescript/rules' | 'ntnyq/typescript/rules/type-aware' | 'ntnyq/typescript/types' | 'ntnyq/vue/setup' | 'ntnyq/vue/rules' | 'ntnyq/vue/vue-perfectionist' | 'ntnyq/yml' | 'ntnyq/toml' | 'ntnyq/jsonc' | 'ntnyq/astro' | 'ntnyq/svelte' | 'ntnyq/sort/tsconfig' | 'ntnyq/sort/package-json' | 'ntnyq/sort/i18n-locale/json' | 'ntnyq/sort/i18n-locale/yaml' | 'ntnyq/sort/json-schema' | 'ntnyq/sort/pnpm-workspace' | 'ntnyq/test/
|
|
22064
|
+
type ConfigNames = 'ntnyq/oxfmt/plain-parser' | 'ntnyq/gitignore' | 'ntnyq/ignores' | 'ntnyq/jsx' | 'ntnyq/node' | 'ntnyq/command' | 'ntnyq/eslint-comments' | 'ntnyq/javascript/recommended' | 'ntnyq/javascript/core' | 'ntnyq/import-x' | 'ntnyq/jsdoc/base' | 'ntnyq/jsdoc/javascript' | 'ntnyq/jsdoc/typescript' | 'ntnyq/perfectionist/common' | 'ntnyq/perfectionist/enums' | 'ntnyq/perfectionist/types' | 'ntnyq/perfectionist/constants' | 'ntnyq/unicorn' | 'ntnyq/pinia' | 'ntnyq/de-morgan' | 'ntnyq/regexp' | 'ntnyq/typescript/setup' | 'ntnyq/typescript/parser' | 'ntnyq/typescript/parser-type-aware' | 'ntnyq/typescript/rules' | 'ntnyq/typescript/rules/type-aware' | 'ntnyq/typescript/types' | 'ntnyq/vue/setup' | 'ntnyq/vue/rules' | 'ntnyq/vue/vue-perfectionist' | 'ntnyq/yml' | 'ntnyq/toml' | 'ntnyq/jsonc' | 'ntnyq/astro' | 'ntnyq/svelte' | 'ntnyq/sort/tsconfig' | 'ntnyq/sort/package-json' | 'ntnyq/sort/i18n-locale/json' | 'ntnyq/sort/i18n-locale/yaml' | 'ntnyq/sort/json-schema' | 'ntnyq/sort/pnpm-workspace' | 'ntnyq/test/base' | 'ntnyq/test/vitest' | 'ntnyq/unocss' | 'ntnyq/antfu' | 'ntnyq/depend' | 'ntnyq/depend/package-json' | 'ntnyq/ntnyq' | 'ntnyq/github-action' | 'ntnyq/eslint-plugin' | 'ntnyq/pnpm/package-json' | 'ntnyq/pnpm/pnpm-workspace-yaml' | 'ntnyq/svgo' | 'ntnyq/unused-imports' | 'ntnyq/markdown/recommended/plugin' | 'ntnyq/markdown/recommended/processor' | 'ntnyq/markdown/recommended/code-blocks' | 'ntnyq/markdown/processor' | 'ntnyq/markdown/parser' | 'ntnyq/markdown/code-blocks' | 'ntnyq/html' | 'ntnyq/oxfmt/native-files/html' | 'ntnyq/oxfmt/plain-parser-files/html' | 'ntnyq/specials/scripts' | 'ntnyq/specials/cli' | 'ntnyq/specials/bin' | 'ntnyq/specials/userscript' | 'ntnyq/specials/config-file' | 'ntnyq/specials/shadcn-vue' | 'ntnyq/shell' | 'ntnyq/prettier' | 'ntnyq/prettier/disabled' | 'ntnyq/oxfmt/native-files' | 'ntnyq/oxfmt/plain-parser-files';
|
|
21712
22065
|
/**
|
|
21713
22066
|
* ESLint config
|
|
21714
22067
|
*/
|
|
@@ -22023,4 +22376,4 @@ export declare const PERFECTIONIST: Readonly<{
|
|
|
22023
22376
|
sortNamedImportsGroups: string[];
|
|
22024
22377
|
sortObjectsGroups: string[];
|
|
22025
22378
|
}>;
|
|
22026
|
-
export { type ConfigNames, type RuleOptions, configsTypeScript, mergeProcessors, parserJsonc, parserPlain, parserToml, parserTypeScript, parserVue, parserYaml, pluginAntfu, pluginDeMorgan, pluginDepend, pluginESLintComments, pluginGitHubAction, pluginImportX, pluginJsdoc, pluginJsonc, pluginMarkdown,
|
|
22379
|
+
export { type ConfigNames, type RuleOptions, configsTypeScript, mergeProcessors, parserJsonc, parserPlain, parserToml, parserTypeScript, parserVue, parserYaml, pluginAntfu, pluginDeMorgan, pluginDepend, pluginESLintComments, pluginGitHubAction, pluginImportX, pluginJsdoc, pluginJsonc, pluginMarkdown, pluginNode, pluginNtnyq, pluginOxfmt, pluginPerfectionist, pluginPinia, pluginPrettier, pluginRegexp, pluginSvgo, pluginToml, pluginTypeScript, pluginUnicorn, pluginUnoCSS, pluginVitest, pluginVue, pluginVuePerfectionist, pluginYml, processorPassThrough, processorVueBlocks };
|