@jsse/eslint-config 0.4.5 → 0.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/cli.js +1 -1
- package/dist/esm/fixable.d.ts +1 -1
- package/dist/esm/generated/fixable-rules-map.js +3 -2
- package/dist/esm/generated/version.d.ts +1 -1
- package/dist/esm/generated/version.js +1 -1
- package/dist/index.d.ts +227 -196
- package/dist/index.js +91 -21
- package/dist/{version-B0HyilUh.js → version-BhJxNYo2.js} +1 -1
- package/package.json +18 -18
package/dist/index.d.ts
CHANGED
|
@@ -10,20 +10,20 @@ import pluginPerfectionist from "eslint-plugin-perfectionist";
|
|
|
10
10
|
import pluginPnpm from "eslint-plugin-pnpm";
|
|
11
11
|
import pluginUnicorn from "eslint-plugin-unicorn";
|
|
12
12
|
import pluginUnusedImports from "eslint-plugin-unused-imports";
|
|
13
|
-
import * as
|
|
14
|
-
import * as
|
|
13
|
+
import * as _eslint_markdown0 from "@eslint/markdown";
|
|
14
|
+
import * as _stylistic_eslint_plugin0 from "@stylistic/eslint-plugin";
|
|
15
15
|
import { FlatGitignoreOptions } from "eslint-config-flat-gitignore";
|
|
16
|
-
import * as
|
|
17
|
-
import * as
|
|
18
|
-
import * as
|
|
19
|
-
import * as
|
|
20
|
-
import * as
|
|
16
|
+
import * as eslint_plugin_jsdoc0 from "eslint-plugin-jsdoc";
|
|
17
|
+
import * as eslint_plugin_react0 from "eslint-plugin-react";
|
|
18
|
+
import * as eslint_plugin_react_hooks0 from "eslint-plugin-react-hooks";
|
|
19
|
+
import * as jsonc_eslint_parser0 from "jsonc-eslint-parser";
|
|
20
|
+
import * as yaml_eslint_parser0 from "yaml-eslint-parser";
|
|
21
21
|
import * as eslint0 from "eslint";
|
|
22
22
|
import { Linter, Rule } from "eslint";
|
|
23
|
-
import * as
|
|
24
|
-
import * as
|
|
25
|
-
import * as
|
|
26
|
-
import * as
|
|
23
|
+
import * as eslint_plugin_jsonc_meta0 from "eslint-plugin-jsonc/meta";
|
|
24
|
+
import * as eslint_plugin_jsonc_types0 from "eslint-plugin-jsonc/types";
|
|
25
|
+
import * as eslint_plugin_yml_lib_meta_js0 from "eslint-plugin-yml/lib/meta.js";
|
|
26
|
+
import * as eslint_plugin_yml_lib_types_js0 from "eslint-plugin-yml/lib/types.js";
|
|
27
27
|
|
|
28
28
|
//#region src/generated/dts/builtins.d.ts
|
|
29
29
|
interface BuiltinsRuleOptions {
|
|
@@ -526,7 +526,7 @@ interface BuiltinsRuleOptions {
|
|
|
526
526
|
*/
|
|
527
527
|
"no-console"?: Linter.RuleEntry<NoConsole>;
|
|
528
528
|
/**
|
|
529
|
-
* Disallow reassigning `const` variables
|
|
529
|
+
* Disallow reassigning `const`, `using`, and `await using` variables
|
|
530
530
|
* @see https://eslint.org/docs/latest/rules/no-const-assign
|
|
531
531
|
*/
|
|
532
532
|
"no-const-assign"?: Linter.RuleEntry<[]>;
|
|
@@ -1583,6 +1583,7 @@ type AccessorPairs = [] | [{
|
|
|
1583
1583
|
getWithoutSet?: boolean;
|
|
1584
1584
|
setWithoutGet?: boolean;
|
|
1585
1585
|
enforceForClassMembers?: boolean;
|
|
1586
|
+
enforceForTSTypes?: boolean;
|
|
1586
1587
|
}];
|
|
1587
1588
|
// ----- array-bracket-newline -----
|
|
1588
1589
|
type ArrayBracketNewline = [] | [("always" | "never" | "consistent") | {
|
|
@@ -1772,7 +1773,9 @@ type GetterReturn = [] | [{
|
|
|
1772
1773
|
allowImplicit?: boolean;
|
|
1773
1774
|
}];
|
|
1774
1775
|
// ----- grouped-accessor-pairs -----
|
|
1775
|
-
type GroupedAccessorPairs = [] | ["anyOrder" | "getBeforeSet" | "setBeforeGet"]
|
|
1776
|
+
type GroupedAccessorPairs = [] | ["anyOrder" | "getBeforeSet" | "setBeforeGet"] | ["anyOrder" | "getBeforeSet" | "setBeforeGet", {
|
|
1777
|
+
enforceForTSTypes?: boolean;
|
|
1778
|
+
}];
|
|
1776
1779
|
// ----- handle-callback-err -----
|
|
1777
1780
|
type HandleCallbackErr = [] | [string];
|
|
1778
1781
|
// ----- id-blacklist -----
|
|
@@ -2724,6 +2727,7 @@ type NoUnusedVars = [] | [("all" | "local") | {
|
|
|
2724
2727
|
caughtErrorsIgnorePattern?: string;
|
|
2725
2728
|
destructuredArrayIgnorePattern?: string;
|
|
2726
2729
|
ignoreClassWithStaticInitBlock?: boolean;
|
|
2730
|
+
ignoreUsingDeclarations?: boolean;
|
|
2727
2731
|
reportUsedIgnorePattern?: boolean;
|
|
2728
2732
|
}];
|
|
2729
2733
|
// ----- no-use-before-define -----
|
|
@@ -4662,7 +4666,7 @@ interface MarkdownRuleOptions {
|
|
|
4662
4666
|
* Disallow data rows in a GitHub Flavored Markdown table from having more cells than the header row
|
|
4663
4667
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/table-column-count.md
|
|
4664
4668
|
*/
|
|
4665
|
-
"markdown/table-column-count"?: Linter.RuleEntry<
|
|
4669
|
+
"markdown/table-column-count"?: Linter.RuleEntry<MarkdownTableColumnCount>;
|
|
4666
4670
|
}
|
|
4667
4671
|
|
|
4668
4672
|
/* ======= Declarations ======= */
|
|
@@ -4703,6 +4707,10 @@ type MarkdownNoUnusedDefinitions = [] | [{
|
|
|
4703
4707
|
allowDefinitions?: string[];
|
|
4704
4708
|
allowFootnoteDefinitions?: string[];
|
|
4705
4709
|
}];
|
|
4710
|
+
// ----- markdown/table-column-count -----
|
|
4711
|
+
type MarkdownTableColumnCount = [] | [{
|
|
4712
|
+
checkMissingCells?: boolean;
|
|
4713
|
+
}];
|
|
4706
4714
|
//#endregion
|
|
4707
4715
|
//#region src/generated/dts/n.d.ts
|
|
4708
4716
|
interface NRuleOptions {
|
|
@@ -9653,11 +9661,12 @@ type StylisticPaddedBlocks = [] | [("always" | "never" | "start" | "end") | {
|
|
|
9653
9661
|
}];
|
|
9654
9662
|
// ----- @stylistic/padding-line-between-statements -----
|
|
9655
9663
|
type _StylisticPaddingLineBetweenStatementsPaddingType = "any" | "never" | "always";
|
|
9656
|
-
type
|
|
9664
|
+
type _StylisticPaddingLineBetweenStatementsStatementOption = _StylisticPaddingLineBetweenStatementsStatementType | [_StylisticPaddingLineBetweenStatementsStatementType, ..._StylisticPaddingLineBetweenStatementsStatementType[]];
|
|
9665
|
+
type _StylisticPaddingLineBetweenStatementsStatementType = "*" | "exports" | "require" | "directive" | "iife" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "continue" | "debugger" | "default" | "do" | "for" | "if" | "import" | "return" | "switch" | "throw" | "try" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload" | "block-like" | "singleline-block-like" | "multiline-block-like" | "expression" | "singleline-expression" | "multiline-expression" | "export" | "singleline-export" | "multiline-export" | "var" | "singleline-var" | "multiline-var" | "let" | "singleline-let" | "multiline-let" | "const" | "singleline-const" | "multiline-const" | "using" | "singleline-using" | "multiline-using";
|
|
9657
9666
|
type StylisticPaddingLineBetweenStatements = {
|
|
9658
9667
|
blankLine: _StylisticPaddingLineBetweenStatementsPaddingType;
|
|
9659
|
-
prev:
|
|
9660
|
-
next:
|
|
9668
|
+
prev: _StylisticPaddingLineBetweenStatementsStatementOption;
|
|
9669
|
+
next: _StylisticPaddingLineBetweenStatementsStatementOption;
|
|
9661
9670
|
}[];
|
|
9662
9671
|
// ----- @stylistic/quote-props -----
|
|
9663
9672
|
type StylisticQuoteProps = [] | ["always" | "as-needed" | "consistent" | "consistent-as-needed"] | [] | ["always" | "as-needed" | "consistent" | "consistent-as-needed"] | ["always" | "as-needed" | "consistent" | "consistent-as-needed", {
|
|
@@ -11505,7 +11514,6 @@ type TypescriptEslintPreferDestructuring = [] | [{
|
|
|
11505
11514
|
}), {
|
|
11506
11515
|
enforceForDeclarationWithTypeAnnotation?: boolean;
|
|
11507
11516
|
enforceForRenamedProperties?: boolean;
|
|
11508
|
-
[k: string]: unknown | undefined;
|
|
11509
11517
|
}];
|
|
11510
11518
|
// ----- @typescript-eslint/prefer-literal-enum-member -----
|
|
11511
11519
|
type TypescriptEslintPreferLiteralEnumMember = [] | [{
|
|
@@ -11523,7 +11531,6 @@ type TypescriptEslintPreferNullishCoalescing = [] | [{
|
|
|
11523
11531
|
boolean?: boolean;
|
|
11524
11532
|
number?: boolean;
|
|
11525
11533
|
string?: boolean;
|
|
11526
|
-
[k: string]: unknown | undefined;
|
|
11527
11534
|
} | true;
|
|
11528
11535
|
ignoreTernaryTests?: boolean;
|
|
11529
11536
|
}];
|
|
@@ -11687,670 +11694,690 @@ type ImportNoDuplicates = [] | [{
|
|
|
11687
11694
|
interface UnicornRuleOptions {
|
|
11688
11695
|
/**
|
|
11689
11696
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
11690
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11697
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/better-regex.md
|
|
11691
11698
|
*/
|
|
11692
11699
|
"unicorn/better-regex"?: Linter.RuleEntry<UnicornBetterRegex>;
|
|
11693
11700
|
/**
|
|
11694
11701
|
* Enforce a specific parameter name in catch clauses.
|
|
11695
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11702
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/catch-error-name.md
|
|
11696
11703
|
*/
|
|
11697
11704
|
"unicorn/catch-error-name"?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
11698
11705
|
/**
|
|
11699
11706
|
* Enforce consistent assertion style with `node:assert`.
|
|
11700
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11707
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-assert.md
|
|
11701
11708
|
*/
|
|
11702
11709
|
"unicorn/consistent-assert"?: Linter.RuleEntry<[]>;
|
|
11703
11710
|
/**
|
|
11704
11711
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
11705
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11712
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-date-clone.md
|
|
11706
11713
|
*/
|
|
11707
11714
|
"unicorn/consistent-date-clone"?: Linter.RuleEntry<[]>;
|
|
11708
11715
|
/**
|
|
11709
11716
|
* Use destructured variables over properties.
|
|
11710
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11717
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-destructuring.md
|
|
11711
11718
|
*/
|
|
11712
11719
|
"unicorn/consistent-destructuring"?: Linter.RuleEntry<[]>;
|
|
11713
11720
|
/**
|
|
11714
11721
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
11715
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11722
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-empty-array-spread.md
|
|
11716
11723
|
*/
|
|
11717
11724
|
"unicorn/consistent-empty-array-spread"?: Linter.RuleEntry<[]>;
|
|
11718
11725
|
/**
|
|
11719
11726
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
11720
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11727
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-existence-index-check.md
|
|
11721
11728
|
*/
|
|
11722
11729
|
"unicorn/consistent-existence-index-check"?: Linter.RuleEntry<[]>;
|
|
11723
11730
|
/**
|
|
11724
11731
|
* Move function definitions to the highest possible scope.
|
|
11725
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11732
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-function-scoping.md
|
|
11726
11733
|
*/
|
|
11727
11734
|
"unicorn/consistent-function-scoping"?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
11728
11735
|
/**
|
|
11729
11736
|
* Enforce correct `Error` subclassing.
|
|
11730
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11737
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/custom-error-definition.md
|
|
11731
11738
|
*/
|
|
11732
11739
|
"unicorn/custom-error-definition"?: Linter.RuleEntry<[]>;
|
|
11733
11740
|
/**
|
|
11734
11741
|
* Enforce no spaces between braces.
|
|
11735
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11742
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/empty-brace-spaces.md
|
|
11736
11743
|
*/
|
|
11737
11744
|
"unicorn/empty-brace-spaces"?: Linter.RuleEntry<[]>;
|
|
11738
11745
|
/**
|
|
11739
11746
|
* Enforce passing a `message` value when creating a built-in error.
|
|
11740
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11747
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/error-message.md
|
|
11741
11748
|
*/
|
|
11742
11749
|
"unicorn/error-message"?: Linter.RuleEntry<[]>;
|
|
11743
11750
|
/**
|
|
11744
11751
|
* Require escape sequences to use uppercase or lowercase values.
|
|
11745
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11752
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/escape-case.md
|
|
11746
11753
|
*/
|
|
11747
11754
|
"unicorn/escape-case"?: Linter.RuleEntry<UnicornEscapeCase>;
|
|
11748
11755
|
/**
|
|
11749
11756
|
* Add expiration conditions to TODO comments.
|
|
11750
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11757
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/expiring-todo-comments.md
|
|
11751
11758
|
*/
|
|
11752
11759
|
"unicorn/expiring-todo-comments"?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
11753
11760
|
/**
|
|
11754
11761
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
11755
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11762
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/explicit-length-check.md
|
|
11756
11763
|
*/
|
|
11757
11764
|
"unicorn/explicit-length-check"?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
11758
11765
|
/**
|
|
11759
11766
|
* Enforce a case style for filenames.
|
|
11760
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11767
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/filename-case.md
|
|
11761
11768
|
*/
|
|
11762
11769
|
"unicorn/filename-case"?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
11763
11770
|
/**
|
|
11764
11771
|
* Enforce specific import styles per module.
|
|
11765
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11772
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/import-style.md
|
|
11766
11773
|
*/
|
|
11767
11774
|
"unicorn/import-style"?: Linter.RuleEntry<UnicornImportStyle>;
|
|
11768
11775
|
/**
|
|
11769
11776
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
11770
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11777
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/new-for-builtins.md
|
|
11771
11778
|
*/
|
|
11772
11779
|
"unicorn/new-for-builtins"?: Linter.RuleEntry<[]>;
|
|
11773
11780
|
/**
|
|
11774
11781
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
11775
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11782
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
11776
11783
|
*/
|
|
11777
11784
|
"unicorn/no-abusive-eslint-disable"?: Linter.RuleEntry<[]>;
|
|
11778
11785
|
/**
|
|
11779
11786
|
* Disallow recursive access to `this` within getters and setters.
|
|
11780
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11787
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-accessor-recursion.md
|
|
11781
11788
|
*/
|
|
11782
11789
|
"unicorn/no-accessor-recursion"?: Linter.RuleEntry<[]>;
|
|
11783
11790
|
/**
|
|
11784
11791
|
* Disallow anonymous functions and classes as the default export.
|
|
11785
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11792
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-anonymous-default-export.md
|
|
11786
11793
|
*/
|
|
11787
11794
|
"unicorn/no-anonymous-default-export"?: Linter.RuleEntry<[]>;
|
|
11788
11795
|
/**
|
|
11789
11796
|
* Prevent passing a function reference directly to iterator methods.
|
|
11790
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11797
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-callback-reference.md
|
|
11791
11798
|
*/
|
|
11792
11799
|
"unicorn/no-array-callback-reference"?: Linter.RuleEntry<[]>;
|
|
11793
11800
|
/**
|
|
11794
11801
|
* Prefer `for…of` over the `forEach` method.
|
|
11795
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11802
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-for-each.md
|
|
11796
11803
|
*/
|
|
11797
11804
|
"unicorn/no-array-for-each"?: Linter.RuleEntry<[]>;
|
|
11798
11805
|
/**
|
|
11799
11806
|
* Disallow using the `this` argument in array methods.
|
|
11800
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11807
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-method-this-argument.md
|
|
11801
11808
|
*/
|
|
11802
11809
|
"unicorn/no-array-method-this-argument"?: Linter.RuleEntry<[]>;
|
|
11803
11810
|
/**
|
|
11804
11811
|
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
11805
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11812
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/deprecated-rules.md#no-array-push-push
|
|
11806
11813
|
* @deprecated
|
|
11807
11814
|
*/
|
|
11808
11815
|
"unicorn/no-array-push-push"?: Linter.RuleEntry<[]>;
|
|
11809
11816
|
/**
|
|
11810
11817
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
11811
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11818
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-reduce.md
|
|
11812
11819
|
*/
|
|
11813
11820
|
"unicorn/no-array-reduce"?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
11821
|
+
/**
|
|
11822
|
+
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
11823
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-reverse.md
|
|
11824
|
+
*/
|
|
11825
|
+
"unicorn/no-array-reverse"?: Linter.RuleEntry<UnicornNoArrayReverse>;
|
|
11814
11826
|
/**
|
|
11815
11827
|
* Disallow member access from await expression.
|
|
11816
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11828
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-await-expression-member.md
|
|
11817
11829
|
*/
|
|
11818
11830
|
"unicorn/no-await-expression-member"?: Linter.RuleEntry<[]>;
|
|
11819
11831
|
/**
|
|
11820
11832
|
* Disallow using `await` in `Promise` method parameters.
|
|
11821
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11833
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-await-in-promise-methods.md
|
|
11822
11834
|
*/
|
|
11823
11835
|
"unicorn/no-await-in-promise-methods"?: Linter.RuleEntry<[]>;
|
|
11824
11836
|
/**
|
|
11825
11837
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
11826
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11838
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-console-spaces.md
|
|
11827
11839
|
*/
|
|
11828
11840
|
"unicorn/no-console-spaces"?: Linter.RuleEntry<[]>;
|
|
11829
11841
|
/**
|
|
11830
11842
|
* Do not use `document.cookie` directly.
|
|
11831
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11843
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-document-cookie.md
|
|
11832
11844
|
*/
|
|
11833
11845
|
"unicorn/no-document-cookie"?: Linter.RuleEntry<[]>;
|
|
11834
11846
|
/**
|
|
11835
11847
|
* Disallow empty files.
|
|
11836
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11848
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-empty-file.md
|
|
11837
11849
|
*/
|
|
11838
11850
|
"unicorn/no-empty-file"?: Linter.RuleEntry<[]>;
|
|
11839
11851
|
/**
|
|
11840
11852
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
11841
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11853
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-for-loop.md
|
|
11842
11854
|
*/
|
|
11843
11855
|
"unicorn/no-for-loop"?: Linter.RuleEntry<[]>;
|
|
11844
11856
|
/**
|
|
11845
11857
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
11846
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11858
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-hex-escape.md
|
|
11847
11859
|
*/
|
|
11848
11860
|
"unicorn/no-hex-escape"?: Linter.RuleEntry<[]>;
|
|
11849
11861
|
/**
|
|
11850
11862
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
11851
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11863
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/deprecated-rules.md#no-instanceof-array
|
|
11852
11864
|
* @deprecated
|
|
11853
11865
|
*/
|
|
11854
11866
|
"unicorn/no-instanceof-array"?: Linter.RuleEntry<[]>;
|
|
11855
11867
|
/**
|
|
11856
11868
|
* Disallow `instanceof` with built-in objects
|
|
11857
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11869
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-instanceof-builtins.md
|
|
11858
11870
|
*/
|
|
11859
11871
|
"unicorn/no-instanceof-builtins"?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
|
|
11860
11872
|
/**
|
|
11861
11873
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
11862
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11874
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-invalid-fetch-options.md
|
|
11863
11875
|
*/
|
|
11864
11876
|
"unicorn/no-invalid-fetch-options"?: Linter.RuleEntry<[]>;
|
|
11865
11877
|
/**
|
|
11866
11878
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
11867
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11879
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
11868
11880
|
*/
|
|
11869
11881
|
"unicorn/no-invalid-remove-event-listener"?: Linter.RuleEntry<[]>;
|
|
11870
11882
|
/**
|
|
11871
11883
|
* Disallow identifiers starting with `new` or `class`.
|
|
11872
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11884
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-keyword-prefix.md
|
|
11873
11885
|
*/
|
|
11874
11886
|
"unicorn/no-keyword-prefix"?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
11875
11887
|
/**
|
|
11876
11888
|
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
11877
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11889
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/deprecated-rules.md#no-length-as-slice-end
|
|
11878
11890
|
* @deprecated
|
|
11879
11891
|
*/
|
|
11880
11892
|
"unicorn/no-length-as-slice-end"?: Linter.RuleEntry<[]>;
|
|
11881
11893
|
/**
|
|
11882
11894
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
11883
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11895
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-lonely-if.md
|
|
11884
11896
|
*/
|
|
11885
11897
|
"unicorn/no-lonely-if"?: Linter.RuleEntry<[]>;
|
|
11886
11898
|
/**
|
|
11887
11899
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
11888
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11900
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
11889
11901
|
*/
|
|
11890
11902
|
"unicorn/no-magic-array-flat-depth"?: Linter.RuleEntry<[]>;
|
|
11891
11903
|
/**
|
|
11892
11904
|
* Disallow named usage of default import and export.
|
|
11893
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11905
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-named-default.md
|
|
11894
11906
|
*/
|
|
11895
11907
|
"unicorn/no-named-default"?: Linter.RuleEntry<[]>;
|
|
11896
11908
|
/**
|
|
11897
11909
|
* Disallow negated conditions.
|
|
11898
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11910
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-negated-condition.md
|
|
11899
11911
|
*/
|
|
11900
11912
|
"unicorn/no-negated-condition"?: Linter.RuleEntry<[]>;
|
|
11901
11913
|
/**
|
|
11902
11914
|
* Disallow negated expression in equality check.
|
|
11903
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11915
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-negation-in-equality-check.md
|
|
11904
11916
|
*/
|
|
11905
11917
|
"unicorn/no-negation-in-equality-check"?: Linter.RuleEntry<[]>;
|
|
11906
11918
|
/**
|
|
11907
11919
|
* Disallow nested ternary expressions.
|
|
11908
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11920
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-nested-ternary.md
|
|
11909
11921
|
*/
|
|
11910
11922
|
"unicorn/no-nested-ternary"?: Linter.RuleEntry<[]>;
|
|
11911
11923
|
/**
|
|
11912
11924
|
* Disallow `new Array()`.
|
|
11913
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11925
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-new-array.md
|
|
11914
11926
|
*/
|
|
11915
11927
|
"unicorn/no-new-array"?: Linter.RuleEntry<[]>;
|
|
11916
11928
|
/**
|
|
11917
11929
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
11918
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11930
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-new-buffer.md
|
|
11919
11931
|
*/
|
|
11920
11932
|
"unicorn/no-new-buffer"?: Linter.RuleEntry<[]>;
|
|
11921
11933
|
/**
|
|
11922
11934
|
* Disallow the use of the `null` literal.
|
|
11923
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11935
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-null.md
|
|
11924
11936
|
*/
|
|
11925
11937
|
"unicorn/no-null"?: Linter.RuleEntry<UnicornNoNull>;
|
|
11926
11938
|
/**
|
|
11927
11939
|
* Disallow the use of objects as default parameters.
|
|
11928
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11940
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-object-as-default-parameter.md
|
|
11929
11941
|
*/
|
|
11930
11942
|
"unicorn/no-object-as-default-parameter"?: Linter.RuleEntry<[]>;
|
|
11931
11943
|
/**
|
|
11932
11944
|
* Disallow `process.exit()`.
|
|
11933
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11945
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-process-exit.md
|
|
11934
11946
|
*/
|
|
11935
11947
|
"unicorn/no-process-exit"?: Linter.RuleEntry<[]>;
|
|
11936
11948
|
/**
|
|
11937
11949
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
11938
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11950
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
11939
11951
|
*/
|
|
11940
11952
|
"unicorn/no-single-promise-in-promise-methods"?: Linter.RuleEntry<[]>;
|
|
11941
11953
|
/**
|
|
11942
11954
|
* Disallow classes that only have static members.
|
|
11943
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11955
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-static-only-class.md
|
|
11944
11956
|
*/
|
|
11945
11957
|
"unicorn/no-static-only-class"?: Linter.RuleEntry<[]>;
|
|
11946
11958
|
/**
|
|
11947
11959
|
* Disallow `then` property.
|
|
11948
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11960
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-thenable.md
|
|
11949
11961
|
*/
|
|
11950
11962
|
"unicorn/no-thenable"?: Linter.RuleEntry<[]>;
|
|
11951
11963
|
/**
|
|
11952
11964
|
* Disallow assigning `this` to a variable.
|
|
11953
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11965
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-this-assignment.md
|
|
11954
11966
|
*/
|
|
11955
11967
|
"unicorn/no-this-assignment"?: Linter.RuleEntry<[]>;
|
|
11956
11968
|
/**
|
|
11957
11969
|
* Disallow comparing `undefined` using `typeof`.
|
|
11958
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11970
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-typeof-undefined.md
|
|
11959
11971
|
*/
|
|
11960
11972
|
"unicorn/no-typeof-undefined"?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
11961
11973
|
/**
|
|
11962
11974
|
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
11963
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11975
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-array-flat-depth.md
|
|
11964
11976
|
*/
|
|
11965
11977
|
"unicorn/no-unnecessary-array-flat-depth"?: Linter.RuleEntry<[]>;
|
|
11966
11978
|
/**
|
|
11967
11979
|
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
11968
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11980
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-array-splice-count.md
|
|
11969
11981
|
*/
|
|
11970
11982
|
"unicorn/no-unnecessary-array-splice-count"?: Linter.RuleEntry<[]>;
|
|
11971
11983
|
/**
|
|
11972
11984
|
* Disallow awaiting non-promise values.
|
|
11973
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11985
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-await.md
|
|
11974
11986
|
*/
|
|
11975
11987
|
"unicorn/no-unnecessary-await"?: Linter.RuleEntry<[]>;
|
|
11976
11988
|
/**
|
|
11977
11989
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
11978
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11990
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
11979
11991
|
*/
|
|
11980
11992
|
"unicorn/no-unnecessary-polyfills"?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
11981
11993
|
/**
|
|
11982
11994
|
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
11983
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11995
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-slice-end.md
|
|
11984
11996
|
*/
|
|
11985
11997
|
"unicorn/no-unnecessary-slice-end"?: Linter.RuleEntry<[]>;
|
|
11986
11998
|
/**
|
|
11987
11999
|
* Disallow unreadable array destructuring.
|
|
11988
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12000
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
11989
12001
|
*/
|
|
11990
12002
|
"unicorn/no-unreadable-array-destructuring"?: Linter.RuleEntry<[]>;
|
|
11991
12003
|
/**
|
|
11992
12004
|
* Disallow unreadable IIFEs.
|
|
11993
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12005
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unreadable-iife.md
|
|
11994
12006
|
*/
|
|
11995
12007
|
"unicorn/no-unreadable-iife"?: Linter.RuleEntry<[]>;
|
|
11996
12008
|
/**
|
|
11997
12009
|
* Disallow unused object properties.
|
|
11998
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12010
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unused-properties.md
|
|
11999
12011
|
*/
|
|
12000
12012
|
"unicorn/no-unused-properties"?: Linter.RuleEntry<[]>;
|
|
12013
|
+
/**
|
|
12014
|
+
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
12015
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-error-capture-stack-trace.md
|
|
12016
|
+
*/
|
|
12017
|
+
"unicorn/no-useless-error-capture-stack-trace"?: Linter.RuleEntry<[]>;
|
|
12001
12018
|
/**
|
|
12002
12019
|
* Disallow useless fallback when spreading in object literals.
|
|
12003
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12020
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
12004
12021
|
*/
|
|
12005
12022
|
"unicorn/no-useless-fallback-in-spread"?: Linter.RuleEntry<[]>;
|
|
12006
12023
|
/**
|
|
12007
12024
|
* Disallow useless array length check.
|
|
12008
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12025
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-length-check.md
|
|
12009
12026
|
*/
|
|
12010
12027
|
"unicorn/no-useless-length-check"?: Linter.RuleEntry<[]>;
|
|
12011
12028
|
/**
|
|
12012
12029
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
12013
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12030
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
12014
12031
|
*/
|
|
12015
12032
|
"unicorn/no-useless-promise-resolve-reject"?: Linter.RuleEntry<[]>;
|
|
12016
12033
|
/**
|
|
12017
12034
|
* Disallow unnecessary spread.
|
|
12018
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12035
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-spread.md
|
|
12019
12036
|
*/
|
|
12020
12037
|
"unicorn/no-useless-spread"?: Linter.RuleEntry<[]>;
|
|
12021
12038
|
/**
|
|
12022
12039
|
* Disallow useless case in switch statements.
|
|
12023
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12040
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-switch-case.md
|
|
12024
12041
|
*/
|
|
12025
12042
|
"unicorn/no-useless-switch-case"?: Linter.RuleEntry<[]>;
|
|
12026
12043
|
/**
|
|
12027
12044
|
* Disallow useless `undefined`.
|
|
12028
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12045
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-undefined.md
|
|
12029
12046
|
*/
|
|
12030
12047
|
"unicorn/no-useless-undefined"?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
12031
12048
|
/**
|
|
12032
12049
|
* Disallow number literals with zero fractions or dangling dots.
|
|
12033
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12050
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-zero-fractions.md
|
|
12034
12051
|
*/
|
|
12035
12052
|
"unicorn/no-zero-fractions"?: Linter.RuleEntry<[]>;
|
|
12036
12053
|
/**
|
|
12037
12054
|
* Enforce proper case for numeric literals.
|
|
12038
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12055
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/number-literal-case.md
|
|
12039
12056
|
*/
|
|
12040
12057
|
"unicorn/number-literal-case"?: Linter.RuleEntry<UnicornNumberLiteralCase>;
|
|
12041
12058
|
/**
|
|
12042
12059
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
12043
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12060
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/numeric-separators-style.md
|
|
12044
12061
|
*/
|
|
12045
12062
|
"unicorn/numeric-separators-style"?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
12046
12063
|
/**
|
|
12047
12064
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
12048
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12065
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-add-event-listener.md
|
|
12049
12066
|
*/
|
|
12050
12067
|
"unicorn/prefer-add-event-listener"?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
12051
12068
|
/**
|
|
12052
12069
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
12053
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12070
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-find.md
|
|
12054
12071
|
*/
|
|
12055
12072
|
"unicorn/prefer-array-find"?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
12056
12073
|
/**
|
|
12057
12074
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
12058
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12075
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-flat.md
|
|
12059
12076
|
*/
|
|
12060
12077
|
"unicorn/prefer-array-flat"?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
12061
12078
|
/**
|
|
12062
12079
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
12063
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12080
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-flat-map.md
|
|
12064
12081
|
*/
|
|
12065
12082
|
"unicorn/prefer-array-flat-map"?: Linter.RuleEntry<[]>;
|
|
12066
12083
|
/**
|
|
12067
12084
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
12068
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12085
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-index-of.md
|
|
12069
12086
|
*/
|
|
12070
12087
|
"unicorn/prefer-array-index-of"?: Linter.RuleEntry<[]>;
|
|
12071
12088
|
/**
|
|
12072
12089
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
12073
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12090
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-some.md
|
|
12074
12091
|
*/
|
|
12075
12092
|
"unicorn/prefer-array-some"?: Linter.RuleEntry<[]>;
|
|
12076
12093
|
/**
|
|
12077
12094
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
12078
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12095
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-at.md
|
|
12079
12096
|
*/
|
|
12080
12097
|
"unicorn/prefer-at"?: Linter.RuleEntry<UnicornPreferAt>;
|
|
12081
12098
|
/**
|
|
12082
12099
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
12083
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12100
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
12084
12101
|
*/
|
|
12085
12102
|
"unicorn/prefer-blob-reading-methods"?: Linter.RuleEntry<[]>;
|
|
12103
|
+
/**
|
|
12104
|
+
* Prefer class field declarations over `this` assignments in constructors.
|
|
12105
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-class-fields.md
|
|
12106
|
+
*/
|
|
12107
|
+
"unicorn/prefer-class-fields"?: Linter.RuleEntry<[]>;
|
|
12086
12108
|
/**
|
|
12087
12109
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
12088
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12110
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-code-point.md
|
|
12089
12111
|
*/
|
|
12090
12112
|
"unicorn/prefer-code-point"?: Linter.RuleEntry<[]>;
|
|
12091
12113
|
/**
|
|
12092
12114
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
12093
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12115
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-date-now.md
|
|
12094
12116
|
*/
|
|
12095
12117
|
"unicorn/prefer-date-now"?: Linter.RuleEntry<[]>;
|
|
12096
12118
|
/**
|
|
12097
12119
|
* Prefer default parameters over reassignment.
|
|
12098
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12120
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-default-parameters.md
|
|
12099
12121
|
*/
|
|
12100
12122
|
"unicorn/prefer-default-parameters"?: Linter.RuleEntry<[]>;
|
|
12101
12123
|
/**
|
|
12102
12124
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
12103
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12125
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-append.md
|
|
12104
12126
|
*/
|
|
12105
12127
|
"unicorn/prefer-dom-node-append"?: Linter.RuleEntry<[]>;
|
|
12106
12128
|
/**
|
|
12107
12129
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
12108
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12130
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
12109
12131
|
*/
|
|
12110
12132
|
"unicorn/prefer-dom-node-dataset"?: Linter.RuleEntry<[]>;
|
|
12111
12133
|
/**
|
|
12112
12134
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
12113
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12135
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-remove.md
|
|
12114
12136
|
*/
|
|
12115
12137
|
"unicorn/prefer-dom-node-remove"?: Linter.RuleEntry<[]>;
|
|
12116
12138
|
/**
|
|
12117
12139
|
* Prefer `.textContent` over `.innerText`.
|
|
12118
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12140
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
12119
12141
|
*/
|
|
12120
12142
|
"unicorn/prefer-dom-node-text-content"?: Linter.RuleEntry<[]>;
|
|
12121
12143
|
/**
|
|
12122
12144
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
12123
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12145
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-event-target.md
|
|
12124
12146
|
*/
|
|
12125
12147
|
"unicorn/prefer-event-target"?: Linter.RuleEntry<[]>;
|
|
12126
12148
|
/**
|
|
12127
12149
|
* Prefer `export…from` when re-exporting.
|
|
12128
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12150
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-export-from.md
|
|
12129
12151
|
*/
|
|
12130
12152
|
"unicorn/prefer-export-from"?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
12131
12153
|
/**
|
|
12132
12154
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
12133
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12155
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-global-this.md
|
|
12134
12156
|
*/
|
|
12135
12157
|
"unicorn/prefer-global-this"?: Linter.RuleEntry<[]>;
|
|
12136
12158
|
/**
|
|
12137
12159
|
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
12138
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12160
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-import-meta-properties.md
|
|
12139
12161
|
*/
|
|
12140
12162
|
"unicorn/prefer-import-meta-properties"?: Linter.RuleEntry<[]>;
|
|
12141
12163
|
/**
|
|
12142
12164
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
12143
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12165
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-includes.md
|
|
12144
12166
|
*/
|
|
12145
12167
|
"unicorn/prefer-includes"?: Linter.RuleEntry<[]>;
|
|
12146
12168
|
/**
|
|
12147
12169
|
* Prefer reading a JSON file as a buffer.
|
|
12148
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12170
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
12149
12171
|
*/
|
|
12150
12172
|
"unicorn/prefer-json-parse-buffer"?: Linter.RuleEntry<[]>;
|
|
12151
12173
|
/**
|
|
12152
12174
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
12153
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12175
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
12154
12176
|
*/
|
|
12155
12177
|
"unicorn/prefer-keyboard-event-key"?: Linter.RuleEntry<[]>;
|
|
12156
12178
|
/**
|
|
12157
12179
|
* Prefer using a logical operator over a ternary.
|
|
12158
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12180
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
12159
12181
|
*/
|
|
12160
12182
|
"unicorn/prefer-logical-operator-over-ternary"?: Linter.RuleEntry<[]>;
|
|
12161
12183
|
/**
|
|
12162
12184
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
12163
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12185
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-math-min-max.md
|
|
12164
12186
|
*/
|
|
12165
12187
|
"unicorn/prefer-math-min-max"?: Linter.RuleEntry<[]>;
|
|
12166
12188
|
/**
|
|
12167
12189
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
12168
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12190
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-math-trunc.md
|
|
12169
12191
|
*/
|
|
12170
12192
|
"unicorn/prefer-math-trunc"?: Linter.RuleEntry<[]>;
|
|
12171
12193
|
/**
|
|
12172
12194
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
12173
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12195
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
12174
12196
|
*/
|
|
12175
12197
|
"unicorn/prefer-modern-dom-apis"?: Linter.RuleEntry<[]>;
|
|
12176
12198
|
/**
|
|
12177
12199
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
12178
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12200
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-modern-math-apis.md
|
|
12179
12201
|
*/
|
|
12180
12202
|
"unicorn/prefer-modern-math-apis"?: Linter.RuleEntry<[]>;
|
|
12181
12203
|
/**
|
|
12182
12204
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
12183
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12205
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-module.md
|
|
12184
12206
|
*/
|
|
12185
12207
|
"unicorn/prefer-module"?: Linter.RuleEntry<[]>;
|
|
12186
12208
|
/**
|
|
12187
12209
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
12188
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12210
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
12189
12211
|
*/
|
|
12190
12212
|
"unicorn/prefer-native-coercion-functions"?: Linter.RuleEntry<[]>;
|
|
12191
12213
|
/**
|
|
12192
12214
|
* Prefer negative index over `.length - index` when possible.
|
|
12193
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12215
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-negative-index.md
|
|
12194
12216
|
*/
|
|
12195
12217
|
"unicorn/prefer-negative-index"?: Linter.RuleEntry<[]>;
|
|
12196
12218
|
/**
|
|
12197
12219
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
12198
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12220
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-node-protocol.md
|
|
12199
12221
|
*/
|
|
12200
12222
|
"unicorn/prefer-node-protocol"?: Linter.RuleEntry<[]>;
|
|
12201
12223
|
/**
|
|
12202
12224
|
* Prefer `Number` static properties over global ones.
|
|
12203
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12225
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-number-properties.md
|
|
12204
12226
|
*/
|
|
12205
12227
|
"unicorn/prefer-number-properties"?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
12206
12228
|
/**
|
|
12207
12229
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
12208
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12230
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-object-from-entries.md
|
|
12209
12231
|
*/
|
|
12210
12232
|
"unicorn/prefer-object-from-entries"?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
12211
12233
|
/**
|
|
12212
12234
|
* Prefer omitting the `catch` binding parameter.
|
|
12213
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12235
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
12214
12236
|
*/
|
|
12215
12237
|
"unicorn/prefer-optional-catch-binding"?: Linter.RuleEntry<[]>;
|
|
12216
12238
|
/**
|
|
12217
12239
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
12218
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12240
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-prototype-methods.md
|
|
12219
12241
|
*/
|
|
12220
12242
|
"unicorn/prefer-prototype-methods"?: Linter.RuleEntry<[]>;
|
|
12221
12243
|
/**
|
|
12222
12244
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
12223
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12245
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-query-selector.md
|
|
12224
12246
|
*/
|
|
12225
12247
|
"unicorn/prefer-query-selector"?: Linter.RuleEntry<[]>;
|
|
12226
12248
|
/**
|
|
12227
12249
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
12228
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12250
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-reflect-apply.md
|
|
12229
12251
|
*/
|
|
12230
12252
|
"unicorn/prefer-reflect-apply"?: Linter.RuleEntry<[]>;
|
|
12231
12253
|
/**
|
|
12232
12254
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
12233
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12255
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-regexp-test.md
|
|
12234
12256
|
*/
|
|
12235
12257
|
"unicorn/prefer-regexp-test"?: Linter.RuleEntry<[]>;
|
|
12236
12258
|
/**
|
|
12237
12259
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
12238
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12260
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-set-has.md
|
|
12239
12261
|
*/
|
|
12240
12262
|
"unicorn/prefer-set-has"?: Linter.RuleEntry<[]>;
|
|
12241
12263
|
/**
|
|
12242
12264
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
12243
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12265
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-set-size.md
|
|
12244
12266
|
*/
|
|
12245
12267
|
"unicorn/prefer-set-size"?: Linter.RuleEntry<[]>;
|
|
12246
12268
|
/**
|
|
12247
12269
|
* Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
12248
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12270
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-single-call.md
|
|
12249
12271
|
*/
|
|
12250
12272
|
"unicorn/prefer-single-call"?: Linter.RuleEntry<UnicornPreferSingleCall>;
|
|
12251
12273
|
/**
|
|
12252
12274
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
12253
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12275
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-spread.md
|
|
12254
12276
|
*/
|
|
12255
12277
|
"unicorn/prefer-spread"?: Linter.RuleEntry<[]>;
|
|
12256
12278
|
/**
|
|
12257
12279
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
12258
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12280
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-raw.md
|
|
12259
12281
|
*/
|
|
12260
12282
|
"unicorn/prefer-string-raw"?: Linter.RuleEntry<[]>;
|
|
12261
12283
|
/**
|
|
12262
12284
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
12263
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12285
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-replace-all.md
|
|
12264
12286
|
*/
|
|
12265
12287
|
"unicorn/prefer-string-replace-all"?: Linter.RuleEntry<[]>;
|
|
12266
12288
|
/**
|
|
12267
12289
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
12268
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12290
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-slice.md
|
|
12269
12291
|
*/
|
|
12270
12292
|
"unicorn/prefer-string-slice"?: Linter.RuleEntry<[]>;
|
|
12271
12293
|
/**
|
|
12272
12294
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
12273
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12295
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
12274
12296
|
*/
|
|
12275
12297
|
"unicorn/prefer-string-starts-ends-with"?: Linter.RuleEntry<[]>;
|
|
12276
12298
|
/**
|
|
12277
12299
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
12278
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12300
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
12279
12301
|
*/
|
|
12280
12302
|
"unicorn/prefer-string-trim-start-end"?: Linter.RuleEntry<[]>;
|
|
12281
12303
|
/**
|
|
12282
12304
|
* Prefer using `structuredClone` to create a deep clone.
|
|
12283
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12305
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-structured-clone.md
|
|
12284
12306
|
*/
|
|
12285
12307
|
"unicorn/prefer-structured-clone"?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
12286
12308
|
/**
|
|
12287
12309
|
* Prefer `switch` over multiple `else-if`.
|
|
12288
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12310
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-switch.md
|
|
12289
12311
|
*/
|
|
12290
12312
|
"unicorn/prefer-switch"?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
12291
12313
|
/**
|
|
12292
12314
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
12293
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12315
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-ternary.md
|
|
12294
12316
|
*/
|
|
12295
12317
|
"unicorn/prefer-ternary"?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
12296
12318
|
/**
|
|
12297
12319
|
* Prefer top-level await over top-level promises and async function calls.
|
|
12298
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12320
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-top-level-await.md
|
|
12299
12321
|
*/
|
|
12300
12322
|
"unicorn/prefer-top-level-await"?: Linter.RuleEntry<[]>;
|
|
12301
12323
|
/**
|
|
12302
12324
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
12303
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12325
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-type-error.md
|
|
12304
12326
|
*/
|
|
12305
12327
|
"unicorn/prefer-type-error"?: Linter.RuleEntry<[]>;
|
|
12306
12328
|
/**
|
|
12307
12329
|
* Prevent abbreviations.
|
|
12308
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12330
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prevent-abbreviations.md
|
|
12309
12331
|
*/
|
|
12310
12332
|
"unicorn/prevent-abbreviations"?: Linter.RuleEntry<UnicornPreventAbbreviations>;
|
|
12311
12333
|
/**
|
|
12312
12334
|
* Enforce consistent relative URL style.
|
|
12313
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12335
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/relative-url-style.md
|
|
12314
12336
|
*/
|
|
12315
12337
|
"unicorn/relative-url-style"?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
12316
12338
|
/**
|
|
12317
12339
|
* Enforce using the separator argument with `Array#join()`.
|
|
12318
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12340
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-array-join-separator.md
|
|
12319
12341
|
*/
|
|
12320
12342
|
"unicorn/require-array-join-separator"?: Linter.RuleEntry<[]>;
|
|
12343
|
+
/**
|
|
12344
|
+
* Require non-empty specifier list in import and export statements.
|
|
12345
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-module-specifiers.md
|
|
12346
|
+
*/
|
|
12347
|
+
"unicorn/require-module-specifiers"?: Linter.RuleEntry<[]>;
|
|
12321
12348
|
/**
|
|
12322
12349
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
12323
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12350
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
12324
12351
|
*/
|
|
12325
12352
|
"unicorn/require-number-to-fixed-digits-argument"?: Linter.RuleEntry<[]>;
|
|
12326
12353
|
/**
|
|
12327
12354
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
12328
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12355
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-post-message-target-origin.md
|
|
12329
12356
|
*/
|
|
12330
12357
|
"unicorn/require-post-message-target-origin"?: Linter.RuleEntry<[]>;
|
|
12331
12358
|
/**
|
|
12332
12359
|
* Enforce better string content.
|
|
12333
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12360
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/string-content.md
|
|
12334
12361
|
*/
|
|
12335
12362
|
"unicorn/string-content"?: Linter.RuleEntry<UnicornStringContent>;
|
|
12336
12363
|
/**
|
|
12337
12364
|
* Enforce consistent brace style for `case` clauses.
|
|
12338
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12365
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/switch-case-braces.md
|
|
12339
12366
|
*/
|
|
12340
12367
|
"unicorn/switch-case-braces"?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
12341
12368
|
/**
|
|
12342
12369
|
* Fix whitespace-insensitive template indentation.
|
|
12343
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12370
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/template-indent.md
|
|
12344
12371
|
*/
|
|
12345
12372
|
"unicorn/template-indent"?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
12346
12373
|
/**
|
|
12347
12374
|
* Enforce consistent case for text encoding identifiers.
|
|
12348
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12375
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/text-encoding-identifier-case.md
|
|
12349
12376
|
*/
|
|
12350
12377
|
"unicorn/text-encoding-identifier-case"?: Linter.RuleEntry<[]>;
|
|
12351
12378
|
/**
|
|
12352
12379
|
* Require `new` when creating an error.
|
|
12353
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12380
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/throw-new-error.md
|
|
12354
12381
|
*/
|
|
12355
12382
|
"unicorn/throw-new-error"?: Linter.RuleEntry<[]>;
|
|
12356
12383
|
}
|
|
@@ -12418,6 +12445,10 @@ interface _UnicornImportStyle_BooleanObject {
|
|
|
12418
12445
|
type UnicornNoArrayReduce = [] | [{
|
|
12419
12446
|
allowSimpleOperations?: boolean;
|
|
12420
12447
|
}];
|
|
12448
|
+
// ----- unicorn/no-array-reverse -----
|
|
12449
|
+
type UnicornNoArrayReverse = [] | [{
|
|
12450
|
+
allowExpressionStatement?: boolean;
|
|
12451
|
+
}];
|
|
12421
12452
|
// ----- unicorn/no-instanceof-builtins -----
|
|
12422
12453
|
type UnicornNoInstanceofBuiltins = [] | [{
|
|
12423
12454
|
useErrorIsError?: boolean;
|
|
@@ -13709,7 +13740,7 @@ declare function defineConfig(options?: OptionsConfig & Config, ...userConfigs:
|
|
|
13709
13740
|
type DefineConfig = typeof defineConfig;
|
|
13710
13741
|
//#endregion
|
|
13711
13742
|
//#region src/generated/version.d.ts
|
|
13712
|
-
declare const VERSION = "0.4.
|
|
13743
|
+
declare const VERSION = "0.4.7";
|
|
13713
13744
|
declare namespace globs_d_exports {
|
|
13714
13745
|
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_YAML };
|
|
13715
13746
|
}
|
|
@@ -14017,14 +14048,14 @@ declare function importPluginReact(): Promise<{
|
|
|
14017
14048
|
"react/jsx-uses-react": 0;
|
|
14018
14049
|
};
|
|
14019
14050
|
};
|
|
14020
|
-
flat: Record<string,
|
|
14051
|
+
flat: Record<string, eslint_plugin_react0.ReactFlatConfig>;
|
|
14021
14052
|
} & {
|
|
14022
|
-
flat: Record<string,
|
|
14053
|
+
flat: Record<string, eslint_plugin_react0.ReactFlatConfig>;
|
|
14023
14054
|
};
|
|
14024
14055
|
};
|
|
14025
14056
|
}>;
|
|
14026
14057
|
declare function importPluginReactHooks(): Promise<{
|
|
14027
|
-
pluginReactHooks: typeof
|
|
14058
|
+
pluginReactHooks: typeof eslint_plugin_react_hooks0;
|
|
14028
14059
|
}>;
|
|
14029
14060
|
declare function importPluginReactRefresh(): Promise<{
|
|
14030
14061
|
pluginReactRefresh: {
|
|
@@ -14316,12 +14347,12 @@ declare function importReactPlugins(): Promise<{
|
|
|
14316
14347
|
"react/jsx-uses-react": 0;
|
|
14317
14348
|
};
|
|
14318
14349
|
};
|
|
14319
|
-
flat: Record<string,
|
|
14350
|
+
flat: Record<string, eslint_plugin_react0.ReactFlatConfig>;
|
|
14320
14351
|
} & {
|
|
14321
|
-
flat: Record<string,
|
|
14352
|
+
flat: Record<string, eslint_plugin_react0.ReactFlatConfig>;
|
|
14322
14353
|
};
|
|
14323
14354
|
};
|
|
14324
|
-
pluginReactHooks: typeof
|
|
14355
|
+
pluginReactHooks: typeof eslint_plugin_react_hooks0;
|
|
14325
14356
|
pluginReactRefresh: {
|
|
14326
14357
|
rules: Record<string, any>;
|
|
14327
14358
|
configs: {
|
|
@@ -14345,11 +14376,11 @@ declare function importReactPlugins(): Promise<{
|
|
|
14345
14376
|
};
|
|
14346
14377
|
}>;
|
|
14347
14378
|
declare function importParserJsonc(): Promise<{
|
|
14348
|
-
parserJsonc: typeof
|
|
14379
|
+
parserJsonc: typeof jsonc_eslint_parser0;
|
|
14349
14380
|
}>;
|
|
14350
14381
|
declare function importPluginJsonc(): Promise<{
|
|
14351
14382
|
pluginJsonc: {
|
|
14352
|
-
meta: typeof
|
|
14383
|
+
meta: typeof eslint_plugin_jsonc_meta0;
|
|
14353
14384
|
configs: {
|
|
14354
14385
|
base: {
|
|
14355
14386
|
plugins: string[];
|
|
@@ -14493,7 +14524,7 @@ declare function importPluginJsonc(): Promise<{
|
|
|
14493
14524
|
} | {
|
|
14494
14525
|
files: string[];
|
|
14495
14526
|
languageOptions: {
|
|
14496
|
-
parser: typeof
|
|
14527
|
+
parser: typeof jsonc_eslint_parser0;
|
|
14497
14528
|
};
|
|
14498
14529
|
rules: {
|
|
14499
14530
|
strict: "off";
|
|
@@ -14512,7 +14543,7 @@ declare function importPluginJsonc(): Promise<{
|
|
|
14512
14543
|
} | {
|
|
14513
14544
|
files: string[];
|
|
14514
14545
|
languageOptions: {
|
|
14515
|
-
parser: typeof
|
|
14546
|
+
parser: typeof jsonc_eslint_parser0;
|
|
14516
14547
|
};
|
|
14517
14548
|
rules: {
|
|
14518
14549
|
strict: "off";
|
|
@@ -14563,7 +14594,7 @@ declare function importPluginJsonc(): Promise<{
|
|
|
14563
14594
|
} | {
|
|
14564
14595
|
files: string[];
|
|
14565
14596
|
languageOptions: {
|
|
14566
|
-
parser: typeof
|
|
14597
|
+
parser: typeof jsonc_eslint_parser0;
|
|
14567
14598
|
};
|
|
14568
14599
|
rules: {
|
|
14569
14600
|
strict: "off";
|
|
@@ -14612,7 +14643,7 @@ declare function importPluginJsonc(): Promise<{
|
|
|
14612
14643
|
} | {
|
|
14613
14644
|
files: string[];
|
|
14614
14645
|
languageOptions: {
|
|
14615
|
-
parser: typeof
|
|
14646
|
+
parser: typeof jsonc_eslint_parser0;
|
|
14616
14647
|
};
|
|
14617
14648
|
rules: {
|
|
14618
14649
|
strict: "off";
|
|
@@ -14652,7 +14683,7 @@ declare function importPluginJsonc(): Promise<{
|
|
|
14652
14683
|
} | {
|
|
14653
14684
|
files: string[];
|
|
14654
14685
|
languageOptions: {
|
|
14655
|
-
parser: typeof
|
|
14686
|
+
parser: typeof jsonc_eslint_parser0;
|
|
14656
14687
|
};
|
|
14657
14688
|
rules: {
|
|
14658
14689
|
strict: "off";
|
|
@@ -14688,7 +14719,7 @@ declare function importPluginJsonc(): Promise<{
|
|
|
14688
14719
|
} | {
|
|
14689
14720
|
files: string[];
|
|
14690
14721
|
languageOptions: {
|
|
14691
|
-
parser: typeof
|
|
14722
|
+
parser: typeof jsonc_eslint_parser0;
|
|
14692
14723
|
};
|
|
14693
14724
|
rules: {
|
|
14694
14725
|
strict: "off";
|
|
@@ -14703,18 +14734,18 @@ declare function importPluginJsonc(): Promise<{
|
|
|
14703
14734
|
})[];
|
|
14704
14735
|
};
|
|
14705
14736
|
rules: {
|
|
14706
|
-
[key: string]:
|
|
14737
|
+
[key: string]: eslint_plugin_jsonc_types0.RuleModule<unknown[]>;
|
|
14707
14738
|
};
|
|
14708
|
-
parseForESLint: typeof
|
|
14709
|
-
parseJSON: typeof
|
|
14710
|
-
traverseNodes: typeof
|
|
14711
|
-
getStaticJSONValue: typeof
|
|
14739
|
+
parseForESLint: typeof jsonc_eslint_parser0.parseForESLint;
|
|
14740
|
+
parseJSON: typeof jsonc_eslint_parser0.parseJSON;
|
|
14741
|
+
traverseNodes: typeof jsonc_eslint_parser0.traverseNodes;
|
|
14742
|
+
getStaticJSONValue: typeof jsonc_eslint_parser0.getStaticJSONValue;
|
|
14712
14743
|
};
|
|
14713
14744
|
}>;
|
|
14714
14745
|
declare function importJsoncLibs(): Promise<{
|
|
14715
|
-
parserJsonc: typeof
|
|
14746
|
+
parserJsonc: typeof jsonc_eslint_parser0;
|
|
14716
14747
|
pluginJsonc: {
|
|
14717
|
-
meta: typeof
|
|
14748
|
+
meta: typeof eslint_plugin_jsonc_meta0;
|
|
14718
14749
|
configs: {
|
|
14719
14750
|
base: {
|
|
14720
14751
|
plugins: string[];
|
|
@@ -14858,7 +14889,7 @@ declare function importJsoncLibs(): Promise<{
|
|
|
14858
14889
|
} | {
|
|
14859
14890
|
files: string[];
|
|
14860
14891
|
languageOptions: {
|
|
14861
|
-
parser: typeof
|
|
14892
|
+
parser: typeof jsonc_eslint_parser0;
|
|
14862
14893
|
};
|
|
14863
14894
|
rules: {
|
|
14864
14895
|
strict: "off";
|
|
@@ -14877,7 +14908,7 @@ declare function importJsoncLibs(): Promise<{
|
|
|
14877
14908
|
} | {
|
|
14878
14909
|
files: string[];
|
|
14879
14910
|
languageOptions: {
|
|
14880
|
-
parser: typeof
|
|
14911
|
+
parser: typeof jsonc_eslint_parser0;
|
|
14881
14912
|
};
|
|
14882
14913
|
rules: {
|
|
14883
14914
|
strict: "off";
|
|
@@ -14928,7 +14959,7 @@ declare function importJsoncLibs(): Promise<{
|
|
|
14928
14959
|
} | {
|
|
14929
14960
|
files: string[];
|
|
14930
14961
|
languageOptions: {
|
|
14931
|
-
parser: typeof
|
|
14962
|
+
parser: typeof jsonc_eslint_parser0;
|
|
14932
14963
|
};
|
|
14933
14964
|
rules: {
|
|
14934
14965
|
strict: "off";
|
|
@@ -14977,7 +15008,7 @@ declare function importJsoncLibs(): Promise<{
|
|
|
14977
15008
|
} | {
|
|
14978
15009
|
files: string[];
|
|
14979
15010
|
languageOptions: {
|
|
14980
|
-
parser: typeof
|
|
15011
|
+
parser: typeof jsonc_eslint_parser0;
|
|
14981
15012
|
};
|
|
14982
15013
|
rules: {
|
|
14983
15014
|
strict: "off";
|
|
@@ -15017,7 +15048,7 @@ declare function importJsoncLibs(): Promise<{
|
|
|
15017
15048
|
} | {
|
|
15018
15049
|
files: string[];
|
|
15019
15050
|
languageOptions: {
|
|
15020
|
-
parser: typeof
|
|
15051
|
+
parser: typeof jsonc_eslint_parser0;
|
|
15021
15052
|
};
|
|
15022
15053
|
rules: {
|
|
15023
15054
|
strict: "off";
|
|
@@ -15053,7 +15084,7 @@ declare function importJsoncLibs(): Promise<{
|
|
|
15053
15084
|
} | {
|
|
15054
15085
|
files: string[];
|
|
15055
15086
|
languageOptions: {
|
|
15056
|
-
parser: typeof
|
|
15087
|
+
parser: typeof jsonc_eslint_parser0;
|
|
15057
15088
|
};
|
|
15058
15089
|
rules: {
|
|
15059
15090
|
strict: "off";
|
|
@@ -15068,18 +15099,18 @@ declare function importJsoncLibs(): Promise<{
|
|
|
15068
15099
|
})[];
|
|
15069
15100
|
};
|
|
15070
15101
|
rules: {
|
|
15071
|
-
[key: string]:
|
|
15102
|
+
[key: string]: eslint_plugin_jsonc_types0.RuleModule<unknown[]>;
|
|
15072
15103
|
};
|
|
15073
|
-
parseForESLint: typeof
|
|
15074
|
-
parseJSON: typeof
|
|
15075
|
-
traverseNodes: typeof
|
|
15076
|
-
getStaticJSONValue: typeof
|
|
15104
|
+
parseForESLint: typeof jsonc_eslint_parser0.parseForESLint;
|
|
15105
|
+
parseJSON: typeof jsonc_eslint_parser0.parseJSON;
|
|
15106
|
+
traverseNodes: typeof jsonc_eslint_parser0.traverseNodes;
|
|
15107
|
+
getStaticJSONValue: typeof jsonc_eslint_parser0.getStaticJSONValue;
|
|
15077
15108
|
};
|
|
15078
15109
|
}>;
|
|
15079
15110
|
declare function importYmlLibs(): Promise<{
|
|
15080
|
-
parserYaml: typeof
|
|
15111
|
+
parserYaml: typeof yaml_eslint_parser0;
|
|
15081
15112
|
pluginYaml: {
|
|
15082
|
-
meta: typeof
|
|
15113
|
+
meta: typeof eslint_plugin_yml_lib_meta_js0;
|
|
15083
15114
|
configs: {
|
|
15084
15115
|
base: {
|
|
15085
15116
|
plugins: string[];
|
|
@@ -15157,7 +15188,7 @@ declare function importYmlLibs(): Promise<{
|
|
|
15157
15188
|
} | {
|
|
15158
15189
|
files: string[];
|
|
15159
15190
|
languageOptions: {
|
|
15160
|
-
parser: typeof
|
|
15191
|
+
parser: typeof yaml_eslint_parser0;
|
|
15161
15192
|
};
|
|
15162
15193
|
rules: {
|
|
15163
15194
|
"no-irregular-whitespace": "off";
|
|
@@ -15176,7 +15207,7 @@ declare function importYmlLibs(): Promise<{
|
|
|
15176
15207
|
} | {
|
|
15177
15208
|
files: string[];
|
|
15178
15209
|
languageOptions: {
|
|
15179
|
-
parser: typeof
|
|
15210
|
+
parser: typeof yaml_eslint_parser0;
|
|
15180
15211
|
};
|
|
15181
15212
|
rules: {
|
|
15182
15213
|
"no-irregular-whitespace": "off";
|
|
@@ -15205,7 +15236,7 @@ declare function importYmlLibs(): Promise<{
|
|
|
15205
15236
|
} | {
|
|
15206
15237
|
files: string[];
|
|
15207
15238
|
languageOptions: {
|
|
15208
|
-
parser: typeof
|
|
15239
|
+
parser: typeof yaml_eslint_parser0;
|
|
15209
15240
|
};
|
|
15210
15241
|
rules: {
|
|
15211
15242
|
"no-irregular-whitespace": "off";
|
|
@@ -15247,7 +15278,7 @@ declare function importYmlLibs(): Promise<{
|
|
|
15247
15278
|
} | {
|
|
15248
15279
|
files: string[];
|
|
15249
15280
|
languageOptions: {
|
|
15250
|
-
parser: typeof
|
|
15281
|
+
parser: typeof yaml_eslint_parser0;
|
|
15251
15282
|
};
|
|
15252
15283
|
rules: {
|
|
15253
15284
|
"no-irregular-whitespace": "off";
|
|
@@ -15273,16 +15304,16 @@ declare function importYmlLibs(): Promise<{
|
|
|
15273
15304
|
})[];
|
|
15274
15305
|
};
|
|
15275
15306
|
rules: {
|
|
15276
|
-
[key: string]:
|
|
15307
|
+
[key: string]: eslint_plugin_yml_lib_types_js0.RuleModule;
|
|
15277
15308
|
};
|
|
15278
15309
|
};
|
|
15279
15310
|
}>;
|
|
15280
15311
|
declare function importPluginMarkdown(): Promise<{
|
|
15281
|
-
pluginMarkdown: typeof
|
|
15312
|
+
pluginMarkdown: typeof _eslint_markdown0.default;
|
|
15282
15313
|
}>;
|
|
15283
15314
|
declare function importPluginJsdoc(): Promise<{
|
|
15284
15315
|
pluginJsdoc: eslint0.ESLint.Plugin & {
|
|
15285
|
-
configs: Record<`flat/${
|
|
15316
|
+
configs: Record<`flat/${eslint_plugin_jsdoc0.ConfigGroups}${eslint_plugin_jsdoc0.ConfigVariants}${eslint_plugin_jsdoc0.ErrorLevelVariants}`, eslint0.Linter.Config>;
|
|
15286
15317
|
};
|
|
15287
15318
|
}>;
|
|
15288
15319
|
declare function importPluginTsdoc(): Promise<{
|
|
@@ -15294,8 +15325,8 @@ declare function importPluginTsdoc(): Promise<{
|
|
|
15294
15325
|
}>;
|
|
15295
15326
|
declare function importPluginStylistic(): Promise<{
|
|
15296
15327
|
pluginStylistic: {
|
|
15297
|
-
rules:
|
|
15298
|
-
configs: eslint0.ESLint.Plugin["configs"] &
|
|
15328
|
+
rules: _stylistic_eslint_plugin0.Rules;
|
|
15329
|
+
configs: eslint0.ESLint.Plugin["configs"] & _stylistic_eslint_plugin0.Configs;
|
|
15299
15330
|
};
|
|
15300
15331
|
}>;
|
|
15301
15332
|
//#endregion
|