@jsse/eslint-config 0.6.2 → 0.7.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 +12 -0
- package/README.md +1 -6
- package/dist/cli.js +1 -1
- package/dist/{version-B1I0SM9v.js → const-7b74P6Qm.js} +4 -4
- package/dist/index.d.ts +660 -401
- package/dist/index.js +12 -93
- package/package.json +26 -24
package/dist/index.d.ts
CHANGED
|
@@ -10,14 +10,17 @@ 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 _stylistic_eslint_plugin0 from "@stylistic/eslint-plugin";
|
|
15
|
-
import { FlatGitignoreOptions } from "eslint-config-flat-gitignore";
|
|
16
|
-
import * as eslint_plugin_react0 from "eslint-plugin-react";
|
|
17
|
-
import * as eslint from "eslint";
|
|
13
|
+
import * as _$eslint from "eslint";
|
|
18
14
|
import { Linter, Rule } from "eslint";
|
|
15
|
+
import { FlatGitignoreOptions } from "eslint-config-flat-gitignore";
|
|
16
|
+
import * as _$eslint_plugin_react0 from "eslint-plugin-react";
|
|
17
|
+
import * as _$_eslint_markdown0 from "@eslint/markdown";
|
|
18
|
+
import * as _$_stylistic_eslint_plugin0 from "@stylistic/eslint-plugin";
|
|
19
19
|
|
|
20
|
-
//#region src/
|
|
20
|
+
//#region src/_generated/version.d.ts
|
|
21
|
+
declare const VERSION = "0.7.1";
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/_generated/dts/builtins.d.ts
|
|
21
24
|
interface BuiltinsRuleOptions {
|
|
22
25
|
/**
|
|
23
26
|
* Enforce getter and setter pairs in objects and classes
|
|
@@ -2291,10 +2294,10 @@ type MaxParams = [] | [number | {
|
|
|
2291
2294
|
type MaxStatements = [] | [number | {
|
|
2292
2295
|
maximum?: number;
|
|
2293
2296
|
max?: number;
|
|
2294
|
-
}] | [
|
|
2297
|
+
}] | [number | {
|
|
2295
2298
|
maximum?: number;
|
|
2296
2299
|
max?: number;
|
|
2297
|
-
}
|
|
2300
|
+
}, {
|
|
2298
2301
|
ignoreTopLevelFunctions?: boolean;
|
|
2299
2302
|
}]; // ----- max-statements-per-line -----
|
|
2300
2303
|
type MaxStatementsPerLine = [] | [{
|
|
@@ -2878,7 +2881,7 @@ type Yoda = [] | ["always" | "never"] | ["always" | "never", {
|
|
|
2878
2881
|
onlyEquality?: boolean;
|
|
2879
2882
|
}];
|
|
2880
2883
|
//#endregion
|
|
2881
|
-
//#region src/
|
|
2884
|
+
//#region src/_generated/dts/antfu.d.ts
|
|
2882
2885
|
interface AntfuRuleOptions {
|
|
2883
2886
|
/**
|
|
2884
2887
|
* Having line breaks styles to object, array and named imports
|
|
@@ -2969,7 +2972,7 @@ type AntfuIndentUnindent = [] | [{
|
|
|
2969
2972
|
tags?: string[];
|
|
2970
2973
|
}];
|
|
2971
2974
|
//#endregion
|
|
2972
|
-
//#region src/
|
|
2975
|
+
//#region src/_generated/dts/command.d.ts
|
|
2973
2976
|
interface CommandRuleOptions {
|
|
2974
2977
|
/**
|
|
2975
2978
|
* Comment-as-command for one-off codemod with ESLint
|
|
@@ -2978,7 +2981,7 @@ interface CommandRuleOptions {
|
|
|
2978
2981
|
"command/command"?: Linter.RuleEntry<[]>;
|
|
2979
2982
|
}
|
|
2980
2983
|
//#endregion
|
|
2981
|
-
//#region src/
|
|
2984
|
+
//#region src/_generated/dts/de-morgan.d.ts
|
|
2982
2985
|
interface DeMorganRuleOptions {
|
|
2983
2986
|
/**
|
|
2984
2987
|
* Transforms the negation of a conjunction !(A && B) into the equivalent !A || !B according to De Morgan’s law
|
|
@@ -2992,7 +2995,7 @@ interface DeMorganRuleOptions {
|
|
|
2992
2995
|
"de-morgan/no-negated-disjunction"?: Linter.RuleEntry<[]>;
|
|
2993
2996
|
}
|
|
2994
2997
|
//#endregion
|
|
2995
|
-
//#region src/
|
|
2998
|
+
//#region src/_generated/dts/eslint-comments.d.ts
|
|
2996
2999
|
interface EslintCommentsRuleOptions {
|
|
2997
3000
|
/**
|
|
2998
3001
|
* require a `eslint-enable` comment for every `eslint-disable` comment
|
|
@@ -3054,10 +3057,10 @@ type EslintCommentsRequireDescription = [] | [{
|
|
|
3054
3057
|
ignore?: ("eslint" | "eslint-disable" | "eslint-disable-line" | "eslint-disable-next-line" | "eslint-enable" | "eslint-env" | "exported" | "global" | "globals")[];
|
|
3055
3058
|
}];
|
|
3056
3059
|
//#endregion
|
|
3057
|
-
//#region src/
|
|
3060
|
+
//#region src/_generated/dts/ignores.d.ts
|
|
3058
3061
|
interface IgnoresRuleOptions {}
|
|
3059
3062
|
//#endregion
|
|
3060
|
-
//#region src/
|
|
3063
|
+
//#region src/_generated/dts/imports.d.ts
|
|
3061
3064
|
interface ImportsRuleOptions {
|
|
3062
3065
|
/**
|
|
3063
3066
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
@@ -3121,7 +3124,7 @@ type ImportPreferDefaultExport$1 = [] | [{
|
|
|
3121
3124
|
target?: "single" | "any";
|
|
3122
3125
|
}];
|
|
3123
3126
|
//#endregion
|
|
3124
|
-
//#region src/
|
|
3127
|
+
//#region src/_generated/dts/javascript.d.ts
|
|
3125
3128
|
interface JavascriptRuleOptions$1 {
|
|
3126
3129
|
/**
|
|
3127
3130
|
* Disallow unused variables
|
|
@@ -3169,7 +3172,7 @@ type UnusedImportsNoUnusedVars = [] | [("all" | "local") | {
|
|
|
3169
3172
|
varsIgnorePattern?: string;
|
|
3170
3173
|
}];
|
|
3171
3174
|
//#endregion
|
|
3172
|
-
//#region src/
|
|
3175
|
+
//#region src/_generated/dts/jsdoc.d.ts
|
|
3173
3176
|
interface JsdocRuleOptions {
|
|
3174
3177
|
/**
|
|
3175
3178
|
* Checks that `@access` tags have a valid value.
|
|
@@ -4044,7 +4047,7 @@ type JsdocValidTypes = [] | [{
|
|
|
4044
4047
|
allowEmptyNamepaths?: boolean;
|
|
4045
4048
|
}];
|
|
4046
4049
|
//#endregion
|
|
4047
|
-
//#region src/
|
|
4050
|
+
//#region src/_generated/dts/jsonc.d.ts
|
|
4048
4051
|
interface JsoncRuleOptions {
|
|
4049
4052
|
/**
|
|
4050
4053
|
* enforce line breaks after opening and before closing array brackets
|
|
@@ -4518,13 +4521,18 @@ type JsoncSpaceUnaryOps = [] | [{
|
|
|
4518
4521
|
};
|
|
4519
4522
|
}];
|
|
4520
4523
|
//#endregion
|
|
4521
|
-
//#region src/
|
|
4524
|
+
//#region src/_generated/dts/markdown.d.ts
|
|
4522
4525
|
interface MarkdownRuleOptions {
|
|
4523
4526
|
/**
|
|
4524
4527
|
* Require languages for fenced code blocks
|
|
4525
4528
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/fenced-code-language.md
|
|
4526
4529
|
*/
|
|
4527
4530
|
"markdown/fenced-code-language"?: Linter.RuleEntry<MarkdownFencedCodeLanguage>;
|
|
4531
|
+
/**
|
|
4532
|
+
* Require or disallow metadata for fenced code blocks
|
|
4533
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/fenced-code-meta.md
|
|
4534
|
+
*/
|
|
4535
|
+
"markdown/fenced-code-meta"?: Linter.RuleEntry<MarkdownFencedCodeMeta>;
|
|
4528
4536
|
/**
|
|
4529
4537
|
* Enforce heading levels increment by one
|
|
4530
4538
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/heading-increment.md
|
|
@@ -4625,13 +4633,15 @@ interface MarkdownRuleOptions {
|
|
|
4625
4633
|
// ----- markdown/fenced-code-language -----
|
|
4626
4634
|
type MarkdownFencedCodeLanguage = [] | [{
|
|
4627
4635
|
required?: string[];
|
|
4628
|
-
}]; // ----- markdown/
|
|
4636
|
+
}]; // ----- markdown/fenced-code-meta -----
|
|
4637
|
+
type MarkdownFencedCodeMeta = [] | ["always" | "never"]; // ----- markdown/heading-increment -----
|
|
4629
4638
|
type MarkdownHeadingIncrement = [] | [{
|
|
4630
4639
|
frontmatterTitle?: string;
|
|
4631
4640
|
}]; // ----- markdown/no-duplicate-definitions -----
|
|
4632
4641
|
type MarkdownNoDuplicateDefinitions = [] | [{
|
|
4633
4642
|
allowDefinitions?: string[];
|
|
4634
4643
|
allowFootnoteDefinitions?: string[];
|
|
4644
|
+
checkFootnoteDefinitions?: boolean;
|
|
4635
4645
|
}]; // ----- markdown/no-duplicate-headings -----
|
|
4636
4646
|
type MarkdownNoDuplicateHeadings = [] | [{
|
|
4637
4647
|
checkSiblingsOnly?: boolean;
|
|
@@ -4664,12 +4674,13 @@ type MarkdownNoSpaceInEmphasis = [] | [{
|
|
|
4664
4674
|
type MarkdownNoUnusedDefinitions = [] | [{
|
|
4665
4675
|
allowDefinitions?: string[];
|
|
4666
4676
|
allowFootnoteDefinitions?: string[];
|
|
4677
|
+
checkFootnoteDefinitions?: boolean;
|
|
4667
4678
|
}]; // ----- markdown/table-column-count -----
|
|
4668
4679
|
type MarkdownTableColumnCount = [] | [{
|
|
4669
4680
|
checkMissingCells?: boolean;
|
|
4670
4681
|
}];
|
|
4671
4682
|
//#endregion
|
|
4672
|
-
//#region src/
|
|
4683
|
+
//#region src/_generated/dts/n.d.ts
|
|
4673
4684
|
interface NRuleOptions {
|
|
4674
4685
|
/**
|
|
4675
4686
|
* require `return` statements after callbacks
|
|
@@ -5129,7 +5140,7 @@ type NShebang = [] | [{
|
|
|
5129
5140
|
};
|
|
5130
5141
|
}];
|
|
5131
5142
|
//#endregion
|
|
5132
|
-
//#region src/
|
|
5143
|
+
//#region src/_generated/dts/no-only-tests.d.ts
|
|
5133
5144
|
interface NoOnlyTestsRuleOptions {
|
|
5134
5145
|
/**
|
|
5135
5146
|
* disallow .only blocks in tests
|
|
@@ -5146,13 +5157,18 @@ type NoOnlyTestsNoOnlyTests = [] | [{
|
|
|
5146
5157
|
fix?: boolean;
|
|
5147
5158
|
}];
|
|
5148
5159
|
//#endregion
|
|
5149
|
-
//#region src/
|
|
5160
|
+
//#region src/_generated/dts/perfectionist.d.ts
|
|
5150
5161
|
interface PerfectionistRuleOptions {
|
|
5151
5162
|
/**
|
|
5152
5163
|
* Enforce sorted arrays before include method.
|
|
5153
5164
|
* @see https://perfectionist.dev/rules/sort-array-includes
|
|
5154
5165
|
*/
|
|
5155
5166
|
"perfectionist/sort-array-includes"?: Linter.RuleEntry<PerfectionistSortArrayIncludes>;
|
|
5167
|
+
/**
|
|
5168
|
+
* Enforce sorted arrays.
|
|
5169
|
+
* @see https://perfectionist.dev/rules/sort-arrays
|
|
5170
|
+
*/
|
|
5171
|
+
"perfectionist/sort-arrays"?: Linter.RuleEntry<PerfectionistSortArrays>;
|
|
5156
5172
|
/**
|
|
5157
5173
|
* Enforce sorted classes.
|
|
5158
5174
|
* @see https://perfectionist.dev/rules/sort-classes
|
|
@@ -5341,6 +5357,113 @@ type PerfectionistSortArrayIncludes = {
|
|
|
5341
5357
|
pattern: string;
|
|
5342
5358
|
flags?: string;
|
|
5343
5359
|
} | string);
|
|
5360
|
+
matchesAstSelector?: string;
|
|
5361
|
+
};
|
|
5362
|
+
partitionByComment?: boolean | (({
|
|
5363
|
+
pattern: string;
|
|
5364
|
+
flags?: string;
|
|
5365
|
+
} | string)[] | ({
|
|
5366
|
+
pattern: string;
|
|
5367
|
+
flags?: string;
|
|
5368
|
+
} | string)) | {
|
|
5369
|
+
block?: boolean | (({
|
|
5370
|
+
pattern: string;
|
|
5371
|
+
flags?: string;
|
|
5372
|
+
} | string)[] | ({
|
|
5373
|
+
pattern: string;
|
|
5374
|
+
flags?: string;
|
|
5375
|
+
} | string));
|
|
5376
|
+
line?: boolean | (({
|
|
5377
|
+
pattern: string;
|
|
5378
|
+
flags?: string;
|
|
5379
|
+
} | string)[] | ({
|
|
5380
|
+
pattern: string;
|
|
5381
|
+
flags?: string;
|
|
5382
|
+
} | string));
|
|
5383
|
+
};
|
|
5384
|
+
partitionByNewLine?: boolean;
|
|
5385
|
+
}[]; // ----- perfectionist/sort-arrays -----
|
|
5386
|
+
type PerfectionistSortArrays = {
|
|
5387
|
+
fallbackSort?: {
|
|
5388
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5389
|
+
order?: "asc" | "desc";
|
|
5390
|
+
};
|
|
5391
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5392
|
+
specialCharacters?: "remove" | "trim" | "keep";
|
|
5393
|
+
ignoreCase?: boolean;
|
|
5394
|
+
alphabet?: string;
|
|
5395
|
+
locales?: string | string[];
|
|
5396
|
+
order?: "asc" | "desc";
|
|
5397
|
+
customGroups?: ({
|
|
5398
|
+
fallbackSort?: {
|
|
5399
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5400
|
+
order?: "asc" | "desc";
|
|
5401
|
+
};
|
|
5402
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5403
|
+
groupName: string;
|
|
5404
|
+
newlinesInside?: "ignore" | number;
|
|
5405
|
+
order?: "asc" | "desc";
|
|
5406
|
+
anyOf: [{
|
|
5407
|
+
elementNamePattern?: ({
|
|
5408
|
+
pattern: string;
|
|
5409
|
+
flags?: string;
|
|
5410
|
+
} | string)[] | ({
|
|
5411
|
+
pattern: string;
|
|
5412
|
+
flags?: string;
|
|
5413
|
+
} | string);
|
|
5414
|
+
selector?: "literal";
|
|
5415
|
+
}, ...{
|
|
5416
|
+
elementNamePattern?: ({
|
|
5417
|
+
pattern: string;
|
|
5418
|
+
flags?: string;
|
|
5419
|
+
} | string)[] | ({
|
|
5420
|
+
pattern: string;
|
|
5421
|
+
flags?: string;
|
|
5422
|
+
} | string);
|
|
5423
|
+
selector?: "literal";
|
|
5424
|
+
}[]];
|
|
5425
|
+
} | {
|
|
5426
|
+
fallbackSort?: {
|
|
5427
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5428
|
+
order?: "asc" | "desc";
|
|
5429
|
+
};
|
|
5430
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5431
|
+
groupName: string;
|
|
5432
|
+
newlinesInside?: "ignore" | number;
|
|
5433
|
+
order?: "asc" | "desc";
|
|
5434
|
+
elementNamePattern?: ({
|
|
5435
|
+
pattern: string;
|
|
5436
|
+
flags?: string;
|
|
5437
|
+
} | string)[] | ({
|
|
5438
|
+
pattern: string;
|
|
5439
|
+
flags?: string;
|
|
5440
|
+
} | string);
|
|
5441
|
+
selector?: "literal";
|
|
5442
|
+
})[];
|
|
5443
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
5444
|
+
groups?: (string | [string, ...string[]] | {
|
|
5445
|
+
newlinesBetween: "ignore" | number;
|
|
5446
|
+
} | {
|
|
5447
|
+
group: string | [string, ...string[]];
|
|
5448
|
+
fallbackSort?: {
|
|
5449
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5450
|
+
order?: "asc" | "desc";
|
|
5451
|
+
};
|
|
5452
|
+
commentAbove?: string;
|
|
5453
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5454
|
+
newlinesInside?: "ignore" | number;
|
|
5455
|
+
order?: "asc" | "desc";
|
|
5456
|
+
})[];
|
|
5457
|
+
newlinesBetween?: "ignore" | number;
|
|
5458
|
+
useConfigurationIf: {
|
|
5459
|
+
allNamesMatchPattern?: ({
|
|
5460
|
+
pattern: string;
|
|
5461
|
+
flags?: string;
|
|
5462
|
+
} | string)[] | ({
|
|
5463
|
+
pattern: string;
|
|
5464
|
+
flags?: string;
|
|
5465
|
+
} | string);
|
|
5466
|
+
matchesAstSelector?: string;
|
|
5344
5467
|
};
|
|
5345
5468
|
partitionByComment?: boolean | (({
|
|
5346
5469
|
pattern: string;
|
|
@@ -5366,7 +5489,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
5366
5489
|
};
|
|
5367
5490
|
partitionByNewLine?: boolean;
|
|
5368
5491
|
}[]; // ----- perfectionist/sort-classes -----
|
|
5369
|
-
type PerfectionistSortClasses =
|
|
5492
|
+
type PerfectionistSortClasses = {
|
|
5370
5493
|
fallbackSort?: {
|
|
5371
5494
|
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5372
5495
|
order?: "asc" | "desc";
|
|
@@ -5483,6 +5606,16 @@ type PerfectionistSortClasses = [] | [{
|
|
|
5483
5606
|
order?: "asc" | "desc";
|
|
5484
5607
|
})[];
|
|
5485
5608
|
newlinesBetween?: "ignore" | number;
|
|
5609
|
+
useConfigurationIf?: {
|
|
5610
|
+
allNamesMatchPattern?: ({
|
|
5611
|
+
pattern: string;
|
|
5612
|
+
flags?: string;
|
|
5613
|
+
} | string)[] | ({
|
|
5614
|
+
pattern: string;
|
|
5615
|
+
flags?: string;
|
|
5616
|
+
} | string);
|
|
5617
|
+
matchesAstSelector?: string;
|
|
5618
|
+
};
|
|
5486
5619
|
useExperimentalDependencyDetection?: boolean;
|
|
5487
5620
|
ignoreCallbackDependenciesPatterns?: ({
|
|
5488
5621
|
pattern: string;
|
|
@@ -5514,7 +5647,7 @@ type PerfectionistSortClasses = [] | [{
|
|
|
5514
5647
|
} | string));
|
|
5515
5648
|
};
|
|
5516
5649
|
partitionByNewLine?: boolean;
|
|
5517
|
-
}]; // ----- perfectionist/sort-decorators -----
|
|
5650
|
+
}[]; // ----- perfectionist/sort-decorators -----
|
|
5518
5651
|
type PerfectionistSortDecorators = {
|
|
5519
5652
|
fallbackSort?: {
|
|
5520
5653
|
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
@@ -5613,7 +5746,7 @@ type PerfectionistSortDecorators = {
|
|
|
5613
5746
|
};
|
|
5614
5747
|
partitionByNewLine?: boolean;
|
|
5615
5748
|
}[]; // ----- perfectionist/sort-enums -----
|
|
5616
|
-
type PerfectionistSortEnums =
|
|
5749
|
+
type PerfectionistSortEnums = {
|
|
5617
5750
|
fallbackSort?: {
|
|
5618
5751
|
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5619
5752
|
order?: "asc" | "desc";
|
|
@@ -5703,6 +5836,16 @@ type PerfectionistSortEnums = [] | [{
|
|
|
5703
5836
|
order?: "asc" | "desc";
|
|
5704
5837
|
})[];
|
|
5705
5838
|
newlinesBetween?: "ignore" | number;
|
|
5839
|
+
useConfigurationIf?: {
|
|
5840
|
+
allNamesMatchPattern?: ({
|
|
5841
|
+
pattern: string;
|
|
5842
|
+
flags?: string;
|
|
5843
|
+
} | string)[] | ({
|
|
5844
|
+
pattern: string;
|
|
5845
|
+
flags?: string;
|
|
5846
|
+
} | string);
|
|
5847
|
+
matchesAstSelector?: string;
|
|
5848
|
+
};
|
|
5706
5849
|
sortByValue?: "always" | "ifNumericEnum" | "never";
|
|
5707
5850
|
useExperimentalDependencyDetection?: boolean;
|
|
5708
5851
|
partitionByComment?: boolean | (({
|
|
@@ -5728,7 +5871,7 @@ type PerfectionistSortEnums = [] | [{
|
|
|
5728
5871
|
} | string));
|
|
5729
5872
|
};
|
|
5730
5873
|
partitionByNewLine?: boolean;
|
|
5731
|
-
}]; // ----- perfectionist/sort-export-attributes -----
|
|
5874
|
+
}[]; // ----- perfectionist/sort-export-attributes -----
|
|
5732
5875
|
type PerfectionistSortExportAttributes = {
|
|
5733
5876
|
fallbackSort?: {
|
|
5734
5877
|
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
@@ -5798,6 +5941,16 @@ type PerfectionistSortExportAttributes = {
|
|
|
5798
5941
|
order?: "asc" | "desc";
|
|
5799
5942
|
})[];
|
|
5800
5943
|
newlinesBetween?: "ignore" | number;
|
|
5944
|
+
useConfigurationIf?: {
|
|
5945
|
+
allNamesMatchPattern?: ({
|
|
5946
|
+
pattern: string;
|
|
5947
|
+
flags?: string;
|
|
5948
|
+
} | string)[] | ({
|
|
5949
|
+
pattern: string;
|
|
5950
|
+
flags?: string;
|
|
5951
|
+
} | string);
|
|
5952
|
+
matchesAstSelector?: string;
|
|
5953
|
+
};
|
|
5801
5954
|
partitionByComment?: boolean | (({
|
|
5802
5955
|
pattern: string;
|
|
5803
5956
|
flags?: string;
|
|
@@ -5990,6 +6143,16 @@ type PerfectionistSortHeritageClauses = {
|
|
|
5990
6143
|
order?: "asc" | "desc";
|
|
5991
6144
|
})[];
|
|
5992
6145
|
newlinesBetween?: "ignore" | number;
|
|
6146
|
+
useConfigurationIf?: {
|
|
6147
|
+
allNamesMatchPattern?: ({
|
|
6148
|
+
pattern: string;
|
|
6149
|
+
flags?: string;
|
|
6150
|
+
} | string)[] | ({
|
|
6151
|
+
pattern: string;
|
|
6152
|
+
flags?: string;
|
|
6153
|
+
} | string);
|
|
6154
|
+
matchesAstSelector?: string;
|
|
6155
|
+
};
|
|
5993
6156
|
partitionByNewLine?: boolean;
|
|
5994
6157
|
partitionByComment?: boolean | (({
|
|
5995
6158
|
pattern: string;
|
|
@@ -6083,6 +6246,16 @@ type PerfectionistSortImportAttributes = {
|
|
|
6083
6246
|
order?: "asc" | "desc";
|
|
6084
6247
|
})[];
|
|
6085
6248
|
newlinesBetween?: "ignore" | number;
|
|
6249
|
+
useConfigurationIf?: {
|
|
6250
|
+
allNamesMatchPattern?: ({
|
|
6251
|
+
pattern: string;
|
|
6252
|
+
flags?: string;
|
|
6253
|
+
} | string)[] | ({
|
|
6254
|
+
pattern: string;
|
|
6255
|
+
flags?: string;
|
|
6256
|
+
} | string);
|
|
6257
|
+
matchesAstSelector?: string;
|
|
6258
|
+
};
|
|
6086
6259
|
partitionByComment?: boolean | (({
|
|
6087
6260
|
pattern: string;
|
|
6088
6261
|
flags?: string;
|
|
@@ -6351,6 +6524,7 @@ type PerfectionistSortInterfaces = {
|
|
|
6351
6524
|
pattern: string;
|
|
6352
6525
|
flags?: string;
|
|
6353
6526
|
} | string);
|
|
6527
|
+
matchesAstSelector?: string;
|
|
6354
6528
|
declarationMatchesPattern?: ({
|
|
6355
6529
|
scope?: "shallow" | "deep";
|
|
6356
6530
|
pattern: string;
|
|
@@ -6457,6 +6631,16 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
6457
6631
|
order?: "asc" | "desc";
|
|
6458
6632
|
})[];
|
|
6459
6633
|
newlinesBetween?: "ignore" | number;
|
|
6634
|
+
useConfigurationIf?: {
|
|
6635
|
+
allNamesMatchPattern?: ({
|
|
6636
|
+
pattern: string;
|
|
6637
|
+
flags?: string;
|
|
6638
|
+
} | string)[] | ({
|
|
6639
|
+
pattern: string;
|
|
6640
|
+
flags?: string;
|
|
6641
|
+
} | string);
|
|
6642
|
+
matchesAstSelector?: string;
|
|
6643
|
+
};
|
|
6460
6644
|
partitionByComment?: boolean | (({
|
|
6461
6645
|
pattern: string;
|
|
6462
6646
|
flags?: string;
|
|
@@ -6585,6 +6769,7 @@ type PerfectionistSortJsxProps = {
|
|
|
6585
6769
|
pattern: string;
|
|
6586
6770
|
flags?: string;
|
|
6587
6771
|
} | string);
|
|
6772
|
+
matchesAstSelector?: string;
|
|
6588
6773
|
tagMatchesPattern?: ({
|
|
6589
6774
|
pattern: string;
|
|
6590
6775
|
flags?: string;
|
|
@@ -6672,6 +6857,7 @@ type PerfectionistSortMaps = {
|
|
|
6672
6857
|
pattern: string;
|
|
6673
6858
|
flags?: string;
|
|
6674
6859
|
} | string);
|
|
6860
|
+
matchesAstSelector?: string;
|
|
6675
6861
|
};
|
|
6676
6862
|
partitionByComment?: boolean | (({
|
|
6677
6863
|
pattern: string;
|
|
@@ -6893,6 +7079,16 @@ type PerfectionistSortNamedExports = {
|
|
|
6893
7079
|
order?: "asc" | "desc";
|
|
6894
7080
|
})[];
|
|
6895
7081
|
newlinesBetween?: "ignore" | number;
|
|
7082
|
+
useConfigurationIf?: {
|
|
7083
|
+
allNamesMatchPattern?: ({
|
|
7084
|
+
pattern: string;
|
|
7085
|
+
flags?: string;
|
|
7086
|
+
} | string)[] | ({
|
|
7087
|
+
pattern: string;
|
|
7088
|
+
flags?: string;
|
|
7089
|
+
} | string);
|
|
7090
|
+
matchesAstSelector?: string;
|
|
7091
|
+
};
|
|
6896
7092
|
ignoreAlias?: boolean;
|
|
6897
7093
|
partitionByComment?: boolean | (({
|
|
6898
7094
|
pattern: string;
|
|
@@ -6993,6 +7189,16 @@ type PerfectionistSortNamedImports = {
|
|
|
6993
7189
|
order?: "asc" | "desc";
|
|
6994
7190
|
})[];
|
|
6995
7191
|
newlinesBetween?: "ignore" | number;
|
|
7192
|
+
useConfigurationIf?: {
|
|
7193
|
+
allNamesMatchPattern?: ({
|
|
7194
|
+
pattern: string;
|
|
7195
|
+
flags?: string;
|
|
7196
|
+
} | string)[] | ({
|
|
7197
|
+
pattern: string;
|
|
7198
|
+
flags?: string;
|
|
7199
|
+
} | string);
|
|
7200
|
+
matchesAstSelector?: string;
|
|
7201
|
+
};
|
|
6996
7202
|
ignoreAlias?: boolean;
|
|
6997
7203
|
partitionByComment?: boolean | (({
|
|
6998
7204
|
pattern: string;
|
|
@@ -7140,6 +7346,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
7140
7346
|
pattern: string;
|
|
7141
7347
|
flags?: string;
|
|
7142
7348
|
} | string);
|
|
7349
|
+
matchesAstSelector?: string;
|
|
7143
7350
|
declarationMatchesPattern?: ({
|
|
7144
7351
|
scope?: "shallow" | "deep";
|
|
7145
7352
|
pattern: string;
|
|
@@ -7306,6 +7513,7 @@ type PerfectionistSortObjects = {
|
|
|
7306
7513
|
pattern: string;
|
|
7307
7514
|
flags?: string;
|
|
7308
7515
|
} | string);
|
|
7516
|
+
matchesAstSelector?: string;
|
|
7309
7517
|
declarationMatchesPattern?: ({
|
|
7310
7518
|
scope?: "shallow" | "deep";
|
|
7311
7519
|
pattern: string;
|
|
@@ -7316,6 +7524,7 @@ type PerfectionistSortObjects = {
|
|
|
7316
7524
|
flags?: string;
|
|
7317
7525
|
} | string);
|
|
7318
7526
|
};
|
|
7527
|
+
partitionByComputedKey?: boolean;
|
|
7319
7528
|
styledComponents?: boolean;
|
|
7320
7529
|
useExperimentalDependencyDetection?: boolean;
|
|
7321
7530
|
partitionByComment?: boolean | (({
|
|
@@ -7422,6 +7631,7 @@ type PerfectionistSortSets = {
|
|
|
7422
7631
|
pattern: string;
|
|
7423
7632
|
flags?: string;
|
|
7424
7633
|
} | string);
|
|
7634
|
+
matchesAstSelector?: string;
|
|
7425
7635
|
};
|
|
7426
7636
|
partitionByComment?: boolean | (({
|
|
7427
7637
|
pattern: string;
|
|
@@ -7531,6 +7741,16 @@ type PerfectionistSortUnionTypes = {
|
|
|
7531
7741
|
order?: "asc" | "desc";
|
|
7532
7742
|
})[];
|
|
7533
7743
|
newlinesBetween?: "ignore" | number;
|
|
7744
|
+
useConfigurationIf?: {
|
|
7745
|
+
allNamesMatchPattern?: ({
|
|
7746
|
+
pattern: string;
|
|
7747
|
+
flags?: string;
|
|
7748
|
+
} | string)[] | ({
|
|
7749
|
+
pattern: string;
|
|
7750
|
+
flags?: string;
|
|
7751
|
+
} | string);
|
|
7752
|
+
matchesAstSelector?: string;
|
|
7753
|
+
};
|
|
7534
7754
|
partitionByComment?: boolean | (({
|
|
7535
7755
|
pattern: string;
|
|
7536
7756
|
flags?: string;
|
|
@@ -7555,7 +7775,7 @@ type PerfectionistSortUnionTypes = {
|
|
|
7555
7775
|
};
|
|
7556
7776
|
partitionByNewLine?: boolean;
|
|
7557
7777
|
}[]; // ----- perfectionist/sort-variable-declarations -----
|
|
7558
|
-
type PerfectionistSortVariableDeclarations =
|
|
7778
|
+
type PerfectionistSortVariableDeclarations = {
|
|
7559
7779
|
fallbackSort?: {
|
|
7560
7780
|
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7561
7781
|
order?: "asc" | "desc";
|
|
@@ -7627,6 +7847,16 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
7627
7847
|
order?: "asc" | "desc";
|
|
7628
7848
|
})[];
|
|
7629
7849
|
newlinesBetween?: "ignore" | number;
|
|
7850
|
+
useConfigurationIf?: {
|
|
7851
|
+
allNamesMatchPattern?: ({
|
|
7852
|
+
pattern: string;
|
|
7853
|
+
flags?: string;
|
|
7854
|
+
} | string)[] | ({
|
|
7855
|
+
pattern: string;
|
|
7856
|
+
flags?: string;
|
|
7857
|
+
} | string);
|
|
7858
|
+
matchesAstSelector?: string;
|
|
7859
|
+
};
|
|
7630
7860
|
useExperimentalDependencyDetection?: boolean;
|
|
7631
7861
|
partitionByComment?: boolean | (({
|
|
7632
7862
|
pattern: string;
|
|
@@ -7651,9 +7881,9 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
7651
7881
|
} | string));
|
|
7652
7882
|
};
|
|
7653
7883
|
partitionByNewLine?: boolean;
|
|
7654
|
-
}];
|
|
7884
|
+
}[];
|
|
7655
7885
|
//#endregion
|
|
7656
|
-
//#region src/
|
|
7886
|
+
//#region src/_generated/dts/pnpm.d.ts
|
|
7657
7887
|
interface PnpmRuleOptions {
|
|
7658
7888
|
/**
|
|
7659
7889
|
* Enforce using "catalog:" in `package.json`
|
|
@@ -7725,10 +7955,10 @@ type PnpmYamlNoDuplicateCatalogItem = [] | [{
|
|
|
7725
7955
|
checkDuplicates?: "name-only" | "exact-version";
|
|
7726
7956
|
}];
|
|
7727
7957
|
//#endregion
|
|
7728
|
-
//#region src/
|
|
7958
|
+
//#region src/_generated/dts/prettier.d.ts
|
|
7729
7959
|
interface PrettierRuleOptions {}
|
|
7730
7960
|
//#endregion
|
|
7731
|
-
//#region src/
|
|
7961
|
+
//#region src/_generated/dts/react.d.ts
|
|
7732
7962
|
interface ReactRuleOptions {
|
|
7733
7963
|
/**
|
|
7734
7964
|
* Verifies that automatic effect dependencies are compiled if opted-in
|
|
@@ -8856,7 +9086,7 @@ type ReactStylePropObject = [] | [{
|
|
|
8856
9086
|
[k: string]: unknown | undefined;
|
|
8857
9087
|
}];
|
|
8858
9088
|
//#endregion
|
|
8859
|
-
//#region src/
|
|
9089
|
+
//#region src/_generated/dts/react-hooks.d.ts
|
|
8860
9090
|
interface ReactHooksRuleOptions {
|
|
8861
9091
|
/**
|
|
8862
9092
|
* Verifies that automatic effect dependencies are compiled if opted-in
|
|
@@ -9070,13 +9300,13 @@ type ReactHooksVoidUseMemo = [] | [{
|
|
|
9070
9300
|
[k: string]: unknown | undefined;
|
|
9071
9301
|
}];
|
|
9072
9302
|
//#endregion
|
|
9073
|
-
//#region src/
|
|
9303
|
+
//#region src/_generated/dts/sort-package-json.d.ts
|
|
9074
9304
|
interface SortPackageJsonRuleOptions {}
|
|
9075
9305
|
//#endregion
|
|
9076
|
-
//#region src/
|
|
9306
|
+
//#region src/_generated/dts/sort-tsconfig.d.ts
|
|
9077
9307
|
interface SortTsconfigRuleOptions {}
|
|
9078
9308
|
//#endregion
|
|
9079
|
-
//#region src/
|
|
9309
|
+
//#region src/_generated/dts/stylistic.d.ts
|
|
9080
9310
|
interface StylisticRuleOptions {
|
|
9081
9311
|
/**
|
|
9082
9312
|
* Enforce linebreaks after opening and before closing array brackets
|
|
@@ -10739,7 +10969,7 @@ type StylisticYieldStarSpacing = [] | [("before" | "after" | "both" | "neither")
|
|
|
10739
10969
|
after?: boolean;
|
|
10740
10970
|
}];
|
|
10741
10971
|
//#endregion
|
|
10742
|
-
//#region src/
|
|
10972
|
+
//#region src/_generated/dts/toml.d.ts
|
|
10743
10973
|
interface TomlRuleOptions {
|
|
10744
10974
|
/**
|
|
10745
10975
|
* enforce linebreaks after opening and before closing array brackets
|
|
@@ -10985,7 +11215,7 @@ type TomlSpacedComment = [] | ["always" | "never"] | ["always" | "never", {
|
|
|
10985
11215
|
}]; // ----- toml/table-bracket-spacing -----
|
|
10986
11216
|
type TomlTableBracketSpacing = [] | ["always" | "never"];
|
|
10987
11217
|
//#endregion
|
|
10988
|
-
//#region src/
|
|
11218
|
+
//#region src/_generated/dts/tsdoc.d.ts
|
|
10989
11219
|
interface TsdocRuleOptions {
|
|
10990
11220
|
/**
|
|
10991
11221
|
* Validates that TypeScript documentation comments conform to the TSDoc standard
|
|
@@ -10994,7 +11224,7 @@ interface TsdocRuleOptions {
|
|
|
10994
11224
|
"tsdoc/syntax"?: Linter.RuleEntry<[]>;
|
|
10995
11225
|
}
|
|
10996
11226
|
//#endregion
|
|
10997
|
-
//#region src/
|
|
11227
|
+
//#region src/_generated/dts/typescript.d.ts
|
|
10998
11228
|
interface TypescriptRuleOptions {
|
|
10999
11229
|
/**
|
|
11000
11230
|
* Require that function overload signatures be consecutive
|
|
@@ -12630,734 +12860,754 @@ type ImportPreferDefaultExport = [] | [{
|
|
|
12630
12860
|
target?: "single" | "any";
|
|
12631
12861
|
}];
|
|
12632
12862
|
//#endregion
|
|
12633
|
-
//#region src/
|
|
12863
|
+
//#region src/_generated/dts/unicorn.d.ts
|
|
12634
12864
|
interface UnicornRuleOptions {
|
|
12635
12865
|
/**
|
|
12636
12866
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
12637
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12867
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/better-regex.md
|
|
12638
12868
|
*/
|
|
12639
12869
|
"unicorn/better-regex"?: Linter.RuleEntry<UnicornBetterRegex>;
|
|
12640
12870
|
/**
|
|
12641
12871
|
* Enforce a specific parameter name in catch clauses.
|
|
12642
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12872
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/catch-error-name.md
|
|
12643
12873
|
*/
|
|
12644
12874
|
"unicorn/catch-error-name"?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
12645
12875
|
/**
|
|
12646
12876
|
* Enforce consistent assertion style with `node:assert`.
|
|
12647
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12877
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-assert.md
|
|
12648
12878
|
*/
|
|
12649
12879
|
"unicorn/consistent-assert"?: Linter.RuleEntry<[]>;
|
|
12650
12880
|
/**
|
|
12651
12881
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
12652
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12882
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-date-clone.md
|
|
12653
12883
|
*/
|
|
12654
12884
|
"unicorn/consistent-date-clone"?: Linter.RuleEntry<[]>;
|
|
12655
12885
|
/**
|
|
12656
12886
|
* Use destructured variables over properties.
|
|
12657
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12887
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-destructuring.md
|
|
12658
12888
|
*/
|
|
12659
12889
|
"unicorn/consistent-destructuring"?: Linter.RuleEntry<[]>;
|
|
12660
12890
|
/**
|
|
12661
12891
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
12662
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12892
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-empty-array-spread.md
|
|
12663
12893
|
*/
|
|
12664
12894
|
"unicorn/consistent-empty-array-spread"?: Linter.RuleEntry<[]>;
|
|
12665
12895
|
/**
|
|
12666
12896
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
12667
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12897
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-existence-index-check.md
|
|
12668
12898
|
*/
|
|
12669
12899
|
"unicorn/consistent-existence-index-check"?: Linter.RuleEntry<[]>;
|
|
12670
12900
|
/**
|
|
12671
12901
|
* Move function definitions to the highest possible scope.
|
|
12672
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12902
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-function-scoping.md
|
|
12673
12903
|
*/
|
|
12674
12904
|
"unicorn/consistent-function-scoping"?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
12905
|
+
/**
|
|
12906
|
+
* Enforce consistent style for escaping `${` in template literals.
|
|
12907
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/consistent-template-literal-escape.md
|
|
12908
|
+
*/
|
|
12909
|
+
"unicorn/consistent-template-literal-escape"?: Linter.RuleEntry<[]>;
|
|
12675
12910
|
/**
|
|
12676
12911
|
* Enforce correct `Error` subclassing.
|
|
12677
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12912
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/custom-error-definition.md
|
|
12678
12913
|
*/
|
|
12679
12914
|
"unicorn/custom-error-definition"?: Linter.RuleEntry<[]>;
|
|
12680
12915
|
/**
|
|
12681
12916
|
* Enforce no spaces between braces.
|
|
12682
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12917
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/empty-brace-spaces.md
|
|
12683
12918
|
*/
|
|
12684
12919
|
"unicorn/empty-brace-spaces"?: Linter.RuleEntry<[]>;
|
|
12685
12920
|
/**
|
|
12686
12921
|
* Enforce passing a `message` value when creating a built-in error.
|
|
12687
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12922
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/error-message.md
|
|
12688
12923
|
*/
|
|
12689
12924
|
"unicorn/error-message"?: Linter.RuleEntry<[]>;
|
|
12690
12925
|
/**
|
|
12691
12926
|
* Require escape sequences to use uppercase or lowercase values.
|
|
12692
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12927
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/escape-case.md
|
|
12693
12928
|
*/
|
|
12694
12929
|
"unicorn/escape-case"?: Linter.RuleEntry<UnicornEscapeCase>;
|
|
12695
12930
|
/**
|
|
12696
12931
|
* Add expiration conditions to TODO comments.
|
|
12697
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12932
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/expiring-todo-comments.md
|
|
12698
12933
|
*/
|
|
12699
12934
|
"unicorn/expiring-todo-comments"?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
12700
12935
|
/**
|
|
12701
12936
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
12702
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12937
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/explicit-length-check.md
|
|
12703
12938
|
*/
|
|
12704
12939
|
"unicorn/explicit-length-check"?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
12705
12940
|
/**
|
|
12706
12941
|
* Enforce a case style for filenames.
|
|
12707
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12942
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/filename-case.md
|
|
12708
12943
|
*/
|
|
12709
12944
|
"unicorn/filename-case"?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
12710
12945
|
/**
|
|
12711
12946
|
* Enforce specific import styles per module.
|
|
12712
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12947
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/import-style.md
|
|
12713
12948
|
*/
|
|
12714
12949
|
"unicorn/import-style"?: Linter.RuleEntry<UnicornImportStyle>;
|
|
12715
12950
|
/**
|
|
12716
12951
|
* Prevent usage of variables from outside the scope of isolated functions.
|
|
12717
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12952
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/isolated-functions.md
|
|
12718
12953
|
*/
|
|
12719
12954
|
"unicorn/isolated-functions"?: Linter.RuleEntry<UnicornIsolatedFunctions>;
|
|
12720
12955
|
/**
|
|
12721
12956
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
12722
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12957
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/new-for-builtins.md
|
|
12723
12958
|
*/
|
|
12724
12959
|
"unicorn/new-for-builtins"?: Linter.RuleEntry<[]>;
|
|
12725
12960
|
/**
|
|
12726
12961
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
12727
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12962
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
12728
12963
|
*/
|
|
12729
12964
|
"unicorn/no-abusive-eslint-disable"?: Linter.RuleEntry<[]>;
|
|
12730
12965
|
/**
|
|
12731
12966
|
* Disallow recursive access to `this` within getters and setters.
|
|
12732
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12967
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-accessor-recursion.md
|
|
12733
12968
|
*/
|
|
12734
12969
|
"unicorn/no-accessor-recursion"?: Linter.RuleEntry<[]>;
|
|
12735
12970
|
/**
|
|
12736
12971
|
* Disallow anonymous functions and classes as the default export.
|
|
12737
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12972
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-anonymous-default-export.md
|
|
12738
12973
|
*/
|
|
12739
12974
|
"unicorn/no-anonymous-default-export"?: Linter.RuleEntry<[]>;
|
|
12740
12975
|
/**
|
|
12741
12976
|
* Prevent passing a function reference directly to iterator methods.
|
|
12742
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12977
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-callback-reference.md
|
|
12743
12978
|
*/
|
|
12744
12979
|
"unicorn/no-array-callback-reference"?: Linter.RuleEntry<[]>;
|
|
12745
12980
|
/**
|
|
12746
12981
|
* Prefer `for…of` over the `forEach` method.
|
|
12747
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12982
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-for-each.md
|
|
12748
12983
|
*/
|
|
12749
12984
|
"unicorn/no-array-for-each"?: Linter.RuleEntry<[]>;
|
|
12750
12985
|
/**
|
|
12751
12986
|
* Disallow using the `this` argument in array methods.
|
|
12752
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12987
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-method-this-argument.md
|
|
12753
12988
|
*/
|
|
12754
12989
|
"unicorn/no-array-method-this-argument"?: Linter.RuleEntry<[]>;
|
|
12755
12990
|
/**
|
|
12756
12991
|
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
12757
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12992
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
|
|
12758
12993
|
* @deprecated
|
|
12759
12994
|
*/
|
|
12760
12995
|
"unicorn/no-array-push-push"?: Linter.RuleEntry<[]>;
|
|
12761
12996
|
/**
|
|
12762
12997
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
12763
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12998
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-reduce.md
|
|
12764
12999
|
*/
|
|
12765
13000
|
"unicorn/no-array-reduce"?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
12766
13001
|
/**
|
|
12767
13002
|
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
12768
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13003
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-reverse.md
|
|
12769
13004
|
*/
|
|
12770
13005
|
"unicorn/no-array-reverse"?: Linter.RuleEntry<UnicornNoArrayReverse>;
|
|
12771
13006
|
/**
|
|
12772
13007
|
* Prefer `Array#toSorted()` over `Array#sort()`.
|
|
12773
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13008
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-array-sort.md
|
|
12774
13009
|
*/
|
|
12775
13010
|
"unicorn/no-array-sort"?: Linter.RuleEntry<UnicornNoArraySort>;
|
|
12776
13011
|
/**
|
|
12777
13012
|
* Disallow member access from await expression.
|
|
12778
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13013
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-await-expression-member.md
|
|
12779
13014
|
*/
|
|
12780
13015
|
"unicorn/no-await-expression-member"?: Linter.RuleEntry<[]>;
|
|
12781
13016
|
/**
|
|
12782
13017
|
* Disallow using `await` in `Promise` method parameters.
|
|
12783
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13018
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-await-in-promise-methods.md
|
|
12784
13019
|
*/
|
|
12785
13020
|
"unicorn/no-await-in-promise-methods"?: Linter.RuleEntry<[]>;
|
|
12786
13021
|
/**
|
|
12787
13022
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
12788
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13023
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-console-spaces.md
|
|
12789
13024
|
*/
|
|
12790
13025
|
"unicorn/no-console-spaces"?: Linter.RuleEntry<[]>;
|
|
12791
13026
|
/**
|
|
12792
13027
|
* Do not use `document.cookie` directly.
|
|
12793
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13028
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-document-cookie.md
|
|
12794
13029
|
*/
|
|
12795
13030
|
"unicorn/no-document-cookie"?: Linter.RuleEntry<[]>;
|
|
12796
13031
|
/**
|
|
12797
13032
|
* Disallow empty files.
|
|
12798
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13033
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-empty-file.md
|
|
12799
13034
|
*/
|
|
12800
13035
|
"unicorn/no-empty-file"?: Linter.RuleEntry<[]>;
|
|
12801
13036
|
/**
|
|
12802
13037
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
12803
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13038
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-for-loop.md
|
|
12804
13039
|
*/
|
|
12805
13040
|
"unicorn/no-for-loop"?: Linter.RuleEntry<[]>;
|
|
12806
13041
|
/**
|
|
12807
13042
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
12808
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13043
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-hex-escape.md
|
|
12809
13044
|
*/
|
|
12810
13045
|
"unicorn/no-hex-escape"?: Linter.RuleEntry<[]>;
|
|
12811
13046
|
/**
|
|
12812
13047
|
* Disallow immediate mutation after variable assignment.
|
|
12813
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13048
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-immediate-mutation.md
|
|
12814
13049
|
*/
|
|
12815
13050
|
"unicorn/no-immediate-mutation"?: Linter.RuleEntry<[]>;
|
|
12816
13051
|
/**
|
|
12817
13052
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
12818
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13053
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
|
|
12819
13054
|
* @deprecated
|
|
12820
13055
|
*/
|
|
12821
13056
|
"unicorn/no-instanceof-array"?: Linter.RuleEntry<[]>;
|
|
12822
13057
|
/**
|
|
12823
13058
|
* Disallow `instanceof` with built-in objects
|
|
12824
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13059
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-instanceof-builtins.md
|
|
12825
13060
|
*/
|
|
12826
13061
|
"unicorn/no-instanceof-builtins"?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
|
|
12827
13062
|
/**
|
|
12828
13063
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
12829
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13064
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-invalid-fetch-options.md
|
|
12830
13065
|
*/
|
|
12831
13066
|
"unicorn/no-invalid-fetch-options"?: Linter.RuleEntry<[]>;
|
|
12832
13067
|
/**
|
|
12833
13068
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
12834
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13069
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
12835
13070
|
*/
|
|
12836
13071
|
"unicorn/no-invalid-remove-event-listener"?: Linter.RuleEntry<[]>;
|
|
12837
13072
|
/**
|
|
12838
13073
|
* Disallow identifiers starting with `new` or `class`.
|
|
12839
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13074
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-keyword-prefix.md
|
|
12840
13075
|
*/
|
|
12841
13076
|
"unicorn/no-keyword-prefix"?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
12842
13077
|
/**
|
|
12843
13078
|
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
12844
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13079
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
|
|
12845
13080
|
* @deprecated
|
|
12846
13081
|
*/
|
|
12847
13082
|
"unicorn/no-length-as-slice-end"?: Linter.RuleEntry<[]>;
|
|
12848
13083
|
/**
|
|
12849
13084
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
12850
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13085
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-lonely-if.md
|
|
12851
13086
|
*/
|
|
12852
13087
|
"unicorn/no-lonely-if"?: Linter.RuleEntry<[]>;
|
|
12853
13088
|
/**
|
|
12854
13089
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
12855
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13090
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
12856
13091
|
*/
|
|
12857
13092
|
"unicorn/no-magic-array-flat-depth"?: Linter.RuleEntry<[]>;
|
|
12858
13093
|
/**
|
|
12859
13094
|
* Disallow named usage of default import and export.
|
|
12860
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13095
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-named-default.md
|
|
12861
13096
|
*/
|
|
12862
13097
|
"unicorn/no-named-default"?: Linter.RuleEntry<[]>;
|
|
12863
13098
|
/**
|
|
12864
13099
|
* Disallow negated conditions.
|
|
12865
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13100
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-negated-condition.md
|
|
12866
13101
|
*/
|
|
12867
13102
|
"unicorn/no-negated-condition"?: Linter.RuleEntry<[]>;
|
|
12868
13103
|
/**
|
|
12869
13104
|
* Disallow negated expression in equality check.
|
|
12870
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13105
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-negation-in-equality-check.md
|
|
12871
13106
|
*/
|
|
12872
13107
|
"unicorn/no-negation-in-equality-check"?: Linter.RuleEntry<[]>;
|
|
12873
13108
|
/**
|
|
12874
13109
|
* Disallow nested ternary expressions.
|
|
12875
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13110
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-nested-ternary.md
|
|
12876
13111
|
*/
|
|
12877
13112
|
"unicorn/no-nested-ternary"?: Linter.RuleEntry<[]>;
|
|
12878
13113
|
/**
|
|
12879
13114
|
* Disallow `new Array()`.
|
|
12880
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13115
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-new-array.md
|
|
12881
13116
|
*/
|
|
12882
13117
|
"unicorn/no-new-array"?: Linter.RuleEntry<[]>;
|
|
12883
13118
|
/**
|
|
12884
13119
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
12885
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13120
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-new-buffer.md
|
|
12886
13121
|
*/
|
|
12887
13122
|
"unicorn/no-new-buffer"?: Linter.RuleEntry<[]>;
|
|
12888
13123
|
/**
|
|
12889
13124
|
* Disallow the use of the `null` literal.
|
|
12890
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13125
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-null.md
|
|
12891
13126
|
*/
|
|
12892
13127
|
"unicorn/no-null"?: Linter.RuleEntry<UnicornNoNull>;
|
|
12893
13128
|
/**
|
|
12894
13129
|
* Disallow the use of objects as default parameters.
|
|
12895
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13130
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-object-as-default-parameter.md
|
|
12896
13131
|
*/
|
|
12897
13132
|
"unicorn/no-object-as-default-parameter"?: Linter.RuleEntry<[]>;
|
|
12898
13133
|
/**
|
|
12899
13134
|
* Disallow `process.exit()`.
|
|
12900
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13135
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-process-exit.md
|
|
12901
13136
|
*/
|
|
12902
13137
|
"unicorn/no-process-exit"?: Linter.RuleEntry<[]>;
|
|
12903
13138
|
/**
|
|
12904
13139
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
12905
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13140
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
12906
13141
|
*/
|
|
12907
13142
|
"unicorn/no-single-promise-in-promise-methods"?: Linter.RuleEntry<[]>;
|
|
12908
13143
|
/**
|
|
12909
13144
|
* Disallow classes that only have static members.
|
|
12910
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13145
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-static-only-class.md
|
|
12911
13146
|
*/
|
|
12912
13147
|
"unicorn/no-static-only-class"?: Linter.RuleEntry<[]>;
|
|
12913
13148
|
/**
|
|
12914
13149
|
* Disallow `then` property.
|
|
12915
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13150
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-thenable.md
|
|
12916
13151
|
*/
|
|
12917
13152
|
"unicorn/no-thenable"?: Linter.RuleEntry<[]>;
|
|
12918
13153
|
/**
|
|
12919
13154
|
* Disallow assigning `this` to a variable.
|
|
12920
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13155
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-this-assignment.md
|
|
12921
13156
|
*/
|
|
12922
13157
|
"unicorn/no-this-assignment"?: Linter.RuleEntry<[]>;
|
|
12923
13158
|
/**
|
|
12924
13159
|
* Disallow comparing `undefined` using `typeof`.
|
|
12925
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13160
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-typeof-undefined.md
|
|
12926
13161
|
*/
|
|
12927
13162
|
"unicorn/no-typeof-undefined"?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
12928
13163
|
/**
|
|
12929
13164
|
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
12930
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13165
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-array-flat-depth.md
|
|
12931
13166
|
*/
|
|
12932
13167
|
"unicorn/no-unnecessary-array-flat-depth"?: Linter.RuleEntry<[]>;
|
|
12933
13168
|
/**
|
|
12934
13169
|
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
12935
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13170
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-array-splice-count.md
|
|
12936
13171
|
*/
|
|
12937
13172
|
"unicorn/no-unnecessary-array-splice-count"?: Linter.RuleEntry<[]>;
|
|
12938
13173
|
/**
|
|
12939
13174
|
* Disallow awaiting non-promise values.
|
|
12940
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13175
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-await.md
|
|
12941
13176
|
*/
|
|
12942
13177
|
"unicorn/no-unnecessary-await"?: Linter.RuleEntry<[]>;
|
|
12943
13178
|
/**
|
|
12944
13179
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
12945
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13180
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
12946
13181
|
*/
|
|
12947
13182
|
"unicorn/no-unnecessary-polyfills"?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
12948
13183
|
/**
|
|
12949
13184
|
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
12950
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13185
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unnecessary-slice-end.md
|
|
12951
13186
|
*/
|
|
12952
13187
|
"unicorn/no-unnecessary-slice-end"?: Linter.RuleEntry<[]>;
|
|
12953
13188
|
/**
|
|
12954
13189
|
* Disallow unreadable array destructuring.
|
|
12955
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13190
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
12956
13191
|
*/
|
|
12957
13192
|
"unicorn/no-unreadable-array-destructuring"?: Linter.RuleEntry<[]>;
|
|
12958
13193
|
/**
|
|
12959
13194
|
* Disallow unreadable IIFEs.
|
|
12960
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13195
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unreadable-iife.md
|
|
12961
13196
|
*/
|
|
12962
13197
|
"unicorn/no-unreadable-iife"?: Linter.RuleEntry<[]>;
|
|
12963
13198
|
/**
|
|
12964
13199
|
* Disallow unused object properties.
|
|
12965
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13200
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-unused-properties.md
|
|
12966
13201
|
*/
|
|
12967
13202
|
"unicorn/no-unused-properties"?: Linter.RuleEntry<[]>;
|
|
12968
13203
|
/**
|
|
12969
13204
|
* Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
|
|
12970
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13205
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-collection-argument.md
|
|
12971
13206
|
*/
|
|
12972
13207
|
"unicorn/no-useless-collection-argument"?: Linter.RuleEntry<[]>;
|
|
12973
13208
|
/**
|
|
12974
13209
|
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
12975
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13210
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-error-capture-stack-trace.md
|
|
12976
13211
|
*/
|
|
12977
13212
|
"unicorn/no-useless-error-capture-stack-trace"?: Linter.RuleEntry<[]>;
|
|
12978
13213
|
/**
|
|
12979
13214
|
* Disallow useless fallback when spreading in object literals.
|
|
12980
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13215
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
12981
13216
|
*/
|
|
12982
13217
|
"unicorn/no-useless-fallback-in-spread"?: Linter.RuleEntry<[]>;
|
|
13218
|
+
/**
|
|
13219
|
+
* Disallow unnecessary `.toArray()` on iterators.
|
|
13220
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-iterator-to-array.md
|
|
13221
|
+
*/
|
|
13222
|
+
"unicorn/no-useless-iterator-to-array"?: Linter.RuleEntry<[]>;
|
|
12983
13223
|
/**
|
|
12984
13224
|
* Disallow useless array length check.
|
|
12985
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13225
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-length-check.md
|
|
12986
13226
|
*/
|
|
12987
13227
|
"unicorn/no-useless-length-check"?: Linter.RuleEntry<[]>;
|
|
12988
13228
|
/**
|
|
12989
13229
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
12990
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13230
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
12991
13231
|
*/
|
|
12992
13232
|
"unicorn/no-useless-promise-resolve-reject"?: Linter.RuleEntry<[]>;
|
|
12993
13233
|
/**
|
|
12994
13234
|
* Disallow unnecessary spread.
|
|
12995
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13235
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-spread.md
|
|
12996
13236
|
*/
|
|
12997
13237
|
"unicorn/no-useless-spread"?: Linter.RuleEntry<[]>;
|
|
12998
13238
|
/**
|
|
12999
13239
|
* Disallow useless case in switch statements.
|
|
13000
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13240
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-switch-case.md
|
|
13001
13241
|
*/
|
|
13002
13242
|
"unicorn/no-useless-switch-case"?: Linter.RuleEntry<[]>;
|
|
13003
13243
|
/**
|
|
13004
13244
|
* Disallow useless `undefined`.
|
|
13005
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13245
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-useless-undefined.md
|
|
13006
13246
|
*/
|
|
13007
13247
|
"unicorn/no-useless-undefined"?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
13008
13248
|
/**
|
|
13009
13249
|
* Disallow number literals with zero fractions or dangling dots.
|
|
13010
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13250
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/no-zero-fractions.md
|
|
13011
13251
|
*/
|
|
13012
13252
|
"unicorn/no-zero-fractions"?: Linter.RuleEntry<[]>;
|
|
13013
13253
|
/**
|
|
13014
13254
|
* Enforce proper case for numeric literals.
|
|
13015
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13255
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/number-literal-case.md
|
|
13016
13256
|
*/
|
|
13017
13257
|
"unicorn/number-literal-case"?: Linter.RuleEntry<UnicornNumberLiteralCase>;
|
|
13018
13258
|
/**
|
|
13019
13259
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
13020
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13260
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/numeric-separators-style.md
|
|
13021
13261
|
*/
|
|
13022
13262
|
"unicorn/numeric-separators-style"?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
13023
13263
|
/**
|
|
13024
13264
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
13025
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13265
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-add-event-listener.md
|
|
13026
13266
|
*/
|
|
13027
13267
|
"unicorn/prefer-add-event-listener"?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
13028
13268
|
/**
|
|
13029
13269
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
13030
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13270
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-find.md
|
|
13031
13271
|
*/
|
|
13032
13272
|
"unicorn/prefer-array-find"?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
13033
13273
|
/**
|
|
13034
13274
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
13035
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13275
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-flat.md
|
|
13036
13276
|
*/
|
|
13037
13277
|
"unicorn/prefer-array-flat"?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
13038
13278
|
/**
|
|
13039
13279
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
13040
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13280
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-flat-map.md
|
|
13041
13281
|
*/
|
|
13042
13282
|
"unicorn/prefer-array-flat-map"?: Linter.RuleEntry<[]>;
|
|
13043
13283
|
/**
|
|
13044
13284
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
13045
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13285
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-index-of.md
|
|
13046
13286
|
*/
|
|
13047
13287
|
"unicorn/prefer-array-index-of"?: Linter.RuleEntry<[]>;
|
|
13048
13288
|
/**
|
|
13049
13289
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
13050
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13290
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-array-some.md
|
|
13051
13291
|
*/
|
|
13052
13292
|
"unicorn/prefer-array-some"?: Linter.RuleEntry<[]>;
|
|
13053
13293
|
/**
|
|
13054
13294
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
13055
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13295
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-at.md
|
|
13056
13296
|
*/
|
|
13057
13297
|
"unicorn/prefer-at"?: Linter.RuleEntry<UnicornPreferAt>;
|
|
13058
13298
|
/**
|
|
13059
13299
|
* Prefer `BigInt` literals over the constructor.
|
|
13060
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13300
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-bigint-literals.md
|
|
13061
13301
|
*/
|
|
13062
13302
|
"unicorn/prefer-bigint-literals"?: Linter.RuleEntry<[]>;
|
|
13063
13303
|
/**
|
|
13064
13304
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
13065
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13305
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
13066
13306
|
*/
|
|
13067
13307
|
"unicorn/prefer-blob-reading-methods"?: Linter.RuleEntry<[]>;
|
|
13068
13308
|
/**
|
|
13069
13309
|
* Prefer class field declarations over `this` assignments in constructors.
|
|
13070
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13310
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-class-fields.md
|
|
13071
13311
|
*/
|
|
13072
13312
|
"unicorn/prefer-class-fields"?: Linter.RuleEntry<[]>;
|
|
13073
13313
|
/**
|
|
13074
13314
|
* Prefer using `Element#classList.toggle()` to toggle class names.
|
|
13075
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13315
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-classlist-toggle.md
|
|
13076
13316
|
*/
|
|
13077
13317
|
"unicorn/prefer-classlist-toggle"?: Linter.RuleEntry<[]>;
|
|
13078
13318
|
/**
|
|
13079
13319
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
13080
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13320
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-code-point.md
|
|
13081
13321
|
*/
|
|
13082
13322
|
"unicorn/prefer-code-point"?: Linter.RuleEntry<[]>;
|
|
13083
13323
|
/**
|
|
13084
13324
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
13085
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13325
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-date-now.md
|
|
13086
13326
|
*/
|
|
13087
13327
|
"unicorn/prefer-date-now"?: Linter.RuleEntry<[]>;
|
|
13088
13328
|
/**
|
|
13089
13329
|
* Prefer default parameters over reassignment.
|
|
13090
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13330
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-default-parameters.md
|
|
13091
13331
|
*/
|
|
13092
13332
|
"unicorn/prefer-default-parameters"?: Linter.RuleEntry<[]>;
|
|
13093
13333
|
/**
|
|
13094
13334
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
13095
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13335
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-append.md
|
|
13096
13336
|
*/
|
|
13097
13337
|
"unicorn/prefer-dom-node-append"?: Linter.RuleEntry<[]>;
|
|
13098
13338
|
/**
|
|
13099
13339
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
13100
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13340
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
13101
13341
|
*/
|
|
13102
13342
|
"unicorn/prefer-dom-node-dataset"?: Linter.RuleEntry<[]>;
|
|
13103
13343
|
/**
|
|
13104
13344
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
13105
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13345
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-remove.md
|
|
13106
13346
|
*/
|
|
13107
13347
|
"unicorn/prefer-dom-node-remove"?: Linter.RuleEntry<[]>;
|
|
13108
13348
|
/**
|
|
13109
13349
|
* Prefer `.textContent` over `.innerText`.
|
|
13110
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13350
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
13111
13351
|
*/
|
|
13112
13352
|
"unicorn/prefer-dom-node-text-content"?: Linter.RuleEntry<[]>;
|
|
13113
13353
|
/**
|
|
13114
13354
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
13115
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13355
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-event-target.md
|
|
13116
13356
|
*/
|
|
13117
13357
|
"unicorn/prefer-event-target"?: Linter.RuleEntry<[]>;
|
|
13118
13358
|
/**
|
|
13119
13359
|
* Prefer `export…from` when re-exporting.
|
|
13120
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13360
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-export-from.md
|
|
13121
13361
|
*/
|
|
13122
13362
|
"unicorn/prefer-export-from"?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
13123
13363
|
/**
|
|
13124
13364
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
13125
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13365
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-global-this.md
|
|
13126
13366
|
*/
|
|
13127
13367
|
"unicorn/prefer-global-this"?: Linter.RuleEntry<[]>;
|
|
13128
13368
|
/**
|
|
13129
13369
|
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
13130
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13370
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-import-meta-properties.md
|
|
13131
13371
|
*/
|
|
13132
13372
|
"unicorn/prefer-import-meta-properties"?: Linter.RuleEntry<[]>;
|
|
13133
13373
|
/**
|
|
13134
13374
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
13135
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13375
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-includes.md
|
|
13136
13376
|
*/
|
|
13137
13377
|
"unicorn/prefer-includes"?: Linter.RuleEntry<[]>;
|
|
13138
13378
|
/**
|
|
13139
13379
|
* Prefer reading a JSON file as a buffer.
|
|
13140
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13380
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
13141
13381
|
*/
|
|
13142
13382
|
"unicorn/prefer-json-parse-buffer"?: Linter.RuleEntry<[]>;
|
|
13143
13383
|
/**
|
|
13144
13384
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
13145
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13385
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
13146
13386
|
*/
|
|
13147
13387
|
"unicorn/prefer-keyboard-event-key"?: Linter.RuleEntry<[]>;
|
|
13148
13388
|
/**
|
|
13149
13389
|
* Prefer using a logical operator over a ternary.
|
|
13150
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13390
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
13151
13391
|
*/
|
|
13152
13392
|
"unicorn/prefer-logical-operator-over-ternary"?: Linter.RuleEntry<[]>;
|
|
13153
13393
|
/**
|
|
13154
13394
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
13155
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13395
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-math-min-max.md
|
|
13156
13396
|
*/
|
|
13157
13397
|
"unicorn/prefer-math-min-max"?: Linter.RuleEntry<[]>;
|
|
13158
13398
|
/**
|
|
13159
13399
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
13160
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13400
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-math-trunc.md
|
|
13161
13401
|
*/
|
|
13162
13402
|
"unicorn/prefer-math-trunc"?: Linter.RuleEntry<[]>;
|
|
13163
13403
|
/**
|
|
13164
13404
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
13165
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13405
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
13166
13406
|
*/
|
|
13167
13407
|
"unicorn/prefer-modern-dom-apis"?: Linter.RuleEntry<[]>;
|
|
13168
13408
|
/**
|
|
13169
13409
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
13170
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13410
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-modern-math-apis.md
|
|
13171
13411
|
*/
|
|
13172
13412
|
"unicorn/prefer-modern-math-apis"?: Linter.RuleEntry<[]>;
|
|
13173
13413
|
/**
|
|
13174
13414
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
13175
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13415
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-module.md
|
|
13176
13416
|
*/
|
|
13177
13417
|
"unicorn/prefer-module"?: Linter.RuleEntry<[]>;
|
|
13178
13418
|
/**
|
|
13179
13419
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
13180
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13420
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
13181
13421
|
*/
|
|
13182
13422
|
"unicorn/prefer-native-coercion-functions"?: Linter.RuleEntry<[]>;
|
|
13183
13423
|
/**
|
|
13184
13424
|
* Prefer negative index over `.length - index` when possible.
|
|
13185
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13425
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-negative-index.md
|
|
13186
13426
|
*/
|
|
13187
13427
|
"unicorn/prefer-negative-index"?: Linter.RuleEntry<[]>;
|
|
13188
13428
|
/**
|
|
13189
13429
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
13190
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13430
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-node-protocol.md
|
|
13191
13431
|
*/
|
|
13192
13432
|
"unicorn/prefer-node-protocol"?: Linter.RuleEntry<[]>;
|
|
13193
13433
|
/**
|
|
13194
13434
|
* Prefer `Number` static properties over global ones.
|
|
13195
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13435
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-number-properties.md
|
|
13196
13436
|
*/
|
|
13197
13437
|
"unicorn/prefer-number-properties"?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
13198
13438
|
/**
|
|
13199
13439
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
13200
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13440
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-object-from-entries.md
|
|
13201
13441
|
*/
|
|
13202
13442
|
"unicorn/prefer-object-from-entries"?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
13203
13443
|
/**
|
|
13204
13444
|
* Prefer omitting the `catch` binding parameter.
|
|
13205
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13445
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
13206
13446
|
*/
|
|
13207
13447
|
"unicorn/prefer-optional-catch-binding"?: Linter.RuleEntry<[]>;
|
|
13208
13448
|
/**
|
|
13209
13449
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
13210
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13450
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-prototype-methods.md
|
|
13211
13451
|
*/
|
|
13212
13452
|
"unicorn/prefer-prototype-methods"?: Linter.RuleEntry<[]>;
|
|
13213
13453
|
/**
|
|
13214
13454
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
13215
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13455
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-query-selector.md
|
|
13216
13456
|
*/
|
|
13217
13457
|
"unicorn/prefer-query-selector"?: Linter.RuleEntry<[]>;
|
|
13218
13458
|
/**
|
|
13219
13459
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
13220
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13460
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-reflect-apply.md
|
|
13221
13461
|
*/
|
|
13222
13462
|
"unicorn/prefer-reflect-apply"?: Linter.RuleEntry<[]>;
|
|
13223
13463
|
/**
|
|
13224
13464
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
13225
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13465
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-regexp-test.md
|
|
13226
13466
|
*/
|
|
13227
13467
|
"unicorn/prefer-regexp-test"?: Linter.RuleEntry<[]>;
|
|
13228
13468
|
/**
|
|
13229
13469
|
* Prefer `Response.json()` over `new Response(JSON.stringify())`.
|
|
13230
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13470
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-response-static-json.md
|
|
13231
13471
|
*/
|
|
13232
13472
|
"unicorn/prefer-response-static-json"?: Linter.RuleEntry<[]>;
|
|
13233
13473
|
/**
|
|
13234
13474
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
13235
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13475
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-set-has.md
|
|
13236
13476
|
*/
|
|
13237
13477
|
"unicorn/prefer-set-has"?: Linter.RuleEntry<[]>;
|
|
13238
13478
|
/**
|
|
13239
13479
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
13240
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13480
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-set-size.md
|
|
13241
13481
|
*/
|
|
13242
13482
|
"unicorn/prefer-set-size"?: Linter.RuleEntry<[]>;
|
|
13483
|
+
/**
|
|
13484
|
+
* Prefer simple conditions first in logical expressions.
|
|
13485
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-simple-condition-first.md
|
|
13486
|
+
*/
|
|
13487
|
+
"unicorn/prefer-simple-condition-first"?: Linter.RuleEntry<[]>;
|
|
13243
13488
|
/**
|
|
13244
13489
|
* Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
13245
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13490
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-single-call.md
|
|
13246
13491
|
*/
|
|
13247
13492
|
"unicorn/prefer-single-call"?: Linter.RuleEntry<UnicornPreferSingleCall>;
|
|
13248
13493
|
/**
|
|
13249
13494
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
13250
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13495
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-spread.md
|
|
13251
13496
|
*/
|
|
13252
13497
|
"unicorn/prefer-spread"?: Linter.RuleEntry<[]>;
|
|
13253
13498
|
/**
|
|
13254
13499
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
13255
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13500
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-raw.md
|
|
13256
13501
|
*/
|
|
13257
13502
|
"unicorn/prefer-string-raw"?: Linter.RuleEntry<[]>;
|
|
13258
13503
|
/**
|
|
13259
13504
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
13260
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13505
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-replace-all.md
|
|
13261
13506
|
*/
|
|
13262
13507
|
"unicorn/prefer-string-replace-all"?: Linter.RuleEntry<[]>;
|
|
13263
13508
|
/**
|
|
13264
13509
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
13265
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13510
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-slice.md
|
|
13266
13511
|
*/
|
|
13267
13512
|
"unicorn/prefer-string-slice"?: Linter.RuleEntry<[]>;
|
|
13268
13513
|
/**
|
|
13269
13514
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
13270
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13515
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
13271
13516
|
*/
|
|
13272
13517
|
"unicorn/prefer-string-starts-ends-with"?: Linter.RuleEntry<[]>;
|
|
13273
13518
|
/**
|
|
13274
13519
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
13275
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13520
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
13276
13521
|
*/
|
|
13277
13522
|
"unicorn/prefer-string-trim-start-end"?: Linter.RuleEntry<[]>;
|
|
13278
13523
|
/**
|
|
13279
13524
|
* Prefer using `structuredClone` to create a deep clone.
|
|
13280
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13525
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-structured-clone.md
|
|
13281
13526
|
*/
|
|
13282
13527
|
"unicorn/prefer-structured-clone"?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
13283
13528
|
/**
|
|
13284
13529
|
* Prefer `switch` over multiple `else-if`.
|
|
13285
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13530
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-switch.md
|
|
13286
13531
|
*/
|
|
13287
13532
|
"unicorn/prefer-switch"?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
13288
13533
|
/**
|
|
13289
13534
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
13290
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13535
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-ternary.md
|
|
13291
13536
|
*/
|
|
13292
13537
|
"unicorn/prefer-ternary"?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
13293
13538
|
/**
|
|
13294
13539
|
* Prefer top-level await over top-level promises and async function calls.
|
|
13295
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13540
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-top-level-await.md
|
|
13296
13541
|
*/
|
|
13297
13542
|
"unicorn/prefer-top-level-await"?: Linter.RuleEntry<[]>;
|
|
13298
13543
|
/**
|
|
13299
13544
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
13300
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13545
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prefer-type-error.md
|
|
13301
13546
|
*/
|
|
13302
13547
|
"unicorn/prefer-type-error"?: Linter.RuleEntry<[]>;
|
|
13303
13548
|
/**
|
|
13304
13549
|
* Prevent abbreviations.
|
|
13305
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13550
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/prevent-abbreviations.md
|
|
13306
13551
|
*/
|
|
13307
13552
|
"unicorn/prevent-abbreviations"?: Linter.RuleEntry<UnicornPreventAbbreviations>;
|
|
13308
13553
|
/**
|
|
13309
13554
|
* Enforce consistent relative URL style.
|
|
13310
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13555
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/relative-url-style.md
|
|
13311
13556
|
*/
|
|
13312
13557
|
"unicorn/relative-url-style"?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
13313
13558
|
/**
|
|
13314
13559
|
* Enforce using the separator argument with `Array#join()`.
|
|
13315
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13560
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-array-join-separator.md
|
|
13316
13561
|
*/
|
|
13317
13562
|
"unicorn/require-array-join-separator"?: Linter.RuleEntry<[]>;
|
|
13318
13563
|
/**
|
|
13319
13564
|
* Require non-empty module attributes for imports and exports
|
|
13320
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13565
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-module-attributes.md
|
|
13321
13566
|
*/
|
|
13322
13567
|
"unicorn/require-module-attributes"?: Linter.RuleEntry<[]>;
|
|
13323
13568
|
/**
|
|
13324
13569
|
* Require non-empty specifier list in import and export statements.
|
|
13325
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13570
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-module-specifiers.md
|
|
13326
13571
|
*/
|
|
13327
13572
|
"unicorn/require-module-specifiers"?: Linter.RuleEntry<[]>;
|
|
13328
13573
|
/**
|
|
13329
13574
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
13330
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13575
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
13331
13576
|
*/
|
|
13332
13577
|
"unicorn/require-number-to-fixed-digits-argument"?: Linter.RuleEntry<[]>;
|
|
13333
13578
|
/**
|
|
13334
13579
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
13335
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13580
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/require-post-message-target-origin.md
|
|
13336
13581
|
*/
|
|
13337
13582
|
"unicorn/require-post-message-target-origin"?: Linter.RuleEntry<[]>;
|
|
13338
13583
|
/**
|
|
13339
13584
|
* Enforce better string content.
|
|
13340
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13585
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/string-content.md
|
|
13341
13586
|
*/
|
|
13342
13587
|
"unicorn/string-content"?: Linter.RuleEntry<UnicornStringContent>;
|
|
13343
13588
|
/**
|
|
13344
13589
|
* Enforce consistent brace style for `case` clauses.
|
|
13345
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13590
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/switch-case-braces.md
|
|
13346
13591
|
*/
|
|
13347
13592
|
"unicorn/switch-case-braces"?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
13593
|
+
/**
|
|
13594
|
+
* Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
|
|
13595
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/switch-case-break-position.md
|
|
13596
|
+
*/
|
|
13597
|
+
"unicorn/switch-case-break-position"?: Linter.RuleEntry<[]>;
|
|
13348
13598
|
/**
|
|
13349
13599
|
* Fix whitespace-insensitive template indentation.
|
|
13350
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13600
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/template-indent.md
|
|
13351
13601
|
*/
|
|
13352
13602
|
"unicorn/template-indent"?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
13353
13603
|
/**
|
|
13354
13604
|
* Enforce consistent case for text encoding identifiers.
|
|
13355
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13605
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/text-encoding-identifier-case.md
|
|
13356
13606
|
*/
|
|
13357
13607
|
"unicorn/text-encoding-identifier-case"?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
|
|
13358
13608
|
/**
|
|
13359
13609
|
* Require `new` when creating an error.
|
|
13360
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
13610
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v64.0.0/docs/rules/throw-new-error.md
|
|
13361
13611
|
*/
|
|
13362
13612
|
"unicorn/throw-new-error"?: Linter.RuleEntry<[]>;
|
|
13363
13613
|
}
|
|
@@ -13377,6 +13627,7 @@ type UnicornEscapeCase = [] | ["uppercase" | "lowercase"]; // ----- unicorn/expi
|
|
|
13377
13627
|
type UnicornExpiringTodoComments = [] | [{
|
|
13378
13628
|
terms?: string[];
|
|
13379
13629
|
ignore?: unknown[];
|
|
13630
|
+
ignoreDates?: boolean;
|
|
13380
13631
|
ignoreDatesOnPullRequests?: boolean;
|
|
13381
13632
|
allowWarningComments?: boolean;
|
|
13382
13633
|
date?: string;
|
|
@@ -13533,6 +13784,9 @@ type _UnicornPreventAbbreviationsReplacements = (false | _UnicornPreventAbbrevia
|
|
|
13533
13784
|
interface _UnicornPreventAbbreviations_Abbreviations {
|
|
13534
13785
|
[k: string]: _UnicornPreventAbbreviationsReplacements | undefined;
|
|
13535
13786
|
}
|
|
13787
|
+
interface _UnicornPreventAbbreviations_BooleanObject {
|
|
13788
|
+
[k: string]: boolean | undefined;
|
|
13789
|
+
}
|
|
13536
13790
|
interface _UnicornPreventAbbreviations_BooleanObject {
|
|
13537
13791
|
[k: string]: boolean | undefined;
|
|
13538
13792
|
} // ----- unicorn/relative-url-style -----
|
|
@@ -13558,7 +13812,7 @@ type UnicornTextEncodingIdentifierCase = [] | [{
|
|
|
13558
13812
|
withDash?: boolean;
|
|
13559
13813
|
}];
|
|
13560
13814
|
//#endregion
|
|
13561
|
-
//#region src/
|
|
13815
|
+
//#region src/_generated/dts/vitest.d.ts
|
|
13562
13816
|
interface VitestRuleOptions {
|
|
13563
13817
|
/**
|
|
13564
13818
|
* enforce using `.each` or `.for` consistently
|
|
@@ -13941,6 +14195,11 @@ interface VitestRuleOptions {
|
|
|
13941
14195
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-top-level-describe.md
|
|
13942
14196
|
*/
|
|
13943
14197
|
"vitest/require-top-level-describe"?: Linter.RuleEntry<VitestRequireTopLevelDescribe>;
|
|
14198
|
+
/**
|
|
14199
|
+
* enforce unbound methods are called with their expected scope
|
|
14200
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/unbound-method.md
|
|
14201
|
+
*/
|
|
14202
|
+
"vitest/unbound-method"?: Linter.RuleEntry<VitestUnboundMethod>;
|
|
13944
14203
|
/**
|
|
13945
14204
|
* enforce valid describe callback
|
|
13946
14205
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-describe-callback.md
|
|
@@ -14044,6 +14303,9 @@ type VitestRequireMockTypeParameters = [] | [{
|
|
|
14044
14303
|
}]; // ----- vitest/require-top-level-describe -----
|
|
14045
14304
|
type VitestRequireTopLevelDescribe = [] | [{
|
|
14046
14305
|
maxNumberOfTopLevelDescribes?: number;
|
|
14306
|
+
}]; // ----- vitest/unbound-method -----
|
|
14307
|
+
type VitestUnboundMethod = [] | [{
|
|
14308
|
+
ignoreStatic?: boolean;
|
|
14047
14309
|
}]; // ----- vitest/valid-expect -----
|
|
14048
14310
|
type VitestValidExpect = [] | [{
|
|
14049
14311
|
alwaysAwait?: boolean;
|
|
@@ -14060,7 +14322,7 @@ type VitestValidTitle = [] | [{
|
|
|
14060
14322
|
};
|
|
14061
14323
|
}];
|
|
14062
14324
|
//#endregion
|
|
14063
|
-
//#region src/
|
|
14325
|
+
//#region src/_generated/dts/yml.d.ts
|
|
14064
14326
|
interface YmlRuleOptions {
|
|
14065
14327
|
/**
|
|
14066
14328
|
* require or disallow block style mappings.
|
|
@@ -14395,7 +14657,7 @@ type YamlSpacedComment = [] | ["always" | "never"] | ["always" | "never", {
|
|
|
14395
14657
|
markers?: string[];
|
|
14396
14658
|
}];
|
|
14397
14659
|
//#endregion
|
|
14398
|
-
//#region src/
|
|
14660
|
+
//#region src/_generated/rule-options.d.ts
|
|
14399
14661
|
type RuleOptionsUnion = BuiltinsRuleOptions & AntfuRuleOptions & CommandRuleOptions & DeMorganRuleOptions & EslintCommentsRuleOptions & IgnoresRuleOptions & ImportsRuleOptions & JavascriptRuleOptions$1 & JsdocRuleOptions & JsoncRuleOptions & MarkdownRuleOptions & NRuleOptions & NoOnlyTestsRuleOptions & PerfectionistRuleOptions & PnpmRuleOptions & PrettierRuleOptions & ReactRuleOptions & ReactHooksRuleOptions & SortPackageJsonRuleOptions & SortTsconfigRuleOptions & StylisticRuleOptions & TomlRuleOptions & TsdocRuleOptions & TypescriptRuleOptions & UnicornRuleOptions & VitestRuleOptions & YmlRuleOptions;
|
|
14400
14662
|
//#endregion
|
|
14401
14663
|
//#region src/types.d.ts
|
|
@@ -14696,9 +14958,6 @@ declare const SLOW_RULES: RuleName[];
|
|
|
14696
14958
|
declare function jsse(options?: OptionsConfig & Config, ...userConfigs: (Config | Config[])[]): Promise<Config[]>;
|
|
14697
14959
|
declare function defineConfig(options?: OptionsConfig & Config, ...userConfigs: (Config | Config[])[]): Promise<Config[]>;
|
|
14698
14960
|
type DefineConfig = typeof defineConfig;
|
|
14699
|
-
//#endregion
|
|
14700
|
-
//#region src/generated/version.d.ts
|
|
14701
|
-
declare const VERSION = "0.6.2";
|
|
14702
14961
|
declare namespace globs_d_exports {
|
|
14703
14962
|
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 };
|
|
14704
14963
|
}
|
|
@@ -14733,214 +14992,214 @@ declare const GLOB_EXCLUDE: string[];
|
|
|
14733
14992
|
declare function importPluginReact(): Promise<{
|
|
14734
14993
|
pluginReact: {
|
|
14735
14994
|
deprecatedRules: Partial<{
|
|
14736
|
-
'boolean-prop-naming': eslint.Rule.RuleModule;
|
|
14737
|
-
'button-has-type': eslint.Rule.RuleModule;
|
|
14738
|
-
'checked-requires-onchange-or-readonly': eslint.Rule.RuleModule;
|
|
14739
|
-
'default-props-match-prop-types': eslint.Rule.RuleModule;
|
|
14740
|
-
'destructuring-assignment': eslint.Rule.RuleModule;
|
|
14741
|
-
'display-name': eslint.Rule.RuleModule;
|
|
14742
|
-
'forbid-component-props': eslint.Rule.RuleModule;
|
|
14743
|
-
'forbid-dom-props': eslint.Rule.RuleModule;
|
|
14744
|
-
'forbid-elements': eslint.Rule.RuleModule;
|
|
14745
|
-
'forbid-foreign-prop-types': eslint.Rule.RuleModule;
|
|
14746
|
-
'forbid-prop-types': eslint.Rule.RuleModule;
|
|
14747
|
-
'forward-ref-uses-ref': eslint.Rule.RuleModule;
|
|
14748
|
-
'function-component-definition': eslint.Rule.RuleModule;
|
|
14749
|
-
'hook-use-state': eslint.Rule.RuleModule;
|
|
14750
|
-
'iframe-missing-sandbox': eslint.Rule.RuleModule;
|
|
14751
|
-
'jsx-boolean-value': eslint.Rule.RuleModule;
|
|
14752
|
-
'jsx-child-element-spacing': eslint.Rule.RuleModule;
|
|
14753
|
-
'jsx-closing-bracket-location': eslint.Rule.RuleModule;
|
|
14754
|
-
'jsx-closing-tag-location': eslint.Rule.RuleModule;
|
|
14755
|
-
'jsx-curly-spacing': eslint.Rule.RuleModule;
|
|
14756
|
-
'jsx-curly-newline': eslint.Rule.RuleModule;
|
|
14757
|
-
'jsx-equals-spacing': eslint.Rule.RuleModule;
|
|
14758
|
-
'jsx-filename-extension': eslint.Rule.RuleModule;
|
|
14759
|
-
'jsx-first-prop-new-line': eslint.Rule.RuleModule;
|
|
14760
|
-
'jsx-handler-names': eslint.Rule.RuleModule;
|
|
14761
|
-
'jsx-indent': eslint.Rule.RuleModule;
|
|
14762
|
-
'jsx-indent-props': eslint.Rule.RuleModule;
|
|
14763
|
-
'jsx-key': eslint.Rule.RuleModule;
|
|
14764
|
-
'jsx-max-depth': eslint.Rule.RuleModule;
|
|
14765
|
-
'jsx-max-props-per-line': eslint.Rule.RuleModule;
|
|
14766
|
-
'jsx-newline': eslint.Rule.RuleModule;
|
|
14767
|
-
'jsx-no-bind': eslint.Rule.RuleModule;
|
|
14768
|
-
'jsx-no-comment-textnodes': eslint.Rule.RuleModule;
|
|
14769
|
-
'jsx-no-constructed-context-values': eslint.Rule.RuleModule;
|
|
14770
|
-
'jsx-no-duplicate-props': eslint.Rule.RuleModule;
|
|
14771
|
-
'jsx-no-leaked-render': eslint.Rule.RuleModule;
|
|
14772
|
-
'jsx-no-literals': eslint.Rule.RuleModule;
|
|
14773
|
-
'jsx-no-script-url': eslint.Rule.RuleModule;
|
|
14774
|
-
'jsx-no-target-blank': eslint.Rule.RuleModule;
|
|
14775
|
-
'jsx-no-useless-fragment': eslint.Rule.RuleModule;
|
|
14776
|
-
'jsx-one-expression-per-line': eslint.Rule.RuleModule;
|
|
14777
|
-
'jsx-no-undef': eslint.Rule.RuleModule;
|
|
14778
|
-
'jsx-curly-brace-presence': eslint.Rule.RuleModule;
|
|
14779
|
-
'jsx-pascal-case': eslint.Rule.RuleModule;
|
|
14780
|
-
'jsx-fragments': eslint.Rule.RuleModule;
|
|
14781
|
-
'jsx-props-no-multi-spaces': eslint.Rule.RuleModule;
|
|
14782
|
-
'jsx-props-no-spreading': eslint.Rule.RuleModule;
|
|
14783
|
-
'jsx-props-no-spread-multi': eslint.Rule.RuleModule;
|
|
14784
|
-
'jsx-sort-default-props': eslint.Rule.RuleModule;
|
|
14785
|
-
'jsx-sort-props': eslint.Rule.RuleModule;
|
|
14786
|
-
'jsx-space-before-closing': eslint.Rule.RuleModule;
|
|
14787
|
-
'jsx-tag-spacing': eslint.Rule.RuleModule;
|
|
14788
|
-
'jsx-uses-react': eslint.Rule.RuleModule;
|
|
14789
|
-
'jsx-uses-vars': eslint.Rule.RuleModule;
|
|
14790
|
-
'jsx-wrap-multilines': eslint.Rule.RuleModule;
|
|
14791
|
-
'no-invalid-html-attribute': eslint.Rule.RuleModule;
|
|
14792
|
-
'no-access-state-in-setstate': eslint.Rule.RuleModule;
|
|
14793
|
-
'no-adjacent-inline-elements': eslint.Rule.RuleModule;
|
|
14794
|
-
'no-array-index-key': eslint.Rule.RuleModule;
|
|
14795
|
-
'no-arrow-function-lifecycle': eslint.Rule.RuleModule;
|
|
14796
|
-
'no-children-prop': eslint.Rule.RuleModule;
|
|
14797
|
-
'no-danger': eslint.Rule.RuleModule;
|
|
14798
|
-
'no-danger-with-children': eslint.Rule.RuleModule;
|
|
14799
|
-
'no-deprecated': eslint.Rule.RuleModule;
|
|
14800
|
-
'no-did-mount-set-state': eslint.Rule.RuleModule;
|
|
14801
|
-
'no-did-update-set-state': eslint.Rule.RuleModule;
|
|
14802
|
-
'no-direct-mutation-state': eslint.Rule.RuleModule;
|
|
14803
|
-
'no-find-dom-node': eslint.Rule.RuleModule;
|
|
14804
|
-
'no-is-mounted': eslint.Rule.RuleModule;
|
|
14805
|
-
'no-multi-comp': eslint.Rule.RuleModule;
|
|
14806
|
-
'no-namespace': eslint.Rule.RuleModule;
|
|
14807
|
-
'no-set-state': eslint.Rule.RuleModule;
|
|
14808
|
-
'no-string-refs': eslint.Rule.RuleModule;
|
|
14809
|
-
'no-redundant-should-component-update': eslint.Rule.RuleModule;
|
|
14810
|
-
'no-render-return-value': eslint.Rule.RuleModule;
|
|
14811
|
-
'no-this-in-sfc': eslint.Rule.RuleModule;
|
|
14812
|
-
'no-typos': eslint.Rule.RuleModule;
|
|
14813
|
-
'no-unescaped-entities': eslint.Rule.RuleModule;
|
|
14814
|
-
'no-unknown-property': eslint.Rule.RuleModule;
|
|
14815
|
-
'no-unsafe': eslint.Rule.RuleModule;
|
|
14816
|
-
'no-unstable-nested-components': eslint.Rule.RuleModule;
|
|
14817
|
-
'no-unused-class-component-methods': eslint.Rule.RuleModule;
|
|
14818
|
-
'no-unused-prop-types': eslint.Rule.RuleModule;
|
|
14819
|
-
'no-unused-state': eslint.Rule.RuleModule;
|
|
14820
|
-
'no-object-type-as-default-prop': eslint.Rule.RuleModule;
|
|
14821
|
-
'no-will-update-set-state': eslint.Rule.RuleModule;
|
|
14822
|
-
'prefer-es6-class': eslint.Rule.RuleModule;
|
|
14823
|
-
'prefer-exact-props': eslint.Rule.RuleModule;
|
|
14824
|
-
'prefer-read-only-props': eslint.Rule.RuleModule;
|
|
14825
|
-
'prefer-stateless-function': eslint.Rule.RuleModule;
|
|
14826
|
-
'prop-types': eslint.Rule.RuleModule;
|
|
14827
|
-
'react-in-jsx-scope': eslint.Rule.RuleModule;
|
|
14828
|
-
'require-default-props': eslint.Rule.RuleModule;
|
|
14829
|
-
'require-optimization': eslint.Rule.RuleModule;
|
|
14830
|
-
'require-render-return': eslint.Rule.RuleModule;
|
|
14831
|
-
'self-closing-comp': eslint.Rule.RuleModule;
|
|
14832
|
-
'sort-comp': eslint.Rule.RuleModule;
|
|
14833
|
-
'sort-default-props': eslint.Rule.RuleModule;
|
|
14834
|
-
'sort-prop-types': eslint.Rule.RuleModule;
|
|
14835
|
-
'state-in-constructor': eslint.Rule.RuleModule;
|
|
14836
|
-
'static-property-placement': eslint.Rule.RuleModule;
|
|
14837
|
-
'style-prop-object': eslint.Rule.RuleModule;
|
|
14838
|
-
'void-dom-elements-no-children': eslint.Rule.RuleModule;
|
|
14995
|
+
'boolean-prop-naming': _$eslint.Rule.RuleModule;
|
|
14996
|
+
'button-has-type': _$eslint.Rule.RuleModule;
|
|
14997
|
+
'checked-requires-onchange-or-readonly': _$eslint.Rule.RuleModule;
|
|
14998
|
+
'default-props-match-prop-types': _$eslint.Rule.RuleModule;
|
|
14999
|
+
'destructuring-assignment': _$eslint.Rule.RuleModule;
|
|
15000
|
+
'display-name': _$eslint.Rule.RuleModule;
|
|
15001
|
+
'forbid-component-props': _$eslint.Rule.RuleModule;
|
|
15002
|
+
'forbid-dom-props': _$eslint.Rule.RuleModule;
|
|
15003
|
+
'forbid-elements': _$eslint.Rule.RuleModule;
|
|
15004
|
+
'forbid-foreign-prop-types': _$eslint.Rule.RuleModule;
|
|
15005
|
+
'forbid-prop-types': _$eslint.Rule.RuleModule;
|
|
15006
|
+
'forward-ref-uses-ref': _$eslint.Rule.RuleModule;
|
|
15007
|
+
'function-component-definition': _$eslint.Rule.RuleModule;
|
|
15008
|
+
'hook-use-state': _$eslint.Rule.RuleModule;
|
|
15009
|
+
'iframe-missing-sandbox': _$eslint.Rule.RuleModule;
|
|
15010
|
+
'jsx-boolean-value': _$eslint.Rule.RuleModule;
|
|
15011
|
+
'jsx-child-element-spacing': _$eslint.Rule.RuleModule;
|
|
15012
|
+
'jsx-closing-bracket-location': _$eslint.Rule.RuleModule;
|
|
15013
|
+
'jsx-closing-tag-location': _$eslint.Rule.RuleModule;
|
|
15014
|
+
'jsx-curly-spacing': _$eslint.Rule.RuleModule;
|
|
15015
|
+
'jsx-curly-newline': _$eslint.Rule.RuleModule;
|
|
15016
|
+
'jsx-equals-spacing': _$eslint.Rule.RuleModule;
|
|
15017
|
+
'jsx-filename-extension': _$eslint.Rule.RuleModule;
|
|
15018
|
+
'jsx-first-prop-new-line': _$eslint.Rule.RuleModule;
|
|
15019
|
+
'jsx-handler-names': _$eslint.Rule.RuleModule;
|
|
15020
|
+
'jsx-indent': _$eslint.Rule.RuleModule;
|
|
15021
|
+
'jsx-indent-props': _$eslint.Rule.RuleModule;
|
|
15022
|
+
'jsx-key': _$eslint.Rule.RuleModule;
|
|
15023
|
+
'jsx-max-depth': _$eslint.Rule.RuleModule;
|
|
15024
|
+
'jsx-max-props-per-line': _$eslint.Rule.RuleModule;
|
|
15025
|
+
'jsx-newline': _$eslint.Rule.RuleModule;
|
|
15026
|
+
'jsx-no-bind': _$eslint.Rule.RuleModule;
|
|
15027
|
+
'jsx-no-comment-textnodes': _$eslint.Rule.RuleModule;
|
|
15028
|
+
'jsx-no-constructed-context-values': _$eslint.Rule.RuleModule;
|
|
15029
|
+
'jsx-no-duplicate-props': _$eslint.Rule.RuleModule;
|
|
15030
|
+
'jsx-no-leaked-render': _$eslint.Rule.RuleModule;
|
|
15031
|
+
'jsx-no-literals': _$eslint.Rule.RuleModule;
|
|
15032
|
+
'jsx-no-script-url': _$eslint.Rule.RuleModule;
|
|
15033
|
+
'jsx-no-target-blank': _$eslint.Rule.RuleModule;
|
|
15034
|
+
'jsx-no-useless-fragment': _$eslint.Rule.RuleModule;
|
|
15035
|
+
'jsx-one-expression-per-line': _$eslint.Rule.RuleModule;
|
|
15036
|
+
'jsx-no-undef': _$eslint.Rule.RuleModule;
|
|
15037
|
+
'jsx-curly-brace-presence': _$eslint.Rule.RuleModule;
|
|
15038
|
+
'jsx-pascal-case': _$eslint.Rule.RuleModule;
|
|
15039
|
+
'jsx-fragments': _$eslint.Rule.RuleModule;
|
|
15040
|
+
'jsx-props-no-multi-spaces': _$eslint.Rule.RuleModule;
|
|
15041
|
+
'jsx-props-no-spreading': _$eslint.Rule.RuleModule;
|
|
15042
|
+
'jsx-props-no-spread-multi': _$eslint.Rule.RuleModule;
|
|
15043
|
+
'jsx-sort-default-props': _$eslint.Rule.RuleModule;
|
|
15044
|
+
'jsx-sort-props': _$eslint.Rule.RuleModule;
|
|
15045
|
+
'jsx-space-before-closing': _$eslint.Rule.RuleModule;
|
|
15046
|
+
'jsx-tag-spacing': _$eslint.Rule.RuleModule;
|
|
15047
|
+
'jsx-uses-react': _$eslint.Rule.RuleModule;
|
|
15048
|
+
'jsx-uses-vars': _$eslint.Rule.RuleModule;
|
|
15049
|
+
'jsx-wrap-multilines': _$eslint.Rule.RuleModule;
|
|
15050
|
+
'no-invalid-html-attribute': _$eslint.Rule.RuleModule;
|
|
15051
|
+
'no-access-state-in-setstate': _$eslint.Rule.RuleModule;
|
|
15052
|
+
'no-adjacent-inline-elements': _$eslint.Rule.RuleModule;
|
|
15053
|
+
'no-array-index-key': _$eslint.Rule.RuleModule;
|
|
15054
|
+
'no-arrow-function-lifecycle': _$eslint.Rule.RuleModule;
|
|
15055
|
+
'no-children-prop': _$eslint.Rule.RuleModule;
|
|
15056
|
+
'no-danger': _$eslint.Rule.RuleModule;
|
|
15057
|
+
'no-danger-with-children': _$eslint.Rule.RuleModule;
|
|
15058
|
+
'no-deprecated': _$eslint.Rule.RuleModule;
|
|
15059
|
+
'no-did-mount-set-state': _$eslint.Rule.RuleModule;
|
|
15060
|
+
'no-did-update-set-state': _$eslint.Rule.RuleModule;
|
|
15061
|
+
'no-direct-mutation-state': _$eslint.Rule.RuleModule;
|
|
15062
|
+
'no-find-dom-node': _$eslint.Rule.RuleModule;
|
|
15063
|
+
'no-is-mounted': _$eslint.Rule.RuleModule;
|
|
15064
|
+
'no-multi-comp': _$eslint.Rule.RuleModule;
|
|
15065
|
+
'no-namespace': _$eslint.Rule.RuleModule;
|
|
15066
|
+
'no-set-state': _$eslint.Rule.RuleModule;
|
|
15067
|
+
'no-string-refs': _$eslint.Rule.RuleModule;
|
|
15068
|
+
'no-redundant-should-component-update': _$eslint.Rule.RuleModule;
|
|
15069
|
+
'no-render-return-value': _$eslint.Rule.RuleModule;
|
|
15070
|
+
'no-this-in-sfc': _$eslint.Rule.RuleModule;
|
|
15071
|
+
'no-typos': _$eslint.Rule.RuleModule;
|
|
15072
|
+
'no-unescaped-entities': _$eslint.Rule.RuleModule;
|
|
15073
|
+
'no-unknown-property': _$eslint.Rule.RuleModule;
|
|
15074
|
+
'no-unsafe': _$eslint.Rule.RuleModule;
|
|
15075
|
+
'no-unstable-nested-components': _$eslint.Rule.RuleModule;
|
|
15076
|
+
'no-unused-class-component-methods': _$eslint.Rule.RuleModule;
|
|
15077
|
+
'no-unused-prop-types': _$eslint.Rule.RuleModule;
|
|
15078
|
+
'no-unused-state': _$eslint.Rule.RuleModule;
|
|
15079
|
+
'no-object-type-as-default-prop': _$eslint.Rule.RuleModule;
|
|
15080
|
+
'no-will-update-set-state': _$eslint.Rule.RuleModule;
|
|
15081
|
+
'prefer-es6-class': _$eslint.Rule.RuleModule;
|
|
15082
|
+
'prefer-exact-props': _$eslint.Rule.RuleModule;
|
|
15083
|
+
'prefer-read-only-props': _$eslint.Rule.RuleModule;
|
|
15084
|
+
'prefer-stateless-function': _$eslint.Rule.RuleModule;
|
|
15085
|
+
'prop-types': _$eslint.Rule.RuleModule;
|
|
15086
|
+
'react-in-jsx-scope': _$eslint.Rule.RuleModule;
|
|
15087
|
+
'require-default-props': _$eslint.Rule.RuleModule;
|
|
15088
|
+
'require-optimization': _$eslint.Rule.RuleModule;
|
|
15089
|
+
'require-render-return': _$eslint.Rule.RuleModule;
|
|
15090
|
+
'self-closing-comp': _$eslint.Rule.RuleModule;
|
|
15091
|
+
'sort-comp': _$eslint.Rule.RuleModule;
|
|
15092
|
+
'sort-default-props': _$eslint.Rule.RuleModule;
|
|
15093
|
+
'sort-prop-types': _$eslint.Rule.RuleModule;
|
|
15094
|
+
'state-in-constructor': _$eslint.Rule.RuleModule;
|
|
15095
|
+
'static-property-placement': _$eslint.Rule.RuleModule;
|
|
15096
|
+
'style-prop-object': _$eslint.Rule.RuleModule;
|
|
15097
|
+
'void-dom-elements-no-children': _$eslint.Rule.RuleModule;
|
|
14839
15098
|
}>;
|
|
14840
15099
|
rules: {
|
|
14841
|
-
'boolean-prop-naming': eslint.Rule.RuleModule;
|
|
14842
|
-
'button-has-type': eslint.Rule.RuleModule;
|
|
14843
|
-
'checked-requires-onchange-or-readonly': eslint.Rule.RuleModule;
|
|
14844
|
-
'default-props-match-prop-types': eslint.Rule.RuleModule;
|
|
14845
|
-
'destructuring-assignment': eslint.Rule.RuleModule;
|
|
14846
|
-
'display-name': eslint.Rule.RuleModule;
|
|
14847
|
-
'forbid-component-props': eslint.Rule.RuleModule;
|
|
14848
|
-
'forbid-dom-props': eslint.Rule.RuleModule;
|
|
14849
|
-
'forbid-elements': eslint.Rule.RuleModule;
|
|
14850
|
-
'forbid-foreign-prop-types': eslint.Rule.RuleModule;
|
|
14851
|
-
'forbid-prop-types': eslint.Rule.RuleModule;
|
|
14852
|
-
'forward-ref-uses-ref': eslint.Rule.RuleModule;
|
|
14853
|
-
'function-component-definition': eslint.Rule.RuleModule;
|
|
14854
|
-
'hook-use-state': eslint.Rule.RuleModule;
|
|
14855
|
-
'iframe-missing-sandbox': eslint.Rule.RuleModule;
|
|
14856
|
-
'jsx-boolean-value': eslint.Rule.RuleModule;
|
|
14857
|
-
'jsx-child-element-spacing': eslint.Rule.RuleModule;
|
|
14858
|
-
'jsx-closing-bracket-location': eslint.Rule.RuleModule;
|
|
14859
|
-
'jsx-closing-tag-location': eslint.Rule.RuleModule;
|
|
14860
|
-
'jsx-curly-spacing': eslint.Rule.RuleModule;
|
|
14861
|
-
'jsx-curly-newline': eslint.Rule.RuleModule;
|
|
14862
|
-
'jsx-equals-spacing': eslint.Rule.RuleModule;
|
|
14863
|
-
'jsx-filename-extension': eslint.Rule.RuleModule;
|
|
14864
|
-
'jsx-first-prop-new-line': eslint.Rule.RuleModule;
|
|
14865
|
-
'jsx-handler-names': eslint.Rule.RuleModule;
|
|
14866
|
-
'jsx-indent': eslint.Rule.RuleModule;
|
|
14867
|
-
'jsx-indent-props': eslint.Rule.RuleModule;
|
|
14868
|
-
'jsx-key': eslint.Rule.RuleModule;
|
|
14869
|
-
'jsx-max-depth': eslint.Rule.RuleModule;
|
|
14870
|
-
'jsx-max-props-per-line': eslint.Rule.RuleModule;
|
|
14871
|
-
'jsx-newline': eslint.Rule.RuleModule;
|
|
14872
|
-
'jsx-no-bind': eslint.Rule.RuleModule;
|
|
14873
|
-
'jsx-no-comment-textnodes': eslint.Rule.RuleModule;
|
|
14874
|
-
'jsx-no-constructed-context-values': eslint.Rule.RuleModule;
|
|
14875
|
-
'jsx-no-duplicate-props': eslint.Rule.RuleModule;
|
|
14876
|
-
'jsx-no-leaked-render': eslint.Rule.RuleModule;
|
|
14877
|
-
'jsx-no-literals': eslint.Rule.RuleModule;
|
|
14878
|
-
'jsx-no-script-url': eslint.Rule.RuleModule;
|
|
14879
|
-
'jsx-no-target-blank': eslint.Rule.RuleModule;
|
|
14880
|
-
'jsx-no-useless-fragment': eslint.Rule.RuleModule;
|
|
14881
|
-
'jsx-one-expression-per-line': eslint.Rule.RuleModule;
|
|
14882
|
-
'jsx-no-undef': eslint.Rule.RuleModule;
|
|
14883
|
-
'jsx-curly-brace-presence': eslint.Rule.RuleModule;
|
|
14884
|
-
'jsx-pascal-case': eslint.Rule.RuleModule;
|
|
14885
|
-
'jsx-fragments': eslint.Rule.RuleModule;
|
|
14886
|
-
'jsx-props-no-multi-spaces': eslint.Rule.RuleModule;
|
|
14887
|
-
'jsx-props-no-spreading': eslint.Rule.RuleModule;
|
|
14888
|
-
'jsx-props-no-spread-multi': eslint.Rule.RuleModule;
|
|
14889
|
-
'jsx-sort-default-props': eslint.Rule.RuleModule;
|
|
14890
|
-
'jsx-sort-props': eslint.Rule.RuleModule;
|
|
14891
|
-
'jsx-space-before-closing': eslint.Rule.RuleModule;
|
|
14892
|
-
'jsx-tag-spacing': eslint.Rule.RuleModule;
|
|
14893
|
-
'jsx-uses-react': eslint.Rule.RuleModule;
|
|
14894
|
-
'jsx-uses-vars': eslint.Rule.RuleModule;
|
|
14895
|
-
'jsx-wrap-multilines': eslint.Rule.RuleModule;
|
|
14896
|
-
'no-invalid-html-attribute': eslint.Rule.RuleModule;
|
|
14897
|
-
'no-access-state-in-setstate': eslint.Rule.RuleModule;
|
|
14898
|
-
'no-adjacent-inline-elements': eslint.Rule.RuleModule;
|
|
14899
|
-
'no-array-index-key': eslint.Rule.RuleModule;
|
|
14900
|
-
'no-arrow-function-lifecycle': eslint.Rule.RuleModule;
|
|
14901
|
-
'no-children-prop': eslint.Rule.RuleModule;
|
|
14902
|
-
'no-danger': eslint.Rule.RuleModule;
|
|
14903
|
-
'no-danger-with-children': eslint.Rule.RuleModule;
|
|
14904
|
-
'no-deprecated': eslint.Rule.RuleModule;
|
|
14905
|
-
'no-did-mount-set-state': eslint.Rule.RuleModule;
|
|
14906
|
-
'no-did-update-set-state': eslint.Rule.RuleModule;
|
|
14907
|
-
'no-direct-mutation-state': eslint.Rule.RuleModule;
|
|
14908
|
-
'no-find-dom-node': eslint.Rule.RuleModule;
|
|
14909
|
-
'no-is-mounted': eslint.Rule.RuleModule;
|
|
14910
|
-
'no-multi-comp': eslint.Rule.RuleModule;
|
|
14911
|
-
'no-namespace': eslint.Rule.RuleModule;
|
|
14912
|
-
'no-set-state': eslint.Rule.RuleModule;
|
|
14913
|
-
'no-string-refs': eslint.Rule.RuleModule;
|
|
14914
|
-
'no-redundant-should-component-update': eslint.Rule.RuleModule;
|
|
14915
|
-
'no-render-return-value': eslint.Rule.RuleModule;
|
|
14916
|
-
'no-this-in-sfc': eslint.Rule.RuleModule;
|
|
14917
|
-
'no-typos': eslint.Rule.RuleModule;
|
|
14918
|
-
'no-unescaped-entities': eslint.Rule.RuleModule;
|
|
14919
|
-
'no-unknown-property': eslint.Rule.RuleModule;
|
|
14920
|
-
'no-unsafe': eslint.Rule.RuleModule;
|
|
14921
|
-
'no-unstable-nested-components': eslint.Rule.RuleModule;
|
|
14922
|
-
'no-unused-class-component-methods': eslint.Rule.RuleModule;
|
|
14923
|
-
'no-unused-prop-types': eslint.Rule.RuleModule;
|
|
14924
|
-
'no-unused-state': eslint.Rule.RuleModule;
|
|
14925
|
-
'no-object-type-as-default-prop': eslint.Rule.RuleModule;
|
|
14926
|
-
'no-will-update-set-state': eslint.Rule.RuleModule;
|
|
14927
|
-
'prefer-es6-class': eslint.Rule.RuleModule;
|
|
14928
|
-
'prefer-exact-props': eslint.Rule.RuleModule;
|
|
14929
|
-
'prefer-read-only-props': eslint.Rule.RuleModule;
|
|
14930
|
-
'prefer-stateless-function': eslint.Rule.RuleModule;
|
|
14931
|
-
'prop-types': eslint.Rule.RuleModule;
|
|
14932
|
-
'react-in-jsx-scope': eslint.Rule.RuleModule;
|
|
14933
|
-
'require-default-props': eslint.Rule.RuleModule;
|
|
14934
|
-
'require-optimization': eslint.Rule.RuleModule;
|
|
14935
|
-
'require-render-return': eslint.Rule.RuleModule;
|
|
14936
|
-
'self-closing-comp': eslint.Rule.RuleModule;
|
|
14937
|
-
'sort-comp': eslint.Rule.RuleModule;
|
|
14938
|
-
'sort-default-props': eslint.Rule.RuleModule;
|
|
14939
|
-
'sort-prop-types': eslint.Rule.RuleModule;
|
|
14940
|
-
'state-in-constructor': eslint.Rule.RuleModule;
|
|
14941
|
-
'static-property-placement': eslint.Rule.RuleModule;
|
|
14942
|
-
'style-prop-object': eslint.Rule.RuleModule;
|
|
14943
|
-
'void-dom-elements-no-children': eslint.Rule.RuleModule;
|
|
15100
|
+
'boolean-prop-naming': _$eslint.Rule.RuleModule;
|
|
15101
|
+
'button-has-type': _$eslint.Rule.RuleModule;
|
|
15102
|
+
'checked-requires-onchange-or-readonly': _$eslint.Rule.RuleModule;
|
|
15103
|
+
'default-props-match-prop-types': _$eslint.Rule.RuleModule;
|
|
15104
|
+
'destructuring-assignment': _$eslint.Rule.RuleModule;
|
|
15105
|
+
'display-name': _$eslint.Rule.RuleModule;
|
|
15106
|
+
'forbid-component-props': _$eslint.Rule.RuleModule;
|
|
15107
|
+
'forbid-dom-props': _$eslint.Rule.RuleModule;
|
|
15108
|
+
'forbid-elements': _$eslint.Rule.RuleModule;
|
|
15109
|
+
'forbid-foreign-prop-types': _$eslint.Rule.RuleModule;
|
|
15110
|
+
'forbid-prop-types': _$eslint.Rule.RuleModule;
|
|
15111
|
+
'forward-ref-uses-ref': _$eslint.Rule.RuleModule;
|
|
15112
|
+
'function-component-definition': _$eslint.Rule.RuleModule;
|
|
15113
|
+
'hook-use-state': _$eslint.Rule.RuleModule;
|
|
15114
|
+
'iframe-missing-sandbox': _$eslint.Rule.RuleModule;
|
|
15115
|
+
'jsx-boolean-value': _$eslint.Rule.RuleModule;
|
|
15116
|
+
'jsx-child-element-spacing': _$eslint.Rule.RuleModule;
|
|
15117
|
+
'jsx-closing-bracket-location': _$eslint.Rule.RuleModule;
|
|
15118
|
+
'jsx-closing-tag-location': _$eslint.Rule.RuleModule;
|
|
15119
|
+
'jsx-curly-spacing': _$eslint.Rule.RuleModule;
|
|
15120
|
+
'jsx-curly-newline': _$eslint.Rule.RuleModule;
|
|
15121
|
+
'jsx-equals-spacing': _$eslint.Rule.RuleModule;
|
|
15122
|
+
'jsx-filename-extension': _$eslint.Rule.RuleModule;
|
|
15123
|
+
'jsx-first-prop-new-line': _$eslint.Rule.RuleModule;
|
|
15124
|
+
'jsx-handler-names': _$eslint.Rule.RuleModule;
|
|
15125
|
+
'jsx-indent': _$eslint.Rule.RuleModule;
|
|
15126
|
+
'jsx-indent-props': _$eslint.Rule.RuleModule;
|
|
15127
|
+
'jsx-key': _$eslint.Rule.RuleModule;
|
|
15128
|
+
'jsx-max-depth': _$eslint.Rule.RuleModule;
|
|
15129
|
+
'jsx-max-props-per-line': _$eslint.Rule.RuleModule;
|
|
15130
|
+
'jsx-newline': _$eslint.Rule.RuleModule;
|
|
15131
|
+
'jsx-no-bind': _$eslint.Rule.RuleModule;
|
|
15132
|
+
'jsx-no-comment-textnodes': _$eslint.Rule.RuleModule;
|
|
15133
|
+
'jsx-no-constructed-context-values': _$eslint.Rule.RuleModule;
|
|
15134
|
+
'jsx-no-duplicate-props': _$eslint.Rule.RuleModule;
|
|
15135
|
+
'jsx-no-leaked-render': _$eslint.Rule.RuleModule;
|
|
15136
|
+
'jsx-no-literals': _$eslint.Rule.RuleModule;
|
|
15137
|
+
'jsx-no-script-url': _$eslint.Rule.RuleModule;
|
|
15138
|
+
'jsx-no-target-blank': _$eslint.Rule.RuleModule;
|
|
15139
|
+
'jsx-no-useless-fragment': _$eslint.Rule.RuleModule;
|
|
15140
|
+
'jsx-one-expression-per-line': _$eslint.Rule.RuleModule;
|
|
15141
|
+
'jsx-no-undef': _$eslint.Rule.RuleModule;
|
|
15142
|
+
'jsx-curly-brace-presence': _$eslint.Rule.RuleModule;
|
|
15143
|
+
'jsx-pascal-case': _$eslint.Rule.RuleModule;
|
|
15144
|
+
'jsx-fragments': _$eslint.Rule.RuleModule;
|
|
15145
|
+
'jsx-props-no-multi-spaces': _$eslint.Rule.RuleModule;
|
|
15146
|
+
'jsx-props-no-spreading': _$eslint.Rule.RuleModule;
|
|
15147
|
+
'jsx-props-no-spread-multi': _$eslint.Rule.RuleModule;
|
|
15148
|
+
'jsx-sort-default-props': _$eslint.Rule.RuleModule;
|
|
15149
|
+
'jsx-sort-props': _$eslint.Rule.RuleModule;
|
|
15150
|
+
'jsx-space-before-closing': _$eslint.Rule.RuleModule;
|
|
15151
|
+
'jsx-tag-spacing': _$eslint.Rule.RuleModule;
|
|
15152
|
+
'jsx-uses-react': _$eslint.Rule.RuleModule;
|
|
15153
|
+
'jsx-uses-vars': _$eslint.Rule.RuleModule;
|
|
15154
|
+
'jsx-wrap-multilines': _$eslint.Rule.RuleModule;
|
|
15155
|
+
'no-invalid-html-attribute': _$eslint.Rule.RuleModule;
|
|
15156
|
+
'no-access-state-in-setstate': _$eslint.Rule.RuleModule;
|
|
15157
|
+
'no-adjacent-inline-elements': _$eslint.Rule.RuleModule;
|
|
15158
|
+
'no-array-index-key': _$eslint.Rule.RuleModule;
|
|
15159
|
+
'no-arrow-function-lifecycle': _$eslint.Rule.RuleModule;
|
|
15160
|
+
'no-children-prop': _$eslint.Rule.RuleModule;
|
|
15161
|
+
'no-danger': _$eslint.Rule.RuleModule;
|
|
15162
|
+
'no-danger-with-children': _$eslint.Rule.RuleModule;
|
|
15163
|
+
'no-deprecated': _$eslint.Rule.RuleModule;
|
|
15164
|
+
'no-did-mount-set-state': _$eslint.Rule.RuleModule;
|
|
15165
|
+
'no-did-update-set-state': _$eslint.Rule.RuleModule;
|
|
15166
|
+
'no-direct-mutation-state': _$eslint.Rule.RuleModule;
|
|
15167
|
+
'no-find-dom-node': _$eslint.Rule.RuleModule;
|
|
15168
|
+
'no-is-mounted': _$eslint.Rule.RuleModule;
|
|
15169
|
+
'no-multi-comp': _$eslint.Rule.RuleModule;
|
|
15170
|
+
'no-namespace': _$eslint.Rule.RuleModule;
|
|
15171
|
+
'no-set-state': _$eslint.Rule.RuleModule;
|
|
15172
|
+
'no-string-refs': _$eslint.Rule.RuleModule;
|
|
15173
|
+
'no-redundant-should-component-update': _$eslint.Rule.RuleModule;
|
|
15174
|
+
'no-render-return-value': _$eslint.Rule.RuleModule;
|
|
15175
|
+
'no-this-in-sfc': _$eslint.Rule.RuleModule;
|
|
15176
|
+
'no-typos': _$eslint.Rule.RuleModule;
|
|
15177
|
+
'no-unescaped-entities': _$eslint.Rule.RuleModule;
|
|
15178
|
+
'no-unknown-property': _$eslint.Rule.RuleModule;
|
|
15179
|
+
'no-unsafe': _$eslint.Rule.RuleModule;
|
|
15180
|
+
'no-unstable-nested-components': _$eslint.Rule.RuleModule;
|
|
15181
|
+
'no-unused-class-component-methods': _$eslint.Rule.RuleModule;
|
|
15182
|
+
'no-unused-prop-types': _$eslint.Rule.RuleModule;
|
|
15183
|
+
'no-unused-state': _$eslint.Rule.RuleModule;
|
|
15184
|
+
'no-object-type-as-default-prop': _$eslint.Rule.RuleModule;
|
|
15185
|
+
'no-will-update-set-state': _$eslint.Rule.RuleModule;
|
|
15186
|
+
'prefer-es6-class': _$eslint.Rule.RuleModule;
|
|
15187
|
+
'prefer-exact-props': _$eslint.Rule.RuleModule;
|
|
15188
|
+
'prefer-read-only-props': _$eslint.Rule.RuleModule;
|
|
15189
|
+
'prefer-stateless-function': _$eslint.Rule.RuleModule;
|
|
15190
|
+
'prop-types': _$eslint.Rule.RuleModule;
|
|
15191
|
+
'react-in-jsx-scope': _$eslint.Rule.RuleModule;
|
|
15192
|
+
'require-default-props': _$eslint.Rule.RuleModule;
|
|
15193
|
+
'require-optimization': _$eslint.Rule.RuleModule;
|
|
15194
|
+
'require-render-return': _$eslint.Rule.RuleModule;
|
|
15195
|
+
'self-closing-comp': _$eslint.Rule.RuleModule;
|
|
15196
|
+
'sort-comp': _$eslint.Rule.RuleModule;
|
|
15197
|
+
'sort-default-props': _$eslint.Rule.RuleModule;
|
|
15198
|
+
'sort-prop-types': _$eslint.Rule.RuleModule;
|
|
15199
|
+
'state-in-constructor': _$eslint.Rule.RuleModule;
|
|
15200
|
+
'static-property-placement': _$eslint.Rule.RuleModule;
|
|
15201
|
+
'style-prop-object': _$eslint.Rule.RuleModule;
|
|
15202
|
+
'void-dom-elements-no-children': _$eslint.Rule.RuleModule;
|
|
14944
15203
|
};
|
|
14945
15204
|
configs: {
|
|
14946
15205
|
recommended: {
|
|
@@ -14997,9 +15256,9 @@ declare function importPluginReact(): Promise<{
|
|
|
14997
15256
|
"react/jsx-uses-react": 0;
|
|
14998
15257
|
};
|
|
14999
15258
|
};
|
|
15000
|
-
flat: Record<string, eslint_plugin_react0.ReactFlatConfig>;
|
|
15259
|
+
flat: Record<string, _$eslint_plugin_react0.ReactFlatConfig>;
|
|
15001
15260
|
} & {
|
|
15002
|
-
flat: Record<string, eslint_plugin_react0.ReactFlatConfig>;
|
|
15261
|
+
flat: Record<string, _$eslint_plugin_react0.ReactFlatConfig>;
|
|
15003
15262
|
};
|
|
15004
15263
|
};
|
|
15005
15264
|
}>;
|
|
@@ -15052,7 +15311,7 @@ declare function importPluginReactRefresh(): Promise<{
|
|
|
15052
15311
|
};
|
|
15053
15312
|
}>;
|
|
15054
15313
|
declare function importPluginMarkdown(): Promise<{
|
|
15055
|
-
pluginMarkdown: typeof _eslint_markdown0.default;
|
|
15314
|
+
pluginMarkdown: typeof _$_eslint_markdown0.default;
|
|
15056
15315
|
}>;
|
|
15057
15316
|
declare function importPluginTsdoc(): Promise<{
|
|
15058
15317
|
pluginTsdoc: {
|
|
@@ -15063,8 +15322,8 @@ declare function importPluginTsdoc(): Promise<{
|
|
|
15063
15322
|
}>;
|
|
15064
15323
|
declare function importPluginStylistic(): Promise<{
|
|
15065
15324
|
pluginStylistic: {
|
|
15066
|
-
rules: _stylistic_eslint_plugin0.Rules;
|
|
15067
|
-
configs: eslint.ESLint.Plugin["configs"] & _stylistic_eslint_plugin0.Configs;
|
|
15325
|
+
rules: _$_stylistic_eslint_plugin0.Rules;
|
|
15326
|
+
configs: _$eslint.ESLint.Plugin["configs"] & _$_stylistic_eslint_plugin0.Configs;
|
|
15068
15327
|
};
|
|
15069
15328
|
}>;
|
|
15070
15329
|
//#endregion
|