@oxlint/migrate 1.69.0 → 1.70.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/src/index.d.mts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* What to enforce for `/// <reference path="..." />` references.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* What to enforce for `/// <reference types="..." />` references.
|
|
6
|
+
*/
|
|
7
|
+
//#region node_modules/.pnpm/oxlint@1.70.0_oxlint-tsgolint@0.23.0/node_modules/oxlint/dist/index.d.ts
|
|
2
8
|
//#region src-js/package/config.generated.d.ts
|
|
3
9
|
type AllowWarnDeny = ("allow" | "off" | "warn" | "error" | "deny") | number;
|
|
4
10
|
type GlobalValue = "readonly" | "writable" | "off";
|
|
@@ -38,10 +44,10 @@ type ExternalPluginEntry = string | {
|
|
|
38
44
|
type GlobSet = string[];
|
|
39
45
|
type LintPluginOptionsSchema = "eslint" | "react" | "unicorn" | "typescript" | "oxc" | "import" | "jsdoc" | "jest" | "vitest" | "jsx-a11y" | "nextjs" | "react-perf" | "promise" | "node" | "vue";
|
|
40
46
|
type LintPlugins = LintPluginOptionsSchema[];
|
|
41
|
-
type Mode2 = "as-needed" | "always" | "never";
|
|
42
47
|
type RuleNoConfig = AllowWarnDeny | [AllowWarnDeny];
|
|
48
|
+
type Mode2 = "as-needed" | "always" | "never";
|
|
43
49
|
type AlwaysNever = "always" | "never";
|
|
44
|
-
type
|
|
50
|
+
type OptionsJsonEnum = CommentConfigJson | {
|
|
45
51
|
block?: CommentConfigJson;
|
|
46
52
|
line?: CommentConfigJson;
|
|
47
53
|
};
|
|
@@ -69,6 +75,10 @@ type MaxDependenciesConfigJson = number | MaxDependenciesConfig;
|
|
|
69
75
|
type Target = "single" | "any";
|
|
70
76
|
type TestCaseName = "it" | "test";
|
|
71
77
|
type JestFnType = "hook" | "describe" | "test" | "expect" | "jest" | "unknown";
|
|
78
|
+
type SnapshotHintMode = "always" | "multi";
|
|
79
|
+
type AltTextElements = "img" | "object" | "area" | 'input[type="image"]';
|
|
80
|
+
type Assert = "htmlFor" | "nesting" | "both" | "either";
|
|
81
|
+
type DistractingElement = "marquee" | "blink";
|
|
72
82
|
type CountThis = "always" | "never" | "except-void";
|
|
73
83
|
type NoCondAssignConfig = "except-parens" | "always";
|
|
74
84
|
type CheckLoopsConfig = boolean | CheckLoops;
|
|
@@ -94,6 +104,8 @@ type ArgsOption = "after-used" | "all" | "none";
|
|
|
94
104
|
type IgnorePatternFor_String = null | string;
|
|
95
105
|
type CaughtErrorsJson = "all" | "none";
|
|
96
106
|
type NoUnusedVarsFixMode = "off" | "suggestion" | "fix" | "safe-fix";
|
|
107
|
+
type NoUseBeforeDefineConfigJson = Nofunc | NoUseBeforeDefineConfig;
|
|
108
|
+
type Nofunc = "nofunc";
|
|
97
109
|
type Location = "start" | "anywhere";
|
|
98
110
|
/**
|
|
99
111
|
* The rule takes a single string option: the name of the error parameter.
|
|
@@ -109,7 +121,10 @@ type Location = "start" | "anywhere";
|
|
|
109
121
|
type HandleCallbackErrConfig = string;
|
|
110
122
|
type ShorthandType = "always" | "methods" | "properties" | "consistent" | "consistent-as-needed" | "never";
|
|
111
123
|
type Destructuring = "any" | "all";
|
|
124
|
+
type TerminationMethod = string | string[];
|
|
112
125
|
type RadixType = "always" | "as-needed";
|
|
126
|
+
type NativeAllowList = AllKeyword | string[];
|
|
127
|
+
type AllKeyword = "all";
|
|
113
128
|
/**
|
|
114
129
|
* A forbidden prop, either as a plain prop name string or with options.
|
|
115
130
|
*/
|
|
@@ -132,18 +147,34 @@ type ForbidItem2 = string | {
|
|
|
132
147
|
message?: string;
|
|
133
148
|
};
|
|
134
149
|
type EnforceBooleanAttribute = "always" | "never";
|
|
150
|
+
type JsxCurlyBracePresenceConfig = JsxCurlyBracePresenceMode | JsxCurlyBracePresence;
|
|
151
|
+
type JsxCurlyBracePresenceMode = "always" | "never" | "ignore";
|
|
152
|
+
type JsxFilenameExtensionAllowMode = "always" | "as-needed";
|
|
135
153
|
type FragmentMode = "syntax" | "element";
|
|
136
|
-
type
|
|
137
|
-
type
|
|
154
|
+
type EnforceDynamicLinksEnum = "always" | "never";
|
|
155
|
+
type IgnoreEnforceOption = "ignore" | "enforce";
|
|
156
|
+
type AllowedOrDisallowInFunc = "allowed" | "disallow-in-func";
|
|
138
157
|
type RequireFlag = "u" | "v";
|
|
139
158
|
type ImportKind = "none" | "all" | "multiple" | "single";
|
|
140
159
|
/**
|
|
141
160
|
* Sorting order for keys. Accepts "asc" for ascending or "desc" for descending.
|
|
142
161
|
*/
|
|
143
162
|
type SortOrder = "desc" | "asc";
|
|
163
|
+
type ArrayOption = "array" | "array-simple" | "generic";
|
|
164
|
+
type ReadonlyArrayOption = "array" | "array-simple" | "generic";
|
|
165
|
+
type DirectiveConfigSchema = boolean | RequireDescription | {
|
|
166
|
+
descriptionFormat?: string;
|
|
167
|
+
};
|
|
168
|
+
type RequireDescription = "allow-with-description";
|
|
144
169
|
type ClassLiteralPropertyStyleOption = "fields" | "getters";
|
|
170
|
+
type PreferGenericType = "constructor" | "type-annotation";
|
|
145
171
|
type ConsistentIndexedObjectStyleConfig = "record" | "index-signature";
|
|
172
|
+
type ArrayLiteralTypeAssertions = "allow" | "allow-as-parameter" | "never";
|
|
173
|
+
type AssertionStyle = "as" | "angle-bracket" | "never";
|
|
174
|
+
type ObjectLiteralTypeAssertions = "allow" | "allow-as-parameter" | "never";
|
|
146
175
|
type ConsistentTypeDefinitionsConfig = "interface" | "type";
|
|
176
|
+
type FixStyle = "separate-type-imports" | "inline-type-imports";
|
|
177
|
+
type Prefer = "type-imports" | "no-type-imports";
|
|
147
178
|
type AccessibilityLevel = "explicit" | "no-public" | "off";
|
|
148
179
|
type MethodSignatureStyleConfig = "property" | "method";
|
|
149
180
|
/**
|
|
@@ -183,14 +214,103 @@ type FileFrom = "file";
|
|
|
183
214
|
type NameSpecifier = string | string[];
|
|
184
215
|
type LibFrom = "lib";
|
|
185
216
|
type PackageFrom = "package";
|
|
217
|
+
type AllowInterfaces = "never" | "always" | "with-single-extends";
|
|
218
|
+
type AllowObjectTypes = "never" | "always";
|
|
219
|
+
type AllowInGenericTypeArguments = boolean | string[];
|
|
220
|
+
type ChecksVoidReturn = boolean | ChecksVoidReturnOptions;
|
|
221
|
+
/**
|
|
222
|
+
* Represents the different ways a ban config can be specified in JSON.
|
|
223
|
+
* Can be:
|
|
224
|
+
* - `true` - ban with default message
|
|
225
|
+
* - A string - ban with custom message
|
|
226
|
+
* - An object with `message` and optional `fixWith` and `suggest`
|
|
227
|
+
*/
|
|
228
|
+
type BanConfigValue = True | string | {
|
|
229
|
+
/**
|
|
230
|
+
* Replacement type for automatic fixing. Applied directly with `--fix`.
|
|
231
|
+
*/
|
|
232
|
+
fixWith?: string;
|
|
233
|
+
/**
|
|
234
|
+
* Custom message explaining why the type is banned.
|
|
235
|
+
*/
|
|
236
|
+
message?: string;
|
|
237
|
+
/**
|
|
238
|
+
* Suggested replacement types for manual review. Shown as editor suggestions.
|
|
239
|
+
*/
|
|
240
|
+
suggest?: string[];
|
|
241
|
+
};
|
|
242
|
+
type True = true;
|
|
243
|
+
/**
|
|
244
|
+
* Represents the different ways `allowConstantLoopConditions` can be specified in JSON.
|
|
245
|
+
* Can be:
|
|
246
|
+
* - `true` or `false`
|
|
247
|
+
* - A string enum (`"never"`, `"always"`, `"only-allowed-literals"`)
|
|
248
|
+
*/
|
|
249
|
+
type AllowConstantLoopConditions = boolean | AllowConstantLoopConditionsMode;
|
|
250
|
+
type AllowConstantLoopConditionsMode = "never" | "always" | "only-allowed-literals";
|
|
251
|
+
type Modifier = "private" | "private readonly" | "protected" | "protected readonly" | "public" | "public readonly" | "readonly";
|
|
252
|
+
type Prefer2 = "class-property" | "parameter-property";
|
|
253
|
+
/**
|
|
254
|
+
* Represents the different ways `ignorePrimitives` can be specified in JSON.
|
|
255
|
+
* Can be:
|
|
256
|
+
* - `true` - ignore all primitive types
|
|
257
|
+
* - An object specifying which primitives to ignore
|
|
258
|
+
*/
|
|
259
|
+
type IgnorePrimitives = boolean | IgnorePrimitivesOptions;
|
|
260
|
+
type AllowSingleElementEquality = "always" | "never";
|
|
186
261
|
type ReturnAwaitOption = "in-try-catch" | "always" | "error-handling-correctness-only" | "never";
|
|
262
|
+
type PathOption = "always" | "never";
|
|
263
|
+
type TypesOption = "always" | "never" | "prefer-import";
|
|
187
264
|
type BomOptionType = "always" | "never";
|
|
265
|
+
type NonZero = "greater-than" | "not-equal";
|
|
266
|
+
type ModuleStylesOverride = false | {
|
|
267
|
+
/**
|
|
268
|
+
* Whether default imports or whole-module `require()` assignments are allowed for this module.
|
|
269
|
+
*
|
|
270
|
+
* With `{ "styles": { "chalk": { "default": true } } }`, this is valid:
|
|
271
|
+
* ```js
|
|
272
|
+
* import chalk from "chalk";
|
|
273
|
+
* ```
|
|
274
|
+
*/
|
|
275
|
+
default?: boolean;
|
|
276
|
+
/**
|
|
277
|
+
* Whether named imports or destructured `require()` calls are allowed for this module.
|
|
278
|
+
*
|
|
279
|
+
* With `{ "styles": { "node:util": { "named": true } } }`, this is valid:
|
|
280
|
+
* ```js
|
|
281
|
+
* import {promisify} from "node:util";
|
|
282
|
+
* ```
|
|
283
|
+
*/
|
|
284
|
+
named?: boolean;
|
|
285
|
+
/**
|
|
286
|
+
* Whether namespace imports or whole-module `require()` assignments are allowed for this module.
|
|
287
|
+
*
|
|
288
|
+
* With `{ "styles": { "node:fs": { "namespace": true } } }`, this is valid:
|
|
289
|
+
* ```js
|
|
290
|
+
* import * as fs from "node:fs";
|
|
291
|
+
* ```
|
|
292
|
+
*/
|
|
293
|
+
namespace?: boolean;
|
|
294
|
+
/**
|
|
295
|
+
* Whether side-effect imports or unassigned dynamic imports/requires are allowed for this module.
|
|
296
|
+
*
|
|
297
|
+
* With `{ "styles": { "polyfill": { "unassigned": true } } }`, this is valid:
|
|
298
|
+
* ```js
|
|
299
|
+
* import "polyfill";
|
|
300
|
+
* ```
|
|
301
|
+
*/
|
|
302
|
+
unassigned?: boolean;
|
|
303
|
+
};
|
|
304
|
+
type NoInstanceofBuiltinsStrategy = "strict" | "loose";
|
|
188
305
|
type PreferTernaryOption = "always" | "only-single-line";
|
|
189
306
|
type RelativeUrlStyleConfig = "never" | "always";
|
|
190
307
|
type SwitchCaseBracesConfig = "always" | "avoid";
|
|
308
|
+
type MemberNames = "for" | "each";
|
|
309
|
+
type VitestFnName = "vi" | "vitest";
|
|
191
310
|
type CaseType = "PascalCase" | "kebab-case";
|
|
192
311
|
type DeclarationStyle = "type-based" | "type-literal" | "runtime";
|
|
193
312
|
type DeclarationStyle2 = "type-based" | "runtime";
|
|
313
|
+
type Destructure = "only-when-assigned" | "always" | "never";
|
|
194
314
|
type NextTickOption = "promise" | "callback";
|
|
195
315
|
type CaseType2 = "camelCase" | "snake_case";
|
|
196
316
|
type AllowYoda = "never" | "always";
|
|
@@ -647,86 +767,86 @@ interface OxlintOverride {
|
|
|
647
767
|
* See [Oxlint Rules](https://oxc.rs/docs/guide/usage/linter/rules.html)
|
|
648
768
|
*/
|
|
649
769
|
interface DummyRuleMap {
|
|
650
|
-
"accessor-pairs"?:
|
|
651
|
-
"array-callback-return"?:
|
|
652
|
-
"arrow-body-style"?:
|
|
770
|
+
"accessor-pairs"?: RuleNoConfig | [AllowWarnDeny, AccessorPairsConfig];
|
|
771
|
+
"array-callback-return"?: RuleNoConfig | [AllowWarnDeny, ArrayCallbackReturn];
|
|
772
|
+
"arrow-body-style"?: RuleNoConfig | [AllowWarnDeny, Mode2] | [AllowWarnDeny, Mode2, ArrowBodyStyleConfig];
|
|
653
773
|
"block-scoped-var"?: RuleNoConfig;
|
|
654
|
-
"capitalized-comments"?:
|
|
655
|
-
"class-methods-use-this"?:
|
|
656
|
-
complexity?:
|
|
774
|
+
"capitalized-comments"?: RuleNoConfig | [AllowWarnDeny, AlwaysNever] | [AllowWarnDeny, AlwaysNever, OptionsJsonEnum];
|
|
775
|
+
"class-methods-use-this"?: RuleNoConfig | [AllowWarnDeny, ClassMethodsUseThisConfig];
|
|
776
|
+
complexity?: RuleNoConfig | [AllowWarnDeny, number | ComplexityConfig];
|
|
657
777
|
"constructor-super"?: RuleNoConfig;
|
|
658
|
-
curly?:
|
|
659
|
-
"default-case"?:
|
|
778
|
+
curly?: RuleNoConfig | [AllowWarnDeny, CurlyType] | [AllowWarnDeny, CurlyType, CurlyConsistent];
|
|
779
|
+
"default-case"?: RuleNoConfig | [AllowWarnDeny, DefaultCaseConfig];
|
|
660
780
|
"default-case-last"?: RuleNoConfig;
|
|
661
781
|
"default-param-last"?: RuleNoConfig;
|
|
662
|
-
eqeqeq?:
|
|
782
|
+
eqeqeq?: RuleNoConfig | [AllowWarnDeny, CompareType] | [AllowWarnDeny, CompareType, EqeqeqOptions];
|
|
663
783
|
"for-direction"?: RuleNoConfig;
|
|
664
784
|
"func-name-matching"?: DummyRule;
|
|
665
|
-
"func-names"?:
|
|
666
|
-
"func-style"?:
|
|
667
|
-
"getter-return"?:
|
|
668
|
-
"grouped-accessor-pairs"?:
|
|
785
|
+
"func-names"?: RuleNoConfig | [AllowWarnDeny, FuncNamesConfigType] | [AllowWarnDeny, FuncNamesConfigType, FuncNamesGeneratorsConfig];
|
|
786
|
+
"func-style"?: RuleNoConfig | [AllowWarnDeny, Style] | [AllowWarnDeny, Style, FuncStyleConfig];
|
|
787
|
+
"getter-return"?: RuleNoConfig | [AllowWarnDeny, GetterReturn];
|
|
788
|
+
"grouped-accessor-pairs"?: RuleNoConfig | [AllowWarnDeny, PairOrder] | [AllowWarnDeny, PairOrder, GroupedAccessorPairsConfig];
|
|
669
789
|
"guard-for-in"?: RuleNoConfig;
|
|
670
|
-
"id-length"?:
|
|
671
|
-
"id-match"?:
|
|
672
|
-
"import/consistent-type-specifier-style"?:
|
|
790
|
+
"id-length"?: RuleNoConfig | [AllowWarnDeny, IdLengthConfig];
|
|
791
|
+
"id-match"?: RuleNoConfig | [AllowWarnDeny, string] | [AllowWarnDeny, string, IdMatchOptions];
|
|
792
|
+
"import/consistent-type-specifier-style"?: RuleNoConfig | [AllowWarnDeny, Mode];
|
|
673
793
|
"import/default"?: RuleNoConfig;
|
|
674
794
|
"import/export"?: RuleNoConfig;
|
|
675
795
|
"import/exports-last"?: RuleNoConfig;
|
|
676
796
|
"import/extensions"?: DummyRule;
|
|
677
|
-
"import/first"?:
|
|
797
|
+
"import/first"?: RuleNoConfig | [AllowWarnDeny, AbsoluteFirst];
|
|
678
798
|
"import/group-exports"?: RuleNoConfig;
|
|
679
|
-
"import/max-dependencies"?:
|
|
799
|
+
"import/max-dependencies"?: RuleNoConfig | [AllowWarnDeny, MaxDependenciesConfigJson];
|
|
680
800
|
"import/named"?: RuleNoConfig;
|
|
681
|
-
"import/namespace"?:
|
|
682
|
-
"import/newline-after-import"?:
|
|
683
|
-
"import/no-absolute-path"?:
|
|
801
|
+
"import/namespace"?: RuleNoConfig | [AllowWarnDeny, Namespace];
|
|
802
|
+
"import/newline-after-import"?: RuleNoConfig | [AllowWarnDeny, NewlineAfterImport];
|
|
803
|
+
"import/no-absolute-path"?: RuleNoConfig | [AllowWarnDeny, NoAbsolutePath];
|
|
684
804
|
"import/no-amd"?: RuleNoConfig;
|
|
685
|
-
"import/no-anonymous-default-export"?:
|
|
686
|
-
"import/no-commonjs"?:
|
|
687
|
-
"import/no-cycle"?:
|
|
805
|
+
"import/no-anonymous-default-export"?: RuleNoConfig | [AllowWarnDeny, NoAnonymousDefaultExport];
|
|
806
|
+
"import/no-commonjs"?: RuleNoConfig | [AllowWarnDeny, NoCommonjs];
|
|
807
|
+
"import/no-cycle"?: RuleNoConfig | [AllowWarnDeny, NoCycle];
|
|
688
808
|
"import/no-default-export"?: RuleNoConfig;
|
|
689
|
-
"import/no-duplicates"?:
|
|
690
|
-
"import/no-dynamic-require"?:
|
|
809
|
+
"import/no-duplicates"?: RuleNoConfig | [AllowWarnDeny, NoDuplicates];
|
|
810
|
+
"import/no-dynamic-require"?: RuleNoConfig | [AllowWarnDeny, NoDynamicRequire];
|
|
691
811
|
"import/no-empty-named-blocks"?: RuleNoConfig;
|
|
692
812
|
"import/no-mutable-exports"?: RuleNoConfig;
|
|
693
813
|
"import/no-named-as-default"?: RuleNoConfig;
|
|
694
814
|
"import/no-named-as-default-member"?: RuleNoConfig;
|
|
695
815
|
"import/no-named-default"?: RuleNoConfig;
|
|
696
816
|
"import/no-named-export"?: RuleNoConfig;
|
|
697
|
-
"import/no-namespace"?:
|
|
698
|
-
"import/no-nodejs-modules"?:
|
|
817
|
+
"import/no-namespace"?: RuleNoConfig | [AllowWarnDeny, NoNamespaceConfig];
|
|
818
|
+
"import/no-nodejs-modules"?: RuleNoConfig | [AllowWarnDeny, NoNodejsModulesConfig];
|
|
699
819
|
"import/no-relative-parent-imports"?: RuleNoConfig;
|
|
700
820
|
"import/no-self-import"?: RuleNoConfig;
|
|
701
|
-
"import/no-unassigned-import"?:
|
|
821
|
+
"import/no-unassigned-import"?: RuleNoConfig | [AllowWarnDeny, NoUnassignedImportConfig];
|
|
702
822
|
"import/no-webpack-loader-syntax"?: RuleNoConfig;
|
|
703
|
-
"import/prefer-default-export"?:
|
|
823
|
+
"import/prefer-default-export"?: RuleNoConfig | [AllowWarnDeny, PreferDefaultExport];
|
|
704
824
|
"import/unambiguous"?: RuleNoConfig;
|
|
705
|
-
"init-declarations"?:
|
|
706
|
-
"jest/consistent-test-it"?:
|
|
707
|
-
"jest/expect-expect"?:
|
|
708
|
-
"jest/max-expects"?:
|
|
709
|
-
"jest/max-nested-describe"?:
|
|
825
|
+
"init-declarations"?: RuleNoConfig | [AllowWarnDeny, AlwaysNever] | [AllowWarnDeny, AlwaysNever, InitDeclarationsConfig];
|
|
826
|
+
"jest/consistent-test-it"?: RuleNoConfig | [AllowWarnDeny, ConsistentTestItConfig];
|
|
827
|
+
"jest/expect-expect"?: RuleNoConfig | [AllowWarnDeny, ExpectExpectConfig];
|
|
828
|
+
"jest/max-expects"?: RuleNoConfig | [AllowWarnDeny, MaxExpectsConfig];
|
|
829
|
+
"jest/max-nested-describe"?: RuleNoConfig | [AllowWarnDeny, MaxNestedDescribeConfig];
|
|
710
830
|
"jest/no-alias-methods"?: RuleNoConfig;
|
|
711
831
|
"jest/no-commented-out-tests"?: RuleNoConfig;
|
|
712
832
|
"jest/no-conditional-expect"?: RuleNoConfig;
|
|
713
833
|
"jest/no-conditional-in-test"?: RuleNoConfig;
|
|
714
834
|
"jest/no-confusing-set-timeout"?: RuleNoConfig;
|
|
715
|
-
"jest/no-deprecated-functions"?:
|
|
835
|
+
"jest/no-deprecated-functions"?: RuleNoConfig | [AllowWarnDeny, NoDeprecatedFunctionsConfig];
|
|
716
836
|
"jest/no-disabled-tests"?: RuleNoConfig;
|
|
717
837
|
"jest/no-done-callback"?: RuleNoConfig;
|
|
718
838
|
"jest/no-duplicate-hooks"?: RuleNoConfig;
|
|
719
839
|
"jest/no-export"?: RuleNoConfig;
|
|
720
840
|
"jest/no-focused-tests"?: RuleNoConfig;
|
|
721
|
-
"jest/no-hooks"?:
|
|
841
|
+
"jest/no-hooks"?: RuleNoConfig | [AllowWarnDeny, NoHooksConfig];
|
|
722
842
|
"jest/no-identical-title"?: RuleNoConfig;
|
|
723
843
|
"jest/no-interpolation-in-snapshots"?: RuleNoConfig;
|
|
724
844
|
"jest/no-jasmine-globals"?: RuleNoConfig;
|
|
725
|
-
"jest/no-large-snapshots"?:
|
|
845
|
+
"jest/no-large-snapshots"?: RuleNoConfig | [AllowWarnDeny, NoLargeSnapshotsConfig];
|
|
726
846
|
"jest/no-mocks-import"?: RuleNoConfig;
|
|
727
|
-
"jest/no-restricted-jest-methods"?:
|
|
728
|
-
"jest/no-restricted-matchers"?:
|
|
729
|
-
"jest/no-standalone-expect"?:
|
|
847
|
+
"jest/no-restricted-jest-methods"?: RuleNoConfig | [AllowWarnDeny, NoRestrictedTestMethodsConfig];
|
|
848
|
+
"jest/no-restricted-matchers"?: RuleNoConfig | [AllowWarnDeny, NoRestrictedMatchersConfig];
|
|
849
|
+
"jest/no-standalone-expect"?: RuleNoConfig | [AllowWarnDeny, NoStandaloneExpectConfig];
|
|
730
850
|
"jest/no-test-prefixes"?: RuleNoConfig;
|
|
731
851
|
"jest/no-test-return-statement"?: RuleNoConfig;
|
|
732
852
|
"jest/no-unneeded-async-expect-function"?: RuleNoConfig;
|
|
@@ -736,18 +856,18 @@ interface DummyRuleMap {
|
|
|
736
856
|
"jest/prefer-called-with"?: RuleNoConfig;
|
|
737
857
|
"jest/prefer-comparison-matcher"?: RuleNoConfig;
|
|
738
858
|
"jest/prefer-each"?: RuleNoConfig;
|
|
739
|
-
"jest/prefer-ending-with-an-expect"?:
|
|
859
|
+
"jest/prefer-ending-with-an-expect"?: RuleNoConfig | [AllowWarnDeny, PreferEndingWithAnExpectConfig];
|
|
740
860
|
"jest/prefer-equality-matcher"?: RuleNoConfig;
|
|
741
|
-
"jest/prefer-expect-assertions"?:
|
|
861
|
+
"jest/prefer-expect-assertions"?: RuleNoConfig | [AllowWarnDeny, PreferExpectAssertionsConfig];
|
|
742
862
|
"jest/prefer-expect-resolves"?: RuleNoConfig;
|
|
743
863
|
"jest/prefer-hooks-in-order"?: RuleNoConfig;
|
|
744
864
|
"jest/prefer-hooks-on-top"?: RuleNoConfig;
|
|
745
|
-
"jest/prefer-importing-jest-globals"?:
|
|
865
|
+
"jest/prefer-importing-jest-globals"?: RuleNoConfig | [AllowWarnDeny, PreferImportingJestGlobalsConfig];
|
|
746
866
|
"jest/prefer-jest-mocked"?: RuleNoConfig;
|
|
747
867
|
"jest/prefer-lowercase-title"?: DummyRule;
|
|
748
868
|
"jest/prefer-mock-promise-shorthand"?: RuleNoConfig;
|
|
749
869
|
"jest/prefer-mock-return-shorthand"?: RuleNoConfig;
|
|
750
|
-
"jest/prefer-snapshot-hint"?:
|
|
870
|
+
"jest/prefer-snapshot-hint"?: RuleNoConfig | [AllowWarnDeny, SnapshotHintMode];
|
|
751
871
|
"jest/prefer-spy-on"?: RuleNoConfig;
|
|
752
872
|
"jest/prefer-strict-equal"?: RuleNoConfig;
|
|
753
873
|
"jest/prefer-to-be"?: RuleNoConfig;
|
|
@@ -756,19 +876,19 @@ interface DummyRuleMap {
|
|
|
756
876
|
"jest/prefer-to-have-been-called-times"?: RuleNoConfig;
|
|
757
877
|
"jest/prefer-to-have-length"?: RuleNoConfig;
|
|
758
878
|
"jest/prefer-todo"?: RuleNoConfig;
|
|
759
|
-
"jest/require-hook"?:
|
|
879
|
+
"jest/require-hook"?: RuleNoConfig | [AllowWarnDeny, RequireHookConfig];
|
|
760
880
|
"jest/require-to-throw-message"?: RuleNoConfig;
|
|
761
|
-
"jest/require-top-level-describe"?:
|
|
881
|
+
"jest/require-top-level-describe"?: RuleNoConfig | [AllowWarnDeny, RequireTopLevelDescribeConfig];
|
|
762
882
|
"jest/valid-describe-callback"?: RuleNoConfig;
|
|
763
|
-
"jest/valid-expect"?:
|
|
883
|
+
"jest/valid-expect"?: RuleNoConfig | [AllowWarnDeny, ValidExpectConfig];
|
|
764
884
|
"jest/valid-expect-in-promise"?: RuleNoConfig;
|
|
765
885
|
"jest/valid-title"?: DummyRule;
|
|
766
886
|
"jsdoc/check-access"?: RuleNoConfig;
|
|
767
887
|
"jsdoc/check-property-names"?: RuleNoConfig;
|
|
768
|
-
"jsdoc/check-tag-names"?:
|
|
769
|
-
"jsdoc/empty-tags"?:
|
|
888
|
+
"jsdoc/check-tag-names"?: RuleNoConfig | [AllowWarnDeny, CheckTagNamesConfig];
|
|
889
|
+
"jsdoc/empty-tags"?: RuleNoConfig | [AllowWarnDeny, EmptyTagsConfig];
|
|
770
890
|
"jsdoc/implements-on-classes"?: RuleNoConfig;
|
|
771
|
-
"jsdoc/no-defaults"?:
|
|
891
|
+
"jsdoc/no-defaults"?: RuleNoConfig | [AllowWarnDeny, NoDefaultsConfig];
|
|
772
892
|
"jsdoc/require-param"?: DummyRule;
|
|
773
893
|
"jsdoc/require-param-description"?: RuleNoConfig;
|
|
774
894
|
"jsdoc/require-param-name"?: RuleNoConfig;
|
|
@@ -777,59 +897,59 @@ interface DummyRuleMap {
|
|
|
777
897
|
"jsdoc/require-property-description"?: RuleNoConfig;
|
|
778
898
|
"jsdoc/require-property-name"?: RuleNoConfig;
|
|
779
899
|
"jsdoc/require-property-type"?: RuleNoConfig;
|
|
780
|
-
"jsdoc/require-returns"?:
|
|
900
|
+
"jsdoc/require-returns"?: RuleNoConfig | [AllowWarnDeny, RequireReturnsConfig];
|
|
781
901
|
"jsdoc/require-returns-description"?: RuleNoConfig;
|
|
782
902
|
"jsdoc/require-returns-type"?: RuleNoConfig;
|
|
783
903
|
"jsdoc/require-throws-description"?: RuleNoConfig;
|
|
784
904
|
"jsdoc/require-throws-type"?: RuleNoConfig;
|
|
785
|
-
"jsdoc/require-yields"?:
|
|
905
|
+
"jsdoc/require-yields"?: RuleNoConfig | [AllowWarnDeny, RequireYieldsConfig];
|
|
786
906
|
"jsdoc/require-yields-description"?: RuleNoConfig;
|
|
787
907
|
"jsdoc/require-yields-type"?: RuleNoConfig;
|
|
788
|
-
"jsx-a11y/alt-text"?:
|
|
789
|
-
"jsx-a11y/anchor-ambiguous-text"?:
|
|
908
|
+
"jsx-a11y/alt-text"?: RuleNoConfig | [AllowWarnDeny, AltTextConfigSchema];
|
|
909
|
+
"jsx-a11y/anchor-ambiguous-text"?: RuleNoConfig | [AllowWarnDeny, AnchorAmbiguousTextConfig];
|
|
790
910
|
"jsx-a11y/anchor-has-content"?: RuleNoConfig;
|
|
791
911
|
"jsx-a11y/anchor-is-valid"?: DummyRule;
|
|
792
912
|
"jsx-a11y/aria-activedescendant-has-tabindex"?: RuleNoConfig;
|
|
793
913
|
"jsx-a11y/aria-props"?: RuleNoConfig;
|
|
794
914
|
"jsx-a11y/aria-proptypes"?: RuleNoConfig;
|
|
795
|
-
"jsx-a11y/aria-role"?:
|
|
915
|
+
"jsx-a11y/aria-role"?: RuleNoConfig | [AllowWarnDeny, AriaRoleConfig];
|
|
796
916
|
"jsx-a11y/aria-unsupported-elements"?: RuleNoConfig;
|
|
797
|
-
"jsx-a11y/autocomplete-valid"?:
|
|
917
|
+
"jsx-a11y/autocomplete-valid"?: RuleNoConfig | [AllowWarnDeny, AutocompleteValidConfig];
|
|
798
918
|
"jsx-a11y/click-events-have-key-events"?: RuleNoConfig;
|
|
799
|
-
"jsx-a11y/control-has-associated-label"?:
|
|
800
|
-
"jsx-a11y/heading-has-content"?:
|
|
919
|
+
"jsx-a11y/control-has-associated-label"?: RuleNoConfig | [AllowWarnDeny, ControlHasAssociatedLabelConfig];
|
|
920
|
+
"jsx-a11y/heading-has-content"?: RuleNoConfig | [AllowWarnDeny, HeadingHasContentConfig];
|
|
801
921
|
"jsx-a11y/html-has-lang"?: RuleNoConfig;
|
|
802
922
|
"jsx-a11y/iframe-has-title"?: RuleNoConfig;
|
|
803
|
-
"jsx-a11y/img-redundant-alt"?:
|
|
804
|
-
"jsx-a11y/interactive-supports-focus"?:
|
|
805
|
-
"jsx-a11y/label-has-associated-control"?:
|
|
923
|
+
"jsx-a11y/img-redundant-alt"?: RuleNoConfig | [AllowWarnDeny, ImgRedundantAltConfig];
|
|
924
|
+
"jsx-a11y/interactive-supports-focus"?: RuleNoConfig | [AllowWarnDeny, InteractiveSupportsFocusConfig];
|
|
925
|
+
"jsx-a11y/label-has-associated-control"?: RuleNoConfig | [AllowWarnDeny, LabelHasAssociatedControlConfig];
|
|
806
926
|
"jsx-a11y/lang"?: RuleNoConfig;
|
|
807
|
-
"jsx-a11y/media-has-caption"?:
|
|
808
|
-
"jsx-a11y/mouse-events-have-key-events"?:
|
|
927
|
+
"jsx-a11y/media-has-caption"?: RuleNoConfig | [AllowWarnDeny, MediaHasCaptionConfig];
|
|
928
|
+
"jsx-a11y/mouse-events-have-key-events"?: RuleNoConfig | [AllowWarnDeny, MouseEventsHaveKeyEventsConfig];
|
|
809
929
|
"jsx-a11y/no-access-key"?: RuleNoConfig;
|
|
810
930
|
"jsx-a11y/no-aria-hidden-on-focusable"?: RuleNoConfig;
|
|
811
|
-
"jsx-a11y/no-autofocus"?:
|
|
812
|
-
"jsx-a11y/no-distracting-elements"?:
|
|
813
|
-
"jsx-a11y/no-interactive-element-to-noninteractive-role"?:
|
|
931
|
+
"jsx-a11y/no-autofocus"?: RuleNoConfig | [AllowWarnDeny, NoAutofocus];
|
|
932
|
+
"jsx-a11y/no-distracting-elements"?: RuleNoConfig | [AllowWarnDeny, NoDistractingElementsConfig];
|
|
933
|
+
"jsx-a11y/no-interactive-element-to-noninteractive-role"?: RuleNoConfig | [AllowWarnDeny, NoInteractiveElementToNoninteractiveRoleConfig];
|
|
814
934
|
"jsx-a11y/no-noninteractive-element-interactions"?: DummyRule;
|
|
815
|
-
"jsx-a11y/no-noninteractive-element-to-interactive-role"?:
|
|
816
|
-
"jsx-a11y/no-noninteractive-tabindex"?:
|
|
817
|
-
"jsx-a11y/no-redundant-roles"?: RuleNoConfig;
|
|
818
|
-
"jsx-a11y/no-static-element-interactions"?:
|
|
935
|
+
"jsx-a11y/no-noninteractive-element-to-interactive-role"?: RuleNoConfig | [AllowWarnDeny, NoNoninteractiveElementToInteractiveRoleConfig];
|
|
936
|
+
"jsx-a11y/no-noninteractive-tabindex"?: RuleNoConfig | [AllowWarnDeny, NoNoninteractiveTabindexConfig];
|
|
937
|
+
"jsx-a11y/no-redundant-roles"?: RuleNoConfig | [AllowWarnDeny, NoRedundantRolesConfig];
|
|
938
|
+
"jsx-a11y/no-static-element-interactions"?: RuleNoConfig | [AllowWarnDeny, NoStaticElementInteractionsConfig];
|
|
819
939
|
"jsx-a11y/prefer-tag-over-role"?: RuleNoConfig;
|
|
820
940
|
"jsx-a11y/role-has-required-aria-props"?: RuleNoConfig;
|
|
821
941
|
"jsx-a11y/role-supports-aria-props"?: RuleNoConfig;
|
|
822
942
|
"jsx-a11y/scope"?: RuleNoConfig;
|
|
823
943
|
"jsx-a11y/tabindex-no-positive"?: RuleNoConfig;
|
|
824
|
-
"logical-assignment-operators"?:
|
|
825
|
-
"max-classes-per-file"?:
|
|
826
|
-
"max-depth"?:
|
|
827
|
-
"max-lines"?:
|
|
828
|
-
"max-lines-per-function"?:
|
|
829
|
-
"max-nested-callbacks"?:
|
|
830
|
-
"max-params"?:
|
|
831
|
-
"max-statements"?:
|
|
832
|
-
"new-cap"?:
|
|
944
|
+
"logical-assignment-operators"?: RuleNoConfig | [AllowWarnDeny, AlwaysNever] | [AllowWarnDeny, AlwaysNever, LogicalAssignmentOperatorsConfig];
|
|
945
|
+
"max-classes-per-file"?: RuleNoConfig | [AllowWarnDeny, number | MaxClassesPerFileConfig];
|
|
946
|
+
"max-depth"?: RuleNoConfig | [AllowWarnDeny, number | MaxDepth];
|
|
947
|
+
"max-lines"?: RuleNoConfig | [AllowWarnDeny, number | MaxLinesConfig];
|
|
948
|
+
"max-lines-per-function"?: RuleNoConfig | [AllowWarnDeny, number | MaxLinesPerFunctionConfig];
|
|
949
|
+
"max-nested-callbacks"?: RuleNoConfig | [AllowWarnDeny, number | MaxNestedCallbacks];
|
|
950
|
+
"max-params"?: RuleNoConfig | [AllowWarnDeny, number | MaxParamsConfig];
|
|
951
|
+
"max-statements"?: RuleNoConfig | [AllowWarnDeny, number | MaxStatementsConfig];
|
|
952
|
+
"new-cap"?: RuleNoConfig | [AllowWarnDeny, NewCapConfig];
|
|
833
953
|
"nextjs/google-font-display"?: RuleNoConfig;
|
|
834
954
|
"nextjs/google-font-preconnect"?: RuleNoConfig;
|
|
835
955
|
"nextjs/inline-script-id"?: RuleNoConfig;
|
|
@@ -855,16 +975,16 @@ interface DummyRuleMap {
|
|
|
855
975
|
"no-array-constructor"?: RuleNoConfig;
|
|
856
976
|
"no-async-promise-executor"?: RuleNoConfig;
|
|
857
977
|
"no-await-in-loop"?: RuleNoConfig;
|
|
858
|
-
"no-bitwise"?:
|
|
978
|
+
"no-bitwise"?: RuleNoConfig | [AllowWarnDeny, NoBitwiseConfig];
|
|
859
979
|
"no-caller"?: RuleNoConfig;
|
|
860
980
|
"no-case-declarations"?: RuleNoConfig;
|
|
861
981
|
"no-class-assign"?: RuleNoConfig;
|
|
862
982
|
"no-compare-neg-zero"?: RuleNoConfig;
|
|
863
|
-
"no-cond-assign"?:
|
|
864
|
-
"no-console"?:
|
|
983
|
+
"no-cond-assign"?: RuleNoConfig | [AllowWarnDeny, NoCondAssignConfig];
|
|
984
|
+
"no-console"?: RuleNoConfig | [AllowWarnDeny, NoConsoleConfig];
|
|
865
985
|
"no-const-assign"?: RuleNoConfig;
|
|
866
986
|
"no-constant-binary-expression"?: RuleNoConfig;
|
|
867
|
-
"no-constant-condition"?:
|
|
987
|
+
"no-constant-condition"?: RuleNoConfig | [AllowWarnDeny, NoConstantCondition];
|
|
868
988
|
"no-constructor-return"?: RuleNoConfig;
|
|
869
989
|
"no-continue"?: RuleNoConfig;
|
|
870
990
|
"no-control-regex"?: RuleNoConfig;
|
|
@@ -875,41 +995,41 @@ interface DummyRuleMap {
|
|
|
875
995
|
"no-dupe-else-if"?: RuleNoConfig;
|
|
876
996
|
"no-dupe-keys"?: RuleNoConfig;
|
|
877
997
|
"no-duplicate-case"?: RuleNoConfig;
|
|
878
|
-
"no-duplicate-imports"?:
|
|
879
|
-
"no-else-return"?:
|
|
880
|
-
"no-empty"?:
|
|
998
|
+
"no-duplicate-imports"?: RuleNoConfig | [AllowWarnDeny, NoDuplicateImports];
|
|
999
|
+
"no-else-return"?: RuleNoConfig | [AllowWarnDeny, NoElseReturn];
|
|
1000
|
+
"no-empty"?: RuleNoConfig | [AllowWarnDeny, NoEmpty];
|
|
881
1001
|
"no-empty-character-class"?: RuleNoConfig;
|
|
882
|
-
"no-empty-function"?:
|
|
883
|
-
"no-empty-pattern"?:
|
|
1002
|
+
"no-empty-function"?: RuleNoConfig | [AllowWarnDeny, NoEmptyFunctionConfig];
|
|
1003
|
+
"no-empty-pattern"?: RuleNoConfig | [AllowWarnDeny, NoEmptyPattern];
|
|
884
1004
|
"no-empty-static-block"?: RuleNoConfig;
|
|
885
1005
|
"no-eq-null"?: RuleNoConfig;
|
|
886
|
-
"no-eval"?:
|
|
1006
|
+
"no-eval"?: RuleNoConfig | [AllowWarnDeny, NoEval];
|
|
887
1007
|
"no-ex-assign"?: RuleNoConfig;
|
|
888
|
-
"no-extend-native"?:
|
|
1008
|
+
"no-extend-native"?: RuleNoConfig | [AllowWarnDeny, NoExtendNativeConfig];
|
|
889
1009
|
"no-extra-bind"?: RuleNoConfig;
|
|
890
|
-
"no-extra-boolean-cast"?:
|
|
1010
|
+
"no-extra-boolean-cast"?: RuleNoConfig | [AllowWarnDeny, NoExtraBooleanCast];
|
|
891
1011
|
"no-extra-label"?: RuleNoConfig;
|
|
892
|
-
"no-fallthrough"?:
|
|
1012
|
+
"no-fallthrough"?: RuleNoConfig | [AllowWarnDeny, NoFallthroughConfig];
|
|
893
1013
|
"no-func-assign"?: RuleNoConfig;
|
|
894
|
-
"no-global-assign"?:
|
|
895
|
-
"no-implicit-coercion"?:
|
|
896
|
-
"no-implicit-globals"?:
|
|
1014
|
+
"no-global-assign"?: RuleNoConfig | [AllowWarnDeny, NoGlobalAssignConfig];
|
|
1015
|
+
"no-implicit-coercion"?: RuleNoConfig | [AllowWarnDeny, NoImplicitCoercionConfig];
|
|
1016
|
+
"no-implicit-globals"?: RuleNoConfig | [AllowWarnDeny, NoImplicitGlobalsConfig];
|
|
897
1017
|
"no-implied-eval"?: RuleNoConfig;
|
|
898
1018
|
"no-import-assign"?: RuleNoConfig;
|
|
899
|
-
"no-inline-comments"?:
|
|
900
|
-
"no-inner-declarations"?:
|
|
901
|
-
"no-invalid-regexp"?:
|
|
902
|
-
"no-irregular-whitespace"?:
|
|
1019
|
+
"no-inline-comments"?: RuleNoConfig | [AllowWarnDeny, NoInlineCommentsConfig];
|
|
1020
|
+
"no-inner-declarations"?: RuleNoConfig | [AllowWarnDeny, NoInnerDeclarationsConfig] | [AllowWarnDeny, NoInnerDeclarationsConfig, NoInnerDeclarationsOptions];
|
|
1021
|
+
"no-invalid-regexp"?: RuleNoConfig | [AllowWarnDeny, NoInvalidRegexpConfig];
|
|
1022
|
+
"no-irregular-whitespace"?: RuleNoConfig | [AllowWarnDeny, NoIrregularWhitespaceConfig];
|
|
903
1023
|
"no-iterator"?: RuleNoConfig;
|
|
904
1024
|
"no-label-var"?: RuleNoConfig;
|
|
905
|
-
"no-labels"?:
|
|
1025
|
+
"no-labels"?: RuleNoConfig | [AllowWarnDeny, NoLabels];
|
|
906
1026
|
"no-lone-blocks"?: RuleNoConfig;
|
|
907
1027
|
"no-lonely-if"?: RuleNoConfig;
|
|
908
1028
|
"no-loop-func"?: RuleNoConfig;
|
|
909
1029
|
"no-loss-of-precision"?: RuleNoConfig;
|
|
910
|
-
"no-magic-numbers"?:
|
|
911
|
-
"no-misleading-character-class"?:
|
|
912
|
-
"no-multi-assign"?:
|
|
1030
|
+
"no-magic-numbers"?: RuleNoConfig | [AllowWarnDeny, NoMagicNumbersConfig];
|
|
1031
|
+
"no-misleading-character-class"?: RuleNoConfig | [AllowWarnDeny, NoMisleadingCharacterClass];
|
|
1032
|
+
"no-multi-assign"?: RuleNoConfig | [AllowWarnDeny, NoMultiAssign];
|
|
913
1033
|
"no-multi-str"?: RuleNoConfig;
|
|
914
1034
|
"no-negated-condition"?: RuleNoConfig;
|
|
915
1035
|
"no-nested-ternary"?: RuleNoConfig;
|
|
@@ -920,69 +1040,69 @@ interface DummyRuleMap {
|
|
|
920
1040
|
"no-nonoctal-decimal-escape"?: RuleNoConfig;
|
|
921
1041
|
"no-obj-calls"?: RuleNoConfig;
|
|
922
1042
|
"no-object-constructor"?: RuleNoConfig;
|
|
923
|
-
"no-param-reassign"?:
|
|
924
|
-
"no-plusplus"?:
|
|
925
|
-
"no-promise-executor-return"?:
|
|
1043
|
+
"no-param-reassign"?: RuleNoConfig | [AllowWarnDeny, NoParamReassignConfig];
|
|
1044
|
+
"no-plusplus"?: RuleNoConfig | [AllowWarnDeny, NoPlusplus];
|
|
1045
|
+
"no-promise-executor-return"?: RuleNoConfig | [AllowWarnDeny, NoPromiseExecutorReturnConfig];
|
|
926
1046
|
"no-proto"?: RuleNoConfig;
|
|
927
1047
|
"no-prototype-builtins"?: RuleNoConfig;
|
|
928
|
-
"no-redeclare"?:
|
|
1048
|
+
"no-redeclare"?: RuleNoConfig | [AllowWarnDeny, NoRedeclare];
|
|
929
1049
|
"no-regex-spaces"?: RuleNoConfig;
|
|
930
|
-
"no-restricted-exports"?:
|
|
1050
|
+
"no-restricted-exports"?: RuleNoConfig | [AllowWarnDeny, NoRestrictedExportsConfig];
|
|
931
1051
|
"no-restricted-globals"?: DummyRule;
|
|
932
1052
|
"no-restricted-imports"?: DummyRule;
|
|
933
1053
|
"no-restricted-properties"?: DummyRule;
|
|
934
|
-
"no-return-assign"?:
|
|
1054
|
+
"no-return-assign"?: RuleNoConfig | [AllowWarnDeny, NoReturnAssignMode];
|
|
935
1055
|
"no-script-url"?: RuleNoConfig;
|
|
936
|
-
"no-self-assign"?:
|
|
1056
|
+
"no-self-assign"?: RuleNoConfig | [AllowWarnDeny, NoSelfAssign];
|
|
937
1057
|
"no-self-compare"?: RuleNoConfig;
|
|
938
|
-
"no-sequences"?:
|
|
1058
|
+
"no-sequences"?: RuleNoConfig | [AllowWarnDeny, NoSequences];
|
|
939
1059
|
"no-setter-return"?: RuleNoConfig;
|
|
940
|
-
"no-shadow"?:
|
|
941
|
-
"no-shadow-restricted-names"?:
|
|
1060
|
+
"no-shadow"?: RuleNoConfig | [AllowWarnDeny, NoShadowConfig];
|
|
1061
|
+
"no-shadow-restricted-names"?: RuleNoConfig | [AllowWarnDeny, NoShadowRestrictedNamesConfig];
|
|
942
1062
|
"no-sparse-arrays"?: RuleNoConfig;
|
|
943
1063
|
"no-template-curly-in-string"?: RuleNoConfig;
|
|
944
1064
|
"no-ternary"?: RuleNoConfig;
|
|
945
1065
|
"no-this-before-super"?: RuleNoConfig;
|
|
946
1066
|
"no-throw-literal"?: RuleNoConfig;
|
|
947
1067
|
"no-unassigned-vars"?: RuleNoConfig;
|
|
948
|
-
"no-undef"?:
|
|
1068
|
+
"no-undef"?: RuleNoConfig | [AllowWarnDeny, NoUndef];
|
|
949
1069
|
"no-undefined"?: RuleNoConfig;
|
|
950
|
-
"no-underscore-dangle"?:
|
|
1070
|
+
"no-underscore-dangle"?: RuleNoConfig | [AllowWarnDeny, NoUnderscoreDangleConfig];
|
|
951
1071
|
"no-unexpected-multiline"?: RuleNoConfig;
|
|
952
1072
|
"no-unmodified-loop-condition"?: RuleNoConfig;
|
|
953
|
-
"no-unneeded-ternary"?:
|
|
1073
|
+
"no-unneeded-ternary"?: RuleNoConfig | [AllowWarnDeny, NoUnneededTernary];
|
|
954
1074
|
"no-unreachable"?: RuleNoConfig;
|
|
955
1075
|
"no-unsafe-finally"?: RuleNoConfig;
|
|
956
|
-
"no-unsafe-negation"?:
|
|
957
|
-
"no-unsafe-optional-chaining"?:
|
|
958
|
-
"no-unused-expressions"?:
|
|
1076
|
+
"no-unsafe-negation"?: RuleNoConfig | [AllowWarnDeny, NoUnsafeNegation];
|
|
1077
|
+
"no-unsafe-optional-chaining"?: RuleNoConfig | [AllowWarnDeny, NoUnsafeOptionalChaining];
|
|
1078
|
+
"no-unused-expressions"?: RuleNoConfig | [AllowWarnDeny, NoUnusedExpressionsConfig];
|
|
959
1079
|
"no-unused-labels"?: RuleNoConfig;
|
|
960
1080
|
"no-unused-private-class-members"?: RuleNoConfig;
|
|
961
|
-
"no-unused-vars"?:
|
|
962
|
-
"no-use-before-define"?:
|
|
1081
|
+
"no-unused-vars"?: RuleNoConfig | [AllowWarnDeny, NoUnusedVarsConfig];
|
|
1082
|
+
"no-use-before-define"?: RuleNoConfig | [AllowWarnDeny, NoUseBeforeDefineConfigJson];
|
|
963
1083
|
"no-useless-assignment"?: RuleNoConfig;
|
|
964
1084
|
"no-useless-backreference"?: RuleNoConfig;
|
|
965
1085
|
"no-useless-call"?: RuleNoConfig;
|
|
966
1086
|
"no-useless-catch"?: RuleNoConfig;
|
|
967
|
-
"no-useless-computed-key"?:
|
|
1087
|
+
"no-useless-computed-key"?: RuleNoConfig | [AllowWarnDeny, NoUselessComputedKey];
|
|
968
1088
|
"no-useless-concat"?: RuleNoConfig;
|
|
969
1089
|
"no-useless-constructor"?: RuleNoConfig;
|
|
970
|
-
"no-useless-escape"?:
|
|
971
|
-
"no-useless-rename"?:
|
|
1090
|
+
"no-useless-escape"?: RuleNoConfig | [AllowWarnDeny, NoUselessEscapeConfig];
|
|
1091
|
+
"no-useless-rename"?: RuleNoConfig | [AllowWarnDeny, NoUselessRenameConfig];
|
|
972
1092
|
"no-useless-return"?: RuleNoConfig;
|
|
973
1093
|
"no-var"?: RuleNoConfig;
|
|
974
|
-
"no-void"?:
|
|
975
|
-
"no-warning-comments"?:
|
|
1094
|
+
"no-void"?: RuleNoConfig | [AllowWarnDeny, NoVoid];
|
|
1095
|
+
"no-warning-comments"?: RuleNoConfig | [AllowWarnDeny, NoWarningCommentsConfigJson];
|
|
976
1096
|
"no-with"?: RuleNoConfig;
|
|
977
1097
|
"node/callback-return"?: DummyRule;
|
|
978
1098
|
"node/global-require"?: RuleNoConfig;
|
|
979
|
-
"node/handle-callback-err"?:
|
|
1099
|
+
"node/handle-callback-err"?: RuleNoConfig | [AllowWarnDeny, HandleCallbackErrConfig];
|
|
980
1100
|
"node/no-exports-assign"?: RuleNoConfig;
|
|
981
1101
|
"node/no-new-require"?: RuleNoConfig;
|
|
982
1102
|
"node/no-path-concat"?: RuleNoConfig;
|
|
983
|
-
"node/no-process-env"?:
|
|
984
|
-
"object-shorthand"?:
|
|
985
|
-
"operator-assignment"?:
|
|
1103
|
+
"node/no-process-env"?: RuleNoConfig | [AllowWarnDeny, NoProcessEnvConfig];
|
|
1104
|
+
"object-shorthand"?: RuleNoConfig | [AllowWarnDeny, ShorthandType] | [AllowWarnDeny, ShorthandType, ObjectShorthandOptions];
|
|
1105
|
+
"operator-assignment"?: RuleNoConfig | [AllowWarnDeny, AlwaysNever];
|
|
986
1106
|
"oxc/approx-constant"?: RuleNoConfig;
|
|
987
1107
|
"oxc/bad-array-method-on-arguments"?: RuleNoConfig;
|
|
988
1108
|
"oxc/bad-bitwise-operator"?: RuleNoConfig;
|
|
@@ -999,177 +1119,179 @@ interface DummyRuleMap {
|
|
|
999
1119
|
"oxc/missing-throw"?: RuleNoConfig;
|
|
1000
1120
|
"oxc/no-accumulating-spread"?: RuleNoConfig;
|
|
1001
1121
|
"oxc/no-async-await"?: RuleNoConfig;
|
|
1002
|
-
"oxc/no-async-endpoint-handlers"?:
|
|
1003
|
-
"oxc/no-barrel-file"?:
|
|
1122
|
+
"oxc/no-async-endpoint-handlers"?: RuleNoConfig | [AllowWarnDeny, NoAsyncEndpointHandlersConfig];
|
|
1123
|
+
"oxc/no-barrel-file"?: RuleNoConfig | [AllowWarnDeny, NoBarrelFile];
|
|
1004
1124
|
"oxc/no-const-enum"?: RuleNoConfig;
|
|
1005
|
-
"oxc/no-map-spread"?:
|
|
1006
|
-
"oxc/no-optional-chaining"?:
|
|
1007
|
-
"oxc/no-rest-spread-properties"?:
|
|
1125
|
+
"oxc/no-map-spread"?: RuleNoConfig | [AllowWarnDeny, NoMapSpreadConfig];
|
|
1126
|
+
"oxc/no-optional-chaining"?: RuleNoConfig | [AllowWarnDeny, NoOptionalChainingConfig];
|
|
1127
|
+
"oxc/no-rest-spread-properties"?: RuleNoConfig | [AllowWarnDeny, NoRestSpreadPropertiesOptions];
|
|
1008
1128
|
"oxc/no-this-in-exported-function"?: RuleNoConfig;
|
|
1009
1129
|
"oxc/number-arg-out-of-range"?: RuleNoConfig;
|
|
1010
1130
|
"oxc/only-used-in-recursion"?: RuleNoConfig;
|
|
1011
1131
|
"oxc/uninvoked-array-callback"?: RuleNoConfig;
|
|
1012
|
-
"prefer-arrow-callback"?:
|
|
1013
|
-
"prefer-const"?:
|
|
1132
|
+
"prefer-arrow-callback"?: RuleNoConfig | [AllowWarnDeny, PreferArrowCallbackConfig];
|
|
1133
|
+
"prefer-const"?: RuleNoConfig | [AllowWarnDeny, PreferConstConfig];
|
|
1014
1134
|
"prefer-destructuring"?: DummyRule;
|
|
1015
1135
|
"prefer-exponentiation-operator"?: RuleNoConfig;
|
|
1016
1136
|
"prefer-named-capture-group"?: RuleNoConfig;
|
|
1017
1137
|
"prefer-numeric-literals"?: RuleNoConfig;
|
|
1018
1138
|
"prefer-object-has-own"?: RuleNoConfig;
|
|
1019
1139
|
"prefer-object-spread"?: RuleNoConfig;
|
|
1020
|
-
"prefer-promise-reject-errors"?:
|
|
1021
|
-
"prefer-regex-literals"?:
|
|
1140
|
+
"prefer-promise-reject-errors"?: RuleNoConfig | [AllowWarnDeny, PreferPromiseRejectErrors];
|
|
1141
|
+
"prefer-regex-literals"?: RuleNoConfig | [AllowWarnDeny, PreferRegexLiteralsConfig];
|
|
1022
1142
|
"prefer-rest-params"?: RuleNoConfig;
|
|
1023
1143
|
"prefer-spread"?: RuleNoConfig;
|
|
1024
1144
|
"prefer-template"?: RuleNoConfig;
|
|
1025
|
-
"preserve-caught-error"?:
|
|
1026
|
-
"promise/always-return"?:
|
|
1145
|
+
"preserve-caught-error"?: RuleNoConfig | [AllowWarnDeny, PreserveCaughtErrorOptions];
|
|
1146
|
+
"promise/always-return"?: RuleNoConfig | [AllowWarnDeny, AlwaysReturnConfig];
|
|
1027
1147
|
"promise/avoid-new"?: RuleNoConfig;
|
|
1028
|
-
"promise/catch-or-return"?:
|
|
1029
|
-
"promise/no-callback-in-promise"?:
|
|
1148
|
+
"promise/catch-or-return"?: RuleNoConfig | [AllowWarnDeny, CatchOrReturnConfig];
|
|
1149
|
+
"promise/no-callback-in-promise"?: RuleNoConfig | [AllowWarnDeny, NoCallbackInPromiseConfig];
|
|
1030
1150
|
"promise/no-multiple-resolved"?: RuleNoConfig;
|
|
1031
1151
|
"promise/no-nesting"?: RuleNoConfig;
|
|
1032
1152
|
"promise/no-new-statics"?: RuleNoConfig;
|
|
1033
|
-
"promise/no-promise-in-callback"?:
|
|
1153
|
+
"promise/no-promise-in-callback"?: RuleNoConfig | [AllowWarnDeny, NoPromiseInCallbackConfig];
|
|
1034
1154
|
"promise/no-return-in-finally"?: RuleNoConfig;
|
|
1035
|
-
"promise/no-return-wrap"?:
|
|
1036
|
-
"promise/param-names"?:
|
|
1155
|
+
"promise/no-return-wrap"?: RuleNoConfig | [AllowWarnDeny, NoReturnWrap];
|
|
1156
|
+
"promise/param-names"?: RuleNoConfig | [AllowWarnDeny, ParamNamesConfig];
|
|
1037
1157
|
"promise/prefer-await-to-callbacks"?: RuleNoConfig;
|
|
1038
|
-
"promise/prefer-await-to-then"?:
|
|
1158
|
+
"promise/prefer-await-to-then"?: RuleNoConfig | [AllowWarnDeny, PreferAwaitToThenConfig];
|
|
1039
1159
|
"promise/prefer-catch"?: RuleNoConfig;
|
|
1040
|
-
"promise/spec-only"?:
|
|
1160
|
+
"promise/spec-only"?: RuleNoConfig | [AllowWarnDeny, SpecOnlyConfig];
|
|
1041
1161
|
"promise/valid-params"?: RuleNoConfig;
|
|
1042
|
-
radix?:
|
|
1043
|
-
"react-perf/jsx-no-jsx-as-prop"?: RuleNoConfig;
|
|
1044
|
-
"react-perf/jsx-no-new-array-as-prop"?: RuleNoConfig;
|
|
1045
|
-
"react-perf/jsx-no-new-function-as-prop"?: RuleNoConfig;
|
|
1046
|
-
"react-perf/jsx-no-new-object-as-prop"?:
|
|
1047
|
-
"react/button-has-type"?:
|
|
1048
|
-
"react/checked-requires-onchange-or-readonly"?:
|
|
1049
|
-
"react/display-name"?:
|
|
1050
|
-
"react/exhaustive-deps"?:
|
|
1051
|
-
"react/forbid-component-props"?:
|
|
1052
|
-
"react/forbid-dom-props"?:
|
|
1053
|
-
"react/forbid-elements"?:
|
|
1162
|
+
radix?: RuleNoConfig | [AllowWarnDeny, RadixType];
|
|
1163
|
+
"react-perf/jsx-no-jsx-as-prop"?: RuleNoConfig | [AllowWarnDeny, ReactPerfConfig];
|
|
1164
|
+
"react-perf/jsx-no-new-array-as-prop"?: RuleNoConfig | [AllowWarnDeny, ReactPerfConfig];
|
|
1165
|
+
"react-perf/jsx-no-new-function-as-prop"?: RuleNoConfig | [AllowWarnDeny, ReactPerfConfig];
|
|
1166
|
+
"react-perf/jsx-no-new-object-as-prop"?: RuleNoConfig | [AllowWarnDeny, ReactPerfConfig];
|
|
1167
|
+
"react/button-has-type"?: RuleNoConfig | [AllowWarnDeny, ButtonHasType];
|
|
1168
|
+
"react/checked-requires-onchange-or-readonly"?: RuleNoConfig | [AllowWarnDeny, CheckedRequiresOnchangeOrReadonly];
|
|
1169
|
+
"react/display-name"?: RuleNoConfig | [AllowWarnDeny, DisplayNameConfig];
|
|
1170
|
+
"react/exhaustive-deps"?: RuleNoConfig | [AllowWarnDeny, ExhaustiveDepsConfig];
|
|
1171
|
+
"react/forbid-component-props"?: RuleNoConfig | [AllowWarnDeny, ForbidComponentPropsConfig];
|
|
1172
|
+
"react/forbid-dom-props"?: RuleNoConfig | [AllowWarnDeny, ForbidDomPropsConfig];
|
|
1173
|
+
"react/forbid-elements"?: RuleNoConfig | [AllowWarnDeny, ForbidElementsConfig];
|
|
1054
1174
|
"react/forward-ref-uses-ref"?: RuleNoConfig;
|
|
1055
|
-
"react/hook-use-state"?:
|
|
1175
|
+
"react/hook-use-state"?: RuleNoConfig | [AllowWarnDeny, HookUseStateConfig];
|
|
1056
1176
|
"react/iframe-missing-sandbox"?: RuleNoConfig;
|
|
1057
|
-
"react/jsx-boolean-value"?:
|
|
1058
|
-
"react/jsx-curly-brace-presence"?:
|
|
1059
|
-
"react/jsx-filename-extension"?:
|
|
1060
|
-
"react/jsx-fragments"?:
|
|
1061
|
-
"react/jsx-handler-names"?:
|
|
1062
|
-
"react/jsx-key"?:
|
|
1063
|
-
"react/jsx-max-depth"?:
|
|
1177
|
+
"react/jsx-boolean-value"?: RuleNoConfig | [AllowWarnDeny, EnforceBooleanAttribute] | [AllowWarnDeny, EnforceBooleanAttribute, JsxBooleanValueOptions];
|
|
1178
|
+
"react/jsx-curly-brace-presence"?: RuleNoConfig | [AllowWarnDeny, JsxCurlyBracePresenceConfig];
|
|
1179
|
+
"react/jsx-filename-extension"?: RuleNoConfig | [AllowWarnDeny, JsxFilenameExtensionConfig];
|
|
1180
|
+
"react/jsx-fragments"?: RuleNoConfig | [AllowWarnDeny, FragmentMode];
|
|
1181
|
+
"react/jsx-handler-names"?: RuleNoConfig | [AllowWarnDeny, JsxHandlerNamesConfig];
|
|
1182
|
+
"react/jsx-key"?: RuleNoConfig | [AllowWarnDeny, JsxKeyConfig];
|
|
1183
|
+
"react/jsx-max-depth"?: RuleNoConfig | [AllowWarnDeny, JsxMaxDepthConfig];
|
|
1064
1184
|
"react/jsx-no-comment-textnodes"?: RuleNoConfig;
|
|
1065
1185
|
"react/jsx-no-constructed-context-values"?: RuleNoConfig;
|
|
1066
1186
|
"react/jsx-no-duplicate-props"?: RuleNoConfig;
|
|
1187
|
+
"react/jsx-no-literals"?: RuleNoConfig | [AllowWarnDeny, JsxNoLiteralsConfig];
|
|
1067
1188
|
"react/jsx-no-script-url"?: DummyRule;
|
|
1068
|
-
"react/jsx-no-target-blank"?:
|
|
1189
|
+
"react/jsx-no-target-blank"?: RuleNoConfig | [AllowWarnDeny, JsxNoTargetBlank];
|
|
1069
1190
|
"react/jsx-no-undef"?: RuleNoConfig;
|
|
1070
|
-
"react/jsx-no-useless-fragment"?:
|
|
1071
|
-
"react/jsx-pascal-case"?:
|
|
1191
|
+
"react/jsx-no-useless-fragment"?: RuleNoConfig | [AllowWarnDeny, JsxNoUselessFragment];
|
|
1192
|
+
"react/jsx-pascal-case"?: RuleNoConfig | [AllowWarnDeny, JsxPascalCaseConfig];
|
|
1072
1193
|
"react/jsx-props-no-spread-multi"?: RuleNoConfig;
|
|
1073
|
-
"react/jsx-props-no-spreading"?:
|
|
1194
|
+
"react/jsx-props-no-spreading"?: RuleNoConfig | [AllowWarnDeny, JsxPropsNoSpreadingConfig];
|
|
1074
1195
|
"react/no-array-index-key"?: RuleNoConfig;
|
|
1075
1196
|
"react/no-children-prop"?: RuleNoConfig;
|
|
1076
1197
|
"react/no-clone-element"?: RuleNoConfig;
|
|
1077
1198
|
"react/no-danger"?: RuleNoConfig;
|
|
1078
1199
|
"react/no-danger-with-children"?: RuleNoConfig;
|
|
1079
|
-
"react/no-did-mount-set-state"?:
|
|
1080
|
-
"react/no-did-update-set-state"?:
|
|
1200
|
+
"react/no-did-mount-set-state"?: RuleNoConfig | [AllowWarnDeny, AllowedOrDisallowInFunc];
|
|
1201
|
+
"react/no-did-update-set-state"?: RuleNoConfig | [AllowWarnDeny, AllowedOrDisallowInFunc];
|
|
1081
1202
|
"react/no-direct-mutation-state"?: RuleNoConfig;
|
|
1082
1203
|
"react/no-find-dom-node"?: RuleNoConfig;
|
|
1083
1204
|
"react/no-is-mounted"?: RuleNoConfig;
|
|
1084
|
-
"react/no-multi-comp"?:
|
|
1205
|
+
"react/no-multi-comp"?: RuleNoConfig | [AllowWarnDeny, NoMultiCompConfig];
|
|
1085
1206
|
"react/no-namespace"?: RuleNoConfig;
|
|
1086
|
-
"react/no-object-type-as-default-prop"?:
|
|
1207
|
+
"react/no-object-type-as-default-prop"?: RuleNoConfig;
|
|
1087
1208
|
"react/no-react-children"?: RuleNoConfig;
|
|
1088
1209
|
"react/no-redundant-should-component-update"?: RuleNoConfig;
|
|
1089
1210
|
"react/no-render-return-value"?: RuleNoConfig;
|
|
1090
1211
|
"react/no-set-state"?: RuleNoConfig;
|
|
1091
|
-
"react/no-string-refs"?:
|
|
1212
|
+
"react/no-string-refs"?: RuleNoConfig | [AllowWarnDeny, NoStringRefs];
|
|
1092
1213
|
"react/no-this-in-sfc"?: RuleNoConfig;
|
|
1093
1214
|
"react/no-unescaped-entities"?: RuleNoConfig;
|
|
1094
|
-
"react/no-unknown-property"?:
|
|
1095
|
-
"react/no-unsafe"?:
|
|
1096
|
-
"react/no-unstable-nested-components"?:
|
|
1097
|
-
"react/no-will-update-set-state"?:
|
|
1098
|
-
"react/only-export-components"?:
|
|
1099
|
-
"react/prefer-es6-class"?:
|
|
1100
|
-
"react/prefer-function-component"?:
|
|
1215
|
+
"react/no-unknown-property"?: RuleNoConfig | [AllowWarnDeny, NoUnknownPropertyConfig];
|
|
1216
|
+
"react/no-unsafe"?: RuleNoConfig | [AllowWarnDeny, NoUnsafeConfig];
|
|
1217
|
+
"react/no-unstable-nested-components"?: RuleNoConfig | [AllowWarnDeny, NoUnstableNestedComponentsConfig];
|
|
1218
|
+
"react/no-will-update-set-state"?: RuleNoConfig | [AllowWarnDeny, AllowedOrDisallowInFunc];
|
|
1219
|
+
"react/only-export-components"?: RuleNoConfig | [AllowWarnDeny, OnlyExportComponentsConfig];
|
|
1220
|
+
"react/prefer-es6-class"?: RuleNoConfig | [AllowWarnDeny, AlwaysNever];
|
|
1221
|
+
"react/prefer-function-component"?: RuleNoConfig | [AllowWarnDeny, PreferFunctionComponent];
|
|
1222
|
+
"react/react-compiler"?: RuleNoConfig | [AllowWarnDeny, ReactCompilerConfig];
|
|
1101
1223
|
"react/react-in-jsx-scope"?: RuleNoConfig;
|
|
1102
1224
|
"react/require-render-return"?: RuleNoConfig;
|
|
1103
1225
|
"react/rules-of-hooks"?: RuleNoConfig;
|
|
1104
|
-
"react/self-closing-comp"?:
|
|
1105
|
-
"react/state-in-constructor"?:
|
|
1106
|
-
"react/style-prop-object"?:
|
|
1226
|
+
"react/self-closing-comp"?: RuleNoConfig | [AllowWarnDeny, SelfClosingComp];
|
|
1227
|
+
"react/state-in-constructor"?: RuleNoConfig | [AllowWarnDeny, AlwaysNever];
|
|
1228
|
+
"react/style-prop-object"?: RuleNoConfig | [AllowWarnDeny, StylePropObjectConfig];
|
|
1107
1229
|
"react/void-dom-elements-no-children"?: RuleNoConfig;
|
|
1108
1230
|
"require-await"?: RuleNoConfig;
|
|
1109
|
-
"require-unicode-regexp"?:
|
|
1231
|
+
"require-unicode-regexp"?: RuleNoConfig | [AllowWarnDeny, RequireUnicodeRegexpConfig];
|
|
1110
1232
|
"require-yield"?: RuleNoConfig;
|
|
1111
|
-
"sort-imports"?:
|
|
1112
|
-
"sort-keys"?:
|
|
1113
|
-
"sort-vars"?:
|
|
1233
|
+
"sort-imports"?: RuleNoConfig | [AllowWarnDeny, SortImportsOptions];
|
|
1234
|
+
"sort-keys"?: RuleNoConfig | [AllowWarnDeny, SortOrder] | [AllowWarnDeny, SortOrder, SortKeysOptions];
|
|
1235
|
+
"sort-vars"?: RuleNoConfig | [AllowWarnDeny, SortVars];
|
|
1114
1236
|
"symbol-description"?: RuleNoConfig;
|
|
1115
1237
|
"typescript/adjacent-overload-signatures"?: RuleNoConfig;
|
|
1116
|
-
"typescript/array-type"?:
|
|
1238
|
+
"typescript/array-type"?: RuleNoConfig | [AllowWarnDeny, ArrayTypeConfig];
|
|
1117
1239
|
"typescript/await-thenable"?: RuleNoConfig;
|
|
1118
|
-
"typescript/ban-ts-comment"?:
|
|
1240
|
+
"typescript/ban-ts-comment"?: RuleNoConfig | [AllowWarnDeny, BanTsCommentConfig];
|
|
1119
1241
|
"typescript/ban-tslint-comment"?: RuleNoConfig;
|
|
1120
1242
|
"typescript/ban-types"?: RuleNoConfig;
|
|
1121
|
-
"typescript/class-literal-property-style"?:
|
|
1122
|
-
"typescript/consistent-generic-constructors"?:
|
|
1123
|
-
"typescript/consistent-indexed-object-style"?:
|
|
1124
|
-
"typescript/consistent-return"?:
|
|
1125
|
-
"typescript/consistent-type-assertions"?:
|
|
1126
|
-
"typescript/consistent-type-definitions"?:
|
|
1127
|
-
"typescript/consistent-type-exports"?:
|
|
1128
|
-
"typescript/consistent-type-imports"?:
|
|
1129
|
-
"typescript/dot-notation"?:
|
|
1130
|
-
"typescript/explicit-function-return-type"?:
|
|
1131
|
-
"typescript/explicit-member-accessibility"?:
|
|
1132
|
-
"typescript/explicit-module-boundary-types"?:
|
|
1133
|
-
"typescript/method-signature-style"?:
|
|
1243
|
+
"typescript/class-literal-property-style"?: RuleNoConfig | [AllowWarnDeny, ClassLiteralPropertyStyleOption];
|
|
1244
|
+
"typescript/consistent-generic-constructors"?: RuleNoConfig | [AllowWarnDeny, PreferGenericType];
|
|
1245
|
+
"typescript/consistent-indexed-object-style"?: RuleNoConfig | [AllowWarnDeny, ConsistentIndexedObjectStyleConfig];
|
|
1246
|
+
"typescript/consistent-return"?: RuleNoConfig | [AllowWarnDeny, ConsistentReturnConfig];
|
|
1247
|
+
"typescript/consistent-type-assertions"?: RuleNoConfig | [AllowWarnDeny, ConsistentTypeAssertionsConfig];
|
|
1248
|
+
"typescript/consistent-type-definitions"?: RuleNoConfig | [AllowWarnDeny, ConsistentTypeDefinitionsConfig];
|
|
1249
|
+
"typescript/consistent-type-exports"?: RuleNoConfig | [AllowWarnDeny, ConsistentTypeExportsConfig];
|
|
1250
|
+
"typescript/consistent-type-imports"?: RuleNoConfig | [AllowWarnDeny, ConsistentTypeImportsConfig];
|
|
1251
|
+
"typescript/dot-notation"?: RuleNoConfig | [AllowWarnDeny, DotNotationConfig];
|
|
1252
|
+
"typescript/explicit-function-return-type"?: RuleNoConfig | [AllowWarnDeny, ExplicitFunctionReturnTypeConfig];
|
|
1253
|
+
"typescript/explicit-member-accessibility"?: RuleNoConfig | [AllowWarnDeny, ExplicitMemberAccessibilityConfig];
|
|
1254
|
+
"typescript/explicit-module-boundary-types"?: RuleNoConfig | [AllowWarnDeny, ExplicitModuleBoundaryTypesConfig];
|
|
1255
|
+
"typescript/method-signature-style"?: RuleNoConfig | [AllowWarnDeny, MethodSignatureStyleConfig];
|
|
1134
1256
|
"typescript/no-array-delete"?: RuleNoConfig;
|
|
1135
|
-
"typescript/no-base-to-string"?:
|
|
1257
|
+
"typescript/no-base-to-string"?: RuleNoConfig | [AllowWarnDeny, NoBaseToStringConfig];
|
|
1136
1258
|
"typescript/no-confusing-non-null-assertion"?: RuleNoConfig;
|
|
1137
|
-
"typescript/no-confusing-void-expression"?:
|
|
1138
|
-
"typescript/no-deprecated"?:
|
|
1259
|
+
"typescript/no-confusing-void-expression"?: RuleNoConfig | [AllowWarnDeny, NoConfusingVoidExpressionConfig];
|
|
1260
|
+
"typescript/no-deprecated"?: RuleNoConfig | [AllowWarnDeny, NoDeprecatedConfig];
|
|
1139
1261
|
"typescript/no-duplicate-enum-values"?: RuleNoConfig;
|
|
1140
|
-
"typescript/no-duplicate-type-constituents"?:
|
|
1262
|
+
"typescript/no-duplicate-type-constituents"?: RuleNoConfig | [AllowWarnDeny, NoDuplicateTypeConstituentsConfig];
|
|
1141
1263
|
"typescript/no-dynamic-delete"?: RuleNoConfig;
|
|
1142
|
-
"typescript/no-empty-interface"?:
|
|
1143
|
-
"typescript/no-empty-object-type"?:
|
|
1144
|
-
"typescript/no-explicit-any"?:
|
|
1264
|
+
"typescript/no-empty-interface"?: RuleNoConfig | [AllowWarnDeny, NoEmptyInterface];
|
|
1265
|
+
"typescript/no-empty-object-type"?: RuleNoConfig | [AllowWarnDeny, NoEmptyObjectTypeConfig];
|
|
1266
|
+
"typescript/no-explicit-any"?: RuleNoConfig | [AllowWarnDeny, NoExplicitAny];
|
|
1145
1267
|
"typescript/no-extra-non-null-assertion"?: RuleNoConfig;
|
|
1146
|
-
"typescript/no-extraneous-class"?:
|
|
1147
|
-
"typescript/no-floating-promises"?:
|
|
1268
|
+
"typescript/no-extraneous-class"?: RuleNoConfig | [AllowWarnDeny, NoExtraneousClass];
|
|
1269
|
+
"typescript/no-floating-promises"?: RuleNoConfig | [AllowWarnDeny, NoFloatingPromisesConfig];
|
|
1148
1270
|
"typescript/no-for-in-array"?: RuleNoConfig;
|
|
1149
1271
|
"typescript/no-implied-eval"?: RuleNoConfig;
|
|
1150
1272
|
"typescript/no-import-type-side-effects"?: RuleNoConfig;
|
|
1151
|
-
"typescript/no-inferrable-types"?:
|
|
1152
|
-
"typescript/no-invalid-void-type"?:
|
|
1153
|
-
"typescript/no-meaningless-void-operator"?:
|
|
1273
|
+
"typescript/no-inferrable-types"?: RuleNoConfig | [AllowWarnDeny, NoInferrableTypes];
|
|
1274
|
+
"typescript/no-invalid-void-type"?: RuleNoConfig | [AllowWarnDeny, NoInvalidVoidTypeConfig];
|
|
1275
|
+
"typescript/no-meaningless-void-operator"?: RuleNoConfig | [AllowWarnDeny, NoMeaninglessVoidOperatorConfig];
|
|
1154
1276
|
"typescript/no-misused-new"?: RuleNoConfig;
|
|
1155
|
-
"typescript/no-misused-promises"?:
|
|
1156
|
-
"typescript/no-misused-spread"?:
|
|
1277
|
+
"typescript/no-misused-promises"?: RuleNoConfig | [AllowWarnDeny, NoMisusedPromisesConfig];
|
|
1278
|
+
"typescript/no-misused-spread"?: RuleNoConfig | [AllowWarnDeny, NoMisusedSpreadConfig];
|
|
1157
1279
|
"typescript/no-mixed-enums"?: RuleNoConfig;
|
|
1158
|
-
"typescript/no-namespace"?:
|
|
1280
|
+
"typescript/no-namespace"?: RuleNoConfig | [AllowWarnDeny, NoNamespace];
|
|
1159
1281
|
"typescript/no-non-null-asserted-nullish-coalescing"?: RuleNoConfig;
|
|
1160
1282
|
"typescript/no-non-null-asserted-optional-chain"?: RuleNoConfig;
|
|
1161
1283
|
"typescript/no-non-null-assertion"?: RuleNoConfig;
|
|
1162
1284
|
"typescript/no-redundant-type-constituents"?: RuleNoConfig;
|
|
1163
|
-
"typescript/no-require-imports"?:
|
|
1164
|
-
"typescript/no-restricted-types"?:
|
|
1165
|
-
"typescript/no-this-alias"?:
|
|
1166
|
-
"typescript/no-unnecessary-boolean-literal-compare"?:
|
|
1167
|
-
"typescript/no-unnecessary-condition"?:
|
|
1285
|
+
"typescript/no-require-imports"?: RuleNoConfig | [AllowWarnDeny, NoRequireImportsConfig];
|
|
1286
|
+
"typescript/no-restricted-types"?: RuleNoConfig | [AllowWarnDeny, NoRestrictedTypesConfig];
|
|
1287
|
+
"typescript/no-this-alias"?: RuleNoConfig | [AllowWarnDeny, NoThisAliasConfig];
|
|
1288
|
+
"typescript/no-unnecessary-boolean-literal-compare"?: RuleNoConfig | [AllowWarnDeny, NoUnnecessaryBooleanLiteralCompareConfig];
|
|
1289
|
+
"typescript/no-unnecessary-condition"?: RuleNoConfig | [AllowWarnDeny, NoUnnecessaryConditionConfig];
|
|
1168
1290
|
"typescript/no-unnecessary-parameter-property-assignment"?: RuleNoConfig;
|
|
1169
1291
|
"typescript/no-unnecessary-qualifier"?: RuleNoConfig;
|
|
1170
1292
|
"typescript/no-unnecessary-template-expression"?: RuleNoConfig;
|
|
1171
1293
|
"typescript/no-unnecessary-type-arguments"?: RuleNoConfig;
|
|
1172
|
-
"typescript/no-unnecessary-type-assertion"?:
|
|
1294
|
+
"typescript/no-unnecessary-type-assertion"?: RuleNoConfig | [AllowWarnDeny, NoUnnecessaryTypeAssertionConfig];
|
|
1173
1295
|
"typescript/no-unnecessary-type-constraint"?: RuleNoConfig;
|
|
1174
1296
|
"typescript/no-unnecessary-type-conversion"?: RuleNoConfig;
|
|
1175
1297
|
"typescript/no-unnecessary-type-parameters"?: RuleNoConfig;
|
|
@@ -1179,7 +1301,7 @@ interface DummyRuleMap {
|
|
|
1179
1301
|
"typescript/no-unsafe-declaration-merging"?: RuleNoConfig;
|
|
1180
1302
|
"typescript/no-unsafe-enum-comparison"?: RuleNoConfig;
|
|
1181
1303
|
"typescript/no-unsafe-function-type"?: RuleNoConfig;
|
|
1182
|
-
"typescript/no-unsafe-member-access"?:
|
|
1304
|
+
"typescript/no-unsafe-member-access"?: RuleNoConfig | [AllowWarnDeny, NoUnsafeMemberAccessConfig];
|
|
1183
1305
|
"typescript/no-unsafe-return"?: RuleNoConfig;
|
|
1184
1306
|
"typescript/no-unsafe-type-assertion"?: RuleNoConfig;
|
|
1185
1307
|
"typescript/no-unsafe-unary-minus"?: RuleNoConfig;
|
|
@@ -1188,65 +1310,66 @@ interface DummyRuleMap {
|
|
|
1188
1310
|
"typescript/no-var-requires"?: RuleNoConfig;
|
|
1189
1311
|
"typescript/no-wrapper-object-types"?: RuleNoConfig;
|
|
1190
1312
|
"typescript/non-nullable-type-assertion-style"?: RuleNoConfig;
|
|
1191
|
-
"typescript/only-throw-error"?:
|
|
1192
|
-
"typescript/parameter-properties"?:
|
|
1313
|
+
"typescript/only-throw-error"?: RuleNoConfig | [AllowWarnDeny, OnlyThrowErrorConfig];
|
|
1314
|
+
"typescript/parameter-properties"?: RuleNoConfig | [AllowWarnDeny, ParameterPropertiesConfig];
|
|
1193
1315
|
"typescript/prefer-as-const"?: RuleNoConfig;
|
|
1194
1316
|
"typescript/prefer-enum-initializers"?: RuleNoConfig;
|
|
1195
1317
|
"typescript/prefer-find"?: RuleNoConfig;
|
|
1196
1318
|
"typescript/prefer-for-of"?: RuleNoConfig;
|
|
1197
1319
|
"typescript/prefer-function-type"?: RuleNoConfig;
|
|
1198
1320
|
"typescript/prefer-includes"?: RuleNoConfig;
|
|
1199
|
-
"typescript/prefer-literal-enum-member"?:
|
|
1321
|
+
"typescript/prefer-literal-enum-member"?: RuleNoConfig | [AllowWarnDeny, PreferLiteralEnumMember];
|
|
1200
1322
|
"typescript/prefer-namespace-keyword"?: RuleNoConfig;
|
|
1201
|
-
"typescript/prefer-nullish-coalescing"?:
|
|
1202
|
-
"typescript/prefer-optional-chain"?:
|
|
1203
|
-
"typescript/prefer-promise-reject-errors"?:
|
|
1204
|
-
"typescript/prefer-readonly"?:
|
|
1205
|
-
"typescript/prefer-readonly-parameter-types"?:
|
|
1323
|
+
"typescript/prefer-nullish-coalescing"?: RuleNoConfig | [AllowWarnDeny, PreferNullishCoalescingConfig];
|
|
1324
|
+
"typescript/prefer-optional-chain"?: RuleNoConfig | [AllowWarnDeny, PreferOptionalChainConfig];
|
|
1325
|
+
"typescript/prefer-promise-reject-errors"?: RuleNoConfig | [AllowWarnDeny, PreferPromiseRejectErrorsConfig];
|
|
1326
|
+
"typescript/prefer-readonly"?: RuleNoConfig | [AllowWarnDeny, PreferReadonlyConfig];
|
|
1327
|
+
"typescript/prefer-readonly-parameter-types"?: RuleNoConfig | [AllowWarnDeny, PreferReadonlyParameterTypesConfig];
|
|
1206
1328
|
"typescript/prefer-reduce-type-parameter"?: RuleNoConfig;
|
|
1207
1329
|
"typescript/prefer-regexp-exec"?: RuleNoConfig;
|
|
1208
1330
|
"typescript/prefer-return-this-type"?: RuleNoConfig;
|
|
1209
|
-
"typescript/prefer-string-starts-ends-with"?:
|
|
1331
|
+
"typescript/prefer-string-starts-ends-with"?: RuleNoConfig | [AllowWarnDeny, PreferStringStartsEndsWithConfig];
|
|
1210
1332
|
"typescript/prefer-ts-expect-error"?: RuleNoConfig;
|
|
1211
|
-
"typescript/promise-function-async"?:
|
|
1333
|
+
"typescript/promise-function-async"?: RuleNoConfig | [AllowWarnDeny, PromiseFunctionAsyncConfig];
|
|
1212
1334
|
"typescript/related-getter-setter-pairs"?: RuleNoConfig;
|
|
1213
|
-
"typescript/require-array-sort-compare"?:
|
|
1335
|
+
"typescript/require-array-sort-compare"?: RuleNoConfig | [AllowWarnDeny, RequireArraySortCompareConfig];
|
|
1214
1336
|
"typescript/require-await"?: RuleNoConfig;
|
|
1215
|
-
"typescript/restrict-plus-operands"?:
|
|
1216
|
-
"typescript/restrict-template-expressions"?:
|
|
1217
|
-
"typescript/return-await"?:
|
|
1218
|
-
"typescript/strict-boolean-expressions"?:
|
|
1219
|
-
"typescript/strict-void-return"?:
|
|
1220
|
-
"typescript/switch-exhaustiveness-check"?:
|
|
1221
|
-
"typescript/triple-slash-reference"?:
|
|
1222
|
-
"typescript/unbound-method"?:
|
|
1223
|
-
"typescript/unified-signatures"?:
|
|
1337
|
+
"typescript/restrict-plus-operands"?: RuleNoConfig | [AllowWarnDeny, RestrictPlusOperandsConfig];
|
|
1338
|
+
"typescript/restrict-template-expressions"?: RuleNoConfig | [AllowWarnDeny, RestrictTemplateExpressionsConfig];
|
|
1339
|
+
"typescript/return-await"?: RuleNoConfig | [AllowWarnDeny, ReturnAwaitOption];
|
|
1340
|
+
"typescript/strict-boolean-expressions"?: RuleNoConfig | [AllowWarnDeny, StrictBooleanExpressionsConfig];
|
|
1341
|
+
"typescript/strict-void-return"?: RuleNoConfig | [AllowWarnDeny, StrictVoidReturnConfig];
|
|
1342
|
+
"typescript/switch-exhaustiveness-check"?: RuleNoConfig | [AllowWarnDeny, SwitchExhaustivenessCheckConfig];
|
|
1343
|
+
"typescript/triple-slash-reference"?: RuleNoConfig | [AllowWarnDeny, TripleSlashReferenceConfig];
|
|
1344
|
+
"typescript/unbound-method"?: RuleNoConfig | [AllowWarnDeny, UnboundMethodConfig];
|
|
1345
|
+
"typescript/unified-signatures"?: RuleNoConfig | [AllowWarnDeny, UnifiedSignaturesOptions];
|
|
1224
1346
|
"typescript/use-unknown-in-catch-callback-variable"?: RuleNoConfig;
|
|
1225
|
-
"unicode-bom"?:
|
|
1226
|
-
"unicorn/catch-error-name"?:
|
|
1347
|
+
"unicode-bom"?: RuleNoConfig | [AllowWarnDeny, BomOptionType];
|
|
1348
|
+
"unicorn/catch-error-name"?: RuleNoConfig | [AllowWarnDeny, CatchErrorNameConfig];
|
|
1227
1349
|
"unicorn/consistent-assert"?: RuleNoConfig;
|
|
1228
1350
|
"unicorn/consistent-date-clone"?: RuleNoConfig;
|
|
1229
1351
|
"unicorn/consistent-empty-array-spread"?: RuleNoConfig;
|
|
1230
1352
|
"unicorn/consistent-existence-index-check"?: RuleNoConfig;
|
|
1231
|
-
"unicorn/consistent-function-scoping"?:
|
|
1353
|
+
"unicorn/consistent-function-scoping"?: RuleNoConfig | [AllowWarnDeny, ConsistentFunctionScoping];
|
|
1232
1354
|
"unicorn/consistent-template-literal-escape"?: RuleNoConfig;
|
|
1233
1355
|
"unicorn/custom-error-definition"?: RuleNoConfig;
|
|
1234
1356
|
"unicorn/empty-brace-spaces"?: RuleNoConfig;
|
|
1235
1357
|
"unicorn/error-message"?: RuleNoConfig;
|
|
1236
1358
|
"unicorn/escape-case"?: RuleNoConfig;
|
|
1237
|
-
"unicorn/explicit-length-check"?:
|
|
1359
|
+
"unicorn/explicit-length-check"?: RuleNoConfig | [AllowWarnDeny, ExplicitLengthCheck];
|
|
1238
1360
|
"unicorn/filename-case"?: DummyRule;
|
|
1239
|
-
"unicorn/import-style"?:
|
|
1361
|
+
"unicorn/import-style"?: RuleNoConfig | [AllowWarnDeny, ImportStyleConfig];
|
|
1240
1362
|
"unicorn/new-for-builtins"?: RuleNoConfig;
|
|
1241
1363
|
"unicorn/no-abusive-eslint-disable"?: RuleNoConfig;
|
|
1242
1364
|
"unicorn/no-accessor-recursion"?: RuleNoConfig;
|
|
1243
1365
|
"unicorn/no-anonymous-default-export"?: RuleNoConfig;
|
|
1244
1366
|
"unicorn/no-array-callback-reference"?: RuleNoConfig;
|
|
1367
|
+
"unicorn/no-array-fill-with-reference-type"?: RuleNoConfig;
|
|
1245
1368
|
"unicorn/no-array-for-each"?: RuleNoConfig;
|
|
1246
1369
|
"unicorn/no-array-method-this-argument"?: RuleNoConfig;
|
|
1247
|
-
"unicorn/no-array-reduce"?:
|
|
1248
|
-
"unicorn/no-array-reverse"?:
|
|
1249
|
-
"unicorn/no-array-sort"?:
|
|
1370
|
+
"unicorn/no-array-reduce"?: RuleNoConfig | [AllowWarnDeny, NoArrayReduce];
|
|
1371
|
+
"unicorn/no-array-reverse"?: RuleNoConfig | [AllowWarnDeny, NoArrayReverse];
|
|
1372
|
+
"unicorn/no-array-sort"?: RuleNoConfig | [AllowWarnDeny, NoArraySort];
|
|
1250
1373
|
"unicorn/no-await-expression-member"?: RuleNoConfig;
|
|
1251
1374
|
"unicorn/no-await-in-promise-methods"?: RuleNoConfig;
|
|
1252
1375
|
"unicorn/no-console-spaces"?: RuleNoConfig;
|
|
@@ -1255,7 +1378,7 @@ interface DummyRuleMap {
|
|
|
1255
1378
|
"unicorn/no-hex-escape"?: RuleNoConfig;
|
|
1256
1379
|
"unicorn/no-immediate-mutation"?: RuleNoConfig;
|
|
1257
1380
|
"unicorn/no-instanceof-array"?: RuleNoConfig;
|
|
1258
|
-
"unicorn/no-instanceof-builtins"?:
|
|
1381
|
+
"unicorn/no-instanceof-builtins"?: RuleNoConfig | [AllowWarnDeny, NoInstanceofBuiltinsConfig];
|
|
1259
1382
|
"unicorn/no-invalid-fetch-options"?: RuleNoConfig;
|
|
1260
1383
|
"unicorn/no-invalid-remove-event-listener"?: RuleNoConfig;
|
|
1261
1384
|
"unicorn/no-length-as-slice-end"?: RuleNoConfig;
|
|
@@ -1266,14 +1389,14 @@ interface DummyRuleMap {
|
|
|
1266
1389
|
"unicorn/no-nested-ternary"?: RuleNoConfig;
|
|
1267
1390
|
"unicorn/no-new-array"?: RuleNoConfig;
|
|
1268
1391
|
"unicorn/no-new-buffer"?: RuleNoConfig;
|
|
1269
|
-
"unicorn/no-null"?:
|
|
1392
|
+
"unicorn/no-null"?: RuleNoConfig | [AllowWarnDeny, NoNull];
|
|
1270
1393
|
"unicorn/no-object-as-default-parameter"?: RuleNoConfig;
|
|
1271
1394
|
"unicorn/no-process-exit"?: RuleNoConfig;
|
|
1272
1395
|
"unicorn/no-single-promise-in-promise-methods"?: RuleNoConfig;
|
|
1273
1396
|
"unicorn/no-static-only-class"?: RuleNoConfig;
|
|
1274
1397
|
"unicorn/no-thenable"?: RuleNoConfig;
|
|
1275
1398
|
"unicorn/no-this-assignment"?: RuleNoConfig;
|
|
1276
|
-
"unicorn/no-typeof-undefined"?:
|
|
1399
|
+
"unicorn/no-typeof-undefined"?: RuleNoConfig | [AllowWarnDeny, NoTypeofUndefined];
|
|
1277
1400
|
"unicorn/no-unnecessary-array-flat-depth"?: RuleNoConfig;
|
|
1278
1401
|
"unicorn/no-unnecessary-array-splice-count"?: RuleNoConfig;
|
|
1279
1402
|
"unicorn/no-unnecessary-await"?: RuleNoConfig;
|
|
@@ -1285,10 +1408,10 @@ interface DummyRuleMap {
|
|
|
1285
1408
|
"unicorn/no-useless-fallback-in-spread"?: RuleNoConfig;
|
|
1286
1409
|
"unicorn/no-useless-iterator-to-array"?: RuleNoConfig;
|
|
1287
1410
|
"unicorn/no-useless-length-check"?: RuleNoConfig;
|
|
1288
|
-
"unicorn/no-useless-promise-resolve-reject"?:
|
|
1411
|
+
"unicorn/no-useless-promise-resolve-reject"?: RuleNoConfig | [AllowWarnDeny, NoUselessPromiseResolveRejectOptions];
|
|
1289
1412
|
"unicorn/no-useless-spread"?: RuleNoConfig;
|
|
1290
1413
|
"unicorn/no-useless-switch-case"?: RuleNoConfig;
|
|
1291
|
-
"unicorn/no-useless-undefined"?:
|
|
1414
|
+
"unicorn/no-useless-undefined"?: RuleNoConfig | [AllowWarnDeny, NoUselessUndefined];
|
|
1292
1415
|
"unicorn/no-zero-fractions"?: RuleNoConfig;
|
|
1293
1416
|
"unicorn/number-literal-case"?: RuleNoConfig;
|
|
1294
1417
|
"unicorn/numeric-separators-style"?: DummyRule;
|
|
@@ -1298,7 +1421,7 @@ interface DummyRuleMap {
|
|
|
1298
1421
|
"unicorn/prefer-array-flat-map"?: RuleNoConfig;
|
|
1299
1422
|
"unicorn/prefer-array-index-of"?: RuleNoConfig;
|
|
1300
1423
|
"unicorn/prefer-array-some"?: RuleNoConfig;
|
|
1301
|
-
"unicorn/prefer-at"?:
|
|
1424
|
+
"unicorn/prefer-at"?: RuleNoConfig | [AllowWarnDeny, PreferAtConfig];
|
|
1302
1425
|
"unicorn/prefer-bigint-literals"?: RuleNoConfig;
|
|
1303
1426
|
"unicorn/prefer-blob-reading-methods"?: RuleNoConfig;
|
|
1304
1427
|
"unicorn/prefer-class-fields"?: RuleNoConfig;
|
|
@@ -1311,6 +1434,7 @@ interface DummyRuleMap {
|
|
|
1311
1434
|
"unicorn/prefer-dom-node-remove"?: RuleNoConfig;
|
|
1312
1435
|
"unicorn/prefer-dom-node-text-content"?: RuleNoConfig;
|
|
1313
1436
|
"unicorn/prefer-event-target"?: RuleNoConfig;
|
|
1437
|
+
"unicorn/prefer-export-from"?: RuleNoConfig | [AllowWarnDeny, PreferExportFrom];
|
|
1314
1438
|
"unicorn/prefer-global-this"?: RuleNoConfig;
|
|
1315
1439
|
"unicorn/prefer-import-meta-properties"?: RuleNoConfig;
|
|
1316
1440
|
"unicorn/prefer-includes"?: RuleNoConfig;
|
|
@@ -1324,8 +1448,8 @@ interface DummyRuleMap {
|
|
|
1324
1448
|
"unicorn/prefer-native-coercion-functions"?: RuleNoConfig;
|
|
1325
1449
|
"unicorn/prefer-negative-index"?: RuleNoConfig;
|
|
1326
1450
|
"unicorn/prefer-node-protocol"?: RuleNoConfig;
|
|
1327
|
-
"unicorn/prefer-number-properties"?:
|
|
1328
|
-
"unicorn/prefer-object-from-entries"?:
|
|
1451
|
+
"unicorn/prefer-number-properties"?: RuleNoConfig | [AllowWarnDeny, PreferNumberPropertiesConfig];
|
|
1452
|
+
"unicorn/prefer-object-from-entries"?: RuleNoConfig | [AllowWarnDeny, PreferObjectFromEntriesConfig];
|
|
1329
1453
|
"unicorn/prefer-optional-catch-binding"?: RuleNoConfig;
|
|
1330
1454
|
"unicorn/prefer-prototype-methods"?: RuleNoConfig;
|
|
1331
1455
|
"unicorn/prefer-query-selector"?: RuleNoConfig;
|
|
@@ -1334,37 +1458,38 @@ interface DummyRuleMap {
|
|
|
1334
1458
|
"unicorn/prefer-response-static-json"?: RuleNoConfig;
|
|
1335
1459
|
"unicorn/prefer-set-has"?: RuleNoConfig;
|
|
1336
1460
|
"unicorn/prefer-set-size"?: RuleNoConfig;
|
|
1461
|
+
"unicorn/prefer-single-call"?: RuleNoConfig | [AllowWarnDeny, PreferSingleCallConfig];
|
|
1337
1462
|
"unicorn/prefer-spread"?: RuleNoConfig;
|
|
1338
1463
|
"unicorn/prefer-string-raw"?: RuleNoConfig;
|
|
1339
1464
|
"unicorn/prefer-string-replace-all"?: RuleNoConfig;
|
|
1340
1465
|
"unicorn/prefer-string-slice"?: RuleNoConfig;
|
|
1341
1466
|
"unicorn/prefer-string-starts-ends-with"?: RuleNoConfig;
|
|
1342
1467
|
"unicorn/prefer-string-trim-start-end"?: RuleNoConfig;
|
|
1343
|
-
"unicorn/prefer-structured-clone"?:
|
|
1344
|
-
"unicorn/prefer-ternary"?:
|
|
1468
|
+
"unicorn/prefer-structured-clone"?: RuleNoConfig | [AllowWarnDeny, PreferStructuredCloneConfig];
|
|
1469
|
+
"unicorn/prefer-ternary"?: RuleNoConfig | [AllowWarnDeny, PreferTernaryOption];
|
|
1345
1470
|
"unicorn/prefer-top-level-await"?: RuleNoConfig;
|
|
1346
1471
|
"unicorn/prefer-type-error"?: RuleNoConfig;
|
|
1347
|
-
"unicorn/relative-url-style"?:
|
|
1472
|
+
"unicorn/relative-url-style"?: RuleNoConfig | [AllowWarnDeny, RelativeUrlStyleConfig];
|
|
1348
1473
|
"unicorn/require-array-join-separator"?: RuleNoConfig;
|
|
1349
1474
|
"unicorn/require-module-attributes"?: RuleNoConfig;
|
|
1350
1475
|
"unicorn/require-module-specifiers"?: RuleNoConfig;
|
|
1351
1476
|
"unicorn/require-number-to-fixed-digits-argument"?: RuleNoConfig;
|
|
1352
1477
|
"unicorn/require-post-message-target-origin"?: RuleNoConfig;
|
|
1353
|
-
"unicorn/switch-case-braces"?:
|
|
1478
|
+
"unicorn/switch-case-braces"?: RuleNoConfig | [AllowWarnDeny, SwitchCaseBracesConfig];
|
|
1354
1479
|
"unicorn/switch-case-break-position"?: RuleNoConfig;
|
|
1355
|
-
"unicorn/text-encoding-identifier-case"?:
|
|
1480
|
+
"unicorn/text-encoding-identifier-case"?: RuleNoConfig | [AllowWarnDeny, TextEncodingIdentifierCase];
|
|
1356
1481
|
"unicorn/throw-new-error"?: RuleNoConfig;
|
|
1357
|
-
"use-isnan"?:
|
|
1358
|
-
"valid-typeof"?:
|
|
1482
|
+
"use-isnan"?: RuleNoConfig | [AllowWarnDeny, UseIsnan];
|
|
1483
|
+
"valid-typeof"?: RuleNoConfig | [AllowWarnDeny, ValidTypeof];
|
|
1359
1484
|
"vars-on-top"?: RuleNoConfig;
|
|
1360
|
-
"vitest/consistent-each-for"?:
|
|
1361
|
-
"vitest/consistent-test-filename"?:
|
|
1362
|
-
"vitest/consistent-test-it"?:
|
|
1363
|
-
"vitest/consistent-vitest-vi"?:
|
|
1364
|
-
"vitest/expect-expect"?:
|
|
1485
|
+
"vitest/consistent-each-for"?: RuleNoConfig | [AllowWarnDeny, ConsistentEachForJson];
|
|
1486
|
+
"vitest/consistent-test-filename"?: RuleNoConfig | [AllowWarnDeny, ConsistentTestFilenameConfig];
|
|
1487
|
+
"vitest/consistent-test-it"?: RuleNoConfig | [AllowWarnDeny, ConsistentTestItConfig];
|
|
1488
|
+
"vitest/consistent-vitest-vi"?: RuleNoConfig | [AllowWarnDeny, ConsistentVitestConfig];
|
|
1489
|
+
"vitest/expect-expect"?: RuleNoConfig | [AllowWarnDeny, ExpectExpectConfig];
|
|
1365
1490
|
"vitest/hoisted-apis-on-top"?: RuleNoConfig;
|
|
1366
|
-
"vitest/max-expects"?:
|
|
1367
|
-
"vitest/max-nested-describe"?:
|
|
1491
|
+
"vitest/max-expects"?: RuleNoConfig | [AllowWarnDeny, MaxExpectsConfig];
|
|
1492
|
+
"vitest/max-nested-describe"?: RuleNoConfig | [AllowWarnDeny, MaxNestedDescribeConfig];
|
|
1368
1493
|
"vitest/no-alias-methods"?: RuleNoConfig;
|
|
1369
1494
|
"vitest/no-commented-out-tests"?: RuleNoConfig;
|
|
1370
1495
|
"vitest/no-conditional-expect"?: RuleNoConfig;
|
|
@@ -1373,16 +1498,16 @@ interface DummyRuleMap {
|
|
|
1373
1498
|
"vitest/no-disabled-tests"?: RuleNoConfig;
|
|
1374
1499
|
"vitest/no-duplicate-hooks"?: RuleNoConfig;
|
|
1375
1500
|
"vitest/no-focused-tests"?: RuleNoConfig;
|
|
1376
|
-
"vitest/no-hooks"?:
|
|
1501
|
+
"vitest/no-hooks"?: RuleNoConfig | [AllowWarnDeny, NoHooksConfig];
|
|
1377
1502
|
"vitest/no-identical-title"?: RuleNoConfig;
|
|
1378
1503
|
"vitest/no-import-node-test"?: RuleNoConfig;
|
|
1379
1504
|
"vitest/no-importing-vitest-globals"?: RuleNoConfig;
|
|
1380
1505
|
"vitest/no-interpolation-in-snapshots"?: RuleNoConfig;
|
|
1381
|
-
"vitest/no-large-snapshots"?:
|
|
1506
|
+
"vitest/no-large-snapshots"?: RuleNoConfig | [AllowWarnDeny, NoLargeSnapshotsConfig];
|
|
1382
1507
|
"vitest/no-mocks-import"?: RuleNoConfig;
|
|
1383
|
-
"vitest/no-restricted-matchers"?:
|
|
1384
|
-
"vitest/no-restricted-vi-methods"?:
|
|
1385
|
-
"vitest/no-standalone-expect"?:
|
|
1508
|
+
"vitest/no-restricted-matchers"?: RuleNoConfig | [AllowWarnDeny, NoRestrictedMatchersConfig];
|
|
1509
|
+
"vitest/no-restricted-vi-methods"?: RuleNoConfig | [AllowWarnDeny, NoRestrictedTestMethodsConfig];
|
|
1510
|
+
"vitest/no-standalone-expect"?: RuleNoConfig | [AllowWarnDeny, NoStandaloneExpectConfig];
|
|
1386
1511
|
"vitest/no-test-prefixes"?: RuleNoConfig;
|
|
1387
1512
|
"vitest/no-test-return-statement"?: RuleNoConfig;
|
|
1388
1513
|
"vitest/no-unneeded-async-expect-function"?: RuleNoConfig;
|
|
@@ -1395,17 +1520,17 @@ interface DummyRuleMap {
|
|
|
1395
1520
|
"vitest/prefer-describe-function-title"?: RuleNoConfig;
|
|
1396
1521
|
"vitest/prefer-each"?: RuleNoConfig;
|
|
1397
1522
|
"vitest/prefer-equality-matcher"?: RuleNoConfig;
|
|
1398
|
-
"vitest/prefer-expect-assertions"?:
|
|
1523
|
+
"vitest/prefer-expect-assertions"?: RuleNoConfig | [AllowWarnDeny, PreferExpectAssertionsConfig];
|
|
1399
1524
|
"vitest/prefer-expect-resolves"?: RuleNoConfig;
|
|
1400
1525
|
"vitest/prefer-expect-type-of"?: RuleNoConfig;
|
|
1401
1526
|
"vitest/prefer-hooks-in-order"?: RuleNoConfig;
|
|
1402
1527
|
"vitest/prefer-hooks-on-top"?: RuleNoConfig;
|
|
1403
|
-
"vitest/prefer-import-in-mock"?:
|
|
1528
|
+
"vitest/prefer-import-in-mock"?: RuleNoConfig | [AllowWarnDeny, PreferImportInMockConfig];
|
|
1404
1529
|
"vitest/prefer-importing-vitest-globals"?: RuleNoConfig;
|
|
1405
1530
|
"vitest/prefer-lowercase-title"?: DummyRule;
|
|
1406
1531
|
"vitest/prefer-mock-promise-shorthand"?: RuleNoConfig;
|
|
1407
1532
|
"vitest/prefer-mock-return-shorthand"?: RuleNoConfig;
|
|
1408
|
-
"vitest/prefer-snapshot-hint"?:
|
|
1533
|
+
"vitest/prefer-snapshot-hint"?: RuleNoConfig | [AllowWarnDeny, SnapshotHintMode];
|
|
1409
1534
|
"vitest/prefer-spy-on"?: RuleNoConfig;
|
|
1410
1535
|
"vitest/prefer-strict-boolean-matchers"?: RuleNoConfig;
|
|
1411
1536
|
"vitest/prefer-strict-equal"?: RuleNoConfig;
|
|
@@ -1418,60 +1543,63 @@ interface DummyRuleMap {
|
|
|
1418
1543
|
"vitest/prefer-to-have-length"?: RuleNoConfig;
|
|
1419
1544
|
"vitest/prefer-todo"?: RuleNoConfig;
|
|
1420
1545
|
"vitest/require-awaited-expect-poll"?: RuleNoConfig;
|
|
1421
|
-
"vitest/require-hook"?:
|
|
1546
|
+
"vitest/require-hook"?: RuleNoConfig | [AllowWarnDeny, RequireHookConfig];
|
|
1422
1547
|
"vitest/require-local-test-context-for-concurrent-snapshots"?: RuleNoConfig;
|
|
1423
|
-
"vitest/require-mock-type-parameters"?:
|
|
1548
|
+
"vitest/require-mock-type-parameters"?: RuleNoConfig | [AllowWarnDeny, RequireMockTypeParametersConfig];
|
|
1424
1549
|
"vitest/require-test-timeout"?: RuleNoConfig;
|
|
1425
1550
|
"vitest/require-to-throw-message"?: RuleNoConfig;
|
|
1426
|
-
"vitest/require-top-level-describe"?:
|
|
1551
|
+
"vitest/require-top-level-describe"?: RuleNoConfig | [AllowWarnDeny, RequireTopLevelDescribeConfig];
|
|
1427
1552
|
"vitest/valid-describe-callback"?: RuleNoConfig;
|
|
1428
|
-
"vitest/valid-expect"?:
|
|
1553
|
+
"vitest/valid-expect"?: RuleNoConfig | [AllowWarnDeny, ValidExpectConfig];
|
|
1429
1554
|
"vitest/valid-expect-in-promise"?: RuleNoConfig;
|
|
1430
1555
|
"vitest/valid-title"?: DummyRule;
|
|
1431
1556
|
"vitest/warn-todo"?: RuleNoConfig;
|
|
1432
|
-
"vue/component-definition-name-casing"?:
|
|
1433
|
-
"vue/define-emits-declaration"?:
|
|
1434
|
-
"vue/define-props-declaration"?:
|
|
1435
|
-
"vue/define-props-destructuring"?:
|
|
1436
|
-
"vue/max-props"?:
|
|
1437
|
-
"vue/next-tick-style"?:
|
|
1557
|
+
"vue/component-definition-name-casing"?: RuleNoConfig | [AllowWarnDeny, CaseType];
|
|
1558
|
+
"vue/define-emits-declaration"?: RuleNoConfig | [AllowWarnDeny, DeclarationStyle];
|
|
1559
|
+
"vue/define-props-declaration"?: RuleNoConfig | [AllowWarnDeny, DeclarationStyle2];
|
|
1560
|
+
"vue/define-props-destructuring"?: RuleNoConfig | [AllowWarnDeny, DefinePropsDestructuring];
|
|
1561
|
+
"vue/max-props"?: RuleNoConfig | [AllowWarnDeny, MaxProps];
|
|
1562
|
+
"vue/next-tick-style"?: RuleNoConfig | [AllowWarnDeny, NextTickOption];
|
|
1438
1563
|
"vue/no-arrow-functions-in-watch"?: RuleNoConfig;
|
|
1439
1564
|
"vue/no-computed-properties-in-data"?: RuleNoConfig;
|
|
1440
1565
|
"vue/no-deprecated-data-object-declaration"?: RuleNoConfig;
|
|
1441
1566
|
"vue/no-deprecated-delete-set"?: RuleNoConfig;
|
|
1442
1567
|
"vue/no-deprecated-destroyed-lifecycle"?: RuleNoConfig;
|
|
1443
1568
|
"vue/no-deprecated-events-api"?: RuleNoConfig;
|
|
1444
|
-
"vue/no-deprecated-model-definition"?:
|
|
1569
|
+
"vue/no-deprecated-model-definition"?: RuleNoConfig | [AllowWarnDeny, NoDeprecatedModelDefinitionConfig];
|
|
1445
1570
|
"vue/no-deprecated-props-default-this"?: RuleNoConfig;
|
|
1446
1571
|
"vue/no-deprecated-vue-config-keycodes"?: RuleNoConfig;
|
|
1572
|
+
"vue/no-dupe-keys"?: RuleNoConfig | [AllowWarnDeny, NoDupeKeysConfig];
|
|
1447
1573
|
"vue/no-export-in-script-setup"?: RuleNoConfig;
|
|
1448
1574
|
"vue/no-expose-after-await"?: RuleNoConfig;
|
|
1449
1575
|
"vue/no-import-compiler-macros"?: RuleNoConfig;
|
|
1450
1576
|
"vue/no-lifecycle-after-await"?: RuleNoConfig;
|
|
1451
1577
|
"vue/no-multiple-slot-args"?: RuleNoConfig;
|
|
1452
1578
|
"vue/no-required-prop-with-default"?: RuleNoConfig;
|
|
1453
|
-
"vue/no-reserved-component-names"?:
|
|
1454
|
-
"vue/no-reserved-keys"?:
|
|
1455
|
-
"vue/no-reserved-props"?:
|
|
1579
|
+
"vue/no-reserved-component-names"?: RuleNoConfig | [AllowWarnDeny, NoReservedComponentNames];
|
|
1580
|
+
"vue/no-reserved-keys"?: RuleNoConfig | [AllowWarnDeny, NoReservedKeysConfig];
|
|
1581
|
+
"vue/no-reserved-props"?: RuleNoConfig | [AllowWarnDeny, NoReservedPropsConfig];
|
|
1456
1582
|
"vue/no-shared-component-data"?: RuleNoConfig;
|
|
1583
|
+
"vue/no-side-effects-in-computed-properties"?: RuleNoConfig;
|
|
1457
1584
|
"vue/no-this-in-before-route-enter"?: RuleNoConfig;
|
|
1458
1585
|
"vue/no-watch-after-await"?: RuleNoConfig;
|
|
1459
1586
|
"vue/prefer-import-from-vue"?: RuleNoConfig;
|
|
1460
|
-
"vue/prop-name-casing"?:
|
|
1587
|
+
"vue/prop-name-casing"?: RuleNoConfig | [AllowWarnDeny, CaseType2] | [AllowWarnDeny, CaseType2, Options$1];
|
|
1461
1588
|
"vue/require-default-export"?: RuleNoConfig;
|
|
1462
|
-
"vue/require-
|
|
1589
|
+
"vue/require-default-prop"?: RuleNoConfig;
|
|
1590
|
+
"vue/require-direct-export"?: RuleNoConfig | [AllowWarnDeny, RequireDirectExport];
|
|
1463
1591
|
"vue/require-prop-type-constructor"?: RuleNoConfig;
|
|
1464
1592
|
"vue/require-prop-types"?: RuleNoConfig;
|
|
1465
1593
|
"vue/require-render-return"?: RuleNoConfig;
|
|
1466
1594
|
"vue/require-slots-as-functions"?: RuleNoConfig;
|
|
1467
1595
|
"vue/require-typed-ref"?: RuleNoConfig;
|
|
1468
|
-
"vue/return-in-computed-property"?:
|
|
1596
|
+
"vue/return-in-computed-property"?: RuleNoConfig | [AllowWarnDeny, ReturnInComputedPropertyConfig];
|
|
1469
1597
|
"vue/return-in-emits-validator"?: RuleNoConfig;
|
|
1470
1598
|
"vue/valid-define-emits"?: RuleNoConfig;
|
|
1471
1599
|
"vue/valid-define-options"?: RuleNoConfig;
|
|
1472
1600
|
"vue/valid-define-props"?: RuleNoConfig;
|
|
1473
1601
|
"vue/valid-next-tick"?: RuleNoConfig;
|
|
1474
|
-
yoda?:
|
|
1602
|
+
yoda?: RuleNoConfig | [AllowWarnDeny, AllowYoda] | [AllowWarnDeny, AllowYoda, YodaOptions];
|
|
1475
1603
|
[k: string]: DummyRule | undefined;
|
|
1476
1604
|
}
|
|
1477
1605
|
interface AccessorPairsConfig {
|
|
@@ -1996,6 +2124,77 @@ interface MaxExpectsConfig {
|
|
|
1996
2124
|
*/
|
|
1997
2125
|
max?: number;
|
|
1998
2126
|
}
|
|
2127
|
+
interface MaxNestedDescribeConfig {
|
|
2128
|
+
/**
|
|
2129
|
+
* Maximum allowed depth of nested describe calls.
|
|
2130
|
+
*/
|
|
2131
|
+
max?: number;
|
|
2132
|
+
}
|
|
2133
|
+
interface NoDeprecatedFunctionsConfig {
|
|
2134
|
+
/**
|
|
2135
|
+
* Jest configuration options.
|
|
2136
|
+
* Deprecated config, it will be removed in future versions.
|
|
2137
|
+
* Use please instead { "settings": { "jest": {"version": 29 } } } in `Oxlint config file`.
|
|
2138
|
+
* Beware the value from the config have higher priority than the rule config.
|
|
2139
|
+
*/
|
|
2140
|
+
jest?: JestConfigJson;
|
|
2141
|
+
}
|
|
2142
|
+
interface JestConfigJson {
|
|
2143
|
+
/**
|
|
2144
|
+
* The version of Jest being used.
|
|
2145
|
+
*/
|
|
2146
|
+
version?: string;
|
|
2147
|
+
}
|
|
2148
|
+
interface NoHooksConfig {
|
|
2149
|
+
/**
|
|
2150
|
+
* An array of hook function names that are permitted for use.
|
|
2151
|
+
*/
|
|
2152
|
+
allow?: string[];
|
|
2153
|
+
}
|
|
2154
|
+
interface NoLargeSnapshotsConfig {
|
|
2155
|
+
/**
|
|
2156
|
+
* A map of snapshot file paths to arrays of snapshot names that are allowed to exceed the size limit.
|
|
2157
|
+
* Snapshot names can be specified as regular expressions.
|
|
2158
|
+
*/
|
|
2159
|
+
allowedSnapshots?: {
|
|
2160
|
+
[k: string]: string[];
|
|
2161
|
+
};
|
|
2162
|
+
/**
|
|
2163
|
+
* Maximum number of lines allowed for inline snapshots.
|
|
2164
|
+
*/
|
|
2165
|
+
inlineMaxSize?: number;
|
|
2166
|
+
/**
|
|
2167
|
+
* Maximum number of lines allowed for external snapshot files.
|
|
2168
|
+
*/
|
|
2169
|
+
maxSize?: number;
|
|
2170
|
+
}
|
|
2171
|
+
interface NoRestrictedTestMethodsConfig {
|
|
2172
|
+
[k: string]: string | null;
|
|
2173
|
+
}
|
|
2174
|
+
interface NoRestrictedMatchersConfig {
|
|
2175
|
+
[k: string]: string | null;
|
|
2176
|
+
}
|
|
2177
|
+
interface NoStandaloneExpectConfig {
|
|
2178
|
+
/**
|
|
2179
|
+
* An array of function names that should also be treated as test blocks.
|
|
2180
|
+
*/
|
|
2181
|
+
additionalTestBlockFunctions?: string[];
|
|
2182
|
+
}
|
|
2183
|
+
interface PreferEndingWithAnExpectConfig {
|
|
2184
|
+
/**
|
|
2185
|
+
* An array of function names that should also be treated as test blocks.
|
|
2186
|
+
*/
|
|
2187
|
+
additionalTestBlockFunctions?: string[];
|
|
2188
|
+
/**
|
|
2189
|
+
* A list of function names that should be treated as assertion functions.
|
|
2190
|
+
*/
|
|
2191
|
+
assertFunctionNames?: string[];
|
|
2192
|
+
}
|
|
2193
|
+
interface PreferExpectAssertionsConfig {
|
|
2194
|
+
onlyFunctionsWithAsyncKeyword?: boolean;
|
|
2195
|
+
onlyFunctionsWithExpectInCallback?: boolean;
|
|
2196
|
+
onlyFunctionsWithExpectInLoop?: boolean;
|
|
2197
|
+
}
|
|
1999
2198
|
interface PreferImportingJestGlobalsConfig {
|
|
2000
2199
|
/**
|
|
2001
2200
|
* Jest function types to enforce importing for.
|
|
@@ -2008,6 +2207,30 @@ interface RequireHookConfig {
|
|
|
2008
2207
|
*/
|
|
2009
2208
|
allowedFunctionCalls?: string[];
|
|
2010
2209
|
}
|
|
2210
|
+
interface RequireTopLevelDescribeConfig {
|
|
2211
|
+
/**
|
|
2212
|
+
* The maximum number of top-level `describe` blocks allowed in a test file.
|
|
2213
|
+
*/
|
|
2214
|
+
maxNumberOfTopLevelDescribes?: number;
|
|
2215
|
+
}
|
|
2216
|
+
interface ValidExpectConfig {
|
|
2217
|
+
/**
|
|
2218
|
+
* When `true`, async assertions must be awaited in all contexts (not just return statements).
|
|
2219
|
+
*/
|
|
2220
|
+
alwaysAwait?: boolean;
|
|
2221
|
+
/**
|
|
2222
|
+
* List of matchers that are considered async and therefore require awaiting (e.g. `toResolve`, `toReject`).
|
|
2223
|
+
*/
|
|
2224
|
+
asyncMatchers?: string[];
|
|
2225
|
+
/**
|
|
2226
|
+
* Maximum number of arguments `expect` should be called with.
|
|
2227
|
+
*/
|
|
2228
|
+
maxArgs?: number;
|
|
2229
|
+
/**
|
|
2230
|
+
* Minimum number of arguments `expect` should be called with.
|
|
2231
|
+
*/
|
|
2232
|
+
minArgs?: number;
|
|
2233
|
+
}
|
|
2011
2234
|
interface CheckTagNamesConfig {
|
|
2012
2235
|
/**
|
|
2013
2236
|
* Additional tag names to allow.
|
|
@@ -2074,6 +2297,28 @@ interface RequireYieldsConfig {
|
|
|
2074
2297
|
*/
|
|
2075
2298
|
withGeneratorTag?: boolean;
|
|
2076
2299
|
}
|
|
2300
|
+
interface AltTextConfigSchema {
|
|
2301
|
+
/**
|
|
2302
|
+
* Custom components to check for alt text on `area` elements.
|
|
2303
|
+
*/
|
|
2304
|
+
area?: string[];
|
|
2305
|
+
/**
|
|
2306
|
+
* Custom components to check for alt text on any of the supported elements.
|
|
2307
|
+
*/
|
|
2308
|
+
elements?: AltTextElements[];
|
|
2309
|
+
/**
|
|
2310
|
+
* Custom components to check for alt text on `img` elements.
|
|
2311
|
+
*/
|
|
2312
|
+
img?: string[];
|
|
2313
|
+
/**
|
|
2314
|
+
* Custom components to check for alt text on `input[type="image"]` elements.
|
|
2315
|
+
*/
|
|
2316
|
+
'input[type="image"]'?: string[];
|
|
2317
|
+
/**
|
|
2318
|
+
* Custom components to check for alt text on `object` elements.
|
|
2319
|
+
*/
|
|
2320
|
+
object?: string[];
|
|
2321
|
+
}
|
|
2077
2322
|
interface AnchorAmbiguousTextConfig {
|
|
2078
2323
|
/**
|
|
2079
2324
|
* List of ambiguous words or phrases that should be flagged in anchor text.
|
|
@@ -2096,6 +2341,31 @@ interface AutocompleteValidConfig {
|
|
|
2096
2341
|
*/
|
|
2097
2342
|
inputComponents?: string[];
|
|
2098
2343
|
}
|
|
2344
|
+
interface ControlHasAssociatedLabelConfig {
|
|
2345
|
+
/**
|
|
2346
|
+
* Custom JSX components to be treated as interactive controls.
|
|
2347
|
+
*/
|
|
2348
|
+
controlComponents?: string[];
|
|
2349
|
+
/**
|
|
2350
|
+
* Maximum depth to search for an accessible label within the element.
|
|
2351
|
+
* Defaults to `2`.
|
|
2352
|
+
*/
|
|
2353
|
+
depth?: number;
|
|
2354
|
+
/**
|
|
2355
|
+
* Elements to ignore.
|
|
2356
|
+
* Defaults to `["audio", "canvas", "embed", "input", "textarea", "tr", "video"]`.
|
|
2357
|
+
*/
|
|
2358
|
+
ignoreElements?: string[];
|
|
2359
|
+
/**
|
|
2360
|
+
* Interactive roles to ignore.
|
|
2361
|
+
* Defaults to `["grid", "listbox", "menu", "menubar", "radiogroup", "row", "tablist", "toolbar", "tree", "treegrid"]`.
|
|
2362
|
+
*/
|
|
2363
|
+
ignoreRoles?: string[];
|
|
2364
|
+
/**
|
|
2365
|
+
* Additional attributes to check for accessible label text.
|
|
2366
|
+
*/
|
|
2367
|
+
labelAttributes?: string[];
|
|
2368
|
+
}
|
|
2099
2369
|
interface HeadingHasContentConfig {
|
|
2100
2370
|
/**
|
|
2101
2371
|
* Additional custom component names to treat as heading elements.
|
|
@@ -2103,6 +2373,17 @@ interface HeadingHasContentConfig {
|
|
|
2103
2373
|
*/
|
|
2104
2374
|
components?: string[];
|
|
2105
2375
|
}
|
|
2376
|
+
interface ImgRedundantAltConfig {
|
|
2377
|
+
/**
|
|
2378
|
+
* JSX element types to validate (component names) where the rule applies.
|
|
2379
|
+
* For example, `["img", "Image"]`.
|
|
2380
|
+
*/
|
|
2381
|
+
components?: string[];
|
|
2382
|
+
/**
|
|
2383
|
+
* Words considered redundant in alt text that should trigger a warning.
|
|
2384
|
+
*/
|
|
2385
|
+
words?: string[];
|
|
2386
|
+
}
|
|
2106
2387
|
interface InteractiveSupportsFocusConfig {
|
|
2107
2388
|
/**
|
|
2108
2389
|
* An array of interactive ARIA roles that should be considered tabbable (require `tabIndex={0}`).
|
|
@@ -2111,6 +2392,42 @@ interface InteractiveSupportsFocusConfig {
|
|
|
2111
2392
|
*/
|
|
2112
2393
|
tabbable?: string[];
|
|
2113
2394
|
}
|
|
2395
|
+
interface LabelHasAssociatedControlConfig {
|
|
2396
|
+
/**
|
|
2397
|
+
* The type of association required between the label and the control.
|
|
2398
|
+
*/
|
|
2399
|
+
assert?: Assert;
|
|
2400
|
+
/**
|
|
2401
|
+
* Custom JSX components to be treated as form controls.
|
|
2402
|
+
*/
|
|
2403
|
+
controlComponents?: string[];
|
|
2404
|
+
/**
|
|
2405
|
+
* Maximum depth to search for a nested control.
|
|
2406
|
+
*/
|
|
2407
|
+
depth?: number;
|
|
2408
|
+
/**
|
|
2409
|
+
* Attributes to check for accessible label text.
|
|
2410
|
+
*/
|
|
2411
|
+
labelAttributes?: string[];
|
|
2412
|
+
/**
|
|
2413
|
+
* Custom JSX components to be treated as labels.
|
|
2414
|
+
*/
|
|
2415
|
+
labelComponents?: string[];
|
|
2416
|
+
}
|
|
2417
|
+
interface MediaHasCaptionConfig {
|
|
2418
|
+
/**
|
|
2419
|
+
* Element names to treat as `<audio>` elements
|
|
2420
|
+
*/
|
|
2421
|
+
audio?: string[];
|
|
2422
|
+
/**
|
|
2423
|
+
* Element names to treat as `<track>` elements
|
|
2424
|
+
*/
|
|
2425
|
+
track?: string[];
|
|
2426
|
+
/**
|
|
2427
|
+
* Element names to treat as `<video>` elements
|
|
2428
|
+
*/
|
|
2429
|
+
video?: string[];
|
|
2430
|
+
}
|
|
2114
2431
|
interface MouseEventsHaveKeyEventsConfig {
|
|
2115
2432
|
/**
|
|
2116
2433
|
* List of hover-in mouse event handlers that require corresponding keyboard event handlers.
|
|
@@ -2127,6 +2444,35 @@ interface NoAutofocus {
|
|
|
2127
2444
|
*/
|
|
2128
2445
|
ignoreNonDOM?: boolean;
|
|
2129
2446
|
}
|
|
2447
|
+
interface NoDistractingElementsConfig {
|
|
2448
|
+
/**
|
|
2449
|
+
* List of distracting elements to check for.
|
|
2450
|
+
*/
|
|
2451
|
+
elements?: DistractingElement[];
|
|
2452
|
+
}
|
|
2453
|
+
interface NoInteractiveElementToNoninteractiveRoleConfig {
|
|
2454
|
+
[k: string]: string[];
|
|
2455
|
+
}
|
|
2456
|
+
interface NoNoninteractiveElementToInteractiveRoleConfig {
|
|
2457
|
+
[k: string]: string[];
|
|
2458
|
+
}
|
|
2459
|
+
interface NoNoninteractiveTabindexConfig {
|
|
2460
|
+
/**
|
|
2461
|
+
* If `true`, allows tabIndex values to be expression values (e.g., variables, ternaries). If `false`, only string literal values are allowed.
|
|
2462
|
+
*/
|
|
2463
|
+
allowExpressionValues?: boolean;
|
|
2464
|
+
/**
|
|
2465
|
+
* An array of ARIA roles that should be considered interactive.
|
|
2466
|
+
*/
|
|
2467
|
+
roles?: string[];
|
|
2468
|
+
/**
|
|
2469
|
+
* An array of custom HTML elements that should be considered interactive.
|
|
2470
|
+
*/
|
|
2471
|
+
tags?: string[];
|
|
2472
|
+
}
|
|
2473
|
+
interface NoRedundantRolesConfig {
|
|
2474
|
+
[k: string]: string[];
|
|
2475
|
+
}
|
|
2130
2476
|
interface NoStaticElementInteractionsConfig {
|
|
2131
2477
|
/**
|
|
2132
2478
|
* If `true`, role attribute values that are JSX expressions (e.g., `role={ROLE}`) are allowed.
|
|
@@ -2856,7 +3202,6 @@ interface NoSequences {
|
|
|
2856
3202
|
/**
|
|
2857
3203
|
* If this option is set to `false`, this rule disallows the comma operator
|
|
2858
3204
|
* even when the expression sequence is explicitly wrapped in parentheses.
|
|
2859
|
-
* Default is `true`.
|
|
2860
3205
|
*/
|
|
2861
3206
|
allowInParentheses?: boolean;
|
|
2862
3207
|
}
|
|
@@ -3250,6 +3595,36 @@ interface NoUnusedVarsFixOptions {
|
|
|
3250
3595
|
*/
|
|
3251
3596
|
variables?: NoUnusedVarsFixMode;
|
|
3252
3597
|
}
|
|
3598
|
+
interface NoUseBeforeDefineConfig {
|
|
3599
|
+
/**
|
|
3600
|
+
* Allow named exports that appear before declaration.
|
|
3601
|
+
*/
|
|
3602
|
+
allowNamedExports?: boolean;
|
|
3603
|
+
/**
|
|
3604
|
+
* Check class declarations.
|
|
3605
|
+
*/
|
|
3606
|
+
classes?: boolean;
|
|
3607
|
+
/**
|
|
3608
|
+
* Check enum declarations.
|
|
3609
|
+
*/
|
|
3610
|
+
enums?: boolean;
|
|
3611
|
+
/**
|
|
3612
|
+
* Check function declarations.
|
|
3613
|
+
*/
|
|
3614
|
+
functions?: boolean;
|
|
3615
|
+
/**
|
|
3616
|
+
* Ignore usages that are type-only references.
|
|
3617
|
+
*/
|
|
3618
|
+
ignoreTypeReferences?: boolean;
|
|
3619
|
+
/**
|
|
3620
|
+
* Check type aliases, interfaces, and type parameters.
|
|
3621
|
+
*/
|
|
3622
|
+
typedefs?: boolean;
|
|
3623
|
+
/**
|
|
3624
|
+
* Check variable declarations.
|
|
3625
|
+
*/
|
|
3626
|
+
variables?: boolean;
|
|
3627
|
+
}
|
|
3253
3628
|
interface NoUselessComputedKey {
|
|
3254
3629
|
/**
|
|
3255
3630
|
* The `enforceForClassMembers` option controls whether the rule applies to
|
|
@@ -3314,6 +3689,12 @@ interface ObjectShorthandOptions {
|
|
|
3314
3689
|
ignoreConstructors?: boolean;
|
|
3315
3690
|
methodsIgnorePattern?: string;
|
|
3316
3691
|
}
|
|
3692
|
+
interface NoAsyncEndpointHandlersConfig {
|
|
3693
|
+
/**
|
|
3694
|
+
* An array of names that are allowed to be async.
|
|
3695
|
+
*/
|
|
3696
|
+
allowedNames?: string[];
|
|
3697
|
+
}
|
|
3317
3698
|
interface NoBarrelFile {
|
|
3318
3699
|
/**
|
|
3319
3700
|
* The maximum number of modules that can be re-exported via `export *`
|
|
@@ -3376,7 +3757,13 @@ interface NoRestSpreadPropertiesOptions {
|
|
|
3376
3757
|
objectSpreadMessage?: string;
|
|
3377
3758
|
}
|
|
3378
3759
|
interface PreferArrowCallbackConfig {
|
|
3760
|
+
/**
|
|
3761
|
+
* If this option is set to `true`, named function expressions are allowed.
|
|
3762
|
+
*/
|
|
3379
3763
|
allowNamedFunctions?: boolean;
|
|
3764
|
+
/**
|
|
3765
|
+
* If this option is set to `false`, function expressions that reference `this` are reported even when they are not bound to a `this` value.
|
|
3766
|
+
*/
|
|
3380
3767
|
allowUnboundThis?: boolean;
|
|
3381
3768
|
}
|
|
3382
3769
|
interface PreferConstConfig {
|
|
@@ -3510,6 +3897,34 @@ interface AlwaysReturnConfig {
|
|
|
3510
3897
|
*/
|
|
3511
3898
|
ignoreLastCallback?: boolean;
|
|
3512
3899
|
}
|
|
3900
|
+
interface CatchOrReturnConfig {
|
|
3901
|
+
/**
|
|
3902
|
+
* Whether to allow `finally()` as a termination method.
|
|
3903
|
+
*/
|
|
3904
|
+
allowFinally?: boolean;
|
|
3905
|
+
/**
|
|
3906
|
+
* Whether to allow `then()` with two arguments as a termination method.
|
|
3907
|
+
*/
|
|
3908
|
+
allowThen?: boolean;
|
|
3909
|
+
/**
|
|
3910
|
+
* Whether to allow `then(null, handler)` as a termination method.
|
|
3911
|
+
*/
|
|
3912
|
+
allowThenStrict?: boolean;
|
|
3913
|
+
/**
|
|
3914
|
+
* List of allowed termination methods (e.g., `catch`, `done`).
|
|
3915
|
+
*/
|
|
3916
|
+
terminationMethod?: TerminationMethod;
|
|
3917
|
+
}
|
|
3918
|
+
interface NoCallbackInPromiseConfig {
|
|
3919
|
+
/**
|
|
3920
|
+
* List of callback function names to allow within Promise `then` and `catch` methods.
|
|
3921
|
+
*/
|
|
3922
|
+
exceptions?: string[];
|
|
3923
|
+
/**
|
|
3924
|
+
* Boolean as to whether callbacks in timeout functions like `setTimeout` will err.
|
|
3925
|
+
*/
|
|
3926
|
+
timeoutsErr?: boolean;
|
|
3927
|
+
}
|
|
3513
3928
|
interface NoPromiseInCallbackConfig {
|
|
3514
3929
|
/**
|
|
3515
3930
|
* Whether or not to exempt function declarations. Defaults to `false`.
|
|
@@ -3535,6 +3950,18 @@ interface NoReturnWrap {
|
|
|
3535
3950
|
*/
|
|
3536
3951
|
allowReject?: boolean;
|
|
3537
3952
|
}
|
|
3953
|
+
interface ParamNamesConfig {
|
|
3954
|
+
/**
|
|
3955
|
+
* Regex pattern used to validate the `reject` parameter name. If provided, this pattern
|
|
3956
|
+
* is used instead of the default `^_?reject$` check.
|
|
3957
|
+
*/
|
|
3958
|
+
rejectPattern?: string;
|
|
3959
|
+
/**
|
|
3960
|
+
* Regex pattern used to validate the `resolve` parameter name. If provided, this pattern
|
|
3961
|
+
* is used instead of the default `^_?resolve$` check.
|
|
3962
|
+
*/
|
|
3963
|
+
resolvePattern?: string;
|
|
3964
|
+
}
|
|
3538
3965
|
interface PreferAwaitToThenConfig {
|
|
3539
3966
|
/**
|
|
3540
3967
|
* If true, enforces the rule even after an `await` or `yield` expression.
|
|
@@ -3547,6 +3974,15 @@ interface SpecOnlyConfig {
|
|
|
3547
3974
|
*/
|
|
3548
3975
|
allowedMethods?: string[];
|
|
3549
3976
|
}
|
|
3977
|
+
interface ReactPerfConfig {
|
|
3978
|
+
/**
|
|
3979
|
+
* Controls whether native elements (lowercase-first-letter tags such as `div`)
|
|
3980
|
+
* are ignored by the rule. Set to `"all"` to ignore every attribute on native
|
|
3981
|
+
* elements, or to an array of attribute names to ignore only those attributes
|
|
3982
|
+
* on native elements.
|
|
3983
|
+
*/
|
|
3984
|
+
nativeAllowList?: NativeAllowList;
|
|
3985
|
+
}
|
|
3550
3986
|
interface ButtonHasType {
|
|
3551
3987
|
/**
|
|
3552
3988
|
* If true, allow `type="button"`.
|
|
@@ -3586,6 +4022,12 @@ interface DisplayNameConfig {
|
|
|
3586
4022
|
*/
|
|
3587
4023
|
ignoreTranspilerName?: boolean;
|
|
3588
4024
|
}
|
|
4025
|
+
interface ExhaustiveDepsConfig {
|
|
4026
|
+
/**
|
|
4027
|
+
* Optionally provide a regex of additional hooks to check.
|
|
4028
|
+
*/
|
|
4029
|
+
additionalHooks?: string;
|
|
4030
|
+
}
|
|
3589
4031
|
interface ForbidComponentPropsConfig {
|
|
3590
4032
|
/**
|
|
3591
4033
|
* An array specifying the names of props that are forbidden.
|
|
@@ -3722,6 +4164,74 @@ interface JsxBooleanValueOptions {
|
|
|
3722
4164
|
*/
|
|
3723
4165
|
never?: string[];
|
|
3724
4166
|
}
|
|
4167
|
+
interface JsxCurlyBracePresence {
|
|
4168
|
+
/**
|
|
4169
|
+
* Whether to enforce or disallow curly braces for child content of a JSX element.
|
|
4170
|
+
*
|
|
4171
|
+
* - `never` will disallow unnecessary curly braces, e.g. this will be preferred: `<Foo>I love oxlint</Foo>`
|
|
4172
|
+
* - `always` will force the usage of curly braces like this, in all cases: `<Foo>{'I love oxlint'}</Foo>`
|
|
4173
|
+
* - `ignore` will allow either style for child content.
|
|
4174
|
+
*/
|
|
4175
|
+
children?: JsxCurlyBracePresenceMode;
|
|
4176
|
+
/**
|
|
4177
|
+
* When set to `ignore` or `never`, this JSX code is allowed (or enforced):
|
|
4178
|
+
* `<App prop=<div /> />;`
|
|
4179
|
+
*
|
|
4180
|
+
* When set to `always`, the curly braces are required for prop values that are
|
|
4181
|
+
* JSX elements: `<App prop={<div />} />;`
|
|
4182
|
+
*
|
|
4183
|
+
* **Note**: it is _highly_ recommended that you set `propElementValues` to `always`.
|
|
4184
|
+
* The ability to omit curly braces around prop values that are JSX elements is obscure, and
|
|
4185
|
+
* intentionally undocumented, and should not be relied upon.
|
|
4186
|
+
*/
|
|
4187
|
+
propElementValues?: JsxCurlyBracePresenceMode;
|
|
4188
|
+
/**
|
|
4189
|
+
* Whether to enforce or disallow curly braces for props on JSX elements.
|
|
4190
|
+
*
|
|
4191
|
+
* - `never` will disallow unnecessary curly braces, e.g. this will be preferred: `<Foo foo="bar" />`
|
|
4192
|
+
* - `always` will force the usage of curly braces like this, in all cases: `<Foo foo={'bar'} />`
|
|
4193
|
+
* - `ignore` will allow either style for prop values.
|
|
4194
|
+
*/
|
|
4195
|
+
props?: JsxCurlyBracePresenceMode;
|
|
4196
|
+
}
|
|
4197
|
+
interface JsxFilenameExtensionConfig {
|
|
4198
|
+
/**
|
|
4199
|
+
* When to allow a JSX filename extension. By default all files may have a JSX extension.
|
|
4200
|
+
* Set this to `as-needed` to only allow JSX file extensions in files that contain JSX syntax.
|
|
4201
|
+
*/
|
|
4202
|
+
allow?: JsxFilenameExtensionAllowMode;
|
|
4203
|
+
/**
|
|
4204
|
+
* The set of allowed file extensions.
|
|
4205
|
+
* Can include or exclude the leading dot (e.g., "jsx" and ".jsx" are both valid).
|
|
4206
|
+
*/
|
|
4207
|
+
extensions?: string[];
|
|
4208
|
+
/**
|
|
4209
|
+
* If enabled, files that do not contain code (i.e. are empty, contain only whitespaces or comments) will not be rejected.
|
|
4210
|
+
*/
|
|
4211
|
+
ignoreFilesWithoutCode?: boolean;
|
|
4212
|
+
}
|
|
4213
|
+
interface JsxHandlerNamesConfig {
|
|
4214
|
+
/**
|
|
4215
|
+
* Whether to check for inline functions in JSX attributes.
|
|
4216
|
+
*/
|
|
4217
|
+
checkInlineFunction?: boolean;
|
|
4218
|
+
/**
|
|
4219
|
+
* Whether to check for local variables in JSX attributes.
|
|
4220
|
+
*/
|
|
4221
|
+
checkLocalVariables?: boolean;
|
|
4222
|
+
/**
|
|
4223
|
+
* Event handler prefixes to check against.
|
|
4224
|
+
*/
|
|
4225
|
+
eventHandlerPrefix?: string | false;
|
|
4226
|
+
/**
|
|
4227
|
+
* Event handler prop prefixes to check against.
|
|
4228
|
+
*/
|
|
4229
|
+
eventHandlerPropPrefix?: string | false;
|
|
4230
|
+
/**
|
|
4231
|
+
* Component names to ignore when checking for event handler prefixes.
|
|
4232
|
+
*/
|
|
4233
|
+
ignoreComponentNames?: string[];
|
|
4234
|
+
}
|
|
3725
4235
|
interface JsxKeyConfig {
|
|
3726
4236
|
/**
|
|
3727
4237
|
* When true, check fragment shorthand `<>` for keys
|
|
@@ -3742,34 +4252,143 @@ interface JsxMaxDepthConfig {
|
|
|
3742
4252
|
*/
|
|
3743
4253
|
max?: number;
|
|
3744
4254
|
}
|
|
3745
|
-
|
|
4255
|
+
/**
|
|
4256
|
+
* The options shared between the top-level config and each `elementOverrides` entry.
|
|
4257
|
+
*/
|
|
4258
|
+
interface JsxNoLiteralsConfig {
|
|
3746
4259
|
/**
|
|
3747
|
-
*
|
|
4260
|
+
* An array of unique string values that would otherwise warn, but will be ignored.
|
|
3748
4261
|
*/
|
|
3749
|
-
|
|
3750
|
-
}
|
|
3751
|
-
interface JsxPascalCaseConfig {
|
|
4262
|
+
allowedStrings?: string[];
|
|
3752
4263
|
/**
|
|
3753
|
-
*
|
|
4264
|
+
* An object where the keys are the element names and the values are objects with the same options as above. This allows you to specify different options for different elements.
|
|
3754
4265
|
*/
|
|
3755
|
-
|
|
4266
|
+
elementOverrides?: {
|
|
4267
|
+
[k: string]: ElementOverrideOptions;
|
|
4268
|
+
};
|
|
3756
4269
|
/**
|
|
3757
|
-
*
|
|
4270
|
+
* (default: false) - When true the rule ignores literals used in props, wrapped or unwrapped.
|
|
3758
4271
|
*/
|
|
3759
|
-
|
|
4272
|
+
ignoreProps?: boolean;
|
|
3760
4273
|
/**
|
|
3761
|
-
*
|
|
4274
|
+
* (default: false) - Enforces no string literals used in attributes when set to true.
|
|
3762
4275
|
*/
|
|
3763
|
-
|
|
4276
|
+
noAttributeStrings?: boolean;
|
|
3764
4277
|
/**
|
|
3765
|
-
*
|
|
4278
|
+
* (default: false) - Enforces no string literals used as children, wrapped or unwrapped.
|
|
3766
4279
|
*/
|
|
3767
|
-
|
|
3768
|
-
}
|
|
3769
|
-
interface NoMultiCompConfig {
|
|
4280
|
+
noStrings?: boolean;
|
|
3770
4281
|
/**
|
|
3771
|
-
*
|
|
3772
|
-
|
|
4282
|
+
* An array of unique attribute names where string literals should be restricted. Only the specified attributes will be checked for string literals when this option is used. Note: When noAttributeStrings is true, this option is ignored at the root level.
|
|
4283
|
+
*/
|
|
4284
|
+
restrictedAttributes?: string[];
|
|
4285
|
+
}
|
|
4286
|
+
/**
|
|
4287
|
+
* One entry in `elementOverrides`: the base options plus override-only fields.
|
|
4288
|
+
*/
|
|
4289
|
+
interface ElementOverrideOptions {
|
|
4290
|
+
/**
|
|
4291
|
+
* (default: false) - When true the rule will allow the specified element to have string literals as children, wrapped or unwrapped without warning.
|
|
4292
|
+
*/
|
|
4293
|
+
allowElement?: boolean;
|
|
4294
|
+
/**
|
|
4295
|
+
* An array of unique string values that would otherwise warn, but will be ignored.
|
|
4296
|
+
*/
|
|
4297
|
+
allowedStrings?: string[];
|
|
4298
|
+
/**
|
|
4299
|
+
* (default: true) - When false the rule will not apply the current options set to nested elements. This is useful when you want to apply the rule to a specific element, but not to its children.
|
|
4300
|
+
*/
|
|
4301
|
+
applyToNestedElements?: boolean;
|
|
4302
|
+
/**
|
|
4303
|
+
* (default: false) - When true the rule ignores literals used in props, wrapped or unwrapped.
|
|
4304
|
+
*/
|
|
4305
|
+
ignoreProps?: boolean;
|
|
4306
|
+
/**
|
|
4307
|
+
* (default: false) - Enforces no string literals used in attributes when set to true.
|
|
4308
|
+
*/
|
|
4309
|
+
noAttributeStrings?: boolean;
|
|
4310
|
+
/**
|
|
4311
|
+
* (default: false) - Enforces no string literals used as children, wrapped or unwrapped.
|
|
4312
|
+
*/
|
|
4313
|
+
noStrings?: boolean;
|
|
4314
|
+
/**
|
|
4315
|
+
* An array of unique attribute names where string literals should be restricted. Only the specified attributes will be checked for string literals when this option is used. Note: When noAttributeStrings is true, this option is ignored at the root level.
|
|
4316
|
+
*/
|
|
4317
|
+
restrictedAttributes?: string[];
|
|
4318
|
+
}
|
|
4319
|
+
interface JsxNoTargetBlank {
|
|
4320
|
+
/**
|
|
4321
|
+
* Whether to allow referrers.
|
|
4322
|
+
*/
|
|
4323
|
+
allowReferrer?: boolean;
|
|
4324
|
+
/**
|
|
4325
|
+
* Whether to enforce dynamic links or enforce static links.
|
|
4326
|
+
*/
|
|
4327
|
+
enforceDynamicLinks?: EnforceDynamicLinksEnum;
|
|
4328
|
+
/**
|
|
4329
|
+
* Whether to check form elements.
|
|
4330
|
+
*/
|
|
4331
|
+
forms?: boolean;
|
|
4332
|
+
/**
|
|
4333
|
+
* Whether to check link elements.
|
|
4334
|
+
*/
|
|
4335
|
+
links?: boolean;
|
|
4336
|
+
/**
|
|
4337
|
+
* Whether to warn when spread attributes are used.
|
|
4338
|
+
*/
|
|
4339
|
+
warnOnSpreadAttributes?: boolean;
|
|
4340
|
+
}
|
|
4341
|
+
interface JsxNoUselessFragment {
|
|
4342
|
+
/**
|
|
4343
|
+
* Allow fragments with a single expression child.
|
|
4344
|
+
*/
|
|
4345
|
+
allowExpressions?: boolean;
|
|
4346
|
+
}
|
|
4347
|
+
interface JsxPascalCaseConfig {
|
|
4348
|
+
/**
|
|
4349
|
+
* Whether to allow all-caps component names.
|
|
4350
|
+
*/
|
|
4351
|
+
allowAllCaps?: boolean;
|
|
4352
|
+
/**
|
|
4353
|
+
* Whether to allow leading underscores in component names.
|
|
4354
|
+
*/
|
|
4355
|
+
allowLeadingUnderscore?: boolean;
|
|
4356
|
+
/**
|
|
4357
|
+
* Whether to allow namespaced component names.
|
|
4358
|
+
*/
|
|
4359
|
+
allowNamespace?: boolean;
|
|
4360
|
+
/**
|
|
4361
|
+
* List of component names to ignore.
|
|
4362
|
+
*/
|
|
4363
|
+
ignore?: string[];
|
|
4364
|
+
}
|
|
4365
|
+
interface JsxPropsNoSpreadingConfig {
|
|
4366
|
+
/**
|
|
4367
|
+
* `custom` set to `ignore` will ignore all custom jsx tags like `App`, `MyCustomComponent` etc. Default is set to `enforce`.
|
|
4368
|
+
*/
|
|
4369
|
+
custom?: IgnoreEnforceOption;
|
|
4370
|
+
/**
|
|
4371
|
+
* Exceptions flip the enforcement behavior for specific components.
|
|
4372
|
+
* For example:
|
|
4373
|
+
* - If `html` is set to `ignore`, an exception for `div` will enforce the rule on `<div>` elements.
|
|
4374
|
+
* - If `custom` is set to `enforce`, an exception for `Foo` will ignore the rule on `<Foo>` components.
|
|
4375
|
+
*
|
|
4376
|
+
* This allows you to override the general setting for individual components.
|
|
4377
|
+
*/
|
|
4378
|
+
exceptions?: string[];
|
|
4379
|
+
/**
|
|
4380
|
+
* `explicitSpread` set to `ignore` will ignore spread operators that are explicitly listing all object properties within that spread. Default is set to `enforce`.
|
|
4381
|
+
*/
|
|
4382
|
+
explicitSpread?: IgnoreEnforceOption;
|
|
4383
|
+
/**
|
|
4384
|
+
* `html` set to `ignore` will ignore all html jsx tags like `div`, `img` etc. Default is set to `enforce`.
|
|
4385
|
+
*/
|
|
4386
|
+
html?: IgnoreEnforceOption;
|
|
4387
|
+
}
|
|
4388
|
+
interface NoMultiCompConfig {
|
|
4389
|
+
/**
|
|
4390
|
+
* When `true`, the rule will ignore stateless components and will allow you to have multiple
|
|
4391
|
+
* stateless components in the same file. Or one stateful component and one-or-more stateless
|
|
3773
4392
|
* components in the same file.
|
|
3774
4393
|
*
|
|
3775
4394
|
* Stateless basically just means function components, including those created via
|
|
@@ -3803,6 +4422,20 @@ interface NoUnsafeConfig {
|
|
|
3803
4422
|
*/
|
|
3804
4423
|
checkAliases?: boolean;
|
|
3805
4424
|
}
|
|
4425
|
+
interface NoUnstableNestedComponentsConfig {
|
|
4426
|
+
/**
|
|
4427
|
+
* Allow component definitions in props.
|
|
4428
|
+
*/
|
|
4429
|
+
allowAsProps?: boolean;
|
|
4430
|
+
/**
|
|
4431
|
+
* Optional custom propTypes validators accepted for eslint-plugin-react compatibility.
|
|
4432
|
+
*/
|
|
4433
|
+
customValidators?: string[];
|
|
4434
|
+
/**
|
|
4435
|
+
* Glob pattern for render-prop names that may receive inline component definitions.
|
|
4436
|
+
*/
|
|
4437
|
+
propNamePattern?: string;
|
|
4438
|
+
}
|
|
3806
4439
|
interface OnlyExportComponentsConfig {
|
|
3807
4440
|
/**
|
|
3808
4441
|
* Allow exporting primitive constants (string/number/boolean/template literal)
|
|
@@ -3849,6 +4482,15 @@ interface PreferFunctionComponent {
|
|
|
3849
4482
|
*/
|
|
3850
4483
|
allowJsxUtilityClass?: boolean;
|
|
3851
4484
|
}
|
|
4485
|
+
interface ReactCompilerConfig {
|
|
4486
|
+
/**
|
|
4487
|
+
* Also report compiler bail-outs — places where React Compiler skipped a
|
|
4488
|
+
* component or hook (for example because of unsupported syntax) without
|
|
4489
|
+
* finding a rule violation. These do not indicate incorrect code, only
|
|
4490
|
+
* code that the compiler declined to optimize.
|
|
4491
|
+
*/
|
|
4492
|
+
reportAllBailouts?: boolean;
|
|
4493
|
+
}
|
|
3852
4494
|
interface SelfClosingComp {
|
|
3853
4495
|
/**
|
|
3854
4496
|
* Whether to enforce self-closing for custom components.
|
|
@@ -3949,18 +4591,101 @@ interface SortVars {
|
|
|
3949
4591
|
*/
|
|
3950
4592
|
ignoreCase?: boolean;
|
|
3951
4593
|
}
|
|
4594
|
+
interface ArrayTypeConfig {
|
|
4595
|
+
/**
|
|
4596
|
+
* The array type expected for mutable cases.
|
|
4597
|
+
*/
|
|
4598
|
+
default?: ArrayOption;
|
|
4599
|
+
/**
|
|
4600
|
+
* The array type expected for readonly cases. If omitted, the value for `default` will be used.
|
|
4601
|
+
*/
|
|
4602
|
+
readonly?: ReadonlyArrayOption;
|
|
4603
|
+
}
|
|
4604
|
+
/**
|
|
4605
|
+
* This rule allows you to specify how different TypeScript directive comments
|
|
4606
|
+
* should be handled.
|
|
4607
|
+
*
|
|
4608
|
+
* For each directive (`@ts-expect-error`, `@ts-ignore`, `@ts-nocheck`, `@ts-check`), you can choose one of the following options:
|
|
4609
|
+
* - `true`: Disallow the directive entirely, preventing its use in the entire codebase.
|
|
4610
|
+
* - `false`: Allow the directive without any restrictions.
|
|
4611
|
+
* - `"allow-with-description"`: Allow the directive only if it is followed by a description explaining its use. The description must meet the minimum length specified by `minimumDescriptionLength`.
|
|
4612
|
+
* - `{ "descriptionFormat": "<regex>" }`: Allow the directive only if the description matches the specified regex pattern.
|
|
4613
|
+
*
|
|
4614
|
+
* For example:
|
|
4615
|
+
* ```json
|
|
4616
|
+
* {
|
|
4617
|
+
* "ts-expect-error": "allow-with-description",
|
|
4618
|
+
* "ts-ignore": true,
|
|
4619
|
+
* "ts-nocheck": {
|
|
4620
|
+
* "descriptionFormat": "^: TS\\d+ because .+$"
|
|
4621
|
+
* },
|
|
4622
|
+
* "ts-check": false,
|
|
4623
|
+
* "minimumDescriptionLength": 3
|
|
4624
|
+
* }
|
|
4625
|
+
* ```
|
|
4626
|
+
*/
|
|
4627
|
+
interface BanTsCommentConfig {
|
|
4628
|
+
/**
|
|
4629
|
+
* Minimum description length required when using directives with `allow-with-description`.
|
|
4630
|
+
*/
|
|
4631
|
+
minimumDescriptionLength?: number;
|
|
4632
|
+
/**
|
|
4633
|
+
* How to handle the `@ts-check` directive.
|
|
4634
|
+
*/
|
|
4635
|
+
"ts-check"?: DirectiveConfigSchema;
|
|
4636
|
+
/**
|
|
4637
|
+
* How to handle the `@ts-expect-error` directive.
|
|
4638
|
+
*/
|
|
4639
|
+
"ts-expect-error"?: DirectiveConfigSchema;
|
|
4640
|
+
/**
|
|
4641
|
+
* How to handle the `@ts-ignore` directive.
|
|
4642
|
+
*/
|
|
4643
|
+
"ts-ignore"?: DirectiveConfigSchema;
|
|
4644
|
+
/**
|
|
4645
|
+
* How to handle the `@ts-nocheck` directive.
|
|
4646
|
+
*/
|
|
4647
|
+
"ts-nocheck"?: DirectiveConfigSchema;
|
|
4648
|
+
}
|
|
3952
4649
|
interface ConsistentReturnConfig {
|
|
3953
4650
|
/**
|
|
3954
4651
|
* Treat explicit `return undefined` as equivalent to an unspecified return.
|
|
3955
4652
|
*/
|
|
3956
4653
|
treatUndefinedAsUnspecified?: boolean;
|
|
3957
4654
|
}
|
|
4655
|
+
interface ConsistentTypeAssertionsConfig {
|
|
4656
|
+
/**
|
|
4657
|
+
* Whether array literal type assertions are allowed, allowed only as parameters, or disallowed.
|
|
4658
|
+
*/
|
|
4659
|
+
arrayLiteralTypeAssertions?: ArrayLiteralTypeAssertions;
|
|
4660
|
+
/**
|
|
4661
|
+
* Which assertion syntax is enforced.
|
|
4662
|
+
*/
|
|
4663
|
+
assertionStyle?: AssertionStyle;
|
|
4664
|
+
/**
|
|
4665
|
+
* Whether object literal type assertions are allowed, allowed only as parameters, or disallowed.
|
|
4666
|
+
*/
|
|
4667
|
+
objectLiteralTypeAssertions?: ObjectLiteralTypeAssertions;
|
|
4668
|
+
}
|
|
3958
4669
|
interface ConsistentTypeExportsConfig {
|
|
3959
4670
|
/**
|
|
3960
4671
|
* Enables an autofix strategy that rewrites mixed exports using inline `type` specifiers.
|
|
3961
4672
|
*/
|
|
3962
4673
|
fixMixedExportsWithInlineTypeSpecifier?: boolean;
|
|
3963
4674
|
}
|
|
4675
|
+
interface ConsistentTypeImportsConfig {
|
|
4676
|
+
/**
|
|
4677
|
+
* Disallow using `import()` in type annotations, like `type T = import('foo')`
|
|
4678
|
+
*/
|
|
4679
|
+
disallowTypeAnnotations?: boolean;
|
|
4680
|
+
/**
|
|
4681
|
+
* Control how type imports are added when auto-fixing.
|
|
4682
|
+
*/
|
|
4683
|
+
fixStyle?: FixStyle;
|
|
4684
|
+
/**
|
|
4685
|
+
* Control whether to enforce type imports or value imports.
|
|
4686
|
+
*/
|
|
4687
|
+
prefer?: Prefer;
|
|
4688
|
+
}
|
|
3964
4689
|
interface DotNotationConfig {
|
|
3965
4690
|
/**
|
|
3966
4691
|
* Allow bracket notation for properties covered by an index signature.
|
|
@@ -4172,12 +4897,52 @@ interface PackageSpecifier {
|
|
|
4172
4897
|
*/
|
|
4173
4898
|
package: string;
|
|
4174
4899
|
}
|
|
4900
|
+
interface NoDuplicateTypeConstituentsConfig {
|
|
4901
|
+
/**
|
|
4902
|
+
* Whether to ignore duplicate types in intersection types.
|
|
4903
|
+
* When true, allows `type T = A & A`.
|
|
4904
|
+
*/
|
|
4905
|
+
ignoreIntersections?: boolean;
|
|
4906
|
+
/**
|
|
4907
|
+
* Whether to ignore duplicate types in union types.
|
|
4908
|
+
* When true, allows `type T = A | A`.
|
|
4909
|
+
*/
|
|
4910
|
+
ignoreUnions?: boolean;
|
|
4911
|
+
}
|
|
4175
4912
|
interface NoEmptyInterface {
|
|
4176
4913
|
/**
|
|
4177
4914
|
* When set to `true`, allows empty interfaces that extend a single interface.
|
|
4178
4915
|
*/
|
|
4179
4916
|
allowSingleExtends?: boolean;
|
|
4180
4917
|
}
|
|
4918
|
+
interface NoEmptyObjectTypeConfig {
|
|
4919
|
+
/**
|
|
4920
|
+
* Whether to allow empty interfaces.
|
|
4921
|
+
*/
|
|
4922
|
+
allowInterfaces?: AllowInterfaces;
|
|
4923
|
+
/**
|
|
4924
|
+
* Whether to allow empty object type literals.
|
|
4925
|
+
*/
|
|
4926
|
+
allowObjectTypes?: AllowObjectTypes;
|
|
4927
|
+
/**
|
|
4928
|
+
* A stringified regular expression to allow interfaces and object type aliases with the configured name.
|
|
4929
|
+
*
|
|
4930
|
+
* This can be useful if your existing code style includes a pattern of declaring empty types with `{}` instead of `object`.
|
|
4931
|
+
*
|
|
4932
|
+
* Example of **incorrect** code for this rule with `{ allowWithName: 'Props$' }`:
|
|
4933
|
+
* ```ts
|
|
4934
|
+
* interface InterfaceValue {}
|
|
4935
|
+
* type TypeValue = {};
|
|
4936
|
+
* ```
|
|
4937
|
+
*
|
|
4938
|
+
* Example of **correct** code for this rule with `{ allowWithName: 'Props$' }`:
|
|
4939
|
+
* ```ts
|
|
4940
|
+
* interface InterfaceProps {}
|
|
4941
|
+
* type TypeProps = {};
|
|
4942
|
+
* ```
|
|
4943
|
+
*/
|
|
4944
|
+
allowWithName?: string;
|
|
4945
|
+
}
|
|
4181
4946
|
interface NoExplicitAny {
|
|
4182
4947
|
/**
|
|
4183
4948
|
* Whether to enable auto-fixing in which the `any` type is converted to the `unknown` type.
|
|
@@ -4238,12 +5003,66 @@ interface NoInferrableTypes {
|
|
|
4238
5003
|
*/
|
|
4239
5004
|
ignoreProperties?: boolean;
|
|
4240
5005
|
}
|
|
5006
|
+
interface NoInvalidVoidTypeConfig {
|
|
5007
|
+
/**
|
|
5008
|
+
* Whether a `this` parameter of a function may be `void`.
|
|
5009
|
+
*/
|
|
5010
|
+
allowAsThisParameter?: boolean;
|
|
5011
|
+
/**
|
|
5012
|
+
* Whether `void` can be used as generic type arguments.
|
|
5013
|
+
* Can be `true` / `false`, or an allowlist of generic type names.
|
|
5014
|
+
*/
|
|
5015
|
+
allowInGenericTypeArguments?: AllowInGenericTypeArguments;
|
|
5016
|
+
}
|
|
4241
5017
|
interface NoMeaninglessVoidOperatorConfig {
|
|
4242
5018
|
/**
|
|
4243
5019
|
* Whether to check `void` applied to expressions of type `never`.
|
|
4244
5020
|
*/
|
|
4245
5021
|
checkNever?: boolean;
|
|
4246
5022
|
}
|
|
5023
|
+
interface NoMisusedPromisesConfig {
|
|
5024
|
+
/**
|
|
5025
|
+
* Whether to check if Promises are used in conditionals.
|
|
5026
|
+
* When true, disallows using Promises in conditions where a boolean is expected.
|
|
5027
|
+
*/
|
|
5028
|
+
checksConditionals?: boolean;
|
|
5029
|
+
/**
|
|
5030
|
+
* Whether to check if Promises are used in spread syntax.
|
|
5031
|
+
* When true, disallows spreading Promise values.
|
|
5032
|
+
*/
|
|
5033
|
+
checksSpreads?: boolean;
|
|
5034
|
+
/**
|
|
5035
|
+
* Configuration for checking if Promises are returned in contexts expecting void.
|
|
5036
|
+
* Can be a boolean to enable/disable all checks, or an object for granular control.
|
|
5037
|
+
*/
|
|
5038
|
+
checksVoidReturn?: ChecksVoidReturn;
|
|
5039
|
+
}
|
|
5040
|
+
interface ChecksVoidReturnOptions {
|
|
5041
|
+
/**
|
|
5042
|
+
* Whether to check Promise-returning functions passed as arguments to void-returning functions.
|
|
5043
|
+
*/
|
|
5044
|
+
arguments?: boolean;
|
|
5045
|
+
/**
|
|
5046
|
+
* Whether to check Promise-returning functions in JSX attributes expecting void.
|
|
5047
|
+
*/
|
|
5048
|
+
attributes?: boolean;
|
|
5049
|
+
/**
|
|
5050
|
+
* Whether to check Promise-returning methods that override void-returning inherited methods.
|
|
5051
|
+
*/
|
|
5052
|
+
inheritedMethods?: boolean;
|
|
5053
|
+
/**
|
|
5054
|
+
* Whether to check Promise-returning functions assigned to object properties expecting void.
|
|
5055
|
+
*/
|
|
5056
|
+
properties?: boolean;
|
|
5057
|
+
/**
|
|
5058
|
+
* Whether to check Promise values returned from void-returning functions.
|
|
5059
|
+
*/
|
|
5060
|
+
returns?: boolean;
|
|
5061
|
+
/**
|
|
5062
|
+
* Whether to check Promise-returning functions assigned to variables typed as void-returning.
|
|
5063
|
+
*/
|
|
5064
|
+
variables?: boolean;
|
|
5065
|
+
}
|
|
4247
5066
|
interface NoMisusedSpreadConfig {
|
|
4248
5067
|
/**
|
|
4249
5068
|
* An array of type or value specifiers that are allowed to be spread
|
|
@@ -4347,6 +5166,14 @@ interface NoRequireImportsConfig {
|
|
|
4347
5166
|
*/
|
|
4348
5167
|
allowAsImport?: boolean;
|
|
4349
5168
|
}
|
|
5169
|
+
interface NoRestrictedTypesConfig {
|
|
5170
|
+
/**
|
|
5171
|
+
* A mapping of type names to ban configurations.
|
|
5172
|
+
*/
|
|
5173
|
+
types?: {
|
|
5174
|
+
[k: string]: BanConfigValue;
|
|
5175
|
+
};
|
|
5176
|
+
}
|
|
4350
5177
|
interface NoThisAliasConfig {
|
|
4351
5178
|
/**
|
|
4352
5179
|
* Whether to allow destructuring of `this` to local variables.
|
|
@@ -4369,6 +5196,17 @@ interface NoUnnecessaryBooleanLiteralCompareConfig {
|
|
|
4369
5196
|
*/
|
|
4370
5197
|
allowComparingNullableBooleansToTrue?: boolean;
|
|
4371
5198
|
}
|
|
5199
|
+
interface NoUnnecessaryConditionConfig {
|
|
5200
|
+
/**
|
|
5201
|
+
* Whether to allow constant loop conditions.
|
|
5202
|
+
* `true` is treated as `"always"`, `false` as `"never"`.
|
|
5203
|
+
*/
|
|
5204
|
+
allowConstantLoopConditions?: AllowConstantLoopConditions;
|
|
5205
|
+
/**
|
|
5206
|
+
* Whether to check type predicate functions.
|
|
5207
|
+
*/
|
|
5208
|
+
checkTypePredicates?: boolean;
|
|
5209
|
+
}
|
|
4372
5210
|
interface NoUnnecessaryTypeAssertionConfig {
|
|
4373
5211
|
/**
|
|
4374
5212
|
* Whether to check literal const assertions like `'foo' as const`.
|
|
@@ -4410,6 +5248,16 @@ interface OnlyThrowErrorConfig {
|
|
|
4410
5248
|
*/
|
|
4411
5249
|
allowThrowingUnknown?: boolean;
|
|
4412
5250
|
}
|
|
5251
|
+
interface ParameterPropertiesConfig {
|
|
5252
|
+
/**
|
|
5253
|
+
* Modifiers that are allowed to be used with parameter properties or class properties, depending on the `prefer` option.
|
|
5254
|
+
*/
|
|
5255
|
+
allow?: Modifier[];
|
|
5256
|
+
/**
|
|
5257
|
+
* Whether to prefer parameter properties or class properties.
|
|
5258
|
+
*/
|
|
5259
|
+
prefer?: Prefer2;
|
|
5260
|
+
}
|
|
4413
5261
|
interface PreferLiteralEnumMember {
|
|
4414
5262
|
/**
|
|
4415
5263
|
* When set to `true`, allows bitwise expressions in enum member initializers.
|
|
@@ -4417,6 +5265,56 @@ interface PreferLiteralEnumMember {
|
|
|
4417
5265
|
*/
|
|
4418
5266
|
allowBitwiseExpressions?: boolean;
|
|
4419
5267
|
}
|
|
5268
|
+
interface PreferNullishCoalescingConfig {
|
|
5269
|
+
/**
|
|
5270
|
+
* Whether to ignore arguments to the `Boolean` constructor.
|
|
5271
|
+
*/
|
|
5272
|
+
ignoreBooleanCoercion?: boolean;
|
|
5273
|
+
/**
|
|
5274
|
+
* Whether to ignore cases that are located within a conditional test.
|
|
5275
|
+
*/
|
|
5276
|
+
ignoreConditionalTests?: boolean;
|
|
5277
|
+
/**
|
|
5278
|
+
* Whether to ignore any if statements that could be simplified by using
|
|
5279
|
+
* the nullish coalescing operator.
|
|
5280
|
+
*/
|
|
5281
|
+
ignoreIfStatements?: boolean;
|
|
5282
|
+
/**
|
|
5283
|
+
* Whether to ignore any logical or expressions that are part of a mixed
|
|
5284
|
+
* logical expression (with `&&`).
|
|
5285
|
+
*/
|
|
5286
|
+
ignoreMixedLogicalExpressions?: boolean;
|
|
5287
|
+
/**
|
|
5288
|
+
* Whether to ignore all (`true`) or some (an object with properties) primitive types.
|
|
5289
|
+
*/
|
|
5290
|
+
ignorePrimitives?: IgnorePrimitives;
|
|
5291
|
+
/**
|
|
5292
|
+
* Whether to ignore any ternary expressions that could be simplified by
|
|
5293
|
+
* using the nullish coalescing operator.
|
|
5294
|
+
*/
|
|
5295
|
+
ignoreTernaryTests?: boolean;
|
|
5296
|
+
}
|
|
5297
|
+
/**
|
|
5298
|
+
* Options for ignoring specific primitive types.
|
|
5299
|
+
*/
|
|
5300
|
+
interface IgnorePrimitivesOptions {
|
|
5301
|
+
/**
|
|
5302
|
+
* Ignore bigint primitive types.
|
|
5303
|
+
*/
|
|
5304
|
+
bigint?: boolean;
|
|
5305
|
+
/**
|
|
5306
|
+
* Ignore boolean primitive types.
|
|
5307
|
+
*/
|
|
5308
|
+
boolean?: boolean;
|
|
5309
|
+
/**
|
|
5310
|
+
* Ignore number primitive types.
|
|
5311
|
+
*/
|
|
5312
|
+
number?: boolean;
|
|
5313
|
+
/**
|
|
5314
|
+
* Ignore string primitive types.
|
|
5315
|
+
*/
|
|
5316
|
+
string?: boolean;
|
|
5317
|
+
}
|
|
4420
5318
|
interface PreferOptionalChainConfig {
|
|
4421
5319
|
/**
|
|
4422
5320
|
* Allow autofixers that will change the return type of the expression.
|
|
@@ -4496,6 +5394,12 @@ interface PreferReadonlyParameterTypesConfig {
|
|
|
4496
5394
|
*/
|
|
4497
5395
|
treatMethodsAsReadonly?: boolean;
|
|
4498
5396
|
}
|
|
5397
|
+
interface PreferStringStartsEndsWithConfig {
|
|
5398
|
+
/**
|
|
5399
|
+
* Whether equality checks against the first/last character are allowed.
|
|
5400
|
+
*/
|
|
5401
|
+
allowSingleElementEquality?: AllowSingleElementEquality;
|
|
5402
|
+
}
|
|
4499
5403
|
interface PromiseFunctionAsyncConfig {
|
|
4500
5404
|
/**
|
|
4501
5405
|
* Whether to allow functions returning `any` type without requiring `async`.
|
|
@@ -4654,6 +5558,14 @@ interface SwitchExhaustivenessCheckConfig {
|
|
|
4654
5558
|
*/
|
|
4655
5559
|
requireDefaultForNonUnion?: boolean;
|
|
4656
5560
|
}
|
|
5561
|
+
interface TripleSlashReferenceConfig {
|
|
5562
|
+
/**
|
|
5563
|
+
* What to enforce for `/// <reference lib="..." />` references.
|
|
5564
|
+
*/
|
|
5565
|
+
lib?: AlwaysNever;
|
|
5566
|
+
path?: PathOption;
|
|
5567
|
+
types?: TypesOption;
|
|
5568
|
+
}
|
|
4657
5569
|
interface UnboundMethodConfig {
|
|
4658
5570
|
/**
|
|
4659
5571
|
* Whether to ignore unbound methods that are static.
|
|
@@ -4675,12 +5587,141 @@ interface UnifiedSignaturesOptions {
|
|
|
4675
5587
|
*/
|
|
4676
5588
|
ignoreOverloadsWithDifferentJSDoc?: boolean;
|
|
4677
5589
|
}
|
|
5590
|
+
interface CatchErrorNameConfig {
|
|
5591
|
+
/**
|
|
5592
|
+
* A list of patterns to ignore when checking `catch` variable names. The pattern
|
|
5593
|
+
* can be a string or regular expression.
|
|
5594
|
+
*/
|
|
5595
|
+
ignore?: string[];
|
|
5596
|
+
/**
|
|
5597
|
+
* The name to use for error variables in `catch` blocks. You can customize it
|
|
5598
|
+
* to something other than `'error'` (e.g., `'exception'`).
|
|
5599
|
+
*/
|
|
5600
|
+
name?: string;
|
|
5601
|
+
}
|
|
4678
5602
|
interface ConsistentFunctionScoping {
|
|
4679
5603
|
/**
|
|
4680
5604
|
* Whether to check scoping with arrow functions.
|
|
4681
5605
|
*/
|
|
4682
5606
|
checkArrowFunctions?: boolean;
|
|
4683
5607
|
}
|
|
5608
|
+
interface ExplicitLengthCheck {
|
|
5609
|
+
/**
|
|
5610
|
+
* Configuration option to specify how non-zero length checks should be enforced.
|
|
5611
|
+
*/
|
|
5612
|
+
"non-zero"?: NonZero;
|
|
5613
|
+
}
|
|
5614
|
+
interface ImportStyleConfig {
|
|
5615
|
+
/**
|
|
5616
|
+
* Whether dynamic import expressions are checked.
|
|
5617
|
+
*
|
|
5618
|
+
* Set this to `false` to skip calls such as `await import("module")`.
|
|
5619
|
+
*
|
|
5620
|
+
* With the default configuration, examples of **incorrect** code:
|
|
5621
|
+
* ```js
|
|
5622
|
+
* async () => {
|
|
5623
|
+
* const {red} = await import("chalk");
|
|
5624
|
+
* };
|
|
5625
|
+
* ```
|
|
5626
|
+
*
|
|
5627
|
+
* Examples of **correct** code:
|
|
5628
|
+
* ```js
|
|
5629
|
+
* async () => {
|
|
5630
|
+
* const {default: chalk} = await import("chalk");
|
|
5631
|
+
* };
|
|
5632
|
+
* ```
|
|
5633
|
+
*/
|
|
5634
|
+
checkDynamicImport?: boolean;
|
|
5635
|
+
/**
|
|
5636
|
+
* Whether export-from declarations are checked.
|
|
5637
|
+
*
|
|
5638
|
+
* This is disabled by default. Set this to `true` to check declarations like
|
|
5639
|
+
* `export ... from "module"`.
|
|
5640
|
+
*
|
|
5641
|
+
* With `{ "checkExportFrom": true }`, examples of **incorrect** code:
|
|
5642
|
+
* ```js
|
|
5643
|
+
* export * from "node:util";
|
|
5644
|
+
* ```
|
|
5645
|
+
*
|
|
5646
|
+
* Examples of **correct** code:
|
|
5647
|
+
* ```js
|
|
5648
|
+
* export {promisify} from "node:util";
|
|
5649
|
+
* ```
|
|
5650
|
+
*/
|
|
5651
|
+
checkExportFrom?: boolean;
|
|
5652
|
+
/**
|
|
5653
|
+
* Whether static import declarations are checked.
|
|
5654
|
+
*
|
|
5655
|
+
* Set this to `false` to skip `import ... from "module"` and side-effect imports like
|
|
5656
|
+
* `import "module"`.
|
|
5657
|
+
*
|
|
5658
|
+
* With the default configuration, examples of **incorrect** code:
|
|
5659
|
+
* ```js
|
|
5660
|
+
* import {red} from "chalk";
|
|
5661
|
+
* ```
|
|
5662
|
+
*
|
|
5663
|
+
* Examples of **correct** code:
|
|
5664
|
+
* ```js
|
|
5665
|
+
* import chalk from "chalk";
|
|
5666
|
+
* ```
|
|
5667
|
+
*/
|
|
5668
|
+
checkImport?: boolean;
|
|
5669
|
+
/**
|
|
5670
|
+
* Whether CommonJS `require()` calls are checked.
|
|
5671
|
+
*
|
|
5672
|
+
* Set this to `false` to skip `require("module")` calls completely.
|
|
5673
|
+
*
|
|
5674
|
+
* With the default configuration, examples of **incorrect** code:
|
|
5675
|
+
* ```js
|
|
5676
|
+
* const util = require("node:util");
|
|
5677
|
+
* ```
|
|
5678
|
+
*
|
|
5679
|
+
* Examples of **correct** code:
|
|
5680
|
+
* ```js
|
|
5681
|
+
* const {promisify} = require("node:util");
|
|
5682
|
+
* ```
|
|
5683
|
+
*/
|
|
5684
|
+
checkRequire?: boolean;
|
|
5685
|
+
/**
|
|
5686
|
+
* Whether `styles` extends or replaces the built-in module preferences.
|
|
5687
|
+
*
|
|
5688
|
+
* When this is `true`, entries in `styles` are merged with the default preferences. For
|
|
5689
|
+
* example, `{ "styles": { "path": { "named": true } } }` allows named imports from
|
|
5690
|
+
* `path` while leaving its default import style allowed. When this is `false`, only modules
|
|
5691
|
+
* configured in `styles` are checked.
|
|
5692
|
+
*
|
|
5693
|
+
* With `{ "extendDefaultStyles": false, "styles": {} }`, examples of **correct** code:
|
|
5694
|
+
* ```js
|
|
5695
|
+
* import {red} from "chalk";
|
|
5696
|
+
* ```
|
|
5697
|
+
*/
|
|
5698
|
+
extendDefaultStyles?: boolean;
|
|
5699
|
+
/**
|
|
5700
|
+
* Per-module import style preferences.
|
|
5701
|
+
*
|
|
5702
|
+
* Each key is a module specifier. Set the value to `false` to disable checking for the
|
|
5703
|
+
* module, or to an object that allows one or more import styles. The available styles are
|
|
5704
|
+
* `unassigned`, `default`, `namespace`, and `named`. When `extendDefaultStyles` is `true`,
|
|
5705
|
+
* these entries extend the built-in defaults instead of replacing them.
|
|
5706
|
+
*
|
|
5707
|
+
* The default module preferences are default imports for `chalk`, `path`, and `node:path`,
|
|
5708
|
+
* and named imports for `util` and `node:util`.
|
|
5709
|
+
*
|
|
5710
|
+
* With `{ "styles": { "node:util": { "named": true, "default": false } } }`,
|
|
5711
|
+
* examples of **incorrect** code:
|
|
5712
|
+
* ```js
|
|
5713
|
+
* import util from "node:util";
|
|
5714
|
+
* ```
|
|
5715
|
+
*
|
|
5716
|
+
* Examples of **correct** code:
|
|
5717
|
+
* ```js
|
|
5718
|
+
* import {promisify} from "node:util";
|
|
5719
|
+
* ```
|
|
5720
|
+
*/
|
|
5721
|
+
styles?: {
|
|
5722
|
+
[k: string]: ModuleStylesOverride;
|
|
5723
|
+
};
|
|
5724
|
+
}
|
|
4684
5725
|
interface NoArrayReduce {
|
|
4685
5726
|
/**
|
|
4686
5727
|
* When set to `true`, allows simple operations (like summing numbers) in `reduce` and `reduceRight` calls.
|
|
@@ -4711,6 +5752,27 @@ interface NoArraySort {
|
|
|
4711
5752
|
*/
|
|
4712
5753
|
allowExpressionStatement?: boolean;
|
|
4713
5754
|
}
|
|
5755
|
+
interface NoInstanceofBuiltinsConfig {
|
|
5756
|
+
/**
|
|
5757
|
+
* Constructor names to exclude from checking.
|
|
5758
|
+
*/
|
|
5759
|
+
exclude?: string[];
|
|
5760
|
+
/**
|
|
5761
|
+
* Additional constructor names to check beyond the default set.
|
|
5762
|
+
* Use this to extend the rule with additional constructors.
|
|
5763
|
+
*/
|
|
5764
|
+
include?: string[];
|
|
5765
|
+
/**
|
|
5766
|
+
* Controls which built-in constructors are checked.
|
|
5767
|
+
*/
|
|
5768
|
+
strategy?: NoInstanceofBuiltinsStrategy;
|
|
5769
|
+
/**
|
|
5770
|
+
* When `true`, checks `instanceof Error` and suggests using `Error.isError()` instead.
|
|
5771
|
+
* Requires [the `Error.isError()` function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/isError)
|
|
5772
|
+
* to be available.
|
|
5773
|
+
*/
|
|
5774
|
+
useErrorIsError?: boolean;
|
|
5775
|
+
}
|
|
4714
5776
|
interface NoNull {
|
|
4715
5777
|
/**
|
|
4716
5778
|
* When set to `true`, disallow the use of `null` as a direct function call or constructor argument.
|
|
@@ -4744,6 +5806,24 @@ interface NoUselessUndefined {
|
|
|
4744
5806
|
*/
|
|
4745
5807
|
checkArrowFunctionBody?: boolean;
|
|
4746
5808
|
}
|
|
5809
|
+
interface PreferAtConfig {
|
|
5810
|
+
/**
|
|
5811
|
+
* Check all index access, not just special patterns like `array.length - 1`.
|
|
5812
|
+
* When enabled, `array[0]`, `array[1]`, etc. will also be flagged.
|
|
5813
|
+
*/
|
|
5814
|
+
checkAllIndexAccess?: boolean;
|
|
5815
|
+
/**
|
|
5816
|
+
* List of function names to treat as "get last element" functions.
|
|
5817
|
+
* These functions will be checked for `.at(-1)` usage.
|
|
5818
|
+
*/
|
|
5819
|
+
getLastElementFunctions?: string[];
|
|
5820
|
+
}
|
|
5821
|
+
interface PreferExportFrom {
|
|
5822
|
+
/**
|
|
5823
|
+
* When false, if any import binding is used somewhere other than a re-export, all variables in the import declaration are ignored.
|
|
5824
|
+
*/
|
|
5825
|
+
checkUsedVariables?: boolean;
|
|
5826
|
+
}
|
|
4747
5827
|
interface PreferNumberPropertiesConfig {
|
|
4748
5828
|
/**
|
|
4749
5829
|
* If set to `true`, checks for usage of `Infinity` and `-Infinity` as global variables.
|
|
@@ -4754,6 +5834,18 @@ interface PreferNumberPropertiesConfig {
|
|
|
4754
5834
|
*/
|
|
4755
5835
|
checkNaN?: boolean;
|
|
4756
5836
|
}
|
|
5837
|
+
interface PreferObjectFromEntriesConfig {
|
|
5838
|
+
/**
|
|
5839
|
+
* Additional functions to treat as equivalents to `Object.fromEntries`.
|
|
5840
|
+
*/
|
|
5841
|
+
functions?: string[];
|
|
5842
|
+
}
|
|
5843
|
+
interface PreferSingleCallConfig {
|
|
5844
|
+
/**
|
|
5845
|
+
* Methods to ignore.
|
|
5846
|
+
*/
|
|
5847
|
+
ignore?: string[];
|
|
5848
|
+
}
|
|
4757
5849
|
interface PreferStructuredCloneConfig {
|
|
4758
5850
|
/**
|
|
4759
5851
|
* List of functions that are allowed to be used for deep cloning instead of structuredClone.
|
|
@@ -4802,12 +5894,60 @@ interface ValidTypeof {
|
|
|
4802
5894
|
*/
|
|
4803
5895
|
requireStringLiterals?: boolean;
|
|
4804
5896
|
}
|
|
5897
|
+
interface ConsistentEachForJson {
|
|
5898
|
+
/**
|
|
5899
|
+
* Preferred method to create parameterized tests for `describe` blocks.
|
|
5900
|
+
*/
|
|
5901
|
+
describe?: MemberNames;
|
|
5902
|
+
/**
|
|
5903
|
+
* Preferred method to create parameterized tests for `it` blocks.
|
|
5904
|
+
*/
|
|
5905
|
+
it?: MemberNames;
|
|
5906
|
+
/**
|
|
5907
|
+
* Preferred method to create parameterized tests for `suite` blocks.
|
|
5908
|
+
*/
|
|
5909
|
+
suite?: MemberNames;
|
|
5910
|
+
/**
|
|
5911
|
+
* Preferred method to create parameterized tests for `test` blocks.
|
|
5912
|
+
*/
|
|
5913
|
+
test?: MemberNames;
|
|
5914
|
+
}
|
|
5915
|
+
interface ConsistentTestFilenameConfig {
|
|
5916
|
+
/**
|
|
5917
|
+
* Regex pattern to ensure we are linting only test filenames.
|
|
5918
|
+
* Decides whether a file is a testing file.
|
|
5919
|
+
*/
|
|
5920
|
+
allTestPattern?: string;
|
|
5921
|
+
/**
|
|
5922
|
+
* Required regex to check if a test filename have a valid formart.
|
|
5923
|
+
* Pattern doesn't have a default value, you must provide one.
|
|
5924
|
+
*/
|
|
5925
|
+
pattern?: string;
|
|
5926
|
+
}
|
|
5927
|
+
interface ConsistentVitestConfig {
|
|
5928
|
+
/**
|
|
5929
|
+
* Decides whether to prefer vitest function accessor
|
|
5930
|
+
*/
|
|
5931
|
+
fn?: VitestFnName;
|
|
5932
|
+
}
|
|
5933
|
+
interface PreferImportInMockConfig {
|
|
5934
|
+
/**
|
|
5935
|
+
* Whether the rule should generate fixes or not.
|
|
5936
|
+
*/
|
|
5937
|
+
fixable: boolean;
|
|
5938
|
+
}
|
|
4805
5939
|
interface RequireMockTypeParametersConfig {
|
|
4806
5940
|
/**
|
|
4807
5941
|
* Also require type parameters for `importActual` and `importMock`.
|
|
4808
5942
|
*/
|
|
4809
5943
|
checkImportFunctions?: boolean;
|
|
4810
5944
|
}
|
|
5945
|
+
interface DefinePropsDestructuring {
|
|
5946
|
+
/**
|
|
5947
|
+
* Require or prohibit destructuring.
|
|
5948
|
+
*/
|
|
5949
|
+
destructure?: Destructure;
|
|
5950
|
+
}
|
|
4811
5951
|
interface MaxProps {
|
|
4812
5952
|
/**
|
|
4813
5953
|
* The maximum number of props allowed in a Vue SFC.
|
|
@@ -4822,6 +5962,13 @@ interface NoDeprecatedModelDefinitionConfig {
|
|
|
4822
5962
|
*/
|
|
4823
5963
|
allowVue3Compat?: boolean;
|
|
4824
5964
|
}
|
|
5965
|
+
interface NoDupeKeysConfig {
|
|
5966
|
+
/**
|
|
5967
|
+
* Additional group names to search for duplicate keys in, on top of the
|
|
5968
|
+
* built-in `props`, `computed`, `data`, `methods` and `setup` groups.
|
|
5969
|
+
*/
|
|
5970
|
+
groups?: string[];
|
|
5971
|
+
}
|
|
4825
5972
|
interface NoReservedComponentNames {
|
|
4826
5973
|
/**
|
|
4827
5974
|
* Disallow Vue 3 built-in component names (e.g. `Teleport`, `Suspense`).
|