@jsse/eslint-config 0.4.18 → 0.4.20
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/CHANGELOG.md +12 -0
- package/dist/{chunk-Bb8Gnt67.js → chunk-kxGw7zjC.js} +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +222 -471
- package/dist/index.js +17 -29
- package/dist/{version-DUk8d3C_.js → version-Clor9d2E.js} +2 -2
- package/package.json +19 -19
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { n as __export } from "./chunk-kxGw7zjC.js";
|
|
1
2
|
import pluginEslintComments from "@eslint-community/eslint-plugin-eslint-comments";
|
|
2
3
|
import pluginTs from "@typescript-eslint/eslint-plugin";
|
|
3
4
|
import * as parserTs from "@typescript-eslint/parser";
|
|
@@ -13,9 +14,7 @@ import pluginUnusedImports from "eslint-plugin-unused-imports";
|
|
|
13
14
|
import * as _eslint_markdown0 from "@eslint/markdown";
|
|
14
15
|
import * as _stylistic_eslint_plugin0 from "@stylistic/eslint-plugin";
|
|
15
16
|
import { FlatGitignoreOptions } from "eslint-config-flat-gitignore";
|
|
16
|
-
import * as eslint_plugin_jsdoc0 from "eslint-plugin-jsdoc";
|
|
17
17
|
import * as eslint_plugin_react0 from "eslint-plugin-react";
|
|
18
|
-
import * as eslint_plugin_react_hooks0 from "eslint-plugin-react-hooks";
|
|
19
18
|
import * as jsonc_eslint_parser0 from "jsonc-eslint-parser";
|
|
20
19
|
import * as yaml_eslint_parser0 from "yaml-eslint-parser";
|
|
21
20
|
import * as eslint0 from "eslint";
|
|
@@ -7279,6 +7278,7 @@ type PnpmJsonValidCatalog = [] | [{
|
|
|
7279
7278
|
// ----- pnpm/yaml-no-duplicate-catalog-item -----
|
|
7280
7279
|
type PnpmYamlNoDuplicateCatalogItem = [] | [{
|
|
7281
7280
|
allow?: string[];
|
|
7281
|
+
checkDuplicates?: "name-only" | "exact-version";
|
|
7282
7282
|
}];
|
|
7283
7283
|
//#endregion
|
|
7284
7284
|
//#region src/generated/dts/prettier.d.ts
|
|
@@ -7401,7 +7401,7 @@ interface ReactRuleOptions {
|
|
|
7401
7401
|
*/
|
|
7402
7402
|
"react-hooks/use-memo"?: Linter.RuleEntry<ReactHooksUseMemo$1>;
|
|
7403
7403
|
/**
|
|
7404
|
-
* Validates that useMemos always return a value. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
|
|
7404
|
+
* Validates that useMemos always return a value and that the result of the useMemo is used by the component/hook. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
|
|
7405
7405
|
*/
|
|
7406
7406
|
"react-hooks/void-use-memo"?: Linter.RuleEntry<ReactHooksVoidUseMemo$1>;
|
|
7407
7407
|
"react-refresh/only-export-components"?: Linter.RuleEntry<ReactRefreshOnlyExportComponents>;
|
|
@@ -8629,7 +8629,7 @@ interface ReactHooksRuleOptions {
|
|
|
8629
8629
|
*/
|
|
8630
8630
|
"react-hooks/use-memo"?: Linter.RuleEntry<ReactHooksUseMemo>;
|
|
8631
8631
|
/**
|
|
8632
|
-
* Validates that useMemos always return a value. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
|
|
8632
|
+
* Validates that useMemos always return a value and that the result of the useMemo is used by the component/hook. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
|
|
8633
8633
|
*/
|
|
8634
8634
|
"react-hooks/void-use-memo"?: Linter.RuleEntry<ReactHooksVoidUseMemo>;
|
|
8635
8635
|
}
|
|
@@ -8832,6 +8832,11 @@ interface StylisticRuleOptions {
|
|
|
8832
8832
|
* @see https://eslint.style/rules/eol-last
|
|
8833
8833
|
*/
|
|
8834
8834
|
"@stylistic/eol-last"?: Linter.RuleEntry<StylisticEolLast>;
|
|
8835
|
+
/**
|
|
8836
|
+
* Enforce consistent spacing and line break styles inside brackets.
|
|
8837
|
+
* @see https://eslint.style/rules/list-style
|
|
8838
|
+
*/
|
|
8839
|
+
"@stylistic/exp-list-style"?: Linter.RuleEntry<StylisticExpListStyle>;
|
|
8835
8840
|
/**
|
|
8836
8841
|
* Enforce line breaks between arguments of a function call
|
|
8837
8842
|
* @see https://eslint.style/rules/function-call-argument-newline
|
|
@@ -9422,6 +9427,50 @@ type StylisticCurlyNewline = [] | [("always" | "never") | {
|
|
|
9422
9427
|
type StylisticDotLocation = [] | ["object" | "property"];
|
|
9423
9428
|
// ----- @stylistic/eol-last -----
|
|
9424
9429
|
type StylisticEolLast = [] | ["always" | "never" | "unix" | "windows"];
|
|
9430
|
+
// ----- @stylistic/exp-list-style -----
|
|
9431
|
+
type StylisticExpListStyle = [] | [{
|
|
9432
|
+
singleLine?: _StylisticExpListStyle_SingleLineConfig;
|
|
9433
|
+
multiLine?: _StylisticExpListStyle_MultiLineConfig;
|
|
9434
|
+
overrides?: {
|
|
9435
|
+
"[]"?: _StylisticExpListStyle_BaseConfig;
|
|
9436
|
+
"{}"?: _StylisticExpListStyle_BaseConfig;
|
|
9437
|
+
"<>"?: _StylisticExpListStyle_BaseConfig;
|
|
9438
|
+
"()"?: _StylisticExpListStyle_BaseConfig;
|
|
9439
|
+
ArrayExpression?: _StylisticExpListStyle_BaseConfig;
|
|
9440
|
+
ArrayPattern?: _StylisticExpListStyle_BaseConfig;
|
|
9441
|
+
ArrowFunctionExpression?: _StylisticExpListStyle_BaseConfig;
|
|
9442
|
+
CallExpression?: _StylisticExpListStyle_BaseConfig;
|
|
9443
|
+
ExportNamedDeclaration?: _StylisticExpListStyle_BaseConfig;
|
|
9444
|
+
FunctionDeclaration?: _StylisticExpListStyle_BaseConfig;
|
|
9445
|
+
FunctionExpression?: _StylisticExpListStyle_BaseConfig;
|
|
9446
|
+
ImportDeclaration?: _StylisticExpListStyle_BaseConfig;
|
|
9447
|
+
ImportAttributes?: _StylisticExpListStyle_BaseConfig;
|
|
9448
|
+
NewExpression?: _StylisticExpListStyle_BaseConfig;
|
|
9449
|
+
ObjectExpression?: _StylisticExpListStyle_BaseConfig;
|
|
9450
|
+
ObjectPattern?: _StylisticExpListStyle_BaseConfig;
|
|
9451
|
+
TSDeclareFunction?: _StylisticExpListStyle_BaseConfig;
|
|
9452
|
+
TSFunctionType?: _StylisticExpListStyle_BaseConfig;
|
|
9453
|
+
TSInterfaceBody?: _StylisticExpListStyle_BaseConfig;
|
|
9454
|
+
TSEnumBody?: _StylisticExpListStyle_BaseConfig;
|
|
9455
|
+
TSTupleType?: _StylisticExpListStyle_BaseConfig;
|
|
9456
|
+
TSTypeLiteral?: _StylisticExpListStyle_BaseConfig;
|
|
9457
|
+
TSTypeParameterDeclaration?: _StylisticExpListStyle_BaseConfig;
|
|
9458
|
+
TSTypeParameterInstantiation?: _StylisticExpListStyle_BaseConfig;
|
|
9459
|
+
JSONArrayExpression?: _StylisticExpListStyle_BaseConfig;
|
|
9460
|
+
JSONObjectExpression?: _StylisticExpListStyle_BaseConfig;
|
|
9461
|
+
};
|
|
9462
|
+
}];
|
|
9463
|
+
interface _StylisticExpListStyle_SingleLineConfig {
|
|
9464
|
+
spacing?: "always" | "never";
|
|
9465
|
+
maxItems?: number;
|
|
9466
|
+
}
|
|
9467
|
+
interface _StylisticExpListStyle_MultiLineConfig {
|
|
9468
|
+
minItems?: number;
|
|
9469
|
+
}
|
|
9470
|
+
interface _StylisticExpListStyle_BaseConfig {
|
|
9471
|
+
singleLine?: _StylisticExpListStyle_SingleLineConfig;
|
|
9472
|
+
multiline?: _StylisticExpListStyle_MultiLineConfig;
|
|
9473
|
+
}
|
|
9425
9474
|
// ----- @stylistic/function-call-argument-newline -----
|
|
9426
9475
|
type StylisticFunctionCallArgumentNewline = [] | ["always" | "never" | "consistent"];
|
|
9427
9476
|
// ----- @stylistic/function-call-spacing -----
|
|
@@ -9491,7 +9540,11 @@ type StylisticIndent = [] | ["tab" | number] | ["tab" | number, {
|
|
|
9491
9540
|
ObjectExpression?: number | ("first" | "off");
|
|
9492
9541
|
ImportDeclaration?: number | ("first" | "off");
|
|
9493
9542
|
flatTernaryExpressions?: boolean;
|
|
9494
|
-
offsetTernaryExpressions?: boolean
|
|
9543
|
+
offsetTernaryExpressions?: boolean | {
|
|
9544
|
+
CallExpression?: boolean;
|
|
9545
|
+
AwaitExpression?: boolean;
|
|
9546
|
+
NewExpression?: boolean;
|
|
9547
|
+
};
|
|
9495
9548
|
offsetTernaryExpressionsOffsetCallExpressions?: boolean;
|
|
9496
9549
|
ignoredNodes?: string[];
|
|
9497
9550
|
ignoreComments?: boolean;
|
|
@@ -10292,6 +10345,7 @@ type StylisticObjectCurlySpacing = [] | ["always" | "never"] | ["always" | "neve
|
|
|
10292
10345
|
TSInterfaceBody?: "always" | "never";
|
|
10293
10346
|
TSEnumBody?: "always" | "never";
|
|
10294
10347
|
};
|
|
10348
|
+
emptyObjects?: "ignore" | "always" | "never";
|
|
10295
10349
|
}];
|
|
10296
10350
|
// ----- @stylistic/object-property-newline -----
|
|
10297
10351
|
type StylisticObjectPropertyNewline = [] | [{
|
|
@@ -12353,710 +12407,725 @@ type ImportNoDuplicates = [] | [{
|
|
|
12353
12407
|
interface UnicornRuleOptions {
|
|
12354
12408
|
/**
|
|
12355
12409
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
12356
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12410
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/better-regex.md
|
|
12357
12411
|
*/
|
|
12358
12412
|
"unicorn/better-regex"?: Linter.RuleEntry<UnicornBetterRegex>;
|
|
12359
12413
|
/**
|
|
12360
12414
|
* Enforce a specific parameter name in catch clauses.
|
|
12361
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12415
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/catch-error-name.md
|
|
12362
12416
|
*/
|
|
12363
12417
|
"unicorn/catch-error-name"?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
12364
12418
|
/**
|
|
12365
12419
|
* Enforce consistent assertion style with `node:assert`.
|
|
12366
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12420
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-assert.md
|
|
12367
12421
|
*/
|
|
12368
12422
|
"unicorn/consistent-assert"?: Linter.RuleEntry<[]>;
|
|
12369
12423
|
/**
|
|
12370
12424
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
12371
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12425
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-date-clone.md
|
|
12372
12426
|
*/
|
|
12373
12427
|
"unicorn/consistent-date-clone"?: Linter.RuleEntry<[]>;
|
|
12374
12428
|
/**
|
|
12375
12429
|
* Use destructured variables over properties.
|
|
12376
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12430
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-destructuring.md
|
|
12377
12431
|
*/
|
|
12378
12432
|
"unicorn/consistent-destructuring"?: Linter.RuleEntry<[]>;
|
|
12379
12433
|
/**
|
|
12380
12434
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
12381
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12435
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-empty-array-spread.md
|
|
12382
12436
|
*/
|
|
12383
12437
|
"unicorn/consistent-empty-array-spread"?: Linter.RuleEntry<[]>;
|
|
12384
12438
|
/**
|
|
12385
12439
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
12386
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12440
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-existence-index-check.md
|
|
12387
12441
|
*/
|
|
12388
12442
|
"unicorn/consistent-existence-index-check"?: Linter.RuleEntry<[]>;
|
|
12389
12443
|
/**
|
|
12390
12444
|
* Move function definitions to the highest possible scope.
|
|
12391
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12445
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-function-scoping.md
|
|
12392
12446
|
*/
|
|
12393
12447
|
"unicorn/consistent-function-scoping"?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
12394
12448
|
/**
|
|
12395
12449
|
* Enforce correct `Error` subclassing.
|
|
12396
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12450
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/custom-error-definition.md
|
|
12397
12451
|
*/
|
|
12398
12452
|
"unicorn/custom-error-definition"?: Linter.RuleEntry<[]>;
|
|
12399
12453
|
/**
|
|
12400
12454
|
* Enforce no spaces between braces.
|
|
12401
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12455
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/empty-brace-spaces.md
|
|
12402
12456
|
*/
|
|
12403
12457
|
"unicorn/empty-brace-spaces"?: Linter.RuleEntry<[]>;
|
|
12404
12458
|
/**
|
|
12405
12459
|
* Enforce passing a `message` value when creating a built-in error.
|
|
12406
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12460
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/error-message.md
|
|
12407
12461
|
*/
|
|
12408
12462
|
"unicorn/error-message"?: Linter.RuleEntry<[]>;
|
|
12409
12463
|
/**
|
|
12410
12464
|
* Require escape sequences to use uppercase or lowercase values.
|
|
12411
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12465
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/escape-case.md
|
|
12412
12466
|
*/
|
|
12413
12467
|
"unicorn/escape-case"?: Linter.RuleEntry<UnicornEscapeCase>;
|
|
12414
12468
|
/**
|
|
12415
12469
|
* Add expiration conditions to TODO comments.
|
|
12416
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12470
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/expiring-todo-comments.md
|
|
12417
12471
|
*/
|
|
12418
12472
|
"unicorn/expiring-todo-comments"?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
12419
12473
|
/**
|
|
12420
12474
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
12421
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12475
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/explicit-length-check.md
|
|
12422
12476
|
*/
|
|
12423
12477
|
"unicorn/explicit-length-check"?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
12424
12478
|
/**
|
|
12425
12479
|
* Enforce a case style for filenames.
|
|
12426
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12480
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/filename-case.md
|
|
12427
12481
|
*/
|
|
12428
12482
|
"unicorn/filename-case"?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
12429
12483
|
/**
|
|
12430
12484
|
* Enforce specific import styles per module.
|
|
12431
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12485
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/import-style.md
|
|
12432
12486
|
*/
|
|
12433
12487
|
"unicorn/import-style"?: Linter.RuleEntry<UnicornImportStyle>;
|
|
12434
12488
|
/**
|
|
12435
12489
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
12436
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12490
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/new-for-builtins.md
|
|
12437
12491
|
*/
|
|
12438
12492
|
"unicorn/new-for-builtins"?: Linter.RuleEntry<[]>;
|
|
12439
12493
|
/**
|
|
12440
12494
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
12441
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12495
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
12442
12496
|
*/
|
|
12443
12497
|
"unicorn/no-abusive-eslint-disable"?: Linter.RuleEntry<[]>;
|
|
12444
12498
|
/**
|
|
12445
12499
|
* Disallow recursive access to `this` within getters and setters.
|
|
12446
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12500
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-accessor-recursion.md
|
|
12447
12501
|
*/
|
|
12448
12502
|
"unicorn/no-accessor-recursion"?: Linter.RuleEntry<[]>;
|
|
12449
12503
|
/**
|
|
12450
12504
|
* Disallow anonymous functions and classes as the default export.
|
|
12451
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12505
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-anonymous-default-export.md
|
|
12452
12506
|
*/
|
|
12453
12507
|
"unicorn/no-anonymous-default-export"?: Linter.RuleEntry<[]>;
|
|
12454
12508
|
/**
|
|
12455
12509
|
* Prevent passing a function reference directly to iterator methods.
|
|
12456
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12510
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-callback-reference.md
|
|
12457
12511
|
*/
|
|
12458
12512
|
"unicorn/no-array-callback-reference"?: Linter.RuleEntry<[]>;
|
|
12459
12513
|
/**
|
|
12460
12514
|
* Prefer `for…of` over the `forEach` method.
|
|
12461
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12515
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-for-each.md
|
|
12462
12516
|
*/
|
|
12463
12517
|
"unicorn/no-array-for-each"?: Linter.RuleEntry<[]>;
|
|
12464
12518
|
/**
|
|
12465
12519
|
* Disallow using the `this` argument in array methods.
|
|
12466
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12520
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-method-this-argument.md
|
|
12467
12521
|
*/
|
|
12468
12522
|
"unicorn/no-array-method-this-argument"?: Linter.RuleEntry<[]>;
|
|
12469
12523
|
/**
|
|
12470
12524
|
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
12471
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12525
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-array-push-push
|
|
12472
12526
|
* @deprecated
|
|
12473
12527
|
*/
|
|
12474
12528
|
"unicorn/no-array-push-push"?: Linter.RuleEntry<[]>;
|
|
12475
12529
|
/**
|
|
12476
12530
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
12477
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12531
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reduce.md
|
|
12478
12532
|
*/
|
|
12479
12533
|
"unicorn/no-array-reduce"?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
12480
12534
|
/**
|
|
12481
12535
|
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
12482
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12536
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reverse.md
|
|
12483
12537
|
*/
|
|
12484
12538
|
"unicorn/no-array-reverse"?: Linter.RuleEntry<UnicornNoArrayReverse>;
|
|
12485
12539
|
/**
|
|
12486
12540
|
* Prefer `Array#toSorted()` over `Array#sort()`.
|
|
12487
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12541
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-sort.md
|
|
12488
12542
|
*/
|
|
12489
12543
|
"unicorn/no-array-sort"?: Linter.RuleEntry<UnicornNoArraySort>;
|
|
12490
12544
|
/**
|
|
12491
12545
|
* Disallow member access from await expression.
|
|
12492
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12546
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-expression-member.md
|
|
12493
12547
|
*/
|
|
12494
12548
|
"unicorn/no-await-expression-member"?: Linter.RuleEntry<[]>;
|
|
12495
12549
|
/**
|
|
12496
12550
|
* Disallow using `await` in `Promise` method parameters.
|
|
12497
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12551
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-in-promise-methods.md
|
|
12498
12552
|
*/
|
|
12499
12553
|
"unicorn/no-await-in-promise-methods"?: Linter.RuleEntry<[]>;
|
|
12500
12554
|
/**
|
|
12501
12555
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
12502
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12556
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-console-spaces.md
|
|
12503
12557
|
*/
|
|
12504
12558
|
"unicorn/no-console-spaces"?: Linter.RuleEntry<[]>;
|
|
12505
12559
|
/**
|
|
12506
12560
|
* Do not use `document.cookie` directly.
|
|
12507
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12561
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-document-cookie.md
|
|
12508
12562
|
*/
|
|
12509
12563
|
"unicorn/no-document-cookie"?: Linter.RuleEntry<[]>;
|
|
12510
12564
|
/**
|
|
12511
12565
|
* Disallow empty files.
|
|
12512
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12566
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-empty-file.md
|
|
12513
12567
|
*/
|
|
12514
12568
|
"unicorn/no-empty-file"?: Linter.RuleEntry<[]>;
|
|
12515
12569
|
/**
|
|
12516
12570
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
12517
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12571
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-for-loop.md
|
|
12518
12572
|
*/
|
|
12519
12573
|
"unicorn/no-for-loop"?: Linter.RuleEntry<[]>;
|
|
12520
12574
|
/**
|
|
12521
12575
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
12522
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12576
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-hex-escape.md
|
|
12523
12577
|
*/
|
|
12524
12578
|
"unicorn/no-hex-escape"?: Linter.RuleEntry<[]>;
|
|
12579
|
+
/**
|
|
12580
|
+
* Disallow immediate mutation after variable assignment.
|
|
12581
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-immediate-mutation.md
|
|
12582
|
+
*/
|
|
12583
|
+
"unicorn/no-immediate-mutation"?: Linter.RuleEntry<[]>;
|
|
12525
12584
|
/**
|
|
12526
12585
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
12527
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12586
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-instanceof-array
|
|
12528
12587
|
* @deprecated
|
|
12529
12588
|
*/
|
|
12530
12589
|
"unicorn/no-instanceof-array"?: Linter.RuleEntry<[]>;
|
|
12531
12590
|
/**
|
|
12532
12591
|
* Disallow `instanceof` with built-in objects
|
|
12533
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12592
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-instanceof-builtins.md
|
|
12534
12593
|
*/
|
|
12535
12594
|
"unicorn/no-instanceof-builtins"?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
|
|
12536
12595
|
/**
|
|
12537
12596
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
12538
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12597
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-fetch-options.md
|
|
12539
12598
|
*/
|
|
12540
12599
|
"unicorn/no-invalid-fetch-options"?: Linter.RuleEntry<[]>;
|
|
12541
12600
|
/**
|
|
12542
12601
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
12543
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12602
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
12544
12603
|
*/
|
|
12545
12604
|
"unicorn/no-invalid-remove-event-listener"?: Linter.RuleEntry<[]>;
|
|
12546
12605
|
/**
|
|
12547
12606
|
* Disallow identifiers starting with `new` or `class`.
|
|
12548
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12607
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-keyword-prefix.md
|
|
12549
12608
|
*/
|
|
12550
12609
|
"unicorn/no-keyword-prefix"?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
12551
12610
|
/**
|
|
12552
12611
|
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
12553
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12612
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-length-as-slice-end
|
|
12554
12613
|
* @deprecated
|
|
12555
12614
|
*/
|
|
12556
12615
|
"unicorn/no-length-as-slice-end"?: Linter.RuleEntry<[]>;
|
|
12557
12616
|
/**
|
|
12558
12617
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
12559
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12618
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-lonely-if.md
|
|
12560
12619
|
*/
|
|
12561
12620
|
"unicorn/no-lonely-if"?: Linter.RuleEntry<[]>;
|
|
12562
12621
|
/**
|
|
12563
12622
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
12564
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12623
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
12565
12624
|
*/
|
|
12566
12625
|
"unicorn/no-magic-array-flat-depth"?: Linter.RuleEntry<[]>;
|
|
12567
12626
|
/**
|
|
12568
12627
|
* Disallow named usage of default import and export.
|
|
12569
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12628
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-named-default.md
|
|
12570
12629
|
*/
|
|
12571
12630
|
"unicorn/no-named-default"?: Linter.RuleEntry<[]>;
|
|
12572
12631
|
/**
|
|
12573
12632
|
* Disallow negated conditions.
|
|
12574
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12633
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negated-condition.md
|
|
12575
12634
|
*/
|
|
12576
12635
|
"unicorn/no-negated-condition"?: Linter.RuleEntry<[]>;
|
|
12577
12636
|
/**
|
|
12578
12637
|
* Disallow negated expression in equality check.
|
|
12579
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12638
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negation-in-equality-check.md
|
|
12580
12639
|
*/
|
|
12581
12640
|
"unicorn/no-negation-in-equality-check"?: Linter.RuleEntry<[]>;
|
|
12582
12641
|
/**
|
|
12583
12642
|
* Disallow nested ternary expressions.
|
|
12584
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12643
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-nested-ternary.md
|
|
12585
12644
|
*/
|
|
12586
12645
|
"unicorn/no-nested-ternary"?: Linter.RuleEntry<[]>;
|
|
12587
12646
|
/**
|
|
12588
12647
|
* Disallow `new Array()`.
|
|
12589
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12648
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-array.md
|
|
12590
12649
|
*/
|
|
12591
12650
|
"unicorn/no-new-array"?: Linter.RuleEntry<[]>;
|
|
12592
12651
|
/**
|
|
12593
12652
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
12594
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12653
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-buffer.md
|
|
12595
12654
|
*/
|
|
12596
12655
|
"unicorn/no-new-buffer"?: Linter.RuleEntry<[]>;
|
|
12597
12656
|
/**
|
|
12598
12657
|
* Disallow the use of the `null` literal.
|
|
12599
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12658
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-null.md
|
|
12600
12659
|
*/
|
|
12601
12660
|
"unicorn/no-null"?: Linter.RuleEntry<UnicornNoNull>;
|
|
12602
12661
|
/**
|
|
12603
12662
|
* Disallow the use of objects as default parameters.
|
|
12604
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12663
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-object-as-default-parameter.md
|
|
12605
12664
|
*/
|
|
12606
12665
|
"unicorn/no-object-as-default-parameter"?: Linter.RuleEntry<[]>;
|
|
12607
12666
|
/**
|
|
12608
12667
|
* Disallow `process.exit()`.
|
|
12609
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12668
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-process-exit.md
|
|
12610
12669
|
*/
|
|
12611
12670
|
"unicorn/no-process-exit"?: Linter.RuleEntry<[]>;
|
|
12612
12671
|
/**
|
|
12613
12672
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
12614
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12673
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
12615
12674
|
*/
|
|
12616
12675
|
"unicorn/no-single-promise-in-promise-methods"?: Linter.RuleEntry<[]>;
|
|
12617
12676
|
/**
|
|
12618
12677
|
* Disallow classes that only have static members.
|
|
12619
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12678
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-static-only-class.md
|
|
12620
12679
|
*/
|
|
12621
12680
|
"unicorn/no-static-only-class"?: Linter.RuleEntry<[]>;
|
|
12622
12681
|
/**
|
|
12623
12682
|
* Disallow `then` property.
|
|
12624
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12683
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-thenable.md
|
|
12625
12684
|
*/
|
|
12626
12685
|
"unicorn/no-thenable"?: Linter.RuleEntry<[]>;
|
|
12627
12686
|
/**
|
|
12628
12687
|
* Disallow assigning `this` to a variable.
|
|
12629
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12688
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-this-assignment.md
|
|
12630
12689
|
*/
|
|
12631
12690
|
"unicorn/no-this-assignment"?: Linter.RuleEntry<[]>;
|
|
12632
12691
|
/**
|
|
12633
12692
|
* Disallow comparing `undefined` using `typeof`.
|
|
12634
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12693
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-typeof-undefined.md
|
|
12635
12694
|
*/
|
|
12636
12695
|
"unicorn/no-typeof-undefined"?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
12637
12696
|
/**
|
|
12638
12697
|
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
12639
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12698
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-flat-depth.md
|
|
12640
12699
|
*/
|
|
12641
12700
|
"unicorn/no-unnecessary-array-flat-depth"?: Linter.RuleEntry<[]>;
|
|
12642
12701
|
/**
|
|
12643
12702
|
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
12644
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12703
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-splice-count.md
|
|
12645
12704
|
*/
|
|
12646
12705
|
"unicorn/no-unnecessary-array-splice-count"?: Linter.RuleEntry<[]>;
|
|
12647
12706
|
/**
|
|
12648
12707
|
* Disallow awaiting non-promise values.
|
|
12649
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12708
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-await.md
|
|
12650
12709
|
*/
|
|
12651
12710
|
"unicorn/no-unnecessary-await"?: Linter.RuleEntry<[]>;
|
|
12652
12711
|
/**
|
|
12653
12712
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
12654
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12713
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
12655
12714
|
*/
|
|
12656
12715
|
"unicorn/no-unnecessary-polyfills"?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
12657
12716
|
/**
|
|
12658
12717
|
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
12659
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12718
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-slice-end.md
|
|
12660
12719
|
*/
|
|
12661
12720
|
"unicorn/no-unnecessary-slice-end"?: Linter.RuleEntry<[]>;
|
|
12662
12721
|
/**
|
|
12663
12722
|
* Disallow unreadable array destructuring.
|
|
12664
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12723
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
12665
12724
|
*/
|
|
12666
12725
|
"unicorn/no-unreadable-array-destructuring"?: Linter.RuleEntry<[]>;
|
|
12667
12726
|
/**
|
|
12668
12727
|
* Disallow unreadable IIFEs.
|
|
12669
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12728
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-iife.md
|
|
12670
12729
|
*/
|
|
12671
12730
|
"unicorn/no-unreadable-iife"?: Linter.RuleEntry<[]>;
|
|
12672
12731
|
/**
|
|
12673
12732
|
* Disallow unused object properties.
|
|
12674
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12733
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unused-properties.md
|
|
12675
12734
|
*/
|
|
12676
12735
|
"unicorn/no-unused-properties"?: Linter.RuleEntry<[]>;
|
|
12736
|
+
/**
|
|
12737
|
+
* Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
|
|
12738
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-collection-argument.md
|
|
12739
|
+
*/
|
|
12740
|
+
"unicorn/no-useless-collection-argument"?: Linter.RuleEntry<[]>;
|
|
12677
12741
|
/**
|
|
12678
12742
|
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
12679
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12743
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-error-capture-stack-trace.md
|
|
12680
12744
|
*/
|
|
12681
12745
|
"unicorn/no-useless-error-capture-stack-trace"?: Linter.RuleEntry<[]>;
|
|
12682
12746
|
/**
|
|
12683
12747
|
* Disallow useless fallback when spreading in object literals.
|
|
12684
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12748
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
12685
12749
|
*/
|
|
12686
12750
|
"unicorn/no-useless-fallback-in-spread"?: Linter.RuleEntry<[]>;
|
|
12687
12751
|
/**
|
|
12688
12752
|
* Disallow useless array length check.
|
|
12689
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12753
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-length-check.md
|
|
12690
12754
|
*/
|
|
12691
12755
|
"unicorn/no-useless-length-check"?: Linter.RuleEntry<[]>;
|
|
12692
12756
|
/**
|
|
12693
12757
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
12694
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12758
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
12695
12759
|
*/
|
|
12696
12760
|
"unicorn/no-useless-promise-resolve-reject"?: Linter.RuleEntry<[]>;
|
|
12697
12761
|
/**
|
|
12698
12762
|
* Disallow unnecessary spread.
|
|
12699
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12763
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-spread.md
|
|
12700
12764
|
*/
|
|
12701
12765
|
"unicorn/no-useless-spread"?: Linter.RuleEntry<[]>;
|
|
12702
12766
|
/**
|
|
12703
12767
|
* Disallow useless case in switch statements.
|
|
12704
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12768
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-switch-case.md
|
|
12705
12769
|
*/
|
|
12706
12770
|
"unicorn/no-useless-switch-case"?: Linter.RuleEntry<[]>;
|
|
12707
12771
|
/**
|
|
12708
12772
|
* Disallow useless `undefined`.
|
|
12709
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12773
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-undefined.md
|
|
12710
12774
|
*/
|
|
12711
12775
|
"unicorn/no-useless-undefined"?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
12712
12776
|
/**
|
|
12713
12777
|
* Disallow number literals with zero fractions or dangling dots.
|
|
12714
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12778
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-zero-fractions.md
|
|
12715
12779
|
*/
|
|
12716
12780
|
"unicorn/no-zero-fractions"?: Linter.RuleEntry<[]>;
|
|
12717
12781
|
/**
|
|
12718
12782
|
* Enforce proper case for numeric literals.
|
|
12719
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12783
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/number-literal-case.md
|
|
12720
12784
|
*/
|
|
12721
12785
|
"unicorn/number-literal-case"?: Linter.RuleEntry<UnicornNumberLiteralCase>;
|
|
12722
12786
|
/**
|
|
12723
12787
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
12724
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12788
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/numeric-separators-style.md
|
|
12725
12789
|
*/
|
|
12726
12790
|
"unicorn/numeric-separators-style"?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
12727
12791
|
/**
|
|
12728
12792
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
12729
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12793
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-add-event-listener.md
|
|
12730
12794
|
*/
|
|
12731
12795
|
"unicorn/prefer-add-event-listener"?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
12732
12796
|
/**
|
|
12733
12797
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
12734
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12798
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-find.md
|
|
12735
12799
|
*/
|
|
12736
12800
|
"unicorn/prefer-array-find"?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
12737
12801
|
/**
|
|
12738
12802
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
12739
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12803
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat.md
|
|
12740
12804
|
*/
|
|
12741
12805
|
"unicorn/prefer-array-flat"?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
12742
12806
|
/**
|
|
12743
12807
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
12744
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12808
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat-map.md
|
|
12745
12809
|
*/
|
|
12746
12810
|
"unicorn/prefer-array-flat-map"?: Linter.RuleEntry<[]>;
|
|
12747
12811
|
/**
|
|
12748
12812
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
12749
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12813
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-index-of.md
|
|
12750
12814
|
*/
|
|
12751
12815
|
"unicorn/prefer-array-index-of"?: Linter.RuleEntry<[]>;
|
|
12752
12816
|
/**
|
|
12753
12817
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
12754
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12818
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-some.md
|
|
12755
12819
|
*/
|
|
12756
12820
|
"unicorn/prefer-array-some"?: Linter.RuleEntry<[]>;
|
|
12757
12821
|
/**
|
|
12758
12822
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
12759
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12823
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-at.md
|
|
12760
12824
|
*/
|
|
12761
12825
|
"unicorn/prefer-at"?: Linter.RuleEntry<UnicornPreferAt>;
|
|
12762
12826
|
/**
|
|
12763
12827
|
* Prefer `BigInt` literals over the constructor.
|
|
12764
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12828
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-bigint-literals.md
|
|
12765
12829
|
*/
|
|
12766
12830
|
"unicorn/prefer-bigint-literals"?: Linter.RuleEntry<[]>;
|
|
12767
12831
|
/**
|
|
12768
12832
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
12769
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12833
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
12770
12834
|
*/
|
|
12771
12835
|
"unicorn/prefer-blob-reading-methods"?: Linter.RuleEntry<[]>;
|
|
12772
12836
|
/**
|
|
12773
12837
|
* Prefer class field declarations over `this` assignments in constructors.
|
|
12774
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12838
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-class-fields.md
|
|
12775
12839
|
*/
|
|
12776
12840
|
"unicorn/prefer-class-fields"?: Linter.RuleEntry<[]>;
|
|
12777
12841
|
/**
|
|
12778
12842
|
* Prefer using `Element#classList.toggle()` to toggle class names.
|
|
12779
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12843
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-classlist-toggle.md
|
|
12780
12844
|
*/
|
|
12781
12845
|
"unicorn/prefer-classlist-toggle"?: Linter.RuleEntry<[]>;
|
|
12782
12846
|
/**
|
|
12783
12847
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
12784
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12848
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-code-point.md
|
|
12785
12849
|
*/
|
|
12786
12850
|
"unicorn/prefer-code-point"?: Linter.RuleEntry<[]>;
|
|
12787
12851
|
/**
|
|
12788
12852
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
12789
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12853
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-date-now.md
|
|
12790
12854
|
*/
|
|
12791
12855
|
"unicorn/prefer-date-now"?: Linter.RuleEntry<[]>;
|
|
12792
12856
|
/**
|
|
12793
12857
|
* Prefer default parameters over reassignment.
|
|
12794
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12858
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-default-parameters.md
|
|
12795
12859
|
*/
|
|
12796
12860
|
"unicorn/prefer-default-parameters"?: Linter.RuleEntry<[]>;
|
|
12797
12861
|
/**
|
|
12798
12862
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
12799
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12863
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-append.md
|
|
12800
12864
|
*/
|
|
12801
12865
|
"unicorn/prefer-dom-node-append"?: Linter.RuleEntry<[]>;
|
|
12802
12866
|
/**
|
|
12803
12867
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
12804
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12868
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
12805
12869
|
*/
|
|
12806
12870
|
"unicorn/prefer-dom-node-dataset"?: Linter.RuleEntry<[]>;
|
|
12807
12871
|
/**
|
|
12808
12872
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
12809
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12873
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-remove.md
|
|
12810
12874
|
*/
|
|
12811
12875
|
"unicorn/prefer-dom-node-remove"?: Linter.RuleEntry<[]>;
|
|
12812
12876
|
/**
|
|
12813
12877
|
* Prefer `.textContent` over `.innerText`.
|
|
12814
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12878
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
12815
12879
|
*/
|
|
12816
12880
|
"unicorn/prefer-dom-node-text-content"?: Linter.RuleEntry<[]>;
|
|
12817
12881
|
/**
|
|
12818
12882
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
12819
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12883
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-event-target.md
|
|
12820
12884
|
*/
|
|
12821
12885
|
"unicorn/prefer-event-target"?: Linter.RuleEntry<[]>;
|
|
12822
12886
|
/**
|
|
12823
12887
|
* Prefer `export…from` when re-exporting.
|
|
12824
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12888
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-export-from.md
|
|
12825
12889
|
*/
|
|
12826
12890
|
"unicorn/prefer-export-from"?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
12827
12891
|
/**
|
|
12828
12892
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
12829
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12893
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-global-this.md
|
|
12830
12894
|
*/
|
|
12831
12895
|
"unicorn/prefer-global-this"?: Linter.RuleEntry<[]>;
|
|
12832
12896
|
/**
|
|
12833
12897
|
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
12834
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12898
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-import-meta-properties.md
|
|
12835
12899
|
*/
|
|
12836
12900
|
"unicorn/prefer-import-meta-properties"?: Linter.RuleEntry<[]>;
|
|
12837
12901
|
/**
|
|
12838
12902
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
12839
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12903
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-includes.md
|
|
12840
12904
|
*/
|
|
12841
12905
|
"unicorn/prefer-includes"?: Linter.RuleEntry<[]>;
|
|
12842
12906
|
/**
|
|
12843
12907
|
* Prefer reading a JSON file as a buffer.
|
|
12844
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12908
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
12845
12909
|
*/
|
|
12846
12910
|
"unicorn/prefer-json-parse-buffer"?: Linter.RuleEntry<[]>;
|
|
12847
12911
|
/**
|
|
12848
12912
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
12849
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12913
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
12850
12914
|
*/
|
|
12851
12915
|
"unicorn/prefer-keyboard-event-key"?: Linter.RuleEntry<[]>;
|
|
12852
12916
|
/**
|
|
12853
12917
|
* Prefer using a logical operator over a ternary.
|
|
12854
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12918
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
12855
12919
|
*/
|
|
12856
12920
|
"unicorn/prefer-logical-operator-over-ternary"?: Linter.RuleEntry<[]>;
|
|
12857
12921
|
/**
|
|
12858
12922
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
12859
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12923
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-min-max.md
|
|
12860
12924
|
*/
|
|
12861
12925
|
"unicorn/prefer-math-min-max"?: Linter.RuleEntry<[]>;
|
|
12862
12926
|
/**
|
|
12863
12927
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
12864
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12928
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-trunc.md
|
|
12865
12929
|
*/
|
|
12866
12930
|
"unicorn/prefer-math-trunc"?: Linter.RuleEntry<[]>;
|
|
12867
12931
|
/**
|
|
12868
12932
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
12869
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12933
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
12870
12934
|
*/
|
|
12871
12935
|
"unicorn/prefer-modern-dom-apis"?: Linter.RuleEntry<[]>;
|
|
12872
12936
|
/**
|
|
12873
12937
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
12874
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12938
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-math-apis.md
|
|
12875
12939
|
*/
|
|
12876
12940
|
"unicorn/prefer-modern-math-apis"?: Linter.RuleEntry<[]>;
|
|
12877
12941
|
/**
|
|
12878
12942
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
12879
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12943
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-module.md
|
|
12880
12944
|
*/
|
|
12881
12945
|
"unicorn/prefer-module"?: Linter.RuleEntry<[]>;
|
|
12882
12946
|
/**
|
|
12883
12947
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
12884
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12948
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
12885
12949
|
*/
|
|
12886
12950
|
"unicorn/prefer-native-coercion-functions"?: Linter.RuleEntry<[]>;
|
|
12887
12951
|
/**
|
|
12888
12952
|
* Prefer negative index over `.length - index` when possible.
|
|
12889
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12953
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-negative-index.md
|
|
12890
12954
|
*/
|
|
12891
12955
|
"unicorn/prefer-negative-index"?: Linter.RuleEntry<[]>;
|
|
12892
12956
|
/**
|
|
12893
12957
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
12894
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12958
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-node-protocol.md
|
|
12895
12959
|
*/
|
|
12896
12960
|
"unicorn/prefer-node-protocol"?: Linter.RuleEntry<[]>;
|
|
12897
12961
|
/**
|
|
12898
12962
|
* Prefer `Number` static properties over global ones.
|
|
12899
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12963
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-number-properties.md
|
|
12900
12964
|
*/
|
|
12901
12965
|
"unicorn/prefer-number-properties"?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
12902
12966
|
/**
|
|
12903
12967
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
12904
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12968
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-object-from-entries.md
|
|
12905
12969
|
*/
|
|
12906
12970
|
"unicorn/prefer-object-from-entries"?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
12907
12971
|
/**
|
|
12908
12972
|
* Prefer omitting the `catch` binding parameter.
|
|
12909
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12973
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
12910
12974
|
*/
|
|
12911
12975
|
"unicorn/prefer-optional-catch-binding"?: Linter.RuleEntry<[]>;
|
|
12912
12976
|
/**
|
|
12913
12977
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
12914
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12978
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-prototype-methods.md
|
|
12915
12979
|
*/
|
|
12916
12980
|
"unicorn/prefer-prototype-methods"?: Linter.RuleEntry<[]>;
|
|
12917
12981
|
/**
|
|
12918
12982
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
12919
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12983
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-query-selector.md
|
|
12920
12984
|
*/
|
|
12921
12985
|
"unicorn/prefer-query-selector"?: Linter.RuleEntry<[]>;
|
|
12922
12986
|
/**
|
|
12923
12987
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
12924
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12988
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-reflect-apply.md
|
|
12925
12989
|
*/
|
|
12926
12990
|
"unicorn/prefer-reflect-apply"?: Linter.RuleEntry<[]>;
|
|
12927
12991
|
/**
|
|
12928
12992
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
12929
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12993
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-regexp-test.md
|
|
12930
12994
|
*/
|
|
12931
12995
|
"unicorn/prefer-regexp-test"?: Linter.RuleEntry<[]>;
|
|
12996
|
+
/**
|
|
12997
|
+
* Prefer `Response.json()` over `new Response(JSON.stringify())`.
|
|
12998
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-response-static-json.md
|
|
12999
|
+
*/
|
|
13000
|
+
"unicorn/prefer-response-static-json"?: Linter.RuleEntry<[]>;
|
|
12932
13001
|
/**
|
|
12933
13002
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
12934
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13003
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-has.md
|
|
12935
13004
|
*/
|
|
12936
13005
|
"unicorn/prefer-set-has"?: Linter.RuleEntry<[]>;
|
|
12937
13006
|
/**
|
|
12938
13007
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
12939
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13008
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-size.md
|
|
12940
13009
|
*/
|
|
12941
13010
|
"unicorn/prefer-set-size"?: Linter.RuleEntry<[]>;
|
|
12942
13011
|
/**
|
|
12943
13012
|
* Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
12944
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13013
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-single-call.md
|
|
12945
13014
|
*/
|
|
12946
13015
|
"unicorn/prefer-single-call"?: Linter.RuleEntry<UnicornPreferSingleCall>;
|
|
12947
13016
|
/**
|
|
12948
13017
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
12949
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13018
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-spread.md
|
|
12950
13019
|
*/
|
|
12951
13020
|
"unicorn/prefer-spread"?: Linter.RuleEntry<[]>;
|
|
12952
13021
|
/**
|
|
12953
13022
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
12954
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13023
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-raw.md
|
|
12955
13024
|
*/
|
|
12956
13025
|
"unicorn/prefer-string-raw"?: Linter.RuleEntry<[]>;
|
|
12957
13026
|
/**
|
|
12958
13027
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
12959
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13028
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-replace-all.md
|
|
12960
13029
|
*/
|
|
12961
13030
|
"unicorn/prefer-string-replace-all"?: Linter.RuleEntry<[]>;
|
|
12962
13031
|
/**
|
|
12963
13032
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
12964
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13033
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-slice.md
|
|
12965
13034
|
*/
|
|
12966
13035
|
"unicorn/prefer-string-slice"?: Linter.RuleEntry<[]>;
|
|
12967
13036
|
/**
|
|
12968
13037
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
12969
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13038
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
12970
13039
|
*/
|
|
12971
13040
|
"unicorn/prefer-string-starts-ends-with"?: Linter.RuleEntry<[]>;
|
|
12972
13041
|
/**
|
|
12973
13042
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
12974
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13043
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
12975
13044
|
*/
|
|
12976
13045
|
"unicorn/prefer-string-trim-start-end"?: Linter.RuleEntry<[]>;
|
|
12977
13046
|
/**
|
|
12978
13047
|
* Prefer using `structuredClone` to create a deep clone.
|
|
12979
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13048
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-structured-clone.md
|
|
12980
13049
|
*/
|
|
12981
13050
|
"unicorn/prefer-structured-clone"?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
12982
13051
|
/**
|
|
12983
13052
|
* Prefer `switch` over multiple `else-if`.
|
|
12984
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13053
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-switch.md
|
|
12985
13054
|
*/
|
|
12986
13055
|
"unicorn/prefer-switch"?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
12987
13056
|
/**
|
|
12988
13057
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
12989
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13058
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-ternary.md
|
|
12990
13059
|
*/
|
|
12991
13060
|
"unicorn/prefer-ternary"?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
12992
13061
|
/**
|
|
12993
13062
|
* Prefer top-level await over top-level promises and async function calls.
|
|
12994
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13063
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-top-level-await.md
|
|
12995
13064
|
*/
|
|
12996
13065
|
"unicorn/prefer-top-level-await"?: Linter.RuleEntry<[]>;
|
|
12997
13066
|
/**
|
|
12998
13067
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
12999
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13068
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-type-error.md
|
|
13000
13069
|
*/
|
|
13001
13070
|
"unicorn/prefer-type-error"?: Linter.RuleEntry<[]>;
|
|
13002
13071
|
/**
|
|
13003
13072
|
* Prevent abbreviations.
|
|
13004
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13073
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prevent-abbreviations.md
|
|
13005
13074
|
*/
|
|
13006
13075
|
"unicorn/prevent-abbreviations"?: Linter.RuleEntry<UnicornPreventAbbreviations>;
|
|
13007
13076
|
/**
|
|
13008
13077
|
* Enforce consistent relative URL style.
|
|
13009
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13078
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/relative-url-style.md
|
|
13010
13079
|
*/
|
|
13011
13080
|
"unicorn/relative-url-style"?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
13012
13081
|
/**
|
|
13013
13082
|
* Enforce using the separator argument with `Array#join()`.
|
|
13014
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13083
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-array-join-separator.md
|
|
13015
13084
|
*/
|
|
13016
13085
|
"unicorn/require-array-join-separator"?: Linter.RuleEntry<[]>;
|
|
13017
13086
|
/**
|
|
13018
13087
|
* Require non-empty module attributes for imports and exports
|
|
13019
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13088
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-attributes.md
|
|
13020
13089
|
*/
|
|
13021
13090
|
"unicorn/require-module-attributes"?: Linter.RuleEntry<[]>;
|
|
13022
13091
|
/**
|
|
13023
13092
|
* Require non-empty specifier list in import and export statements.
|
|
13024
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13093
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-specifiers.md
|
|
13025
13094
|
*/
|
|
13026
13095
|
"unicorn/require-module-specifiers"?: Linter.RuleEntry<[]>;
|
|
13027
13096
|
/**
|
|
13028
13097
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
13029
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13098
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
13030
13099
|
*/
|
|
13031
13100
|
"unicorn/require-number-to-fixed-digits-argument"?: Linter.RuleEntry<[]>;
|
|
13032
13101
|
/**
|
|
13033
13102
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
13034
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13103
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-post-message-target-origin.md
|
|
13035
13104
|
*/
|
|
13036
13105
|
"unicorn/require-post-message-target-origin"?: Linter.RuleEntry<[]>;
|
|
13037
13106
|
/**
|
|
13038
13107
|
* Enforce better string content.
|
|
13039
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13108
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/string-content.md
|
|
13040
13109
|
*/
|
|
13041
13110
|
"unicorn/string-content"?: Linter.RuleEntry<UnicornStringContent>;
|
|
13042
13111
|
/**
|
|
13043
13112
|
* Enforce consistent brace style for `case` clauses.
|
|
13044
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13113
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/switch-case-braces.md
|
|
13045
13114
|
*/
|
|
13046
13115
|
"unicorn/switch-case-braces"?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
13047
13116
|
/**
|
|
13048
13117
|
* Fix whitespace-insensitive template indentation.
|
|
13049
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13118
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/template-indent.md
|
|
13050
13119
|
*/
|
|
13051
13120
|
"unicorn/template-indent"?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
13052
13121
|
/**
|
|
13053
13122
|
* Enforce consistent case for text encoding identifiers.
|
|
13054
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13123
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/text-encoding-identifier-case.md
|
|
13055
13124
|
*/
|
|
13056
|
-
"unicorn/text-encoding-identifier-case"?: Linter.RuleEntry<
|
|
13125
|
+
"unicorn/text-encoding-identifier-case"?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
|
|
13057
13126
|
/**
|
|
13058
13127
|
* Require `new` when creating an error.
|
|
13059
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13128
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/throw-new-error.md
|
|
13060
13129
|
*/
|
|
13061
13130
|
"unicorn/throw-new-error"?: Linter.RuleEntry<[]>;
|
|
13062
13131
|
}
|
|
@@ -13279,6 +13348,10 @@ type UnicornTemplateIndent = [] | [{
|
|
|
13279
13348
|
selectors?: string[];
|
|
13280
13349
|
comments?: string[];
|
|
13281
13350
|
}];
|
|
13351
|
+
// ----- unicorn/text-encoding-identifier-case -----
|
|
13352
|
+
type UnicornTextEncodingIdentifierCase = [] | [{
|
|
13353
|
+
withDash?: boolean;
|
|
13354
|
+
}];
|
|
13282
13355
|
//#endregion
|
|
13283
13356
|
//#region src/generated/dts/vitest.d.ts
|
|
13284
13357
|
interface VitestRuleOptions {
|
|
@@ -14428,7 +14501,7 @@ declare function defineConfig(options?: OptionsConfig & Config, ...userConfigs:
|
|
|
14428
14501
|
type DefineConfig = typeof defineConfig;
|
|
14429
14502
|
//#endregion
|
|
14430
14503
|
//#region src/generated/version.d.ts
|
|
14431
|
-
declare const VERSION = "0.4.
|
|
14504
|
+
declare const VERSION = "0.4.20";
|
|
14432
14505
|
declare namespace globs_d_exports {
|
|
14433
14506
|
export { GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_JS_SRC_EXT, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSCONFIG, GLOB_TSX, GLOB_TS_SRC_EXT, GLOB_YAML };
|
|
14434
14507
|
}
|
|
@@ -14460,17 +14533,6 @@ declare const GLOB_ALL_SRC: string[];
|
|
|
14460
14533
|
declare const GLOB_EXCLUDE: string[];
|
|
14461
14534
|
//#endregion
|
|
14462
14535
|
//#region src/plugins.d.ts
|
|
14463
|
-
declare function importPluginUnicorn(): Promise<{
|
|
14464
|
-
pluginUnicorn: eslint0.ESLint.Plugin & {
|
|
14465
|
-
configs: {
|
|
14466
|
-
recommended: eslint0.Linter.FlatConfig;
|
|
14467
|
-
unopinionated: eslint0.Linter.FlatConfig;
|
|
14468
|
-
all: eslint0.Linter.FlatConfig;
|
|
14469
|
-
"flat/all": eslint0.Linter.FlatConfig;
|
|
14470
|
-
"flat/recommended": eslint0.Linter.FlatConfig;
|
|
14471
|
-
};
|
|
14472
|
-
};
|
|
14473
|
-
}>;
|
|
14474
14536
|
declare function importPluginReact(): Promise<{
|
|
14475
14537
|
pluginReact: {
|
|
14476
14538
|
deprecatedRules: Partial<{
|
|
@@ -14744,9 +14806,6 @@ declare function importPluginReact(): Promise<{
|
|
|
14744
14806
|
};
|
|
14745
14807
|
};
|
|
14746
14808
|
}>;
|
|
14747
|
-
declare function importPluginReactHooks(): Promise<{
|
|
14748
|
-
pluginReactHooks: typeof eslint_plugin_react_hooks0;
|
|
14749
|
-
}>;
|
|
14750
14809
|
declare function importPluginReactRefresh(): Promise<{
|
|
14751
14810
|
pluginReactRefresh: {
|
|
14752
14811
|
rules: Record<string, any>;
|
|
@@ -14778,309 +14837,6 @@ declare function importPluginReactRefresh(): Promise<{
|
|
|
14778
14837
|
};
|
|
14779
14838
|
};
|
|
14780
14839
|
}>;
|
|
14781
|
-
declare function importReactPlugins(): Promise<{
|
|
14782
|
-
pluginReact: {
|
|
14783
|
-
deprecatedRules: Partial<{
|
|
14784
|
-
'boolean-prop-naming': eslint0.Rule.RuleModule;
|
|
14785
|
-
'button-has-type': eslint0.Rule.RuleModule;
|
|
14786
|
-
'checked-requires-onchange-or-readonly': eslint0.Rule.RuleModule;
|
|
14787
|
-
'default-props-match-prop-types': eslint0.Rule.RuleModule;
|
|
14788
|
-
'destructuring-assignment': eslint0.Rule.RuleModule;
|
|
14789
|
-
'display-name': eslint0.Rule.RuleModule;
|
|
14790
|
-
'forbid-component-props': eslint0.Rule.RuleModule;
|
|
14791
|
-
'forbid-dom-props': eslint0.Rule.RuleModule;
|
|
14792
|
-
'forbid-elements': eslint0.Rule.RuleModule;
|
|
14793
|
-
'forbid-foreign-prop-types': eslint0.Rule.RuleModule;
|
|
14794
|
-
'forbid-prop-types': eslint0.Rule.RuleModule;
|
|
14795
|
-
'forward-ref-uses-ref': eslint0.Rule.RuleModule;
|
|
14796
|
-
'function-component-definition': eslint0.Rule.RuleModule;
|
|
14797
|
-
'hook-use-state': eslint0.Rule.RuleModule;
|
|
14798
|
-
'iframe-missing-sandbox': eslint0.Rule.RuleModule;
|
|
14799
|
-
'jsx-boolean-value': eslint0.Rule.RuleModule;
|
|
14800
|
-
'jsx-child-element-spacing': eslint0.Rule.RuleModule;
|
|
14801
|
-
'jsx-closing-bracket-location': eslint0.Rule.RuleModule;
|
|
14802
|
-
'jsx-closing-tag-location': eslint0.Rule.RuleModule;
|
|
14803
|
-
'jsx-curly-spacing': eslint0.Rule.RuleModule;
|
|
14804
|
-
'jsx-curly-newline': eslint0.Rule.RuleModule;
|
|
14805
|
-
'jsx-equals-spacing': eslint0.Rule.RuleModule;
|
|
14806
|
-
'jsx-filename-extension': eslint0.Rule.RuleModule;
|
|
14807
|
-
'jsx-first-prop-new-line': eslint0.Rule.RuleModule;
|
|
14808
|
-
'jsx-handler-names': eslint0.Rule.RuleModule;
|
|
14809
|
-
'jsx-indent': eslint0.Rule.RuleModule;
|
|
14810
|
-
'jsx-indent-props': eslint0.Rule.RuleModule;
|
|
14811
|
-
'jsx-key': eslint0.Rule.RuleModule;
|
|
14812
|
-
'jsx-max-depth': eslint0.Rule.RuleModule;
|
|
14813
|
-
'jsx-max-props-per-line': eslint0.Rule.RuleModule;
|
|
14814
|
-
'jsx-newline': eslint0.Rule.RuleModule;
|
|
14815
|
-
'jsx-no-bind': eslint0.Rule.RuleModule;
|
|
14816
|
-
'jsx-no-comment-textnodes': eslint0.Rule.RuleModule;
|
|
14817
|
-
'jsx-no-constructed-context-values': eslint0.Rule.RuleModule;
|
|
14818
|
-
'jsx-no-duplicate-props': eslint0.Rule.RuleModule;
|
|
14819
|
-
'jsx-no-leaked-render': eslint0.Rule.RuleModule;
|
|
14820
|
-
'jsx-no-literals': eslint0.Rule.RuleModule;
|
|
14821
|
-
'jsx-no-script-url': eslint0.Rule.RuleModule;
|
|
14822
|
-
'jsx-no-target-blank': eslint0.Rule.RuleModule;
|
|
14823
|
-
'jsx-no-useless-fragment': eslint0.Rule.RuleModule;
|
|
14824
|
-
'jsx-one-expression-per-line': eslint0.Rule.RuleModule;
|
|
14825
|
-
'jsx-no-undef': eslint0.Rule.RuleModule;
|
|
14826
|
-
'jsx-curly-brace-presence': eslint0.Rule.RuleModule;
|
|
14827
|
-
'jsx-pascal-case': eslint0.Rule.RuleModule;
|
|
14828
|
-
'jsx-fragments': eslint0.Rule.RuleModule;
|
|
14829
|
-
'jsx-props-no-multi-spaces': eslint0.Rule.RuleModule;
|
|
14830
|
-
'jsx-props-no-spreading': eslint0.Rule.RuleModule;
|
|
14831
|
-
'jsx-props-no-spread-multi': eslint0.Rule.RuleModule;
|
|
14832
|
-
'jsx-sort-default-props': eslint0.Rule.RuleModule;
|
|
14833
|
-
'jsx-sort-props': eslint0.Rule.RuleModule;
|
|
14834
|
-
'jsx-space-before-closing': eslint0.Rule.RuleModule;
|
|
14835
|
-
'jsx-tag-spacing': eslint0.Rule.RuleModule;
|
|
14836
|
-
'jsx-uses-react': eslint0.Rule.RuleModule;
|
|
14837
|
-
'jsx-uses-vars': eslint0.Rule.RuleModule;
|
|
14838
|
-
'jsx-wrap-multilines': eslint0.Rule.RuleModule;
|
|
14839
|
-
'no-invalid-html-attribute': eslint0.Rule.RuleModule;
|
|
14840
|
-
'no-access-state-in-setstate': eslint0.Rule.RuleModule;
|
|
14841
|
-
'no-adjacent-inline-elements': eslint0.Rule.RuleModule;
|
|
14842
|
-
'no-array-index-key': eslint0.Rule.RuleModule;
|
|
14843
|
-
'no-arrow-function-lifecycle': eslint0.Rule.RuleModule;
|
|
14844
|
-
'no-children-prop': eslint0.Rule.RuleModule;
|
|
14845
|
-
'no-danger': eslint0.Rule.RuleModule;
|
|
14846
|
-
'no-danger-with-children': eslint0.Rule.RuleModule;
|
|
14847
|
-
'no-deprecated': eslint0.Rule.RuleModule;
|
|
14848
|
-
'no-did-mount-set-state': eslint0.Rule.RuleModule;
|
|
14849
|
-
'no-did-update-set-state': eslint0.Rule.RuleModule;
|
|
14850
|
-
'no-direct-mutation-state': eslint0.Rule.RuleModule;
|
|
14851
|
-
'no-find-dom-node': eslint0.Rule.RuleModule;
|
|
14852
|
-
'no-is-mounted': eslint0.Rule.RuleModule;
|
|
14853
|
-
'no-multi-comp': eslint0.Rule.RuleModule;
|
|
14854
|
-
'no-namespace': eslint0.Rule.RuleModule;
|
|
14855
|
-
'no-set-state': eslint0.Rule.RuleModule;
|
|
14856
|
-
'no-string-refs': eslint0.Rule.RuleModule;
|
|
14857
|
-
'no-redundant-should-component-update': eslint0.Rule.RuleModule;
|
|
14858
|
-
'no-render-return-value': eslint0.Rule.RuleModule;
|
|
14859
|
-
'no-this-in-sfc': eslint0.Rule.RuleModule;
|
|
14860
|
-
'no-typos': eslint0.Rule.RuleModule;
|
|
14861
|
-
'no-unescaped-entities': eslint0.Rule.RuleModule;
|
|
14862
|
-
'no-unknown-property': eslint0.Rule.RuleModule;
|
|
14863
|
-
'no-unsafe': eslint0.Rule.RuleModule;
|
|
14864
|
-
'no-unstable-nested-components': eslint0.Rule.RuleModule;
|
|
14865
|
-
'no-unused-class-component-methods': eslint0.Rule.RuleModule;
|
|
14866
|
-
'no-unused-prop-types': eslint0.Rule.RuleModule;
|
|
14867
|
-
'no-unused-state': eslint0.Rule.RuleModule;
|
|
14868
|
-
'no-object-type-as-default-prop': eslint0.Rule.RuleModule;
|
|
14869
|
-
'no-will-update-set-state': eslint0.Rule.RuleModule;
|
|
14870
|
-
'prefer-es6-class': eslint0.Rule.RuleModule;
|
|
14871
|
-
'prefer-exact-props': eslint0.Rule.RuleModule;
|
|
14872
|
-
'prefer-read-only-props': eslint0.Rule.RuleModule;
|
|
14873
|
-
'prefer-stateless-function': eslint0.Rule.RuleModule;
|
|
14874
|
-
'prop-types': eslint0.Rule.RuleModule;
|
|
14875
|
-
'react-in-jsx-scope': eslint0.Rule.RuleModule;
|
|
14876
|
-
'require-default-props': eslint0.Rule.RuleModule;
|
|
14877
|
-
'require-optimization': eslint0.Rule.RuleModule;
|
|
14878
|
-
'require-render-return': eslint0.Rule.RuleModule;
|
|
14879
|
-
'self-closing-comp': eslint0.Rule.RuleModule;
|
|
14880
|
-
'sort-comp': eslint0.Rule.RuleModule;
|
|
14881
|
-
'sort-default-props': eslint0.Rule.RuleModule;
|
|
14882
|
-
'sort-prop-types': eslint0.Rule.RuleModule;
|
|
14883
|
-
'state-in-constructor': eslint0.Rule.RuleModule;
|
|
14884
|
-
'static-property-placement': eslint0.Rule.RuleModule;
|
|
14885
|
-
'style-prop-object': eslint0.Rule.RuleModule;
|
|
14886
|
-
'void-dom-elements-no-children': eslint0.Rule.RuleModule;
|
|
14887
|
-
}>;
|
|
14888
|
-
rules: {
|
|
14889
|
-
'boolean-prop-naming': eslint0.Rule.RuleModule;
|
|
14890
|
-
'button-has-type': eslint0.Rule.RuleModule;
|
|
14891
|
-
'checked-requires-onchange-or-readonly': eslint0.Rule.RuleModule;
|
|
14892
|
-
'default-props-match-prop-types': eslint0.Rule.RuleModule;
|
|
14893
|
-
'destructuring-assignment': eslint0.Rule.RuleModule;
|
|
14894
|
-
'display-name': eslint0.Rule.RuleModule;
|
|
14895
|
-
'forbid-component-props': eslint0.Rule.RuleModule;
|
|
14896
|
-
'forbid-dom-props': eslint0.Rule.RuleModule;
|
|
14897
|
-
'forbid-elements': eslint0.Rule.RuleModule;
|
|
14898
|
-
'forbid-foreign-prop-types': eslint0.Rule.RuleModule;
|
|
14899
|
-
'forbid-prop-types': eslint0.Rule.RuleModule;
|
|
14900
|
-
'forward-ref-uses-ref': eslint0.Rule.RuleModule;
|
|
14901
|
-
'function-component-definition': eslint0.Rule.RuleModule;
|
|
14902
|
-
'hook-use-state': eslint0.Rule.RuleModule;
|
|
14903
|
-
'iframe-missing-sandbox': eslint0.Rule.RuleModule;
|
|
14904
|
-
'jsx-boolean-value': eslint0.Rule.RuleModule;
|
|
14905
|
-
'jsx-child-element-spacing': eslint0.Rule.RuleModule;
|
|
14906
|
-
'jsx-closing-bracket-location': eslint0.Rule.RuleModule;
|
|
14907
|
-
'jsx-closing-tag-location': eslint0.Rule.RuleModule;
|
|
14908
|
-
'jsx-curly-spacing': eslint0.Rule.RuleModule;
|
|
14909
|
-
'jsx-curly-newline': eslint0.Rule.RuleModule;
|
|
14910
|
-
'jsx-equals-spacing': eslint0.Rule.RuleModule;
|
|
14911
|
-
'jsx-filename-extension': eslint0.Rule.RuleModule;
|
|
14912
|
-
'jsx-first-prop-new-line': eslint0.Rule.RuleModule;
|
|
14913
|
-
'jsx-handler-names': eslint0.Rule.RuleModule;
|
|
14914
|
-
'jsx-indent': eslint0.Rule.RuleModule;
|
|
14915
|
-
'jsx-indent-props': eslint0.Rule.RuleModule;
|
|
14916
|
-
'jsx-key': eslint0.Rule.RuleModule;
|
|
14917
|
-
'jsx-max-depth': eslint0.Rule.RuleModule;
|
|
14918
|
-
'jsx-max-props-per-line': eslint0.Rule.RuleModule;
|
|
14919
|
-
'jsx-newline': eslint0.Rule.RuleModule;
|
|
14920
|
-
'jsx-no-bind': eslint0.Rule.RuleModule;
|
|
14921
|
-
'jsx-no-comment-textnodes': eslint0.Rule.RuleModule;
|
|
14922
|
-
'jsx-no-constructed-context-values': eslint0.Rule.RuleModule;
|
|
14923
|
-
'jsx-no-duplicate-props': eslint0.Rule.RuleModule;
|
|
14924
|
-
'jsx-no-leaked-render': eslint0.Rule.RuleModule;
|
|
14925
|
-
'jsx-no-literals': eslint0.Rule.RuleModule;
|
|
14926
|
-
'jsx-no-script-url': eslint0.Rule.RuleModule;
|
|
14927
|
-
'jsx-no-target-blank': eslint0.Rule.RuleModule;
|
|
14928
|
-
'jsx-no-useless-fragment': eslint0.Rule.RuleModule;
|
|
14929
|
-
'jsx-one-expression-per-line': eslint0.Rule.RuleModule;
|
|
14930
|
-
'jsx-no-undef': eslint0.Rule.RuleModule;
|
|
14931
|
-
'jsx-curly-brace-presence': eslint0.Rule.RuleModule;
|
|
14932
|
-
'jsx-pascal-case': eslint0.Rule.RuleModule;
|
|
14933
|
-
'jsx-fragments': eslint0.Rule.RuleModule;
|
|
14934
|
-
'jsx-props-no-multi-spaces': eslint0.Rule.RuleModule;
|
|
14935
|
-
'jsx-props-no-spreading': eslint0.Rule.RuleModule;
|
|
14936
|
-
'jsx-props-no-spread-multi': eslint0.Rule.RuleModule;
|
|
14937
|
-
'jsx-sort-default-props': eslint0.Rule.RuleModule;
|
|
14938
|
-
'jsx-sort-props': eslint0.Rule.RuleModule;
|
|
14939
|
-
'jsx-space-before-closing': eslint0.Rule.RuleModule;
|
|
14940
|
-
'jsx-tag-spacing': eslint0.Rule.RuleModule;
|
|
14941
|
-
'jsx-uses-react': eslint0.Rule.RuleModule;
|
|
14942
|
-
'jsx-uses-vars': eslint0.Rule.RuleModule;
|
|
14943
|
-
'jsx-wrap-multilines': eslint0.Rule.RuleModule;
|
|
14944
|
-
'no-invalid-html-attribute': eslint0.Rule.RuleModule;
|
|
14945
|
-
'no-access-state-in-setstate': eslint0.Rule.RuleModule;
|
|
14946
|
-
'no-adjacent-inline-elements': eslint0.Rule.RuleModule;
|
|
14947
|
-
'no-array-index-key': eslint0.Rule.RuleModule;
|
|
14948
|
-
'no-arrow-function-lifecycle': eslint0.Rule.RuleModule;
|
|
14949
|
-
'no-children-prop': eslint0.Rule.RuleModule;
|
|
14950
|
-
'no-danger': eslint0.Rule.RuleModule;
|
|
14951
|
-
'no-danger-with-children': eslint0.Rule.RuleModule;
|
|
14952
|
-
'no-deprecated': eslint0.Rule.RuleModule;
|
|
14953
|
-
'no-did-mount-set-state': eslint0.Rule.RuleModule;
|
|
14954
|
-
'no-did-update-set-state': eslint0.Rule.RuleModule;
|
|
14955
|
-
'no-direct-mutation-state': eslint0.Rule.RuleModule;
|
|
14956
|
-
'no-find-dom-node': eslint0.Rule.RuleModule;
|
|
14957
|
-
'no-is-mounted': eslint0.Rule.RuleModule;
|
|
14958
|
-
'no-multi-comp': eslint0.Rule.RuleModule;
|
|
14959
|
-
'no-namespace': eslint0.Rule.RuleModule;
|
|
14960
|
-
'no-set-state': eslint0.Rule.RuleModule;
|
|
14961
|
-
'no-string-refs': eslint0.Rule.RuleModule;
|
|
14962
|
-
'no-redundant-should-component-update': eslint0.Rule.RuleModule;
|
|
14963
|
-
'no-render-return-value': eslint0.Rule.RuleModule;
|
|
14964
|
-
'no-this-in-sfc': eslint0.Rule.RuleModule;
|
|
14965
|
-
'no-typos': eslint0.Rule.RuleModule;
|
|
14966
|
-
'no-unescaped-entities': eslint0.Rule.RuleModule;
|
|
14967
|
-
'no-unknown-property': eslint0.Rule.RuleModule;
|
|
14968
|
-
'no-unsafe': eslint0.Rule.RuleModule;
|
|
14969
|
-
'no-unstable-nested-components': eslint0.Rule.RuleModule;
|
|
14970
|
-
'no-unused-class-component-methods': eslint0.Rule.RuleModule;
|
|
14971
|
-
'no-unused-prop-types': eslint0.Rule.RuleModule;
|
|
14972
|
-
'no-unused-state': eslint0.Rule.RuleModule;
|
|
14973
|
-
'no-object-type-as-default-prop': eslint0.Rule.RuleModule;
|
|
14974
|
-
'no-will-update-set-state': eslint0.Rule.RuleModule;
|
|
14975
|
-
'prefer-es6-class': eslint0.Rule.RuleModule;
|
|
14976
|
-
'prefer-exact-props': eslint0.Rule.RuleModule;
|
|
14977
|
-
'prefer-read-only-props': eslint0.Rule.RuleModule;
|
|
14978
|
-
'prefer-stateless-function': eslint0.Rule.RuleModule;
|
|
14979
|
-
'prop-types': eslint0.Rule.RuleModule;
|
|
14980
|
-
'react-in-jsx-scope': eslint0.Rule.RuleModule;
|
|
14981
|
-
'require-default-props': eslint0.Rule.RuleModule;
|
|
14982
|
-
'require-optimization': eslint0.Rule.RuleModule;
|
|
14983
|
-
'require-render-return': eslint0.Rule.RuleModule;
|
|
14984
|
-
'self-closing-comp': eslint0.Rule.RuleModule;
|
|
14985
|
-
'sort-comp': eslint0.Rule.RuleModule;
|
|
14986
|
-
'sort-default-props': eslint0.Rule.RuleModule;
|
|
14987
|
-
'sort-prop-types': eslint0.Rule.RuleModule;
|
|
14988
|
-
'state-in-constructor': eslint0.Rule.RuleModule;
|
|
14989
|
-
'static-property-placement': eslint0.Rule.RuleModule;
|
|
14990
|
-
'style-prop-object': eslint0.Rule.RuleModule;
|
|
14991
|
-
'void-dom-elements-no-children': eslint0.Rule.RuleModule;
|
|
14992
|
-
};
|
|
14993
|
-
configs: {
|
|
14994
|
-
recommended: {
|
|
14995
|
-
plugins: ["react"];
|
|
14996
|
-
parserOptions: {
|
|
14997
|
-
ecmaFeatures: {
|
|
14998
|
-
jsx: boolean;
|
|
14999
|
-
};
|
|
15000
|
-
};
|
|
15001
|
-
rules: {
|
|
15002
|
-
"react/display-name": 2;
|
|
15003
|
-
"react/jsx-key": 2;
|
|
15004
|
-
"react/jsx-no-comment-textnodes": 2;
|
|
15005
|
-
"react/jsx-no-duplicate-props": 2;
|
|
15006
|
-
"react/jsx-no-target-blank": 2;
|
|
15007
|
-
"react/jsx-no-undef": 2;
|
|
15008
|
-
"react/jsx-uses-react": 2;
|
|
15009
|
-
"react/jsx-uses-vars": 2;
|
|
15010
|
-
"react/no-children-prop": 2;
|
|
15011
|
-
"react/no-danger-with-children": 2;
|
|
15012
|
-
"react/no-deprecated": 2;
|
|
15013
|
-
"react/no-direct-mutation-state": 2;
|
|
15014
|
-
"react/no-find-dom-node": 2;
|
|
15015
|
-
"react/no-is-mounted": 2;
|
|
15016
|
-
"react/no-render-return-value": 2;
|
|
15017
|
-
"react/no-string-refs": 2;
|
|
15018
|
-
"react/no-unescaped-entities": 2;
|
|
15019
|
-
"react/no-unknown-property": 2;
|
|
15020
|
-
"react/no-unsafe": 0;
|
|
15021
|
-
"react/prop-types": 2;
|
|
15022
|
-
"react/react-in-jsx-scope": 2;
|
|
15023
|
-
"react/require-render-return": 2;
|
|
15024
|
-
};
|
|
15025
|
-
};
|
|
15026
|
-
all: {
|
|
15027
|
-
plugins: ["react"];
|
|
15028
|
-
parserOptions: {
|
|
15029
|
-
ecmaFeatures: {
|
|
15030
|
-
jsx: boolean;
|
|
15031
|
-
};
|
|
15032
|
-
};
|
|
15033
|
-
rules: Record<"boolean-prop-naming" | "button-has-type" | "checked-requires-onchange-or-readonly" | "default-props-match-prop-types" | "destructuring-assignment" | "display-name" | "forbid-component-props" | "forbid-dom-props" | "forbid-elements" | "forbid-foreign-prop-types" | "forbid-prop-types" | "prop-types" | "forward-ref-uses-ref" | "function-component-definition" | "hook-use-state" | "iframe-missing-sandbox" | "jsx-boolean-value" | "jsx-child-element-spacing" | "jsx-closing-bracket-location" | "jsx-closing-tag-location" | "jsx-curly-spacing" | "jsx-curly-newline" | "jsx-equals-spacing" | "jsx-filename-extension" | "jsx-first-prop-new-line" | "jsx-handler-names" | "jsx-indent" | "jsx-indent-props" | "jsx-key" | "jsx-max-depth" | "jsx-max-props-per-line" | "jsx-newline" | "jsx-no-bind" | "jsx-no-comment-textnodes" | "jsx-no-constructed-context-values" | "jsx-no-duplicate-props" | "jsx-no-leaked-render" | "jsx-no-literals" | "jsx-no-script-url" | "jsx-no-target-blank" | "jsx-no-useless-fragment" | "jsx-one-expression-per-line" | "jsx-no-undef" | "jsx-curly-brace-presence" | "jsx-pascal-case" | "jsx-fragments" | "jsx-props-no-multi-spaces" | "jsx-props-no-spreading" | "jsx-props-no-spread-multi" | "sort-default-props" | "jsx-sort-default-props" | "jsx-sort-props" | "jsx-tag-spacing" | "jsx-space-before-closing" | "jsx-uses-react" | "jsx-uses-vars" | "jsx-wrap-multilines" | "no-invalid-html-attribute" | "no-access-state-in-setstate" | "no-adjacent-inline-elements" | "no-array-index-key" | "no-arrow-function-lifecycle" | "no-children-prop" | "no-danger" | "no-danger-with-children" | "no-deprecated" | "no-direct-mutation-state" | "no-find-dom-node" | "no-is-mounted" | "no-multi-comp" | "no-namespace" | "no-set-state" | "no-string-refs" | "no-redundant-should-component-update" | "no-render-return-value" | "no-this-in-sfc" | "no-typos" | "no-unescaped-entities" | "no-unknown-property" | "no-unsafe" | "no-unstable-nested-components" | "no-unused-class-component-methods" | "no-unused-prop-types" | "no-unused-state" | "no-object-type-as-default-prop" | "prefer-es6-class" | "prefer-exact-props" | "prefer-read-only-props" | "prefer-stateless-function" | "react-in-jsx-scope" | "require-default-props" | "require-optimization" | "require-render-return" | "self-closing-comp" | "sort-comp" | "sort-prop-types" | "state-in-constructor" | "static-property-placement" | "style-prop-object" | "void-dom-elements-no-children" | "no-did-mount-set-state" | "no-did-update-set-state" | "no-will-update-set-state", 2 | "error">;
|
|
15034
|
-
};
|
|
15035
|
-
'jsx-runtime': {
|
|
15036
|
-
plugins: ["react"];
|
|
15037
|
-
parserOptions: {
|
|
15038
|
-
ecmaFeatures: {
|
|
15039
|
-
jsx: boolean;
|
|
15040
|
-
};
|
|
15041
|
-
jsxPragma: any;
|
|
15042
|
-
};
|
|
15043
|
-
rules: {
|
|
15044
|
-
"react/react-in-jsx-scope": 0;
|
|
15045
|
-
"react/jsx-uses-react": 0;
|
|
15046
|
-
};
|
|
15047
|
-
};
|
|
15048
|
-
flat: Record<string, eslint_plugin_react0.ReactFlatConfig>;
|
|
15049
|
-
} & {
|
|
15050
|
-
flat: Record<string, eslint_plugin_react0.ReactFlatConfig>;
|
|
15051
|
-
};
|
|
15052
|
-
};
|
|
15053
|
-
pluginReactHooks: typeof eslint_plugin_react_hooks0;
|
|
15054
|
-
pluginReactRefresh: {
|
|
15055
|
-
rules: Record<string, any>;
|
|
15056
|
-
configs: {
|
|
15057
|
-
recommended: {
|
|
15058
|
-
plugins: {
|
|
15059
|
-
"react-refresh": {
|
|
15060
|
-
rules: Record<string, any>;
|
|
15061
|
-
};
|
|
15062
|
-
};
|
|
15063
|
-
rules: Record<string, any>;
|
|
15064
|
-
};
|
|
15065
|
-
vite: {
|
|
15066
|
-
plugins: {
|
|
15067
|
-
"react-refresh": {
|
|
15068
|
-
rules: Record<string, any>;
|
|
15069
|
-
};
|
|
15070
|
-
};
|
|
15071
|
-
rules: Record<string, any>;
|
|
15072
|
-
};
|
|
15073
|
-
next: {
|
|
15074
|
-
plugins: {
|
|
15075
|
-
"react-refresh": {
|
|
15076
|
-
rules: Record<string, any>;
|
|
15077
|
-
};
|
|
15078
|
-
};
|
|
15079
|
-
rules: Record<string, any>;
|
|
15080
|
-
};
|
|
15081
|
-
};
|
|
15082
|
-
};
|
|
15083
|
-
}>;
|
|
15084
14840
|
declare function importParserJsonc(): Promise<{
|
|
15085
14841
|
parserJsonc: typeof jsonc_eslint_parser0;
|
|
15086
14842
|
}>;
|
|
@@ -16017,11 +15773,6 @@ declare function importYmlLibs(): Promise<{
|
|
|
16017
15773
|
declare function importPluginMarkdown(): Promise<{
|
|
16018
15774
|
pluginMarkdown: typeof _eslint_markdown0.default;
|
|
16019
15775
|
}>;
|
|
16020
|
-
declare function importPluginJsdoc(): Promise<{
|
|
16021
|
-
pluginJsdoc: eslint0.ESLint.Plugin & {
|
|
16022
|
-
configs: Record<`flat/${eslint_plugin_jsdoc0.ConfigGroups}${eslint_plugin_jsdoc0.ConfigVariants}${eslint_plugin_jsdoc0.ErrorLevelVariants}`, eslint0.Linter.Config> & Record<"examples" | "default-expressions" | "examples-and-default-expressions", eslint0.Linter.Config[]> & Record<"flat/recommended-mixed", eslint0.Linter.Config[]>;
|
|
16023
|
-
};
|
|
16024
|
-
}>;
|
|
16025
15776
|
declare function importPluginTsdoc(): Promise<{
|
|
16026
15777
|
pluginTsdoc: {
|
|
16027
15778
|
rules: {
|
|
@@ -16109,4 +15860,4 @@ declare function changeRuleEntrySeverity(ruleConfig: Linter.RuleEntry<any>, leve
|
|
|
16109
15860
|
declare function error2warn<T extends Config>(configs: T[]): T[];
|
|
16110
15861
|
declare function warn2error<T extends Config>(configs: T[]): T[];
|
|
16111
15862
|
//#endregion
|
|
16112
|
-
export { Awaitable, Config, EslintConfigFn, LanguageOptions, OptionsCommon, OptionsComponentExts, OptionsConfig, OptionsFiles, OptionsHasTypeScript, OptionsIsInEditor, OptionsOverrides, OptionsPrefix, OptionsReact, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, RenamePefix, RuleName, SLOW_RULES, StylisticConfig, TailwindEslintSettings, TailwindOptions, TypedFlatConfigItemWithId, UnPromise, VERSION, changeRuleEntrySeverity, combine, combineAsync, jsse as default, defineConfig, error2warn, globs_d_exports as globs, importJsoncLibs, importParserJsonc,
|
|
15863
|
+
export { Awaitable, Config, EslintConfigFn, LanguageOptions, OptionsCommon, OptionsComponentExts, OptionsConfig, OptionsFiles, OptionsHasTypeScript, OptionsIsInEditor, OptionsOverrides, OptionsPrefix, OptionsReact, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, RenamePefix, RuleName, SLOW_RULES, StylisticConfig, TailwindEslintSettings, TailwindOptions, TypedFlatConfigItemWithId, UnPromise, VERSION, changeRuleEntrySeverity, combine, combineAsync, jsse as default, jsse, defineConfig, error2warn, globs_d_exports as globs, importJsoncLibs, importParserJsonc, importPluginJsonc, importPluginMarkdown, importPluginReact, importPluginReactRefresh, importPluginStylistic, importPluginTsdoc, importYmlLibs, interopDefault, isCI, isInEditor, jsseReact, parserPlain, parserTs, pluginAntfu, pluginDeMorgan, pluginEslintComments, pluginImportLite, pluginN, pluginPerfectionist, pluginPnpm, pluginTs, pluginUnicorn, pluginUnusedImports, renameRules, turnOffRules, uniqueStrings, warn2error };
|