@jsse/eslint-config 0.4.31 → 0.5.1
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 +16 -0
- package/dist/{chunk-B7RtqpM4.js → chunk-CdeBBKNj.js} +3 -3
- package/dist/cli.js +1 -2
- package/dist/index.d.ts +434 -1072
- package/dist/index.js +183 -293
- package/dist/{version-CMawUObI.js → version-CQhcdCbl.js} +1 -1
- package/package.json +22 -21
package/dist/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ import * as _stylistic_eslint_plugin0 from "@stylistic/eslint-plugin";
|
|
|
15
15
|
import { FlatGitignoreOptions } from "eslint-config-flat-gitignore";
|
|
16
16
|
import * as eslint_plugin_react0 from "eslint-plugin-react";
|
|
17
17
|
import * as jsonc_eslint_parser0 from "jsonc-eslint-parser";
|
|
18
|
-
import * as
|
|
18
|
+
import * as eslint from "eslint";
|
|
19
19
|
import { Linter, Rule } from "eslint";
|
|
20
20
|
import * as eslint_plugin_jsonc_meta0 from "eslint-plugin-jsonc/meta";
|
|
21
21
|
import * as eslint_plugin_jsonc_types0 from "eslint-plugin-jsonc/types";
|
|
@@ -2952,6 +2952,7 @@ type AntfuConsistentListNewline = [] | [{
|
|
|
2952
2952
|
ExportNamedDeclaration?: boolean;
|
|
2953
2953
|
FunctionDeclaration?: boolean;
|
|
2954
2954
|
FunctionExpression?: boolean;
|
|
2955
|
+
IfStatement?: boolean;
|
|
2955
2956
|
ImportDeclaration?: boolean;
|
|
2956
2957
|
JSONArrayExpression?: boolean;
|
|
2957
2958
|
JSONObjectExpression?: boolean;
|
|
@@ -3123,7 +3124,7 @@ type ImportPreferDefaultExport$1 = [] | [{
|
|
|
3123
3124
|
}];
|
|
3124
3125
|
//#endregion
|
|
3125
3126
|
//#region src/generated/dts/javascript.d.ts
|
|
3126
|
-
interface JavascriptRuleOptions {
|
|
3127
|
+
interface JavascriptRuleOptions$1 {
|
|
3127
3128
|
/**
|
|
3128
3129
|
* Disallow unused variables
|
|
3129
3130
|
* @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-imports.md
|
|
@@ -5276,7 +5277,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
5276
5277
|
pattern: string;
|
|
5277
5278
|
flags?: string;
|
|
5278
5279
|
} | string);
|
|
5279
|
-
selector?: "literal"
|
|
5280
|
+
selector?: "literal";
|
|
5280
5281
|
}, ...{
|
|
5281
5282
|
elementNamePattern?: ({
|
|
5282
5283
|
pattern: string;
|
|
@@ -5285,7 +5286,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
5285
5286
|
pattern: string;
|
|
5286
5287
|
flags?: string;
|
|
5287
5288
|
} | string);
|
|
5288
|
-
selector?: "literal"
|
|
5289
|
+
selector?: "literal";
|
|
5289
5290
|
}[]];
|
|
5290
5291
|
} | {
|
|
5291
5292
|
fallbackSort?: {
|
|
@@ -5303,7 +5304,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
5303
5304
|
pattern: string;
|
|
5304
5305
|
flags?: string;
|
|
5305
5306
|
} | string);
|
|
5306
|
-
selector?: "literal"
|
|
5307
|
+
selector?: "literal";
|
|
5307
5308
|
})[];
|
|
5308
5309
|
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
5309
5310
|
groups?: (string | [string, ...string[]] | {
|
|
@@ -5470,6 +5471,7 @@ type PerfectionistSortClasses = [] | [{
|
|
|
5470
5471
|
order?: "asc" | "desc";
|
|
5471
5472
|
})[];
|
|
5472
5473
|
newlinesBetween?: "ignore" | number;
|
|
5474
|
+
useExperimentalDependencyDetection?: boolean;
|
|
5473
5475
|
ignoreCallbackDependenciesPatterns?: ({
|
|
5474
5476
|
pattern: string;
|
|
5475
5477
|
flags?: string;
|
|
@@ -7356,7 +7358,7 @@ type PerfectionistSortSets = {
|
|
|
7356
7358
|
pattern: string;
|
|
7357
7359
|
flags?: string;
|
|
7358
7360
|
} | string);
|
|
7359
|
-
selector?: "literal"
|
|
7361
|
+
selector?: "literal";
|
|
7360
7362
|
}, ...{
|
|
7361
7363
|
elementNamePattern?: ({
|
|
7362
7364
|
pattern: string;
|
|
@@ -7365,7 +7367,7 @@ type PerfectionistSortSets = {
|
|
|
7365
7367
|
pattern: string;
|
|
7366
7368
|
flags?: string;
|
|
7367
7369
|
} | string);
|
|
7368
|
-
selector?: "literal"
|
|
7370
|
+
selector?: "literal";
|
|
7369
7371
|
}[]];
|
|
7370
7372
|
} | {
|
|
7371
7373
|
fallbackSort?: {
|
|
@@ -7383,7 +7385,7 @@ type PerfectionistSortSets = {
|
|
|
7383
7385
|
pattern: string;
|
|
7384
7386
|
flags?: string;
|
|
7385
7387
|
} | string);
|
|
7386
|
-
selector?: "literal"
|
|
7388
|
+
selector?: "literal";
|
|
7387
7389
|
})[];
|
|
7388
7390
|
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
7389
7391
|
groups?: (string | [string, ...string[]] | {
|
|
@@ -9134,6 +9136,11 @@ interface StylisticRuleOptions {
|
|
|
9134
9136
|
* @see https://eslint.style/rules/eol-last
|
|
9135
9137
|
*/
|
|
9136
9138
|
"@stylistic/eol-last"?: Linter.RuleEntry<StylisticEolLast>;
|
|
9139
|
+
/**
|
|
9140
|
+
* Enforce consistent line break styles for JSX props
|
|
9141
|
+
* @see https://eslint.style/rules/jsx-props-style
|
|
9142
|
+
*/
|
|
9143
|
+
"@stylistic/exp-jsx-props-style"?: Linter.RuleEntry<StylisticExpJsxPropsStyle>;
|
|
9137
9144
|
/**
|
|
9138
9145
|
* Enforce consistent spacing and line break styles inside brackets.
|
|
9139
9146
|
* @see https://eslint.style/rules/list-style
|
|
@@ -9716,15 +9723,24 @@ type StylisticCurlyNewline = [] | [("always" | "never") | {
|
|
|
9716
9723
|
consistent?: boolean;
|
|
9717
9724
|
}]; // ----- @stylistic/dot-location -----
|
|
9718
9725
|
type StylisticDotLocation = [] | ["object" | "property"]; // ----- @stylistic/eol-last -----
|
|
9719
|
-
type StylisticEolLast = [] | ["always" | "never" | "unix" | "windows"]; // ----- @stylistic/exp-
|
|
9726
|
+
type StylisticEolLast = [] | ["always" | "never" | "unix" | "windows"]; // ----- @stylistic/exp-jsx-props-style -----
|
|
9727
|
+
type StylisticExpJsxPropsStyle = [] | [{
|
|
9728
|
+
singleLine?: {
|
|
9729
|
+
maxItems?: number;
|
|
9730
|
+
};
|
|
9731
|
+
multiLine?: {
|
|
9732
|
+
minItems?: number;
|
|
9733
|
+
maxItemsPerLine?: number;
|
|
9734
|
+
};
|
|
9735
|
+
}]; // ----- @stylistic/exp-list-style -----
|
|
9720
9736
|
type StylisticExpListStyle = [] | [{
|
|
9721
9737
|
singleLine?: _StylisticExpListStyle_SingleLineConfig;
|
|
9722
9738
|
multiLine?: _StylisticExpListStyle_MultiLineConfig;
|
|
9723
9739
|
overrides?: {
|
|
9740
|
+
"()"?: _StylisticExpListStyle_BaseConfig;
|
|
9724
9741
|
"[]"?: _StylisticExpListStyle_BaseConfig;
|
|
9725
9742
|
"{}"?: _StylisticExpListStyle_BaseConfig;
|
|
9726
9743
|
"<>"?: _StylisticExpListStyle_BaseConfig;
|
|
9727
|
-
"()"?: _StylisticExpListStyle_BaseConfig;
|
|
9728
9744
|
ArrayExpression?: _StylisticExpListStyle_BaseConfig;
|
|
9729
9745
|
ArrayPattern?: _StylisticExpListStyle_BaseConfig;
|
|
9730
9746
|
ArrowFunctionExpression?: _StylisticExpListStyle_BaseConfig;
|
|
@@ -9732,21 +9748,22 @@ type StylisticExpListStyle = [] | [{
|
|
|
9732
9748
|
ExportNamedDeclaration?: _StylisticExpListStyle_BaseConfig;
|
|
9733
9749
|
FunctionDeclaration?: _StylisticExpListStyle_BaseConfig;
|
|
9734
9750
|
FunctionExpression?: _StylisticExpListStyle_BaseConfig;
|
|
9735
|
-
|
|
9751
|
+
IfStatement?: _StylisticExpListStyle_BaseConfig;
|
|
9736
9752
|
ImportAttributes?: _StylisticExpListStyle_BaseConfig;
|
|
9753
|
+
ImportDeclaration?: _StylisticExpListStyle_BaseConfig;
|
|
9754
|
+
JSONArrayExpression?: _StylisticExpListStyle_BaseConfig;
|
|
9755
|
+
JSONObjectExpression?: _StylisticExpListStyle_BaseConfig;
|
|
9737
9756
|
NewExpression?: _StylisticExpListStyle_BaseConfig;
|
|
9738
9757
|
ObjectExpression?: _StylisticExpListStyle_BaseConfig;
|
|
9739
9758
|
ObjectPattern?: _StylisticExpListStyle_BaseConfig;
|
|
9740
9759
|
TSDeclareFunction?: _StylisticExpListStyle_BaseConfig;
|
|
9760
|
+
TSEnumBody?: _StylisticExpListStyle_BaseConfig;
|
|
9741
9761
|
TSFunctionType?: _StylisticExpListStyle_BaseConfig;
|
|
9742
9762
|
TSInterfaceBody?: _StylisticExpListStyle_BaseConfig;
|
|
9743
|
-
TSEnumBody?: _StylisticExpListStyle_BaseConfig;
|
|
9744
9763
|
TSTupleType?: _StylisticExpListStyle_BaseConfig;
|
|
9745
9764
|
TSTypeLiteral?: _StylisticExpListStyle_BaseConfig;
|
|
9746
9765
|
TSTypeParameterDeclaration?: _StylisticExpListStyle_BaseConfig;
|
|
9747
9766
|
TSTypeParameterInstantiation?: _StylisticExpListStyle_BaseConfig;
|
|
9748
|
-
JSONArrayExpression?: _StylisticExpListStyle_BaseConfig;
|
|
9749
|
-
JSONObjectExpression?: _StylisticExpListStyle_BaseConfig;
|
|
9750
9767
|
};
|
|
9751
9768
|
}];
|
|
9752
9769
|
interface _StylisticExpListStyle_SingleLineConfig {
|
|
@@ -11410,7 +11427,7 @@ interface TypescriptRuleOptions {
|
|
|
11410
11427
|
* Disallow default values that will never be used
|
|
11411
11428
|
* @see https://typescript-eslint.io/rules/no-useless-default-assignment
|
|
11412
11429
|
*/
|
|
11413
|
-
"@typescript-eslint/no-useless-default-assignment"?: Linter.RuleEntry<
|
|
11430
|
+
"@typescript-eslint/no-useless-default-assignment"?: Linter.RuleEntry<TypescriptEslintNoUselessDefaultAssignment>;
|
|
11414
11431
|
/**
|
|
11415
11432
|
* Disallow empty exports that don't change anything in a module file
|
|
11416
11433
|
* @see https://typescript-eslint.io/rules/no-useless-empty-export
|
|
@@ -12351,6 +12368,9 @@ type TypescriptEslintNoUseBeforeDefine = [] | ["nofunc" | {
|
|
|
12351
12368
|
ignoreTypeReferences?: boolean;
|
|
12352
12369
|
typedefs?: boolean;
|
|
12353
12370
|
variables?: boolean;
|
|
12371
|
+
}]; // ----- @typescript-eslint/no-useless-default-assignment -----
|
|
12372
|
+
type TypescriptEslintNoUselessDefaultAssignment = [] | [{
|
|
12373
|
+
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
|
|
12354
12374
|
}]; // ----- @typescript-eslint/no-var-requires -----
|
|
12355
12375
|
type TypescriptEslintNoVarRequires = [] | [{
|
|
12356
12376
|
allow?: string[];
|
|
@@ -12566,725 +12586,730 @@ type ImportPreferDefaultExport = [] | [{
|
|
|
12566
12586
|
interface UnicornRuleOptions {
|
|
12567
12587
|
/**
|
|
12568
12588
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
12569
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12589
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/better-regex.md
|
|
12570
12590
|
*/
|
|
12571
12591
|
"unicorn/better-regex"?: Linter.RuleEntry<UnicornBetterRegex>;
|
|
12572
12592
|
/**
|
|
12573
12593
|
* Enforce a specific parameter name in catch clauses.
|
|
12574
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12594
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/catch-error-name.md
|
|
12575
12595
|
*/
|
|
12576
12596
|
"unicorn/catch-error-name"?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
12577
12597
|
/**
|
|
12578
12598
|
* Enforce consistent assertion style with `node:assert`.
|
|
12579
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12599
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-assert.md
|
|
12580
12600
|
*/
|
|
12581
12601
|
"unicorn/consistent-assert"?: Linter.RuleEntry<[]>;
|
|
12582
12602
|
/**
|
|
12583
12603
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
12584
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12604
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-date-clone.md
|
|
12585
12605
|
*/
|
|
12586
12606
|
"unicorn/consistent-date-clone"?: Linter.RuleEntry<[]>;
|
|
12587
12607
|
/**
|
|
12588
12608
|
* Use destructured variables over properties.
|
|
12589
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12609
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-destructuring.md
|
|
12590
12610
|
*/
|
|
12591
12611
|
"unicorn/consistent-destructuring"?: Linter.RuleEntry<[]>;
|
|
12592
12612
|
/**
|
|
12593
12613
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
12594
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12614
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-empty-array-spread.md
|
|
12595
12615
|
*/
|
|
12596
12616
|
"unicorn/consistent-empty-array-spread"?: Linter.RuleEntry<[]>;
|
|
12597
12617
|
/**
|
|
12598
12618
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
12599
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12619
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-existence-index-check.md
|
|
12600
12620
|
*/
|
|
12601
12621
|
"unicorn/consistent-existence-index-check"?: Linter.RuleEntry<[]>;
|
|
12602
12622
|
/**
|
|
12603
12623
|
* Move function definitions to the highest possible scope.
|
|
12604
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12624
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-function-scoping.md
|
|
12605
12625
|
*/
|
|
12606
12626
|
"unicorn/consistent-function-scoping"?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
12607
12627
|
/**
|
|
12608
12628
|
* Enforce correct `Error` subclassing.
|
|
12609
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12629
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/custom-error-definition.md
|
|
12610
12630
|
*/
|
|
12611
12631
|
"unicorn/custom-error-definition"?: Linter.RuleEntry<[]>;
|
|
12612
12632
|
/**
|
|
12613
12633
|
* Enforce no spaces between braces.
|
|
12614
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12634
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/empty-brace-spaces.md
|
|
12615
12635
|
*/
|
|
12616
12636
|
"unicorn/empty-brace-spaces"?: Linter.RuleEntry<[]>;
|
|
12617
12637
|
/**
|
|
12618
12638
|
* Enforce passing a `message` value when creating a built-in error.
|
|
12619
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12639
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/error-message.md
|
|
12620
12640
|
*/
|
|
12621
12641
|
"unicorn/error-message"?: Linter.RuleEntry<[]>;
|
|
12622
12642
|
/**
|
|
12623
12643
|
* Require escape sequences to use uppercase or lowercase values.
|
|
12624
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12644
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/escape-case.md
|
|
12625
12645
|
*/
|
|
12626
12646
|
"unicorn/escape-case"?: Linter.RuleEntry<UnicornEscapeCase>;
|
|
12627
12647
|
/**
|
|
12628
12648
|
* Add expiration conditions to TODO comments.
|
|
12629
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12649
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/expiring-todo-comments.md
|
|
12630
12650
|
*/
|
|
12631
12651
|
"unicorn/expiring-todo-comments"?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
12632
12652
|
/**
|
|
12633
12653
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
12634
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12654
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/explicit-length-check.md
|
|
12635
12655
|
*/
|
|
12636
12656
|
"unicorn/explicit-length-check"?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
12637
12657
|
/**
|
|
12638
12658
|
* Enforce a case style for filenames.
|
|
12639
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12659
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/filename-case.md
|
|
12640
12660
|
*/
|
|
12641
12661
|
"unicorn/filename-case"?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
12642
12662
|
/**
|
|
12643
12663
|
* Enforce specific import styles per module.
|
|
12644
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12664
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/import-style.md
|
|
12645
12665
|
*/
|
|
12646
12666
|
"unicorn/import-style"?: Linter.RuleEntry<UnicornImportStyle>;
|
|
12667
|
+
/**
|
|
12668
|
+
* Prevent usage of variables from outside the scope of isolated functions.
|
|
12669
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/isolated-functions.md
|
|
12670
|
+
*/
|
|
12671
|
+
"unicorn/isolated-functions"?: Linter.RuleEntry<UnicornIsolatedFunctions>;
|
|
12647
12672
|
/**
|
|
12648
12673
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
12649
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12674
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/new-for-builtins.md
|
|
12650
12675
|
*/
|
|
12651
12676
|
"unicorn/new-for-builtins"?: Linter.RuleEntry<[]>;
|
|
12652
12677
|
/**
|
|
12653
12678
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
12654
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12679
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
12655
12680
|
*/
|
|
12656
12681
|
"unicorn/no-abusive-eslint-disable"?: Linter.RuleEntry<[]>;
|
|
12657
12682
|
/**
|
|
12658
12683
|
* Disallow recursive access to `this` within getters and setters.
|
|
12659
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12684
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-accessor-recursion.md
|
|
12660
12685
|
*/
|
|
12661
12686
|
"unicorn/no-accessor-recursion"?: Linter.RuleEntry<[]>;
|
|
12662
12687
|
/**
|
|
12663
12688
|
* Disallow anonymous functions and classes as the default export.
|
|
12664
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12689
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-anonymous-default-export.md
|
|
12665
12690
|
*/
|
|
12666
12691
|
"unicorn/no-anonymous-default-export"?: Linter.RuleEntry<[]>;
|
|
12667
12692
|
/**
|
|
12668
12693
|
* Prevent passing a function reference directly to iterator methods.
|
|
12669
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12694
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-callback-reference.md
|
|
12670
12695
|
*/
|
|
12671
12696
|
"unicorn/no-array-callback-reference"?: Linter.RuleEntry<[]>;
|
|
12672
12697
|
/**
|
|
12673
12698
|
* Prefer `for…of` over the `forEach` method.
|
|
12674
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12699
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-for-each.md
|
|
12675
12700
|
*/
|
|
12676
12701
|
"unicorn/no-array-for-each"?: Linter.RuleEntry<[]>;
|
|
12677
12702
|
/**
|
|
12678
12703
|
* Disallow using the `this` argument in array methods.
|
|
12679
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12704
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-method-this-argument.md
|
|
12680
12705
|
*/
|
|
12681
12706
|
"unicorn/no-array-method-this-argument"?: Linter.RuleEntry<[]>;
|
|
12682
12707
|
/**
|
|
12683
12708
|
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
12684
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12709
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
|
|
12685
12710
|
* @deprecated
|
|
12686
12711
|
*/
|
|
12687
12712
|
"unicorn/no-array-push-push"?: Linter.RuleEntry<[]>;
|
|
12688
12713
|
/**
|
|
12689
12714
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
12690
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12715
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-reduce.md
|
|
12691
12716
|
*/
|
|
12692
12717
|
"unicorn/no-array-reduce"?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
12693
12718
|
/**
|
|
12694
12719
|
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
12695
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12720
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-reverse.md
|
|
12696
12721
|
*/
|
|
12697
12722
|
"unicorn/no-array-reverse"?: Linter.RuleEntry<UnicornNoArrayReverse>;
|
|
12698
12723
|
/**
|
|
12699
12724
|
* Prefer `Array#toSorted()` over `Array#sort()`.
|
|
12700
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12725
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-sort.md
|
|
12701
12726
|
*/
|
|
12702
12727
|
"unicorn/no-array-sort"?: Linter.RuleEntry<UnicornNoArraySort>;
|
|
12703
12728
|
/**
|
|
12704
12729
|
* Disallow member access from await expression.
|
|
12705
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12730
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-await-expression-member.md
|
|
12706
12731
|
*/
|
|
12707
12732
|
"unicorn/no-await-expression-member"?: Linter.RuleEntry<[]>;
|
|
12708
12733
|
/**
|
|
12709
12734
|
* Disallow using `await` in `Promise` method parameters.
|
|
12710
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12735
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-await-in-promise-methods.md
|
|
12711
12736
|
*/
|
|
12712
12737
|
"unicorn/no-await-in-promise-methods"?: Linter.RuleEntry<[]>;
|
|
12713
12738
|
/**
|
|
12714
12739
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
12715
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12740
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-console-spaces.md
|
|
12716
12741
|
*/
|
|
12717
12742
|
"unicorn/no-console-spaces"?: Linter.RuleEntry<[]>;
|
|
12718
12743
|
/**
|
|
12719
12744
|
* Do not use `document.cookie` directly.
|
|
12720
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12745
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-document-cookie.md
|
|
12721
12746
|
*/
|
|
12722
12747
|
"unicorn/no-document-cookie"?: Linter.RuleEntry<[]>;
|
|
12723
12748
|
/**
|
|
12724
12749
|
* Disallow empty files.
|
|
12725
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12750
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-empty-file.md
|
|
12726
12751
|
*/
|
|
12727
12752
|
"unicorn/no-empty-file"?: Linter.RuleEntry<[]>;
|
|
12728
12753
|
/**
|
|
12729
12754
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
12730
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12755
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-for-loop.md
|
|
12731
12756
|
*/
|
|
12732
12757
|
"unicorn/no-for-loop"?: Linter.RuleEntry<[]>;
|
|
12733
12758
|
/**
|
|
12734
12759
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
12735
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12760
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-hex-escape.md
|
|
12736
12761
|
*/
|
|
12737
12762
|
"unicorn/no-hex-escape"?: Linter.RuleEntry<[]>;
|
|
12738
12763
|
/**
|
|
12739
12764
|
* Disallow immediate mutation after variable assignment.
|
|
12740
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12765
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-immediate-mutation.md
|
|
12741
12766
|
*/
|
|
12742
12767
|
"unicorn/no-immediate-mutation"?: Linter.RuleEntry<[]>;
|
|
12743
12768
|
/**
|
|
12744
12769
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
12745
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12770
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
|
|
12746
12771
|
* @deprecated
|
|
12747
12772
|
*/
|
|
12748
12773
|
"unicorn/no-instanceof-array"?: Linter.RuleEntry<[]>;
|
|
12749
12774
|
/**
|
|
12750
12775
|
* Disallow `instanceof` with built-in objects
|
|
12751
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12776
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-instanceof-builtins.md
|
|
12752
12777
|
*/
|
|
12753
12778
|
"unicorn/no-instanceof-builtins"?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
|
|
12754
12779
|
/**
|
|
12755
12780
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
12756
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12781
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-invalid-fetch-options.md
|
|
12757
12782
|
*/
|
|
12758
12783
|
"unicorn/no-invalid-fetch-options"?: Linter.RuleEntry<[]>;
|
|
12759
12784
|
/**
|
|
12760
12785
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
12761
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12786
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
12762
12787
|
*/
|
|
12763
12788
|
"unicorn/no-invalid-remove-event-listener"?: Linter.RuleEntry<[]>;
|
|
12764
12789
|
/**
|
|
12765
12790
|
* Disallow identifiers starting with `new` or `class`.
|
|
12766
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12791
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-keyword-prefix.md
|
|
12767
12792
|
*/
|
|
12768
12793
|
"unicorn/no-keyword-prefix"?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
12769
12794
|
/**
|
|
12770
12795
|
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
12771
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12796
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
|
|
12772
12797
|
* @deprecated
|
|
12773
12798
|
*/
|
|
12774
12799
|
"unicorn/no-length-as-slice-end"?: Linter.RuleEntry<[]>;
|
|
12775
12800
|
/**
|
|
12776
12801
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
12777
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12802
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-lonely-if.md
|
|
12778
12803
|
*/
|
|
12779
12804
|
"unicorn/no-lonely-if"?: Linter.RuleEntry<[]>;
|
|
12780
12805
|
/**
|
|
12781
12806
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
12782
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12807
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
12783
12808
|
*/
|
|
12784
12809
|
"unicorn/no-magic-array-flat-depth"?: Linter.RuleEntry<[]>;
|
|
12785
12810
|
/**
|
|
12786
12811
|
* Disallow named usage of default import and export.
|
|
12787
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12812
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-named-default.md
|
|
12788
12813
|
*/
|
|
12789
12814
|
"unicorn/no-named-default"?: Linter.RuleEntry<[]>;
|
|
12790
12815
|
/**
|
|
12791
12816
|
* Disallow negated conditions.
|
|
12792
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12817
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-negated-condition.md
|
|
12793
12818
|
*/
|
|
12794
12819
|
"unicorn/no-negated-condition"?: Linter.RuleEntry<[]>;
|
|
12795
12820
|
/**
|
|
12796
12821
|
* Disallow negated expression in equality check.
|
|
12797
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12822
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-negation-in-equality-check.md
|
|
12798
12823
|
*/
|
|
12799
12824
|
"unicorn/no-negation-in-equality-check"?: Linter.RuleEntry<[]>;
|
|
12800
12825
|
/**
|
|
12801
12826
|
* Disallow nested ternary expressions.
|
|
12802
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12827
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-nested-ternary.md
|
|
12803
12828
|
*/
|
|
12804
12829
|
"unicorn/no-nested-ternary"?: Linter.RuleEntry<[]>;
|
|
12805
12830
|
/**
|
|
12806
12831
|
* Disallow `new Array()`.
|
|
12807
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12832
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-new-array.md
|
|
12808
12833
|
*/
|
|
12809
12834
|
"unicorn/no-new-array"?: Linter.RuleEntry<[]>;
|
|
12810
12835
|
/**
|
|
12811
12836
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
12812
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12837
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-new-buffer.md
|
|
12813
12838
|
*/
|
|
12814
12839
|
"unicorn/no-new-buffer"?: Linter.RuleEntry<[]>;
|
|
12815
12840
|
/**
|
|
12816
12841
|
* Disallow the use of the `null` literal.
|
|
12817
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12842
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-null.md
|
|
12818
12843
|
*/
|
|
12819
12844
|
"unicorn/no-null"?: Linter.RuleEntry<UnicornNoNull>;
|
|
12820
12845
|
/**
|
|
12821
12846
|
* Disallow the use of objects as default parameters.
|
|
12822
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12847
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-object-as-default-parameter.md
|
|
12823
12848
|
*/
|
|
12824
12849
|
"unicorn/no-object-as-default-parameter"?: Linter.RuleEntry<[]>;
|
|
12825
12850
|
/**
|
|
12826
12851
|
* Disallow `process.exit()`.
|
|
12827
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12852
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-process-exit.md
|
|
12828
12853
|
*/
|
|
12829
12854
|
"unicorn/no-process-exit"?: Linter.RuleEntry<[]>;
|
|
12830
12855
|
/**
|
|
12831
12856
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
12832
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12857
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
12833
12858
|
*/
|
|
12834
12859
|
"unicorn/no-single-promise-in-promise-methods"?: Linter.RuleEntry<[]>;
|
|
12835
12860
|
/**
|
|
12836
12861
|
* Disallow classes that only have static members.
|
|
12837
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12862
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-static-only-class.md
|
|
12838
12863
|
*/
|
|
12839
12864
|
"unicorn/no-static-only-class"?: Linter.RuleEntry<[]>;
|
|
12840
12865
|
/**
|
|
12841
12866
|
* Disallow `then` property.
|
|
12842
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12867
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-thenable.md
|
|
12843
12868
|
*/
|
|
12844
12869
|
"unicorn/no-thenable"?: Linter.RuleEntry<[]>;
|
|
12845
12870
|
/**
|
|
12846
12871
|
* Disallow assigning `this` to a variable.
|
|
12847
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12872
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-this-assignment.md
|
|
12848
12873
|
*/
|
|
12849
12874
|
"unicorn/no-this-assignment"?: Linter.RuleEntry<[]>;
|
|
12850
12875
|
/**
|
|
12851
12876
|
* Disallow comparing `undefined` using `typeof`.
|
|
12852
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12877
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-typeof-undefined.md
|
|
12853
12878
|
*/
|
|
12854
12879
|
"unicorn/no-typeof-undefined"?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
12855
12880
|
/**
|
|
12856
12881
|
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
12857
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12882
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-array-flat-depth.md
|
|
12858
12883
|
*/
|
|
12859
12884
|
"unicorn/no-unnecessary-array-flat-depth"?: Linter.RuleEntry<[]>;
|
|
12860
12885
|
/**
|
|
12861
12886
|
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
12862
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12887
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-array-splice-count.md
|
|
12863
12888
|
*/
|
|
12864
12889
|
"unicorn/no-unnecessary-array-splice-count"?: Linter.RuleEntry<[]>;
|
|
12865
12890
|
/**
|
|
12866
12891
|
* Disallow awaiting non-promise values.
|
|
12867
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12892
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-await.md
|
|
12868
12893
|
*/
|
|
12869
12894
|
"unicorn/no-unnecessary-await"?: Linter.RuleEntry<[]>;
|
|
12870
12895
|
/**
|
|
12871
12896
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
12872
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12897
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
12873
12898
|
*/
|
|
12874
12899
|
"unicorn/no-unnecessary-polyfills"?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
12875
12900
|
/**
|
|
12876
12901
|
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
12877
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12902
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-slice-end.md
|
|
12878
12903
|
*/
|
|
12879
12904
|
"unicorn/no-unnecessary-slice-end"?: Linter.RuleEntry<[]>;
|
|
12880
12905
|
/**
|
|
12881
12906
|
* Disallow unreadable array destructuring.
|
|
12882
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12907
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
12883
12908
|
*/
|
|
12884
12909
|
"unicorn/no-unreadable-array-destructuring"?: Linter.RuleEntry<[]>;
|
|
12885
12910
|
/**
|
|
12886
12911
|
* Disallow unreadable IIFEs.
|
|
12887
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12912
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unreadable-iife.md
|
|
12888
12913
|
*/
|
|
12889
12914
|
"unicorn/no-unreadable-iife"?: Linter.RuleEntry<[]>;
|
|
12890
12915
|
/**
|
|
12891
12916
|
* Disallow unused object properties.
|
|
12892
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12917
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unused-properties.md
|
|
12893
12918
|
*/
|
|
12894
12919
|
"unicorn/no-unused-properties"?: Linter.RuleEntry<[]>;
|
|
12895
12920
|
/**
|
|
12896
12921
|
* Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
|
|
12897
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12922
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-collection-argument.md
|
|
12898
12923
|
*/
|
|
12899
12924
|
"unicorn/no-useless-collection-argument"?: Linter.RuleEntry<[]>;
|
|
12900
12925
|
/**
|
|
12901
12926
|
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
12902
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12927
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-error-capture-stack-trace.md
|
|
12903
12928
|
*/
|
|
12904
12929
|
"unicorn/no-useless-error-capture-stack-trace"?: Linter.RuleEntry<[]>;
|
|
12905
12930
|
/**
|
|
12906
12931
|
* Disallow useless fallback when spreading in object literals.
|
|
12907
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12932
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
12908
12933
|
*/
|
|
12909
12934
|
"unicorn/no-useless-fallback-in-spread"?: Linter.RuleEntry<[]>;
|
|
12910
12935
|
/**
|
|
12911
12936
|
* Disallow useless array length check.
|
|
12912
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12937
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-length-check.md
|
|
12913
12938
|
*/
|
|
12914
12939
|
"unicorn/no-useless-length-check"?: Linter.RuleEntry<[]>;
|
|
12915
12940
|
/**
|
|
12916
12941
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
12917
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12942
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
12918
12943
|
*/
|
|
12919
12944
|
"unicorn/no-useless-promise-resolve-reject"?: Linter.RuleEntry<[]>;
|
|
12920
12945
|
/**
|
|
12921
12946
|
* Disallow unnecessary spread.
|
|
12922
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12947
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-spread.md
|
|
12923
12948
|
*/
|
|
12924
12949
|
"unicorn/no-useless-spread"?: Linter.RuleEntry<[]>;
|
|
12925
12950
|
/**
|
|
12926
12951
|
* Disallow useless case in switch statements.
|
|
12927
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12952
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-switch-case.md
|
|
12928
12953
|
*/
|
|
12929
12954
|
"unicorn/no-useless-switch-case"?: Linter.RuleEntry<[]>;
|
|
12930
12955
|
/**
|
|
12931
12956
|
* Disallow useless `undefined`.
|
|
12932
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12957
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-undefined.md
|
|
12933
12958
|
*/
|
|
12934
12959
|
"unicorn/no-useless-undefined"?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
12935
12960
|
/**
|
|
12936
12961
|
* Disallow number literals with zero fractions or dangling dots.
|
|
12937
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12962
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-zero-fractions.md
|
|
12938
12963
|
*/
|
|
12939
12964
|
"unicorn/no-zero-fractions"?: Linter.RuleEntry<[]>;
|
|
12940
12965
|
/**
|
|
12941
12966
|
* Enforce proper case for numeric literals.
|
|
12942
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12967
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/number-literal-case.md
|
|
12943
12968
|
*/
|
|
12944
12969
|
"unicorn/number-literal-case"?: Linter.RuleEntry<UnicornNumberLiteralCase>;
|
|
12945
12970
|
/**
|
|
12946
12971
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
12947
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12972
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/numeric-separators-style.md
|
|
12948
12973
|
*/
|
|
12949
12974
|
"unicorn/numeric-separators-style"?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
12950
12975
|
/**
|
|
12951
12976
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
12952
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12977
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-add-event-listener.md
|
|
12953
12978
|
*/
|
|
12954
12979
|
"unicorn/prefer-add-event-listener"?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
12955
12980
|
/**
|
|
12956
12981
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
12957
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12982
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-find.md
|
|
12958
12983
|
*/
|
|
12959
12984
|
"unicorn/prefer-array-find"?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
12960
12985
|
/**
|
|
12961
12986
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
12962
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12987
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-flat.md
|
|
12963
12988
|
*/
|
|
12964
12989
|
"unicorn/prefer-array-flat"?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
12965
12990
|
/**
|
|
12966
12991
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
12967
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12992
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-flat-map.md
|
|
12968
12993
|
*/
|
|
12969
12994
|
"unicorn/prefer-array-flat-map"?: Linter.RuleEntry<[]>;
|
|
12970
12995
|
/**
|
|
12971
12996
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
12972
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12997
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-index-of.md
|
|
12973
12998
|
*/
|
|
12974
12999
|
"unicorn/prefer-array-index-of"?: Linter.RuleEntry<[]>;
|
|
12975
13000
|
/**
|
|
12976
13001
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
12977
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13002
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-some.md
|
|
12978
13003
|
*/
|
|
12979
13004
|
"unicorn/prefer-array-some"?: Linter.RuleEntry<[]>;
|
|
12980
13005
|
/**
|
|
12981
13006
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
12982
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13007
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-at.md
|
|
12983
13008
|
*/
|
|
12984
13009
|
"unicorn/prefer-at"?: Linter.RuleEntry<UnicornPreferAt>;
|
|
12985
13010
|
/**
|
|
12986
13011
|
* Prefer `BigInt` literals over the constructor.
|
|
12987
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13012
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-bigint-literals.md
|
|
12988
13013
|
*/
|
|
12989
13014
|
"unicorn/prefer-bigint-literals"?: Linter.RuleEntry<[]>;
|
|
12990
13015
|
/**
|
|
12991
13016
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
12992
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13017
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
12993
13018
|
*/
|
|
12994
13019
|
"unicorn/prefer-blob-reading-methods"?: Linter.RuleEntry<[]>;
|
|
12995
13020
|
/**
|
|
12996
13021
|
* Prefer class field declarations over `this` assignments in constructors.
|
|
12997
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13022
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-class-fields.md
|
|
12998
13023
|
*/
|
|
12999
13024
|
"unicorn/prefer-class-fields"?: Linter.RuleEntry<[]>;
|
|
13000
13025
|
/**
|
|
13001
13026
|
* Prefer using `Element#classList.toggle()` to toggle class names.
|
|
13002
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13027
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-classlist-toggle.md
|
|
13003
13028
|
*/
|
|
13004
13029
|
"unicorn/prefer-classlist-toggle"?: Linter.RuleEntry<[]>;
|
|
13005
13030
|
/**
|
|
13006
13031
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
13007
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13032
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-code-point.md
|
|
13008
13033
|
*/
|
|
13009
13034
|
"unicorn/prefer-code-point"?: Linter.RuleEntry<[]>;
|
|
13010
13035
|
/**
|
|
13011
13036
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
13012
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13037
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-date-now.md
|
|
13013
13038
|
*/
|
|
13014
13039
|
"unicorn/prefer-date-now"?: Linter.RuleEntry<[]>;
|
|
13015
13040
|
/**
|
|
13016
13041
|
* Prefer default parameters over reassignment.
|
|
13017
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13042
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-default-parameters.md
|
|
13018
13043
|
*/
|
|
13019
13044
|
"unicorn/prefer-default-parameters"?: Linter.RuleEntry<[]>;
|
|
13020
13045
|
/**
|
|
13021
13046
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
13022
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13047
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-append.md
|
|
13023
13048
|
*/
|
|
13024
13049
|
"unicorn/prefer-dom-node-append"?: Linter.RuleEntry<[]>;
|
|
13025
13050
|
/**
|
|
13026
13051
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
13027
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13052
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
13028
13053
|
*/
|
|
13029
13054
|
"unicorn/prefer-dom-node-dataset"?: Linter.RuleEntry<[]>;
|
|
13030
13055
|
/**
|
|
13031
13056
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
13032
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13057
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-remove.md
|
|
13033
13058
|
*/
|
|
13034
13059
|
"unicorn/prefer-dom-node-remove"?: Linter.RuleEntry<[]>;
|
|
13035
13060
|
/**
|
|
13036
13061
|
* Prefer `.textContent` over `.innerText`.
|
|
13037
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13062
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
13038
13063
|
*/
|
|
13039
13064
|
"unicorn/prefer-dom-node-text-content"?: Linter.RuleEntry<[]>;
|
|
13040
13065
|
/**
|
|
13041
13066
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
13042
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13067
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-event-target.md
|
|
13043
13068
|
*/
|
|
13044
13069
|
"unicorn/prefer-event-target"?: Linter.RuleEntry<[]>;
|
|
13045
13070
|
/**
|
|
13046
13071
|
* Prefer `export…from` when re-exporting.
|
|
13047
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13072
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-export-from.md
|
|
13048
13073
|
*/
|
|
13049
13074
|
"unicorn/prefer-export-from"?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
13050
13075
|
/**
|
|
13051
13076
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
13052
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13077
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-global-this.md
|
|
13053
13078
|
*/
|
|
13054
13079
|
"unicorn/prefer-global-this"?: Linter.RuleEntry<[]>;
|
|
13055
13080
|
/**
|
|
13056
13081
|
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
13057
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13082
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-import-meta-properties.md
|
|
13058
13083
|
*/
|
|
13059
13084
|
"unicorn/prefer-import-meta-properties"?: Linter.RuleEntry<[]>;
|
|
13060
13085
|
/**
|
|
13061
13086
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
13062
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13087
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-includes.md
|
|
13063
13088
|
*/
|
|
13064
13089
|
"unicorn/prefer-includes"?: Linter.RuleEntry<[]>;
|
|
13065
13090
|
/**
|
|
13066
13091
|
* Prefer reading a JSON file as a buffer.
|
|
13067
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13092
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
13068
13093
|
*/
|
|
13069
13094
|
"unicorn/prefer-json-parse-buffer"?: Linter.RuleEntry<[]>;
|
|
13070
13095
|
/**
|
|
13071
13096
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
13072
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13097
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
13073
13098
|
*/
|
|
13074
13099
|
"unicorn/prefer-keyboard-event-key"?: Linter.RuleEntry<[]>;
|
|
13075
13100
|
/**
|
|
13076
13101
|
* Prefer using a logical operator over a ternary.
|
|
13077
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13102
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
13078
13103
|
*/
|
|
13079
13104
|
"unicorn/prefer-logical-operator-over-ternary"?: Linter.RuleEntry<[]>;
|
|
13080
13105
|
/**
|
|
13081
13106
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
13082
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13107
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-math-min-max.md
|
|
13083
13108
|
*/
|
|
13084
13109
|
"unicorn/prefer-math-min-max"?: Linter.RuleEntry<[]>;
|
|
13085
13110
|
/**
|
|
13086
13111
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
13087
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13112
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-math-trunc.md
|
|
13088
13113
|
*/
|
|
13089
13114
|
"unicorn/prefer-math-trunc"?: Linter.RuleEntry<[]>;
|
|
13090
13115
|
/**
|
|
13091
13116
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
13092
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13117
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
13093
13118
|
*/
|
|
13094
13119
|
"unicorn/prefer-modern-dom-apis"?: Linter.RuleEntry<[]>;
|
|
13095
13120
|
/**
|
|
13096
13121
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
13097
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13122
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-modern-math-apis.md
|
|
13098
13123
|
*/
|
|
13099
13124
|
"unicorn/prefer-modern-math-apis"?: Linter.RuleEntry<[]>;
|
|
13100
13125
|
/**
|
|
13101
13126
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
13102
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13127
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-module.md
|
|
13103
13128
|
*/
|
|
13104
13129
|
"unicorn/prefer-module"?: Linter.RuleEntry<[]>;
|
|
13105
13130
|
/**
|
|
13106
13131
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
13107
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13132
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
13108
13133
|
*/
|
|
13109
13134
|
"unicorn/prefer-native-coercion-functions"?: Linter.RuleEntry<[]>;
|
|
13110
13135
|
/**
|
|
13111
13136
|
* Prefer negative index over `.length - index` when possible.
|
|
13112
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13137
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-negative-index.md
|
|
13113
13138
|
*/
|
|
13114
13139
|
"unicorn/prefer-negative-index"?: Linter.RuleEntry<[]>;
|
|
13115
13140
|
/**
|
|
13116
13141
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
13117
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13142
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-node-protocol.md
|
|
13118
13143
|
*/
|
|
13119
13144
|
"unicorn/prefer-node-protocol"?: Linter.RuleEntry<[]>;
|
|
13120
13145
|
/**
|
|
13121
13146
|
* Prefer `Number` static properties over global ones.
|
|
13122
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13147
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-number-properties.md
|
|
13123
13148
|
*/
|
|
13124
13149
|
"unicorn/prefer-number-properties"?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
13125
13150
|
/**
|
|
13126
13151
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
13127
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13152
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-object-from-entries.md
|
|
13128
13153
|
*/
|
|
13129
13154
|
"unicorn/prefer-object-from-entries"?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
13130
13155
|
/**
|
|
13131
13156
|
* Prefer omitting the `catch` binding parameter.
|
|
13132
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13157
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
13133
13158
|
*/
|
|
13134
13159
|
"unicorn/prefer-optional-catch-binding"?: Linter.RuleEntry<[]>;
|
|
13135
13160
|
/**
|
|
13136
13161
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
13137
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13162
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-prototype-methods.md
|
|
13138
13163
|
*/
|
|
13139
13164
|
"unicorn/prefer-prototype-methods"?: Linter.RuleEntry<[]>;
|
|
13140
13165
|
/**
|
|
13141
13166
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
13142
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13167
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-query-selector.md
|
|
13143
13168
|
*/
|
|
13144
13169
|
"unicorn/prefer-query-selector"?: Linter.RuleEntry<[]>;
|
|
13145
13170
|
/**
|
|
13146
13171
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
13147
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13172
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-reflect-apply.md
|
|
13148
13173
|
*/
|
|
13149
13174
|
"unicorn/prefer-reflect-apply"?: Linter.RuleEntry<[]>;
|
|
13150
13175
|
/**
|
|
13151
13176
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
13152
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13177
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-regexp-test.md
|
|
13153
13178
|
*/
|
|
13154
13179
|
"unicorn/prefer-regexp-test"?: Linter.RuleEntry<[]>;
|
|
13155
13180
|
/**
|
|
13156
13181
|
* Prefer `Response.json()` over `new Response(JSON.stringify())`.
|
|
13157
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13182
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-response-static-json.md
|
|
13158
13183
|
*/
|
|
13159
13184
|
"unicorn/prefer-response-static-json"?: Linter.RuleEntry<[]>;
|
|
13160
13185
|
/**
|
|
13161
13186
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
13162
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13187
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-set-has.md
|
|
13163
13188
|
*/
|
|
13164
13189
|
"unicorn/prefer-set-has"?: Linter.RuleEntry<[]>;
|
|
13165
13190
|
/**
|
|
13166
13191
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
13167
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13192
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-set-size.md
|
|
13168
13193
|
*/
|
|
13169
13194
|
"unicorn/prefer-set-size"?: Linter.RuleEntry<[]>;
|
|
13170
13195
|
/**
|
|
13171
13196
|
* Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
13172
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13197
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-single-call.md
|
|
13173
13198
|
*/
|
|
13174
13199
|
"unicorn/prefer-single-call"?: Linter.RuleEntry<UnicornPreferSingleCall>;
|
|
13175
13200
|
/**
|
|
13176
13201
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
13177
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13202
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-spread.md
|
|
13178
13203
|
*/
|
|
13179
13204
|
"unicorn/prefer-spread"?: Linter.RuleEntry<[]>;
|
|
13180
13205
|
/**
|
|
13181
13206
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
13182
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13207
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-raw.md
|
|
13183
13208
|
*/
|
|
13184
13209
|
"unicorn/prefer-string-raw"?: Linter.RuleEntry<[]>;
|
|
13185
13210
|
/**
|
|
13186
13211
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
13187
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13212
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-replace-all.md
|
|
13188
13213
|
*/
|
|
13189
13214
|
"unicorn/prefer-string-replace-all"?: Linter.RuleEntry<[]>;
|
|
13190
13215
|
/**
|
|
13191
13216
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
13192
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13217
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-slice.md
|
|
13193
13218
|
*/
|
|
13194
13219
|
"unicorn/prefer-string-slice"?: Linter.RuleEntry<[]>;
|
|
13195
13220
|
/**
|
|
13196
13221
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
13197
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13222
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
13198
13223
|
*/
|
|
13199
13224
|
"unicorn/prefer-string-starts-ends-with"?: Linter.RuleEntry<[]>;
|
|
13200
13225
|
/**
|
|
13201
13226
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
13202
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13227
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
13203
13228
|
*/
|
|
13204
13229
|
"unicorn/prefer-string-trim-start-end"?: Linter.RuleEntry<[]>;
|
|
13205
13230
|
/**
|
|
13206
13231
|
* Prefer using `structuredClone` to create a deep clone.
|
|
13207
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13232
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-structured-clone.md
|
|
13208
13233
|
*/
|
|
13209
13234
|
"unicorn/prefer-structured-clone"?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
13210
13235
|
/**
|
|
13211
13236
|
* Prefer `switch` over multiple `else-if`.
|
|
13212
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13237
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-switch.md
|
|
13213
13238
|
*/
|
|
13214
13239
|
"unicorn/prefer-switch"?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
13215
13240
|
/**
|
|
13216
13241
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
13217
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13242
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-ternary.md
|
|
13218
13243
|
*/
|
|
13219
13244
|
"unicorn/prefer-ternary"?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
13220
13245
|
/**
|
|
13221
13246
|
* Prefer top-level await over top-level promises and async function calls.
|
|
13222
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13247
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-top-level-await.md
|
|
13223
13248
|
*/
|
|
13224
13249
|
"unicorn/prefer-top-level-await"?: Linter.RuleEntry<[]>;
|
|
13225
13250
|
/**
|
|
13226
13251
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
13227
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13252
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-type-error.md
|
|
13228
13253
|
*/
|
|
13229
13254
|
"unicorn/prefer-type-error"?: Linter.RuleEntry<[]>;
|
|
13230
13255
|
/**
|
|
13231
13256
|
* Prevent abbreviations.
|
|
13232
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13257
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prevent-abbreviations.md
|
|
13233
13258
|
*/
|
|
13234
13259
|
"unicorn/prevent-abbreviations"?: Linter.RuleEntry<UnicornPreventAbbreviations>;
|
|
13235
13260
|
/**
|
|
13236
13261
|
* Enforce consistent relative URL style.
|
|
13237
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13262
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/relative-url-style.md
|
|
13238
13263
|
*/
|
|
13239
13264
|
"unicorn/relative-url-style"?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
13240
13265
|
/**
|
|
13241
13266
|
* Enforce using the separator argument with `Array#join()`.
|
|
13242
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13267
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-array-join-separator.md
|
|
13243
13268
|
*/
|
|
13244
13269
|
"unicorn/require-array-join-separator"?: Linter.RuleEntry<[]>;
|
|
13245
13270
|
/**
|
|
13246
13271
|
* Require non-empty module attributes for imports and exports
|
|
13247
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13272
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-module-attributes.md
|
|
13248
13273
|
*/
|
|
13249
13274
|
"unicorn/require-module-attributes"?: Linter.RuleEntry<[]>;
|
|
13250
13275
|
/**
|
|
13251
13276
|
* Require non-empty specifier list in import and export statements.
|
|
13252
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13277
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-module-specifiers.md
|
|
13253
13278
|
*/
|
|
13254
13279
|
"unicorn/require-module-specifiers"?: Linter.RuleEntry<[]>;
|
|
13255
13280
|
/**
|
|
13256
13281
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
13257
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13282
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
13258
13283
|
*/
|
|
13259
13284
|
"unicorn/require-number-to-fixed-digits-argument"?: Linter.RuleEntry<[]>;
|
|
13260
13285
|
/**
|
|
13261
13286
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
13262
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13287
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-post-message-target-origin.md
|
|
13263
13288
|
*/
|
|
13264
13289
|
"unicorn/require-post-message-target-origin"?: Linter.RuleEntry<[]>;
|
|
13265
13290
|
/**
|
|
13266
13291
|
* Enforce better string content.
|
|
13267
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13292
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/string-content.md
|
|
13268
13293
|
*/
|
|
13269
13294
|
"unicorn/string-content"?: Linter.RuleEntry<UnicornStringContent>;
|
|
13270
13295
|
/**
|
|
13271
13296
|
* Enforce consistent brace style for `case` clauses.
|
|
13272
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13297
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/switch-case-braces.md
|
|
13273
13298
|
*/
|
|
13274
13299
|
"unicorn/switch-case-braces"?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
13275
13300
|
/**
|
|
13276
13301
|
* Fix whitespace-insensitive template indentation.
|
|
13277
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13302
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/template-indent.md
|
|
13278
13303
|
*/
|
|
13279
13304
|
"unicorn/template-indent"?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
13280
13305
|
/**
|
|
13281
13306
|
* Enforce consistent case for text encoding identifiers.
|
|
13282
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13307
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/text-encoding-identifier-case.md
|
|
13283
13308
|
*/
|
|
13284
13309
|
"unicorn/text-encoding-identifier-case"?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
|
|
13285
13310
|
/**
|
|
13286
13311
|
* Require `new` when creating an error.
|
|
13287
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13312
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/throw-new-error.md
|
|
13288
13313
|
*/
|
|
13289
13314
|
"unicorn/throw-new-error"?: Linter.RuleEntry<[]>;
|
|
13290
13315
|
}
|
|
@@ -13339,7 +13364,15 @@ interface _UnicornImportStyle_ModuleStyles {
|
|
|
13339
13364
|
}
|
|
13340
13365
|
interface _UnicornImportStyle_BooleanObject {
|
|
13341
13366
|
[k: string]: boolean | undefined;
|
|
13342
|
-
} // ----- unicorn/
|
|
13367
|
+
} // ----- unicorn/isolated-functions -----
|
|
13368
|
+
type UnicornIsolatedFunctions = [] | [{
|
|
13369
|
+
overrideGlobals?: {
|
|
13370
|
+
[k: string]: (boolean | ("readonly" | "writable" | "writeable" | "off")) | undefined;
|
|
13371
|
+
};
|
|
13372
|
+
functions?: string[];
|
|
13373
|
+
selectors?: string[];
|
|
13374
|
+
comments?: string[];
|
|
13375
|
+
}]; // ----- unicorn/no-array-reduce -----
|
|
13343
13376
|
type UnicornNoArrayReduce = [] | [{
|
|
13344
13377
|
allowSimpleOperations?: boolean;
|
|
13345
13378
|
}]; // ----- unicorn/no-array-reverse -----
|
|
@@ -14314,8 +14347,8 @@ type YamlSpacedComment = [] | ["always" | "never"] | ["always" | "never", {
|
|
|
14314
14347
|
}];
|
|
14315
14348
|
//#endregion
|
|
14316
14349
|
//#region src/generated/rule-options.d.ts
|
|
14317
|
-
type RuleOptionsIntersection = BuiltinsRuleOptions | AntfuRuleOptions | CommandRuleOptions | DeMorganRuleOptions | EslintCommentsRuleOptions | IgnoresRuleOptions | ImportsRuleOptions | JavascriptRuleOptions | JsdocRuleOptions | JsoncRuleOptions | MarkdownRuleOptions | NRuleOptions | NoOnlyTestsRuleOptions | PerfectionistRuleOptions | PnpmRuleOptions | PrettierRuleOptions | ReactRuleOptions | ReactHooksRuleOptions | SortPackageJsonRuleOptions | SortTsconfigRuleOptions | StylisticRuleOptions | TomlRuleOptions | TsdocRuleOptions | TypescriptRuleOptions | UnicornRuleOptions | VitestRuleOptions | YmlRuleOptions;
|
|
14318
|
-
type RuleOptionsUnion = BuiltinsRuleOptions & AntfuRuleOptions & CommandRuleOptions & DeMorganRuleOptions & EslintCommentsRuleOptions & IgnoresRuleOptions & ImportsRuleOptions & JavascriptRuleOptions & JsdocRuleOptions & JsoncRuleOptions & MarkdownRuleOptions & NRuleOptions & NoOnlyTestsRuleOptions & PerfectionistRuleOptions & PnpmRuleOptions & PrettierRuleOptions & ReactRuleOptions & ReactHooksRuleOptions & SortPackageJsonRuleOptions & SortTsconfigRuleOptions & StylisticRuleOptions & TomlRuleOptions & TsdocRuleOptions & TypescriptRuleOptions & UnicornRuleOptions & VitestRuleOptions & YmlRuleOptions;
|
|
14350
|
+
type RuleOptionsIntersection = BuiltinsRuleOptions | AntfuRuleOptions | CommandRuleOptions | DeMorganRuleOptions | EslintCommentsRuleOptions | IgnoresRuleOptions | ImportsRuleOptions | JavascriptRuleOptions$1 | JsdocRuleOptions | JsoncRuleOptions | MarkdownRuleOptions | NRuleOptions | NoOnlyTestsRuleOptions | PerfectionistRuleOptions | PnpmRuleOptions | PrettierRuleOptions | ReactRuleOptions | ReactHooksRuleOptions | SortPackageJsonRuleOptions | SortTsconfigRuleOptions | StylisticRuleOptions | TomlRuleOptions | TsdocRuleOptions | TypescriptRuleOptions | UnicornRuleOptions | VitestRuleOptions | YmlRuleOptions;
|
|
14351
|
+
type RuleOptionsUnion = BuiltinsRuleOptions & AntfuRuleOptions & CommandRuleOptions & DeMorganRuleOptions & EslintCommentsRuleOptions & IgnoresRuleOptions & ImportsRuleOptions & JavascriptRuleOptions$1 & JsdocRuleOptions & JsoncRuleOptions & MarkdownRuleOptions & NRuleOptions & NoOnlyTestsRuleOptions & PerfectionistRuleOptions & PnpmRuleOptions & PrettierRuleOptions & ReactRuleOptions & ReactHooksRuleOptions & SortPackageJsonRuleOptions & SortTsconfigRuleOptions & StylisticRuleOptions & TomlRuleOptions & TsdocRuleOptions & TypescriptRuleOptions & UnicornRuleOptions & VitestRuleOptions & YmlRuleOptions;
|
|
14319
14352
|
type RuleOptionsMap = {
|
|
14320
14353
|
BuiltinsRuleOptions: BuiltinsRuleOptions;
|
|
14321
14354
|
AntfuRuleOptions: AntfuRuleOptions;
|
|
@@ -14324,7 +14357,7 @@ type RuleOptionsMap = {
|
|
|
14324
14357
|
EslintCommentsRuleOptions: EslintCommentsRuleOptions;
|
|
14325
14358
|
IgnoresRuleOptions: IgnoresRuleOptions;
|
|
14326
14359
|
ImportsRuleOptions: ImportsRuleOptions;
|
|
14327
|
-
JavascriptRuleOptions: JavascriptRuleOptions;
|
|
14360
|
+
JavascriptRuleOptions: JavascriptRuleOptions$1;
|
|
14328
14361
|
JsdocRuleOptions: JsdocRuleOptions;
|
|
14329
14362
|
JsoncRuleOptions: JsoncRuleOptions;
|
|
14330
14363
|
MarkdownRuleOptions: MarkdownRuleOptions;
|
|
@@ -14347,6 +14380,7 @@ type RuleOptionsMap = {
|
|
|
14347
14380
|
};
|
|
14348
14381
|
//#endregion
|
|
14349
14382
|
//#region src/types.d.ts
|
|
14383
|
+
type RulesRecord = Linter.RulesRecord & RuleOptionsUnion;
|
|
14350
14384
|
type Config = Omit<Linter.Config<Linter.RulesRecord & RuleOptionsUnion>, "plugins"> & {
|
|
14351
14385
|
/**
|
|
14352
14386
|
* An object containing a name-value mapping of plugin names to plugin objects. When `files` is specified, these plugins are only available to the matching files.
|
|
@@ -14354,6 +14388,8 @@ type Config = Omit<Linter.Config<Linter.RulesRecord & RuleOptionsUnion>, "plugin
|
|
|
14354
14388
|
*/
|
|
14355
14389
|
plugins?: Record<string, any>;
|
|
14356
14390
|
};
|
|
14391
|
+
type JavascriptRuleOptions = BuiltinsRuleOptions;
|
|
14392
|
+
type TypescriptConfigRules = TypescriptRuleOptions & BuiltinsRuleOptions;
|
|
14357
14393
|
type Awaitable<T> = T | Promise<T>;
|
|
14358
14394
|
type UnPromise<T> = T extends Promise<infer U> ? U : T;
|
|
14359
14395
|
type LanguageOptions = Linter.Config["languageOptions"];
|
|
@@ -14629,7 +14665,7 @@ declare function defineConfig(options?: OptionsConfig & Config, ...userConfigs:
|
|
|
14629
14665
|
type DefineConfig = typeof defineConfig;
|
|
14630
14666
|
//#endregion
|
|
14631
14667
|
//#region src/generated/version.d.ts
|
|
14632
|
-
declare const VERSION = "0.
|
|
14668
|
+
declare const VERSION = "0.5.1";
|
|
14633
14669
|
declare namespace globs_d_exports {
|
|
14634
14670
|
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 };
|
|
14635
14671
|
}
|
|
@@ -14664,214 +14700,214 @@ declare const GLOB_EXCLUDE: string[];
|
|
|
14664
14700
|
declare function importPluginReact(): Promise<{
|
|
14665
14701
|
pluginReact: {
|
|
14666
14702
|
deprecatedRules: Partial<{
|
|
14667
|
-
'boolean-prop-naming':
|
|
14668
|
-
'button-has-type':
|
|
14669
|
-
'checked-requires-onchange-or-readonly':
|
|
14670
|
-
'default-props-match-prop-types':
|
|
14671
|
-
'destructuring-assignment':
|
|
14672
|
-
'display-name':
|
|
14673
|
-
'forbid-component-props':
|
|
14674
|
-
'forbid-dom-props':
|
|
14675
|
-
'forbid-elements':
|
|
14676
|
-
'forbid-foreign-prop-types':
|
|
14677
|
-
'forbid-prop-types':
|
|
14678
|
-
'forward-ref-uses-ref':
|
|
14679
|
-
'function-component-definition':
|
|
14680
|
-
'hook-use-state':
|
|
14681
|
-
'iframe-missing-sandbox':
|
|
14682
|
-
'jsx-boolean-value':
|
|
14683
|
-
'jsx-child-element-spacing':
|
|
14684
|
-
'jsx-closing-bracket-location':
|
|
14685
|
-
'jsx-closing-tag-location':
|
|
14686
|
-
'jsx-curly-spacing':
|
|
14687
|
-
'jsx-curly-newline':
|
|
14688
|
-
'jsx-equals-spacing':
|
|
14689
|
-
'jsx-filename-extension':
|
|
14690
|
-
'jsx-first-prop-new-line':
|
|
14691
|
-
'jsx-handler-names':
|
|
14692
|
-
'jsx-indent':
|
|
14693
|
-
'jsx-indent-props':
|
|
14694
|
-
'jsx-key':
|
|
14695
|
-
'jsx-max-depth':
|
|
14696
|
-
'jsx-max-props-per-line':
|
|
14697
|
-
'jsx-newline':
|
|
14698
|
-
'jsx-no-bind':
|
|
14699
|
-
'jsx-no-comment-textnodes':
|
|
14700
|
-
'jsx-no-constructed-context-values':
|
|
14701
|
-
'jsx-no-duplicate-props':
|
|
14702
|
-
'jsx-no-leaked-render':
|
|
14703
|
-
'jsx-no-literals':
|
|
14704
|
-
'jsx-no-script-url':
|
|
14705
|
-
'jsx-no-target-blank':
|
|
14706
|
-
'jsx-no-useless-fragment':
|
|
14707
|
-
'jsx-one-expression-per-line':
|
|
14708
|
-
'jsx-no-undef':
|
|
14709
|
-
'jsx-curly-brace-presence':
|
|
14710
|
-
'jsx-pascal-case':
|
|
14711
|
-
'jsx-fragments':
|
|
14712
|
-
'jsx-props-no-multi-spaces':
|
|
14713
|
-
'jsx-props-no-spreading':
|
|
14714
|
-
'jsx-props-no-spread-multi':
|
|
14715
|
-
'jsx-sort-default-props':
|
|
14716
|
-
'jsx-sort-props':
|
|
14717
|
-
'jsx-space-before-closing':
|
|
14718
|
-
'jsx-tag-spacing':
|
|
14719
|
-
'jsx-uses-react':
|
|
14720
|
-
'jsx-uses-vars':
|
|
14721
|
-
'jsx-wrap-multilines':
|
|
14722
|
-
'no-invalid-html-attribute':
|
|
14723
|
-
'no-access-state-in-setstate':
|
|
14724
|
-
'no-adjacent-inline-elements':
|
|
14725
|
-
'no-array-index-key':
|
|
14726
|
-
'no-arrow-function-lifecycle':
|
|
14727
|
-
'no-children-prop':
|
|
14728
|
-
'no-danger':
|
|
14729
|
-
'no-danger-with-children':
|
|
14730
|
-
'no-deprecated':
|
|
14731
|
-
'no-did-mount-set-state':
|
|
14732
|
-
'no-did-update-set-state':
|
|
14733
|
-
'no-direct-mutation-state':
|
|
14734
|
-
'no-find-dom-node':
|
|
14735
|
-
'no-is-mounted':
|
|
14736
|
-
'no-multi-comp':
|
|
14737
|
-
'no-namespace':
|
|
14738
|
-
'no-set-state':
|
|
14739
|
-
'no-string-refs':
|
|
14740
|
-
'no-redundant-should-component-update':
|
|
14741
|
-
'no-render-return-value':
|
|
14742
|
-
'no-this-in-sfc':
|
|
14743
|
-
'no-typos':
|
|
14744
|
-
'no-unescaped-entities':
|
|
14745
|
-
'no-unknown-property':
|
|
14746
|
-
'no-unsafe':
|
|
14747
|
-
'no-unstable-nested-components':
|
|
14748
|
-
'no-unused-class-component-methods':
|
|
14749
|
-
'no-unused-prop-types':
|
|
14750
|
-
'no-unused-state':
|
|
14751
|
-
'no-object-type-as-default-prop':
|
|
14752
|
-
'no-will-update-set-state':
|
|
14753
|
-
'prefer-es6-class':
|
|
14754
|
-
'prefer-exact-props':
|
|
14755
|
-
'prefer-read-only-props':
|
|
14756
|
-
'prefer-stateless-function':
|
|
14757
|
-
'prop-types':
|
|
14758
|
-
'react-in-jsx-scope':
|
|
14759
|
-
'require-default-props':
|
|
14760
|
-
'require-optimization':
|
|
14761
|
-
'require-render-return':
|
|
14762
|
-
'self-closing-comp':
|
|
14763
|
-
'sort-comp':
|
|
14764
|
-
'sort-default-props':
|
|
14765
|
-
'sort-prop-types':
|
|
14766
|
-
'state-in-constructor':
|
|
14767
|
-
'static-property-placement':
|
|
14768
|
-
'style-prop-object':
|
|
14769
|
-
'void-dom-elements-no-children':
|
|
14703
|
+
'boolean-prop-naming': eslint.Rule.RuleModule;
|
|
14704
|
+
'button-has-type': eslint.Rule.RuleModule;
|
|
14705
|
+
'checked-requires-onchange-or-readonly': eslint.Rule.RuleModule;
|
|
14706
|
+
'default-props-match-prop-types': eslint.Rule.RuleModule;
|
|
14707
|
+
'destructuring-assignment': eslint.Rule.RuleModule;
|
|
14708
|
+
'display-name': eslint.Rule.RuleModule;
|
|
14709
|
+
'forbid-component-props': eslint.Rule.RuleModule;
|
|
14710
|
+
'forbid-dom-props': eslint.Rule.RuleModule;
|
|
14711
|
+
'forbid-elements': eslint.Rule.RuleModule;
|
|
14712
|
+
'forbid-foreign-prop-types': eslint.Rule.RuleModule;
|
|
14713
|
+
'forbid-prop-types': eslint.Rule.RuleModule;
|
|
14714
|
+
'forward-ref-uses-ref': eslint.Rule.RuleModule;
|
|
14715
|
+
'function-component-definition': eslint.Rule.RuleModule;
|
|
14716
|
+
'hook-use-state': eslint.Rule.RuleModule;
|
|
14717
|
+
'iframe-missing-sandbox': eslint.Rule.RuleModule;
|
|
14718
|
+
'jsx-boolean-value': eslint.Rule.RuleModule;
|
|
14719
|
+
'jsx-child-element-spacing': eslint.Rule.RuleModule;
|
|
14720
|
+
'jsx-closing-bracket-location': eslint.Rule.RuleModule;
|
|
14721
|
+
'jsx-closing-tag-location': eslint.Rule.RuleModule;
|
|
14722
|
+
'jsx-curly-spacing': eslint.Rule.RuleModule;
|
|
14723
|
+
'jsx-curly-newline': eslint.Rule.RuleModule;
|
|
14724
|
+
'jsx-equals-spacing': eslint.Rule.RuleModule;
|
|
14725
|
+
'jsx-filename-extension': eslint.Rule.RuleModule;
|
|
14726
|
+
'jsx-first-prop-new-line': eslint.Rule.RuleModule;
|
|
14727
|
+
'jsx-handler-names': eslint.Rule.RuleModule;
|
|
14728
|
+
'jsx-indent': eslint.Rule.RuleModule;
|
|
14729
|
+
'jsx-indent-props': eslint.Rule.RuleModule;
|
|
14730
|
+
'jsx-key': eslint.Rule.RuleModule;
|
|
14731
|
+
'jsx-max-depth': eslint.Rule.RuleModule;
|
|
14732
|
+
'jsx-max-props-per-line': eslint.Rule.RuleModule;
|
|
14733
|
+
'jsx-newline': eslint.Rule.RuleModule;
|
|
14734
|
+
'jsx-no-bind': eslint.Rule.RuleModule;
|
|
14735
|
+
'jsx-no-comment-textnodes': eslint.Rule.RuleModule;
|
|
14736
|
+
'jsx-no-constructed-context-values': eslint.Rule.RuleModule;
|
|
14737
|
+
'jsx-no-duplicate-props': eslint.Rule.RuleModule;
|
|
14738
|
+
'jsx-no-leaked-render': eslint.Rule.RuleModule;
|
|
14739
|
+
'jsx-no-literals': eslint.Rule.RuleModule;
|
|
14740
|
+
'jsx-no-script-url': eslint.Rule.RuleModule;
|
|
14741
|
+
'jsx-no-target-blank': eslint.Rule.RuleModule;
|
|
14742
|
+
'jsx-no-useless-fragment': eslint.Rule.RuleModule;
|
|
14743
|
+
'jsx-one-expression-per-line': eslint.Rule.RuleModule;
|
|
14744
|
+
'jsx-no-undef': eslint.Rule.RuleModule;
|
|
14745
|
+
'jsx-curly-brace-presence': eslint.Rule.RuleModule;
|
|
14746
|
+
'jsx-pascal-case': eslint.Rule.RuleModule;
|
|
14747
|
+
'jsx-fragments': eslint.Rule.RuleModule;
|
|
14748
|
+
'jsx-props-no-multi-spaces': eslint.Rule.RuleModule;
|
|
14749
|
+
'jsx-props-no-spreading': eslint.Rule.RuleModule;
|
|
14750
|
+
'jsx-props-no-spread-multi': eslint.Rule.RuleModule;
|
|
14751
|
+
'jsx-sort-default-props': eslint.Rule.RuleModule;
|
|
14752
|
+
'jsx-sort-props': eslint.Rule.RuleModule;
|
|
14753
|
+
'jsx-space-before-closing': eslint.Rule.RuleModule;
|
|
14754
|
+
'jsx-tag-spacing': eslint.Rule.RuleModule;
|
|
14755
|
+
'jsx-uses-react': eslint.Rule.RuleModule;
|
|
14756
|
+
'jsx-uses-vars': eslint.Rule.RuleModule;
|
|
14757
|
+
'jsx-wrap-multilines': eslint.Rule.RuleModule;
|
|
14758
|
+
'no-invalid-html-attribute': eslint.Rule.RuleModule;
|
|
14759
|
+
'no-access-state-in-setstate': eslint.Rule.RuleModule;
|
|
14760
|
+
'no-adjacent-inline-elements': eslint.Rule.RuleModule;
|
|
14761
|
+
'no-array-index-key': eslint.Rule.RuleModule;
|
|
14762
|
+
'no-arrow-function-lifecycle': eslint.Rule.RuleModule;
|
|
14763
|
+
'no-children-prop': eslint.Rule.RuleModule;
|
|
14764
|
+
'no-danger': eslint.Rule.RuleModule;
|
|
14765
|
+
'no-danger-with-children': eslint.Rule.RuleModule;
|
|
14766
|
+
'no-deprecated': eslint.Rule.RuleModule;
|
|
14767
|
+
'no-did-mount-set-state': eslint.Rule.RuleModule;
|
|
14768
|
+
'no-did-update-set-state': eslint.Rule.RuleModule;
|
|
14769
|
+
'no-direct-mutation-state': eslint.Rule.RuleModule;
|
|
14770
|
+
'no-find-dom-node': eslint.Rule.RuleModule;
|
|
14771
|
+
'no-is-mounted': eslint.Rule.RuleModule;
|
|
14772
|
+
'no-multi-comp': eslint.Rule.RuleModule;
|
|
14773
|
+
'no-namespace': eslint.Rule.RuleModule;
|
|
14774
|
+
'no-set-state': eslint.Rule.RuleModule;
|
|
14775
|
+
'no-string-refs': eslint.Rule.RuleModule;
|
|
14776
|
+
'no-redundant-should-component-update': eslint.Rule.RuleModule;
|
|
14777
|
+
'no-render-return-value': eslint.Rule.RuleModule;
|
|
14778
|
+
'no-this-in-sfc': eslint.Rule.RuleModule;
|
|
14779
|
+
'no-typos': eslint.Rule.RuleModule;
|
|
14780
|
+
'no-unescaped-entities': eslint.Rule.RuleModule;
|
|
14781
|
+
'no-unknown-property': eslint.Rule.RuleModule;
|
|
14782
|
+
'no-unsafe': eslint.Rule.RuleModule;
|
|
14783
|
+
'no-unstable-nested-components': eslint.Rule.RuleModule;
|
|
14784
|
+
'no-unused-class-component-methods': eslint.Rule.RuleModule;
|
|
14785
|
+
'no-unused-prop-types': eslint.Rule.RuleModule;
|
|
14786
|
+
'no-unused-state': eslint.Rule.RuleModule;
|
|
14787
|
+
'no-object-type-as-default-prop': eslint.Rule.RuleModule;
|
|
14788
|
+
'no-will-update-set-state': eslint.Rule.RuleModule;
|
|
14789
|
+
'prefer-es6-class': eslint.Rule.RuleModule;
|
|
14790
|
+
'prefer-exact-props': eslint.Rule.RuleModule;
|
|
14791
|
+
'prefer-read-only-props': eslint.Rule.RuleModule;
|
|
14792
|
+
'prefer-stateless-function': eslint.Rule.RuleModule;
|
|
14793
|
+
'prop-types': eslint.Rule.RuleModule;
|
|
14794
|
+
'react-in-jsx-scope': eslint.Rule.RuleModule;
|
|
14795
|
+
'require-default-props': eslint.Rule.RuleModule;
|
|
14796
|
+
'require-optimization': eslint.Rule.RuleModule;
|
|
14797
|
+
'require-render-return': eslint.Rule.RuleModule;
|
|
14798
|
+
'self-closing-comp': eslint.Rule.RuleModule;
|
|
14799
|
+
'sort-comp': eslint.Rule.RuleModule;
|
|
14800
|
+
'sort-default-props': eslint.Rule.RuleModule;
|
|
14801
|
+
'sort-prop-types': eslint.Rule.RuleModule;
|
|
14802
|
+
'state-in-constructor': eslint.Rule.RuleModule;
|
|
14803
|
+
'static-property-placement': eslint.Rule.RuleModule;
|
|
14804
|
+
'style-prop-object': eslint.Rule.RuleModule;
|
|
14805
|
+
'void-dom-elements-no-children': eslint.Rule.RuleModule;
|
|
14770
14806
|
}>;
|
|
14771
14807
|
rules: {
|
|
14772
|
-
'boolean-prop-naming':
|
|
14773
|
-
'button-has-type':
|
|
14774
|
-
'checked-requires-onchange-or-readonly':
|
|
14775
|
-
'default-props-match-prop-types':
|
|
14776
|
-
'destructuring-assignment':
|
|
14777
|
-
'display-name':
|
|
14778
|
-
'forbid-component-props':
|
|
14779
|
-
'forbid-dom-props':
|
|
14780
|
-
'forbid-elements':
|
|
14781
|
-
'forbid-foreign-prop-types':
|
|
14782
|
-
'forbid-prop-types':
|
|
14783
|
-
'forward-ref-uses-ref':
|
|
14784
|
-
'function-component-definition':
|
|
14785
|
-
'hook-use-state':
|
|
14786
|
-
'iframe-missing-sandbox':
|
|
14787
|
-
'jsx-boolean-value':
|
|
14788
|
-
'jsx-child-element-spacing':
|
|
14789
|
-
'jsx-closing-bracket-location':
|
|
14790
|
-
'jsx-closing-tag-location':
|
|
14791
|
-
'jsx-curly-spacing':
|
|
14792
|
-
'jsx-curly-newline':
|
|
14793
|
-
'jsx-equals-spacing':
|
|
14794
|
-
'jsx-filename-extension':
|
|
14795
|
-
'jsx-first-prop-new-line':
|
|
14796
|
-
'jsx-handler-names':
|
|
14797
|
-
'jsx-indent':
|
|
14798
|
-
'jsx-indent-props':
|
|
14799
|
-
'jsx-key':
|
|
14800
|
-
'jsx-max-depth':
|
|
14801
|
-
'jsx-max-props-per-line':
|
|
14802
|
-
'jsx-newline':
|
|
14803
|
-
'jsx-no-bind':
|
|
14804
|
-
'jsx-no-comment-textnodes':
|
|
14805
|
-
'jsx-no-constructed-context-values':
|
|
14806
|
-
'jsx-no-duplicate-props':
|
|
14807
|
-
'jsx-no-leaked-render':
|
|
14808
|
-
'jsx-no-literals':
|
|
14809
|
-
'jsx-no-script-url':
|
|
14810
|
-
'jsx-no-target-blank':
|
|
14811
|
-
'jsx-no-useless-fragment':
|
|
14812
|
-
'jsx-one-expression-per-line':
|
|
14813
|
-
'jsx-no-undef':
|
|
14814
|
-
'jsx-curly-brace-presence':
|
|
14815
|
-
'jsx-pascal-case':
|
|
14816
|
-
'jsx-fragments':
|
|
14817
|
-
'jsx-props-no-multi-spaces':
|
|
14818
|
-
'jsx-props-no-spreading':
|
|
14819
|
-
'jsx-props-no-spread-multi':
|
|
14820
|
-
'jsx-sort-default-props':
|
|
14821
|
-
'jsx-sort-props':
|
|
14822
|
-
'jsx-space-before-closing':
|
|
14823
|
-
'jsx-tag-spacing':
|
|
14824
|
-
'jsx-uses-react':
|
|
14825
|
-
'jsx-uses-vars':
|
|
14826
|
-
'jsx-wrap-multilines':
|
|
14827
|
-
'no-invalid-html-attribute':
|
|
14828
|
-
'no-access-state-in-setstate':
|
|
14829
|
-
'no-adjacent-inline-elements':
|
|
14830
|
-
'no-array-index-key':
|
|
14831
|
-
'no-arrow-function-lifecycle':
|
|
14832
|
-
'no-children-prop':
|
|
14833
|
-
'no-danger':
|
|
14834
|
-
'no-danger-with-children':
|
|
14835
|
-
'no-deprecated':
|
|
14836
|
-
'no-did-mount-set-state':
|
|
14837
|
-
'no-did-update-set-state':
|
|
14838
|
-
'no-direct-mutation-state':
|
|
14839
|
-
'no-find-dom-node':
|
|
14840
|
-
'no-is-mounted':
|
|
14841
|
-
'no-multi-comp':
|
|
14842
|
-
'no-namespace':
|
|
14843
|
-
'no-set-state':
|
|
14844
|
-
'no-string-refs':
|
|
14845
|
-
'no-redundant-should-component-update':
|
|
14846
|
-
'no-render-return-value':
|
|
14847
|
-
'no-this-in-sfc':
|
|
14848
|
-
'no-typos':
|
|
14849
|
-
'no-unescaped-entities':
|
|
14850
|
-
'no-unknown-property':
|
|
14851
|
-
'no-unsafe':
|
|
14852
|
-
'no-unstable-nested-components':
|
|
14853
|
-
'no-unused-class-component-methods':
|
|
14854
|
-
'no-unused-prop-types':
|
|
14855
|
-
'no-unused-state':
|
|
14856
|
-
'no-object-type-as-default-prop':
|
|
14857
|
-
'no-will-update-set-state':
|
|
14858
|
-
'prefer-es6-class':
|
|
14859
|
-
'prefer-exact-props':
|
|
14860
|
-
'prefer-read-only-props':
|
|
14861
|
-
'prefer-stateless-function':
|
|
14862
|
-
'prop-types':
|
|
14863
|
-
'react-in-jsx-scope':
|
|
14864
|
-
'require-default-props':
|
|
14865
|
-
'require-optimization':
|
|
14866
|
-
'require-render-return':
|
|
14867
|
-
'self-closing-comp':
|
|
14868
|
-
'sort-comp':
|
|
14869
|
-
'sort-default-props':
|
|
14870
|
-
'sort-prop-types':
|
|
14871
|
-
'state-in-constructor':
|
|
14872
|
-
'static-property-placement':
|
|
14873
|
-
'style-prop-object':
|
|
14874
|
-
'void-dom-elements-no-children':
|
|
14808
|
+
'boolean-prop-naming': eslint.Rule.RuleModule;
|
|
14809
|
+
'button-has-type': eslint.Rule.RuleModule;
|
|
14810
|
+
'checked-requires-onchange-or-readonly': eslint.Rule.RuleModule;
|
|
14811
|
+
'default-props-match-prop-types': eslint.Rule.RuleModule;
|
|
14812
|
+
'destructuring-assignment': eslint.Rule.RuleModule;
|
|
14813
|
+
'display-name': eslint.Rule.RuleModule;
|
|
14814
|
+
'forbid-component-props': eslint.Rule.RuleModule;
|
|
14815
|
+
'forbid-dom-props': eslint.Rule.RuleModule;
|
|
14816
|
+
'forbid-elements': eslint.Rule.RuleModule;
|
|
14817
|
+
'forbid-foreign-prop-types': eslint.Rule.RuleModule;
|
|
14818
|
+
'forbid-prop-types': eslint.Rule.RuleModule;
|
|
14819
|
+
'forward-ref-uses-ref': eslint.Rule.RuleModule;
|
|
14820
|
+
'function-component-definition': eslint.Rule.RuleModule;
|
|
14821
|
+
'hook-use-state': eslint.Rule.RuleModule;
|
|
14822
|
+
'iframe-missing-sandbox': eslint.Rule.RuleModule;
|
|
14823
|
+
'jsx-boolean-value': eslint.Rule.RuleModule;
|
|
14824
|
+
'jsx-child-element-spacing': eslint.Rule.RuleModule;
|
|
14825
|
+
'jsx-closing-bracket-location': eslint.Rule.RuleModule;
|
|
14826
|
+
'jsx-closing-tag-location': eslint.Rule.RuleModule;
|
|
14827
|
+
'jsx-curly-spacing': eslint.Rule.RuleModule;
|
|
14828
|
+
'jsx-curly-newline': eslint.Rule.RuleModule;
|
|
14829
|
+
'jsx-equals-spacing': eslint.Rule.RuleModule;
|
|
14830
|
+
'jsx-filename-extension': eslint.Rule.RuleModule;
|
|
14831
|
+
'jsx-first-prop-new-line': eslint.Rule.RuleModule;
|
|
14832
|
+
'jsx-handler-names': eslint.Rule.RuleModule;
|
|
14833
|
+
'jsx-indent': eslint.Rule.RuleModule;
|
|
14834
|
+
'jsx-indent-props': eslint.Rule.RuleModule;
|
|
14835
|
+
'jsx-key': eslint.Rule.RuleModule;
|
|
14836
|
+
'jsx-max-depth': eslint.Rule.RuleModule;
|
|
14837
|
+
'jsx-max-props-per-line': eslint.Rule.RuleModule;
|
|
14838
|
+
'jsx-newline': eslint.Rule.RuleModule;
|
|
14839
|
+
'jsx-no-bind': eslint.Rule.RuleModule;
|
|
14840
|
+
'jsx-no-comment-textnodes': eslint.Rule.RuleModule;
|
|
14841
|
+
'jsx-no-constructed-context-values': eslint.Rule.RuleModule;
|
|
14842
|
+
'jsx-no-duplicate-props': eslint.Rule.RuleModule;
|
|
14843
|
+
'jsx-no-leaked-render': eslint.Rule.RuleModule;
|
|
14844
|
+
'jsx-no-literals': eslint.Rule.RuleModule;
|
|
14845
|
+
'jsx-no-script-url': eslint.Rule.RuleModule;
|
|
14846
|
+
'jsx-no-target-blank': eslint.Rule.RuleModule;
|
|
14847
|
+
'jsx-no-useless-fragment': eslint.Rule.RuleModule;
|
|
14848
|
+
'jsx-one-expression-per-line': eslint.Rule.RuleModule;
|
|
14849
|
+
'jsx-no-undef': eslint.Rule.RuleModule;
|
|
14850
|
+
'jsx-curly-brace-presence': eslint.Rule.RuleModule;
|
|
14851
|
+
'jsx-pascal-case': eslint.Rule.RuleModule;
|
|
14852
|
+
'jsx-fragments': eslint.Rule.RuleModule;
|
|
14853
|
+
'jsx-props-no-multi-spaces': eslint.Rule.RuleModule;
|
|
14854
|
+
'jsx-props-no-spreading': eslint.Rule.RuleModule;
|
|
14855
|
+
'jsx-props-no-spread-multi': eslint.Rule.RuleModule;
|
|
14856
|
+
'jsx-sort-default-props': eslint.Rule.RuleModule;
|
|
14857
|
+
'jsx-sort-props': eslint.Rule.RuleModule;
|
|
14858
|
+
'jsx-space-before-closing': eslint.Rule.RuleModule;
|
|
14859
|
+
'jsx-tag-spacing': eslint.Rule.RuleModule;
|
|
14860
|
+
'jsx-uses-react': eslint.Rule.RuleModule;
|
|
14861
|
+
'jsx-uses-vars': eslint.Rule.RuleModule;
|
|
14862
|
+
'jsx-wrap-multilines': eslint.Rule.RuleModule;
|
|
14863
|
+
'no-invalid-html-attribute': eslint.Rule.RuleModule;
|
|
14864
|
+
'no-access-state-in-setstate': eslint.Rule.RuleModule;
|
|
14865
|
+
'no-adjacent-inline-elements': eslint.Rule.RuleModule;
|
|
14866
|
+
'no-array-index-key': eslint.Rule.RuleModule;
|
|
14867
|
+
'no-arrow-function-lifecycle': eslint.Rule.RuleModule;
|
|
14868
|
+
'no-children-prop': eslint.Rule.RuleModule;
|
|
14869
|
+
'no-danger': eslint.Rule.RuleModule;
|
|
14870
|
+
'no-danger-with-children': eslint.Rule.RuleModule;
|
|
14871
|
+
'no-deprecated': eslint.Rule.RuleModule;
|
|
14872
|
+
'no-did-mount-set-state': eslint.Rule.RuleModule;
|
|
14873
|
+
'no-did-update-set-state': eslint.Rule.RuleModule;
|
|
14874
|
+
'no-direct-mutation-state': eslint.Rule.RuleModule;
|
|
14875
|
+
'no-find-dom-node': eslint.Rule.RuleModule;
|
|
14876
|
+
'no-is-mounted': eslint.Rule.RuleModule;
|
|
14877
|
+
'no-multi-comp': eslint.Rule.RuleModule;
|
|
14878
|
+
'no-namespace': eslint.Rule.RuleModule;
|
|
14879
|
+
'no-set-state': eslint.Rule.RuleModule;
|
|
14880
|
+
'no-string-refs': eslint.Rule.RuleModule;
|
|
14881
|
+
'no-redundant-should-component-update': eslint.Rule.RuleModule;
|
|
14882
|
+
'no-render-return-value': eslint.Rule.RuleModule;
|
|
14883
|
+
'no-this-in-sfc': eslint.Rule.RuleModule;
|
|
14884
|
+
'no-typos': eslint.Rule.RuleModule;
|
|
14885
|
+
'no-unescaped-entities': eslint.Rule.RuleModule;
|
|
14886
|
+
'no-unknown-property': eslint.Rule.RuleModule;
|
|
14887
|
+
'no-unsafe': eslint.Rule.RuleModule;
|
|
14888
|
+
'no-unstable-nested-components': eslint.Rule.RuleModule;
|
|
14889
|
+
'no-unused-class-component-methods': eslint.Rule.RuleModule;
|
|
14890
|
+
'no-unused-prop-types': eslint.Rule.RuleModule;
|
|
14891
|
+
'no-unused-state': eslint.Rule.RuleModule;
|
|
14892
|
+
'no-object-type-as-default-prop': eslint.Rule.RuleModule;
|
|
14893
|
+
'no-will-update-set-state': eslint.Rule.RuleModule;
|
|
14894
|
+
'prefer-es6-class': eslint.Rule.RuleModule;
|
|
14895
|
+
'prefer-exact-props': eslint.Rule.RuleModule;
|
|
14896
|
+
'prefer-read-only-props': eslint.Rule.RuleModule;
|
|
14897
|
+
'prefer-stateless-function': eslint.Rule.RuleModule;
|
|
14898
|
+
'prop-types': eslint.Rule.RuleModule;
|
|
14899
|
+
'react-in-jsx-scope': eslint.Rule.RuleModule;
|
|
14900
|
+
'require-default-props': eslint.Rule.RuleModule;
|
|
14901
|
+
'require-optimization': eslint.Rule.RuleModule;
|
|
14902
|
+
'require-render-return': eslint.Rule.RuleModule;
|
|
14903
|
+
'self-closing-comp': eslint.Rule.RuleModule;
|
|
14904
|
+
'sort-comp': eslint.Rule.RuleModule;
|
|
14905
|
+
'sort-default-props': eslint.Rule.RuleModule;
|
|
14906
|
+
'sort-prop-types': eslint.Rule.RuleModule;
|
|
14907
|
+
'state-in-constructor': eslint.Rule.RuleModule;
|
|
14908
|
+
'static-property-placement': eslint.Rule.RuleModule;
|
|
14909
|
+
'style-prop-object': eslint.Rule.RuleModule;
|
|
14910
|
+
'void-dom-elements-no-children': eslint.Rule.RuleModule;
|
|
14875
14911
|
};
|
|
14876
14912
|
configs: {
|
|
14877
14913
|
recommended: {
|
|
@@ -14989,356 +15025,19 @@ declare function importPluginJsonc(): Promise<{
|
|
|
14989
15025
|
pluginJsonc: {
|
|
14990
15026
|
meta: typeof eslint_plugin_jsonc_meta0;
|
|
14991
15027
|
configs: {
|
|
14992
|
-
base:
|
|
14993
|
-
|
|
14994
|
-
|
|
14995
|
-
|
|
14996
|
-
|
|
14997
|
-
|
|
14998
|
-
|
|
14999
|
-
|
|
15000
|
-
|
|
15001
|
-
|
|
15002
|
-
|
|
15003
|
-
|
|
15004
|
-
"
|
|
15005
|
-
extends: string[];
|
|
15006
|
-
rules: {
|
|
15007
|
-
"jsonc/auto": string;
|
|
15008
|
-
};
|
|
15009
|
-
};
|
|
15010
|
-
"recommended-with-json": {
|
|
15011
|
-
extends: string[];
|
|
15012
|
-
rules: {
|
|
15013
|
-
"jsonc/comma-dangle": string;
|
|
15014
|
-
"jsonc/no-bigint-literals": string;
|
|
15015
|
-
"jsonc/no-binary-expression": string;
|
|
15016
|
-
"jsonc/no-binary-numeric-literals": string;
|
|
15017
|
-
"jsonc/no-comments": string;
|
|
15018
|
-
"jsonc/no-dupe-keys": string;
|
|
15019
|
-
"jsonc/no-escape-sequence-in-identifier": string;
|
|
15020
|
-
"jsonc/no-floating-decimal": string;
|
|
15021
|
-
"jsonc/no-hexadecimal-numeric-literals": string;
|
|
15022
|
-
"jsonc/no-infinity": string;
|
|
15023
|
-
"jsonc/no-multi-str": string;
|
|
15024
|
-
"jsonc/no-nan": string;
|
|
15025
|
-
"jsonc/no-number-props": string;
|
|
15026
|
-
"jsonc/no-numeric-separators": string;
|
|
15027
|
-
"jsonc/no-octal-numeric-literals": string;
|
|
15028
|
-
"jsonc/no-octal": string;
|
|
15029
|
-
"jsonc/no-parenthesized": string;
|
|
15030
|
-
"jsonc/no-plus-sign": string;
|
|
15031
|
-
"jsonc/no-regexp-literals": string;
|
|
15032
|
-
"jsonc/no-sparse-arrays": string;
|
|
15033
|
-
"jsonc/no-template-literals": string;
|
|
15034
|
-
"jsonc/no-undefined-value": string;
|
|
15035
|
-
"jsonc/no-unicode-codepoint-escapes": string;
|
|
15036
|
-
"jsonc/no-useless-escape": string;
|
|
15037
|
-
"jsonc/quote-props": string;
|
|
15038
|
-
"jsonc/quotes": string;
|
|
15039
|
-
"jsonc/space-unary-ops": string;
|
|
15040
|
-
"jsonc/valid-json-number": string;
|
|
15041
|
-
"jsonc/vue-custom-block/no-parsing-error": string;
|
|
15042
|
-
};
|
|
15043
|
-
};
|
|
15044
|
-
"recommended-with-jsonc": {
|
|
15045
|
-
extends: string[];
|
|
15046
|
-
rules: {
|
|
15047
|
-
"jsonc/no-bigint-literals": string;
|
|
15048
|
-
"jsonc/no-binary-expression": string;
|
|
15049
|
-
"jsonc/no-binary-numeric-literals": string;
|
|
15050
|
-
"jsonc/no-dupe-keys": string;
|
|
15051
|
-
"jsonc/no-escape-sequence-in-identifier": string;
|
|
15052
|
-
"jsonc/no-floating-decimal": string;
|
|
15053
|
-
"jsonc/no-hexadecimal-numeric-literals": string;
|
|
15054
|
-
"jsonc/no-infinity": string;
|
|
15055
|
-
"jsonc/no-multi-str": string;
|
|
15056
|
-
"jsonc/no-nan": string;
|
|
15057
|
-
"jsonc/no-number-props": string;
|
|
15058
|
-
"jsonc/no-numeric-separators": string;
|
|
15059
|
-
"jsonc/no-octal-numeric-literals": string;
|
|
15060
|
-
"jsonc/no-octal": string;
|
|
15061
|
-
"jsonc/no-parenthesized": string;
|
|
15062
|
-
"jsonc/no-plus-sign": string;
|
|
15063
|
-
"jsonc/no-regexp-literals": string;
|
|
15064
|
-
"jsonc/no-sparse-arrays": string;
|
|
15065
|
-
"jsonc/no-template-literals": string;
|
|
15066
|
-
"jsonc/no-undefined-value": string;
|
|
15067
|
-
"jsonc/no-unicode-codepoint-escapes": string;
|
|
15068
|
-
"jsonc/no-useless-escape": string;
|
|
15069
|
-
"jsonc/quote-props": string;
|
|
15070
|
-
"jsonc/quotes": string;
|
|
15071
|
-
"jsonc/space-unary-ops": string;
|
|
15072
|
-
"jsonc/valid-json-number": string;
|
|
15073
|
-
"jsonc/vue-custom-block/no-parsing-error": string;
|
|
15074
|
-
};
|
|
15075
|
-
};
|
|
15076
|
-
"recommended-with-json5": {
|
|
15077
|
-
extends: string[];
|
|
15078
|
-
rules: {
|
|
15079
|
-
"jsonc/no-bigint-literals": string;
|
|
15080
|
-
"jsonc/no-binary-expression": string;
|
|
15081
|
-
"jsonc/no-binary-numeric-literals": string;
|
|
15082
|
-
"jsonc/no-dupe-keys": string;
|
|
15083
|
-
"jsonc/no-escape-sequence-in-identifier": string;
|
|
15084
|
-
"jsonc/no-number-props": string;
|
|
15085
|
-
"jsonc/no-numeric-separators": string;
|
|
15086
|
-
"jsonc/no-octal-numeric-literals": string;
|
|
15087
|
-
"jsonc/no-octal": string;
|
|
15088
|
-
"jsonc/no-parenthesized": string;
|
|
15089
|
-
"jsonc/no-regexp-literals": string;
|
|
15090
|
-
"jsonc/no-sparse-arrays": string;
|
|
15091
|
-
"jsonc/no-template-literals": string;
|
|
15092
|
-
"jsonc/no-undefined-value": string;
|
|
15093
|
-
"jsonc/no-unicode-codepoint-escapes": string;
|
|
15094
|
-
"jsonc/no-useless-escape": string;
|
|
15095
|
-
"jsonc/space-unary-ops": string;
|
|
15096
|
-
"jsonc/vue-custom-block/no-parsing-error": string;
|
|
15097
|
-
};
|
|
15098
|
-
};
|
|
15099
|
-
prettier: {
|
|
15100
|
-
extends: string[];
|
|
15101
|
-
rules: {
|
|
15102
|
-
"jsonc/array-bracket-newline": string;
|
|
15103
|
-
"jsonc/array-bracket-spacing": string;
|
|
15104
|
-
"jsonc/array-element-newline": string;
|
|
15105
|
-
"jsonc/comma-dangle": string;
|
|
15106
|
-
"jsonc/comma-style": string;
|
|
15107
|
-
"jsonc/indent": string;
|
|
15108
|
-
"jsonc/key-spacing": string;
|
|
15109
|
-
"jsonc/no-floating-decimal": string;
|
|
15110
|
-
"jsonc/object-curly-newline": string;
|
|
15111
|
-
"jsonc/object-curly-spacing": string;
|
|
15112
|
-
"jsonc/object-property-newline": string;
|
|
15113
|
-
"jsonc/quote-props": string;
|
|
15114
|
-
"jsonc/quotes": string;
|
|
15115
|
-
"jsonc/space-unary-ops": string;
|
|
15116
|
-
};
|
|
15117
|
-
};
|
|
15118
|
-
all: {
|
|
15119
|
-
extends: string[];
|
|
15120
|
-
rules: {
|
|
15121
|
-
[x: string]: string;
|
|
15122
|
-
};
|
|
15123
|
-
};
|
|
15124
|
-
"flat/base": ({
|
|
15125
|
-
plugins: {
|
|
15126
|
-
readonly jsonc: eslint0.ESLint.Plugin;
|
|
15127
|
-
};
|
|
15128
|
-
files?: undefined;
|
|
15129
|
-
languageOptions?: undefined;
|
|
15130
|
-
rules?: undefined;
|
|
15131
|
-
} | {
|
|
15132
|
-
files: string[];
|
|
15133
|
-
languageOptions: {
|
|
15134
|
-
parser: typeof jsonc_eslint_parser0;
|
|
15135
|
-
};
|
|
15136
|
-
rules: {
|
|
15137
|
-
strict: "off";
|
|
15138
|
-
"no-unused-expressions": "off";
|
|
15139
|
-
"no-unused-vars": "off";
|
|
15140
|
-
};
|
|
15141
|
-
plugins?: undefined;
|
|
15142
|
-
})[];
|
|
15143
|
-
"flat/recommended-with-json": ({
|
|
15144
|
-
plugins: {
|
|
15145
|
-
readonly jsonc: eslint0.ESLint.Plugin;
|
|
15146
|
-
};
|
|
15147
|
-
files?: undefined;
|
|
15148
|
-
languageOptions?: undefined;
|
|
15149
|
-
rules?: undefined;
|
|
15150
|
-
} | {
|
|
15151
|
-
files: string[];
|
|
15152
|
-
languageOptions: {
|
|
15153
|
-
parser: typeof jsonc_eslint_parser0;
|
|
15154
|
-
};
|
|
15155
|
-
rules: {
|
|
15156
|
-
strict: "off";
|
|
15157
|
-
"no-unused-expressions": "off";
|
|
15158
|
-
"no-unused-vars": "off";
|
|
15159
|
-
};
|
|
15160
|
-
plugins?: undefined;
|
|
15161
|
-
} | {
|
|
15162
|
-
rules: {
|
|
15163
|
-
"jsonc/comma-dangle": "error";
|
|
15164
|
-
"jsonc/no-bigint-literals": "error";
|
|
15165
|
-
"jsonc/no-binary-expression": "error";
|
|
15166
|
-
"jsonc/no-binary-numeric-literals": "error";
|
|
15167
|
-
"jsonc/no-comments": "error";
|
|
15168
|
-
"jsonc/no-dupe-keys": "error";
|
|
15169
|
-
"jsonc/no-escape-sequence-in-identifier": "error";
|
|
15170
|
-
"jsonc/no-floating-decimal": "error";
|
|
15171
|
-
"jsonc/no-hexadecimal-numeric-literals": "error";
|
|
15172
|
-
"jsonc/no-infinity": "error";
|
|
15173
|
-
"jsonc/no-multi-str": "error";
|
|
15174
|
-
"jsonc/no-nan": "error";
|
|
15175
|
-
"jsonc/no-number-props": "error";
|
|
15176
|
-
"jsonc/no-numeric-separators": "error";
|
|
15177
|
-
"jsonc/no-octal-numeric-literals": "error";
|
|
15178
|
-
"jsonc/no-octal": "error";
|
|
15179
|
-
"jsonc/no-parenthesized": "error";
|
|
15180
|
-
"jsonc/no-plus-sign": "error";
|
|
15181
|
-
"jsonc/no-regexp-literals": "error";
|
|
15182
|
-
"jsonc/no-sparse-arrays": "error";
|
|
15183
|
-
"jsonc/no-template-literals": "error";
|
|
15184
|
-
"jsonc/no-undefined-value": "error";
|
|
15185
|
-
"jsonc/no-unicode-codepoint-escapes": "error";
|
|
15186
|
-
"jsonc/no-useless-escape": "error";
|
|
15187
|
-
"jsonc/quote-props": "error";
|
|
15188
|
-
"jsonc/quotes": "error";
|
|
15189
|
-
"jsonc/space-unary-ops": "error";
|
|
15190
|
-
"jsonc/valid-json-number": "error";
|
|
15191
|
-
"jsonc/vue-custom-block/no-parsing-error": "error";
|
|
15192
|
-
};
|
|
15193
|
-
})[];
|
|
15194
|
-
"flat/recommended-with-jsonc": ({
|
|
15195
|
-
plugins: {
|
|
15196
|
-
readonly jsonc: eslint0.ESLint.Plugin;
|
|
15197
|
-
};
|
|
15198
|
-
files?: undefined;
|
|
15199
|
-
languageOptions?: undefined;
|
|
15200
|
-
rules?: undefined;
|
|
15201
|
-
} | {
|
|
15202
|
-
files: string[];
|
|
15203
|
-
languageOptions: {
|
|
15204
|
-
parser: typeof jsonc_eslint_parser0;
|
|
15205
|
-
};
|
|
15206
|
-
rules: {
|
|
15207
|
-
strict: "off";
|
|
15208
|
-
"no-unused-expressions": "off";
|
|
15209
|
-
"no-unused-vars": "off";
|
|
15210
|
-
};
|
|
15211
|
-
plugins?: undefined;
|
|
15212
|
-
} | {
|
|
15213
|
-
rules: {
|
|
15214
|
-
"jsonc/no-bigint-literals": "error";
|
|
15215
|
-
"jsonc/no-binary-expression": "error";
|
|
15216
|
-
"jsonc/no-binary-numeric-literals": "error";
|
|
15217
|
-
"jsonc/no-dupe-keys": "error";
|
|
15218
|
-
"jsonc/no-escape-sequence-in-identifier": "error";
|
|
15219
|
-
"jsonc/no-floating-decimal": "error";
|
|
15220
|
-
"jsonc/no-hexadecimal-numeric-literals": "error";
|
|
15221
|
-
"jsonc/no-infinity": "error";
|
|
15222
|
-
"jsonc/no-multi-str": "error";
|
|
15223
|
-
"jsonc/no-nan": "error";
|
|
15224
|
-
"jsonc/no-number-props": "error";
|
|
15225
|
-
"jsonc/no-numeric-separators": "error";
|
|
15226
|
-
"jsonc/no-octal-numeric-literals": "error";
|
|
15227
|
-
"jsonc/no-octal": "error";
|
|
15228
|
-
"jsonc/no-parenthesized": "error";
|
|
15229
|
-
"jsonc/no-plus-sign": "error";
|
|
15230
|
-
"jsonc/no-regexp-literals": "error";
|
|
15231
|
-
"jsonc/no-sparse-arrays": "error";
|
|
15232
|
-
"jsonc/no-template-literals": "error";
|
|
15233
|
-
"jsonc/no-undefined-value": "error";
|
|
15234
|
-
"jsonc/no-unicode-codepoint-escapes": "error";
|
|
15235
|
-
"jsonc/no-useless-escape": "error";
|
|
15236
|
-
"jsonc/quote-props": "error";
|
|
15237
|
-
"jsonc/quotes": "error";
|
|
15238
|
-
"jsonc/space-unary-ops": "error";
|
|
15239
|
-
"jsonc/valid-json-number": "error";
|
|
15240
|
-
"jsonc/vue-custom-block/no-parsing-error": "error";
|
|
15241
|
-
};
|
|
15242
|
-
})[];
|
|
15243
|
-
"flat/recommended-with-json5": ({
|
|
15244
|
-
plugins: {
|
|
15245
|
-
readonly jsonc: eslint0.ESLint.Plugin;
|
|
15246
|
-
};
|
|
15247
|
-
files?: undefined;
|
|
15248
|
-
languageOptions?: undefined;
|
|
15249
|
-
rules?: undefined;
|
|
15250
|
-
} | {
|
|
15251
|
-
files: string[];
|
|
15252
|
-
languageOptions: {
|
|
15253
|
-
parser: typeof jsonc_eslint_parser0;
|
|
15254
|
-
};
|
|
15255
|
-
rules: {
|
|
15256
|
-
strict: "off";
|
|
15257
|
-
"no-unused-expressions": "off";
|
|
15258
|
-
"no-unused-vars": "off";
|
|
15259
|
-
};
|
|
15260
|
-
plugins?: undefined;
|
|
15261
|
-
} | {
|
|
15262
|
-
rules: {
|
|
15263
|
-
"jsonc/no-bigint-literals": "error";
|
|
15264
|
-
"jsonc/no-binary-expression": "error";
|
|
15265
|
-
"jsonc/no-binary-numeric-literals": "error";
|
|
15266
|
-
"jsonc/no-dupe-keys": "error";
|
|
15267
|
-
"jsonc/no-escape-sequence-in-identifier": "error";
|
|
15268
|
-
"jsonc/no-number-props": "error";
|
|
15269
|
-
"jsonc/no-numeric-separators": "error";
|
|
15270
|
-
"jsonc/no-octal-numeric-literals": "error";
|
|
15271
|
-
"jsonc/no-octal": "error";
|
|
15272
|
-
"jsonc/no-parenthesized": "error";
|
|
15273
|
-
"jsonc/no-regexp-literals": "error";
|
|
15274
|
-
"jsonc/no-sparse-arrays": "error";
|
|
15275
|
-
"jsonc/no-template-literals": "error";
|
|
15276
|
-
"jsonc/no-undefined-value": "error";
|
|
15277
|
-
"jsonc/no-unicode-codepoint-escapes": "error";
|
|
15278
|
-
"jsonc/no-useless-escape": "error";
|
|
15279
|
-
"jsonc/space-unary-ops": "error";
|
|
15280
|
-
"jsonc/vue-custom-block/no-parsing-error": "error";
|
|
15281
|
-
};
|
|
15282
|
-
})[];
|
|
15283
|
-
"flat/prettier": ({
|
|
15284
|
-
plugins: {
|
|
15285
|
-
readonly jsonc: eslint0.ESLint.Plugin;
|
|
15286
|
-
};
|
|
15287
|
-
files?: undefined;
|
|
15288
|
-
languageOptions?: undefined;
|
|
15289
|
-
rules?: undefined;
|
|
15290
|
-
} | {
|
|
15291
|
-
files: string[];
|
|
15292
|
-
languageOptions: {
|
|
15293
|
-
parser: typeof jsonc_eslint_parser0;
|
|
15294
|
-
};
|
|
15295
|
-
rules: {
|
|
15296
|
-
strict: "off";
|
|
15297
|
-
"no-unused-expressions": "off";
|
|
15298
|
-
"no-unused-vars": "off";
|
|
15299
|
-
};
|
|
15300
|
-
plugins?: undefined;
|
|
15301
|
-
} | {
|
|
15302
|
-
rules: {
|
|
15303
|
-
"jsonc/array-bracket-newline": "off";
|
|
15304
|
-
"jsonc/array-bracket-spacing": "off";
|
|
15305
|
-
"jsonc/array-element-newline": "off";
|
|
15306
|
-
"jsonc/comma-dangle": "off";
|
|
15307
|
-
"jsonc/comma-style": "off";
|
|
15308
|
-
"jsonc/indent": "off";
|
|
15309
|
-
"jsonc/key-spacing": "off";
|
|
15310
|
-
"jsonc/no-floating-decimal": "off";
|
|
15311
|
-
"jsonc/object-curly-newline": "off";
|
|
15312
|
-
"jsonc/object-curly-spacing": "off";
|
|
15313
|
-
"jsonc/object-property-newline": "off";
|
|
15314
|
-
"jsonc/quote-props": "off";
|
|
15315
|
-
"jsonc/quotes": "off";
|
|
15316
|
-
"jsonc/space-unary-ops": "off";
|
|
15317
|
-
};
|
|
15318
|
-
})[];
|
|
15319
|
-
"flat/all": ({
|
|
15320
|
-
plugins: {
|
|
15321
|
-
readonly jsonc: eslint0.ESLint.Plugin;
|
|
15322
|
-
};
|
|
15323
|
-
files?: undefined;
|
|
15324
|
-
languageOptions?: undefined;
|
|
15325
|
-
rules?: undefined;
|
|
15326
|
-
} | {
|
|
15327
|
-
files: string[];
|
|
15328
|
-
languageOptions: {
|
|
15329
|
-
parser: typeof jsonc_eslint_parser0;
|
|
15330
|
-
};
|
|
15331
|
-
rules: {
|
|
15332
|
-
strict: "off";
|
|
15333
|
-
"no-unused-expressions": "off";
|
|
15334
|
-
"no-unused-vars": "off";
|
|
15335
|
-
};
|
|
15336
|
-
plugins?: undefined;
|
|
15337
|
-
} | {
|
|
15338
|
-
rules: {
|
|
15339
|
-
[rule: string]: eslint0.Linter.RuleEntry<any[]>;
|
|
15340
|
-
};
|
|
15341
|
-
})[];
|
|
15028
|
+
base: eslint.Linter.LegacyConfig;
|
|
15029
|
+
"auto-config": eslint.Linter.LegacyConfig;
|
|
15030
|
+
"recommended-with-json": eslint.Linter.LegacyConfig;
|
|
15031
|
+
"recommended-with-jsonc": eslint.Linter.LegacyConfig;
|
|
15032
|
+
"recommended-with-json5": eslint.Linter.LegacyConfig;
|
|
15033
|
+
prettier: eslint.Linter.LegacyConfig;
|
|
15034
|
+
all: eslint.Linter.LegacyConfig;
|
|
15035
|
+
"flat/base": eslint.Linter.Config[];
|
|
15036
|
+
"flat/recommended-with-json": eslint.Linter.Config[];
|
|
15037
|
+
"flat/recommended-with-jsonc": eslint.Linter.Config[];
|
|
15038
|
+
"flat/recommended-with-json5": eslint.Linter.Config[];
|
|
15039
|
+
"flat/prettier": eslint.Linter.Config[];
|
|
15040
|
+
"flat/all": eslint.Linter.Config[];
|
|
15342
15041
|
};
|
|
15343
15042
|
rules: {
|
|
15344
15043
|
[key: string]: eslint_plugin_jsonc_types0.RuleModule<unknown[]>;
|
|
@@ -15354,356 +15053,19 @@ declare function importJsoncLibs(): Promise<{
|
|
|
15354
15053
|
pluginJsonc: {
|
|
15355
15054
|
meta: typeof eslint_plugin_jsonc_meta0;
|
|
15356
15055
|
configs: {
|
|
15357
|
-
base:
|
|
15358
|
-
|
|
15359
|
-
|
|
15360
|
-
|
|
15361
|
-
|
|
15362
|
-
|
|
15363
|
-
|
|
15364
|
-
|
|
15365
|
-
|
|
15366
|
-
|
|
15367
|
-
|
|
15368
|
-
|
|
15369
|
-
"
|
|
15370
|
-
extends: string[];
|
|
15371
|
-
rules: {
|
|
15372
|
-
"jsonc/auto": string;
|
|
15373
|
-
};
|
|
15374
|
-
};
|
|
15375
|
-
"recommended-with-json": {
|
|
15376
|
-
extends: string[];
|
|
15377
|
-
rules: {
|
|
15378
|
-
"jsonc/comma-dangle": string;
|
|
15379
|
-
"jsonc/no-bigint-literals": string;
|
|
15380
|
-
"jsonc/no-binary-expression": string;
|
|
15381
|
-
"jsonc/no-binary-numeric-literals": string;
|
|
15382
|
-
"jsonc/no-comments": string;
|
|
15383
|
-
"jsonc/no-dupe-keys": string;
|
|
15384
|
-
"jsonc/no-escape-sequence-in-identifier": string;
|
|
15385
|
-
"jsonc/no-floating-decimal": string;
|
|
15386
|
-
"jsonc/no-hexadecimal-numeric-literals": string;
|
|
15387
|
-
"jsonc/no-infinity": string;
|
|
15388
|
-
"jsonc/no-multi-str": string;
|
|
15389
|
-
"jsonc/no-nan": string;
|
|
15390
|
-
"jsonc/no-number-props": string;
|
|
15391
|
-
"jsonc/no-numeric-separators": string;
|
|
15392
|
-
"jsonc/no-octal-numeric-literals": string;
|
|
15393
|
-
"jsonc/no-octal": string;
|
|
15394
|
-
"jsonc/no-parenthesized": string;
|
|
15395
|
-
"jsonc/no-plus-sign": string;
|
|
15396
|
-
"jsonc/no-regexp-literals": string;
|
|
15397
|
-
"jsonc/no-sparse-arrays": string;
|
|
15398
|
-
"jsonc/no-template-literals": string;
|
|
15399
|
-
"jsonc/no-undefined-value": string;
|
|
15400
|
-
"jsonc/no-unicode-codepoint-escapes": string;
|
|
15401
|
-
"jsonc/no-useless-escape": string;
|
|
15402
|
-
"jsonc/quote-props": string;
|
|
15403
|
-
"jsonc/quotes": string;
|
|
15404
|
-
"jsonc/space-unary-ops": string;
|
|
15405
|
-
"jsonc/valid-json-number": string;
|
|
15406
|
-
"jsonc/vue-custom-block/no-parsing-error": string;
|
|
15407
|
-
};
|
|
15408
|
-
};
|
|
15409
|
-
"recommended-with-jsonc": {
|
|
15410
|
-
extends: string[];
|
|
15411
|
-
rules: {
|
|
15412
|
-
"jsonc/no-bigint-literals": string;
|
|
15413
|
-
"jsonc/no-binary-expression": string;
|
|
15414
|
-
"jsonc/no-binary-numeric-literals": string;
|
|
15415
|
-
"jsonc/no-dupe-keys": string;
|
|
15416
|
-
"jsonc/no-escape-sequence-in-identifier": string;
|
|
15417
|
-
"jsonc/no-floating-decimal": string;
|
|
15418
|
-
"jsonc/no-hexadecimal-numeric-literals": string;
|
|
15419
|
-
"jsonc/no-infinity": string;
|
|
15420
|
-
"jsonc/no-multi-str": string;
|
|
15421
|
-
"jsonc/no-nan": string;
|
|
15422
|
-
"jsonc/no-number-props": string;
|
|
15423
|
-
"jsonc/no-numeric-separators": string;
|
|
15424
|
-
"jsonc/no-octal-numeric-literals": string;
|
|
15425
|
-
"jsonc/no-octal": string;
|
|
15426
|
-
"jsonc/no-parenthesized": string;
|
|
15427
|
-
"jsonc/no-plus-sign": string;
|
|
15428
|
-
"jsonc/no-regexp-literals": string;
|
|
15429
|
-
"jsonc/no-sparse-arrays": string;
|
|
15430
|
-
"jsonc/no-template-literals": string;
|
|
15431
|
-
"jsonc/no-undefined-value": string;
|
|
15432
|
-
"jsonc/no-unicode-codepoint-escapes": string;
|
|
15433
|
-
"jsonc/no-useless-escape": string;
|
|
15434
|
-
"jsonc/quote-props": string;
|
|
15435
|
-
"jsonc/quotes": string;
|
|
15436
|
-
"jsonc/space-unary-ops": string;
|
|
15437
|
-
"jsonc/valid-json-number": string;
|
|
15438
|
-
"jsonc/vue-custom-block/no-parsing-error": string;
|
|
15439
|
-
};
|
|
15440
|
-
};
|
|
15441
|
-
"recommended-with-json5": {
|
|
15442
|
-
extends: string[];
|
|
15443
|
-
rules: {
|
|
15444
|
-
"jsonc/no-bigint-literals": string;
|
|
15445
|
-
"jsonc/no-binary-expression": string;
|
|
15446
|
-
"jsonc/no-binary-numeric-literals": string;
|
|
15447
|
-
"jsonc/no-dupe-keys": string;
|
|
15448
|
-
"jsonc/no-escape-sequence-in-identifier": string;
|
|
15449
|
-
"jsonc/no-number-props": string;
|
|
15450
|
-
"jsonc/no-numeric-separators": string;
|
|
15451
|
-
"jsonc/no-octal-numeric-literals": string;
|
|
15452
|
-
"jsonc/no-octal": string;
|
|
15453
|
-
"jsonc/no-parenthesized": string;
|
|
15454
|
-
"jsonc/no-regexp-literals": string;
|
|
15455
|
-
"jsonc/no-sparse-arrays": string;
|
|
15456
|
-
"jsonc/no-template-literals": string;
|
|
15457
|
-
"jsonc/no-undefined-value": string;
|
|
15458
|
-
"jsonc/no-unicode-codepoint-escapes": string;
|
|
15459
|
-
"jsonc/no-useless-escape": string;
|
|
15460
|
-
"jsonc/space-unary-ops": string;
|
|
15461
|
-
"jsonc/vue-custom-block/no-parsing-error": string;
|
|
15462
|
-
};
|
|
15463
|
-
};
|
|
15464
|
-
prettier: {
|
|
15465
|
-
extends: string[];
|
|
15466
|
-
rules: {
|
|
15467
|
-
"jsonc/array-bracket-newline": string;
|
|
15468
|
-
"jsonc/array-bracket-spacing": string;
|
|
15469
|
-
"jsonc/array-element-newline": string;
|
|
15470
|
-
"jsonc/comma-dangle": string;
|
|
15471
|
-
"jsonc/comma-style": string;
|
|
15472
|
-
"jsonc/indent": string;
|
|
15473
|
-
"jsonc/key-spacing": string;
|
|
15474
|
-
"jsonc/no-floating-decimal": string;
|
|
15475
|
-
"jsonc/object-curly-newline": string;
|
|
15476
|
-
"jsonc/object-curly-spacing": string;
|
|
15477
|
-
"jsonc/object-property-newline": string;
|
|
15478
|
-
"jsonc/quote-props": string;
|
|
15479
|
-
"jsonc/quotes": string;
|
|
15480
|
-
"jsonc/space-unary-ops": string;
|
|
15481
|
-
};
|
|
15482
|
-
};
|
|
15483
|
-
all: {
|
|
15484
|
-
extends: string[];
|
|
15485
|
-
rules: {
|
|
15486
|
-
[x: string]: string;
|
|
15487
|
-
};
|
|
15488
|
-
};
|
|
15489
|
-
"flat/base": ({
|
|
15490
|
-
plugins: {
|
|
15491
|
-
readonly jsonc: eslint0.ESLint.Plugin;
|
|
15492
|
-
};
|
|
15493
|
-
files?: undefined;
|
|
15494
|
-
languageOptions?: undefined;
|
|
15495
|
-
rules?: undefined;
|
|
15496
|
-
} | {
|
|
15497
|
-
files: string[];
|
|
15498
|
-
languageOptions: {
|
|
15499
|
-
parser: typeof jsonc_eslint_parser0;
|
|
15500
|
-
};
|
|
15501
|
-
rules: {
|
|
15502
|
-
strict: "off";
|
|
15503
|
-
"no-unused-expressions": "off";
|
|
15504
|
-
"no-unused-vars": "off";
|
|
15505
|
-
};
|
|
15506
|
-
plugins?: undefined;
|
|
15507
|
-
})[];
|
|
15508
|
-
"flat/recommended-with-json": ({
|
|
15509
|
-
plugins: {
|
|
15510
|
-
readonly jsonc: eslint0.ESLint.Plugin;
|
|
15511
|
-
};
|
|
15512
|
-
files?: undefined;
|
|
15513
|
-
languageOptions?: undefined;
|
|
15514
|
-
rules?: undefined;
|
|
15515
|
-
} | {
|
|
15516
|
-
files: string[];
|
|
15517
|
-
languageOptions: {
|
|
15518
|
-
parser: typeof jsonc_eslint_parser0;
|
|
15519
|
-
};
|
|
15520
|
-
rules: {
|
|
15521
|
-
strict: "off";
|
|
15522
|
-
"no-unused-expressions": "off";
|
|
15523
|
-
"no-unused-vars": "off";
|
|
15524
|
-
};
|
|
15525
|
-
plugins?: undefined;
|
|
15526
|
-
} | {
|
|
15527
|
-
rules: {
|
|
15528
|
-
"jsonc/comma-dangle": "error";
|
|
15529
|
-
"jsonc/no-bigint-literals": "error";
|
|
15530
|
-
"jsonc/no-binary-expression": "error";
|
|
15531
|
-
"jsonc/no-binary-numeric-literals": "error";
|
|
15532
|
-
"jsonc/no-comments": "error";
|
|
15533
|
-
"jsonc/no-dupe-keys": "error";
|
|
15534
|
-
"jsonc/no-escape-sequence-in-identifier": "error";
|
|
15535
|
-
"jsonc/no-floating-decimal": "error";
|
|
15536
|
-
"jsonc/no-hexadecimal-numeric-literals": "error";
|
|
15537
|
-
"jsonc/no-infinity": "error";
|
|
15538
|
-
"jsonc/no-multi-str": "error";
|
|
15539
|
-
"jsonc/no-nan": "error";
|
|
15540
|
-
"jsonc/no-number-props": "error";
|
|
15541
|
-
"jsonc/no-numeric-separators": "error";
|
|
15542
|
-
"jsonc/no-octal-numeric-literals": "error";
|
|
15543
|
-
"jsonc/no-octal": "error";
|
|
15544
|
-
"jsonc/no-parenthesized": "error";
|
|
15545
|
-
"jsonc/no-plus-sign": "error";
|
|
15546
|
-
"jsonc/no-regexp-literals": "error";
|
|
15547
|
-
"jsonc/no-sparse-arrays": "error";
|
|
15548
|
-
"jsonc/no-template-literals": "error";
|
|
15549
|
-
"jsonc/no-undefined-value": "error";
|
|
15550
|
-
"jsonc/no-unicode-codepoint-escapes": "error";
|
|
15551
|
-
"jsonc/no-useless-escape": "error";
|
|
15552
|
-
"jsonc/quote-props": "error";
|
|
15553
|
-
"jsonc/quotes": "error";
|
|
15554
|
-
"jsonc/space-unary-ops": "error";
|
|
15555
|
-
"jsonc/valid-json-number": "error";
|
|
15556
|
-
"jsonc/vue-custom-block/no-parsing-error": "error";
|
|
15557
|
-
};
|
|
15558
|
-
})[];
|
|
15559
|
-
"flat/recommended-with-jsonc": ({
|
|
15560
|
-
plugins: {
|
|
15561
|
-
readonly jsonc: eslint0.ESLint.Plugin;
|
|
15562
|
-
};
|
|
15563
|
-
files?: undefined;
|
|
15564
|
-
languageOptions?: undefined;
|
|
15565
|
-
rules?: undefined;
|
|
15566
|
-
} | {
|
|
15567
|
-
files: string[];
|
|
15568
|
-
languageOptions: {
|
|
15569
|
-
parser: typeof jsonc_eslint_parser0;
|
|
15570
|
-
};
|
|
15571
|
-
rules: {
|
|
15572
|
-
strict: "off";
|
|
15573
|
-
"no-unused-expressions": "off";
|
|
15574
|
-
"no-unused-vars": "off";
|
|
15575
|
-
};
|
|
15576
|
-
plugins?: undefined;
|
|
15577
|
-
} | {
|
|
15578
|
-
rules: {
|
|
15579
|
-
"jsonc/no-bigint-literals": "error";
|
|
15580
|
-
"jsonc/no-binary-expression": "error";
|
|
15581
|
-
"jsonc/no-binary-numeric-literals": "error";
|
|
15582
|
-
"jsonc/no-dupe-keys": "error";
|
|
15583
|
-
"jsonc/no-escape-sequence-in-identifier": "error";
|
|
15584
|
-
"jsonc/no-floating-decimal": "error";
|
|
15585
|
-
"jsonc/no-hexadecimal-numeric-literals": "error";
|
|
15586
|
-
"jsonc/no-infinity": "error";
|
|
15587
|
-
"jsonc/no-multi-str": "error";
|
|
15588
|
-
"jsonc/no-nan": "error";
|
|
15589
|
-
"jsonc/no-number-props": "error";
|
|
15590
|
-
"jsonc/no-numeric-separators": "error";
|
|
15591
|
-
"jsonc/no-octal-numeric-literals": "error";
|
|
15592
|
-
"jsonc/no-octal": "error";
|
|
15593
|
-
"jsonc/no-parenthesized": "error";
|
|
15594
|
-
"jsonc/no-plus-sign": "error";
|
|
15595
|
-
"jsonc/no-regexp-literals": "error";
|
|
15596
|
-
"jsonc/no-sparse-arrays": "error";
|
|
15597
|
-
"jsonc/no-template-literals": "error";
|
|
15598
|
-
"jsonc/no-undefined-value": "error";
|
|
15599
|
-
"jsonc/no-unicode-codepoint-escapes": "error";
|
|
15600
|
-
"jsonc/no-useless-escape": "error";
|
|
15601
|
-
"jsonc/quote-props": "error";
|
|
15602
|
-
"jsonc/quotes": "error";
|
|
15603
|
-
"jsonc/space-unary-ops": "error";
|
|
15604
|
-
"jsonc/valid-json-number": "error";
|
|
15605
|
-
"jsonc/vue-custom-block/no-parsing-error": "error";
|
|
15606
|
-
};
|
|
15607
|
-
})[];
|
|
15608
|
-
"flat/recommended-with-json5": ({
|
|
15609
|
-
plugins: {
|
|
15610
|
-
readonly jsonc: eslint0.ESLint.Plugin;
|
|
15611
|
-
};
|
|
15612
|
-
files?: undefined;
|
|
15613
|
-
languageOptions?: undefined;
|
|
15614
|
-
rules?: undefined;
|
|
15615
|
-
} | {
|
|
15616
|
-
files: string[];
|
|
15617
|
-
languageOptions: {
|
|
15618
|
-
parser: typeof jsonc_eslint_parser0;
|
|
15619
|
-
};
|
|
15620
|
-
rules: {
|
|
15621
|
-
strict: "off";
|
|
15622
|
-
"no-unused-expressions": "off";
|
|
15623
|
-
"no-unused-vars": "off";
|
|
15624
|
-
};
|
|
15625
|
-
plugins?: undefined;
|
|
15626
|
-
} | {
|
|
15627
|
-
rules: {
|
|
15628
|
-
"jsonc/no-bigint-literals": "error";
|
|
15629
|
-
"jsonc/no-binary-expression": "error";
|
|
15630
|
-
"jsonc/no-binary-numeric-literals": "error";
|
|
15631
|
-
"jsonc/no-dupe-keys": "error";
|
|
15632
|
-
"jsonc/no-escape-sequence-in-identifier": "error";
|
|
15633
|
-
"jsonc/no-number-props": "error";
|
|
15634
|
-
"jsonc/no-numeric-separators": "error";
|
|
15635
|
-
"jsonc/no-octal-numeric-literals": "error";
|
|
15636
|
-
"jsonc/no-octal": "error";
|
|
15637
|
-
"jsonc/no-parenthesized": "error";
|
|
15638
|
-
"jsonc/no-regexp-literals": "error";
|
|
15639
|
-
"jsonc/no-sparse-arrays": "error";
|
|
15640
|
-
"jsonc/no-template-literals": "error";
|
|
15641
|
-
"jsonc/no-undefined-value": "error";
|
|
15642
|
-
"jsonc/no-unicode-codepoint-escapes": "error";
|
|
15643
|
-
"jsonc/no-useless-escape": "error";
|
|
15644
|
-
"jsonc/space-unary-ops": "error";
|
|
15645
|
-
"jsonc/vue-custom-block/no-parsing-error": "error";
|
|
15646
|
-
};
|
|
15647
|
-
})[];
|
|
15648
|
-
"flat/prettier": ({
|
|
15649
|
-
plugins: {
|
|
15650
|
-
readonly jsonc: eslint0.ESLint.Plugin;
|
|
15651
|
-
};
|
|
15652
|
-
files?: undefined;
|
|
15653
|
-
languageOptions?: undefined;
|
|
15654
|
-
rules?: undefined;
|
|
15655
|
-
} | {
|
|
15656
|
-
files: string[];
|
|
15657
|
-
languageOptions: {
|
|
15658
|
-
parser: typeof jsonc_eslint_parser0;
|
|
15659
|
-
};
|
|
15660
|
-
rules: {
|
|
15661
|
-
strict: "off";
|
|
15662
|
-
"no-unused-expressions": "off";
|
|
15663
|
-
"no-unused-vars": "off";
|
|
15664
|
-
};
|
|
15665
|
-
plugins?: undefined;
|
|
15666
|
-
} | {
|
|
15667
|
-
rules: {
|
|
15668
|
-
"jsonc/array-bracket-newline": "off";
|
|
15669
|
-
"jsonc/array-bracket-spacing": "off";
|
|
15670
|
-
"jsonc/array-element-newline": "off";
|
|
15671
|
-
"jsonc/comma-dangle": "off";
|
|
15672
|
-
"jsonc/comma-style": "off";
|
|
15673
|
-
"jsonc/indent": "off";
|
|
15674
|
-
"jsonc/key-spacing": "off";
|
|
15675
|
-
"jsonc/no-floating-decimal": "off";
|
|
15676
|
-
"jsonc/object-curly-newline": "off";
|
|
15677
|
-
"jsonc/object-curly-spacing": "off";
|
|
15678
|
-
"jsonc/object-property-newline": "off";
|
|
15679
|
-
"jsonc/quote-props": "off";
|
|
15680
|
-
"jsonc/quotes": "off";
|
|
15681
|
-
"jsonc/space-unary-ops": "off";
|
|
15682
|
-
};
|
|
15683
|
-
})[];
|
|
15684
|
-
"flat/all": ({
|
|
15685
|
-
plugins: {
|
|
15686
|
-
readonly jsonc: eslint0.ESLint.Plugin;
|
|
15687
|
-
};
|
|
15688
|
-
files?: undefined;
|
|
15689
|
-
languageOptions?: undefined;
|
|
15690
|
-
rules?: undefined;
|
|
15691
|
-
} | {
|
|
15692
|
-
files: string[];
|
|
15693
|
-
languageOptions: {
|
|
15694
|
-
parser: typeof jsonc_eslint_parser0;
|
|
15695
|
-
};
|
|
15696
|
-
rules: {
|
|
15697
|
-
strict: "off";
|
|
15698
|
-
"no-unused-expressions": "off";
|
|
15699
|
-
"no-unused-vars": "off";
|
|
15700
|
-
};
|
|
15701
|
-
plugins?: undefined;
|
|
15702
|
-
} | {
|
|
15703
|
-
rules: {
|
|
15704
|
-
[rule: string]: eslint0.Linter.RuleEntry<any[]>;
|
|
15705
|
-
};
|
|
15706
|
-
})[];
|
|
15056
|
+
base: eslint.Linter.LegacyConfig;
|
|
15057
|
+
"auto-config": eslint.Linter.LegacyConfig;
|
|
15058
|
+
"recommended-with-json": eslint.Linter.LegacyConfig;
|
|
15059
|
+
"recommended-with-jsonc": eslint.Linter.LegacyConfig;
|
|
15060
|
+
"recommended-with-json5": eslint.Linter.LegacyConfig;
|
|
15061
|
+
prettier: eslint.Linter.LegacyConfig;
|
|
15062
|
+
all: eslint.Linter.LegacyConfig;
|
|
15063
|
+
"flat/base": eslint.Linter.Config[];
|
|
15064
|
+
"flat/recommended-with-json": eslint.Linter.Config[];
|
|
15065
|
+
"flat/recommended-with-jsonc": eslint.Linter.Config[];
|
|
15066
|
+
"flat/recommended-with-json5": eslint.Linter.Config[];
|
|
15067
|
+
"flat/prettier": eslint.Linter.Config[];
|
|
15068
|
+
"flat/all": eslint.Linter.Config[];
|
|
15707
15069
|
};
|
|
15708
15070
|
rules: {
|
|
15709
15071
|
[key: string]: eslint_plugin_jsonc_types0.RuleModule<unknown[]>;
|
|
@@ -15727,7 +15089,7 @@ declare function importPluginTsdoc(): Promise<{
|
|
|
15727
15089
|
declare function importPluginStylistic(): Promise<{
|
|
15728
15090
|
pluginStylistic: {
|
|
15729
15091
|
rules: _stylistic_eslint_plugin0.Rules;
|
|
15730
|
-
configs:
|
|
15092
|
+
configs: eslint.ESLint.Plugin["configs"] & _stylistic_eslint_plugin0.Configs;
|
|
15731
15093
|
};
|
|
15732
15094
|
}>;
|
|
15733
15095
|
//#endregion
|
|
@@ -15804,4 +15166,4 @@ declare function changeRuleEntrySeverity(ruleConfig: Linter.RuleEntry<any>, leve
|
|
|
15804
15166
|
declare function error2warn<T extends Config>(configs: T[]): T[];
|
|
15805
15167
|
declare function warn2error<T extends Config>(configs: T[]): T[];
|
|
15806
15168
|
//#endregion
|
|
15807
|
-
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, interopDefault, isCI, isInEditor, jsseReact, parserPlain, parserTs, pluginAntfu, pluginDeMorgan, pluginEslintComments, pluginImportLite, pluginN, pluginPerfectionist, pluginPnpm, pluginTs, pluginUnicorn, pluginUnusedImports, renameRules, turnOffRules, uniqueStrings, warn2error };
|
|
15169
|
+
export { Awaitable, Config, EslintConfigFn, type JavascriptRuleOptions, LanguageOptions, OptionsCommon, OptionsComponentExts, OptionsConfig, OptionsFiles, OptionsHasTypeScript, OptionsIsInEditor, OptionsOverrides, OptionsPrefix, OptionsReact, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, RenamePefix, RuleName, RulesRecord, SLOW_RULES, StylisticConfig, TailwindEslintSettings, TailwindOptions, TypedFlatConfigItemWithId, TypescriptConfigRules, UnPromise, VERSION, changeRuleEntrySeverity, combine, combineAsync, jsse as default, jsse, defineConfig, error2warn, globs_d_exports as globs, importJsoncLibs, importParserJsonc, importPluginJsonc, importPluginMarkdown, importPluginReact, importPluginReactRefresh, importPluginStylistic, importPluginTsdoc, interopDefault, isCI, isInEditor, jsseReact, parserPlain, parserTs, pluginAntfu, pluginDeMorgan, pluginEslintComments, pluginImportLite, pluginN, pluginPerfectionist, pluginPnpm, pluginTs, pluginUnicorn, pluginUnusedImports, renameRules, turnOffRules, uniqueStrings, warn2error };
|