oxlint 1.69.0 → 1.71.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/configuration_schema.json +6332 -1305
- package/dist/bindings.js +37 -31
- package/dist/index.d.ts +1763 -344
- package/dist/js_config.js +1 -1
- package/dist/lint.js +27 -13
- package/dist/plugins-dev.js +3 -3
- package/package.json +20 -20
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What to enforce for `/// <reference path="..." />` references.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* What to enforce for `/// <reference types="..." />` references.
|
|
6
|
+
*/
|
|
1
7
|
//#region src-js/package/config.generated.d.ts
|
|
2
8
|
type AllowWarnDeny = ("allow" | "off" | "warn" | "error" | "deny") | number;
|
|
3
|
-
type GlobalValue = "readonly" | "writable" | "off";
|
|
9
|
+
type GlobalValue = ("readonly" | "writable" | "off") | undefined;
|
|
4
10
|
type ExternalPluginEntry = string | {
|
|
5
11
|
/**
|
|
6
12
|
* Custom name/alias for the plugin.
|
|
@@ -37,14 +43,15 @@ type ExternalPluginEntry = string | {
|
|
|
37
43
|
type GlobSet = string[];
|
|
38
44
|
type LintPluginOptionsSchema = "eslint" | "react" | "unicorn" | "typescript" | "oxc" | "import" | "jsdoc" | "jest" | "vitest" | "jsx-a11y" | "nextjs" | "react-perf" | "promise" | "node" | "vue";
|
|
39
45
|
type LintPlugins = LintPluginOptionsSchema[];
|
|
40
|
-
type Mode2 = "as-needed" | "always" | "never";
|
|
41
46
|
type RuleNoConfig = AllowWarnDeny | [AllowWarnDeny];
|
|
47
|
+
type Mode2 = "as-needed" | "always" | "never";
|
|
42
48
|
type AlwaysNever = "always" | "never";
|
|
43
|
-
type
|
|
49
|
+
type OptionsJsonEnum = CommentConfigJson | {
|
|
44
50
|
block?: CommentConfigJson;
|
|
45
51
|
line?: CommentConfigJson;
|
|
46
52
|
};
|
|
47
53
|
type IgnoreClassWithImplements = "all" | "public-fields";
|
|
54
|
+
type ComplexityConfigEnum = number | ComplexityConfig;
|
|
48
55
|
type Variant = "classic" | "modified";
|
|
49
56
|
/**
|
|
50
57
|
* The enforcement type for the curly rule.
|
|
@@ -57,18 +64,44 @@ type CurlyType = "all" | "multi" | "multi-line" | "multi-or-nest";
|
|
|
57
64
|
type CurlyConsistent = "consistent";
|
|
58
65
|
type CompareType = "always" | "smart";
|
|
59
66
|
type NullType = "always" | "never" | "ignore";
|
|
60
|
-
type
|
|
67
|
+
type FuncNameMatchingMode = "always" | "never";
|
|
61
68
|
type FuncNamesConfigType = "always" | "as-needed" | "never";
|
|
62
69
|
type Style = "expression" | "declaration";
|
|
63
70
|
type NamedExports = "ignore" | "expression" | "declaration";
|
|
64
71
|
type PairOrder = "anyOrder" | "getBeforeSet" | "setBeforeGet";
|
|
65
72
|
type Mode = "prefer-top-level" | "prefer-inline";
|
|
73
|
+
/**
|
|
74
|
+
* Extension rule configuration; Copy to avoid extra indirection.
|
|
75
|
+
*/
|
|
76
|
+
type ExtensionRule = "always" | "never" | "ignorePackages";
|
|
77
|
+
type ImportExtensionsObject = ImportExtensionsConfig | {
|
|
78
|
+
[k: string]: ExtensionRule;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* Action to take for path group overrides.
|
|
82
|
+
*
|
|
83
|
+
* Determines how import extensions are validated for matching bespoke import specifiers.
|
|
84
|
+
*/
|
|
85
|
+
type PathGroupAction = "enforce" | "ignore";
|
|
66
86
|
type AbsoluteFirst = "absolute-first" | "disable-absolute-first";
|
|
67
87
|
type MaxDependenciesConfigJson = number | MaxDependenciesConfig;
|
|
68
88
|
type Target = "single" | "any";
|
|
69
89
|
type TestCaseName = "it" | "test";
|
|
70
90
|
type JestFnType = "hook" | "describe" | "test" | "expect" | "jest" | "unknown";
|
|
91
|
+
type DummyRule = AllowWarnDeny | [AllowWarnDeny, ...unknown[]];
|
|
92
|
+
type SnapshotHintMode = "always" | "multi";
|
|
93
|
+
type AltTextElements = "img" | "object" | "area" | 'input[type="image"]';
|
|
94
|
+
type AnchorIsValidAspect = "noHref" | "invalidHref" | "preferButton";
|
|
95
|
+
type Assert = "htmlFor" | "nesting" | "both" | "either";
|
|
96
|
+
type DistractingElement = "marquee" | "blink";
|
|
97
|
+
type MaxClassesPerFileConfigEnum = number | MaxClassesPerFileConfig;
|
|
98
|
+
type MaxDepthConfigEnum = number | MaxDepth;
|
|
99
|
+
type MaxLinesConfigEnum = number | MaxLinesConfig;
|
|
100
|
+
type MaxLinesPerFunctionConfigEnum = number | MaxLinesPerFunctionConfig;
|
|
101
|
+
type MaxNestedCallbacksConfigEnum = number | MaxNestedCallbacks;
|
|
102
|
+
type MaxParamsConfigEnum = number | MaxParamsConfig;
|
|
71
103
|
type CountThis = "always" | "never" | "except-void";
|
|
104
|
+
type MaxStatementsConfigEnum = number | MaxStatementsConfig;
|
|
72
105
|
type NoCondAssignConfig = "except-parens" | "always";
|
|
73
106
|
type CheckLoopsConfig = boolean | CheckLoops;
|
|
74
107
|
type CheckLoops = "all" | "allExceptWhileTrue" | "none";
|
|
@@ -93,7 +126,13 @@ type ArgsOption = "after-used" | "all" | "none";
|
|
|
93
126
|
type IgnorePatternFor_String = null | string;
|
|
94
127
|
type CaughtErrorsJson = "all" | "none";
|
|
95
128
|
type NoUnusedVarsFixMode = "off" | "suggestion" | "fix" | "safe-fix";
|
|
129
|
+
type NoUseBeforeDefineConfigJson = Nofunc | NoUseBeforeDefineConfig;
|
|
130
|
+
type Nofunc = "nofunc";
|
|
96
131
|
type Location = "start" | "anywhere";
|
|
132
|
+
/**
|
|
133
|
+
* The rule takes a single option - an array of possible callback names - which may include object methods. The default callback names are `callback`, `cb`, `next`.
|
|
134
|
+
*/
|
|
135
|
+
type CallbackReturn = string[];
|
|
97
136
|
/**
|
|
98
137
|
* The rule takes a single string option: the name of the error parameter.
|
|
99
138
|
*
|
|
@@ -106,9 +145,14 @@ type Location = "start" | "anywhere";
|
|
|
106
145
|
* Default: `"err"`.
|
|
107
146
|
*/
|
|
108
147
|
type HandleCallbackErrConfig = string;
|
|
148
|
+
type NoMixedRequiresConfig = boolean | NoMixedRequiresOptions;
|
|
109
149
|
type ShorthandType = "always" | "methods" | "properties" | "consistent" | "consistent-as-needed" | "never";
|
|
110
150
|
type Destructuring = "any" | "all";
|
|
151
|
+
type PreferDestructuringOption = PreferDestructuringTargetOption | PreferDestructuringAssignmentConfig;
|
|
152
|
+
type TerminationMethod = string | string[];
|
|
111
153
|
type RadixType = "always" | "as-needed";
|
|
154
|
+
type NativeAllowList = AllKeyword | string[];
|
|
155
|
+
type AllKeyword = "all";
|
|
112
156
|
/**
|
|
113
157
|
* A forbidden prop, either as a plain prop name string or with options.
|
|
114
158
|
*/
|
|
@@ -131,18 +175,34 @@ type ForbidItem2 = string | {
|
|
|
131
175
|
message?: string;
|
|
132
176
|
};
|
|
133
177
|
type EnforceBooleanAttribute = "always" | "never";
|
|
178
|
+
type JsxCurlyBracePresenceConfig = JsxCurlyBracePresenceMode | JsxCurlyBracePresence;
|
|
179
|
+
type JsxCurlyBracePresenceMode = "always" | "never" | "ignore";
|
|
180
|
+
type JsxFilenameExtensionAllowMode = "always" | "as-needed";
|
|
134
181
|
type FragmentMode = "syntax" | "element";
|
|
135
|
-
type
|
|
136
|
-
type
|
|
182
|
+
type EnforceDynamicLinksEnum = "always" | "never";
|
|
183
|
+
type IgnoreEnforceOption = "ignore" | "enforce";
|
|
184
|
+
type AllowedOrDisallowInFunc = "allowed" | "disallow-in-func";
|
|
137
185
|
type RequireFlag = "u" | "v";
|
|
138
186
|
type ImportKind = "none" | "all" | "multiple" | "single";
|
|
139
187
|
/**
|
|
140
188
|
* Sorting order for keys. Accepts "asc" for ascending or "desc" for descending.
|
|
141
189
|
*/
|
|
142
190
|
type SortOrder = "desc" | "asc";
|
|
191
|
+
type ArrayOption = "array" | "array-simple" | "generic";
|
|
192
|
+
type ReadonlyArrayOption = "array" | "array-simple" | "generic";
|
|
193
|
+
type DirectiveConfigSchema = boolean | RequireDescription | {
|
|
194
|
+
descriptionFormat?: string;
|
|
195
|
+
};
|
|
196
|
+
type RequireDescription = "allow-with-description";
|
|
143
197
|
type ClassLiteralPropertyStyleOption = "fields" | "getters";
|
|
198
|
+
type PreferGenericType = "constructor" | "type-annotation";
|
|
144
199
|
type ConsistentIndexedObjectStyleConfig = "record" | "index-signature";
|
|
200
|
+
type ArrayLiteralTypeAssertions = "allow" | "allow-as-parameter" | "never";
|
|
201
|
+
type AssertionStyle = "as" | "angle-bracket" | "never";
|
|
202
|
+
type ObjectLiteralTypeAssertions = "allow" | "allow-as-parameter" | "never";
|
|
145
203
|
type ConsistentTypeDefinitionsConfig = "interface" | "type";
|
|
204
|
+
type FixStyle = "separate-type-imports" | "inline-type-imports";
|
|
205
|
+
type Prefer = "type-imports" | "no-type-imports";
|
|
146
206
|
type AccessibilityLevel = "explicit" | "no-public" | "off";
|
|
147
207
|
type MethodSignatureStyleConfig = "property" | "method";
|
|
148
208
|
/**
|
|
@@ -182,36 +242,125 @@ type FileFrom = "file";
|
|
|
182
242
|
type NameSpecifier = string | string[];
|
|
183
243
|
type LibFrom = "lib";
|
|
184
244
|
type PackageFrom = "package";
|
|
245
|
+
type AllowInterfaces = "never" | "always" | "with-single-extends";
|
|
246
|
+
type AllowObjectTypes = "never" | "always";
|
|
247
|
+
type AllowInGenericTypeArguments = boolean | string[];
|
|
248
|
+
type ChecksVoidReturn = boolean | ChecksVoidReturnOptions;
|
|
249
|
+
/**
|
|
250
|
+
* Represents the different ways a ban config can be specified in JSON.
|
|
251
|
+
* Can be:
|
|
252
|
+
* - `true` - ban with default message
|
|
253
|
+
* - A string - ban with custom message
|
|
254
|
+
* - An object with `message` and optional `fixWith` and `suggest`
|
|
255
|
+
*/
|
|
256
|
+
type BanConfigValue = (True | string | {
|
|
257
|
+
/**
|
|
258
|
+
* Replacement type for automatic fixing. Applied directly with `--fix`.
|
|
259
|
+
*/
|
|
260
|
+
fixWith?: string;
|
|
261
|
+
/**
|
|
262
|
+
* Custom message explaining why the type is banned.
|
|
263
|
+
*/
|
|
264
|
+
message?: string;
|
|
265
|
+
/**
|
|
266
|
+
* Suggested replacement types for manual review. Shown as editor suggestions.
|
|
267
|
+
*/
|
|
268
|
+
suggest?: string[];
|
|
269
|
+
}) | undefined;
|
|
270
|
+
type True = true;
|
|
271
|
+
/**
|
|
272
|
+
* Represents the different ways `allowConstantLoopConditions` can be specified in JSON.
|
|
273
|
+
* Can be:
|
|
274
|
+
* - `true` or `false`
|
|
275
|
+
* - A string enum (`"never"`, `"always"`, `"only-allowed-literals"`)
|
|
276
|
+
*/
|
|
277
|
+
type AllowConstantLoopConditions = boolean | AllowConstantLoopConditionsMode;
|
|
278
|
+
type AllowConstantLoopConditionsMode = "never" | "always" | "only-allowed-literals";
|
|
279
|
+
type Modifier = "private" | "private readonly" | "protected" | "protected readonly" | "public" | "public readonly" | "readonly";
|
|
280
|
+
type Prefer2 = "class-property" | "parameter-property";
|
|
281
|
+
/**
|
|
282
|
+
* Represents the different ways `ignorePrimitives` can be specified in JSON.
|
|
283
|
+
* Can be:
|
|
284
|
+
* - `true` - ignore all primitive types
|
|
285
|
+
* - An object specifying which primitives to ignore
|
|
286
|
+
*/
|
|
287
|
+
type IgnorePrimitives = boolean | IgnorePrimitivesOptions;
|
|
288
|
+
type AllowSingleElementEquality = "always" | "never";
|
|
185
289
|
type ReturnAwaitOption = "in-try-catch" | "always" | "error-handling-correctness-only" | "never";
|
|
290
|
+
type PathOption = "always" | "never";
|
|
291
|
+
type TypesOption = "always" | "never" | "prefer-import";
|
|
186
292
|
type BomOptionType = "always" | "never";
|
|
293
|
+
type NonZero = "greater-than" | "not-equal";
|
|
294
|
+
type ModuleStylesOverride = (false | {
|
|
295
|
+
/**
|
|
296
|
+
* Whether default imports or whole-module `require()` assignments are allowed for this module.
|
|
297
|
+
*
|
|
298
|
+
* With `{ "styles": { "chalk": { "default": true } } }`, this is valid:
|
|
299
|
+
* ```js
|
|
300
|
+
* import chalk from "chalk";
|
|
301
|
+
* ```
|
|
302
|
+
*/
|
|
303
|
+
default?: boolean;
|
|
304
|
+
/**
|
|
305
|
+
* Whether named imports or destructured `require()` calls are allowed for this module.
|
|
306
|
+
*
|
|
307
|
+
* With `{ "styles": { "node:util": { "named": true } } }`, this is valid:
|
|
308
|
+
* ```js
|
|
309
|
+
* import {promisify} from "node:util";
|
|
310
|
+
* ```
|
|
311
|
+
*/
|
|
312
|
+
named?: boolean;
|
|
313
|
+
/**
|
|
314
|
+
* Whether namespace imports or whole-module `require()` assignments are allowed for this module.
|
|
315
|
+
*
|
|
316
|
+
* With `{ "styles": { "node:fs": { "namespace": true } } }`, this is valid:
|
|
317
|
+
* ```js
|
|
318
|
+
* import * as fs from "node:fs";
|
|
319
|
+
* ```
|
|
320
|
+
*/
|
|
321
|
+
namespace?: boolean;
|
|
322
|
+
/**
|
|
323
|
+
* Whether side-effect imports or unassigned dynamic imports/requires are allowed for this module.
|
|
324
|
+
*
|
|
325
|
+
* With `{ "styles": { "polyfill": { "unassigned": true } } }`, this is valid:
|
|
326
|
+
* ```js
|
|
327
|
+
* import "polyfill";
|
|
328
|
+
* ```
|
|
329
|
+
*/
|
|
330
|
+
unassigned?: boolean;
|
|
331
|
+
}) | undefined;
|
|
332
|
+
type NoInstanceofBuiltinsStrategy = "strict" | "loose";
|
|
187
333
|
type PreferTernaryOption = "always" | "only-single-line";
|
|
188
334
|
type RelativeUrlStyleConfig = "never" | "always";
|
|
189
335
|
type SwitchCaseBracesConfig = "always" | "avoid";
|
|
336
|
+
type MemberNames = "for" | "each";
|
|
337
|
+
type VitestFnName = "vi" | "vitest";
|
|
190
338
|
type CaseType = "PascalCase" | "kebab-case";
|
|
191
339
|
type DeclarationStyle = "type-based" | "type-literal" | "runtime";
|
|
192
340
|
type DeclarationStyle2 = "type-based" | "runtime";
|
|
341
|
+
type Destructure = "only-when-assigned" | "always" | "never";
|
|
193
342
|
type NextTickOption = "promise" | "callback";
|
|
194
343
|
type CaseType2 = "camelCase" | "snake_case";
|
|
195
344
|
type AllowYoda = "never" | "always";
|
|
196
345
|
type OxlintOverrides = OxlintOverride[];
|
|
197
346
|
type JestVersionSchema = number | string;
|
|
198
|
-
type TagNamePreference = string | {
|
|
347
|
+
type TagNamePreference = (string | {
|
|
199
348
|
message: string;
|
|
200
349
|
replacement: string;
|
|
201
|
-
[k: string]: unknown;
|
|
350
|
+
[k: string]: unknown | undefined;
|
|
202
351
|
} | {
|
|
203
352
|
message: string;
|
|
204
|
-
[k: string]: unknown;
|
|
205
|
-
} | boolean;
|
|
353
|
+
[k: string]: unknown | undefined;
|
|
354
|
+
} | boolean) | undefined;
|
|
206
355
|
type OneOrManyFor_String = string | string[];
|
|
207
356
|
type CustomComponent = string | {
|
|
208
357
|
attribute: string;
|
|
209
358
|
name: string;
|
|
210
|
-
[k: string]: unknown;
|
|
359
|
+
[k: string]: unknown | undefined;
|
|
211
360
|
} | {
|
|
212
361
|
attributes: string[];
|
|
213
362
|
name: string;
|
|
214
|
-
[k: string]: unknown;
|
|
363
|
+
[k: string]: unknown | undefined;
|
|
215
364
|
};
|
|
216
365
|
/**
|
|
217
366
|
* Oxlint Configuration File
|
|
@@ -521,7 +670,7 @@ interface RuleCategories {
|
|
|
521
670
|
* - worker - Web Workers globals.
|
|
522
671
|
*/
|
|
523
672
|
interface OxlintEnv {
|
|
524
|
-
[k: string]: boolean;
|
|
673
|
+
[k: string]: boolean | undefined;
|
|
525
674
|
}
|
|
526
675
|
/**
|
|
527
676
|
* Add or remove global variables.
|
|
@@ -549,7 +698,7 @@ interface OxlintEnv {
|
|
|
549
698
|
* `"writeable"` or `true` to represent `"writable"`.
|
|
550
699
|
*/
|
|
551
700
|
interface OxlintGlobals {
|
|
552
|
-
[k: string]: GlobalValue;
|
|
701
|
+
[k: string]: GlobalValue | undefined;
|
|
553
702
|
}
|
|
554
703
|
/**
|
|
555
704
|
* Options for the linter.
|
|
@@ -646,86 +795,86 @@ interface OxlintOverride {
|
|
|
646
795
|
* See [Oxlint Rules](https://oxc.rs/docs/guide/usage/linter/rules.html)
|
|
647
796
|
*/
|
|
648
797
|
interface DummyRuleMap {
|
|
649
|
-
"accessor-pairs"?:
|
|
650
|
-
"array-callback-return"?:
|
|
651
|
-
"arrow-body-style"?:
|
|
798
|
+
"accessor-pairs"?: RuleNoConfig | [AllowWarnDeny, AccessorPairsConfig];
|
|
799
|
+
"array-callback-return"?: RuleNoConfig | [AllowWarnDeny, ArrayCallbackReturn];
|
|
800
|
+
"arrow-body-style"?: RuleNoConfig | [AllowWarnDeny, Mode2] | [AllowWarnDeny, Mode2, ArrowBodyStyleConfig];
|
|
652
801
|
"block-scoped-var"?: RuleNoConfig;
|
|
653
|
-
"capitalized-comments"?:
|
|
654
|
-
"class-methods-use-this"?:
|
|
655
|
-
complexity?:
|
|
802
|
+
"capitalized-comments"?: RuleNoConfig | [AllowWarnDeny, AlwaysNever] | [AllowWarnDeny, AlwaysNever, OptionsJsonEnum];
|
|
803
|
+
"class-methods-use-this"?: RuleNoConfig | [AllowWarnDeny, ClassMethodsUseThisConfig];
|
|
804
|
+
complexity?: RuleNoConfig | [AllowWarnDeny, ComplexityConfigEnum];
|
|
656
805
|
"constructor-super"?: RuleNoConfig;
|
|
657
|
-
curly?:
|
|
658
|
-
"default-case"?:
|
|
806
|
+
curly?: RuleNoConfig | [AllowWarnDeny, CurlyType] | [AllowWarnDeny, CurlyType, CurlyConsistent];
|
|
807
|
+
"default-case"?: RuleNoConfig | [AllowWarnDeny, DefaultCaseConfig];
|
|
659
808
|
"default-case-last"?: RuleNoConfig;
|
|
660
809
|
"default-param-last"?: RuleNoConfig;
|
|
661
|
-
eqeqeq?:
|
|
810
|
+
eqeqeq?: RuleNoConfig | [AllowWarnDeny, CompareType] | [AllowWarnDeny, CompareType, EqeqeqOptions];
|
|
662
811
|
"for-direction"?: RuleNoConfig;
|
|
663
|
-
"func-name-matching"?:
|
|
664
|
-
"func-names"?:
|
|
665
|
-
"func-style"?:
|
|
666
|
-
"getter-return"?:
|
|
667
|
-
"grouped-accessor-pairs"?:
|
|
812
|
+
"func-name-matching"?: RuleNoConfig | ([AllowWarnDeny, FuncNameMatchingMode] | [AllowWarnDeny, FuncNameMatchingMode, FuncNameMatchingConfig] | [AllowWarnDeny, FuncNameMatchingMode] | [AllowWarnDeny, FuncNameMatchingConfig]);
|
|
813
|
+
"func-names"?: RuleNoConfig | [AllowWarnDeny, FuncNamesConfigType] | [AllowWarnDeny, FuncNamesConfigType, FuncNamesGeneratorsConfig];
|
|
814
|
+
"func-style"?: RuleNoConfig | [AllowWarnDeny, Style] | [AllowWarnDeny, Style, FuncStyleConfig];
|
|
815
|
+
"getter-return"?: RuleNoConfig | [AllowWarnDeny, GetterReturn];
|
|
816
|
+
"grouped-accessor-pairs"?: RuleNoConfig | [AllowWarnDeny, PairOrder] | [AllowWarnDeny, PairOrder, GroupedAccessorPairsConfig];
|
|
668
817
|
"guard-for-in"?: RuleNoConfig;
|
|
669
|
-
"id-length"?:
|
|
670
|
-
"id-match"?:
|
|
671
|
-
"import/consistent-type-specifier-style"?:
|
|
818
|
+
"id-length"?: RuleNoConfig | [AllowWarnDeny, IdLengthConfig];
|
|
819
|
+
"id-match"?: RuleNoConfig | [AllowWarnDeny, string] | [AllowWarnDeny, string, IdMatchOptions];
|
|
820
|
+
"import/consistent-type-specifier-style"?: RuleNoConfig | [AllowWarnDeny, Mode];
|
|
672
821
|
"import/default"?: RuleNoConfig;
|
|
673
822
|
"import/export"?: RuleNoConfig;
|
|
674
823
|
"import/exports-last"?: RuleNoConfig;
|
|
675
|
-
"import/extensions"?:
|
|
676
|
-
"import/first"?:
|
|
824
|
+
"import/extensions"?: RuleNoConfig | ([AllowWarnDeny, ExtensionRule] | [AllowWarnDeny, ExtensionRule, ImportExtensionsObject] | [AllowWarnDeny, ExtensionRule] | [AllowWarnDeny, ImportExtensionsObject]);
|
|
825
|
+
"import/first"?: RuleNoConfig | [AllowWarnDeny, AbsoluteFirst];
|
|
677
826
|
"import/group-exports"?: RuleNoConfig;
|
|
678
|
-
"import/max-dependencies"?:
|
|
827
|
+
"import/max-dependencies"?: RuleNoConfig | [AllowWarnDeny, MaxDependenciesConfigJson];
|
|
679
828
|
"import/named"?: RuleNoConfig;
|
|
680
|
-
"import/namespace"?:
|
|
681
|
-
"import/newline-after-import"?:
|
|
682
|
-
"import/no-absolute-path"?:
|
|
829
|
+
"import/namespace"?: RuleNoConfig | [AllowWarnDeny, Namespace];
|
|
830
|
+
"import/newline-after-import"?: RuleNoConfig | [AllowWarnDeny, NewlineAfterImport];
|
|
831
|
+
"import/no-absolute-path"?: RuleNoConfig | [AllowWarnDeny, NoAbsolutePath];
|
|
683
832
|
"import/no-amd"?: RuleNoConfig;
|
|
684
|
-
"import/no-anonymous-default-export"?:
|
|
685
|
-
"import/no-commonjs"?:
|
|
686
|
-
"import/no-cycle"?:
|
|
833
|
+
"import/no-anonymous-default-export"?: RuleNoConfig | [AllowWarnDeny, NoAnonymousDefaultExport];
|
|
834
|
+
"import/no-commonjs"?: RuleNoConfig | [AllowWarnDeny, NoCommonjs];
|
|
835
|
+
"import/no-cycle"?: RuleNoConfig | [AllowWarnDeny, NoCycle];
|
|
687
836
|
"import/no-default-export"?: RuleNoConfig;
|
|
688
|
-
"import/no-duplicates"?:
|
|
689
|
-
"import/no-dynamic-require"?:
|
|
837
|
+
"import/no-duplicates"?: RuleNoConfig | [AllowWarnDeny, NoDuplicates];
|
|
838
|
+
"import/no-dynamic-require"?: RuleNoConfig | [AllowWarnDeny, NoDynamicRequire];
|
|
690
839
|
"import/no-empty-named-blocks"?: RuleNoConfig;
|
|
691
840
|
"import/no-mutable-exports"?: RuleNoConfig;
|
|
692
841
|
"import/no-named-as-default"?: RuleNoConfig;
|
|
693
842
|
"import/no-named-as-default-member"?: RuleNoConfig;
|
|
694
843
|
"import/no-named-default"?: RuleNoConfig;
|
|
695
844
|
"import/no-named-export"?: RuleNoConfig;
|
|
696
|
-
"import/no-namespace"?:
|
|
697
|
-
"import/no-nodejs-modules"?:
|
|
845
|
+
"import/no-namespace"?: RuleNoConfig | [AllowWarnDeny, NoNamespaceConfig];
|
|
846
|
+
"import/no-nodejs-modules"?: RuleNoConfig | [AllowWarnDeny, NoNodejsModulesConfig];
|
|
698
847
|
"import/no-relative-parent-imports"?: RuleNoConfig;
|
|
699
848
|
"import/no-self-import"?: RuleNoConfig;
|
|
700
|
-
"import/no-unassigned-import"?:
|
|
849
|
+
"import/no-unassigned-import"?: RuleNoConfig | [AllowWarnDeny, NoUnassignedImportConfig];
|
|
701
850
|
"import/no-webpack-loader-syntax"?: RuleNoConfig;
|
|
702
|
-
"import/prefer-default-export"?:
|
|
851
|
+
"import/prefer-default-export"?: RuleNoConfig | [AllowWarnDeny, PreferDefaultExport];
|
|
703
852
|
"import/unambiguous"?: RuleNoConfig;
|
|
704
|
-
"init-declarations"?:
|
|
705
|
-
"jest/consistent-test-it"?:
|
|
706
|
-
"jest/expect-expect"?:
|
|
707
|
-
"jest/max-expects"?:
|
|
708
|
-
"jest/max-nested-describe"?:
|
|
853
|
+
"init-declarations"?: RuleNoConfig | [AllowWarnDeny, AlwaysNever] | [AllowWarnDeny, AlwaysNever, InitDeclarationsConfig];
|
|
854
|
+
"jest/consistent-test-it"?: RuleNoConfig | [AllowWarnDeny, ConsistentTestItConfig];
|
|
855
|
+
"jest/expect-expect"?: RuleNoConfig | [AllowWarnDeny, ExpectExpectConfig];
|
|
856
|
+
"jest/max-expects"?: RuleNoConfig | [AllowWarnDeny, MaxExpectsConfig];
|
|
857
|
+
"jest/max-nested-describe"?: RuleNoConfig | [AllowWarnDeny, MaxNestedDescribeConfig];
|
|
709
858
|
"jest/no-alias-methods"?: RuleNoConfig;
|
|
710
859
|
"jest/no-commented-out-tests"?: RuleNoConfig;
|
|
711
860
|
"jest/no-conditional-expect"?: RuleNoConfig;
|
|
712
861
|
"jest/no-conditional-in-test"?: RuleNoConfig;
|
|
713
862
|
"jest/no-confusing-set-timeout"?: RuleNoConfig;
|
|
714
|
-
"jest/no-deprecated-functions"?:
|
|
863
|
+
"jest/no-deprecated-functions"?: RuleNoConfig | [AllowWarnDeny, NoDeprecatedFunctionsConfig];
|
|
715
864
|
"jest/no-disabled-tests"?: RuleNoConfig;
|
|
716
865
|
"jest/no-done-callback"?: RuleNoConfig;
|
|
717
866
|
"jest/no-duplicate-hooks"?: RuleNoConfig;
|
|
718
867
|
"jest/no-export"?: RuleNoConfig;
|
|
719
868
|
"jest/no-focused-tests"?: RuleNoConfig;
|
|
720
|
-
"jest/no-hooks"?:
|
|
869
|
+
"jest/no-hooks"?: RuleNoConfig | [AllowWarnDeny, NoHooksConfig];
|
|
721
870
|
"jest/no-identical-title"?: RuleNoConfig;
|
|
722
871
|
"jest/no-interpolation-in-snapshots"?: RuleNoConfig;
|
|
723
872
|
"jest/no-jasmine-globals"?: RuleNoConfig;
|
|
724
|
-
"jest/no-large-snapshots"?:
|
|
873
|
+
"jest/no-large-snapshots"?: RuleNoConfig | [AllowWarnDeny, NoLargeSnapshotsConfig];
|
|
725
874
|
"jest/no-mocks-import"?: RuleNoConfig;
|
|
726
|
-
"jest/no-restricted-jest-methods"?:
|
|
727
|
-
"jest/no-restricted-matchers"?:
|
|
728
|
-
"jest/no-standalone-expect"?:
|
|
875
|
+
"jest/no-restricted-jest-methods"?: RuleNoConfig | [AllowWarnDeny, NoRestrictedTestMethodsConfig];
|
|
876
|
+
"jest/no-restricted-matchers"?: RuleNoConfig | [AllowWarnDeny, NoRestrictedMatchersConfig];
|
|
877
|
+
"jest/no-standalone-expect"?: RuleNoConfig | [AllowWarnDeny, NoStandaloneExpectConfig];
|
|
729
878
|
"jest/no-test-prefixes"?: RuleNoConfig;
|
|
730
879
|
"jest/no-test-return-statement"?: RuleNoConfig;
|
|
731
880
|
"jest/no-unneeded-async-expect-function"?: RuleNoConfig;
|
|
@@ -735,18 +884,18 @@ interface DummyRuleMap {
|
|
|
735
884
|
"jest/prefer-called-with"?: RuleNoConfig;
|
|
736
885
|
"jest/prefer-comparison-matcher"?: RuleNoConfig;
|
|
737
886
|
"jest/prefer-each"?: RuleNoConfig;
|
|
738
|
-
"jest/prefer-ending-with-an-expect"?:
|
|
887
|
+
"jest/prefer-ending-with-an-expect"?: RuleNoConfig | [AllowWarnDeny, PreferEndingWithAnExpectConfig];
|
|
739
888
|
"jest/prefer-equality-matcher"?: RuleNoConfig;
|
|
740
|
-
"jest/prefer-expect-assertions"?:
|
|
889
|
+
"jest/prefer-expect-assertions"?: RuleNoConfig | [AllowWarnDeny, PreferExpectAssertionsConfig];
|
|
741
890
|
"jest/prefer-expect-resolves"?: RuleNoConfig;
|
|
742
891
|
"jest/prefer-hooks-in-order"?: RuleNoConfig;
|
|
743
892
|
"jest/prefer-hooks-on-top"?: RuleNoConfig;
|
|
744
|
-
"jest/prefer-importing-jest-globals"?:
|
|
893
|
+
"jest/prefer-importing-jest-globals"?: RuleNoConfig | [AllowWarnDeny, PreferImportingJestGlobalsConfig];
|
|
745
894
|
"jest/prefer-jest-mocked"?: RuleNoConfig;
|
|
746
895
|
"jest/prefer-lowercase-title"?: DummyRule;
|
|
747
896
|
"jest/prefer-mock-promise-shorthand"?: RuleNoConfig;
|
|
748
897
|
"jest/prefer-mock-return-shorthand"?: RuleNoConfig;
|
|
749
|
-
"jest/prefer-snapshot-hint"?:
|
|
898
|
+
"jest/prefer-snapshot-hint"?: RuleNoConfig | [AllowWarnDeny, SnapshotHintMode];
|
|
750
899
|
"jest/prefer-spy-on"?: RuleNoConfig;
|
|
751
900
|
"jest/prefer-strict-equal"?: RuleNoConfig;
|
|
752
901
|
"jest/prefer-to-be"?: RuleNoConfig;
|
|
@@ -755,80 +904,80 @@ interface DummyRuleMap {
|
|
|
755
904
|
"jest/prefer-to-have-been-called-times"?: RuleNoConfig;
|
|
756
905
|
"jest/prefer-to-have-length"?: RuleNoConfig;
|
|
757
906
|
"jest/prefer-todo"?: RuleNoConfig;
|
|
758
|
-
"jest/require-hook"?:
|
|
907
|
+
"jest/require-hook"?: RuleNoConfig | [AllowWarnDeny, RequireHookConfig];
|
|
759
908
|
"jest/require-to-throw-message"?: RuleNoConfig;
|
|
760
|
-
"jest/require-top-level-describe"?:
|
|
909
|
+
"jest/require-top-level-describe"?: RuleNoConfig | [AllowWarnDeny, RequireTopLevelDescribeConfig];
|
|
761
910
|
"jest/valid-describe-callback"?: RuleNoConfig;
|
|
762
|
-
"jest/valid-expect"?:
|
|
911
|
+
"jest/valid-expect"?: RuleNoConfig | [AllowWarnDeny, ValidExpectConfig];
|
|
763
912
|
"jest/valid-expect-in-promise"?: RuleNoConfig;
|
|
764
913
|
"jest/valid-title"?: DummyRule;
|
|
765
914
|
"jsdoc/check-access"?: RuleNoConfig;
|
|
766
915
|
"jsdoc/check-property-names"?: RuleNoConfig;
|
|
767
|
-
"jsdoc/check-tag-names"?:
|
|
768
|
-
"jsdoc/empty-tags"?:
|
|
916
|
+
"jsdoc/check-tag-names"?: RuleNoConfig | [AllowWarnDeny, CheckTagNamesConfig];
|
|
917
|
+
"jsdoc/empty-tags"?: RuleNoConfig | [AllowWarnDeny, EmptyTagsConfig];
|
|
769
918
|
"jsdoc/implements-on-classes"?: RuleNoConfig;
|
|
770
|
-
"jsdoc/no-defaults"?:
|
|
919
|
+
"jsdoc/no-defaults"?: RuleNoConfig | [AllowWarnDeny, NoDefaultsConfig];
|
|
771
920
|
"jsdoc/require-param"?: DummyRule;
|
|
772
|
-
"jsdoc/require-param-description"?: RuleNoConfig;
|
|
921
|
+
"jsdoc/require-param-description"?: RuleNoConfig | [AllowWarnDeny, RequireParamDescriptionConfig];
|
|
773
922
|
"jsdoc/require-param-name"?: RuleNoConfig;
|
|
774
|
-
"jsdoc/require-param-type"?: RuleNoConfig;
|
|
923
|
+
"jsdoc/require-param-type"?: RuleNoConfig | [AllowWarnDeny, RequireParamTypeConfig];
|
|
775
924
|
"jsdoc/require-property"?: RuleNoConfig;
|
|
776
925
|
"jsdoc/require-property-description"?: RuleNoConfig;
|
|
777
926
|
"jsdoc/require-property-name"?: RuleNoConfig;
|
|
778
927
|
"jsdoc/require-property-type"?: RuleNoConfig;
|
|
779
|
-
"jsdoc/require-returns"?:
|
|
928
|
+
"jsdoc/require-returns"?: RuleNoConfig | [AllowWarnDeny, RequireReturnsConfig];
|
|
780
929
|
"jsdoc/require-returns-description"?: RuleNoConfig;
|
|
781
930
|
"jsdoc/require-returns-type"?: RuleNoConfig;
|
|
782
931
|
"jsdoc/require-throws-description"?: RuleNoConfig;
|
|
783
932
|
"jsdoc/require-throws-type"?: RuleNoConfig;
|
|
784
|
-
"jsdoc/require-yields"?:
|
|
933
|
+
"jsdoc/require-yields"?: RuleNoConfig | [AllowWarnDeny, RequireYieldsConfig];
|
|
785
934
|
"jsdoc/require-yields-description"?: RuleNoConfig;
|
|
786
935
|
"jsdoc/require-yields-type"?: RuleNoConfig;
|
|
787
|
-
"jsx-a11y/alt-text"?:
|
|
788
|
-
"jsx-a11y/anchor-ambiguous-text"?:
|
|
936
|
+
"jsx-a11y/alt-text"?: RuleNoConfig | [AllowWarnDeny, AltTextConfigSchema];
|
|
937
|
+
"jsx-a11y/anchor-ambiguous-text"?: RuleNoConfig | [AllowWarnDeny, AnchorAmbiguousTextConfig];
|
|
789
938
|
"jsx-a11y/anchor-has-content"?: RuleNoConfig;
|
|
790
|
-
"jsx-a11y/anchor-is-valid"?:
|
|
939
|
+
"jsx-a11y/anchor-is-valid"?: RuleNoConfig | [AllowWarnDeny, AnchorIsValidConfig];
|
|
791
940
|
"jsx-a11y/aria-activedescendant-has-tabindex"?: RuleNoConfig;
|
|
792
941
|
"jsx-a11y/aria-props"?: RuleNoConfig;
|
|
793
942
|
"jsx-a11y/aria-proptypes"?: RuleNoConfig;
|
|
794
|
-
"jsx-a11y/aria-role"?:
|
|
943
|
+
"jsx-a11y/aria-role"?: RuleNoConfig | [AllowWarnDeny, AriaRoleConfig];
|
|
795
944
|
"jsx-a11y/aria-unsupported-elements"?: RuleNoConfig;
|
|
796
|
-
"jsx-a11y/autocomplete-valid"?:
|
|
945
|
+
"jsx-a11y/autocomplete-valid"?: RuleNoConfig | [AllowWarnDeny, AutocompleteValidConfig];
|
|
797
946
|
"jsx-a11y/click-events-have-key-events"?: RuleNoConfig;
|
|
798
|
-
"jsx-a11y/control-has-associated-label"?:
|
|
799
|
-
"jsx-a11y/heading-has-content"?:
|
|
947
|
+
"jsx-a11y/control-has-associated-label"?: RuleNoConfig | [AllowWarnDeny, ControlHasAssociatedLabelConfig];
|
|
948
|
+
"jsx-a11y/heading-has-content"?: RuleNoConfig | [AllowWarnDeny, HeadingHasContentConfig];
|
|
800
949
|
"jsx-a11y/html-has-lang"?: RuleNoConfig;
|
|
801
950
|
"jsx-a11y/iframe-has-title"?: RuleNoConfig;
|
|
802
|
-
"jsx-a11y/img-redundant-alt"?:
|
|
803
|
-
"jsx-a11y/interactive-supports-focus"?:
|
|
804
|
-
"jsx-a11y/label-has-associated-control"?:
|
|
951
|
+
"jsx-a11y/img-redundant-alt"?: RuleNoConfig | [AllowWarnDeny, ImgRedundantAltConfig];
|
|
952
|
+
"jsx-a11y/interactive-supports-focus"?: RuleNoConfig | [AllowWarnDeny, InteractiveSupportsFocusConfig];
|
|
953
|
+
"jsx-a11y/label-has-associated-control"?: RuleNoConfig | [AllowWarnDeny, LabelHasAssociatedControlConfig];
|
|
805
954
|
"jsx-a11y/lang"?: RuleNoConfig;
|
|
806
|
-
"jsx-a11y/media-has-caption"?:
|
|
807
|
-
"jsx-a11y/mouse-events-have-key-events"?:
|
|
955
|
+
"jsx-a11y/media-has-caption"?: RuleNoConfig | [AllowWarnDeny, MediaHasCaptionConfig];
|
|
956
|
+
"jsx-a11y/mouse-events-have-key-events"?: RuleNoConfig | [AllowWarnDeny, MouseEventsHaveKeyEventsConfig];
|
|
808
957
|
"jsx-a11y/no-access-key"?: RuleNoConfig;
|
|
809
958
|
"jsx-a11y/no-aria-hidden-on-focusable"?: RuleNoConfig;
|
|
810
|
-
"jsx-a11y/no-autofocus"?:
|
|
811
|
-
"jsx-a11y/no-distracting-elements"?:
|
|
812
|
-
"jsx-a11y/no-interactive-element-to-noninteractive-role"?:
|
|
813
|
-
"jsx-a11y/no-noninteractive-element-interactions"?:
|
|
814
|
-
"jsx-a11y/no-noninteractive-element-to-interactive-role"?:
|
|
815
|
-
"jsx-a11y/no-noninteractive-tabindex"?:
|
|
816
|
-
"jsx-a11y/no-redundant-roles"?: RuleNoConfig;
|
|
817
|
-
"jsx-a11y/no-static-element-interactions"?:
|
|
959
|
+
"jsx-a11y/no-autofocus"?: RuleNoConfig | [AllowWarnDeny, NoAutofocus];
|
|
960
|
+
"jsx-a11y/no-distracting-elements"?: RuleNoConfig | [AllowWarnDeny, NoDistractingElementsConfig];
|
|
961
|
+
"jsx-a11y/no-interactive-element-to-noninteractive-role"?: RuleNoConfig | [AllowWarnDeny, NoInteractiveElementToNoninteractiveRoleConfig];
|
|
962
|
+
"jsx-a11y/no-noninteractive-element-interactions"?: RuleNoConfig | [AllowWarnDeny, NoNoninteractiveElementInteractionsConfig];
|
|
963
|
+
"jsx-a11y/no-noninteractive-element-to-interactive-role"?: RuleNoConfig | [AllowWarnDeny, NoNoninteractiveElementToInteractiveRoleConfig];
|
|
964
|
+
"jsx-a11y/no-noninteractive-tabindex"?: RuleNoConfig | [AllowWarnDeny, NoNoninteractiveTabindexConfig];
|
|
965
|
+
"jsx-a11y/no-redundant-roles"?: RuleNoConfig | [AllowWarnDeny, NoRedundantRolesConfig];
|
|
966
|
+
"jsx-a11y/no-static-element-interactions"?: RuleNoConfig | [AllowWarnDeny, NoStaticElementInteractionsConfig];
|
|
818
967
|
"jsx-a11y/prefer-tag-over-role"?: RuleNoConfig;
|
|
819
968
|
"jsx-a11y/role-has-required-aria-props"?: RuleNoConfig;
|
|
820
969
|
"jsx-a11y/role-supports-aria-props"?: RuleNoConfig;
|
|
821
970
|
"jsx-a11y/scope"?: RuleNoConfig;
|
|
822
971
|
"jsx-a11y/tabindex-no-positive"?: RuleNoConfig;
|
|
823
|
-
"logical-assignment-operators"?:
|
|
824
|
-
"max-classes-per-file"?:
|
|
825
|
-
"max-depth"?:
|
|
826
|
-
"max-lines"?:
|
|
827
|
-
"max-lines-per-function"?:
|
|
828
|
-
"max-nested-callbacks"?:
|
|
829
|
-
"max-params"?:
|
|
830
|
-
"max-statements"?:
|
|
831
|
-
"new-cap"?:
|
|
972
|
+
"logical-assignment-operators"?: RuleNoConfig | [AllowWarnDeny, AlwaysNever] | [AllowWarnDeny, AlwaysNever, LogicalAssignmentOperatorsConfig];
|
|
973
|
+
"max-classes-per-file"?: RuleNoConfig | [AllowWarnDeny, MaxClassesPerFileConfigEnum];
|
|
974
|
+
"max-depth"?: RuleNoConfig | [AllowWarnDeny, MaxDepthConfigEnum];
|
|
975
|
+
"max-lines"?: RuleNoConfig | [AllowWarnDeny, MaxLinesConfigEnum];
|
|
976
|
+
"max-lines-per-function"?: RuleNoConfig | [AllowWarnDeny, MaxLinesPerFunctionConfigEnum];
|
|
977
|
+
"max-nested-callbacks"?: RuleNoConfig | [AllowWarnDeny, MaxNestedCallbacksConfigEnum];
|
|
978
|
+
"max-params"?: RuleNoConfig | [AllowWarnDeny, MaxParamsConfigEnum];
|
|
979
|
+
"max-statements"?: RuleNoConfig | [AllowWarnDeny, MaxStatementsConfigEnum];
|
|
980
|
+
"new-cap"?: RuleNoConfig | [AllowWarnDeny, NewCapConfig];
|
|
832
981
|
"nextjs/google-font-display"?: RuleNoConfig;
|
|
833
982
|
"nextjs/google-font-preconnect"?: RuleNoConfig;
|
|
834
983
|
"nextjs/inline-script-id"?: RuleNoConfig;
|
|
@@ -854,16 +1003,16 @@ interface DummyRuleMap {
|
|
|
854
1003
|
"no-array-constructor"?: RuleNoConfig;
|
|
855
1004
|
"no-async-promise-executor"?: RuleNoConfig;
|
|
856
1005
|
"no-await-in-loop"?: RuleNoConfig;
|
|
857
|
-
"no-bitwise"?:
|
|
1006
|
+
"no-bitwise"?: RuleNoConfig | [AllowWarnDeny, NoBitwiseConfig];
|
|
858
1007
|
"no-caller"?: RuleNoConfig;
|
|
859
1008
|
"no-case-declarations"?: RuleNoConfig;
|
|
860
1009
|
"no-class-assign"?: RuleNoConfig;
|
|
861
1010
|
"no-compare-neg-zero"?: RuleNoConfig;
|
|
862
|
-
"no-cond-assign"?:
|
|
863
|
-
"no-console"?:
|
|
1011
|
+
"no-cond-assign"?: RuleNoConfig | [AllowWarnDeny, NoCondAssignConfig];
|
|
1012
|
+
"no-console"?: RuleNoConfig | [AllowWarnDeny, NoConsoleConfig];
|
|
864
1013
|
"no-const-assign"?: RuleNoConfig;
|
|
865
1014
|
"no-constant-binary-expression"?: RuleNoConfig;
|
|
866
|
-
"no-constant-condition"?:
|
|
1015
|
+
"no-constant-condition"?: RuleNoConfig | [AllowWarnDeny, NoConstantCondition];
|
|
867
1016
|
"no-constructor-return"?: RuleNoConfig;
|
|
868
1017
|
"no-continue"?: RuleNoConfig;
|
|
869
1018
|
"no-control-regex"?: RuleNoConfig;
|
|
@@ -874,41 +1023,41 @@ interface DummyRuleMap {
|
|
|
874
1023
|
"no-dupe-else-if"?: RuleNoConfig;
|
|
875
1024
|
"no-dupe-keys"?: RuleNoConfig;
|
|
876
1025
|
"no-duplicate-case"?: RuleNoConfig;
|
|
877
|
-
"no-duplicate-imports"?:
|
|
878
|
-
"no-else-return"?:
|
|
879
|
-
"no-empty"?:
|
|
1026
|
+
"no-duplicate-imports"?: RuleNoConfig | [AllowWarnDeny, NoDuplicateImports];
|
|
1027
|
+
"no-else-return"?: RuleNoConfig | [AllowWarnDeny, NoElseReturn];
|
|
1028
|
+
"no-empty"?: RuleNoConfig | [AllowWarnDeny, NoEmpty];
|
|
880
1029
|
"no-empty-character-class"?: RuleNoConfig;
|
|
881
|
-
"no-empty-function"?:
|
|
882
|
-
"no-empty-pattern"?:
|
|
1030
|
+
"no-empty-function"?: RuleNoConfig | [AllowWarnDeny, NoEmptyFunctionConfig];
|
|
1031
|
+
"no-empty-pattern"?: RuleNoConfig | [AllowWarnDeny, NoEmptyPattern];
|
|
883
1032
|
"no-empty-static-block"?: RuleNoConfig;
|
|
884
1033
|
"no-eq-null"?: RuleNoConfig;
|
|
885
|
-
"no-eval"?:
|
|
1034
|
+
"no-eval"?: RuleNoConfig | [AllowWarnDeny, NoEval];
|
|
886
1035
|
"no-ex-assign"?: RuleNoConfig;
|
|
887
|
-
"no-extend-native"?:
|
|
1036
|
+
"no-extend-native"?: RuleNoConfig | [AllowWarnDeny, NoExtendNativeConfig];
|
|
888
1037
|
"no-extra-bind"?: RuleNoConfig;
|
|
889
|
-
"no-extra-boolean-cast"?:
|
|
1038
|
+
"no-extra-boolean-cast"?: RuleNoConfig | [AllowWarnDeny, NoExtraBooleanCast];
|
|
890
1039
|
"no-extra-label"?: RuleNoConfig;
|
|
891
|
-
"no-fallthrough"?:
|
|
1040
|
+
"no-fallthrough"?: RuleNoConfig | [AllowWarnDeny, NoFallthroughConfig];
|
|
892
1041
|
"no-func-assign"?: RuleNoConfig;
|
|
893
|
-
"no-global-assign"?:
|
|
894
|
-
"no-implicit-coercion"?:
|
|
895
|
-
"no-implicit-globals"?:
|
|
1042
|
+
"no-global-assign"?: RuleNoConfig | [AllowWarnDeny, NoGlobalAssignConfig];
|
|
1043
|
+
"no-implicit-coercion"?: RuleNoConfig | [AllowWarnDeny, NoImplicitCoercionConfig];
|
|
1044
|
+
"no-implicit-globals"?: RuleNoConfig | [AllowWarnDeny, NoImplicitGlobalsConfig];
|
|
896
1045
|
"no-implied-eval"?: RuleNoConfig;
|
|
897
1046
|
"no-import-assign"?: RuleNoConfig;
|
|
898
|
-
"no-inline-comments"?:
|
|
899
|
-
"no-inner-declarations"?:
|
|
900
|
-
"no-invalid-regexp"?:
|
|
901
|
-
"no-irregular-whitespace"?:
|
|
1047
|
+
"no-inline-comments"?: RuleNoConfig | [AllowWarnDeny, NoInlineCommentsConfig];
|
|
1048
|
+
"no-inner-declarations"?: RuleNoConfig | [AllowWarnDeny, NoInnerDeclarationsConfig] | [AllowWarnDeny, NoInnerDeclarationsConfig, NoInnerDeclarationsOptions];
|
|
1049
|
+
"no-invalid-regexp"?: RuleNoConfig | [AllowWarnDeny, NoInvalidRegexpConfig];
|
|
1050
|
+
"no-irregular-whitespace"?: RuleNoConfig | [AllowWarnDeny, NoIrregularWhitespaceConfig];
|
|
902
1051
|
"no-iterator"?: RuleNoConfig;
|
|
903
1052
|
"no-label-var"?: RuleNoConfig;
|
|
904
|
-
"no-labels"?:
|
|
1053
|
+
"no-labels"?: RuleNoConfig | [AllowWarnDeny, NoLabels];
|
|
905
1054
|
"no-lone-blocks"?: RuleNoConfig;
|
|
906
1055
|
"no-lonely-if"?: RuleNoConfig;
|
|
907
1056
|
"no-loop-func"?: RuleNoConfig;
|
|
908
1057
|
"no-loss-of-precision"?: RuleNoConfig;
|
|
909
|
-
"no-magic-numbers"?:
|
|
910
|
-
"no-misleading-character-class"?:
|
|
911
|
-
"no-multi-assign"?:
|
|
1058
|
+
"no-magic-numbers"?: RuleNoConfig | [AllowWarnDeny, NoMagicNumbersConfig];
|
|
1059
|
+
"no-misleading-character-class"?: RuleNoConfig | [AllowWarnDeny, NoMisleadingCharacterClass];
|
|
1060
|
+
"no-multi-assign"?: RuleNoConfig | [AllowWarnDeny, NoMultiAssign];
|
|
912
1061
|
"no-multi-str"?: RuleNoConfig;
|
|
913
1062
|
"no-negated-condition"?: RuleNoConfig;
|
|
914
1063
|
"no-nested-ternary"?: RuleNoConfig;
|
|
@@ -919,69 +1068,71 @@ interface DummyRuleMap {
|
|
|
919
1068
|
"no-nonoctal-decimal-escape"?: RuleNoConfig;
|
|
920
1069
|
"no-obj-calls"?: RuleNoConfig;
|
|
921
1070
|
"no-object-constructor"?: RuleNoConfig;
|
|
922
|
-
"no-param-reassign"?:
|
|
923
|
-
"no-plusplus"?:
|
|
924
|
-
"no-promise-executor-return"?:
|
|
1071
|
+
"no-param-reassign"?: RuleNoConfig | [AllowWarnDeny, NoParamReassignConfig];
|
|
1072
|
+
"no-plusplus"?: RuleNoConfig | [AllowWarnDeny, NoPlusplus];
|
|
1073
|
+
"no-promise-executor-return"?: RuleNoConfig | [AllowWarnDeny, NoPromiseExecutorReturnConfig];
|
|
925
1074
|
"no-proto"?: RuleNoConfig;
|
|
926
1075
|
"no-prototype-builtins"?: RuleNoConfig;
|
|
927
|
-
"no-redeclare"?:
|
|
1076
|
+
"no-redeclare"?: RuleNoConfig | [AllowWarnDeny, NoRedeclare];
|
|
928
1077
|
"no-regex-spaces"?: RuleNoConfig;
|
|
929
|
-
"no-restricted-exports"?:
|
|
1078
|
+
"no-restricted-exports"?: RuleNoConfig | [AllowWarnDeny, NoRestrictedExportsConfig];
|
|
930
1079
|
"no-restricted-globals"?: DummyRule;
|
|
931
1080
|
"no-restricted-imports"?: DummyRule;
|
|
932
|
-
"no-restricted-properties"?:
|
|
933
|
-
"no-return-assign"?:
|
|
1081
|
+
"no-restricted-properties"?: RuleNoConfig | [AllowWarnDeny, PropertyDetails, ...PropertyDetails[]];
|
|
1082
|
+
"no-return-assign"?: RuleNoConfig | [AllowWarnDeny, NoReturnAssignMode];
|
|
934
1083
|
"no-script-url"?: RuleNoConfig;
|
|
935
|
-
"no-self-assign"?:
|
|
1084
|
+
"no-self-assign"?: RuleNoConfig | [AllowWarnDeny, NoSelfAssign];
|
|
936
1085
|
"no-self-compare"?: RuleNoConfig;
|
|
937
|
-
"no-sequences"?:
|
|
1086
|
+
"no-sequences"?: RuleNoConfig | [AllowWarnDeny, NoSequences];
|
|
938
1087
|
"no-setter-return"?: RuleNoConfig;
|
|
939
|
-
"no-shadow"?:
|
|
940
|
-
"no-shadow-restricted-names"?:
|
|
1088
|
+
"no-shadow"?: RuleNoConfig | [AllowWarnDeny, NoShadowConfig];
|
|
1089
|
+
"no-shadow-restricted-names"?: RuleNoConfig | [AllowWarnDeny, NoShadowRestrictedNamesConfig];
|
|
941
1090
|
"no-sparse-arrays"?: RuleNoConfig;
|
|
942
1091
|
"no-template-curly-in-string"?: RuleNoConfig;
|
|
943
1092
|
"no-ternary"?: RuleNoConfig;
|
|
944
1093
|
"no-this-before-super"?: RuleNoConfig;
|
|
945
1094
|
"no-throw-literal"?: RuleNoConfig;
|
|
946
1095
|
"no-unassigned-vars"?: RuleNoConfig;
|
|
947
|
-
"no-undef"?:
|
|
1096
|
+
"no-undef"?: RuleNoConfig | [AllowWarnDeny, NoUndef];
|
|
948
1097
|
"no-undefined"?: RuleNoConfig;
|
|
949
|
-
"no-underscore-dangle"?:
|
|
1098
|
+
"no-underscore-dangle"?: RuleNoConfig | [AllowWarnDeny, NoUnderscoreDangleConfig];
|
|
950
1099
|
"no-unexpected-multiline"?: RuleNoConfig;
|
|
951
1100
|
"no-unmodified-loop-condition"?: RuleNoConfig;
|
|
952
|
-
"no-unneeded-ternary"?:
|
|
1101
|
+
"no-unneeded-ternary"?: RuleNoConfig | [AllowWarnDeny, NoUnneededTernary];
|
|
953
1102
|
"no-unreachable"?: RuleNoConfig;
|
|
954
1103
|
"no-unsafe-finally"?: RuleNoConfig;
|
|
955
|
-
"no-unsafe-negation"?:
|
|
956
|
-
"no-unsafe-optional-chaining"?:
|
|
957
|
-
"no-unused-expressions"?:
|
|
1104
|
+
"no-unsafe-negation"?: RuleNoConfig | [AllowWarnDeny, NoUnsafeNegation];
|
|
1105
|
+
"no-unsafe-optional-chaining"?: RuleNoConfig | [AllowWarnDeny, NoUnsafeOptionalChaining];
|
|
1106
|
+
"no-unused-expressions"?: RuleNoConfig | [AllowWarnDeny, NoUnusedExpressionsConfig];
|
|
958
1107
|
"no-unused-labels"?: RuleNoConfig;
|
|
959
1108
|
"no-unused-private-class-members"?: RuleNoConfig;
|
|
960
|
-
"no-unused-vars"?:
|
|
961
|
-
"no-use-before-define"?:
|
|
1109
|
+
"no-unused-vars"?: RuleNoConfig | [AllowWarnDeny, NoUnusedVarsConfig];
|
|
1110
|
+
"no-use-before-define"?: RuleNoConfig | [AllowWarnDeny, NoUseBeforeDefineConfigJson];
|
|
962
1111
|
"no-useless-assignment"?: RuleNoConfig;
|
|
963
1112
|
"no-useless-backreference"?: RuleNoConfig;
|
|
964
1113
|
"no-useless-call"?: RuleNoConfig;
|
|
965
1114
|
"no-useless-catch"?: RuleNoConfig;
|
|
966
|
-
"no-useless-computed-key"?:
|
|
1115
|
+
"no-useless-computed-key"?: RuleNoConfig | [AllowWarnDeny, NoUselessComputedKey];
|
|
967
1116
|
"no-useless-concat"?: RuleNoConfig;
|
|
968
1117
|
"no-useless-constructor"?: RuleNoConfig;
|
|
969
|
-
"no-useless-escape"?:
|
|
970
|
-
"no-useless-rename"?:
|
|
1118
|
+
"no-useless-escape"?: RuleNoConfig | [AllowWarnDeny, NoUselessEscapeConfig];
|
|
1119
|
+
"no-useless-rename"?: RuleNoConfig | [AllowWarnDeny, NoUselessRenameConfig];
|
|
971
1120
|
"no-useless-return"?: RuleNoConfig;
|
|
972
1121
|
"no-var"?: RuleNoConfig;
|
|
973
|
-
"no-void"?:
|
|
974
|
-
"no-warning-comments"?:
|
|
1122
|
+
"no-void"?: RuleNoConfig | [AllowWarnDeny, NoVoid];
|
|
1123
|
+
"no-warning-comments"?: RuleNoConfig | [AllowWarnDeny, NoWarningCommentsConfigJson];
|
|
975
1124
|
"no-with"?: RuleNoConfig;
|
|
976
|
-
"node/callback-return"?:
|
|
1125
|
+
"node/callback-return"?: RuleNoConfig | [AllowWarnDeny, CallbackReturn];
|
|
977
1126
|
"node/global-require"?: RuleNoConfig;
|
|
978
|
-
"node/handle-callback-err"?:
|
|
1127
|
+
"node/handle-callback-err"?: RuleNoConfig | [AllowWarnDeny, HandleCallbackErrConfig];
|
|
979
1128
|
"node/no-exports-assign"?: RuleNoConfig;
|
|
1129
|
+
"node/no-mixed-requires"?: RuleNoConfig | [AllowWarnDeny, NoMixedRequiresConfig];
|
|
980
1130
|
"node/no-new-require"?: RuleNoConfig;
|
|
981
1131
|
"node/no-path-concat"?: RuleNoConfig;
|
|
982
|
-
"node/no-process-env"?:
|
|
983
|
-
"
|
|
984
|
-
"
|
|
1132
|
+
"node/no-process-env"?: RuleNoConfig | [AllowWarnDeny, NoProcessEnvConfig];
|
|
1133
|
+
"node/no-sync"?: RuleNoConfig | [AllowWarnDeny, NoSyncConfig];
|
|
1134
|
+
"object-shorthand"?: RuleNoConfig | [AllowWarnDeny, ShorthandType] | [AllowWarnDeny, ShorthandType, ObjectShorthandOptions];
|
|
1135
|
+
"operator-assignment"?: RuleNoConfig | [AllowWarnDeny, AlwaysNever];
|
|
985
1136
|
"oxc/approx-constant"?: RuleNoConfig;
|
|
986
1137
|
"oxc/bad-array-method-on-arguments"?: RuleNoConfig;
|
|
987
1138
|
"oxc/bad-bitwise-operator"?: RuleNoConfig;
|
|
@@ -998,177 +1149,179 @@ interface DummyRuleMap {
|
|
|
998
1149
|
"oxc/missing-throw"?: RuleNoConfig;
|
|
999
1150
|
"oxc/no-accumulating-spread"?: RuleNoConfig;
|
|
1000
1151
|
"oxc/no-async-await"?: RuleNoConfig;
|
|
1001
|
-
"oxc/no-async-endpoint-handlers"?:
|
|
1002
|
-
"oxc/no-barrel-file"?:
|
|
1152
|
+
"oxc/no-async-endpoint-handlers"?: RuleNoConfig | [AllowWarnDeny, NoAsyncEndpointHandlersConfig];
|
|
1153
|
+
"oxc/no-barrel-file"?: RuleNoConfig | [AllowWarnDeny, NoBarrelFile];
|
|
1003
1154
|
"oxc/no-const-enum"?: RuleNoConfig;
|
|
1004
|
-
"oxc/no-map-spread"?:
|
|
1005
|
-
"oxc/no-optional-chaining"?:
|
|
1006
|
-
"oxc/no-rest-spread-properties"?:
|
|
1155
|
+
"oxc/no-map-spread"?: RuleNoConfig | [AllowWarnDeny, NoMapSpreadConfig];
|
|
1156
|
+
"oxc/no-optional-chaining"?: RuleNoConfig | [AllowWarnDeny, NoOptionalChainingConfig];
|
|
1157
|
+
"oxc/no-rest-spread-properties"?: RuleNoConfig | [AllowWarnDeny, NoRestSpreadPropertiesOptions];
|
|
1007
1158
|
"oxc/no-this-in-exported-function"?: RuleNoConfig;
|
|
1008
1159
|
"oxc/number-arg-out-of-range"?: RuleNoConfig;
|
|
1009
1160
|
"oxc/only-used-in-recursion"?: RuleNoConfig;
|
|
1010
1161
|
"oxc/uninvoked-array-callback"?: RuleNoConfig;
|
|
1011
|
-
"prefer-arrow-callback"?:
|
|
1012
|
-
"prefer-const"?:
|
|
1013
|
-
"prefer-destructuring"?:
|
|
1162
|
+
"prefer-arrow-callback"?: RuleNoConfig | [AllowWarnDeny, PreferArrowCallbackConfig];
|
|
1163
|
+
"prefer-const"?: RuleNoConfig | [AllowWarnDeny, PreferConstConfig];
|
|
1164
|
+
"prefer-destructuring"?: RuleNoConfig | [AllowWarnDeny, PreferDestructuringOption] | [AllowWarnDeny, PreferDestructuringOption, PreferDestructuringRenamedPropertiesConfig];
|
|
1014
1165
|
"prefer-exponentiation-operator"?: RuleNoConfig;
|
|
1015
1166
|
"prefer-named-capture-group"?: RuleNoConfig;
|
|
1016
1167
|
"prefer-numeric-literals"?: RuleNoConfig;
|
|
1017
1168
|
"prefer-object-has-own"?: RuleNoConfig;
|
|
1018
1169
|
"prefer-object-spread"?: RuleNoConfig;
|
|
1019
|
-
"prefer-promise-reject-errors"?:
|
|
1020
|
-
"prefer-regex-literals"?:
|
|
1170
|
+
"prefer-promise-reject-errors"?: RuleNoConfig | [AllowWarnDeny, PreferPromiseRejectErrors];
|
|
1171
|
+
"prefer-regex-literals"?: RuleNoConfig | [AllowWarnDeny, PreferRegexLiteralsConfig];
|
|
1021
1172
|
"prefer-rest-params"?: RuleNoConfig;
|
|
1022
1173
|
"prefer-spread"?: RuleNoConfig;
|
|
1023
1174
|
"prefer-template"?: RuleNoConfig;
|
|
1024
|
-
"preserve-caught-error"?:
|
|
1025
|
-
"promise/always-return"?:
|
|
1175
|
+
"preserve-caught-error"?: RuleNoConfig | [AllowWarnDeny, PreserveCaughtErrorOptions];
|
|
1176
|
+
"promise/always-return"?: RuleNoConfig | [AllowWarnDeny, AlwaysReturnConfig];
|
|
1026
1177
|
"promise/avoid-new"?: RuleNoConfig;
|
|
1027
|
-
"promise/catch-or-return"?:
|
|
1028
|
-
"promise/no-callback-in-promise"?:
|
|
1178
|
+
"promise/catch-or-return"?: RuleNoConfig | [AllowWarnDeny, CatchOrReturnConfig];
|
|
1179
|
+
"promise/no-callback-in-promise"?: RuleNoConfig | [AllowWarnDeny, NoCallbackInPromiseConfig];
|
|
1029
1180
|
"promise/no-multiple-resolved"?: RuleNoConfig;
|
|
1030
1181
|
"promise/no-nesting"?: RuleNoConfig;
|
|
1031
1182
|
"promise/no-new-statics"?: RuleNoConfig;
|
|
1032
|
-
"promise/no-promise-in-callback"?:
|
|
1183
|
+
"promise/no-promise-in-callback"?: RuleNoConfig | [AllowWarnDeny, NoPromiseInCallbackConfig];
|
|
1033
1184
|
"promise/no-return-in-finally"?: RuleNoConfig;
|
|
1034
|
-
"promise/no-return-wrap"?:
|
|
1035
|
-
"promise/param-names"?:
|
|
1185
|
+
"promise/no-return-wrap"?: RuleNoConfig | [AllowWarnDeny, NoReturnWrap];
|
|
1186
|
+
"promise/param-names"?: RuleNoConfig | [AllowWarnDeny, ParamNamesConfig];
|
|
1036
1187
|
"promise/prefer-await-to-callbacks"?: RuleNoConfig;
|
|
1037
|
-
"promise/prefer-await-to-then"?:
|
|
1188
|
+
"promise/prefer-await-to-then"?: RuleNoConfig | [AllowWarnDeny, PreferAwaitToThenConfig];
|
|
1038
1189
|
"promise/prefer-catch"?: RuleNoConfig;
|
|
1039
|
-
"promise/spec-only"?:
|
|
1190
|
+
"promise/spec-only"?: RuleNoConfig | [AllowWarnDeny, SpecOnlyConfig];
|
|
1040
1191
|
"promise/valid-params"?: RuleNoConfig;
|
|
1041
|
-
radix?:
|
|
1042
|
-
"react-perf/jsx-no-jsx-as-prop"?: RuleNoConfig;
|
|
1043
|
-
"react-perf/jsx-no-new-array-as-prop"?: RuleNoConfig;
|
|
1044
|
-
"react-perf/jsx-no-new-function-as-prop"?: RuleNoConfig;
|
|
1045
|
-
"react-perf/jsx-no-new-object-as-prop"?:
|
|
1046
|
-
"react/button-has-type"?:
|
|
1047
|
-
"react/checked-requires-onchange-or-readonly"?:
|
|
1048
|
-
"react/display-name"?:
|
|
1049
|
-
"react/exhaustive-deps"?:
|
|
1050
|
-
"react/forbid-component-props"?:
|
|
1051
|
-
"react/forbid-dom-props"?:
|
|
1052
|
-
"react/forbid-elements"?:
|
|
1192
|
+
radix?: RuleNoConfig | [AllowWarnDeny, RadixType];
|
|
1193
|
+
"react-perf/jsx-no-jsx-as-prop"?: RuleNoConfig | [AllowWarnDeny, ReactPerfConfig];
|
|
1194
|
+
"react-perf/jsx-no-new-array-as-prop"?: RuleNoConfig | [AllowWarnDeny, ReactPerfConfig];
|
|
1195
|
+
"react-perf/jsx-no-new-function-as-prop"?: RuleNoConfig | [AllowWarnDeny, ReactPerfConfig];
|
|
1196
|
+
"react-perf/jsx-no-new-object-as-prop"?: RuleNoConfig | [AllowWarnDeny, ReactPerfConfig];
|
|
1197
|
+
"react/button-has-type"?: RuleNoConfig | [AllowWarnDeny, ButtonHasType];
|
|
1198
|
+
"react/checked-requires-onchange-or-readonly"?: RuleNoConfig | [AllowWarnDeny, CheckedRequiresOnchangeOrReadonly];
|
|
1199
|
+
"react/display-name"?: RuleNoConfig | [AllowWarnDeny, DisplayNameConfig];
|
|
1200
|
+
"react/exhaustive-deps"?: RuleNoConfig | [AllowWarnDeny, ExhaustiveDepsConfig];
|
|
1201
|
+
"react/forbid-component-props"?: RuleNoConfig | [AllowWarnDeny, ForbidComponentPropsConfig];
|
|
1202
|
+
"react/forbid-dom-props"?: RuleNoConfig | [AllowWarnDeny, ForbidDomPropsConfig];
|
|
1203
|
+
"react/forbid-elements"?: RuleNoConfig | [AllowWarnDeny, ForbidElementsConfig];
|
|
1053
1204
|
"react/forward-ref-uses-ref"?: RuleNoConfig;
|
|
1054
|
-
"react/hook-use-state"?:
|
|
1205
|
+
"react/hook-use-state"?: RuleNoConfig | [AllowWarnDeny, HookUseStateConfig];
|
|
1055
1206
|
"react/iframe-missing-sandbox"?: RuleNoConfig;
|
|
1056
|
-
"react/jsx-boolean-value"?:
|
|
1057
|
-
"react/jsx-curly-brace-presence"?:
|
|
1058
|
-
"react/jsx-filename-extension"?:
|
|
1059
|
-
"react/jsx-fragments"?:
|
|
1060
|
-
"react/jsx-handler-names"?:
|
|
1061
|
-
"react/jsx-key"?:
|
|
1062
|
-
"react/jsx-max-depth"?:
|
|
1207
|
+
"react/jsx-boolean-value"?: RuleNoConfig | [AllowWarnDeny, EnforceBooleanAttribute] | [AllowWarnDeny, EnforceBooleanAttribute, JsxBooleanValueOptions];
|
|
1208
|
+
"react/jsx-curly-brace-presence"?: RuleNoConfig | [AllowWarnDeny, JsxCurlyBracePresenceConfig];
|
|
1209
|
+
"react/jsx-filename-extension"?: RuleNoConfig | [AllowWarnDeny, JsxFilenameExtensionConfig];
|
|
1210
|
+
"react/jsx-fragments"?: RuleNoConfig | [AllowWarnDeny, FragmentMode];
|
|
1211
|
+
"react/jsx-handler-names"?: RuleNoConfig | [AllowWarnDeny, JsxHandlerNamesConfig];
|
|
1212
|
+
"react/jsx-key"?: RuleNoConfig | [AllowWarnDeny, JsxKeyConfig];
|
|
1213
|
+
"react/jsx-max-depth"?: RuleNoConfig | [AllowWarnDeny, JsxMaxDepthConfig];
|
|
1063
1214
|
"react/jsx-no-comment-textnodes"?: RuleNoConfig;
|
|
1064
1215
|
"react/jsx-no-constructed-context-values"?: RuleNoConfig;
|
|
1065
1216
|
"react/jsx-no-duplicate-props"?: RuleNoConfig;
|
|
1066
|
-
"react/jsx-no-
|
|
1067
|
-
"react/jsx-no-
|
|
1217
|
+
"react/jsx-no-literals"?: RuleNoConfig | [AllowWarnDeny, JsxNoLiteralsConfig];
|
|
1218
|
+
"react/jsx-no-script-url"?: RuleNoConfig | ([AllowWarnDeny, JsxNoScriptUrlComponent[]] | [AllowWarnDeny, JsxNoScriptUrlComponent[], JsxNoScriptUrlOptions] | [AllowWarnDeny, JsxNoScriptUrlOptions]);
|
|
1219
|
+
"react/jsx-no-target-blank"?: RuleNoConfig | [AllowWarnDeny, JsxNoTargetBlank];
|
|
1068
1220
|
"react/jsx-no-undef"?: RuleNoConfig;
|
|
1069
|
-
"react/jsx-no-useless-fragment"?:
|
|
1070
|
-
"react/jsx-pascal-case"?:
|
|
1221
|
+
"react/jsx-no-useless-fragment"?: RuleNoConfig | [AllowWarnDeny, JsxNoUselessFragment];
|
|
1222
|
+
"react/jsx-pascal-case"?: RuleNoConfig | [AllowWarnDeny, JsxPascalCaseConfig];
|
|
1071
1223
|
"react/jsx-props-no-spread-multi"?: RuleNoConfig;
|
|
1072
|
-
"react/jsx-props-no-spreading"?:
|
|
1224
|
+
"react/jsx-props-no-spreading"?: RuleNoConfig | [AllowWarnDeny, JsxPropsNoSpreadingConfig];
|
|
1073
1225
|
"react/no-array-index-key"?: RuleNoConfig;
|
|
1074
1226
|
"react/no-children-prop"?: RuleNoConfig;
|
|
1075
1227
|
"react/no-clone-element"?: RuleNoConfig;
|
|
1076
1228
|
"react/no-danger"?: RuleNoConfig;
|
|
1077
1229
|
"react/no-danger-with-children"?: RuleNoConfig;
|
|
1078
|
-
"react/no-did-mount-set-state"?:
|
|
1079
|
-
"react/no-did-update-set-state"?:
|
|
1230
|
+
"react/no-did-mount-set-state"?: RuleNoConfig | [AllowWarnDeny, AllowedOrDisallowInFunc];
|
|
1231
|
+
"react/no-did-update-set-state"?: RuleNoConfig | [AllowWarnDeny, AllowedOrDisallowInFunc];
|
|
1080
1232
|
"react/no-direct-mutation-state"?: RuleNoConfig;
|
|
1081
1233
|
"react/no-find-dom-node"?: RuleNoConfig;
|
|
1082
1234
|
"react/no-is-mounted"?: RuleNoConfig;
|
|
1083
|
-
"react/no-multi-comp"?:
|
|
1235
|
+
"react/no-multi-comp"?: RuleNoConfig | [AllowWarnDeny, NoMultiCompConfig];
|
|
1084
1236
|
"react/no-namespace"?: RuleNoConfig;
|
|
1085
|
-
"react/no-object-type-as-default-prop"?:
|
|
1237
|
+
"react/no-object-type-as-default-prop"?: RuleNoConfig;
|
|
1086
1238
|
"react/no-react-children"?: RuleNoConfig;
|
|
1087
1239
|
"react/no-redundant-should-component-update"?: RuleNoConfig;
|
|
1088
1240
|
"react/no-render-return-value"?: RuleNoConfig;
|
|
1089
1241
|
"react/no-set-state"?: RuleNoConfig;
|
|
1090
|
-
"react/no-string-refs"?:
|
|
1242
|
+
"react/no-string-refs"?: RuleNoConfig | [AllowWarnDeny, NoStringRefs];
|
|
1091
1243
|
"react/no-this-in-sfc"?: RuleNoConfig;
|
|
1092
1244
|
"react/no-unescaped-entities"?: RuleNoConfig;
|
|
1093
|
-
"react/no-unknown-property"?:
|
|
1094
|
-
"react/no-unsafe"?:
|
|
1095
|
-
"react/no-unstable-nested-components"?:
|
|
1096
|
-
"react/no-will-update-set-state"?:
|
|
1097
|
-
"react/only-export-components"?:
|
|
1098
|
-
"react/prefer-es6-class"?:
|
|
1099
|
-
"react/prefer-function-component"?:
|
|
1245
|
+
"react/no-unknown-property"?: RuleNoConfig | [AllowWarnDeny, NoUnknownPropertyConfig];
|
|
1246
|
+
"react/no-unsafe"?: RuleNoConfig | [AllowWarnDeny, NoUnsafeConfig];
|
|
1247
|
+
"react/no-unstable-nested-components"?: RuleNoConfig | [AllowWarnDeny, NoUnstableNestedComponentsConfig];
|
|
1248
|
+
"react/no-will-update-set-state"?: RuleNoConfig | [AllowWarnDeny, AllowedOrDisallowInFunc];
|
|
1249
|
+
"react/only-export-components"?: RuleNoConfig | [AllowWarnDeny, OnlyExportComponentsConfig];
|
|
1250
|
+
"react/prefer-es6-class"?: RuleNoConfig | [AllowWarnDeny, AlwaysNever];
|
|
1251
|
+
"react/prefer-function-component"?: RuleNoConfig | [AllowWarnDeny, PreferFunctionComponent];
|
|
1252
|
+
"react/react-compiler"?: RuleNoConfig | [AllowWarnDeny, ReactCompilerConfig];
|
|
1100
1253
|
"react/react-in-jsx-scope"?: RuleNoConfig;
|
|
1101
1254
|
"react/require-render-return"?: RuleNoConfig;
|
|
1102
1255
|
"react/rules-of-hooks"?: RuleNoConfig;
|
|
1103
|
-
"react/self-closing-comp"?:
|
|
1104
|
-
"react/state-in-constructor"?:
|
|
1105
|
-
"react/style-prop-object"?:
|
|
1256
|
+
"react/self-closing-comp"?: RuleNoConfig | [AllowWarnDeny, SelfClosingComp];
|
|
1257
|
+
"react/state-in-constructor"?: RuleNoConfig | [AllowWarnDeny, AlwaysNever];
|
|
1258
|
+
"react/style-prop-object"?: RuleNoConfig | [AllowWarnDeny, StylePropObjectConfig];
|
|
1106
1259
|
"react/void-dom-elements-no-children"?: RuleNoConfig;
|
|
1107
1260
|
"require-await"?: RuleNoConfig;
|
|
1108
|
-
"require-unicode-regexp"?:
|
|
1261
|
+
"require-unicode-regexp"?: RuleNoConfig | [AllowWarnDeny, RequireUnicodeRegexpConfig];
|
|
1109
1262
|
"require-yield"?: RuleNoConfig;
|
|
1110
|
-
"sort-imports"?:
|
|
1111
|
-
"sort-keys"?:
|
|
1112
|
-
"sort-vars"?:
|
|
1263
|
+
"sort-imports"?: RuleNoConfig | [AllowWarnDeny, SortImportsOptions];
|
|
1264
|
+
"sort-keys"?: RuleNoConfig | [AllowWarnDeny, SortOrder] | [AllowWarnDeny, SortOrder, SortKeysOptions];
|
|
1265
|
+
"sort-vars"?: RuleNoConfig | [AllowWarnDeny, SortVars];
|
|
1113
1266
|
"symbol-description"?: RuleNoConfig;
|
|
1114
1267
|
"typescript/adjacent-overload-signatures"?: RuleNoConfig;
|
|
1115
|
-
"typescript/array-type"?:
|
|
1268
|
+
"typescript/array-type"?: RuleNoConfig | [AllowWarnDeny, ArrayTypeConfig];
|
|
1116
1269
|
"typescript/await-thenable"?: RuleNoConfig;
|
|
1117
|
-
"typescript/ban-ts-comment"?:
|
|
1270
|
+
"typescript/ban-ts-comment"?: RuleNoConfig | [AllowWarnDeny, BanTsCommentConfig];
|
|
1118
1271
|
"typescript/ban-tslint-comment"?: RuleNoConfig;
|
|
1119
1272
|
"typescript/ban-types"?: RuleNoConfig;
|
|
1120
|
-
"typescript/class-literal-property-style"?:
|
|
1121
|
-
"typescript/consistent-generic-constructors"?:
|
|
1122
|
-
"typescript/consistent-indexed-object-style"?:
|
|
1123
|
-
"typescript/consistent-return"?:
|
|
1124
|
-
"typescript/consistent-type-assertions"?:
|
|
1125
|
-
"typescript/consistent-type-definitions"?:
|
|
1126
|
-
"typescript/consistent-type-exports"?:
|
|
1127
|
-
"typescript/consistent-type-imports"?:
|
|
1128
|
-
"typescript/dot-notation"?:
|
|
1129
|
-
"typescript/explicit-function-return-type"?:
|
|
1130
|
-
"typescript/explicit-member-accessibility"?:
|
|
1131
|
-
"typescript/explicit-module-boundary-types"?:
|
|
1132
|
-
"typescript/method-signature-style"?:
|
|
1273
|
+
"typescript/class-literal-property-style"?: RuleNoConfig | [AllowWarnDeny, ClassLiteralPropertyStyleOption];
|
|
1274
|
+
"typescript/consistent-generic-constructors"?: RuleNoConfig | [AllowWarnDeny, PreferGenericType];
|
|
1275
|
+
"typescript/consistent-indexed-object-style"?: RuleNoConfig | [AllowWarnDeny, ConsistentIndexedObjectStyleConfig];
|
|
1276
|
+
"typescript/consistent-return"?: RuleNoConfig | [AllowWarnDeny, ConsistentReturnConfig];
|
|
1277
|
+
"typescript/consistent-type-assertions"?: RuleNoConfig | [AllowWarnDeny, ConsistentTypeAssertionsConfig];
|
|
1278
|
+
"typescript/consistent-type-definitions"?: RuleNoConfig | [AllowWarnDeny, ConsistentTypeDefinitionsConfig];
|
|
1279
|
+
"typescript/consistent-type-exports"?: RuleNoConfig | [AllowWarnDeny, ConsistentTypeExportsConfig];
|
|
1280
|
+
"typescript/consistent-type-imports"?: RuleNoConfig | [AllowWarnDeny, ConsistentTypeImportsConfig];
|
|
1281
|
+
"typescript/dot-notation"?: RuleNoConfig | [AllowWarnDeny, DotNotationConfig];
|
|
1282
|
+
"typescript/explicit-function-return-type"?: RuleNoConfig | [AllowWarnDeny, ExplicitFunctionReturnTypeConfig];
|
|
1283
|
+
"typescript/explicit-member-accessibility"?: RuleNoConfig | [AllowWarnDeny, ExplicitMemberAccessibilityConfig];
|
|
1284
|
+
"typescript/explicit-module-boundary-types"?: RuleNoConfig | [AllowWarnDeny, ExplicitModuleBoundaryTypesConfig];
|
|
1285
|
+
"typescript/method-signature-style"?: RuleNoConfig | [AllowWarnDeny, MethodSignatureStyleConfig];
|
|
1133
1286
|
"typescript/no-array-delete"?: RuleNoConfig;
|
|
1134
|
-
"typescript/no-base-to-string"?:
|
|
1287
|
+
"typescript/no-base-to-string"?: RuleNoConfig | [AllowWarnDeny, NoBaseToStringConfig];
|
|
1135
1288
|
"typescript/no-confusing-non-null-assertion"?: RuleNoConfig;
|
|
1136
|
-
"typescript/no-confusing-void-expression"?:
|
|
1137
|
-
"typescript/no-deprecated"?:
|
|
1289
|
+
"typescript/no-confusing-void-expression"?: RuleNoConfig | [AllowWarnDeny, NoConfusingVoidExpressionConfig];
|
|
1290
|
+
"typescript/no-deprecated"?: RuleNoConfig | [AllowWarnDeny, NoDeprecatedConfig];
|
|
1138
1291
|
"typescript/no-duplicate-enum-values"?: RuleNoConfig;
|
|
1139
|
-
"typescript/no-duplicate-type-constituents"?:
|
|
1292
|
+
"typescript/no-duplicate-type-constituents"?: RuleNoConfig | [AllowWarnDeny, NoDuplicateTypeConstituentsConfig];
|
|
1140
1293
|
"typescript/no-dynamic-delete"?: RuleNoConfig;
|
|
1141
|
-
"typescript/no-empty-interface"?:
|
|
1142
|
-
"typescript/no-empty-object-type"?:
|
|
1143
|
-
"typescript/no-explicit-any"?:
|
|
1294
|
+
"typescript/no-empty-interface"?: RuleNoConfig | [AllowWarnDeny, NoEmptyInterface];
|
|
1295
|
+
"typescript/no-empty-object-type"?: RuleNoConfig | [AllowWarnDeny, NoEmptyObjectTypeConfig];
|
|
1296
|
+
"typescript/no-explicit-any"?: RuleNoConfig | [AllowWarnDeny, NoExplicitAny];
|
|
1144
1297
|
"typescript/no-extra-non-null-assertion"?: RuleNoConfig;
|
|
1145
|
-
"typescript/no-extraneous-class"?:
|
|
1146
|
-
"typescript/no-floating-promises"?:
|
|
1298
|
+
"typescript/no-extraneous-class"?: RuleNoConfig | [AllowWarnDeny, NoExtraneousClass];
|
|
1299
|
+
"typescript/no-floating-promises"?: RuleNoConfig | [AllowWarnDeny, NoFloatingPromisesConfig];
|
|
1147
1300
|
"typescript/no-for-in-array"?: RuleNoConfig;
|
|
1148
1301
|
"typescript/no-implied-eval"?: RuleNoConfig;
|
|
1149
1302
|
"typescript/no-import-type-side-effects"?: RuleNoConfig;
|
|
1150
|
-
"typescript/no-inferrable-types"?:
|
|
1151
|
-
"typescript/no-invalid-void-type"?:
|
|
1152
|
-
"typescript/no-meaningless-void-operator"?:
|
|
1303
|
+
"typescript/no-inferrable-types"?: RuleNoConfig | [AllowWarnDeny, NoInferrableTypes];
|
|
1304
|
+
"typescript/no-invalid-void-type"?: RuleNoConfig | [AllowWarnDeny, NoInvalidVoidTypeConfig];
|
|
1305
|
+
"typescript/no-meaningless-void-operator"?: RuleNoConfig | [AllowWarnDeny, NoMeaninglessVoidOperatorConfig];
|
|
1153
1306
|
"typescript/no-misused-new"?: RuleNoConfig;
|
|
1154
|
-
"typescript/no-misused-promises"?:
|
|
1155
|
-
"typescript/no-misused-spread"?:
|
|
1307
|
+
"typescript/no-misused-promises"?: RuleNoConfig | [AllowWarnDeny, NoMisusedPromisesConfig];
|
|
1308
|
+
"typescript/no-misused-spread"?: RuleNoConfig | [AllowWarnDeny, NoMisusedSpreadConfig];
|
|
1156
1309
|
"typescript/no-mixed-enums"?: RuleNoConfig;
|
|
1157
|
-
"typescript/no-namespace"?:
|
|
1310
|
+
"typescript/no-namespace"?: RuleNoConfig | [AllowWarnDeny, NoNamespace];
|
|
1158
1311
|
"typescript/no-non-null-asserted-nullish-coalescing"?: RuleNoConfig;
|
|
1159
1312
|
"typescript/no-non-null-asserted-optional-chain"?: RuleNoConfig;
|
|
1160
1313
|
"typescript/no-non-null-assertion"?: RuleNoConfig;
|
|
1161
1314
|
"typescript/no-redundant-type-constituents"?: RuleNoConfig;
|
|
1162
|
-
"typescript/no-require-imports"?:
|
|
1163
|
-
"typescript/no-restricted-types"?:
|
|
1164
|
-
"typescript/no-this-alias"?:
|
|
1165
|
-
"typescript/no-unnecessary-boolean-literal-compare"?:
|
|
1166
|
-
"typescript/no-unnecessary-condition"?:
|
|
1315
|
+
"typescript/no-require-imports"?: RuleNoConfig | [AllowWarnDeny, NoRequireImportsConfig];
|
|
1316
|
+
"typescript/no-restricted-types"?: RuleNoConfig | [AllowWarnDeny, NoRestrictedTypesConfig];
|
|
1317
|
+
"typescript/no-this-alias"?: RuleNoConfig | [AllowWarnDeny, NoThisAliasConfig];
|
|
1318
|
+
"typescript/no-unnecessary-boolean-literal-compare"?: RuleNoConfig | [AllowWarnDeny, NoUnnecessaryBooleanLiteralCompareConfig];
|
|
1319
|
+
"typescript/no-unnecessary-condition"?: RuleNoConfig | [AllowWarnDeny, NoUnnecessaryConditionConfig];
|
|
1167
1320
|
"typescript/no-unnecessary-parameter-property-assignment"?: RuleNoConfig;
|
|
1168
1321
|
"typescript/no-unnecessary-qualifier"?: RuleNoConfig;
|
|
1169
1322
|
"typescript/no-unnecessary-template-expression"?: RuleNoConfig;
|
|
1170
1323
|
"typescript/no-unnecessary-type-arguments"?: RuleNoConfig;
|
|
1171
|
-
"typescript/no-unnecessary-type-assertion"?:
|
|
1324
|
+
"typescript/no-unnecessary-type-assertion"?: RuleNoConfig | [AllowWarnDeny, NoUnnecessaryTypeAssertionConfig];
|
|
1172
1325
|
"typescript/no-unnecessary-type-constraint"?: RuleNoConfig;
|
|
1173
1326
|
"typescript/no-unnecessary-type-conversion"?: RuleNoConfig;
|
|
1174
1327
|
"typescript/no-unnecessary-type-parameters"?: RuleNoConfig;
|
|
@@ -1178,7 +1331,7 @@ interface DummyRuleMap {
|
|
|
1178
1331
|
"typescript/no-unsafe-declaration-merging"?: RuleNoConfig;
|
|
1179
1332
|
"typescript/no-unsafe-enum-comparison"?: RuleNoConfig;
|
|
1180
1333
|
"typescript/no-unsafe-function-type"?: RuleNoConfig;
|
|
1181
|
-
"typescript/no-unsafe-member-access"?:
|
|
1334
|
+
"typescript/no-unsafe-member-access"?: RuleNoConfig | [AllowWarnDeny, NoUnsafeMemberAccessConfig];
|
|
1182
1335
|
"typescript/no-unsafe-return"?: RuleNoConfig;
|
|
1183
1336
|
"typescript/no-unsafe-type-assertion"?: RuleNoConfig;
|
|
1184
1337
|
"typescript/no-unsafe-unary-minus"?: RuleNoConfig;
|
|
@@ -1187,65 +1340,67 @@ interface DummyRuleMap {
|
|
|
1187
1340
|
"typescript/no-var-requires"?: RuleNoConfig;
|
|
1188
1341
|
"typescript/no-wrapper-object-types"?: RuleNoConfig;
|
|
1189
1342
|
"typescript/non-nullable-type-assertion-style"?: RuleNoConfig;
|
|
1190
|
-
"typescript/only-throw-error"?:
|
|
1191
|
-
"typescript/parameter-properties"?:
|
|
1343
|
+
"typescript/only-throw-error"?: RuleNoConfig | [AllowWarnDeny, OnlyThrowErrorConfig];
|
|
1344
|
+
"typescript/parameter-properties"?: RuleNoConfig | [AllowWarnDeny, ParameterPropertiesConfig];
|
|
1192
1345
|
"typescript/prefer-as-const"?: RuleNoConfig;
|
|
1193
1346
|
"typescript/prefer-enum-initializers"?: RuleNoConfig;
|
|
1194
1347
|
"typescript/prefer-find"?: RuleNoConfig;
|
|
1195
1348
|
"typescript/prefer-for-of"?: RuleNoConfig;
|
|
1196
1349
|
"typescript/prefer-function-type"?: RuleNoConfig;
|
|
1197
1350
|
"typescript/prefer-includes"?: RuleNoConfig;
|
|
1198
|
-
"typescript/prefer-literal-enum-member"?:
|
|
1351
|
+
"typescript/prefer-literal-enum-member"?: RuleNoConfig | [AllowWarnDeny, PreferLiteralEnumMember];
|
|
1199
1352
|
"typescript/prefer-namespace-keyword"?: RuleNoConfig;
|
|
1200
|
-
"typescript/prefer-nullish-coalescing"?:
|
|
1201
|
-
"typescript/prefer-optional-chain"?:
|
|
1202
|
-
"typescript/prefer-promise-reject-errors"?:
|
|
1203
|
-
"typescript/prefer-readonly"?:
|
|
1204
|
-
"typescript/prefer-readonly-parameter-types"?:
|
|
1353
|
+
"typescript/prefer-nullish-coalescing"?: RuleNoConfig | [AllowWarnDeny, PreferNullishCoalescingConfig];
|
|
1354
|
+
"typescript/prefer-optional-chain"?: RuleNoConfig | [AllowWarnDeny, PreferOptionalChainConfig];
|
|
1355
|
+
"typescript/prefer-promise-reject-errors"?: RuleNoConfig | [AllowWarnDeny, PreferPromiseRejectErrorsConfig];
|
|
1356
|
+
"typescript/prefer-readonly"?: RuleNoConfig | [AllowWarnDeny, PreferReadonlyConfig];
|
|
1357
|
+
"typescript/prefer-readonly-parameter-types"?: RuleNoConfig | [AllowWarnDeny, PreferReadonlyParameterTypesConfig];
|
|
1205
1358
|
"typescript/prefer-reduce-type-parameter"?: RuleNoConfig;
|
|
1206
1359
|
"typescript/prefer-regexp-exec"?: RuleNoConfig;
|
|
1207
1360
|
"typescript/prefer-return-this-type"?: RuleNoConfig;
|
|
1208
|
-
"typescript/prefer-string-starts-ends-with"?:
|
|
1361
|
+
"typescript/prefer-string-starts-ends-with"?: RuleNoConfig | [AllowWarnDeny, PreferStringStartsEndsWithConfig];
|
|
1209
1362
|
"typescript/prefer-ts-expect-error"?: RuleNoConfig;
|
|
1210
|
-
"typescript/promise-function-async"?:
|
|
1363
|
+
"typescript/promise-function-async"?: RuleNoConfig | [AllowWarnDeny, PromiseFunctionAsyncConfig];
|
|
1211
1364
|
"typescript/related-getter-setter-pairs"?: RuleNoConfig;
|
|
1212
|
-
"typescript/require-array-sort-compare"?:
|
|
1365
|
+
"typescript/require-array-sort-compare"?: RuleNoConfig | [AllowWarnDeny, RequireArraySortCompareConfig];
|
|
1213
1366
|
"typescript/require-await"?: RuleNoConfig;
|
|
1214
|
-
"typescript/restrict-plus-operands"?:
|
|
1215
|
-
"typescript/restrict-template-expressions"?:
|
|
1216
|
-
"typescript/return-await"?:
|
|
1217
|
-
"typescript/strict-boolean-expressions"?:
|
|
1218
|
-
"typescript/strict-void-return"?:
|
|
1219
|
-
"typescript/switch-exhaustiveness-check"?:
|
|
1220
|
-
"typescript/triple-slash-reference"?:
|
|
1221
|
-
"typescript/unbound-method"?:
|
|
1222
|
-
"typescript/unified-signatures"?:
|
|
1367
|
+
"typescript/restrict-plus-operands"?: RuleNoConfig | [AllowWarnDeny, RestrictPlusOperandsConfig];
|
|
1368
|
+
"typescript/restrict-template-expressions"?: RuleNoConfig | [AllowWarnDeny, RestrictTemplateExpressionsConfig];
|
|
1369
|
+
"typescript/return-await"?: RuleNoConfig | [AllowWarnDeny, ReturnAwaitOption];
|
|
1370
|
+
"typescript/strict-boolean-expressions"?: RuleNoConfig | [AllowWarnDeny, StrictBooleanExpressionsConfig];
|
|
1371
|
+
"typescript/strict-void-return"?: RuleNoConfig | [AllowWarnDeny, StrictVoidReturnConfig];
|
|
1372
|
+
"typescript/switch-exhaustiveness-check"?: RuleNoConfig | [AllowWarnDeny, SwitchExhaustivenessCheckConfig];
|
|
1373
|
+
"typescript/triple-slash-reference"?: RuleNoConfig | [AllowWarnDeny, TripleSlashReferenceConfig];
|
|
1374
|
+
"typescript/unbound-method"?: RuleNoConfig | [AllowWarnDeny, UnboundMethodConfig];
|
|
1375
|
+
"typescript/unified-signatures"?: RuleNoConfig | [AllowWarnDeny, UnifiedSignaturesOptions];
|
|
1223
1376
|
"typescript/use-unknown-in-catch-callback-variable"?: RuleNoConfig;
|
|
1224
|
-
"unicode-bom"?:
|
|
1225
|
-
"unicorn/catch-error-name"?:
|
|
1377
|
+
"unicode-bom"?: RuleNoConfig | [AllowWarnDeny, BomOptionType];
|
|
1378
|
+
"unicorn/catch-error-name"?: RuleNoConfig | [AllowWarnDeny, CatchErrorNameConfig];
|
|
1226
1379
|
"unicorn/consistent-assert"?: RuleNoConfig;
|
|
1227
1380
|
"unicorn/consistent-date-clone"?: RuleNoConfig;
|
|
1228
1381
|
"unicorn/consistent-empty-array-spread"?: RuleNoConfig;
|
|
1229
1382
|
"unicorn/consistent-existence-index-check"?: RuleNoConfig;
|
|
1230
|
-
"unicorn/consistent-function-scoping"?:
|
|
1383
|
+
"unicorn/consistent-function-scoping"?: RuleNoConfig | [AllowWarnDeny, ConsistentFunctionScoping];
|
|
1231
1384
|
"unicorn/consistent-template-literal-escape"?: RuleNoConfig;
|
|
1232
1385
|
"unicorn/custom-error-definition"?: RuleNoConfig;
|
|
1233
1386
|
"unicorn/empty-brace-spaces"?: RuleNoConfig;
|
|
1234
1387
|
"unicorn/error-message"?: RuleNoConfig;
|
|
1235
1388
|
"unicorn/escape-case"?: RuleNoConfig;
|
|
1236
|
-
"unicorn/explicit-length-check"?:
|
|
1389
|
+
"unicorn/explicit-length-check"?: RuleNoConfig | [AllowWarnDeny, ExplicitLengthCheck];
|
|
1237
1390
|
"unicorn/filename-case"?: DummyRule;
|
|
1238
|
-
"unicorn/import-style"?:
|
|
1391
|
+
"unicorn/import-style"?: RuleNoConfig | [AllowWarnDeny, ImportStyleConfig];
|
|
1392
|
+
"unicorn/max-nested-calls"?: RuleNoConfig | [AllowWarnDeny, MaxNestedCalls];
|
|
1239
1393
|
"unicorn/new-for-builtins"?: RuleNoConfig;
|
|
1240
1394
|
"unicorn/no-abusive-eslint-disable"?: RuleNoConfig;
|
|
1241
1395
|
"unicorn/no-accessor-recursion"?: RuleNoConfig;
|
|
1242
1396
|
"unicorn/no-anonymous-default-export"?: RuleNoConfig;
|
|
1243
1397
|
"unicorn/no-array-callback-reference"?: RuleNoConfig;
|
|
1398
|
+
"unicorn/no-array-fill-with-reference-type"?: RuleNoConfig;
|
|
1244
1399
|
"unicorn/no-array-for-each"?: RuleNoConfig;
|
|
1245
1400
|
"unicorn/no-array-method-this-argument"?: RuleNoConfig;
|
|
1246
|
-
"unicorn/no-array-reduce"?:
|
|
1247
|
-
"unicorn/no-array-reverse"?:
|
|
1248
|
-
"unicorn/no-array-sort"?:
|
|
1401
|
+
"unicorn/no-array-reduce"?: RuleNoConfig | [AllowWarnDeny, NoArrayReduce];
|
|
1402
|
+
"unicorn/no-array-reverse"?: RuleNoConfig | [AllowWarnDeny, NoArrayReverse];
|
|
1403
|
+
"unicorn/no-array-sort"?: RuleNoConfig | [AllowWarnDeny, NoArraySort];
|
|
1249
1404
|
"unicorn/no-await-expression-member"?: RuleNoConfig;
|
|
1250
1405
|
"unicorn/no-await-in-promise-methods"?: RuleNoConfig;
|
|
1251
1406
|
"unicorn/no-console-spaces"?: RuleNoConfig;
|
|
@@ -1254,7 +1409,7 @@ interface DummyRuleMap {
|
|
|
1254
1409
|
"unicorn/no-hex-escape"?: RuleNoConfig;
|
|
1255
1410
|
"unicorn/no-immediate-mutation"?: RuleNoConfig;
|
|
1256
1411
|
"unicorn/no-instanceof-array"?: RuleNoConfig;
|
|
1257
|
-
"unicorn/no-instanceof-builtins"?:
|
|
1412
|
+
"unicorn/no-instanceof-builtins"?: RuleNoConfig | [AllowWarnDeny, NoInstanceofBuiltinsConfig];
|
|
1258
1413
|
"unicorn/no-invalid-fetch-options"?: RuleNoConfig;
|
|
1259
1414
|
"unicorn/no-invalid-remove-event-listener"?: RuleNoConfig;
|
|
1260
1415
|
"unicorn/no-length-as-slice-end"?: RuleNoConfig;
|
|
@@ -1265,14 +1420,14 @@ interface DummyRuleMap {
|
|
|
1265
1420
|
"unicorn/no-nested-ternary"?: RuleNoConfig;
|
|
1266
1421
|
"unicorn/no-new-array"?: RuleNoConfig;
|
|
1267
1422
|
"unicorn/no-new-buffer"?: RuleNoConfig;
|
|
1268
|
-
"unicorn/no-null"?:
|
|
1423
|
+
"unicorn/no-null"?: RuleNoConfig | [AllowWarnDeny, NoNull];
|
|
1269
1424
|
"unicorn/no-object-as-default-parameter"?: RuleNoConfig;
|
|
1270
1425
|
"unicorn/no-process-exit"?: RuleNoConfig;
|
|
1271
1426
|
"unicorn/no-single-promise-in-promise-methods"?: RuleNoConfig;
|
|
1272
1427
|
"unicorn/no-static-only-class"?: RuleNoConfig;
|
|
1273
1428
|
"unicorn/no-thenable"?: RuleNoConfig;
|
|
1274
1429
|
"unicorn/no-this-assignment"?: RuleNoConfig;
|
|
1275
|
-
"unicorn/no-typeof-undefined"?:
|
|
1430
|
+
"unicorn/no-typeof-undefined"?: RuleNoConfig | [AllowWarnDeny, NoTypeofUndefined];
|
|
1276
1431
|
"unicorn/no-unnecessary-array-flat-depth"?: RuleNoConfig;
|
|
1277
1432
|
"unicorn/no-unnecessary-array-splice-count"?: RuleNoConfig;
|
|
1278
1433
|
"unicorn/no-unnecessary-await"?: RuleNoConfig;
|
|
@@ -1284,20 +1439,20 @@ interface DummyRuleMap {
|
|
|
1284
1439
|
"unicorn/no-useless-fallback-in-spread"?: RuleNoConfig;
|
|
1285
1440
|
"unicorn/no-useless-iterator-to-array"?: RuleNoConfig;
|
|
1286
1441
|
"unicorn/no-useless-length-check"?: RuleNoConfig;
|
|
1287
|
-
"unicorn/no-useless-promise-resolve-reject"?:
|
|
1442
|
+
"unicorn/no-useless-promise-resolve-reject"?: RuleNoConfig | [AllowWarnDeny, NoUselessPromiseResolveRejectOptions];
|
|
1288
1443
|
"unicorn/no-useless-spread"?: RuleNoConfig;
|
|
1289
1444
|
"unicorn/no-useless-switch-case"?: RuleNoConfig;
|
|
1290
|
-
"unicorn/no-useless-undefined"?:
|
|
1445
|
+
"unicorn/no-useless-undefined"?: RuleNoConfig | [AllowWarnDeny, NoUselessUndefined];
|
|
1291
1446
|
"unicorn/no-zero-fractions"?: RuleNoConfig;
|
|
1292
1447
|
"unicorn/number-literal-case"?: RuleNoConfig;
|
|
1293
|
-
"unicorn/numeric-separators-style"?:
|
|
1448
|
+
"unicorn/numeric-separators-style"?: RuleNoConfig | [AllowWarnDeny, NumericSeparatorsStyleConfig];
|
|
1294
1449
|
"unicorn/prefer-add-event-listener"?: RuleNoConfig;
|
|
1295
1450
|
"unicorn/prefer-array-find"?: RuleNoConfig;
|
|
1296
1451
|
"unicorn/prefer-array-flat"?: RuleNoConfig;
|
|
1297
1452
|
"unicorn/prefer-array-flat-map"?: RuleNoConfig;
|
|
1298
1453
|
"unicorn/prefer-array-index-of"?: RuleNoConfig;
|
|
1299
1454
|
"unicorn/prefer-array-some"?: RuleNoConfig;
|
|
1300
|
-
"unicorn/prefer-at"?:
|
|
1455
|
+
"unicorn/prefer-at"?: RuleNoConfig | [AllowWarnDeny, PreferAtConfig];
|
|
1301
1456
|
"unicorn/prefer-bigint-literals"?: RuleNoConfig;
|
|
1302
1457
|
"unicorn/prefer-blob-reading-methods"?: RuleNoConfig;
|
|
1303
1458
|
"unicorn/prefer-class-fields"?: RuleNoConfig;
|
|
@@ -1310,6 +1465,7 @@ interface DummyRuleMap {
|
|
|
1310
1465
|
"unicorn/prefer-dom-node-remove"?: RuleNoConfig;
|
|
1311
1466
|
"unicorn/prefer-dom-node-text-content"?: RuleNoConfig;
|
|
1312
1467
|
"unicorn/prefer-event-target"?: RuleNoConfig;
|
|
1468
|
+
"unicorn/prefer-export-from"?: RuleNoConfig | [AllowWarnDeny, PreferExportFrom];
|
|
1313
1469
|
"unicorn/prefer-global-this"?: RuleNoConfig;
|
|
1314
1470
|
"unicorn/prefer-import-meta-properties"?: RuleNoConfig;
|
|
1315
1471
|
"unicorn/prefer-includes"?: RuleNoConfig;
|
|
@@ -1323,8 +1479,9 @@ interface DummyRuleMap {
|
|
|
1323
1479
|
"unicorn/prefer-native-coercion-functions"?: RuleNoConfig;
|
|
1324
1480
|
"unicorn/prefer-negative-index"?: RuleNoConfig;
|
|
1325
1481
|
"unicorn/prefer-node-protocol"?: RuleNoConfig;
|
|
1326
|
-
"unicorn/prefer-number-
|
|
1327
|
-
"unicorn/prefer-
|
|
1482
|
+
"unicorn/prefer-number-coercion"?: RuleNoConfig;
|
|
1483
|
+
"unicorn/prefer-number-properties"?: RuleNoConfig | [AllowWarnDeny, PreferNumberPropertiesConfig];
|
|
1484
|
+
"unicorn/prefer-object-from-entries"?: RuleNoConfig | [AllowWarnDeny, PreferObjectFromEntriesConfig];
|
|
1328
1485
|
"unicorn/prefer-optional-catch-binding"?: RuleNoConfig;
|
|
1329
1486
|
"unicorn/prefer-prototype-methods"?: RuleNoConfig;
|
|
1330
1487
|
"unicorn/prefer-query-selector"?: RuleNoConfig;
|
|
@@ -1333,37 +1490,38 @@ interface DummyRuleMap {
|
|
|
1333
1490
|
"unicorn/prefer-response-static-json"?: RuleNoConfig;
|
|
1334
1491
|
"unicorn/prefer-set-has"?: RuleNoConfig;
|
|
1335
1492
|
"unicorn/prefer-set-size"?: RuleNoConfig;
|
|
1493
|
+
"unicorn/prefer-single-call"?: RuleNoConfig | [AllowWarnDeny, PreferSingleCallConfig];
|
|
1336
1494
|
"unicorn/prefer-spread"?: RuleNoConfig;
|
|
1337
1495
|
"unicorn/prefer-string-raw"?: RuleNoConfig;
|
|
1338
1496
|
"unicorn/prefer-string-replace-all"?: RuleNoConfig;
|
|
1339
1497
|
"unicorn/prefer-string-slice"?: RuleNoConfig;
|
|
1340
1498
|
"unicorn/prefer-string-starts-ends-with"?: RuleNoConfig;
|
|
1341
1499
|
"unicorn/prefer-string-trim-start-end"?: RuleNoConfig;
|
|
1342
|
-
"unicorn/prefer-structured-clone"?:
|
|
1343
|
-
"unicorn/prefer-ternary"?:
|
|
1500
|
+
"unicorn/prefer-structured-clone"?: RuleNoConfig | [AllowWarnDeny, PreferStructuredCloneConfig];
|
|
1501
|
+
"unicorn/prefer-ternary"?: RuleNoConfig | [AllowWarnDeny, PreferTernaryOption];
|
|
1344
1502
|
"unicorn/prefer-top-level-await"?: RuleNoConfig;
|
|
1345
1503
|
"unicorn/prefer-type-error"?: RuleNoConfig;
|
|
1346
|
-
"unicorn/relative-url-style"?:
|
|
1504
|
+
"unicorn/relative-url-style"?: RuleNoConfig | [AllowWarnDeny, RelativeUrlStyleConfig];
|
|
1347
1505
|
"unicorn/require-array-join-separator"?: RuleNoConfig;
|
|
1348
1506
|
"unicorn/require-module-attributes"?: RuleNoConfig;
|
|
1349
1507
|
"unicorn/require-module-specifiers"?: RuleNoConfig;
|
|
1350
1508
|
"unicorn/require-number-to-fixed-digits-argument"?: RuleNoConfig;
|
|
1351
1509
|
"unicorn/require-post-message-target-origin"?: RuleNoConfig;
|
|
1352
|
-
"unicorn/switch-case-braces"?:
|
|
1510
|
+
"unicorn/switch-case-braces"?: RuleNoConfig | [AllowWarnDeny, SwitchCaseBracesConfig];
|
|
1353
1511
|
"unicorn/switch-case-break-position"?: RuleNoConfig;
|
|
1354
|
-
"unicorn/text-encoding-identifier-case"?:
|
|
1512
|
+
"unicorn/text-encoding-identifier-case"?: RuleNoConfig | [AllowWarnDeny, TextEncodingIdentifierCase];
|
|
1355
1513
|
"unicorn/throw-new-error"?: RuleNoConfig;
|
|
1356
|
-
"use-isnan"?:
|
|
1357
|
-
"valid-typeof"?:
|
|
1514
|
+
"use-isnan"?: RuleNoConfig | [AllowWarnDeny, UseIsnan];
|
|
1515
|
+
"valid-typeof"?: RuleNoConfig | [AllowWarnDeny, ValidTypeof];
|
|
1358
1516
|
"vars-on-top"?: RuleNoConfig;
|
|
1359
|
-
"vitest/consistent-each-for"?:
|
|
1360
|
-
"vitest/consistent-test-filename"?:
|
|
1361
|
-
"vitest/consistent-test-it"?:
|
|
1362
|
-
"vitest/consistent-vitest-vi"?:
|
|
1363
|
-
"vitest/expect-expect"?:
|
|
1517
|
+
"vitest/consistent-each-for"?: RuleNoConfig | [AllowWarnDeny, ConsistentEachForJson];
|
|
1518
|
+
"vitest/consistent-test-filename"?: RuleNoConfig | [AllowWarnDeny, ConsistentTestFilenameConfig];
|
|
1519
|
+
"vitest/consistent-test-it"?: RuleNoConfig | [AllowWarnDeny, ConsistentTestItConfig];
|
|
1520
|
+
"vitest/consistent-vitest-vi"?: RuleNoConfig | [AllowWarnDeny, ConsistentVitestConfig];
|
|
1521
|
+
"vitest/expect-expect"?: RuleNoConfig | [AllowWarnDeny, ExpectExpectConfig];
|
|
1364
1522
|
"vitest/hoisted-apis-on-top"?: RuleNoConfig;
|
|
1365
|
-
"vitest/max-expects"?:
|
|
1366
|
-
"vitest/max-nested-describe"?:
|
|
1523
|
+
"vitest/max-expects"?: RuleNoConfig | [AllowWarnDeny, MaxExpectsConfig];
|
|
1524
|
+
"vitest/max-nested-describe"?: RuleNoConfig | [AllowWarnDeny, MaxNestedDescribeConfig];
|
|
1367
1525
|
"vitest/no-alias-methods"?: RuleNoConfig;
|
|
1368
1526
|
"vitest/no-commented-out-tests"?: RuleNoConfig;
|
|
1369
1527
|
"vitest/no-conditional-expect"?: RuleNoConfig;
|
|
@@ -1372,16 +1530,16 @@ interface DummyRuleMap {
|
|
|
1372
1530
|
"vitest/no-disabled-tests"?: RuleNoConfig;
|
|
1373
1531
|
"vitest/no-duplicate-hooks"?: RuleNoConfig;
|
|
1374
1532
|
"vitest/no-focused-tests"?: RuleNoConfig;
|
|
1375
|
-
"vitest/no-hooks"?:
|
|
1533
|
+
"vitest/no-hooks"?: RuleNoConfig | [AllowWarnDeny, NoHooksConfig];
|
|
1376
1534
|
"vitest/no-identical-title"?: RuleNoConfig;
|
|
1377
1535
|
"vitest/no-import-node-test"?: RuleNoConfig;
|
|
1378
1536
|
"vitest/no-importing-vitest-globals"?: RuleNoConfig;
|
|
1379
1537
|
"vitest/no-interpolation-in-snapshots"?: RuleNoConfig;
|
|
1380
|
-
"vitest/no-large-snapshots"?:
|
|
1538
|
+
"vitest/no-large-snapshots"?: RuleNoConfig | [AllowWarnDeny, NoLargeSnapshotsConfig];
|
|
1381
1539
|
"vitest/no-mocks-import"?: RuleNoConfig;
|
|
1382
|
-
"vitest/no-restricted-matchers"?:
|
|
1383
|
-
"vitest/no-restricted-vi-methods"?:
|
|
1384
|
-
"vitest/no-standalone-expect"?:
|
|
1540
|
+
"vitest/no-restricted-matchers"?: RuleNoConfig | [AllowWarnDeny, NoRestrictedMatchersConfig];
|
|
1541
|
+
"vitest/no-restricted-vi-methods"?: RuleNoConfig | [AllowWarnDeny, NoRestrictedTestMethodsConfig];
|
|
1542
|
+
"vitest/no-standalone-expect"?: RuleNoConfig | [AllowWarnDeny, NoStandaloneExpectConfig];
|
|
1385
1543
|
"vitest/no-test-prefixes"?: RuleNoConfig;
|
|
1386
1544
|
"vitest/no-test-return-statement"?: RuleNoConfig;
|
|
1387
1545
|
"vitest/no-unneeded-async-expect-function"?: RuleNoConfig;
|
|
@@ -1394,17 +1552,17 @@ interface DummyRuleMap {
|
|
|
1394
1552
|
"vitest/prefer-describe-function-title"?: RuleNoConfig;
|
|
1395
1553
|
"vitest/prefer-each"?: RuleNoConfig;
|
|
1396
1554
|
"vitest/prefer-equality-matcher"?: RuleNoConfig;
|
|
1397
|
-
"vitest/prefer-expect-assertions"?:
|
|
1555
|
+
"vitest/prefer-expect-assertions"?: RuleNoConfig | [AllowWarnDeny, PreferExpectAssertionsConfig];
|
|
1398
1556
|
"vitest/prefer-expect-resolves"?: RuleNoConfig;
|
|
1399
1557
|
"vitest/prefer-expect-type-of"?: RuleNoConfig;
|
|
1400
1558
|
"vitest/prefer-hooks-in-order"?: RuleNoConfig;
|
|
1401
1559
|
"vitest/prefer-hooks-on-top"?: RuleNoConfig;
|
|
1402
|
-
"vitest/prefer-import-in-mock"?:
|
|
1560
|
+
"vitest/prefer-import-in-mock"?: RuleNoConfig | [AllowWarnDeny, PreferImportInMockConfig];
|
|
1403
1561
|
"vitest/prefer-importing-vitest-globals"?: RuleNoConfig;
|
|
1404
1562
|
"vitest/prefer-lowercase-title"?: DummyRule;
|
|
1405
1563
|
"vitest/prefer-mock-promise-shorthand"?: RuleNoConfig;
|
|
1406
1564
|
"vitest/prefer-mock-return-shorthand"?: RuleNoConfig;
|
|
1407
|
-
"vitest/prefer-snapshot-hint"?:
|
|
1565
|
+
"vitest/prefer-snapshot-hint"?: RuleNoConfig | [AllowWarnDeny, SnapshotHintMode];
|
|
1408
1566
|
"vitest/prefer-spy-on"?: RuleNoConfig;
|
|
1409
1567
|
"vitest/prefer-strict-boolean-matchers"?: RuleNoConfig;
|
|
1410
1568
|
"vitest/prefer-strict-equal"?: RuleNoConfig;
|
|
@@ -1417,60 +1575,64 @@ interface DummyRuleMap {
|
|
|
1417
1575
|
"vitest/prefer-to-have-length"?: RuleNoConfig;
|
|
1418
1576
|
"vitest/prefer-todo"?: RuleNoConfig;
|
|
1419
1577
|
"vitest/require-awaited-expect-poll"?: RuleNoConfig;
|
|
1420
|
-
"vitest/require-hook"?:
|
|
1578
|
+
"vitest/require-hook"?: RuleNoConfig | [AllowWarnDeny, RequireHookConfig];
|
|
1421
1579
|
"vitest/require-local-test-context-for-concurrent-snapshots"?: RuleNoConfig;
|
|
1422
|
-
"vitest/require-mock-type-parameters"?:
|
|
1580
|
+
"vitest/require-mock-type-parameters"?: RuleNoConfig | [AllowWarnDeny, RequireMockTypeParametersConfig];
|
|
1423
1581
|
"vitest/require-test-timeout"?: RuleNoConfig;
|
|
1424
1582
|
"vitest/require-to-throw-message"?: RuleNoConfig;
|
|
1425
|
-
"vitest/require-top-level-describe"?:
|
|
1583
|
+
"vitest/require-top-level-describe"?: RuleNoConfig | [AllowWarnDeny, RequireTopLevelDescribeConfig];
|
|
1426
1584
|
"vitest/valid-describe-callback"?: RuleNoConfig;
|
|
1427
|
-
"vitest/valid-expect"?:
|
|
1585
|
+
"vitest/valid-expect"?: RuleNoConfig | [AllowWarnDeny, ValidExpectConfig];
|
|
1428
1586
|
"vitest/valid-expect-in-promise"?: RuleNoConfig;
|
|
1429
1587
|
"vitest/valid-title"?: DummyRule;
|
|
1430
1588
|
"vitest/warn-todo"?: RuleNoConfig;
|
|
1431
|
-
"vue/component-definition-name-casing"?:
|
|
1432
|
-
"vue/define-emits-declaration"?:
|
|
1433
|
-
"vue/define-props-declaration"?:
|
|
1434
|
-
"vue/define-props-destructuring"?:
|
|
1435
|
-
"vue/max-props"?:
|
|
1436
|
-
"vue/next-tick-style"?:
|
|
1589
|
+
"vue/component-definition-name-casing"?: RuleNoConfig | [AllowWarnDeny, CaseType];
|
|
1590
|
+
"vue/define-emits-declaration"?: RuleNoConfig | [AllowWarnDeny, DeclarationStyle];
|
|
1591
|
+
"vue/define-props-declaration"?: RuleNoConfig | [AllowWarnDeny, DeclarationStyle2];
|
|
1592
|
+
"vue/define-props-destructuring"?: RuleNoConfig | [AllowWarnDeny, DefinePropsDestructuring];
|
|
1593
|
+
"vue/max-props"?: RuleNoConfig | [AllowWarnDeny, MaxProps];
|
|
1594
|
+
"vue/next-tick-style"?: RuleNoConfig | [AllowWarnDeny, NextTickOption];
|
|
1437
1595
|
"vue/no-arrow-functions-in-watch"?: RuleNoConfig;
|
|
1596
|
+
"vue/no-async-in-computed-properties"?: RuleNoConfig | [AllowWarnDeny, NoAsyncInComputedPropertiesConfig];
|
|
1438
1597
|
"vue/no-computed-properties-in-data"?: RuleNoConfig;
|
|
1439
1598
|
"vue/no-deprecated-data-object-declaration"?: RuleNoConfig;
|
|
1440
1599
|
"vue/no-deprecated-delete-set"?: RuleNoConfig;
|
|
1441
1600
|
"vue/no-deprecated-destroyed-lifecycle"?: RuleNoConfig;
|
|
1442
1601
|
"vue/no-deprecated-events-api"?: RuleNoConfig;
|
|
1443
|
-
"vue/no-deprecated-model-definition"?:
|
|
1602
|
+
"vue/no-deprecated-model-definition"?: RuleNoConfig | [AllowWarnDeny, NoDeprecatedModelDefinitionConfig];
|
|
1444
1603
|
"vue/no-deprecated-props-default-this"?: RuleNoConfig;
|
|
1445
1604
|
"vue/no-deprecated-vue-config-keycodes"?: RuleNoConfig;
|
|
1605
|
+
"vue/no-dupe-keys"?: RuleNoConfig | [AllowWarnDeny, NoDupeKeysConfig];
|
|
1446
1606
|
"vue/no-export-in-script-setup"?: RuleNoConfig;
|
|
1447
1607
|
"vue/no-expose-after-await"?: RuleNoConfig;
|
|
1448
1608
|
"vue/no-import-compiler-macros"?: RuleNoConfig;
|
|
1449
1609
|
"vue/no-lifecycle-after-await"?: RuleNoConfig;
|
|
1450
1610
|
"vue/no-multiple-slot-args"?: RuleNoConfig;
|
|
1451
1611
|
"vue/no-required-prop-with-default"?: RuleNoConfig;
|
|
1452
|
-
"vue/no-reserved-component-names"?:
|
|
1453
|
-
"vue/no-reserved-keys"?:
|
|
1454
|
-
"vue/no-reserved-props"?:
|
|
1612
|
+
"vue/no-reserved-component-names"?: RuleNoConfig | [AllowWarnDeny, NoReservedComponentNames];
|
|
1613
|
+
"vue/no-reserved-keys"?: RuleNoConfig | [AllowWarnDeny, NoReservedKeysConfig];
|
|
1614
|
+
"vue/no-reserved-props"?: RuleNoConfig | [AllowWarnDeny, NoReservedPropsConfig];
|
|
1455
1615
|
"vue/no-shared-component-data"?: RuleNoConfig;
|
|
1616
|
+
"vue/no-side-effects-in-computed-properties"?: RuleNoConfig;
|
|
1456
1617
|
"vue/no-this-in-before-route-enter"?: RuleNoConfig;
|
|
1457
1618
|
"vue/no-watch-after-await"?: RuleNoConfig;
|
|
1458
1619
|
"vue/prefer-import-from-vue"?: RuleNoConfig;
|
|
1459
|
-
"vue/prop-name-casing"?:
|
|
1620
|
+
"vue/prop-name-casing"?: RuleNoConfig | [AllowWarnDeny, CaseType2] | [AllowWarnDeny, CaseType2, Options];
|
|
1460
1621
|
"vue/require-default-export"?: RuleNoConfig;
|
|
1461
|
-
"vue/require-
|
|
1622
|
+
"vue/require-default-prop"?: RuleNoConfig;
|
|
1623
|
+
"vue/require-direct-export"?: RuleNoConfig | [AllowWarnDeny, RequireDirectExport];
|
|
1462
1624
|
"vue/require-prop-type-constructor"?: RuleNoConfig;
|
|
1463
1625
|
"vue/require-prop-types"?: RuleNoConfig;
|
|
1464
1626
|
"vue/require-render-return"?: RuleNoConfig;
|
|
1465
1627
|
"vue/require-slots-as-functions"?: RuleNoConfig;
|
|
1466
1628
|
"vue/require-typed-ref"?: RuleNoConfig;
|
|
1467
|
-
"vue/return-in-computed-property"?:
|
|
1629
|
+
"vue/return-in-computed-property"?: RuleNoConfig | [AllowWarnDeny, ReturnInComputedPropertyConfig];
|
|
1468
1630
|
"vue/return-in-emits-validator"?: RuleNoConfig;
|
|
1469
1631
|
"vue/valid-define-emits"?: RuleNoConfig;
|
|
1470
1632
|
"vue/valid-define-options"?: RuleNoConfig;
|
|
1471
1633
|
"vue/valid-define-props"?: RuleNoConfig;
|
|
1472
1634
|
"vue/valid-next-tick"?: RuleNoConfig;
|
|
1473
|
-
yoda?:
|
|
1635
|
+
yoda?: RuleNoConfig | [AllowWarnDeny, AllowYoda] | [AllowWarnDeny, AllowYoda, YodaOptions];
|
|
1474
1636
|
[k: string]: DummyRule | undefined;
|
|
1475
1637
|
}
|
|
1476
1638
|
interface AccessorPairsConfig {
|
|
@@ -1508,6 +1670,10 @@ interface ArrayCallbackReturn {
|
|
|
1508
1670
|
checkForEach?: boolean;
|
|
1509
1671
|
}
|
|
1510
1672
|
interface ArrowBodyStyleConfig {
|
|
1673
|
+
/**
|
|
1674
|
+
* Requires braces and an explicit return for object literals. This option only applies when
|
|
1675
|
+
* the first option is `"as-needed"`.
|
|
1676
|
+
*/
|
|
1511
1677
|
requireReturnForObjectLiteral?: boolean;
|
|
1512
1678
|
}
|
|
1513
1679
|
interface CommentConfigJson {
|
|
@@ -1587,6 +1753,16 @@ interface EqeqeqOptions {
|
|
|
1587
1753
|
*/
|
|
1588
1754
|
null?: NullType;
|
|
1589
1755
|
}
|
|
1756
|
+
interface FuncNameMatchingConfig {
|
|
1757
|
+
/**
|
|
1758
|
+
* If `considerPropertyDescriptor` is set to `true`, the check will take into account the use of `Object.create`, `Object.defineProperty`, `Object.defineProperties`, and `Reflect.defineProperty`.
|
|
1759
|
+
*/
|
|
1760
|
+
considerPropertyDescriptor?: boolean;
|
|
1761
|
+
/**
|
|
1762
|
+
* If `includeCommonJSModuleExports` is set to `true`, `module.exports` and `module["exports"]` will be checked by this rule.
|
|
1763
|
+
*/
|
|
1764
|
+
includeCommonJSModuleExports?: boolean;
|
|
1765
|
+
}
|
|
1590
1766
|
interface FuncNamesGeneratorsConfig {
|
|
1591
1767
|
/**
|
|
1592
1768
|
* Configuration for generator function expressions. If not specified, uses the
|
|
@@ -1719,6 +1895,36 @@ interface IdMatchOptions {
|
|
|
1719
1895
|
*/
|
|
1720
1896
|
properties?: boolean;
|
|
1721
1897
|
}
|
|
1898
|
+
interface ImportExtensionsConfig {
|
|
1899
|
+
/**
|
|
1900
|
+
* Whether to check type imports when enforcing extension rules.
|
|
1901
|
+
*/
|
|
1902
|
+
checkTypeImports?: boolean;
|
|
1903
|
+
/**
|
|
1904
|
+
* Whether to ignore package imports when enforcing extension rules.
|
|
1905
|
+
*/
|
|
1906
|
+
ignorePackages?: boolean;
|
|
1907
|
+
/**
|
|
1908
|
+
* Path group overrides for bespoke import specifiers.
|
|
1909
|
+
*/
|
|
1910
|
+
pathGroupOverrides?: PathGroupOverrideConfig[];
|
|
1911
|
+
/**
|
|
1912
|
+
* Per-extension rules.
|
|
1913
|
+
*/
|
|
1914
|
+
pattern?: {
|
|
1915
|
+
[k: string]: ExtensionRule;
|
|
1916
|
+
};
|
|
1917
|
+
}
|
|
1918
|
+
interface PathGroupOverrideConfig {
|
|
1919
|
+
/**
|
|
1920
|
+
* Action to take when pattern matches.
|
|
1921
|
+
*/
|
|
1922
|
+
action: PathGroupAction;
|
|
1923
|
+
/**
|
|
1924
|
+
* Glob pattern to match import specifiers.
|
|
1925
|
+
*/
|
|
1926
|
+
pattern: string;
|
|
1927
|
+
}
|
|
1722
1928
|
interface MaxDependenciesConfig {
|
|
1723
1929
|
/**
|
|
1724
1930
|
* Whether to ignore type imports when counting dependencies.
|
|
@@ -1995,6 +2201,77 @@ interface MaxExpectsConfig {
|
|
|
1995
2201
|
*/
|
|
1996
2202
|
max?: number;
|
|
1997
2203
|
}
|
|
2204
|
+
interface MaxNestedDescribeConfig {
|
|
2205
|
+
/**
|
|
2206
|
+
* Maximum allowed depth of nested describe calls.
|
|
2207
|
+
*/
|
|
2208
|
+
max?: number;
|
|
2209
|
+
}
|
|
2210
|
+
interface NoDeprecatedFunctionsConfig {
|
|
2211
|
+
/**
|
|
2212
|
+
* Jest configuration options.
|
|
2213
|
+
* Deprecated config, it will be removed in future versions.
|
|
2214
|
+
* Use please instead { "settings": { "jest": {"version": 29 } } } in `Oxlint config file`.
|
|
2215
|
+
* Beware the value from the config have higher priority than the rule config.
|
|
2216
|
+
*/
|
|
2217
|
+
jest?: JestConfigJson;
|
|
2218
|
+
}
|
|
2219
|
+
interface JestConfigJson {
|
|
2220
|
+
/**
|
|
2221
|
+
* The version of Jest being used.
|
|
2222
|
+
*/
|
|
2223
|
+
version?: string;
|
|
2224
|
+
}
|
|
2225
|
+
interface NoHooksConfig {
|
|
2226
|
+
/**
|
|
2227
|
+
* An array of hook function names that are permitted for use.
|
|
2228
|
+
*/
|
|
2229
|
+
allow?: string[];
|
|
2230
|
+
}
|
|
2231
|
+
interface NoLargeSnapshotsConfig {
|
|
2232
|
+
/**
|
|
2233
|
+
* A map of snapshot file paths to arrays of snapshot names that are allowed to exceed the size limit.
|
|
2234
|
+
* Snapshot names can be specified as regular expressions.
|
|
2235
|
+
*/
|
|
2236
|
+
allowedSnapshots?: {
|
|
2237
|
+
[k: string]: string[] | undefined;
|
|
2238
|
+
};
|
|
2239
|
+
/**
|
|
2240
|
+
* Maximum number of lines allowed for inline snapshots.
|
|
2241
|
+
*/
|
|
2242
|
+
inlineMaxSize?: number;
|
|
2243
|
+
/**
|
|
2244
|
+
* Maximum number of lines allowed for external snapshot files.
|
|
2245
|
+
*/
|
|
2246
|
+
maxSize?: number;
|
|
2247
|
+
}
|
|
2248
|
+
interface NoRestrictedTestMethodsConfig {
|
|
2249
|
+
[k: string]: (string | null) | undefined;
|
|
2250
|
+
}
|
|
2251
|
+
interface NoRestrictedMatchersConfig {
|
|
2252
|
+
[k: string]: (string | null) | undefined;
|
|
2253
|
+
}
|
|
2254
|
+
interface NoStandaloneExpectConfig {
|
|
2255
|
+
/**
|
|
2256
|
+
* An array of function names that should also be treated as test blocks.
|
|
2257
|
+
*/
|
|
2258
|
+
additionalTestBlockFunctions?: string[];
|
|
2259
|
+
}
|
|
2260
|
+
interface PreferEndingWithAnExpectConfig {
|
|
2261
|
+
/**
|
|
2262
|
+
* An array of function names that should also be treated as test blocks.
|
|
2263
|
+
*/
|
|
2264
|
+
additionalTestBlockFunctions?: string[];
|
|
2265
|
+
/**
|
|
2266
|
+
* A list of function names that should be treated as assertion functions.
|
|
2267
|
+
*/
|
|
2268
|
+
assertFunctionNames?: string[];
|
|
2269
|
+
}
|
|
2270
|
+
interface PreferExpectAssertionsConfig {
|
|
2271
|
+
onlyFunctionsWithAsyncKeyword?: boolean;
|
|
2272
|
+
onlyFunctionsWithExpectInCallback?: boolean;
|
|
2273
|
+
onlyFunctionsWithExpectInLoop?: boolean;
|
|
2274
|
+
}
|
|
1998
2275
|
interface PreferImportingJestGlobalsConfig {
|
|
1999
2276
|
/**
|
|
2000
2277
|
* Jest function types to enforce importing for.
|
|
@@ -2007,6 +2284,30 @@ interface RequireHookConfig {
|
|
|
2007
2284
|
*/
|
|
2008
2285
|
allowedFunctionCalls?: string[];
|
|
2009
2286
|
}
|
|
2287
|
+
interface RequireTopLevelDescribeConfig {
|
|
2288
|
+
/**
|
|
2289
|
+
* The maximum number of top-level `describe` blocks allowed in a test file.
|
|
2290
|
+
*/
|
|
2291
|
+
maxNumberOfTopLevelDescribes?: number;
|
|
2292
|
+
}
|
|
2293
|
+
interface ValidExpectConfig {
|
|
2294
|
+
/**
|
|
2295
|
+
* When `true`, async assertions must be awaited in all contexts (not just return statements).
|
|
2296
|
+
*/
|
|
2297
|
+
alwaysAwait?: boolean;
|
|
2298
|
+
/**
|
|
2299
|
+
* List of matchers that are considered async and therefore require awaiting (e.g. `toResolve`, `toReject`).
|
|
2300
|
+
*/
|
|
2301
|
+
asyncMatchers?: string[];
|
|
2302
|
+
/**
|
|
2303
|
+
* Maximum number of arguments `expect` should be called with.
|
|
2304
|
+
*/
|
|
2305
|
+
maxArgs?: number;
|
|
2306
|
+
/**
|
|
2307
|
+
* Minimum number of arguments `expect` should be called with.
|
|
2308
|
+
*/
|
|
2309
|
+
minArgs?: number;
|
|
2310
|
+
}
|
|
2010
2311
|
interface CheckTagNamesConfig {
|
|
2011
2312
|
/**
|
|
2012
2313
|
* Additional tag names to allow.
|
|
@@ -2037,6 +2338,28 @@ interface NoDefaultsConfig {
|
|
|
2037
2338
|
*/
|
|
2038
2339
|
noOptionalParamNames?: boolean;
|
|
2039
2340
|
}
|
|
2341
|
+
interface RequireParamDescriptionConfig {
|
|
2342
|
+
/**
|
|
2343
|
+
* The description string to set by default for destructured roots. Defaults to "The root object".
|
|
2344
|
+
*/
|
|
2345
|
+
defaultDestructuredRootDescription?: string;
|
|
2346
|
+
/**
|
|
2347
|
+
* Whether to set a default destructured root description.
|
|
2348
|
+
* For example, you may wish to avoid manually having to set the description for a @param corresponding to a destructured root object as it should always be the same type of object.
|
|
2349
|
+
* Uses `defaultDestructuredRootDescription` for the description string. Defaults to `false`.
|
|
2350
|
+
*/
|
|
2351
|
+
setDefaultDestructuredRootDescription?: boolean;
|
|
2352
|
+
}
|
|
2353
|
+
interface RequireParamTypeConfig {
|
|
2354
|
+
/**
|
|
2355
|
+
* The type string to set by default for destructured roots. Defaults to "object".
|
|
2356
|
+
*/
|
|
2357
|
+
defaultDestructuredRootType?: string;
|
|
2358
|
+
/**
|
|
2359
|
+
* Whether to set a default destructured root type. For example, you may wish to avoid manually having to set the type for a `@param` corresponding to a destructured root object as it is always going to be an object. Uses `defaultDestructuredRootType` for the type string. Defaults to `false`.
|
|
2360
|
+
*/
|
|
2361
|
+
setDefaultDestructuredRootType?: boolean;
|
|
2362
|
+
}
|
|
2040
2363
|
interface RequireReturnsConfig {
|
|
2041
2364
|
/**
|
|
2042
2365
|
* Whether to check constructor methods.
|
|
@@ -2073,12 +2396,48 @@ interface RequireYieldsConfig {
|
|
|
2073
2396
|
*/
|
|
2074
2397
|
withGeneratorTag?: boolean;
|
|
2075
2398
|
}
|
|
2399
|
+
interface AltTextConfigSchema {
|
|
2400
|
+
/**
|
|
2401
|
+
* Custom components to check for alt text on `area` elements.
|
|
2402
|
+
*/
|
|
2403
|
+
area?: string[];
|
|
2404
|
+
/**
|
|
2405
|
+
* Custom components to check for alt text on any of the supported elements.
|
|
2406
|
+
*/
|
|
2407
|
+
elements?: AltTextElements[];
|
|
2408
|
+
/**
|
|
2409
|
+
* Custom components to check for alt text on `img` elements.
|
|
2410
|
+
*/
|
|
2411
|
+
img?: string[];
|
|
2412
|
+
/**
|
|
2413
|
+
* Custom components to check for alt text on `input[type="image"]` elements.
|
|
2414
|
+
*/
|
|
2415
|
+
'input[type="image"]'?: string[];
|
|
2416
|
+
/**
|
|
2417
|
+
* Custom components to check for alt text on `object` elements.
|
|
2418
|
+
*/
|
|
2419
|
+
object?: string[];
|
|
2420
|
+
}
|
|
2076
2421
|
interface AnchorAmbiguousTextConfig {
|
|
2077
2422
|
/**
|
|
2078
2423
|
* List of ambiguous words or phrases that should be flagged in anchor text.
|
|
2079
2424
|
*/
|
|
2080
2425
|
words?: string[];
|
|
2081
2426
|
}
|
|
2427
|
+
interface AnchorIsValidConfig {
|
|
2428
|
+
/**
|
|
2429
|
+
* Sub-rule aspects to run.
|
|
2430
|
+
*/
|
|
2431
|
+
aspects?: AnchorIsValidAspect[];
|
|
2432
|
+
/**
|
|
2433
|
+
* Custom components to treat as anchor elements.
|
|
2434
|
+
*/
|
|
2435
|
+
components?: string[];
|
|
2436
|
+
/**
|
|
2437
|
+
* Custom prop names to treat as link destinations.
|
|
2438
|
+
*/
|
|
2439
|
+
specialLink?: string[];
|
|
2440
|
+
}
|
|
2082
2441
|
interface AriaRoleConfig {
|
|
2083
2442
|
/**
|
|
2084
2443
|
* Custom roles that should be allowed in addition to the ARIA spec.
|
|
@@ -2095,6 +2454,31 @@ interface AutocompleteValidConfig {
|
|
|
2095
2454
|
*/
|
|
2096
2455
|
inputComponents?: string[];
|
|
2097
2456
|
}
|
|
2457
|
+
interface ControlHasAssociatedLabelConfig {
|
|
2458
|
+
/**
|
|
2459
|
+
* Custom JSX components to be treated as interactive controls.
|
|
2460
|
+
*/
|
|
2461
|
+
controlComponents?: string[];
|
|
2462
|
+
/**
|
|
2463
|
+
* Maximum depth to search for an accessible label within the element.
|
|
2464
|
+
* Defaults to `2`.
|
|
2465
|
+
*/
|
|
2466
|
+
depth?: number;
|
|
2467
|
+
/**
|
|
2468
|
+
* Elements to ignore.
|
|
2469
|
+
* Defaults to `["audio", "canvas", "embed", "input", "textarea", "tr", "video"]`.
|
|
2470
|
+
*/
|
|
2471
|
+
ignoreElements?: string[];
|
|
2472
|
+
/**
|
|
2473
|
+
* Interactive roles to ignore.
|
|
2474
|
+
* Defaults to `["grid", "listbox", "menu", "menubar", "radiogroup", "row", "tablist", "toolbar", "tree", "treegrid"]`.
|
|
2475
|
+
*/
|
|
2476
|
+
ignoreRoles?: string[];
|
|
2477
|
+
/**
|
|
2478
|
+
* Additional attributes to check for accessible label text.
|
|
2479
|
+
*/
|
|
2480
|
+
labelAttributes?: string[];
|
|
2481
|
+
}
|
|
2098
2482
|
interface HeadingHasContentConfig {
|
|
2099
2483
|
/**
|
|
2100
2484
|
* Additional custom component names to treat as heading elements.
|
|
@@ -2102,6 +2486,17 @@ interface HeadingHasContentConfig {
|
|
|
2102
2486
|
*/
|
|
2103
2487
|
components?: string[];
|
|
2104
2488
|
}
|
|
2489
|
+
interface ImgRedundantAltConfig {
|
|
2490
|
+
/**
|
|
2491
|
+
* JSX element types to validate (component names) where the rule applies.
|
|
2492
|
+
* For example, `["img", "Image"]`.
|
|
2493
|
+
*/
|
|
2494
|
+
components?: string[];
|
|
2495
|
+
/**
|
|
2496
|
+
* Words considered redundant in alt text that should trigger a warning.
|
|
2497
|
+
*/
|
|
2498
|
+
words?: string[];
|
|
2499
|
+
}
|
|
2105
2500
|
interface InteractiveSupportsFocusConfig {
|
|
2106
2501
|
/**
|
|
2107
2502
|
* An array of interactive ARIA roles that should be considered tabbable (require `tabIndex={0}`).
|
|
@@ -2110,6 +2505,42 @@ interface InteractiveSupportsFocusConfig {
|
|
|
2110
2505
|
*/
|
|
2111
2506
|
tabbable?: string[];
|
|
2112
2507
|
}
|
|
2508
|
+
interface LabelHasAssociatedControlConfig {
|
|
2509
|
+
/**
|
|
2510
|
+
* The type of association required between the label and the control.
|
|
2511
|
+
*/
|
|
2512
|
+
assert?: Assert;
|
|
2513
|
+
/**
|
|
2514
|
+
* Custom JSX components to be treated as form controls.
|
|
2515
|
+
*/
|
|
2516
|
+
controlComponents?: string[];
|
|
2517
|
+
/**
|
|
2518
|
+
* Maximum depth to search for a nested control.
|
|
2519
|
+
*/
|
|
2520
|
+
depth?: number;
|
|
2521
|
+
/**
|
|
2522
|
+
* Attributes to check for accessible label text.
|
|
2523
|
+
*/
|
|
2524
|
+
labelAttributes?: string[];
|
|
2525
|
+
/**
|
|
2526
|
+
* Custom JSX components to be treated as labels.
|
|
2527
|
+
*/
|
|
2528
|
+
labelComponents?: string[];
|
|
2529
|
+
}
|
|
2530
|
+
interface MediaHasCaptionConfig {
|
|
2531
|
+
/**
|
|
2532
|
+
* Element names to treat as `<audio>` elements
|
|
2533
|
+
*/
|
|
2534
|
+
audio?: string[];
|
|
2535
|
+
/**
|
|
2536
|
+
* Element names to treat as `<track>` elements
|
|
2537
|
+
*/
|
|
2538
|
+
track?: string[];
|
|
2539
|
+
/**
|
|
2540
|
+
* Element names to treat as `<video>` elements
|
|
2541
|
+
*/
|
|
2542
|
+
video?: string[];
|
|
2543
|
+
}
|
|
2113
2544
|
interface MouseEventsHaveKeyEventsConfig {
|
|
2114
2545
|
/**
|
|
2115
2546
|
* List of hover-in mouse event handlers that require corresponding keyboard event handlers.
|
|
@@ -2126,6 +2557,42 @@ interface NoAutofocus {
|
|
|
2126
2557
|
*/
|
|
2127
2558
|
ignoreNonDOM?: boolean;
|
|
2128
2559
|
}
|
|
2560
|
+
interface NoDistractingElementsConfig {
|
|
2561
|
+
/**
|
|
2562
|
+
* List of distracting elements to check for.
|
|
2563
|
+
*/
|
|
2564
|
+
elements?: DistractingElement[];
|
|
2565
|
+
}
|
|
2566
|
+
interface NoInteractiveElementToNoninteractiveRoleConfig {
|
|
2567
|
+
[k: string]: string[] | undefined;
|
|
2568
|
+
}
|
|
2569
|
+
interface NoNoninteractiveElementInteractionsConfig {
|
|
2570
|
+
/**
|
|
2571
|
+
* An array of event handler names that should trigger this rule.
|
|
2572
|
+
*/
|
|
2573
|
+
handlers?: string[];
|
|
2574
|
+
[k: string]: string[] | undefined;
|
|
2575
|
+
}
|
|
2576
|
+
interface NoNoninteractiveElementToInteractiveRoleConfig {
|
|
2577
|
+
[k: string]: string[] | undefined;
|
|
2578
|
+
}
|
|
2579
|
+
interface NoNoninteractiveTabindexConfig {
|
|
2580
|
+
/**
|
|
2581
|
+
* If `true`, allows tabIndex values to be expression values (e.g., variables, ternaries). If `false`, only string literal values are allowed.
|
|
2582
|
+
*/
|
|
2583
|
+
allowExpressionValues?: boolean;
|
|
2584
|
+
/**
|
|
2585
|
+
* An array of ARIA roles that should be considered interactive.
|
|
2586
|
+
*/
|
|
2587
|
+
roles?: string[];
|
|
2588
|
+
/**
|
|
2589
|
+
* An array of custom HTML elements that should be considered interactive.
|
|
2590
|
+
*/
|
|
2591
|
+
tags?: string[];
|
|
2592
|
+
}
|
|
2593
|
+
interface NoRedundantRolesConfig {
|
|
2594
|
+
[k: string]: string[] | undefined;
|
|
2595
|
+
}
|
|
2129
2596
|
interface NoStaticElementInteractionsConfig {
|
|
2130
2597
|
/**
|
|
2131
2598
|
* If `true`, role attribute values that are JSX expressions (e.g., `role={ROLE}`) are allowed.
|
|
@@ -2837,6 +3304,31 @@ interface RestrictDefaultExports {
|
|
|
2837
3304
|
*/
|
|
2838
3305
|
namespaceFrom?: boolean;
|
|
2839
3306
|
}
|
|
3307
|
+
interface PropertyDetails {
|
|
3308
|
+
/**
|
|
3309
|
+
* Objects where property access should be allowed. This must be used with `property` and
|
|
3310
|
+
* cannot be used with `object`.
|
|
3311
|
+
*/
|
|
3312
|
+
allowObjects?: string[];
|
|
3313
|
+
/**
|
|
3314
|
+
* Properties where property access should be allowed. This must be used with `object` and
|
|
3315
|
+
* cannot be used with `property`.
|
|
3316
|
+
*/
|
|
3317
|
+
allowProperties?: string[];
|
|
3318
|
+
/**
|
|
3319
|
+
* A custom message to display.
|
|
3320
|
+
*/
|
|
3321
|
+
message?: string;
|
|
3322
|
+
/**
|
|
3323
|
+
* The object on which the property is being accessed.
|
|
3324
|
+
*/
|
|
3325
|
+
object?: string;
|
|
3326
|
+
/**
|
|
3327
|
+
* The property being accessed. If `object` is not specified, this applies to the named
|
|
3328
|
+
* property on all objects.
|
|
3329
|
+
*/
|
|
3330
|
+
property?: string;
|
|
3331
|
+
}
|
|
2840
3332
|
interface NoSelfAssign {
|
|
2841
3333
|
/**
|
|
2842
3334
|
* The `props` option when set to `false`, disables the checking of properties.
|
|
@@ -2855,7 +3347,6 @@ interface NoSequences {
|
|
|
2855
3347
|
/**
|
|
2856
3348
|
* If this option is set to `false`, this rule disallows the comma operator
|
|
2857
3349
|
* even when the expression sequence is explicitly wrapped in parentheses.
|
|
2858
|
-
* Default is `true`.
|
|
2859
3350
|
*/
|
|
2860
3351
|
allowInParentheses?: boolean;
|
|
2861
3352
|
}
|
|
@@ -3249,6 +3740,36 @@ interface NoUnusedVarsFixOptions {
|
|
|
3249
3740
|
*/
|
|
3250
3741
|
variables?: NoUnusedVarsFixMode;
|
|
3251
3742
|
}
|
|
3743
|
+
interface NoUseBeforeDefineConfig {
|
|
3744
|
+
/**
|
|
3745
|
+
* Allow named exports that appear before declaration.
|
|
3746
|
+
*/
|
|
3747
|
+
allowNamedExports?: boolean;
|
|
3748
|
+
/**
|
|
3749
|
+
* Check class declarations.
|
|
3750
|
+
*/
|
|
3751
|
+
classes?: boolean;
|
|
3752
|
+
/**
|
|
3753
|
+
* Check enum declarations.
|
|
3754
|
+
*/
|
|
3755
|
+
enums?: boolean;
|
|
3756
|
+
/**
|
|
3757
|
+
* Check function declarations.
|
|
3758
|
+
*/
|
|
3759
|
+
functions?: boolean;
|
|
3760
|
+
/**
|
|
3761
|
+
* Ignore usages that are type-only references.
|
|
3762
|
+
*/
|
|
3763
|
+
ignoreTypeReferences?: boolean;
|
|
3764
|
+
/**
|
|
3765
|
+
* Check type aliases, interfaces, and type parameters.
|
|
3766
|
+
*/
|
|
3767
|
+
typedefs?: boolean;
|
|
3768
|
+
/**
|
|
3769
|
+
* Check variable declarations.
|
|
3770
|
+
*/
|
|
3771
|
+
variables?: boolean;
|
|
3772
|
+
}
|
|
3252
3773
|
interface NoUselessComputedKey {
|
|
3253
3774
|
/**
|
|
3254
3775
|
* The `enforceForClassMembers` option controls whether the rule applies to
|
|
@@ -3301,18 +3822,38 @@ interface NoWarningCommentsConfigJson {
|
|
|
3301
3822
|
location?: Location;
|
|
3302
3823
|
terms?: string[];
|
|
3303
3824
|
}
|
|
3825
|
+
interface NoMixedRequiresOptions {
|
|
3826
|
+
allowCall?: boolean;
|
|
3827
|
+
grouping?: boolean;
|
|
3828
|
+
}
|
|
3304
3829
|
interface NoProcessEnvConfig {
|
|
3305
3830
|
/**
|
|
3306
3831
|
* Variable names which are allowed to be accessed on `process.env`.
|
|
3307
3832
|
*/
|
|
3308
3833
|
allowedVariables?: string[];
|
|
3309
3834
|
}
|
|
3835
|
+
interface NoSyncConfig {
|
|
3836
|
+
/**
|
|
3837
|
+
* Whether synchronous methods should be allowed at the top level of a file.
|
|
3838
|
+
*/
|
|
3839
|
+
allowAtRootLevel?: boolean;
|
|
3840
|
+
/**
|
|
3841
|
+
* Function names to ignore.
|
|
3842
|
+
*/
|
|
3843
|
+
ignores?: string[];
|
|
3844
|
+
}
|
|
3310
3845
|
interface ObjectShorthandOptions {
|
|
3311
3846
|
avoidExplicitReturnArrows?: boolean;
|
|
3312
3847
|
avoidQuotes?: boolean;
|
|
3313
3848
|
ignoreConstructors?: boolean;
|
|
3314
3849
|
methodsIgnorePattern?: string;
|
|
3315
3850
|
}
|
|
3851
|
+
interface NoAsyncEndpointHandlersConfig {
|
|
3852
|
+
/**
|
|
3853
|
+
* An array of names that are allowed to be async.
|
|
3854
|
+
*/
|
|
3855
|
+
allowedNames?: string[];
|
|
3856
|
+
}
|
|
3316
3857
|
interface NoBarrelFile {
|
|
3317
3858
|
/**
|
|
3318
3859
|
* The maximum number of modules that can be re-exported via `export *`
|
|
@@ -3375,7 +3916,13 @@ interface NoRestSpreadPropertiesOptions {
|
|
|
3375
3916
|
objectSpreadMessage?: string;
|
|
3376
3917
|
}
|
|
3377
3918
|
interface PreferArrowCallbackConfig {
|
|
3919
|
+
/**
|
|
3920
|
+
* If this option is set to `true`, named function expressions are allowed.
|
|
3921
|
+
*/
|
|
3378
3922
|
allowNamedFunctions?: boolean;
|
|
3923
|
+
/**
|
|
3924
|
+
* If this option is set to `false`, function expressions that reference `this` are reported even when they are not bound to a `this` value.
|
|
3925
|
+
*/
|
|
3379
3926
|
allowUnboundThis?: boolean;
|
|
3380
3927
|
}
|
|
3381
3928
|
interface PreferConstConfig {
|
|
@@ -3389,6 +3936,17 @@ interface PreferConstConfig {
|
|
|
3389
3936
|
*/
|
|
3390
3937
|
ignoreReadBeforeAssign?: boolean;
|
|
3391
3938
|
}
|
|
3939
|
+
interface PreferDestructuringTargetOption {
|
|
3940
|
+
array?: boolean;
|
|
3941
|
+
object?: boolean;
|
|
3942
|
+
}
|
|
3943
|
+
interface PreferDestructuringAssignmentConfig {
|
|
3944
|
+
AssignmentExpression?: PreferDestructuringTargetOption;
|
|
3945
|
+
VariableDeclarator?: PreferDestructuringTargetOption;
|
|
3946
|
+
}
|
|
3947
|
+
interface PreferDestructuringRenamedPropertiesConfig {
|
|
3948
|
+
enforceForRenamedProperties?: boolean;
|
|
3949
|
+
}
|
|
3392
3950
|
interface PreferPromiseRejectErrors {
|
|
3393
3951
|
/**
|
|
3394
3952
|
* Whether to allow calls to `Promise.reject()` with no arguments.
|
|
@@ -3509,11 +4067,39 @@ interface AlwaysReturnConfig {
|
|
|
3509
4067
|
*/
|
|
3510
4068
|
ignoreLastCallback?: boolean;
|
|
3511
4069
|
}
|
|
3512
|
-
interface
|
|
4070
|
+
interface CatchOrReturnConfig {
|
|
3513
4071
|
/**
|
|
3514
|
-
* Whether
|
|
4072
|
+
* Whether to allow `finally()` as a termination method.
|
|
3515
4073
|
*/
|
|
3516
|
-
|
|
4074
|
+
allowFinally?: boolean;
|
|
4075
|
+
/**
|
|
4076
|
+
* Whether to allow `then()` with two arguments as a termination method.
|
|
4077
|
+
*/
|
|
4078
|
+
allowThen?: boolean;
|
|
4079
|
+
/**
|
|
4080
|
+
* Whether to allow `then(null, handler)` as a termination method.
|
|
4081
|
+
*/
|
|
4082
|
+
allowThenStrict?: boolean;
|
|
4083
|
+
/**
|
|
4084
|
+
* List of allowed termination methods (e.g., `catch`, `done`).
|
|
4085
|
+
*/
|
|
4086
|
+
terminationMethod?: TerminationMethod;
|
|
4087
|
+
}
|
|
4088
|
+
interface NoCallbackInPromiseConfig {
|
|
4089
|
+
/**
|
|
4090
|
+
* List of callback function names to allow within Promise `then` and `catch` methods.
|
|
4091
|
+
*/
|
|
4092
|
+
exceptions?: string[];
|
|
4093
|
+
/**
|
|
4094
|
+
* Boolean as to whether callbacks in timeout functions like `setTimeout` will err.
|
|
4095
|
+
*/
|
|
4096
|
+
timeoutsErr?: boolean;
|
|
4097
|
+
}
|
|
4098
|
+
interface NoPromiseInCallbackConfig {
|
|
4099
|
+
/**
|
|
4100
|
+
* Whether or not to exempt function declarations. Defaults to `false`.
|
|
4101
|
+
*/
|
|
4102
|
+
exemptDeclarations?: boolean;
|
|
3517
4103
|
}
|
|
3518
4104
|
interface NoReturnWrap {
|
|
3519
4105
|
/**
|
|
@@ -3534,6 +4120,18 @@ interface NoReturnWrap {
|
|
|
3534
4120
|
*/
|
|
3535
4121
|
allowReject?: boolean;
|
|
3536
4122
|
}
|
|
4123
|
+
interface ParamNamesConfig {
|
|
4124
|
+
/**
|
|
4125
|
+
* Regex pattern used to validate the `reject` parameter name. If provided, this pattern
|
|
4126
|
+
* is used instead of the default `^_?reject$` check.
|
|
4127
|
+
*/
|
|
4128
|
+
rejectPattern?: string;
|
|
4129
|
+
/**
|
|
4130
|
+
* Regex pattern used to validate the `resolve` parameter name. If provided, this pattern
|
|
4131
|
+
* is used instead of the default `^_?resolve$` check.
|
|
4132
|
+
*/
|
|
4133
|
+
resolvePattern?: string;
|
|
4134
|
+
}
|
|
3537
4135
|
interface PreferAwaitToThenConfig {
|
|
3538
4136
|
/**
|
|
3539
4137
|
* If true, enforces the rule even after an `await` or `yield` expression.
|
|
@@ -3546,6 +4144,15 @@ interface SpecOnlyConfig {
|
|
|
3546
4144
|
*/
|
|
3547
4145
|
allowedMethods?: string[];
|
|
3548
4146
|
}
|
|
4147
|
+
interface ReactPerfConfig {
|
|
4148
|
+
/**
|
|
4149
|
+
* Controls whether native elements (lowercase-first-letter tags such as `div`)
|
|
4150
|
+
* are ignored by the rule. Set to `"all"` to ignore every attribute on native
|
|
4151
|
+
* elements, or to an array of attribute names to ignore only those attributes
|
|
4152
|
+
* on native elements.
|
|
4153
|
+
*/
|
|
4154
|
+
nativeAllowList?: NativeAllowList;
|
|
4155
|
+
}
|
|
3549
4156
|
interface ButtonHasType {
|
|
3550
4157
|
/**
|
|
3551
4158
|
* If true, allow `type="button"`.
|
|
@@ -3585,6 +4192,12 @@ interface DisplayNameConfig {
|
|
|
3585
4192
|
*/
|
|
3586
4193
|
ignoreTranspilerName?: boolean;
|
|
3587
4194
|
}
|
|
4195
|
+
interface ExhaustiveDepsConfig {
|
|
4196
|
+
/**
|
|
4197
|
+
* Optionally provide a regex of additional hooks to check.
|
|
4198
|
+
*/
|
|
4199
|
+
additionalHooks?: string;
|
|
4200
|
+
}
|
|
3588
4201
|
interface ForbidComponentPropsConfig {
|
|
3589
4202
|
/**
|
|
3590
4203
|
* An array specifying the names of props that are forbidden.
|
|
@@ -3721,6 +4334,74 @@ interface JsxBooleanValueOptions {
|
|
|
3721
4334
|
*/
|
|
3722
4335
|
never?: string[];
|
|
3723
4336
|
}
|
|
4337
|
+
interface JsxCurlyBracePresence {
|
|
4338
|
+
/**
|
|
4339
|
+
* Whether to enforce or disallow curly braces for child content of a JSX element.
|
|
4340
|
+
*
|
|
4341
|
+
* - `never` will disallow unnecessary curly braces, e.g. this will be preferred: `<Foo>I love oxlint</Foo>`
|
|
4342
|
+
* - `always` will force the usage of curly braces like this, in all cases: `<Foo>{'I love oxlint'}</Foo>`
|
|
4343
|
+
* - `ignore` will allow either style for child content.
|
|
4344
|
+
*/
|
|
4345
|
+
children?: JsxCurlyBracePresenceMode;
|
|
4346
|
+
/**
|
|
4347
|
+
* When set to `ignore` or `never`, this JSX code is allowed (or enforced):
|
|
4348
|
+
* `<App prop=<div /> />;`
|
|
4349
|
+
*
|
|
4350
|
+
* When set to `always`, the curly braces are required for prop values that are
|
|
4351
|
+
* JSX elements: `<App prop={<div />} />;`
|
|
4352
|
+
*
|
|
4353
|
+
* **Note**: it is _highly_ recommended that you set `propElementValues` to `always`.
|
|
4354
|
+
* The ability to omit curly braces around prop values that are JSX elements is obscure, and
|
|
4355
|
+
* intentionally undocumented, and should not be relied upon.
|
|
4356
|
+
*/
|
|
4357
|
+
propElementValues?: JsxCurlyBracePresenceMode;
|
|
4358
|
+
/**
|
|
4359
|
+
* Whether to enforce or disallow curly braces for props on JSX elements.
|
|
4360
|
+
*
|
|
4361
|
+
* - `never` will disallow unnecessary curly braces, e.g. this will be preferred: `<Foo foo="bar" />`
|
|
4362
|
+
* - `always` will force the usage of curly braces like this, in all cases: `<Foo foo={'bar'} />`
|
|
4363
|
+
* - `ignore` will allow either style for prop values.
|
|
4364
|
+
*/
|
|
4365
|
+
props?: JsxCurlyBracePresenceMode;
|
|
4366
|
+
}
|
|
4367
|
+
interface JsxFilenameExtensionConfig {
|
|
4368
|
+
/**
|
|
4369
|
+
* When to allow a JSX filename extension. By default all files may have a JSX extension.
|
|
4370
|
+
* Set this to `as-needed` to only allow JSX file extensions in files that contain JSX syntax.
|
|
4371
|
+
*/
|
|
4372
|
+
allow?: JsxFilenameExtensionAllowMode;
|
|
4373
|
+
/**
|
|
4374
|
+
* The set of allowed file extensions.
|
|
4375
|
+
* Can include or exclude the leading dot (e.g., "jsx" and ".jsx" are both valid).
|
|
4376
|
+
*/
|
|
4377
|
+
extensions?: string[];
|
|
4378
|
+
/**
|
|
4379
|
+
* If enabled, files that do not contain code (i.e. are empty, contain only whitespaces or comments) will not be rejected.
|
|
4380
|
+
*/
|
|
4381
|
+
ignoreFilesWithoutCode?: boolean;
|
|
4382
|
+
}
|
|
4383
|
+
interface JsxHandlerNamesConfig {
|
|
4384
|
+
/**
|
|
4385
|
+
* Whether to check for inline functions in JSX attributes.
|
|
4386
|
+
*/
|
|
4387
|
+
checkInlineFunction?: boolean;
|
|
4388
|
+
/**
|
|
4389
|
+
* Whether to check for local variables in JSX attributes.
|
|
4390
|
+
*/
|
|
4391
|
+
checkLocalVariables?: boolean;
|
|
4392
|
+
/**
|
|
4393
|
+
* Event handler prefixes to check against.
|
|
4394
|
+
*/
|
|
4395
|
+
eventHandlerPrefix?: string | false;
|
|
4396
|
+
/**
|
|
4397
|
+
* Event handler prop prefixes to check against.
|
|
4398
|
+
*/
|
|
4399
|
+
eventHandlerPropPrefix?: string | false;
|
|
4400
|
+
/**
|
|
4401
|
+
* Component names to ignore when checking for event handler prefixes.
|
|
4402
|
+
*/
|
|
4403
|
+
ignoreComponentNames?: string[];
|
|
4404
|
+
}
|
|
3724
4405
|
interface JsxKeyConfig {
|
|
3725
4406
|
/**
|
|
3726
4407
|
* When true, check fragment shorthand `<>` for keys
|
|
@@ -3741,6 +4422,108 @@ interface JsxMaxDepthConfig {
|
|
|
3741
4422
|
*/
|
|
3742
4423
|
max?: number;
|
|
3743
4424
|
}
|
|
4425
|
+
/**
|
|
4426
|
+
* The options shared between the top-level config and each `elementOverrides` entry.
|
|
4427
|
+
*/
|
|
4428
|
+
interface JsxNoLiteralsConfig {
|
|
4429
|
+
/**
|
|
4430
|
+
* An array of unique string values that would otherwise warn, but will be ignored.
|
|
4431
|
+
*/
|
|
4432
|
+
allowedStrings?: string[];
|
|
4433
|
+
/**
|
|
4434
|
+
* 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.
|
|
4435
|
+
*/
|
|
4436
|
+
elementOverrides?: {
|
|
4437
|
+
[k: string]: ElementOverrideOptions | undefined;
|
|
4438
|
+
};
|
|
4439
|
+
/**
|
|
4440
|
+
* (default: false) - When true the rule ignores literals used in props, wrapped or unwrapped.
|
|
4441
|
+
*/
|
|
4442
|
+
ignoreProps?: boolean;
|
|
4443
|
+
/**
|
|
4444
|
+
* (default: false) - Enforces no string literals used in attributes when set to true.
|
|
4445
|
+
*/
|
|
4446
|
+
noAttributeStrings?: boolean;
|
|
4447
|
+
/**
|
|
4448
|
+
* (default: false) - Enforces no string literals used as children, wrapped or unwrapped.
|
|
4449
|
+
*/
|
|
4450
|
+
noStrings?: boolean;
|
|
4451
|
+
/**
|
|
4452
|
+
* 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.
|
|
4453
|
+
*/
|
|
4454
|
+
restrictedAttributes?: string[];
|
|
4455
|
+
}
|
|
4456
|
+
/**
|
|
4457
|
+
* One entry in `elementOverrides`: the base options plus override-only fields.
|
|
4458
|
+
*/
|
|
4459
|
+
interface ElementOverrideOptions {
|
|
4460
|
+
/**
|
|
4461
|
+
* (default: false) - When true the rule will allow the specified element to have string literals as children, wrapped or unwrapped without warning.
|
|
4462
|
+
*/
|
|
4463
|
+
allowElement?: boolean;
|
|
4464
|
+
/**
|
|
4465
|
+
* An array of unique string values that would otherwise warn, but will be ignored.
|
|
4466
|
+
*/
|
|
4467
|
+
allowedStrings?: string[];
|
|
4468
|
+
/**
|
|
4469
|
+
* (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.
|
|
4470
|
+
*/
|
|
4471
|
+
applyToNestedElements?: boolean;
|
|
4472
|
+
/**
|
|
4473
|
+
* (default: false) - When true the rule ignores literals used in props, wrapped or unwrapped.
|
|
4474
|
+
*/
|
|
4475
|
+
ignoreProps?: boolean;
|
|
4476
|
+
/**
|
|
4477
|
+
* (default: false) - Enforces no string literals used in attributes when set to true.
|
|
4478
|
+
*/
|
|
4479
|
+
noAttributeStrings?: boolean;
|
|
4480
|
+
/**
|
|
4481
|
+
* (default: false) - Enforces no string literals used as children, wrapped or unwrapped.
|
|
4482
|
+
*/
|
|
4483
|
+
noStrings?: boolean;
|
|
4484
|
+
/**
|
|
4485
|
+
* 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.
|
|
4486
|
+
*/
|
|
4487
|
+
restrictedAttributes?: string[];
|
|
4488
|
+
}
|
|
4489
|
+
interface JsxNoScriptUrlComponent {
|
|
4490
|
+
/**
|
|
4491
|
+
* Component name.
|
|
4492
|
+
*/
|
|
4493
|
+
name: string;
|
|
4494
|
+
/**
|
|
4495
|
+
* List of properties that should be validated.
|
|
4496
|
+
*/
|
|
4497
|
+
props: string[];
|
|
4498
|
+
}
|
|
4499
|
+
interface JsxNoScriptUrlOptions {
|
|
4500
|
+
/**
|
|
4501
|
+
* Whether to include components from settings.
|
|
4502
|
+
*/
|
|
4503
|
+
includeFromSettings?: boolean;
|
|
4504
|
+
}
|
|
4505
|
+
interface JsxNoTargetBlank {
|
|
4506
|
+
/**
|
|
4507
|
+
* Whether to allow referrers.
|
|
4508
|
+
*/
|
|
4509
|
+
allowReferrer?: boolean;
|
|
4510
|
+
/**
|
|
4511
|
+
* Whether to enforce dynamic links or enforce static links.
|
|
4512
|
+
*/
|
|
4513
|
+
enforceDynamicLinks?: EnforceDynamicLinksEnum;
|
|
4514
|
+
/**
|
|
4515
|
+
* Whether to check form elements.
|
|
4516
|
+
*/
|
|
4517
|
+
forms?: boolean;
|
|
4518
|
+
/**
|
|
4519
|
+
* Whether to check link elements.
|
|
4520
|
+
*/
|
|
4521
|
+
links?: boolean;
|
|
4522
|
+
/**
|
|
4523
|
+
* Whether to warn when spread attributes are used.
|
|
4524
|
+
*/
|
|
4525
|
+
warnOnSpreadAttributes?: boolean;
|
|
4526
|
+
}
|
|
3744
4527
|
interface JsxNoUselessFragment {
|
|
3745
4528
|
/**
|
|
3746
4529
|
* Allow fragments with a single expression child.
|
|
@@ -3765,6 +4548,29 @@ interface JsxPascalCaseConfig {
|
|
|
3765
4548
|
*/
|
|
3766
4549
|
ignore?: string[];
|
|
3767
4550
|
}
|
|
4551
|
+
interface JsxPropsNoSpreadingConfig {
|
|
4552
|
+
/**
|
|
4553
|
+
* `custom` set to `ignore` will ignore all custom jsx tags like `App`, `MyCustomComponent` etc. Default is set to `enforce`.
|
|
4554
|
+
*/
|
|
4555
|
+
custom?: IgnoreEnforceOption;
|
|
4556
|
+
/**
|
|
4557
|
+
* Exceptions flip the enforcement behavior for specific components.
|
|
4558
|
+
* For example:
|
|
4559
|
+
* - If `html` is set to `ignore`, an exception for `div` will enforce the rule on `<div>` elements.
|
|
4560
|
+
* - If `custom` is set to `enforce`, an exception for `Foo` will ignore the rule on `<Foo>` components.
|
|
4561
|
+
*
|
|
4562
|
+
* This allows you to override the general setting for individual components.
|
|
4563
|
+
*/
|
|
4564
|
+
exceptions?: string[];
|
|
4565
|
+
/**
|
|
4566
|
+
* `explicitSpread` set to `ignore` will ignore spread operators that are explicitly listing all object properties within that spread. Default is set to `enforce`.
|
|
4567
|
+
*/
|
|
4568
|
+
explicitSpread?: IgnoreEnforceOption;
|
|
4569
|
+
/**
|
|
4570
|
+
* `html` set to `ignore` will ignore all html jsx tags like `div`, `img` etc. Default is set to `enforce`.
|
|
4571
|
+
*/
|
|
4572
|
+
html?: IgnoreEnforceOption;
|
|
4573
|
+
}
|
|
3768
4574
|
interface NoMultiCompConfig {
|
|
3769
4575
|
/**
|
|
3770
4576
|
* When `true`, the rule will ignore stateless components and will allow you to have multiple
|
|
@@ -3802,6 +4608,20 @@ interface NoUnsafeConfig {
|
|
|
3802
4608
|
*/
|
|
3803
4609
|
checkAliases?: boolean;
|
|
3804
4610
|
}
|
|
4611
|
+
interface NoUnstableNestedComponentsConfig {
|
|
4612
|
+
/**
|
|
4613
|
+
* Allow component definitions in props.
|
|
4614
|
+
*/
|
|
4615
|
+
allowAsProps?: boolean;
|
|
4616
|
+
/**
|
|
4617
|
+
* Optional custom propTypes validators accepted for eslint-plugin-react compatibility.
|
|
4618
|
+
*/
|
|
4619
|
+
customValidators?: string[];
|
|
4620
|
+
/**
|
|
4621
|
+
* Glob pattern for render-prop names that may receive inline component definitions.
|
|
4622
|
+
*/
|
|
4623
|
+
propNamePattern?: string;
|
|
4624
|
+
}
|
|
3805
4625
|
interface OnlyExportComponentsConfig {
|
|
3806
4626
|
/**
|
|
3807
4627
|
* Allow exporting primitive constants (string/number/boolean/template literal)
|
|
@@ -3848,6 +4668,15 @@ interface PreferFunctionComponent {
|
|
|
3848
4668
|
*/
|
|
3849
4669
|
allowJsxUtilityClass?: boolean;
|
|
3850
4670
|
}
|
|
4671
|
+
interface ReactCompilerConfig {
|
|
4672
|
+
/**
|
|
4673
|
+
* Also report compiler bail-outs — places where React Compiler skipped a
|
|
4674
|
+
* component or hook (for example because of unsupported syntax) without
|
|
4675
|
+
* finding a rule violation. These do not indicate incorrect code, only
|
|
4676
|
+
* code that the compiler declined to optimize.
|
|
4677
|
+
*/
|
|
4678
|
+
reportAllBailouts?: boolean;
|
|
4679
|
+
}
|
|
3851
4680
|
interface SelfClosingComp {
|
|
3852
4681
|
/**
|
|
3853
4682
|
* Whether to enforce self-closing for custom components.
|
|
@@ -3948,18 +4777,101 @@ interface SortVars {
|
|
|
3948
4777
|
*/
|
|
3949
4778
|
ignoreCase?: boolean;
|
|
3950
4779
|
}
|
|
4780
|
+
interface ArrayTypeConfig {
|
|
4781
|
+
/**
|
|
4782
|
+
* The array type expected for mutable cases.
|
|
4783
|
+
*/
|
|
4784
|
+
default?: ArrayOption;
|
|
4785
|
+
/**
|
|
4786
|
+
* The array type expected for readonly cases. If omitted, the value for `default` will be used.
|
|
4787
|
+
*/
|
|
4788
|
+
readonly?: ReadonlyArrayOption;
|
|
4789
|
+
}
|
|
4790
|
+
/**
|
|
4791
|
+
* This rule allows you to specify how different TypeScript directive comments
|
|
4792
|
+
* should be handled.
|
|
4793
|
+
*
|
|
4794
|
+
* For each directive (`@ts-expect-error`, `@ts-ignore`, `@ts-nocheck`, `@ts-check`), you can choose one of the following options:
|
|
4795
|
+
* - `true`: Disallow the directive entirely, preventing its use in the entire codebase.
|
|
4796
|
+
* - `false`: Allow the directive without any restrictions.
|
|
4797
|
+
* - `"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`.
|
|
4798
|
+
* - `{ "descriptionFormat": "<regex>" }`: Allow the directive only if the description matches the specified regex pattern.
|
|
4799
|
+
*
|
|
4800
|
+
* For example:
|
|
4801
|
+
* ```json
|
|
4802
|
+
* {
|
|
4803
|
+
* "ts-expect-error": "allow-with-description",
|
|
4804
|
+
* "ts-ignore": true,
|
|
4805
|
+
* "ts-nocheck": {
|
|
4806
|
+
* "descriptionFormat": "^: TS\\d+ because .+$"
|
|
4807
|
+
* },
|
|
4808
|
+
* "ts-check": false,
|
|
4809
|
+
* "minimumDescriptionLength": 3
|
|
4810
|
+
* }
|
|
4811
|
+
* ```
|
|
4812
|
+
*/
|
|
4813
|
+
interface BanTsCommentConfig {
|
|
4814
|
+
/**
|
|
4815
|
+
* Minimum description length required when using directives with `allow-with-description`.
|
|
4816
|
+
*/
|
|
4817
|
+
minimumDescriptionLength?: number;
|
|
4818
|
+
/**
|
|
4819
|
+
* How to handle the `@ts-check` directive.
|
|
4820
|
+
*/
|
|
4821
|
+
"ts-check"?: DirectiveConfigSchema;
|
|
4822
|
+
/**
|
|
4823
|
+
* How to handle the `@ts-expect-error` directive.
|
|
4824
|
+
*/
|
|
4825
|
+
"ts-expect-error"?: DirectiveConfigSchema;
|
|
4826
|
+
/**
|
|
4827
|
+
* How to handle the `@ts-ignore` directive.
|
|
4828
|
+
*/
|
|
4829
|
+
"ts-ignore"?: DirectiveConfigSchema;
|
|
4830
|
+
/**
|
|
4831
|
+
* How to handle the `@ts-nocheck` directive.
|
|
4832
|
+
*/
|
|
4833
|
+
"ts-nocheck"?: DirectiveConfigSchema;
|
|
4834
|
+
}
|
|
3951
4835
|
interface ConsistentReturnConfig {
|
|
3952
4836
|
/**
|
|
3953
4837
|
* Treat explicit `return undefined` as equivalent to an unspecified return.
|
|
3954
4838
|
*/
|
|
3955
4839
|
treatUndefinedAsUnspecified?: boolean;
|
|
3956
4840
|
}
|
|
4841
|
+
interface ConsistentTypeAssertionsConfig {
|
|
4842
|
+
/**
|
|
4843
|
+
* Whether array literal type assertions are allowed, allowed only as parameters, or disallowed.
|
|
4844
|
+
*/
|
|
4845
|
+
arrayLiteralTypeAssertions?: ArrayLiteralTypeAssertions;
|
|
4846
|
+
/**
|
|
4847
|
+
* Which assertion syntax is enforced.
|
|
4848
|
+
*/
|
|
4849
|
+
assertionStyle?: AssertionStyle;
|
|
4850
|
+
/**
|
|
4851
|
+
* Whether object literal type assertions are allowed, allowed only as parameters, or disallowed.
|
|
4852
|
+
*/
|
|
4853
|
+
objectLiteralTypeAssertions?: ObjectLiteralTypeAssertions;
|
|
4854
|
+
}
|
|
3957
4855
|
interface ConsistentTypeExportsConfig {
|
|
3958
4856
|
/**
|
|
3959
4857
|
* Enables an autofix strategy that rewrites mixed exports using inline `type` specifiers.
|
|
3960
4858
|
*/
|
|
3961
4859
|
fixMixedExportsWithInlineTypeSpecifier?: boolean;
|
|
3962
4860
|
}
|
|
4861
|
+
interface ConsistentTypeImportsConfig {
|
|
4862
|
+
/**
|
|
4863
|
+
* Disallow using `import()` in type annotations, like `type T = import('foo')`
|
|
4864
|
+
*/
|
|
4865
|
+
disallowTypeAnnotations?: boolean;
|
|
4866
|
+
/**
|
|
4867
|
+
* Control how type imports are added when auto-fixing.
|
|
4868
|
+
*/
|
|
4869
|
+
fixStyle?: FixStyle;
|
|
4870
|
+
/**
|
|
4871
|
+
* Control whether to enforce type imports or value imports.
|
|
4872
|
+
*/
|
|
4873
|
+
prefer?: Prefer;
|
|
4874
|
+
}
|
|
3963
4875
|
interface DotNotationConfig {
|
|
3964
4876
|
/**
|
|
3965
4877
|
* Allow bracket notation for properties covered by an index signature.
|
|
@@ -4171,12 +5083,52 @@ interface PackageSpecifier {
|
|
|
4171
5083
|
*/
|
|
4172
5084
|
package: string;
|
|
4173
5085
|
}
|
|
5086
|
+
interface NoDuplicateTypeConstituentsConfig {
|
|
5087
|
+
/**
|
|
5088
|
+
* Whether to ignore duplicate types in intersection types.
|
|
5089
|
+
* When true, allows `type T = A & A`.
|
|
5090
|
+
*/
|
|
5091
|
+
ignoreIntersections?: boolean;
|
|
5092
|
+
/**
|
|
5093
|
+
* Whether to ignore duplicate types in union types.
|
|
5094
|
+
* When true, allows `type T = A | A`.
|
|
5095
|
+
*/
|
|
5096
|
+
ignoreUnions?: boolean;
|
|
5097
|
+
}
|
|
4174
5098
|
interface NoEmptyInterface {
|
|
4175
5099
|
/**
|
|
4176
5100
|
* When set to `true`, allows empty interfaces that extend a single interface.
|
|
4177
5101
|
*/
|
|
4178
5102
|
allowSingleExtends?: boolean;
|
|
4179
5103
|
}
|
|
5104
|
+
interface NoEmptyObjectTypeConfig {
|
|
5105
|
+
/**
|
|
5106
|
+
* Whether to allow empty interfaces.
|
|
5107
|
+
*/
|
|
5108
|
+
allowInterfaces?: AllowInterfaces;
|
|
5109
|
+
/**
|
|
5110
|
+
* Whether to allow empty object type literals.
|
|
5111
|
+
*/
|
|
5112
|
+
allowObjectTypes?: AllowObjectTypes;
|
|
5113
|
+
/**
|
|
5114
|
+
* A stringified regular expression to allow interfaces and object type aliases with the configured name.
|
|
5115
|
+
*
|
|
5116
|
+
* This can be useful if your existing code style includes a pattern of declaring empty types with `{}` instead of `object`.
|
|
5117
|
+
*
|
|
5118
|
+
* Example of **incorrect** code for this rule with `{ allowWithName: 'Props$' }`:
|
|
5119
|
+
* ```ts
|
|
5120
|
+
* interface InterfaceValue {}
|
|
5121
|
+
* type TypeValue = {};
|
|
5122
|
+
* ```
|
|
5123
|
+
*
|
|
5124
|
+
* Example of **correct** code for this rule with `{ allowWithName: 'Props$' }`:
|
|
5125
|
+
* ```ts
|
|
5126
|
+
* interface InterfaceProps {}
|
|
5127
|
+
* type TypeProps = {};
|
|
5128
|
+
* ```
|
|
5129
|
+
*/
|
|
5130
|
+
allowWithName?: string;
|
|
5131
|
+
}
|
|
4180
5132
|
interface NoExplicitAny {
|
|
4181
5133
|
/**
|
|
4182
5134
|
* Whether to enable auto-fixing in which the `any` type is converted to the `unknown` type.
|
|
@@ -4237,12 +5189,66 @@ interface NoInferrableTypes {
|
|
|
4237
5189
|
*/
|
|
4238
5190
|
ignoreProperties?: boolean;
|
|
4239
5191
|
}
|
|
5192
|
+
interface NoInvalidVoidTypeConfig {
|
|
5193
|
+
/**
|
|
5194
|
+
* Whether a `this` parameter of a function may be `void`.
|
|
5195
|
+
*/
|
|
5196
|
+
allowAsThisParameter?: boolean;
|
|
5197
|
+
/**
|
|
5198
|
+
* Whether `void` can be used as generic type arguments.
|
|
5199
|
+
* Can be `true` / `false`, or an allowlist of generic type names.
|
|
5200
|
+
*/
|
|
5201
|
+
allowInGenericTypeArguments?: AllowInGenericTypeArguments;
|
|
5202
|
+
}
|
|
4240
5203
|
interface NoMeaninglessVoidOperatorConfig {
|
|
4241
5204
|
/**
|
|
4242
5205
|
* Whether to check `void` applied to expressions of type `never`.
|
|
4243
5206
|
*/
|
|
4244
5207
|
checkNever?: boolean;
|
|
4245
5208
|
}
|
|
5209
|
+
interface NoMisusedPromisesConfig {
|
|
5210
|
+
/**
|
|
5211
|
+
* Whether to check if Promises are used in conditionals.
|
|
5212
|
+
* When true, disallows using Promises in conditions where a boolean is expected.
|
|
5213
|
+
*/
|
|
5214
|
+
checksConditionals?: boolean;
|
|
5215
|
+
/**
|
|
5216
|
+
* Whether to check if Promises are used in spread syntax.
|
|
5217
|
+
* When true, disallows spreading Promise values.
|
|
5218
|
+
*/
|
|
5219
|
+
checksSpreads?: boolean;
|
|
5220
|
+
/**
|
|
5221
|
+
* Configuration for checking if Promises are returned in contexts expecting void.
|
|
5222
|
+
* Can be a boolean to enable/disable all checks, or an object for granular control.
|
|
5223
|
+
*/
|
|
5224
|
+
checksVoidReturn?: ChecksVoidReturn;
|
|
5225
|
+
}
|
|
5226
|
+
interface ChecksVoidReturnOptions {
|
|
5227
|
+
/**
|
|
5228
|
+
* Whether to check Promise-returning functions passed as arguments to void-returning functions.
|
|
5229
|
+
*/
|
|
5230
|
+
arguments?: boolean;
|
|
5231
|
+
/**
|
|
5232
|
+
* Whether to check Promise-returning functions in JSX attributes expecting void.
|
|
5233
|
+
*/
|
|
5234
|
+
attributes?: boolean;
|
|
5235
|
+
/**
|
|
5236
|
+
* Whether to check Promise-returning methods that override void-returning inherited methods.
|
|
5237
|
+
*/
|
|
5238
|
+
inheritedMethods?: boolean;
|
|
5239
|
+
/**
|
|
5240
|
+
* Whether to check Promise-returning functions assigned to object properties expecting void.
|
|
5241
|
+
*/
|
|
5242
|
+
properties?: boolean;
|
|
5243
|
+
/**
|
|
5244
|
+
* Whether to check Promise values returned from void-returning functions.
|
|
5245
|
+
*/
|
|
5246
|
+
returns?: boolean;
|
|
5247
|
+
/**
|
|
5248
|
+
* Whether to check Promise-returning functions assigned to variables typed as void-returning.
|
|
5249
|
+
*/
|
|
5250
|
+
variables?: boolean;
|
|
5251
|
+
}
|
|
4246
5252
|
interface NoMisusedSpreadConfig {
|
|
4247
5253
|
/**
|
|
4248
5254
|
* An array of type or value specifiers that are allowed to be spread
|
|
@@ -4346,6 +5352,14 @@ interface NoRequireImportsConfig {
|
|
|
4346
5352
|
*/
|
|
4347
5353
|
allowAsImport?: boolean;
|
|
4348
5354
|
}
|
|
5355
|
+
interface NoRestrictedTypesConfig {
|
|
5356
|
+
/**
|
|
5357
|
+
* A mapping of type names to ban configurations.
|
|
5358
|
+
*/
|
|
5359
|
+
types?: {
|
|
5360
|
+
[k: string]: BanConfigValue | undefined;
|
|
5361
|
+
};
|
|
5362
|
+
}
|
|
4349
5363
|
interface NoThisAliasConfig {
|
|
4350
5364
|
/**
|
|
4351
5365
|
* Whether to allow destructuring of `this` to local variables.
|
|
@@ -4368,6 +5382,17 @@ interface NoUnnecessaryBooleanLiteralCompareConfig {
|
|
|
4368
5382
|
*/
|
|
4369
5383
|
allowComparingNullableBooleansToTrue?: boolean;
|
|
4370
5384
|
}
|
|
5385
|
+
interface NoUnnecessaryConditionConfig {
|
|
5386
|
+
/**
|
|
5387
|
+
* Whether to allow constant loop conditions.
|
|
5388
|
+
* `true` is treated as `"always"`, `false` as `"never"`.
|
|
5389
|
+
*/
|
|
5390
|
+
allowConstantLoopConditions?: AllowConstantLoopConditions;
|
|
5391
|
+
/**
|
|
5392
|
+
* Whether to check type predicate functions.
|
|
5393
|
+
*/
|
|
5394
|
+
checkTypePredicates?: boolean;
|
|
5395
|
+
}
|
|
4371
5396
|
interface NoUnnecessaryTypeAssertionConfig {
|
|
4372
5397
|
/**
|
|
4373
5398
|
* Whether to check literal const assertions like `'foo' as const`.
|
|
@@ -4409,6 +5434,16 @@ interface OnlyThrowErrorConfig {
|
|
|
4409
5434
|
*/
|
|
4410
5435
|
allowThrowingUnknown?: boolean;
|
|
4411
5436
|
}
|
|
5437
|
+
interface ParameterPropertiesConfig {
|
|
5438
|
+
/**
|
|
5439
|
+
* Modifiers that are allowed to be used with parameter properties or class properties, depending on the `prefer` option.
|
|
5440
|
+
*/
|
|
5441
|
+
allow?: Modifier[];
|
|
5442
|
+
/**
|
|
5443
|
+
* Whether to prefer parameter properties or class properties.
|
|
5444
|
+
*/
|
|
5445
|
+
prefer?: Prefer2;
|
|
5446
|
+
}
|
|
4412
5447
|
interface PreferLiteralEnumMember {
|
|
4413
5448
|
/**
|
|
4414
5449
|
* When set to `true`, allows bitwise expressions in enum member initializers.
|
|
@@ -4416,6 +5451,56 @@ interface PreferLiteralEnumMember {
|
|
|
4416
5451
|
*/
|
|
4417
5452
|
allowBitwiseExpressions?: boolean;
|
|
4418
5453
|
}
|
|
5454
|
+
interface PreferNullishCoalescingConfig {
|
|
5455
|
+
/**
|
|
5456
|
+
* Whether to ignore arguments to the `Boolean` constructor.
|
|
5457
|
+
*/
|
|
5458
|
+
ignoreBooleanCoercion?: boolean;
|
|
5459
|
+
/**
|
|
5460
|
+
* Whether to ignore cases that are located within a conditional test.
|
|
5461
|
+
*/
|
|
5462
|
+
ignoreConditionalTests?: boolean;
|
|
5463
|
+
/**
|
|
5464
|
+
* Whether to ignore any if statements that could be simplified by using
|
|
5465
|
+
* the nullish coalescing operator.
|
|
5466
|
+
*/
|
|
5467
|
+
ignoreIfStatements?: boolean;
|
|
5468
|
+
/**
|
|
5469
|
+
* Whether to ignore any logical or expressions that are part of a mixed
|
|
5470
|
+
* logical expression (with `&&`).
|
|
5471
|
+
*/
|
|
5472
|
+
ignoreMixedLogicalExpressions?: boolean;
|
|
5473
|
+
/**
|
|
5474
|
+
* Whether to ignore all (`true`) or some (an object with properties) primitive types.
|
|
5475
|
+
*/
|
|
5476
|
+
ignorePrimitives?: IgnorePrimitives;
|
|
5477
|
+
/**
|
|
5478
|
+
* Whether to ignore any ternary expressions that could be simplified by
|
|
5479
|
+
* using the nullish coalescing operator.
|
|
5480
|
+
*/
|
|
5481
|
+
ignoreTernaryTests?: boolean;
|
|
5482
|
+
}
|
|
5483
|
+
/**
|
|
5484
|
+
* Options for ignoring specific primitive types.
|
|
5485
|
+
*/
|
|
5486
|
+
interface IgnorePrimitivesOptions {
|
|
5487
|
+
/**
|
|
5488
|
+
* Ignore bigint primitive types.
|
|
5489
|
+
*/
|
|
5490
|
+
bigint?: boolean;
|
|
5491
|
+
/**
|
|
5492
|
+
* Ignore boolean primitive types.
|
|
5493
|
+
*/
|
|
5494
|
+
boolean?: boolean;
|
|
5495
|
+
/**
|
|
5496
|
+
* Ignore number primitive types.
|
|
5497
|
+
*/
|
|
5498
|
+
number?: boolean;
|
|
5499
|
+
/**
|
|
5500
|
+
* Ignore string primitive types.
|
|
5501
|
+
*/
|
|
5502
|
+
string?: boolean;
|
|
5503
|
+
}
|
|
4419
5504
|
interface PreferOptionalChainConfig {
|
|
4420
5505
|
/**
|
|
4421
5506
|
* Allow autofixers that will change the return type of the expression.
|
|
@@ -4495,6 +5580,12 @@ interface PreferReadonlyParameterTypesConfig {
|
|
|
4495
5580
|
*/
|
|
4496
5581
|
treatMethodsAsReadonly?: boolean;
|
|
4497
5582
|
}
|
|
5583
|
+
interface PreferStringStartsEndsWithConfig {
|
|
5584
|
+
/**
|
|
5585
|
+
* Whether equality checks against the first/last character are allowed.
|
|
5586
|
+
*/
|
|
5587
|
+
allowSingleElementEquality?: AllowSingleElementEquality;
|
|
5588
|
+
}
|
|
4498
5589
|
interface PromiseFunctionAsyncConfig {
|
|
4499
5590
|
/**
|
|
4500
5591
|
* Whether to allow functions returning `any` type without requiring `async`.
|
|
@@ -4653,6 +5744,14 @@ interface SwitchExhaustivenessCheckConfig {
|
|
|
4653
5744
|
*/
|
|
4654
5745
|
requireDefaultForNonUnion?: boolean;
|
|
4655
5746
|
}
|
|
5747
|
+
interface TripleSlashReferenceConfig {
|
|
5748
|
+
/**
|
|
5749
|
+
* What to enforce for `/// <reference lib="..." />` references.
|
|
5750
|
+
*/
|
|
5751
|
+
lib?: AlwaysNever;
|
|
5752
|
+
path?: PathOption;
|
|
5753
|
+
types?: TypesOption;
|
|
5754
|
+
}
|
|
4656
5755
|
interface UnboundMethodConfig {
|
|
4657
5756
|
/**
|
|
4658
5757
|
* Whether to ignore unbound methods that are static.
|
|
@@ -4674,12 +5773,147 @@ interface UnifiedSignaturesOptions {
|
|
|
4674
5773
|
*/
|
|
4675
5774
|
ignoreOverloadsWithDifferentJSDoc?: boolean;
|
|
4676
5775
|
}
|
|
5776
|
+
interface CatchErrorNameConfig {
|
|
5777
|
+
/**
|
|
5778
|
+
* A list of patterns to ignore when checking `catch` variable names. The pattern
|
|
5779
|
+
* can be a string or regular expression.
|
|
5780
|
+
*/
|
|
5781
|
+
ignore?: string[];
|
|
5782
|
+
/**
|
|
5783
|
+
* The name to use for error variables in `catch` blocks. You can customize it
|
|
5784
|
+
* to something other than `'error'` (e.g., `'exception'`).
|
|
5785
|
+
*/
|
|
5786
|
+
name?: string;
|
|
5787
|
+
}
|
|
4677
5788
|
interface ConsistentFunctionScoping {
|
|
4678
5789
|
/**
|
|
4679
5790
|
* Whether to check scoping with arrow functions.
|
|
4680
5791
|
*/
|
|
4681
5792
|
checkArrowFunctions?: boolean;
|
|
4682
5793
|
}
|
|
5794
|
+
interface ExplicitLengthCheck {
|
|
5795
|
+
/**
|
|
5796
|
+
* Configuration option to specify how non-zero length checks should be enforced.
|
|
5797
|
+
*/
|
|
5798
|
+
"non-zero"?: NonZero;
|
|
5799
|
+
}
|
|
5800
|
+
interface ImportStyleConfig {
|
|
5801
|
+
/**
|
|
5802
|
+
* Whether dynamic import expressions are checked.
|
|
5803
|
+
*
|
|
5804
|
+
* Set this to `false` to skip calls such as `await import("module")`.
|
|
5805
|
+
*
|
|
5806
|
+
* With the default configuration, examples of **incorrect** code:
|
|
5807
|
+
* ```js
|
|
5808
|
+
* async () => {
|
|
5809
|
+
* const {red} = await import("chalk");
|
|
5810
|
+
* };
|
|
5811
|
+
* ```
|
|
5812
|
+
*
|
|
5813
|
+
* Examples of **correct** code:
|
|
5814
|
+
* ```js
|
|
5815
|
+
* async () => {
|
|
5816
|
+
* const {default: chalk} = await import("chalk");
|
|
5817
|
+
* };
|
|
5818
|
+
* ```
|
|
5819
|
+
*/
|
|
5820
|
+
checkDynamicImport?: boolean;
|
|
5821
|
+
/**
|
|
5822
|
+
* Whether export-from declarations are checked.
|
|
5823
|
+
*
|
|
5824
|
+
* This is disabled by default. Set this to `true` to check declarations like
|
|
5825
|
+
* `export ... from "module"`.
|
|
5826
|
+
*
|
|
5827
|
+
* With `{ "checkExportFrom": true }`, examples of **incorrect** code:
|
|
5828
|
+
* ```js
|
|
5829
|
+
* export * from "node:util";
|
|
5830
|
+
* ```
|
|
5831
|
+
*
|
|
5832
|
+
* Examples of **correct** code:
|
|
5833
|
+
* ```js
|
|
5834
|
+
* export {promisify} from "node:util";
|
|
5835
|
+
* ```
|
|
5836
|
+
*/
|
|
5837
|
+
checkExportFrom?: boolean;
|
|
5838
|
+
/**
|
|
5839
|
+
* Whether static import declarations are checked.
|
|
5840
|
+
*
|
|
5841
|
+
* Set this to `false` to skip `import ... from "module"` and side-effect imports like
|
|
5842
|
+
* `import "module"`.
|
|
5843
|
+
*
|
|
5844
|
+
* With the default configuration, examples of **incorrect** code:
|
|
5845
|
+
* ```js
|
|
5846
|
+
* import {red} from "chalk";
|
|
5847
|
+
* ```
|
|
5848
|
+
*
|
|
5849
|
+
* Examples of **correct** code:
|
|
5850
|
+
* ```js
|
|
5851
|
+
* import chalk from "chalk";
|
|
5852
|
+
* ```
|
|
5853
|
+
*/
|
|
5854
|
+
checkImport?: boolean;
|
|
5855
|
+
/**
|
|
5856
|
+
* Whether CommonJS `require()` calls are checked.
|
|
5857
|
+
*
|
|
5858
|
+
* Set this to `false` to skip `require("module")` calls completely.
|
|
5859
|
+
*
|
|
5860
|
+
* With the default configuration, examples of **incorrect** code:
|
|
5861
|
+
* ```js
|
|
5862
|
+
* const util = require("node:util");
|
|
5863
|
+
* ```
|
|
5864
|
+
*
|
|
5865
|
+
* Examples of **correct** code:
|
|
5866
|
+
* ```js
|
|
5867
|
+
* const {promisify} = require("node:util");
|
|
5868
|
+
* ```
|
|
5869
|
+
*/
|
|
5870
|
+
checkRequire?: boolean;
|
|
5871
|
+
/**
|
|
5872
|
+
* Whether `styles` extends or replaces the built-in module preferences.
|
|
5873
|
+
*
|
|
5874
|
+
* When this is `true`, entries in `styles` are merged with the default preferences. For
|
|
5875
|
+
* example, `{ "styles": { "path": { "named": true } } }` allows named imports from
|
|
5876
|
+
* `path` while leaving its default import style allowed. When this is `false`, only modules
|
|
5877
|
+
* configured in `styles` are checked.
|
|
5878
|
+
*
|
|
5879
|
+
* With `{ "extendDefaultStyles": false, "styles": {} }`, examples of **correct** code:
|
|
5880
|
+
* ```js
|
|
5881
|
+
* import {red} from "chalk";
|
|
5882
|
+
* ```
|
|
5883
|
+
*/
|
|
5884
|
+
extendDefaultStyles?: boolean;
|
|
5885
|
+
/**
|
|
5886
|
+
* Per-module import style preferences.
|
|
5887
|
+
*
|
|
5888
|
+
* Each key is a module specifier. Set the value to `false` to disable checking for the
|
|
5889
|
+
* module, or to an object that allows one or more import styles. The available styles are
|
|
5890
|
+
* `unassigned`, `default`, `namespace`, and `named`. When `extendDefaultStyles` is `true`,
|
|
5891
|
+
* these entries extend the built-in defaults instead of replacing them.
|
|
5892
|
+
*
|
|
5893
|
+
* The default module preferences are default imports for `chalk`, `path`, and `node:path`,
|
|
5894
|
+
* and named imports for `util` and `node:util`.
|
|
5895
|
+
*
|
|
5896
|
+
* With `{ "styles": { "node:util": { "named": true, "default": false } } }`,
|
|
5897
|
+
* examples of **incorrect** code:
|
|
5898
|
+
* ```js
|
|
5899
|
+
* import util from "node:util";
|
|
5900
|
+
* ```
|
|
5901
|
+
*
|
|
5902
|
+
* Examples of **correct** code:
|
|
5903
|
+
* ```js
|
|
5904
|
+
* import {promisify} from "node:util";
|
|
5905
|
+
* ```
|
|
5906
|
+
*/
|
|
5907
|
+
styles?: {
|
|
5908
|
+
[k: string]: ModuleStylesOverride | undefined;
|
|
5909
|
+
};
|
|
5910
|
+
}
|
|
5911
|
+
interface MaxNestedCalls {
|
|
5912
|
+
/**
|
|
5913
|
+
* The maximum allowed nested call depth.
|
|
5914
|
+
*/
|
|
5915
|
+
max?: number;
|
|
5916
|
+
}
|
|
4683
5917
|
interface NoArrayReduce {
|
|
4684
5918
|
/**
|
|
4685
5919
|
* When set to `true`, allows simple operations (like summing numbers) in `reduce` and `reduceRight` calls.
|
|
@@ -4710,6 +5944,27 @@ interface NoArraySort {
|
|
|
4710
5944
|
*/
|
|
4711
5945
|
allowExpressionStatement?: boolean;
|
|
4712
5946
|
}
|
|
5947
|
+
interface NoInstanceofBuiltinsConfig {
|
|
5948
|
+
/**
|
|
5949
|
+
* Constructor names to exclude from checking.
|
|
5950
|
+
*/
|
|
5951
|
+
exclude?: string[];
|
|
5952
|
+
/**
|
|
5953
|
+
* Additional constructor names to check beyond the default set.
|
|
5954
|
+
* Use this to extend the rule with additional constructors.
|
|
5955
|
+
*/
|
|
5956
|
+
include?: string[];
|
|
5957
|
+
/**
|
|
5958
|
+
* Controls which built-in constructors are checked.
|
|
5959
|
+
*/
|
|
5960
|
+
strategy?: NoInstanceofBuiltinsStrategy;
|
|
5961
|
+
/**
|
|
5962
|
+
* When `true`, checks `instanceof Error` and suggests using `Error.isError()` instead.
|
|
5963
|
+
* Requires [the `Error.isError()` function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/isError)
|
|
5964
|
+
* to be available.
|
|
5965
|
+
*/
|
|
5966
|
+
useErrorIsError?: boolean;
|
|
5967
|
+
}
|
|
4713
5968
|
interface NoNull {
|
|
4714
5969
|
/**
|
|
4715
5970
|
* When set to `true`, disallow the use of `null` as a direct function call or constructor argument.
|
|
@@ -4743,6 +5998,95 @@ interface NoUselessUndefined {
|
|
|
4743
5998
|
*/
|
|
4744
5999
|
checkArrowFunctionBody?: boolean;
|
|
4745
6000
|
}
|
|
6001
|
+
interface NumericSeparatorsStyleConfig {
|
|
6002
|
+
/**
|
|
6003
|
+
* Configuration for binary literals (e.g. `0b1010_0001` and bigint variants).
|
|
6004
|
+
* Controls how digits are grouped and when separators are applied.
|
|
6005
|
+
*/
|
|
6006
|
+
binary?: NumericBaseConfig;
|
|
6007
|
+
/**
|
|
6008
|
+
* Configuration for hexadecimal literals (e.g. `0xAB_CD`, `0Xab_cd`, and bigint variants).
|
|
6009
|
+
* Controls how digits are grouped and when separators are applied.
|
|
6010
|
+
*/
|
|
6011
|
+
hexadecimal?: NumericBaseConfig;
|
|
6012
|
+
/**
|
|
6013
|
+
* Configuration for decimal numbers (integers, fraction parts, and exponents).
|
|
6014
|
+
* Controls how digits are grouped and when separators are applied.
|
|
6015
|
+
*/
|
|
6016
|
+
number?: NumericNumberConfig;
|
|
6017
|
+
/**
|
|
6018
|
+
* Configuration for octal literals (e.g. `0o1234_5670` and bigint variants).
|
|
6019
|
+
* Controls how digits are grouped and when separators are applied.
|
|
6020
|
+
*/
|
|
6021
|
+
octal?: NumericBaseConfig;
|
|
6022
|
+
/**
|
|
6023
|
+
* Only enforce the rule when the numeric literal already contains a separator (`_`).
|
|
6024
|
+
*
|
|
6025
|
+
* When `true`, numbers without separators are left as-is; when `false` (default),
|
|
6026
|
+
* grouping will be enforced for eligible numbers even if they don't include separators yet.
|
|
6027
|
+
*/
|
|
6028
|
+
onlyIfContainsSeparator?: boolean;
|
|
6029
|
+
}
|
|
6030
|
+
interface NumericBaseConfig {
|
|
6031
|
+
/**
|
|
6032
|
+
* The number of digits per group when inserting numeric separators.
|
|
6033
|
+
* For example, a `groupLength` of 3 formats `1234567` as `1_234_567`.
|
|
6034
|
+
*/
|
|
6035
|
+
groupLength?: number;
|
|
6036
|
+
/**
|
|
6037
|
+
* The minimum number of digits required before grouping is applied.
|
|
6038
|
+
* Values with fewer digits than this threshold will not be grouped.
|
|
6039
|
+
*/
|
|
6040
|
+
minimumDigits?: number;
|
|
6041
|
+
/**
|
|
6042
|
+
* Only enforce the rule when the numeric literal already contains a separator (`_`).
|
|
6043
|
+
*
|
|
6044
|
+
* When `true`, numbers without separators are left as-is; when `false` (default),
|
|
6045
|
+
* grouping will be enforced for eligible numbers even if they don't include separators yet.
|
|
6046
|
+
*/
|
|
6047
|
+
onlyIfContainsSeparator?: boolean;
|
|
6048
|
+
}
|
|
6049
|
+
interface NumericNumberConfig {
|
|
6050
|
+
/**
|
|
6051
|
+
* The size a group of digits in the fractional part (after the decimal point) should be.
|
|
6052
|
+
*/
|
|
6053
|
+
fractionGroupLength?: number;
|
|
6054
|
+
/**
|
|
6055
|
+
* The number of digits per group when inserting numeric separators.
|
|
6056
|
+
* For example, a `groupLength` of 3 formats `1234567` as `1_234_567`.
|
|
6057
|
+
*/
|
|
6058
|
+
groupLength?: number;
|
|
6059
|
+
/**
|
|
6060
|
+
* The minimum number of digits required before grouping is applied.
|
|
6061
|
+
* Values with fewer digits than this threshold will not be grouped.
|
|
6062
|
+
*/
|
|
6063
|
+
minimumDigits?: number;
|
|
6064
|
+
/**
|
|
6065
|
+
* Only enforce the rule when the numeric literal already contains a separator (`_`).
|
|
6066
|
+
*
|
|
6067
|
+
* When `true`, numbers without separators are left as-is; when `false` (default),
|
|
6068
|
+
* grouping will be enforced for eligible numbers even if they don't include separators yet.
|
|
6069
|
+
*/
|
|
6070
|
+
onlyIfContainsSeparator?: boolean;
|
|
6071
|
+
}
|
|
6072
|
+
interface PreferAtConfig {
|
|
6073
|
+
/**
|
|
6074
|
+
* Check all index access, not just special patterns like `array.length - 1`.
|
|
6075
|
+
* When enabled, `array[0]`, `array[1]`, etc. will also be flagged.
|
|
6076
|
+
*/
|
|
6077
|
+
checkAllIndexAccess?: boolean;
|
|
6078
|
+
/**
|
|
6079
|
+
* List of function names to treat as "get last element" functions.
|
|
6080
|
+
* These functions will be checked for `.at(-1)` usage.
|
|
6081
|
+
*/
|
|
6082
|
+
getLastElementFunctions?: string[];
|
|
6083
|
+
}
|
|
6084
|
+
interface PreferExportFrom {
|
|
6085
|
+
/**
|
|
6086
|
+
* When false, if any import binding is used somewhere other than a re-export, all variables in the import declaration are ignored.
|
|
6087
|
+
*/
|
|
6088
|
+
checkUsedVariables?: boolean;
|
|
6089
|
+
}
|
|
4746
6090
|
interface PreferNumberPropertiesConfig {
|
|
4747
6091
|
/**
|
|
4748
6092
|
* If set to `true`, checks for usage of `Infinity` and `-Infinity` as global variables.
|
|
@@ -4753,6 +6097,18 @@ interface PreferNumberPropertiesConfig {
|
|
|
4753
6097
|
*/
|
|
4754
6098
|
checkNaN?: boolean;
|
|
4755
6099
|
}
|
|
6100
|
+
interface PreferObjectFromEntriesConfig {
|
|
6101
|
+
/**
|
|
6102
|
+
* Additional functions to treat as equivalents to `Object.fromEntries`.
|
|
6103
|
+
*/
|
|
6104
|
+
functions?: string[];
|
|
6105
|
+
}
|
|
6106
|
+
interface PreferSingleCallConfig {
|
|
6107
|
+
/**
|
|
6108
|
+
* Methods to ignore.
|
|
6109
|
+
*/
|
|
6110
|
+
ignore?: string[];
|
|
6111
|
+
}
|
|
4756
6112
|
interface PreferStructuredCloneConfig {
|
|
4757
6113
|
/**
|
|
4758
6114
|
* List of functions that are allowed to be used for deep cloning instead of structuredClone.
|
|
@@ -4801,18 +6157,74 @@ interface ValidTypeof {
|
|
|
4801
6157
|
*/
|
|
4802
6158
|
requireStringLiterals?: boolean;
|
|
4803
6159
|
}
|
|
6160
|
+
interface ConsistentEachForJson {
|
|
6161
|
+
/**
|
|
6162
|
+
* Preferred method to create parameterized tests for `describe` blocks.
|
|
6163
|
+
*/
|
|
6164
|
+
describe?: MemberNames;
|
|
6165
|
+
/**
|
|
6166
|
+
* Preferred method to create parameterized tests for `it` blocks.
|
|
6167
|
+
*/
|
|
6168
|
+
it?: MemberNames;
|
|
6169
|
+
/**
|
|
6170
|
+
* Preferred method to create parameterized tests for `suite` blocks.
|
|
6171
|
+
*/
|
|
6172
|
+
suite?: MemberNames;
|
|
6173
|
+
/**
|
|
6174
|
+
* Preferred method to create parameterized tests for `test` blocks.
|
|
6175
|
+
*/
|
|
6176
|
+
test?: MemberNames;
|
|
6177
|
+
}
|
|
6178
|
+
interface ConsistentTestFilenameConfig {
|
|
6179
|
+
/**
|
|
6180
|
+
* Regex pattern to ensure we are linting only test filenames.
|
|
6181
|
+
* Decides whether a file is a testing file.
|
|
6182
|
+
*/
|
|
6183
|
+
allTestPattern?: string;
|
|
6184
|
+
/**
|
|
6185
|
+
* Required regex to check if a test filename have a valid formart.
|
|
6186
|
+
* Pattern doesn't have a default value, you must provide one.
|
|
6187
|
+
*/
|
|
6188
|
+
pattern?: string;
|
|
6189
|
+
}
|
|
6190
|
+
interface ConsistentVitestConfig {
|
|
6191
|
+
/**
|
|
6192
|
+
* Decides whether to prefer vitest function accessor
|
|
6193
|
+
*/
|
|
6194
|
+
fn?: VitestFnName;
|
|
6195
|
+
}
|
|
6196
|
+
interface PreferImportInMockConfig {
|
|
6197
|
+
/**
|
|
6198
|
+
* Whether the rule should generate fixes or not.
|
|
6199
|
+
*/
|
|
6200
|
+
fixable: boolean;
|
|
6201
|
+
}
|
|
4804
6202
|
interface RequireMockTypeParametersConfig {
|
|
4805
6203
|
/**
|
|
4806
6204
|
* Also require type parameters for `importActual` and `importMock`.
|
|
4807
6205
|
*/
|
|
4808
6206
|
checkImportFunctions?: boolean;
|
|
4809
6207
|
}
|
|
6208
|
+
interface DefinePropsDestructuring {
|
|
6209
|
+
/**
|
|
6210
|
+
* Require or prohibit destructuring.
|
|
6211
|
+
*/
|
|
6212
|
+
destructure?: Destructure;
|
|
6213
|
+
}
|
|
4810
6214
|
interface MaxProps {
|
|
4811
6215
|
/**
|
|
4812
6216
|
* The maximum number of props allowed in a Vue SFC.
|
|
4813
6217
|
*/
|
|
4814
6218
|
maxProps?: number;
|
|
4815
6219
|
}
|
|
6220
|
+
interface NoAsyncInComputedPropertiesConfig {
|
|
6221
|
+
/**
|
|
6222
|
+
* Names of identifiers whose member-call chains (`.then` / `.catch` / `.finally`)
|
|
6223
|
+
* should be ignored. Useful for libraries like Zod where `.catch(default)` is
|
|
6224
|
+
* a builder API, not a Promise method.
|
|
6225
|
+
*/
|
|
6226
|
+
ignoredObjectNames?: string[];
|
|
6227
|
+
}
|
|
4816
6228
|
interface NoDeprecatedModelDefinitionConfig {
|
|
4817
6229
|
/**
|
|
4818
6230
|
* Allow `model: { prop: 'modelValue', event: 'update:modelValue' }` (or
|
|
@@ -4821,6 +6233,13 @@ interface NoDeprecatedModelDefinitionConfig {
|
|
|
4821
6233
|
*/
|
|
4822
6234
|
allowVue3Compat?: boolean;
|
|
4823
6235
|
}
|
|
6236
|
+
interface NoDupeKeysConfig {
|
|
6237
|
+
/**
|
|
6238
|
+
* Additional group names to search for duplicate keys in, on top of the
|
|
6239
|
+
* built-in `props`, `computed`, `data`, `methods` and `setup` groups.
|
|
6240
|
+
*/
|
|
6241
|
+
groups?: string[];
|
|
6242
|
+
}
|
|
4824
6243
|
interface NoReservedComponentNames {
|
|
4825
6244
|
/**
|
|
4826
6245
|
* Disallow Vue 3 built-in component names (e.g. `Teleport`, `Suspense`).
|
|
@@ -4924,7 +6343,7 @@ interface OxlintPluginSettings {
|
|
|
4924
6343
|
next?: NextPluginSettings;
|
|
4925
6344
|
react?: ReactPluginSettings;
|
|
4926
6345
|
vitest?: VitestPluginSettings;
|
|
4927
|
-
[k: string]: unknown;
|
|
6346
|
+
[k: string]: unknown | undefined;
|
|
4928
6347
|
}
|
|
4929
6348
|
/**
|
|
4930
6349
|
* Configure Jest plugin rules.
|
|
@@ -4941,7 +6360,7 @@ interface JestPluginSettings {
|
|
|
4941
6360
|
* :::
|
|
4942
6361
|
*/
|
|
4943
6362
|
version?: JestVersionSchema;
|
|
4944
|
-
[k: string]: unknown;
|
|
6363
|
+
[k: string]: unknown | undefined;
|
|
4945
6364
|
}
|
|
4946
6365
|
interface JSDocPluginSettings {
|
|
4947
6366
|
/**
|
|
@@ -4973,9 +6392,9 @@ interface JSDocPluginSettings {
|
|
|
4973
6392
|
*/
|
|
4974
6393
|
overrideReplacesDocs?: boolean;
|
|
4975
6394
|
tagNamePreference?: {
|
|
4976
|
-
[k: string]: TagNamePreference;
|
|
6395
|
+
[k: string]: TagNamePreference | undefined;
|
|
4977
6396
|
};
|
|
4978
|
-
[k: string]: unknown;
|
|
6397
|
+
[k: string]: unknown | undefined;
|
|
4979
6398
|
}
|
|
4980
6399
|
/**
|
|
4981
6400
|
* Configure JSX A11y plugin rules.
|
|
@@ -5007,7 +6426,7 @@ interface JSXA11YPluginSettings {
|
|
|
5007
6426
|
* ```
|
|
5008
6427
|
*/
|
|
5009
6428
|
attributes?: {
|
|
5010
|
-
[k: string]: string[];
|
|
6429
|
+
[k: string]: string[] | undefined;
|
|
5011
6430
|
};
|
|
5012
6431
|
/**
|
|
5013
6432
|
* To have your custom components be checked as DOM elements, you can
|
|
@@ -5029,7 +6448,7 @@ interface JSXA11YPluginSettings {
|
|
|
5029
6448
|
* ```
|
|
5030
6449
|
*/
|
|
5031
6450
|
components?: {
|
|
5032
|
-
[k: string]: string;
|
|
6451
|
+
[k: string]: string | undefined;
|
|
5033
6452
|
};
|
|
5034
6453
|
/**
|
|
5035
6454
|
* An optional setting that define the prop your code uses to create polymorphic components.
|
|
@@ -5046,7 +6465,7 @@ interface JSXA11YPluginSettings {
|
|
|
5046
6465
|
* as a `Box`.
|
|
5047
6466
|
*/
|
|
5048
6467
|
polymorphicPropName?: string;
|
|
5049
|
-
[k: string]: unknown;
|
|
6468
|
+
[k: string]: unknown | undefined;
|
|
5050
6469
|
}
|
|
5051
6470
|
/**
|
|
5052
6471
|
* Configure Next.js plugin rules.
|
|
@@ -5071,7 +6490,7 @@ interface NextPluginSettings {
|
|
|
5071
6490
|
* ```
|
|
5072
6491
|
*/
|
|
5073
6492
|
rootDir?: OneOrManyFor_String;
|
|
5074
|
-
[k: string]: unknown;
|
|
6493
|
+
[k: string]: unknown | undefined;
|
|
5075
6494
|
}
|
|
5076
6495
|
/**
|
|
5077
6496
|
* Configure React plugin rules.
|
|
@@ -5158,7 +6577,7 @@ interface ReactPluginSettings {
|
|
|
5158
6577
|
* ```
|
|
5159
6578
|
*/
|
|
5160
6579
|
version?: string;
|
|
5161
|
-
[k: string]: unknown;
|
|
6580
|
+
[k: string]: unknown | undefined;
|
|
5162
6581
|
}
|
|
5163
6582
|
/**
|
|
5164
6583
|
* Configure Vitest plugin rules.
|
|
@@ -5173,7 +6592,7 @@ interface VitestPluginSettings {
|
|
|
5173
6592
|
* to accommodate TypeScript type checking scenarios.
|
|
5174
6593
|
*/
|
|
5175
6594
|
typecheck?: boolean;
|
|
5176
|
-
[k: string]: unknown;
|
|
6595
|
+
[k: string]: unknown | undefined;
|
|
5177
6596
|
}
|
|
5178
6597
|
//#endregion
|
|
5179
6598
|
//#region src-js/package/config.d.ts
|