@jsse/eslint-config 0.5.0 → 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 +6 -0
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +211 -853
- package/dist/index.js +1 -1
- package/dist/{version-OtVn-Q4t.js → version-CQhcdCbl.js} +1 -1
- package/package.json +19 -19
package/dist/index.d.ts
CHANGED
|
@@ -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;
|
|
@@ -9135,6 +9136,11 @@ interface StylisticRuleOptions {
|
|
|
9135
9136
|
* @see https://eslint.style/rules/eol-last
|
|
9136
9137
|
*/
|
|
9137
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>;
|
|
9138
9144
|
/**
|
|
9139
9145
|
* Enforce consistent spacing and line break styles inside brackets.
|
|
9140
9146
|
* @see https://eslint.style/rules/list-style
|
|
@@ -9717,15 +9723,24 @@ type StylisticCurlyNewline = [] | [("always" | "never") | {
|
|
|
9717
9723
|
consistent?: boolean;
|
|
9718
9724
|
}]; // ----- @stylistic/dot-location -----
|
|
9719
9725
|
type StylisticDotLocation = [] | ["object" | "property"]; // ----- @stylistic/eol-last -----
|
|
9720
|
-
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 -----
|
|
9721
9736
|
type StylisticExpListStyle = [] | [{
|
|
9722
9737
|
singleLine?: _StylisticExpListStyle_SingleLineConfig;
|
|
9723
9738
|
multiLine?: _StylisticExpListStyle_MultiLineConfig;
|
|
9724
9739
|
overrides?: {
|
|
9740
|
+
"()"?: _StylisticExpListStyle_BaseConfig;
|
|
9725
9741
|
"[]"?: _StylisticExpListStyle_BaseConfig;
|
|
9726
9742
|
"{}"?: _StylisticExpListStyle_BaseConfig;
|
|
9727
9743
|
"<>"?: _StylisticExpListStyle_BaseConfig;
|
|
9728
|
-
"()"?: _StylisticExpListStyle_BaseConfig;
|
|
9729
9744
|
ArrayExpression?: _StylisticExpListStyle_BaseConfig;
|
|
9730
9745
|
ArrayPattern?: _StylisticExpListStyle_BaseConfig;
|
|
9731
9746
|
ArrowFunctionExpression?: _StylisticExpListStyle_BaseConfig;
|
|
@@ -9733,21 +9748,22 @@ type StylisticExpListStyle = [] | [{
|
|
|
9733
9748
|
ExportNamedDeclaration?: _StylisticExpListStyle_BaseConfig;
|
|
9734
9749
|
FunctionDeclaration?: _StylisticExpListStyle_BaseConfig;
|
|
9735
9750
|
FunctionExpression?: _StylisticExpListStyle_BaseConfig;
|
|
9736
|
-
|
|
9751
|
+
IfStatement?: _StylisticExpListStyle_BaseConfig;
|
|
9737
9752
|
ImportAttributes?: _StylisticExpListStyle_BaseConfig;
|
|
9753
|
+
ImportDeclaration?: _StylisticExpListStyle_BaseConfig;
|
|
9754
|
+
JSONArrayExpression?: _StylisticExpListStyle_BaseConfig;
|
|
9755
|
+
JSONObjectExpression?: _StylisticExpListStyle_BaseConfig;
|
|
9738
9756
|
NewExpression?: _StylisticExpListStyle_BaseConfig;
|
|
9739
9757
|
ObjectExpression?: _StylisticExpListStyle_BaseConfig;
|
|
9740
9758
|
ObjectPattern?: _StylisticExpListStyle_BaseConfig;
|
|
9741
9759
|
TSDeclareFunction?: _StylisticExpListStyle_BaseConfig;
|
|
9760
|
+
TSEnumBody?: _StylisticExpListStyle_BaseConfig;
|
|
9742
9761
|
TSFunctionType?: _StylisticExpListStyle_BaseConfig;
|
|
9743
9762
|
TSInterfaceBody?: _StylisticExpListStyle_BaseConfig;
|
|
9744
|
-
TSEnumBody?: _StylisticExpListStyle_BaseConfig;
|
|
9745
9763
|
TSTupleType?: _StylisticExpListStyle_BaseConfig;
|
|
9746
9764
|
TSTypeLiteral?: _StylisticExpListStyle_BaseConfig;
|
|
9747
9765
|
TSTypeParameterDeclaration?: _StylisticExpListStyle_BaseConfig;
|
|
9748
9766
|
TSTypeParameterInstantiation?: _StylisticExpListStyle_BaseConfig;
|
|
9749
|
-
JSONArrayExpression?: _StylisticExpListStyle_BaseConfig;
|
|
9750
|
-
JSONObjectExpression?: _StylisticExpListStyle_BaseConfig;
|
|
9751
9767
|
};
|
|
9752
9768
|
}];
|
|
9753
9769
|
interface _StylisticExpListStyle_SingleLineConfig {
|
|
@@ -11411,7 +11427,7 @@ interface TypescriptRuleOptions {
|
|
|
11411
11427
|
* Disallow default values that will never be used
|
|
11412
11428
|
* @see https://typescript-eslint.io/rules/no-useless-default-assignment
|
|
11413
11429
|
*/
|
|
11414
|
-
"@typescript-eslint/no-useless-default-assignment"?: Linter.RuleEntry<
|
|
11430
|
+
"@typescript-eslint/no-useless-default-assignment"?: Linter.RuleEntry<TypescriptEslintNoUselessDefaultAssignment>;
|
|
11415
11431
|
/**
|
|
11416
11432
|
* Disallow empty exports that don't change anything in a module file
|
|
11417
11433
|
* @see https://typescript-eslint.io/rules/no-useless-empty-export
|
|
@@ -12352,6 +12368,9 @@ type TypescriptEslintNoUseBeforeDefine = [] | ["nofunc" | {
|
|
|
12352
12368
|
ignoreTypeReferences?: boolean;
|
|
12353
12369
|
typedefs?: boolean;
|
|
12354
12370
|
variables?: boolean;
|
|
12371
|
+
}]; // ----- @typescript-eslint/no-useless-default-assignment -----
|
|
12372
|
+
type TypescriptEslintNoUselessDefaultAssignment = [] | [{
|
|
12373
|
+
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
|
|
12355
12374
|
}]; // ----- @typescript-eslint/no-var-requires -----
|
|
12356
12375
|
type TypescriptEslintNoVarRequires = [] | [{
|
|
12357
12376
|
allow?: string[];
|
|
@@ -12567,725 +12586,730 @@ type ImportPreferDefaultExport = [] | [{
|
|
|
12567
12586
|
interface UnicornRuleOptions {
|
|
12568
12587
|
/**
|
|
12569
12588
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
12570
|
-
* @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
|
|
12571
12590
|
*/
|
|
12572
12591
|
"unicorn/better-regex"?: Linter.RuleEntry<UnicornBetterRegex>;
|
|
12573
12592
|
/**
|
|
12574
12593
|
* Enforce a specific parameter name in catch clauses.
|
|
12575
|
-
* @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
|
|
12576
12595
|
*/
|
|
12577
12596
|
"unicorn/catch-error-name"?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
12578
12597
|
/**
|
|
12579
12598
|
* Enforce consistent assertion style with `node:assert`.
|
|
12580
|
-
* @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
|
|
12581
12600
|
*/
|
|
12582
12601
|
"unicorn/consistent-assert"?: Linter.RuleEntry<[]>;
|
|
12583
12602
|
/**
|
|
12584
12603
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
12585
|
-
* @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
|
|
12586
12605
|
*/
|
|
12587
12606
|
"unicorn/consistent-date-clone"?: Linter.RuleEntry<[]>;
|
|
12588
12607
|
/**
|
|
12589
12608
|
* Use destructured variables over properties.
|
|
12590
|
-
* @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
|
|
12591
12610
|
*/
|
|
12592
12611
|
"unicorn/consistent-destructuring"?: Linter.RuleEntry<[]>;
|
|
12593
12612
|
/**
|
|
12594
12613
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
12595
|
-
* @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
|
|
12596
12615
|
*/
|
|
12597
12616
|
"unicorn/consistent-empty-array-spread"?: Linter.RuleEntry<[]>;
|
|
12598
12617
|
/**
|
|
12599
12618
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
12600
|
-
* @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
|
|
12601
12620
|
*/
|
|
12602
12621
|
"unicorn/consistent-existence-index-check"?: Linter.RuleEntry<[]>;
|
|
12603
12622
|
/**
|
|
12604
12623
|
* Move function definitions to the highest possible scope.
|
|
12605
|
-
* @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
|
|
12606
12625
|
*/
|
|
12607
12626
|
"unicorn/consistent-function-scoping"?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
12608
12627
|
/**
|
|
12609
12628
|
* Enforce correct `Error` subclassing.
|
|
12610
|
-
* @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
|
|
12611
12630
|
*/
|
|
12612
12631
|
"unicorn/custom-error-definition"?: Linter.RuleEntry<[]>;
|
|
12613
12632
|
/**
|
|
12614
12633
|
* Enforce no spaces between braces.
|
|
12615
|
-
* @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
|
|
12616
12635
|
*/
|
|
12617
12636
|
"unicorn/empty-brace-spaces"?: Linter.RuleEntry<[]>;
|
|
12618
12637
|
/**
|
|
12619
12638
|
* Enforce passing a `message` value when creating a built-in error.
|
|
12620
|
-
* @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
|
|
12621
12640
|
*/
|
|
12622
12641
|
"unicorn/error-message"?: Linter.RuleEntry<[]>;
|
|
12623
12642
|
/**
|
|
12624
12643
|
* Require escape sequences to use uppercase or lowercase values.
|
|
12625
|
-
* @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
|
|
12626
12645
|
*/
|
|
12627
12646
|
"unicorn/escape-case"?: Linter.RuleEntry<UnicornEscapeCase>;
|
|
12628
12647
|
/**
|
|
12629
12648
|
* Add expiration conditions to TODO comments.
|
|
12630
|
-
* @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
|
|
12631
12650
|
*/
|
|
12632
12651
|
"unicorn/expiring-todo-comments"?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
12633
12652
|
/**
|
|
12634
12653
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
12635
|
-
* @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
|
|
12636
12655
|
*/
|
|
12637
12656
|
"unicorn/explicit-length-check"?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
12638
12657
|
/**
|
|
12639
12658
|
* Enforce a case style for filenames.
|
|
12640
|
-
* @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
|
|
12641
12660
|
*/
|
|
12642
12661
|
"unicorn/filename-case"?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
12643
12662
|
/**
|
|
12644
12663
|
* Enforce specific import styles per module.
|
|
12645
|
-
* @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
|
|
12646
12665
|
*/
|
|
12647
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>;
|
|
12648
12672
|
/**
|
|
12649
12673
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
12650
|
-
* @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
|
|
12651
12675
|
*/
|
|
12652
12676
|
"unicorn/new-for-builtins"?: Linter.RuleEntry<[]>;
|
|
12653
12677
|
/**
|
|
12654
12678
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
12655
|
-
* @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
|
|
12656
12680
|
*/
|
|
12657
12681
|
"unicorn/no-abusive-eslint-disable"?: Linter.RuleEntry<[]>;
|
|
12658
12682
|
/**
|
|
12659
12683
|
* Disallow recursive access to `this` within getters and setters.
|
|
12660
|
-
* @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
|
|
12661
12685
|
*/
|
|
12662
12686
|
"unicorn/no-accessor-recursion"?: Linter.RuleEntry<[]>;
|
|
12663
12687
|
/**
|
|
12664
12688
|
* Disallow anonymous functions and classes as the default export.
|
|
12665
|
-
* @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
|
|
12666
12690
|
*/
|
|
12667
12691
|
"unicorn/no-anonymous-default-export"?: Linter.RuleEntry<[]>;
|
|
12668
12692
|
/**
|
|
12669
12693
|
* Prevent passing a function reference directly to iterator methods.
|
|
12670
|
-
* @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
|
|
12671
12695
|
*/
|
|
12672
12696
|
"unicorn/no-array-callback-reference"?: Linter.RuleEntry<[]>;
|
|
12673
12697
|
/**
|
|
12674
12698
|
* Prefer `for…of` over the `forEach` method.
|
|
12675
|
-
* @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
|
|
12676
12700
|
*/
|
|
12677
12701
|
"unicorn/no-array-for-each"?: Linter.RuleEntry<[]>;
|
|
12678
12702
|
/**
|
|
12679
12703
|
* Disallow using the `this` argument in array methods.
|
|
12680
|
-
* @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
|
|
12681
12705
|
*/
|
|
12682
12706
|
"unicorn/no-array-method-this-argument"?: Linter.RuleEntry<[]>;
|
|
12683
12707
|
/**
|
|
12684
12708
|
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
12685
|
-
* @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
|
|
12686
12710
|
* @deprecated
|
|
12687
12711
|
*/
|
|
12688
12712
|
"unicorn/no-array-push-push"?: Linter.RuleEntry<[]>;
|
|
12689
12713
|
/**
|
|
12690
12714
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
12691
|
-
* @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
|
|
12692
12716
|
*/
|
|
12693
12717
|
"unicorn/no-array-reduce"?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
12694
12718
|
/**
|
|
12695
12719
|
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
12696
|
-
* @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
|
|
12697
12721
|
*/
|
|
12698
12722
|
"unicorn/no-array-reverse"?: Linter.RuleEntry<UnicornNoArrayReverse>;
|
|
12699
12723
|
/**
|
|
12700
12724
|
* Prefer `Array#toSorted()` over `Array#sort()`.
|
|
12701
|
-
* @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
|
|
12702
12726
|
*/
|
|
12703
12727
|
"unicorn/no-array-sort"?: Linter.RuleEntry<UnicornNoArraySort>;
|
|
12704
12728
|
/**
|
|
12705
12729
|
* Disallow member access from await expression.
|
|
12706
|
-
* @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
|
|
12707
12731
|
*/
|
|
12708
12732
|
"unicorn/no-await-expression-member"?: Linter.RuleEntry<[]>;
|
|
12709
12733
|
/**
|
|
12710
12734
|
* Disallow using `await` in `Promise` method parameters.
|
|
12711
|
-
* @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
|
|
12712
12736
|
*/
|
|
12713
12737
|
"unicorn/no-await-in-promise-methods"?: Linter.RuleEntry<[]>;
|
|
12714
12738
|
/**
|
|
12715
12739
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
12716
|
-
* @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
|
|
12717
12741
|
*/
|
|
12718
12742
|
"unicorn/no-console-spaces"?: Linter.RuleEntry<[]>;
|
|
12719
12743
|
/**
|
|
12720
12744
|
* Do not use `document.cookie` directly.
|
|
12721
|
-
* @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
|
|
12722
12746
|
*/
|
|
12723
12747
|
"unicorn/no-document-cookie"?: Linter.RuleEntry<[]>;
|
|
12724
12748
|
/**
|
|
12725
12749
|
* Disallow empty files.
|
|
12726
|
-
* @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
|
|
12727
12751
|
*/
|
|
12728
12752
|
"unicorn/no-empty-file"?: Linter.RuleEntry<[]>;
|
|
12729
12753
|
/**
|
|
12730
12754
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
12731
|
-
* @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
|
|
12732
12756
|
*/
|
|
12733
12757
|
"unicorn/no-for-loop"?: Linter.RuleEntry<[]>;
|
|
12734
12758
|
/**
|
|
12735
12759
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
12736
|
-
* @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
|
|
12737
12761
|
*/
|
|
12738
12762
|
"unicorn/no-hex-escape"?: Linter.RuleEntry<[]>;
|
|
12739
12763
|
/**
|
|
12740
12764
|
* Disallow immediate mutation after variable assignment.
|
|
12741
|
-
* @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
|
|
12742
12766
|
*/
|
|
12743
12767
|
"unicorn/no-immediate-mutation"?: Linter.RuleEntry<[]>;
|
|
12744
12768
|
/**
|
|
12745
12769
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
12746
|
-
* @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
|
|
12747
12771
|
* @deprecated
|
|
12748
12772
|
*/
|
|
12749
12773
|
"unicorn/no-instanceof-array"?: Linter.RuleEntry<[]>;
|
|
12750
12774
|
/**
|
|
12751
12775
|
* Disallow `instanceof` with built-in objects
|
|
12752
|
-
* @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
|
|
12753
12777
|
*/
|
|
12754
12778
|
"unicorn/no-instanceof-builtins"?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
|
|
12755
12779
|
/**
|
|
12756
12780
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
12757
|
-
* @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
|
|
12758
12782
|
*/
|
|
12759
12783
|
"unicorn/no-invalid-fetch-options"?: Linter.RuleEntry<[]>;
|
|
12760
12784
|
/**
|
|
12761
12785
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
12762
|
-
* @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
|
|
12763
12787
|
*/
|
|
12764
12788
|
"unicorn/no-invalid-remove-event-listener"?: Linter.RuleEntry<[]>;
|
|
12765
12789
|
/**
|
|
12766
12790
|
* Disallow identifiers starting with `new` or `class`.
|
|
12767
|
-
* @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
|
|
12768
12792
|
*/
|
|
12769
12793
|
"unicorn/no-keyword-prefix"?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
12770
12794
|
/**
|
|
12771
12795
|
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
12772
|
-
* @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
|
|
12773
12797
|
* @deprecated
|
|
12774
12798
|
*/
|
|
12775
12799
|
"unicorn/no-length-as-slice-end"?: Linter.RuleEntry<[]>;
|
|
12776
12800
|
/**
|
|
12777
12801
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
12778
|
-
* @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
|
|
12779
12803
|
*/
|
|
12780
12804
|
"unicorn/no-lonely-if"?: Linter.RuleEntry<[]>;
|
|
12781
12805
|
/**
|
|
12782
12806
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
12783
|
-
* @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
|
|
12784
12808
|
*/
|
|
12785
12809
|
"unicorn/no-magic-array-flat-depth"?: Linter.RuleEntry<[]>;
|
|
12786
12810
|
/**
|
|
12787
12811
|
* Disallow named usage of default import and export.
|
|
12788
|
-
* @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
|
|
12789
12813
|
*/
|
|
12790
12814
|
"unicorn/no-named-default"?: Linter.RuleEntry<[]>;
|
|
12791
12815
|
/**
|
|
12792
12816
|
* Disallow negated conditions.
|
|
12793
|
-
* @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
|
|
12794
12818
|
*/
|
|
12795
12819
|
"unicorn/no-negated-condition"?: Linter.RuleEntry<[]>;
|
|
12796
12820
|
/**
|
|
12797
12821
|
* Disallow negated expression in equality check.
|
|
12798
|
-
* @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
|
|
12799
12823
|
*/
|
|
12800
12824
|
"unicorn/no-negation-in-equality-check"?: Linter.RuleEntry<[]>;
|
|
12801
12825
|
/**
|
|
12802
12826
|
* Disallow nested ternary expressions.
|
|
12803
|
-
* @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
|
|
12804
12828
|
*/
|
|
12805
12829
|
"unicorn/no-nested-ternary"?: Linter.RuleEntry<[]>;
|
|
12806
12830
|
/**
|
|
12807
12831
|
* Disallow `new Array()`.
|
|
12808
|
-
* @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
|
|
12809
12833
|
*/
|
|
12810
12834
|
"unicorn/no-new-array"?: Linter.RuleEntry<[]>;
|
|
12811
12835
|
/**
|
|
12812
12836
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
12813
|
-
* @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
|
|
12814
12838
|
*/
|
|
12815
12839
|
"unicorn/no-new-buffer"?: Linter.RuleEntry<[]>;
|
|
12816
12840
|
/**
|
|
12817
12841
|
* Disallow the use of the `null` literal.
|
|
12818
|
-
* @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
|
|
12819
12843
|
*/
|
|
12820
12844
|
"unicorn/no-null"?: Linter.RuleEntry<UnicornNoNull>;
|
|
12821
12845
|
/**
|
|
12822
12846
|
* Disallow the use of objects as default parameters.
|
|
12823
|
-
* @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
|
|
12824
12848
|
*/
|
|
12825
12849
|
"unicorn/no-object-as-default-parameter"?: Linter.RuleEntry<[]>;
|
|
12826
12850
|
/**
|
|
12827
12851
|
* Disallow `process.exit()`.
|
|
12828
|
-
* @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
|
|
12829
12853
|
*/
|
|
12830
12854
|
"unicorn/no-process-exit"?: Linter.RuleEntry<[]>;
|
|
12831
12855
|
/**
|
|
12832
12856
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
12833
|
-
* @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
|
|
12834
12858
|
*/
|
|
12835
12859
|
"unicorn/no-single-promise-in-promise-methods"?: Linter.RuleEntry<[]>;
|
|
12836
12860
|
/**
|
|
12837
12861
|
* Disallow classes that only have static members.
|
|
12838
|
-
* @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
|
|
12839
12863
|
*/
|
|
12840
12864
|
"unicorn/no-static-only-class"?: Linter.RuleEntry<[]>;
|
|
12841
12865
|
/**
|
|
12842
12866
|
* Disallow `then` property.
|
|
12843
|
-
* @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
|
|
12844
12868
|
*/
|
|
12845
12869
|
"unicorn/no-thenable"?: Linter.RuleEntry<[]>;
|
|
12846
12870
|
/**
|
|
12847
12871
|
* Disallow assigning `this` to a variable.
|
|
12848
|
-
* @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
|
|
12849
12873
|
*/
|
|
12850
12874
|
"unicorn/no-this-assignment"?: Linter.RuleEntry<[]>;
|
|
12851
12875
|
/**
|
|
12852
12876
|
* Disallow comparing `undefined` using `typeof`.
|
|
12853
|
-
* @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
|
|
12854
12878
|
*/
|
|
12855
12879
|
"unicorn/no-typeof-undefined"?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
12856
12880
|
/**
|
|
12857
12881
|
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
12858
|
-
* @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
|
|
12859
12883
|
*/
|
|
12860
12884
|
"unicorn/no-unnecessary-array-flat-depth"?: Linter.RuleEntry<[]>;
|
|
12861
12885
|
/**
|
|
12862
12886
|
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
12863
|
-
* @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
|
|
12864
12888
|
*/
|
|
12865
12889
|
"unicorn/no-unnecessary-array-splice-count"?: Linter.RuleEntry<[]>;
|
|
12866
12890
|
/**
|
|
12867
12891
|
* Disallow awaiting non-promise values.
|
|
12868
|
-
* @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
|
|
12869
12893
|
*/
|
|
12870
12894
|
"unicorn/no-unnecessary-await"?: Linter.RuleEntry<[]>;
|
|
12871
12895
|
/**
|
|
12872
12896
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
12873
|
-
* @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
|
|
12874
12898
|
*/
|
|
12875
12899
|
"unicorn/no-unnecessary-polyfills"?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
12876
12900
|
/**
|
|
12877
12901
|
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
12878
|
-
* @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
|
|
12879
12903
|
*/
|
|
12880
12904
|
"unicorn/no-unnecessary-slice-end"?: Linter.RuleEntry<[]>;
|
|
12881
12905
|
/**
|
|
12882
12906
|
* Disallow unreadable array destructuring.
|
|
12883
|
-
* @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
|
|
12884
12908
|
*/
|
|
12885
12909
|
"unicorn/no-unreadable-array-destructuring"?: Linter.RuleEntry<[]>;
|
|
12886
12910
|
/**
|
|
12887
12911
|
* Disallow unreadable IIFEs.
|
|
12888
|
-
* @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
|
|
12889
12913
|
*/
|
|
12890
12914
|
"unicorn/no-unreadable-iife"?: Linter.RuleEntry<[]>;
|
|
12891
12915
|
/**
|
|
12892
12916
|
* Disallow unused object properties.
|
|
12893
|
-
* @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
|
|
12894
12918
|
*/
|
|
12895
12919
|
"unicorn/no-unused-properties"?: Linter.RuleEntry<[]>;
|
|
12896
12920
|
/**
|
|
12897
12921
|
* Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
|
|
12898
|
-
* @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
|
|
12899
12923
|
*/
|
|
12900
12924
|
"unicorn/no-useless-collection-argument"?: Linter.RuleEntry<[]>;
|
|
12901
12925
|
/**
|
|
12902
12926
|
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
12903
|
-
* @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
|
|
12904
12928
|
*/
|
|
12905
12929
|
"unicorn/no-useless-error-capture-stack-trace"?: Linter.RuleEntry<[]>;
|
|
12906
12930
|
/**
|
|
12907
12931
|
* Disallow useless fallback when spreading in object literals.
|
|
12908
|
-
* @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
|
|
12909
12933
|
*/
|
|
12910
12934
|
"unicorn/no-useless-fallback-in-spread"?: Linter.RuleEntry<[]>;
|
|
12911
12935
|
/**
|
|
12912
12936
|
* Disallow useless array length check.
|
|
12913
|
-
* @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
|
|
12914
12938
|
*/
|
|
12915
12939
|
"unicorn/no-useless-length-check"?: Linter.RuleEntry<[]>;
|
|
12916
12940
|
/**
|
|
12917
12941
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
12918
|
-
* @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
|
|
12919
12943
|
*/
|
|
12920
12944
|
"unicorn/no-useless-promise-resolve-reject"?: Linter.RuleEntry<[]>;
|
|
12921
12945
|
/**
|
|
12922
12946
|
* Disallow unnecessary spread.
|
|
12923
|
-
* @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
|
|
12924
12948
|
*/
|
|
12925
12949
|
"unicorn/no-useless-spread"?: Linter.RuleEntry<[]>;
|
|
12926
12950
|
/**
|
|
12927
12951
|
* Disallow useless case in switch statements.
|
|
12928
|
-
* @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
|
|
12929
12953
|
*/
|
|
12930
12954
|
"unicorn/no-useless-switch-case"?: Linter.RuleEntry<[]>;
|
|
12931
12955
|
/**
|
|
12932
12956
|
* Disallow useless `undefined`.
|
|
12933
|
-
* @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
|
|
12934
12958
|
*/
|
|
12935
12959
|
"unicorn/no-useless-undefined"?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
12936
12960
|
/**
|
|
12937
12961
|
* Disallow number literals with zero fractions or dangling dots.
|
|
12938
|
-
* @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
|
|
12939
12963
|
*/
|
|
12940
12964
|
"unicorn/no-zero-fractions"?: Linter.RuleEntry<[]>;
|
|
12941
12965
|
/**
|
|
12942
12966
|
* Enforce proper case for numeric literals.
|
|
12943
|
-
* @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
|
|
12944
12968
|
*/
|
|
12945
12969
|
"unicorn/number-literal-case"?: Linter.RuleEntry<UnicornNumberLiteralCase>;
|
|
12946
12970
|
/**
|
|
12947
12971
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
12948
|
-
* @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
|
|
12949
12973
|
*/
|
|
12950
12974
|
"unicorn/numeric-separators-style"?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
12951
12975
|
/**
|
|
12952
12976
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
12953
|
-
* @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
|
|
12954
12978
|
*/
|
|
12955
12979
|
"unicorn/prefer-add-event-listener"?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
12956
12980
|
/**
|
|
12957
12981
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
12958
|
-
* @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
|
|
12959
12983
|
*/
|
|
12960
12984
|
"unicorn/prefer-array-find"?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
12961
12985
|
/**
|
|
12962
12986
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
12963
|
-
* @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
|
|
12964
12988
|
*/
|
|
12965
12989
|
"unicorn/prefer-array-flat"?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
12966
12990
|
/**
|
|
12967
12991
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
12968
|
-
* @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
|
|
12969
12993
|
*/
|
|
12970
12994
|
"unicorn/prefer-array-flat-map"?: Linter.RuleEntry<[]>;
|
|
12971
12995
|
/**
|
|
12972
12996
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
12973
|
-
* @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
|
|
12974
12998
|
*/
|
|
12975
12999
|
"unicorn/prefer-array-index-of"?: Linter.RuleEntry<[]>;
|
|
12976
13000
|
/**
|
|
12977
13001
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
12978
|
-
* @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
|
|
12979
13003
|
*/
|
|
12980
13004
|
"unicorn/prefer-array-some"?: Linter.RuleEntry<[]>;
|
|
12981
13005
|
/**
|
|
12982
13006
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
12983
|
-
* @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
|
|
12984
13008
|
*/
|
|
12985
13009
|
"unicorn/prefer-at"?: Linter.RuleEntry<UnicornPreferAt>;
|
|
12986
13010
|
/**
|
|
12987
13011
|
* Prefer `BigInt` literals over the constructor.
|
|
12988
|
-
* @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
|
|
12989
13013
|
*/
|
|
12990
13014
|
"unicorn/prefer-bigint-literals"?: Linter.RuleEntry<[]>;
|
|
12991
13015
|
/**
|
|
12992
13016
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
12993
|
-
* @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
|
|
12994
13018
|
*/
|
|
12995
13019
|
"unicorn/prefer-blob-reading-methods"?: Linter.RuleEntry<[]>;
|
|
12996
13020
|
/**
|
|
12997
13021
|
* Prefer class field declarations over `this` assignments in constructors.
|
|
12998
|
-
* @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
|
|
12999
13023
|
*/
|
|
13000
13024
|
"unicorn/prefer-class-fields"?: Linter.RuleEntry<[]>;
|
|
13001
13025
|
/**
|
|
13002
13026
|
* Prefer using `Element#classList.toggle()` to toggle class names.
|
|
13003
|
-
* @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
|
|
13004
13028
|
*/
|
|
13005
13029
|
"unicorn/prefer-classlist-toggle"?: Linter.RuleEntry<[]>;
|
|
13006
13030
|
/**
|
|
13007
13031
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
13008
|
-
* @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
|
|
13009
13033
|
*/
|
|
13010
13034
|
"unicorn/prefer-code-point"?: Linter.RuleEntry<[]>;
|
|
13011
13035
|
/**
|
|
13012
13036
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
13013
|
-
* @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
|
|
13014
13038
|
*/
|
|
13015
13039
|
"unicorn/prefer-date-now"?: Linter.RuleEntry<[]>;
|
|
13016
13040
|
/**
|
|
13017
13041
|
* Prefer default parameters over reassignment.
|
|
13018
|
-
* @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
|
|
13019
13043
|
*/
|
|
13020
13044
|
"unicorn/prefer-default-parameters"?: Linter.RuleEntry<[]>;
|
|
13021
13045
|
/**
|
|
13022
13046
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
13023
|
-
* @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
|
|
13024
13048
|
*/
|
|
13025
13049
|
"unicorn/prefer-dom-node-append"?: Linter.RuleEntry<[]>;
|
|
13026
13050
|
/**
|
|
13027
13051
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
13028
|
-
* @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
|
|
13029
13053
|
*/
|
|
13030
13054
|
"unicorn/prefer-dom-node-dataset"?: Linter.RuleEntry<[]>;
|
|
13031
13055
|
/**
|
|
13032
13056
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
13033
|
-
* @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
|
|
13034
13058
|
*/
|
|
13035
13059
|
"unicorn/prefer-dom-node-remove"?: Linter.RuleEntry<[]>;
|
|
13036
13060
|
/**
|
|
13037
13061
|
* Prefer `.textContent` over `.innerText`.
|
|
13038
|
-
* @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
|
|
13039
13063
|
*/
|
|
13040
13064
|
"unicorn/prefer-dom-node-text-content"?: Linter.RuleEntry<[]>;
|
|
13041
13065
|
/**
|
|
13042
13066
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
13043
|
-
* @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
|
|
13044
13068
|
*/
|
|
13045
13069
|
"unicorn/prefer-event-target"?: Linter.RuleEntry<[]>;
|
|
13046
13070
|
/**
|
|
13047
13071
|
* Prefer `export…from` when re-exporting.
|
|
13048
|
-
* @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
|
|
13049
13073
|
*/
|
|
13050
13074
|
"unicorn/prefer-export-from"?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
13051
13075
|
/**
|
|
13052
13076
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
13053
|
-
* @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
|
|
13054
13078
|
*/
|
|
13055
13079
|
"unicorn/prefer-global-this"?: Linter.RuleEntry<[]>;
|
|
13056
13080
|
/**
|
|
13057
13081
|
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
13058
|
-
* @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
|
|
13059
13083
|
*/
|
|
13060
13084
|
"unicorn/prefer-import-meta-properties"?: Linter.RuleEntry<[]>;
|
|
13061
13085
|
/**
|
|
13062
13086
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
13063
|
-
* @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
|
|
13064
13088
|
*/
|
|
13065
13089
|
"unicorn/prefer-includes"?: Linter.RuleEntry<[]>;
|
|
13066
13090
|
/**
|
|
13067
13091
|
* Prefer reading a JSON file as a buffer.
|
|
13068
|
-
* @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
|
|
13069
13093
|
*/
|
|
13070
13094
|
"unicorn/prefer-json-parse-buffer"?: Linter.RuleEntry<[]>;
|
|
13071
13095
|
/**
|
|
13072
13096
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
13073
|
-
* @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
|
|
13074
13098
|
*/
|
|
13075
13099
|
"unicorn/prefer-keyboard-event-key"?: Linter.RuleEntry<[]>;
|
|
13076
13100
|
/**
|
|
13077
13101
|
* Prefer using a logical operator over a ternary.
|
|
13078
|
-
* @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
|
|
13079
13103
|
*/
|
|
13080
13104
|
"unicorn/prefer-logical-operator-over-ternary"?: Linter.RuleEntry<[]>;
|
|
13081
13105
|
/**
|
|
13082
13106
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
13083
|
-
* @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
|
|
13084
13108
|
*/
|
|
13085
13109
|
"unicorn/prefer-math-min-max"?: Linter.RuleEntry<[]>;
|
|
13086
13110
|
/**
|
|
13087
13111
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
13088
|
-
* @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
|
|
13089
13113
|
*/
|
|
13090
13114
|
"unicorn/prefer-math-trunc"?: Linter.RuleEntry<[]>;
|
|
13091
13115
|
/**
|
|
13092
13116
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
13093
|
-
* @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
|
|
13094
13118
|
*/
|
|
13095
13119
|
"unicorn/prefer-modern-dom-apis"?: Linter.RuleEntry<[]>;
|
|
13096
13120
|
/**
|
|
13097
13121
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
13098
|
-
* @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
|
|
13099
13123
|
*/
|
|
13100
13124
|
"unicorn/prefer-modern-math-apis"?: Linter.RuleEntry<[]>;
|
|
13101
13125
|
/**
|
|
13102
13126
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
13103
|
-
* @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
|
|
13104
13128
|
*/
|
|
13105
13129
|
"unicorn/prefer-module"?: Linter.RuleEntry<[]>;
|
|
13106
13130
|
/**
|
|
13107
13131
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
13108
|
-
* @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
|
|
13109
13133
|
*/
|
|
13110
13134
|
"unicorn/prefer-native-coercion-functions"?: Linter.RuleEntry<[]>;
|
|
13111
13135
|
/**
|
|
13112
13136
|
* Prefer negative index over `.length - index` when possible.
|
|
13113
|
-
* @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
|
|
13114
13138
|
*/
|
|
13115
13139
|
"unicorn/prefer-negative-index"?: Linter.RuleEntry<[]>;
|
|
13116
13140
|
/**
|
|
13117
13141
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
13118
|
-
* @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
|
|
13119
13143
|
*/
|
|
13120
13144
|
"unicorn/prefer-node-protocol"?: Linter.RuleEntry<[]>;
|
|
13121
13145
|
/**
|
|
13122
13146
|
* Prefer `Number` static properties over global ones.
|
|
13123
|
-
* @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
|
|
13124
13148
|
*/
|
|
13125
13149
|
"unicorn/prefer-number-properties"?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
13126
13150
|
/**
|
|
13127
13151
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
13128
|
-
* @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
|
|
13129
13153
|
*/
|
|
13130
13154
|
"unicorn/prefer-object-from-entries"?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
13131
13155
|
/**
|
|
13132
13156
|
* Prefer omitting the `catch` binding parameter.
|
|
13133
|
-
* @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
|
|
13134
13158
|
*/
|
|
13135
13159
|
"unicorn/prefer-optional-catch-binding"?: Linter.RuleEntry<[]>;
|
|
13136
13160
|
/**
|
|
13137
13161
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
13138
|
-
* @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
|
|
13139
13163
|
*/
|
|
13140
13164
|
"unicorn/prefer-prototype-methods"?: Linter.RuleEntry<[]>;
|
|
13141
13165
|
/**
|
|
13142
13166
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
13143
|
-
* @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
|
|
13144
13168
|
*/
|
|
13145
13169
|
"unicorn/prefer-query-selector"?: Linter.RuleEntry<[]>;
|
|
13146
13170
|
/**
|
|
13147
13171
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
13148
|
-
* @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
|
|
13149
13173
|
*/
|
|
13150
13174
|
"unicorn/prefer-reflect-apply"?: Linter.RuleEntry<[]>;
|
|
13151
13175
|
/**
|
|
13152
13176
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
13153
|
-
* @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
|
|
13154
13178
|
*/
|
|
13155
13179
|
"unicorn/prefer-regexp-test"?: Linter.RuleEntry<[]>;
|
|
13156
13180
|
/**
|
|
13157
13181
|
* Prefer `Response.json()` over `new Response(JSON.stringify())`.
|
|
13158
|
-
* @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
|
|
13159
13183
|
*/
|
|
13160
13184
|
"unicorn/prefer-response-static-json"?: Linter.RuleEntry<[]>;
|
|
13161
13185
|
/**
|
|
13162
13186
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
13163
|
-
* @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
|
|
13164
13188
|
*/
|
|
13165
13189
|
"unicorn/prefer-set-has"?: Linter.RuleEntry<[]>;
|
|
13166
13190
|
/**
|
|
13167
13191
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
13168
|
-
* @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
|
|
13169
13193
|
*/
|
|
13170
13194
|
"unicorn/prefer-set-size"?: Linter.RuleEntry<[]>;
|
|
13171
13195
|
/**
|
|
13172
13196
|
* Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
13173
|
-
* @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
|
|
13174
13198
|
*/
|
|
13175
13199
|
"unicorn/prefer-single-call"?: Linter.RuleEntry<UnicornPreferSingleCall>;
|
|
13176
13200
|
/**
|
|
13177
13201
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
13178
|
-
* @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
|
|
13179
13203
|
*/
|
|
13180
13204
|
"unicorn/prefer-spread"?: Linter.RuleEntry<[]>;
|
|
13181
13205
|
/**
|
|
13182
13206
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
13183
|
-
* @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
|
|
13184
13208
|
*/
|
|
13185
13209
|
"unicorn/prefer-string-raw"?: Linter.RuleEntry<[]>;
|
|
13186
13210
|
/**
|
|
13187
13211
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
13188
|
-
* @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
|
|
13189
13213
|
*/
|
|
13190
13214
|
"unicorn/prefer-string-replace-all"?: Linter.RuleEntry<[]>;
|
|
13191
13215
|
/**
|
|
13192
13216
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
13193
|
-
* @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
|
|
13194
13218
|
*/
|
|
13195
13219
|
"unicorn/prefer-string-slice"?: Linter.RuleEntry<[]>;
|
|
13196
13220
|
/**
|
|
13197
13221
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
13198
|
-
* @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
|
|
13199
13223
|
*/
|
|
13200
13224
|
"unicorn/prefer-string-starts-ends-with"?: Linter.RuleEntry<[]>;
|
|
13201
13225
|
/**
|
|
13202
13226
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
13203
|
-
* @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
|
|
13204
13228
|
*/
|
|
13205
13229
|
"unicorn/prefer-string-trim-start-end"?: Linter.RuleEntry<[]>;
|
|
13206
13230
|
/**
|
|
13207
13231
|
* Prefer using `structuredClone` to create a deep clone.
|
|
13208
|
-
* @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
|
|
13209
13233
|
*/
|
|
13210
13234
|
"unicorn/prefer-structured-clone"?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
13211
13235
|
/**
|
|
13212
13236
|
* Prefer `switch` over multiple `else-if`.
|
|
13213
|
-
* @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
|
|
13214
13238
|
*/
|
|
13215
13239
|
"unicorn/prefer-switch"?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
13216
13240
|
/**
|
|
13217
13241
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
13218
|
-
* @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
|
|
13219
13243
|
*/
|
|
13220
13244
|
"unicorn/prefer-ternary"?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
13221
13245
|
/**
|
|
13222
13246
|
* Prefer top-level await over top-level promises and async function calls.
|
|
13223
|
-
* @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
|
|
13224
13248
|
*/
|
|
13225
13249
|
"unicorn/prefer-top-level-await"?: Linter.RuleEntry<[]>;
|
|
13226
13250
|
/**
|
|
13227
13251
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
13228
|
-
* @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
|
|
13229
13253
|
*/
|
|
13230
13254
|
"unicorn/prefer-type-error"?: Linter.RuleEntry<[]>;
|
|
13231
13255
|
/**
|
|
13232
13256
|
* Prevent abbreviations.
|
|
13233
|
-
* @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
|
|
13234
13258
|
*/
|
|
13235
13259
|
"unicorn/prevent-abbreviations"?: Linter.RuleEntry<UnicornPreventAbbreviations>;
|
|
13236
13260
|
/**
|
|
13237
13261
|
* Enforce consistent relative URL style.
|
|
13238
|
-
* @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
|
|
13239
13263
|
*/
|
|
13240
13264
|
"unicorn/relative-url-style"?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
13241
13265
|
/**
|
|
13242
13266
|
* Enforce using the separator argument with `Array#join()`.
|
|
13243
|
-
* @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
|
|
13244
13268
|
*/
|
|
13245
13269
|
"unicorn/require-array-join-separator"?: Linter.RuleEntry<[]>;
|
|
13246
13270
|
/**
|
|
13247
13271
|
* Require non-empty module attributes for imports and exports
|
|
13248
|
-
* @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
|
|
13249
13273
|
*/
|
|
13250
13274
|
"unicorn/require-module-attributes"?: Linter.RuleEntry<[]>;
|
|
13251
13275
|
/**
|
|
13252
13276
|
* Require non-empty specifier list in import and export statements.
|
|
13253
|
-
* @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
|
|
13254
13278
|
*/
|
|
13255
13279
|
"unicorn/require-module-specifiers"?: Linter.RuleEntry<[]>;
|
|
13256
13280
|
/**
|
|
13257
13281
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
13258
|
-
* @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
|
|
13259
13283
|
*/
|
|
13260
13284
|
"unicorn/require-number-to-fixed-digits-argument"?: Linter.RuleEntry<[]>;
|
|
13261
13285
|
/**
|
|
13262
13286
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
13263
|
-
* @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
|
|
13264
13288
|
*/
|
|
13265
13289
|
"unicorn/require-post-message-target-origin"?: Linter.RuleEntry<[]>;
|
|
13266
13290
|
/**
|
|
13267
13291
|
* Enforce better string content.
|
|
13268
|
-
* @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
|
|
13269
13293
|
*/
|
|
13270
13294
|
"unicorn/string-content"?: Linter.RuleEntry<UnicornStringContent>;
|
|
13271
13295
|
/**
|
|
13272
13296
|
* Enforce consistent brace style for `case` clauses.
|
|
13273
|
-
* @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
|
|
13274
13298
|
*/
|
|
13275
13299
|
"unicorn/switch-case-braces"?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
13276
13300
|
/**
|
|
13277
13301
|
* Fix whitespace-insensitive template indentation.
|
|
13278
|
-
* @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
|
|
13279
13303
|
*/
|
|
13280
13304
|
"unicorn/template-indent"?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
13281
13305
|
/**
|
|
13282
13306
|
* Enforce consistent case for text encoding identifiers.
|
|
13283
|
-
* @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
|
|
13284
13308
|
*/
|
|
13285
13309
|
"unicorn/text-encoding-identifier-case"?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
|
|
13286
13310
|
/**
|
|
13287
13311
|
* Require `new` when creating an error.
|
|
13288
|
-
* @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
|
|
13289
13313
|
*/
|
|
13290
13314
|
"unicorn/throw-new-error"?: Linter.RuleEntry<[]>;
|
|
13291
13315
|
}
|
|
@@ -13340,7 +13364,15 @@ interface _UnicornImportStyle_ModuleStyles {
|
|
|
13340
13364
|
}
|
|
13341
13365
|
interface _UnicornImportStyle_BooleanObject {
|
|
13342
13366
|
[k: string]: boolean | undefined;
|
|
13343
|
-
} // ----- 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 -----
|
|
13344
13376
|
type UnicornNoArrayReduce = [] | [{
|
|
13345
13377
|
allowSimpleOperations?: boolean;
|
|
13346
13378
|
}]; // ----- unicorn/no-array-reverse -----
|
|
@@ -14633,7 +14665,7 @@ declare function defineConfig(options?: OptionsConfig & Config, ...userConfigs:
|
|
|
14633
14665
|
type DefineConfig = typeof defineConfig;
|
|
14634
14666
|
//#endregion
|
|
14635
14667
|
//#region src/generated/version.d.ts
|
|
14636
|
-
declare const VERSION = "0.5.
|
|
14668
|
+
declare const VERSION = "0.5.1";
|
|
14637
14669
|
declare namespace globs_d_exports {
|
|
14638
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 };
|
|
14639
14671
|
}
|
|
@@ -14993,356 +15025,19 @@ declare function importPluginJsonc(): Promise<{
|
|
|
14993
15025
|
pluginJsonc: {
|
|
14994
15026
|
meta: typeof eslint_plugin_jsonc_meta0;
|
|
14995
15027
|
configs: {
|
|
14996
|
-
base:
|
|
14997
|
-
|
|
14998
|
-
|
|
14999
|
-
|
|
15000
|
-
|
|
15001
|
-
|
|
15002
|
-
|
|
15003
|
-
|
|
15004
|
-
|
|
15005
|
-
|
|
15006
|
-
|
|
15007
|
-
|
|
15008
|
-
"
|
|
15009
|
-
extends: string[];
|
|
15010
|
-
rules: {
|
|
15011
|
-
"jsonc/auto": string;
|
|
15012
|
-
};
|
|
15013
|
-
};
|
|
15014
|
-
"recommended-with-json": {
|
|
15015
|
-
extends: string[];
|
|
15016
|
-
rules: {
|
|
15017
|
-
"jsonc/comma-dangle": string;
|
|
15018
|
-
"jsonc/no-bigint-literals": string;
|
|
15019
|
-
"jsonc/no-binary-expression": string;
|
|
15020
|
-
"jsonc/no-binary-numeric-literals": string;
|
|
15021
|
-
"jsonc/no-comments": string;
|
|
15022
|
-
"jsonc/no-dupe-keys": string;
|
|
15023
|
-
"jsonc/no-escape-sequence-in-identifier": string;
|
|
15024
|
-
"jsonc/no-floating-decimal": string;
|
|
15025
|
-
"jsonc/no-hexadecimal-numeric-literals": string;
|
|
15026
|
-
"jsonc/no-infinity": string;
|
|
15027
|
-
"jsonc/no-multi-str": string;
|
|
15028
|
-
"jsonc/no-nan": string;
|
|
15029
|
-
"jsonc/no-number-props": string;
|
|
15030
|
-
"jsonc/no-numeric-separators": string;
|
|
15031
|
-
"jsonc/no-octal-numeric-literals": string;
|
|
15032
|
-
"jsonc/no-octal": string;
|
|
15033
|
-
"jsonc/no-parenthesized": string;
|
|
15034
|
-
"jsonc/no-plus-sign": string;
|
|
15035
|
-
"jsonc/no-regexp-literals": string;
|
|
15036
|
-
"jsonc/no-sparse-arrays": string;
|
|
15037
|
-
"jsonc/no-template-literals": string;
|
|
15038
|
-
"jsonc/no-undefined-value": string;
|
|
15039
|
-
"jsonc/no-unicode-codepoint-escapes": string;
|
|
15040
|
-
"jsonc/no-useless-escape": string;
|
|
15041
|
-
"jsonc/quote-props": string;
|
|
15042
|
-
"jsonc/quotes": string;
|
|
15043
|
-
"jsonc/space-unary-ops": string;
|
|
15044
|
-
"jsonc/valid-json-number": string;
|
|
15045
|
-
"jsonc/vue-custom-block/no-parsing-error": string;
|
|
15046
|
-
};
|
|
15047
|
-
};
|
|
15048
|
-
"recommended-with-jsonc": {
|
|
15049
|
-
extends: string[];
|
|
15050
|
-
rules: {
|
|
15051
|
-
"jsonc/no-bigint-literals": string;
|
|
15052
|
-
"jsonc/no-binary-expression": string;
|
|
15053
|
-
"jsonc/no-binary-numeric-literals": string;
|
|
15054
|
-
"jsonc/no-dupe-keys": string;
|
|
15055
|
-
"jsonc/no-escape-sequence-in-identifier": string;
|
|
15056
|
-
"jsonc/no-floating-decimal": string;
|
|
15057
|
-
"jsonc/no-hexadecimal-numeric-literals": string;
|
|
15058
|
-
"jsonc/no-infinity": string;
|
|
15059
|
-
"jsonc/no-multi-str": string;
|
|
15060
|
-
"jsonc/no-nan": string;
|
|
15061
|
-
"jsonc/no-number-props": string;
|
|
15062
|
-
"jsonc/no-numeric-separators": string;
|
|
15063
|
-
"jsonc/no-octal-numeric-literals": string;
|
|
15064
|
-
"jsonc/no-octal": string;
|
|
15065
|
-
"jsonc/no-parenthesized": string;
|
|
15066
|
-
"jsonc/no-plus-sign": string;
|
|
15067
|
-
"jsonc/no-regexp-literals": string;
|
|
15068
|
-
"jsonc/no-sparse-arrays": string;
|
|
15069
|
-
"jsonc/no-template-literals": string;
|
|
15070
|
-
"jsonc/no-undefined-value": string;
|
|
15071
|
-
"jsonc/no-unicode-codepoint-escapes": string;
|
|
15072
|
-
"jsonc/no-useless-escape": string;
|
|
15073
|
-
"jsonc/quote-props": string;
|
|
15074
|
-
"jsonc/quotes": string;
|
|
15075
|
-
"jsonc/space-unary-ops": string;
|
|
15076
|
-
"jsonc/valid-json-number": string;
|
|
15077
|
-
"jsonc/vue-custom-block/no-parsing-error": string;
|
|
15078
|
-
};
|
|
15079
|
-
};
|
|
15080
|
-
"recommended-with-json5": {
|
|
15081
|
-
extends: string[];
|
|
15082
|
-
rules: {
|
|
15083
|
-
"jsonc/no-bigint-literals": string;
|
|
15084
|
-
"jsonc/no-binary-expression": string;
|
|
15085
|
-
"jsonc/no-binary-numeric-literals": string;
|
|
15086
|
-
"jsonc/no-dupe-keys": string;
|
|
15087
|
-
"jsonc/no-escape-sequence-in-identifier": string;
|
|
15088
|
-
"jsonc/no-number-props": string;
|
|
15089
|
-
"jsonc/no-numeric-separators": string;
|
|
15090
|
-
"jsonc/no-octal-numeric-literals": string;
|
|
15091
|
-
"jsonc/no-octal": string;
|
|
15092
|
-
"jsonc/no-parenthesized": string;
|
|
15093
|
-
"jsonc/no-regexp-literals": string;
|
|
15094
|
-
"jsonc/no-sparse-arrays": string;
|
|
15095
|
-
"jsonc/no-template-literals": string;
|
|
15096
|
-
"jsonc/no-undefined-value": string;
|
|
15097
|
-
"jsonc/no-unicode-codepoint-escapes": string;
|
|
15098
|
-
"jsonc/no-useless-escape": string;
|
|
15099
|
-
"jsonc/space-unary-ops": string;
|
|
15100
|
-
"jsonc/vue-custom-block/no-parsing-error": string;
|
|
15101
|
-
};
|
|
15102
|
-
};
|
|
15103
|
-
prettier: {
|
|
15104
|
-
extends: string[];
|
|
15105
|
-
rules: {
|
|
15106
|
-
"jsonc/array-bracket-newline": string;
|
|
15107
|
-
"jsonc/array-bracket-spacing": string;
|
|
15108
|
-
"jsonc/array-element-newline": string;
|
|
15109
|
-
"jsonc/comma-dangle": string;
|
|
15110
|
-
"jsonc/comma-style": string;
|
|
15111
|
-
"jsonc/indent": string;
|
|
15112
|
-
"jsonc/key-spacing": string;
|
|
15113
|
-
"jsonc/no-floating-decimal": string;
|
|
15114
|
-
"jsonc/object-curly-newline": string;
|
|
15115
|
-
"jsonc/object-curly-spacing": string;
|
|
15116
|
-
"jsonc/object-property-newline": string;
|
|
15117
|
-
"jsonc/quote-props": string;
|
|
15118
|
-
"jsonc/quotes": string;
|
|
15119
|
-
"jsonc/space-unary-ops": string;
|
|
15120
|
-
};
|
|
15121
|
-
};
|
|
15122
|
-
all: {
|
|
15123
|
-
extends: string[];
|
|
15124
|
-
rules: {
|
|
15125
|
-
[x: string]: string;
|
|
15126
|
-
};
|
|
15127
|
-
};
|
|
15128
|
-
"flat/base": ({
|
|
15129
|
-
plugins: {
|
|
15130
|
-
readonly jsonc: eslint.ESLint.Plugin;
|
|
15131
|
-
};
|
|
15132
|
-
files?: undefined;
|
|
15133
|
-
languageOptions?: undefined;
|
|
15134
|
-
rules?: undefined;
|
|
15135
|
-
} | {
|
|
15136
|
-
files: string[];
|
|
15137
|
-
languageOptions: {
|
|
15138
|
-
parser: typeof jsonc_eslint_parser0;
|
|
15139
|
-
};
|
|
15140
|
-
rules: {
|
|
15141
|
-
strict: "off";
|
|
15142
|
-
"no-unused-expressions": "off";
|
|
15143
|
-
"no-unused-vars": "off";
|
|
15144
|
-
};
|
|
15145
|
-
plugins?: undefined;
|
|
15146
|
-
})[];
|
|
15147
|
-
"flat/recommended-with-json": ({
|
|
15148
|
-
plugins: {
|
|
15149
|
-
readonly jsonc: eslint.ESLint.Plugin;
|
|
15150
|
-
};
|
|
15151
|
-
files?: undefined;
|
|
15152
|
-
languageOptions?: undefined;
|
|
15153
|
-
rules?: undefined;
|
|
15154
|
-
} | {
|
|
15155
|
-
files: string[];
|
|
15156
|
-
languageOptions: {
|
|
15157
|
-
parser: typeof jsonc_eslint_parser0;
|
|
15158
|
-
};
|
|
15159
|
-
rules: {
|
|
15160
|
-
strict: "off";
|
|
15161
|
-
"no-unused-expressions": "off";
|
|
15162
|
-
"no-unused-vars": "off";
|
|
15163
|
-
};
|
|
15164
|
-
plugins?: undefined;
|
|
15165
|
-
} | {
|
|
15166
|
-
rules: {
|
|
15167
|
-
"jsonc/comma-dangle": "error";
|
|
15168
|
-
"jsonc/no-bigint-literals": "error";
|
|
15169
|
-
"jsonc/no-binary-expression": "error";
|
|
15170
|
-
"jsonc/no-binary-numeric-literals": "error";
|
|
15171
|
-
"jsonc/no-comments": "error";
|
|
15172
|
-
"jsonc/no-dupe-keys": "error";
|
|
15173
|
-
"jsonc/no-escape-sequence-in-identifier": "error";
|
|
15174
|
-
"jsonc/no-floating-decimal": "error";
|
|
15175
|
-
"jsonc/no-hexadecimal-numeric-literals": "error";
|
|
15176
|
-
"jsonc/no-infinity": "error";
|
|
15177
|
-
"jsonc/no-multi-str": "error";
|
|
15178
|
-
"jsonc/no-nan": "error";
|
|
15179
|
-
"jsonc/no-number-props": "error";
|
|
15180
|
-
"jsonc/no-numeric-separators": "error";
|
|
15181
|
-
"jsonc/no-octal-numeric-literals": "error";
|
|
15182
|
-
"jsonc/no-octal": "error";
|
|
15183
|
-
"jsonc/no-parenthesized": "error";
|
|
15184
|
-
"jsonc/no-plus-sign": "error";
|
|
15185
|
-
"jsonc/no-regexp-literals": "error";
|
|
15186
|
-
"jsonc/no-sparse-arrays": "error";
|
|
15187
|
-
"jsonc/no-template-literals": "error";
|
|
15188
|
-
"jsonc/no-undefined-value": "error";
|
|
15189
|
-
"jsonc/no-unicode-codepoint-escapes": "error";
|
|
15190
|
-
"jsonc/no-useless-escape": "error";
|
|
15191
|
-
"jsonc/quote-props": "error";
|
|
15192
|
-
"jsonc/quotes": "error";
|
|
15193
|
-
"jsonc/space-unary-ops": "error";
|
|
15194
|
-
"jsonc/valid-json-number": "error";
|
|
15195
|
-
"jsonc/vue-custom-block/no-parsing-error": "error";
|
|
15196
|
-
};
|
|
15197
|
-
})[];
|
|
15198
|
-
"flat/recommended-with-jsonc": ({
|
|
15199
|
-
plugins: {
|
|
15200
|
-
readonly jsonc: eslint.ESLint.Plugin;
|
|
15201
|
-
};
|
|
15202
|
-
files?: undefined;
|
|
15203
|
-
languageOptions?: undefined;
|
|
15204
|
-
rules?: undefined;
|
|
15205
|
-
} | {
|
|
15206
|
-
files: string[];
|
|
15207
|
-
languageOptions: {
|
|
15208
|
-
parser: typeof jsonc_eslint_parser0;
|
|
15209
|
-
};
|
|
15210
|
-
rules: {
|
|
15211
|
-
strict: "off";
|
|
15212
|
-
"no-unused-expressions": "off";
|
|
15213
|
-
"no-unused-vars": "off";
|
|
15214
|
-
};
|
|
15215
|
-
plugins?: undefined;
|
|
15216
|
-
} | {
|
|
15217
|
-
rules: {
|
|
15218
|
-
"jsonc/no-bigint-literals": "error";
|
|
15219
|
-
"jsonc/no-binary-expression": "error";
|
|
15220
|
-
"jsonc/no-binary-numeric-literals": "error";
|
|
15221
|
-
"jsonc/no-dupe-keys": "error";
|
|
15222
|
-
"jsonc/no-escape-sequence-in-identifier": "error";
|
|
15223
|
-
"jsonc/no-floating-decimal": "error";
|
|
15224
|
-
"jsonc/no-hexadecimal-numeric-literals": "error";
|
|
15225
|
-
"jsonc/no-infinity": "error";
|
|
15226
|
-
"jsonc/no-multi-str": "error";
|
|
15227
|
-
"jsonc/no-nan": "error";
|
|
15228
|
-
"jsonc/no-number-props": "error";
|
|
15229
|
-
"jsonc/no-numeric-separators": "error";
|
|
15230
|
-
"jsonc/no-octal-numeric-literals": "error";
|
|
15231
|
-
"jsonc/no-octal": "error";
|
|
15232
|
-
"jsonc/no-parenthesized": "error";
|
|
15233
|
-
"jsonc/no-plus-sign": "error";
|
|
15234
|
-
"jsonc/no-regexp-literals": "error";
|
|
15235
|
-
"jsonc/no-sparse-arrays": "error";
|
|
15236
|
-
"jsonc/no-template-literals": "error";
|
|
15237
|
-
"jsonc/no-undefined-value": "error";
|
|
15238
|
-
"jsonc/no-unicode-codepoint-escapes": "error";
|
|
15239
|
-
"jsonc/no-useless-escape": "error";
|
|
15240
|
-
"jsonc/quote-props": "error";
|
|
15241
|
-
"jsonc/quotes": "error";
|
|
15242
|
-
"jsonc/space-unary-ops": "error";
|
|
15243
|
-
"jsonc/valid-json-number": "error";
|
|
15244
|
-
"jsonc/vue-custom-block/no-parsing-error": "error";
|
|
15245
|
-
};
|
|
15246
|
-
})[];
|
|
15247
|
-
"flat/recommended-with-json5": ({
|
|
15248
|
-
plugins: {
|
|
15249
|
-
readonly jsonc: eslint.ESLint.Plugin;
|
|
15250
|
-
};
|
|
15251
|
-
files?: undefined;
|
|
15252
|
-
languageOptions?: undefined;
|
|
15253
|
-
rules?: undefined;
|
|
15254
|
-
} | {
|
|
15255
|
-
files: string[];
|
|
15256
|
-
languageOptions: {
|
|
15257
|
-
parser: typeof jsonc_eslint_parser0;
|
|
15258
|
-
};
|
|
15259
|
-
rules: {
|
|
15260
|
-
strict: "off";
|
|
15261
|
-
"no-unused-expressions": "off";
|
|
15262
|
-
"no-unused-vars": "off";
|
|
15263
|
-
};
|
|
15264
|
-
plugins?: undefined;
|
|
15265
|
-
} | {
|
|
15266
|
-
rules: {
|
|
15267
|
-
"jsonc/no-bigint-literals": "error";
|
|
15268
|
-
"jsonc/no-binary-expression": "error";
|
|
15269
|
-
"jsonc/no-binary-numeric-literals": "error";
|
|
15270
|
-
"jsonc/no-dupe-keys": "error";
|
|
15271
|
-
"jsonc/no-escape-sequence-in-identifier": "error";
|
|
15272
|
-
"jsonc/no-number-props": "error";
|
|
15273
|
-
"jsonc/no-numeric-separators": "error";
|
|
15274
|
-
"jsonc/no-octal-numeric-literals": "error";
|
|
15275
|
-
"jsonc/no-octal": "error";
|
|
15276
|
-
"jsonc/no-parenthesized": "error";
|
|
15277
|
-
"jsonc/no-regexp-literals": "error";
|
|
15278
|
-
"jsonc/no-sparse-arrays": "error";
|
|
15279
|
-
"jsonc/no-template-literals": "error";
|
|
15280
|
-
"jsonc/no-undefined-value": "error";
|
|
15281
|
-
"jsonc/no-unicode-codepoint-escapes": "error";
|
|
15282
|
-
"jsonc/no-useless-escape": "error";
|
|
15283
|
-
"jsonc/space-unary-ops": "error";
|
|
15284
|
-
"jsonc/vue-custom-block/no-parsing-error": "error";
|
|
15285
|
-
};
|
|
15286
|
-
})[];
|
|
15287
|
-
"flat/prettier": ({
|
|
15288
|
-
plugins: {
|
|
15289
|
-
readonly jsonc: eslint.ESLint.Plugin;
|
|
15290
|
-
};
|
|
15291
|
-
files?: undefined;
|
|
15292
|
-
languageOptions?: undefined;
|
|
15293
|
-
rules?: undefined;
|
|
15294
|
-
} | {
|
|
15295
|
-
files: string[];
|
|
15296
|
-
languageOptions: {
|
|
15297
|
-
parser: typeof jsonc_eslint_parser0;
|
|
15298
|
-
};
|
|
15299
|
-
rules: {
|
|
15300
|
-
strict: "off";
|
|
15301
|
-
"no-unused-expressions": "off";
|
|
15302
|
-
"no-unused-vars": "off";
|
|
15303
|
-
};
|
|
15304
|
-
plugins?: undefined;
|
|
15305
|
-
} | {
|
|
15306
|
-
rules: {
|
|
15307
|
-
"jsonc/array-bracket-newline": "off";
|
|
15308
|
-
"jsonc/array-bracket-spacing": "off";
|
|
15309
|
-
"jsonc/array-element-newline": "off";
|
|
15310
|
-
"jsonc/comma-dangle": "off";
|
|
15311
|
-
"jsonc/comma-style": "off";
|
|
15312
|
-
"jsonc/indent": "off";
|
|
15313
|
-
"jsonc/key-spacing": "off";
|
|
15314
|
-
"jsonc/no-floating-decimal": "off";
|
|
15315
|
-
"jsonc/object-curly-newline": "off";
|
|
15316
|
-
"jsonc/object-curly-spacing": "off";
|
|
15317
|
-
"jsonc/object-property-newline": "off";
|
|
15318
|
-
"jsonc/quote-props": "off";
|
|
15319
|
-
"jsonc/quotes": "off";
|
|
15320
|
-
"jsonc/space-unary-ops": "off";
|
|
15321
|
-
};
|
|
15322
|
-
})[];
|
|
15323
|
-
"flat/all": ({
|
|
15324
|
-
plugins: {
|
|
15325
|
-
readonly jsonc: eslint.ESLint.Plugin;
|
|
15326
|
-
};
|
|
15327
|
-
files?: undefined;
|
|
15328
|
-
languageOptions?: undefined;
|
|
15329
|
-
rules?: undefined;
|
|
15330
|
-
} | {
|
|
15331
|
-
files: string[];
|
|
15332
|
-
languageOptions: {
|
|
15333
|
-
parser: typeof jsonc_eslint_parser0;
|
|
15334
|
-
};
|
|
15335
|
-
rules: {
|
|
15336
|
-
strict: "off";
|
|
15337
|
-
"no-unused-expressions": "off";
|
|
15338
|
-
"no-unused-vars": "off";
|
|
15339
|
-
};
|
|
15340
|
-
plugins?: undefined;
|
|
15341
|
-
} | {
|
|
15342
|
-
rules: {
|
|
15343
|
-
[rule: string]: eslint.Linter.RuleEntry<any[]>;
|
|
15344
|
-
};
|
|
15345
|
-
})[];
|
|
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[];
|
|
15346
15041
|
};
|
|
15347
15042
|
rules: {
|
|
15348
15043
|
[key: string]: eslint_plugin_jsonc_types0.RuleModule<unknown[]>;
|
|
@@ -15358,356 +15053,19 @@ declare function importJsoncLibs(): Promise<{
|
|
|
15358
15053
|
pluginJsonc: {
|
|
15359
15054
|
meta: typeof eslint_plugin_jsonc_meta0;
|
|
15360
15055
|
configs: {
|
|
15361
|
-
base:
|
|
15362
|
-
|
|
15363
|
-
|
|
15364
|
-
|
|
15365
|
-
|
|
15366
|
-
|
|
15367
|
-
|
|
15368
|
-
|
|
15369
|
-
|
|
15370
|
-
|
|
15371
|
-
|
|
15372
|
-
|
|
15373
|
-
"
|
|
15374
|
-
extends: string[];
|
|
15375
|
-
rules: {
|
|
15376
|
-
"jsonc/auto": string;
|
|
15377
|
-
};
|
|
15378
|
-
};
|
|
15379
|
-
"recommended-with-json": {
|
|
15380
|
-
extends: string[];
|
|
15381
|
-
rules: {
|
|
15382
|
-
"jsonc/comma-dangle": string;
|
|
15383
|
-
"jsonc/no-bigint-literals": string;
|
|
15384
|
-
"jsonc/no-binary-expression": string;
|
|
15385
|
-
"jsonc/no-binary-numeric-literals": string;
|
|
15386
|
-
"jsonc/no-comments": string;
|
|
15387
|
-
"jsonc/no-dupe-keys": string;
|
|
15388
|
-
"jsonc/no-escape-sequence-in-identifier": string;
|
|
15389
|
-
"jsonc/no-floating-decimal": string;
|
|
15390
|
-
"jsonc/no-hexadecimal-numeric-literals": string;
|
|
15391
|
-
"jsonc/no-infinity": string;
|
|
15392
|
-
"jsonc/no-multi-str": string;
|
|
15393
|
-
"jsonc/no-nan": string;
|
|
15394
|
-
"jsonc/no-number-props": string;
|
|
15395
|
-
"jsonc/no-numeric-separators": string;
|
|
15396
|
-
"jsonc/no-octal-numeric-literals": string;
|
|
15397
|
-
"jsonc/no-octal": string;
|
|
15398
|
-
"jsonc/no-parenthesized": string;
|
|
15399
|
-
"jsonc/no-plus-sign": string;
|
|
15400
|
-
"jsonc/no-regexp-literals": string;
|
|
15401
|
-
"jsonc/no-sparse-arrays": string;
|
|
15402
|
-
"jsonc/no-template-literals": string;
|
|
15403
|
-
"jsonc/no-undefined-value": string;
|
|
15404
|
-
"jsonc/no-unicode-codepoint-escapes": string;
|
|
15405
|
-
"jsonc/no-useless-escape": string;
|
|
15406
|
-
"jsonc/quote-props": string;
|
|
15407
|
-
"jsonc/quotes": string;
|
|
15408
|
-
"jsonc/space-unary-ops": string;
|
|
15409
|
-
"jsonc/valid-json-number": string;
|
|
15410
|
-
"jsonc/vue-custom-block/no-parsing-error": string;
|
|
15411
|
-
};
|
|
15412
|
-
};
|
|
15413
|
-
"recommended-with-jsonc": {
|
|
15414
|
-
extends: string[];
|
|
15415
|
-
rules: {
|
|
15416
|
-
"jsonc/no-bigint-literals": string;
|
|
15417
|
-
"jsonc/no-binary-expression": string;
|
|
15418
|
-
"jsonc/no-binary-numeric-literals": string;
|
|
15419
|
-
"jsonc/no-dupe-keys": string;
|
|
15420
|
-
"jsonc/no-escape-sequence-in-identifier": string;
|
|
15421
|
-
"jsonc/no-floating-decimal": string;
|
|
15422
|
-
"jsonc/no-hexadecimal-numeric-literals": string;
|
|
15423
|
-
"jsonc/no-infinity": string;
|
|
15424
|
-
"jsonc/no-multi-str": string;
|
|
15425
|
-
"jsonc/no-nan": string;
|
|
15426
|
-
"jsonc/no-number-props": string;
|
|
15427
|
-
"jsonc/no-numeric-separators": string;
|
|
15428
|
-
"jsonc/no-octal-numeric-literals": string;
|
|
15429
|
-
"jsonc/no-octal": string;
|
|
15430
|
-
"jsonc/no-parenthesized": string;
|
|
15431
|
-
"jsonc/no-plus-sign": string;
|
|
15432
|
-
"jsonc/no-regexp-literals": string;
|
|
15433
|
-
"jsonc/no-sparse-arrays": string;
|
|
15434
|
-
"jsonc/no-template-literals": string;
|
|
15435
|
-
"jsonc/no-undefined-value": string;
|
|
15436
|
-
"jsonc/no-unicode-codepoint-escapes": string;
|
|
15437
|
-
"jsonc/no-useless-escape": string;
|
|
15438
|
-
"jsonc/quote-props": string;
|
|
15439
|
-
"jsonc/quotes": string;
|
|
15440
|
-
"jsonc/space-unary-ops": string;
|
|
15441
|
-
"jsonc/valid-json-number": string;
|
|
15442
|
-
"jsonc/vue-custom-block/no-parsing-error": string;
|
|
15443
|
-
};
|
|
15444
|
-
};
|
|
15445
|
-
"recommended-with-json5": {
|
|
15446
|
-
extends: string[];
|
|
15447
|
-
rules: {
|
|
15448
|
-
"jsonc/no-bigint-literals": string;
|
|
15449
|
-
"jsonc/no-binary-expression": string;
|
|
15450
|
-
"jsonc/no-binary-numeric-literals": string;
|
|
15451
|
-
"jsonc/no-dupe-keys": string;
|
|
15452
|
-
"jsonc/no-escape-sequence-in-identifier": string;
|
|
15453
|
-
"jsonc/no-number-props": string;
|
|
15454
|
-
"jsonc/no-numeric-separators": string;
|
|
15455
|
-
"jsonc/no-octal-numeric-literals": string;
|
|
15456
|
-
"jsonc/no-octal": string;
|
|
15457
|
-
"jsonc/no-parenthesized": string;
|
|
15458
|
-
"jsonc/no-regexp-literals": string;
|
|
15459
|
-
"jsonc/no-sparse-arrays": string;
|
|
15460
|
-
"jsonc/no-template-literals": string;
|
|
15461
|
-
"jsonc/no-undefined-value": string;
|
|
15462
|
-
"jsonc/no-unicode-codepoint-escapes": string;
|
|
15463
|
-
"jsonc/no-useless-escape": string;
|
|
15464
|
-
"jsonc/space-unary-ops": string;
|
|
15465
|
-
"jsonc/vue-custom-block/no-parsing-error": string;
|
|
15466
|
-
};
|
|
15467
|
-
};
|
|
15468
|
-
prettier: {
|
|
15469
|
-
extends: string[];
|
|
15470
|
-
rules: {
|
|
15471
|
-
"jsonc/array-bracket-newline": string;
|
|
15472
|
-
"jsonc/array-bracket-spacing": string;
|
|
15473
|
-
"jsonc/array-element-newline": string;
|
|
15474
|
-
"jsonc/comma-dangle": string;
|
|
15475
|
-
"jsonc/comma-style": string;
|
|
15476
|
-
"jsonc/indent": string;
|
|
15477
|
-
"jsonc/key-spacing": string;
|
|
15478
|
-
"jsonc/no-floating-decimal": string;
|
|
15479
|
-
"jsonc/object-curly-newline": string;
|
|
15480
|
-
"jsonc/object-curly-spacing": string;
|
|
15481
|
-
"jsonc/object-property-newline": string;
|
|
15482
|
-
"jsonc/quote-props": string;
|
|
15483
|
-
"jsonc/quotes": string;
|
|
15484
|
-
"jsonc/space-unary-ops": string;
|
|
15485
|
-
};
|
|
15486
|
-
};
|
|
15487
|
-
all: {
|
|
15488
|
-
extends: string[];
|
|
15489
|
-
rules: {
|
|
15490
|
-
[x: string]: string;
|
|
15491
|
-
};
|
|
15492
|
-
};
|
|
15493
|
-
"flat/base": ({
|
|
15494
|
-
plugins: {
|
|
15495
|
-
readonly jsonc: eslint.ESLint.Plugin;
|
|
15496
|
-
};
|
|
15497
|
-
files?: undefined;
|
|
15498
|
-
languageOptions?: undefined;
|
|
15499
|
-
rules?: undefined;
|
|
15500
|
-
} | {
|
|
15501
|
-
files: string[];
|
|
15502
|
-
languageOptions: {
|
|
15503
|
-
parser: typeof jsonc_eslint_parser0;
|
|
15504
|
-
};
|
|
15505
|
-
rules: {
|
|
15506
|
-
strict: "off";
|
|
15507
|
-
"no-unused-expressions": "off";
|
|
15508
|
-
"no-unused-vars": "off";
|
|
15509
|
-
};
|
|
15510
|
-
plugins?: undefined;
|
|
15511
|
-
})[];
|
|
15512
|
-
"flat/recommended-with-json": ({
|
|
15513
|
-
plugins: {
|
|
15514
|
-
readonly jsonc: eslint.ESLint.Plugin;
|
|
15515
|
-
};
|
|
15516
|
-
files?: undefined;
|
|
15517
|
-
languageOptions?: undefined;
|
|
15518
|
-
rules?: undefined;
|
|
15519
|
-
} | {
|
|
15520
|
-
files: string[];
|
|
15521
|
-
languageOptions: {
|
|
15522
|
-
parser: typeof jsonc_eslint_parser0;
|
|
15523
|
-
};
|
|
15524
|
-
rules: {
|
|
15525
|
-
strict: "off";
|
|
15526
|
-
"no-unused-expressions": "off";
|
|
15527
|
-
"no-unused-vars": "off";
|
|
15528
|
-
};
|
|
15529
|
-
plugins?: undefined;
|
|
15530
|
-
} | {
|
|
15531
|
-
rules: {
|
|
15532
|
-
"jsonc/comma-dangle": "error";
|
|
15533
|
-
"jsonc/no-bigint-literals": "error";
|
|
15534
|
-
"jsonc/no-binary-expression": "error";
|
|
15535
|
-
"jsonc/no-binary-numeric-literals": "error";
|
|
15536
|
-
"jsonc/no-comments": "error";
|
|
15537
|
-
"jsonc/no-dupe-keys": "error";
|
|
15538
|
-
"jsonc/no-escape-sequence-in-identifier": "error";
|
|
15539
|
-
"jsonc/no-floating-decimal": "error";
|
|
15540
|
-
"jsonc/no-hexadecimal-numeric-literals": "error";
|
|
15541
|
-
"jsonc/no-infinity": "error";
|
|
15542
|
-
"jsonc/no-multi-str": "error";
|
|
15543
|
-
"jsonc/no-nan": "error";
|
|
15544
|
-
"jsonc/no-number-props": "error";
|
|
15545
|
-
"jsonc/no-numeric-separators": "error";
|
|
15546
|
-
"jsonc/no-octal-numeric-literals": "error";
|
|
15547
|
-
"jsonc/no-octal": "error";
|
|
15548
|
-
"jsonc/no-parenthesized": "error";
|
|
15549
|
-
"jsonc/no-plus-sign": "error";
|
|
15550
|
-
"jsonc/no-regexp-literals": "error";
|
|
15551
|
-
"jsonc/no-sparse-arrays": "error";
|
|
15552
|
-
"jsonc/no-template-literals": "error";
|
|
15553
|
-
"jsonc/no-undefined-value": "error";
|
|
15554
|
-
"jsonc/no-unicode-codepoint-escapes": "error";
|
|
15555
|
-
"jsonc/no-useless-escape": "error";
|
|
15556
|
-
"jsonc/quote-props": "error";
|
|
15557
|
-
"jsonc/quotes": "error";
|
|
15558
|
-
"jsonc/space-unary-ops": "error";
|
|
15559
|
-
"jsonc/valid-json-number": "error";
|
|
15560
|
-
"jsonc/vue-custom-block/no-parsing-error": "error";
|
|
15561
|
-
};
|
|
15562
|
-
})[];
|
|
15563
|
-
"flat/recommended-with-jsonc": ({
|
|
15564
|
-
plugins: {
|
|
15565
|
-
readonly jsonc: eslint.ESLint.Plugin;
|
|
15566
|
-
};
|
|
15567
|
-
files?: undefined;
|
|
15568
|
-
languageOptions?: undefined;
|
|
15569
|
-
rules?: undefined;
|
|
15570
|
-
} | {
|
|
15571
|
-
files: string[];
|
|
15572
|
-
languageOptions: {
|
|
15573
|
-
parser: typeof jsonc_eslint_parser0;
|
|
15574
|
-
};
|
|
15575
|
-
rules: {
|
|
15576
|
-
strict: "off";
|
|
15577
|
-
"no-unused-expressions": "off";
|
|
15578
|
-
"no-unused-vars": "off";
|
|
15579
|
-
};
|
|
15580
|
-
plugins?: undefined;
|
|
15581
|
-
} | {
|
|
15582
|
-
rules: {
|
|
15583
|
-
"jsonc/no-bigint-literals": "error";
|
|
15584
|
-
"jsonc/no-binary-expression": "error";
|
|
15585
|
-
"jsonc/no-binary-numeric-literals": "error";
|
|
15586
|
-
"jsonc/no-dupe-keys": "error";
|
|
15587
|
-
"jsonc/no-escape-sequence-in-identifier": "error";
|
|
15588
|
-
"jsonc/no-floating-decimal": "error";
|
|
15589
|
-
"jsonc/no-hexadecimal-numeric-literals": "error";
|
|
15590
|
-
"jsonc/no-infinity": "error";
|
|
15591
|
-
"jsonc/no-multi-str": "error";
|
|
15592
|
-
"jsonc/no-nan": "error";
|
|
15593
|
-
"jsonc/no-number-props": "error";
|
|
15594
|
-
"jsonc/no-numeric-separators": "error";
|
|
15595
|
-
"jsonc/no-octal-numeric-literals": "error";
|
|
15596
|
-
"jsonc/no-octal": "error";
|
|
15597
|
-
"jsonc/no-parenthesized": "error";
|
|
15598
|
-
"jsonc/no-plus-sign": "error";
|
|
15599
|
-
"jsonc/no-regexp-literals": "error";
|
|
15600
|
-
"jsonc/no-sparse-arrays": "error";
|
|
15601
|
-
"jsonc/no-template-literals": "error";
|
|
15602
|
-
"jsonc/no-undefined-value": "error";
|
|
15603
|
-
"jsonc/no-unicode-codepoint-escapes": "error";
|
|
15604
|
-
"jsonc/no-useless-escape": "error";
|
|
15605
|
-
"jsonc/quote-props": "error";
|
|
15606
|
-
"jsonc/quotes": "error";
|
|
15607
|
-
"jsonc/space-unary-ops": "error";
|
|
15608
|
-
"jsonc/valid-json-number": "error";
|
|
15609
|
-
"jsonc/vue-custom-block/no-parsing-error": "error";
|
|
15610
|
-
};
|
|
15611
|
-
})[];
|
|
15612
|
-
"flat/recommended-with-json5": ({
|
|
15613
|
-
plugins: {
|
|
15614
|
-
readonly jsonc: eslint.ESLint.Plugin;
|
|
15615
|
-
};
|
|
15616
|
-
files?: undefined;
|
|
15617
|
-
languageOptions?: undefined;
|
|
15618
|
-
rules?: undefined;
|
|
15619
|
-
} | {
|
|
15620
|
-
files: string[];
|
|
15621
|
-
languageOptions: {
|
|
15622
|
-
parser: typeof jsonc_eslint_parser0;
|
|
15623
|
-
};
|
|
15624
|
-
rules: {
|
|
15625
|
-
strict: "off";
|
|
15626
|
-
"no-unused-expressions": "off";
|
|
15627
|
-
"no-unused-vars": "off";
|
|
15628
|
-
};
|
|
15629
|
-
plugins?: undefined;
|
|
15630
|
-
} | {
|
|
15631
|
-
rules: {
|
|
15632
|
-
"jsonc/no-bigint-literals": "error";
|
|
15633
|
-
"jsonc/no-binary-expression": "error";
|
|
15634
|
-
"jsonc/no-binary-numeric-literals": "error";
|
|
15635
|
-
"jsonc/no-dupe-keys": "error";
|
|
15636
|
-
"jsonc/no-escape-sequence-in-identifier": "error";
|
|
15637
|
-
"jsonc/no-number-props": "error";
|
|
15638
|
-
"jsonc/no-numeric-separators": "error";
|
|
15639
|
-
"jsonc/no-octal-numeric-literals": "error";
|
|
15640
|
-
"jsonc/no-octal": "error";
|
|
15641
|
-
"jsonc/no-parenthesized": "error";
|
|
15642
|
-
"jsonc/no-regexp-literals": "error";
|
|
15643
|
-
"jsonc/no-sparse-arrays": "error";
|
|
15644
|
-
"jsonc/no-template-literals": "error";
|
|
15645
|
-
"jsonc/no-undefined-value": "error";
|
|
15646
|
-
"jsonc/no-unicode-codepoint-escapes": "error";
|
|
15647
|
-
"jsonc/no-useless-escape": "error";
|
|
15648
|
-
"jsonc/space-unary-ops": "error";
|
|
15649
|
-
"jsonc/vue-custom-block/no-parsing-error": "error";
|
|
15650
|
-
};
|
|
15651
|
-
})[];
|
|
15652
|
-
"flat/prettier": ({
|
|
15653
|
-
plugins: {
|
|
15654
|
-
readonly jsonc: eslint.ESLint.Plugin;
|
|
15655
|
-
};
|
|
15656
|
-
files?: undefined;
|
|
15657
|
-
languageOptions?: undefined;
|
|
15658
|
-
rules?: undefined;
|
|
15659
|
-
} | {
|
|
15660
|
-
files: string[];
|
|
15661
|
-
languageOptions: {
|
|
15662
|
-
parser: typeof jsonc_eslint_parser0;
|
|
15663
|
-
};
|
|
15664
|
-
rules: {
|
|
15665
|
-
strict: "off";
|
|
15666
|
-
"no-unused-expressions": "off";
|
|
15667
|
-
"no-unused-vars": "off";
|
|
15668
|
-
};
|
|
15669
|
-
plugins?: undefined;
|
|
15670
|
-
} | {
|
|
15671
|
-
rules: {
|
|
15672
|
-
"jsonc/array-bracket-newline": "off";
|
|
15673
|
-
"jsonc/array-bracket-spacing": "off";
|
|
15674
|
-
"jsonc/array-element-newline": "off";
|
|
15675
|
-
"jsonc/comma-dangle": "off";
|
|
15676
|
-
"jsonc/comma-style": "off";
|
|
15677
|
-
"jsonc/indent": "off";
|
|
15678
|
-
"jsonc/key-spacing": "off";
|
|
15679
|
-
"jsonc/no-floating-decimal": "off";
|
|
15680
|
-
"jsonc/object-curly-newline": "off";
|
|
15681
|
-
"jsonc/object-curly-spacing": "off";
|
|
15682
|
-
"jsonc/object-property-newline": "off";
|
|
15683
|
-
"jsonc/quote-props": "off";
|
|
15684
|
-
"jsonc/quotes": "off";
|
|
15685
|
-
"jsonc/space-unary-ops": "off";
|
|
15686
|
-
};
|
|
15687
|
-
})[];
|
|
15688
|
-
"flat/all": ({
|
|
15689
|
-
plugins: {
|
|
15690
|
-
readonly jsonc: eslint.ESLint.Plugin;
|
|
15691
|
-
};
|
|
15692
|
-
files?: undefined;
|
|
15693
|
-
languageOptions?: undefined;
|
|
15694
|
-
rules?: undefined;
|
|
15695
|
-
} | {
|
|
15696
|
-
files: string[];
|
|
15697
|
-
languageOptions: {
|
|
15698
|
-
parser: typeof jsonc_eslint_parser0;
|
|
15699
|
-
};
|
|
15700
|
-
rules: {
|
|
15701
|
-
strict: "off";
|
|
15702
|
-
"no-unused-expressions": "off";
|
|
15703
|
-
"no-unused-vars": "off";
|
|
15704
|
-
};
|
|
15705
|
-
plugins?: undefined;
|
|
15706
|
-
} | {
|
|
15707
|
-
rules: {
|
|
15708
|
-
[rule: string]: eslint.Linter.RuleEntry<any[]>;
|
|
15709
|
-
};
|
|
15710
|
-
})[];
|
|
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[];
|
|
15711
15069
|
};
|
|
15712
15070
|
rules: {
|
|
15713
15071
|
[key: string]: eslint_plugin_jsonc_types0.RuleModule<unknown[]>;
|