@jsse/eslint-config 0.7.0 → 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 +6 -0
- package/dist/cli.js +1 -1
- package/dist/{const-DzlQZWYA.js → const-7b74P6Qm.js} +1 -1
- package/dist/index.d.ts +628 -369
- package/dist/index.js +1 -1
- package/package.json +21 -19
package/dist/index.d.ts
CHANGED
|
@@ -10,15 +10,15 @@ 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
20
|
//#region src/_generated/version.d.ts
|
|
21
|
-
declare const VERSION = "0.7.
|
|
21
|
+
declare const VERSION = "0.7.1";
|
|
22
22
|
//#endregion
|
|
23
23
|
//#region src/_generated/dts/builtins.d.ts
|
|
24
24
|
interface BuiltinsRuleOptions {
|
|
@@ -4528,6 +4528,11 @@ interface MarkdownRuleOptions {
|
|
|
4528
4528
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/fenced-code-language.md
|
|
4529
4529
|
*/
|
|
4530
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>;
|
|
4531
4536
|
/**
|
|
4532
4537
|
* Enforce heading levels increment by one
|
|
4533
4538
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/heading-increment.md
|
|
@@ -4628,13 +4633,15 @@ interface MarkdownRuleOptions {
|
|
|
4628
4633
|
// ----- markdown/fenced-code-language -----
|
|
4629
4634
|
type MarkdownFencedCodeLanguage = [] | [{
|
|
4630
4635
|
required?: string[];
|
|
4631
|
-
}]; // ----- markdown/
|
|
4636
|
+
}]; // ----- markdown/fenced-code-meta -----
|
|
4637
|
+
type MarkdownFencedCodeMeta = [] | ["always" | "never"]; // ----- markdown/heading-increment -----
|
|
4632
4638
|
type MarkdownHeadingIncrement = [] | [{
|
|
4633
4639
|
frontmatterTitle?: string;
|
|
4634
4640
|
}]; // ----- markdown/no-duplicate-definitions -----
|
|
4635
4641
|
type MarkdownNoDuplicateDefinitions = [] | [{
|
|
4636
4642
|
allowDefinitions?: string[];
|
|
4637
4643
|
allowFootnoteDefinitions?: string[];
|
|
4644
|
+
checkFootnoteDefinitions?: boolean;
|
|
4638
4645
|
}]; // ----- markdown/no-duplicate-headings -----
|
|
4639
4646
|
type MarkdownNoDuplicateHeadings = [] | [{
|
|
4640
4647
|
checkSiblingsOnly?: boolean;
|
|
@@ -4667,6 +4674,7 @@ type MarkdownNoSpaceInEmphasis = [] | [{
|
|
|
4667
4674
|
type MarkdownNoUnusedDefinitions = [] | [{
|
|
4668
4675
|
allowDefinitions?: string[];
|
|
4669
4676
|
allowFootnoteDefinitions?: string[];
|
|
4677
|
+
checkFootnoteDefinitions?: boolean;
|
|
4670
4678
|
}]; // ----- markdown/table-column-count -----
|
|
4671
4679
|
type MarkdownTableColumnCount = [] | [{
|
|
4672
4680
|
checkMissingCells?: boolean;
|
|
@@ -5156,6 +5164,11 @@ interface PerfectionistRuleOptions {
|
|
|
5156
5164
|
* @see https://perfectionist.dev/rules/sort-array-includes
|
|
5157
5165
|
*/
|
|
5158
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>;
|
|
5159
5172
|
/**
|
|
5160
5173
|
* Enforce sorted classes.
|
|
5161
5174
|
* @see https://perfectionist.dev/rules/sort-classes
|
|
@@ -5344,6 +5357,113 @@ type PerfectionistSortArrayIncludes = {
|
|
|
5344
5357
|
pattern: string;
|
|
5345
5358
|
flags?: string;
|
|
5346
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;
|
|
5347
5467
|
};
|
|
5348
5468
|
partitionByComment?: boolean | (({
|
|
5349
5469
|
pattern: string;
|
|
@@ -5369,7 +5489,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
5369
5489
|
};
|
|
5370
5490
|
partitionByNewLine?: boolean;
|
|
5371
5491
|
}[]; // ----- perfectionist/sort-classes -----
|
|
5372
|
-
type PerfectionistSortClasses =
|
|
5492
|
+
type PerfectionistSortClasses = {
|
|
5373
5493
|
fallbackSort?: {
|
|
5374
5494
|
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5375
5495
|
order?: "asc" | "desc";
|
|
@@ -5486,6 +5606,16 @@ type PerfectionistSortClasses = [] | [{
|
|
|
5486
5606
|
order?: "asc" | "desc";
|
|
5487
5607
|
})[];
|
|
5488
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
|
+
};
|
|
5489
5619
|
useExperimentalDependencyDetection?: boolean;
|
|
5490
5620
|
ignoreCallbackDependenciesPatterns?: ({
|
|
5491
5621
|
pattern: string;
|
|
@@ -5517,7 +5647,7 @@ type PerfectionistSortClasses = [] | [{
|
|
|
5517
5647
|
} | string));
|
|
5518
5648
|
};
|
|
5519
5649
|
partitionByNewLine?: boolean;
|
|
5520
|
-
}]; // ----- perfectionist/sort-decorators -----
|
|
5650
|
+
}[]; // ----- perfectionist/sort-decorators -----
|
|
5521
5651
|
type PerfectionistSortDecorators = {
|
|
5522
5652
|
fallbackSort?: {
|
|
5523
5653
|
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
@@ -5616,7 +5746,7 @@ type PerfectionistSortDecorators = {
|
|
|
5616
5746
|
};
|
|
5617
5747
|
partitionByNewLine?: boolean;
|
|
5618
5748
|
}[]; // ----- perfectionist/sort-enums -----
|
|
5619
|
-
type PerfectionistSortEnums =
|
|
5749
|
+
type PerfectionistSortEnums = {
|
|
5620
5750
|
fallbackSort?: {
|
|
5621
5751
|
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5622
5752
|
order?: "asc" | "desc";
|
|
@@ -5706,6 +5836,16 @@ type PerfectionistSortEnums = [] | [{
|
|
|
5706
5836
|
order?: "asc" | "desc";
|
|
5707
5837
|
})[];
|
|
5708
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
|
+
};
|
|
5709
5849
|
sortByValue?: "always" | "ifNumericEnum" | "never";
|
|
5710
5850
|
useExperimentalDependencyDetection?: boolean;
|
|
5711
5851
|
partitionByComment?: boolean | (({
|
|
@@ -5731,7 +5871,7 @@ type PerfectionistSortEnums = [] | [{
|
|
|
5731
5871
|
} | string));
|
|
5732
5872
|
};
|
|
5733
5873
|
partitionByNewLine?: boolean;
|
|
5734
|
-
}]; // ----- perfectionist/sort-export-attributes -----
|
|
5874
|
+
}[]; // ----- perfectionist/sort-export-attributes -----
|
|
5735
5875
|
type PerfectionistSortExportAttributes = {
|
|
5736
5876
|
fallbackSort?: {
|
|
5737
5877
|
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
@@ -5801,6 +5941,16 @@ type PerfectionistSortExportAttributes = {
|
|
|
5801
5941
|
order?: "asc" | "desc";
|
|
5802
5942
|
})[];
|
|
5803
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
|
+
};
|
|
5804
5954
|
partitionByComment?: boolean | (({
|
|
5805
5955
|
pattern: string;
|
|
5806
5956
|
flags?: string;
|
|
@@ -5993,6 +6143,16 @@ type PerfectionistSortHeritageClauses = {
|
|
|
5993
6143
|
order?: "asc" | "desc";
|
|
5994
6144
|
})[];
|
|
5995
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
|
+
};
|
|
5996
6156
|
partitionByNewLine?: boolean;
|
|
5997
6157
|
partitionByComment?: boolean | (({
|
|
5998
6158
|
pattern: string;
|
|
@@ -6086,6 +6246,16 @@ type PerfectionistSortImportAttributes = {
|
|
|
6086
6246
|
order?: "asc" | "desc";
|
|
6087
6247
|
})[];
|
|
6088
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
|
+
};
|
|
6089
6259
|
partitionByComment?: boolean | (({
|
|
6090
6260
|
pattern: string;
|
|
6091
6261
|
flags?: string;
|
|
@@ -6354,6 +6524,7 @@ type PerfectionistSortInterfaces = {
|
|
|
6354
6524
|
pattern: string;
|
|
6355
6525
|
flags?: string;
|
|
6356
6526
|
} | string);
|
|
6527
|
+
matchesAstSelector?: string;
|
|
6357
6528
|
declarationMatchesPattern?: ({
|
|
6358
6529
|
scope?: "shallow" | "deep";
|
|
6359
6530
|
pattern: string;
|
|
@@ -6460,6 +6631,16 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
6460
6631
|
order?: "asc" | "desc";
|
|
6461
6632
|
})[];
|
|
6462
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
|
+
};
|
|
6463
6644
|
partitionByComment?: boolean | (({
|
|
6464
6645
|
pattern: string;
|
|
6465
6646
|
flags?: string;
|
|
@@ -6588,6 +6769,7 @@ type PerfectionistSortJsxProps = {
|
|
|
6588
6769
|
pattern: string;
|
|
6589
6770
|
flags?: string;
|
|
6590
6771
|
} | string);
|
|
6772
|
+
matchesAstSelector?: string;
|
|
6591
6773
|
tagMatchesPattern?: ({
|
|
6592
6774
|
pattern: string;
|
|
6593
6775
|
flags?: string;
|
|
@@ -6675,6 +6857,7 @@ type PerfectionistSortMaps = {
|
|
|
6675
6857
|
pattern: string;
|
|
6676
6858
|
flags?: string;
|
|
6677
6859
|
} | string);
|
|
6860
|
+
matchesAstSelector?: string;
|
|
6678
6861
|
};
|
|
6679
6862
|
partitionByComment?: boolean | (({
|
|
6680
6863
|
pattern: string;
|
|
@@ -6896,6 +7079,16 @@ type PerfectionistSortNamedExports = {
|
|
|
6896
7079
|
order?: "asc" | "desc";
|
|
6897
7080
|
})[];
|
|
6898
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
|
+
};
|
|
6899
7092
|
ignoreAlias?: boolean;
|
|
6900
7093
|
partitionByComment?: boolean | (({
|
|
6901
7094
|
pattern: string;
|
|
@@ -6996,6 +7189,16 @@ type PerfectionistSortNamedImports = {
|
|
|
6996
7189
|
order?: "asc" | "desc";
|
|
6997
7190
|
})[];
|
|
6998
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
|
+
};
|
|
6999
7202
|
ignoreAlias?: boolean;
|
|
7000
7203
|
partitionByComment?: boolean | (({
|
|
7001
7204
|
pattern: string;
|
|
@@ -7143,6 +7346,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
7143
7346
|
pattern: string;
|
|
7144
7347
|
flags?: string;
|
|
7145
7348
|
} | string);
|
|
7349
|
+
matchesAstSelector?: string;
|
|
7146
7350
|
declarationMatchesPattern?: ({
|
|
7147
7351
|
scope?: "shallow" | "deep";
|
|
7148
7352
|
pattern: string;
|
|
@@ -7309,6 +7513,7 @@ type PerfectionistSortObjects = {
|
|
|
7309
7513
|
pattern: string;
|
|
7310
7514
|
flags?: string;
|
|
7311
7515
|
} | string);
|
|
7516
|
+
matchesAstSelector?: string;
|
|
7312
7517
|
declarationMatchesPattern?: ({
|
|
7313
7518
|
scope?: "shallow" | "deep";
|
|
7314
7519
|
pattern: string;
|
|
@@ -7319,6 +7524,7 @@ type PerfectionistSortObjects = {
|
|
|
7319
7524
|
flags?: string;
|
|
7320
7525
|
} | string);
|
|
7321
7526
|
};
|
|
7527
|
+
partitionByComputedKey?: boolean;
|
|
7322
7528
|
styledComponents?: boolean;
|
|
7323
7529
|
useExperimentalDependencyDetection?: boolean;
|
|
7324
7530
|
partitionByComment?: boolean | (({
|
|
@@ -7425,6 +7631,7 @@ type PerfectionistSortSets = {
|
|
|
7425
7631
|
pattern: string;
|
|
7426
7632
|
flags?: string;
|
|
7427
7633
|
} | string);
|
|
7634
|
+
matchesAstSelector?: string;
|
|
7428
7635
|
};
|
|
7429
7636
|
partitionByComment?: boolean | (({
|
|
7430
7637
|
pattern: string;
|
|
@@ -7534,6 +7741,16 @@ type PerfectionistSortUnionTypes = {
|
|
|
7534
7741
|
order?: "asc" | "desc";
|
|
7535
7742
|
})[];
|
|
7536
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
|
+
};
|
|
7537
7754
|
partitionByComment?: boolean | (({
|
|
7538
7755
|
pattern: string;
|
|
7539
7756
|
flags?: string;
|
|
@@ -7558,7 +7775,7 @@ type PerfectionistSortUnionTypes = {
|
|
|
7558
7775
|
};
|
|
7559
7776
|
partitionByNewLine?: boolean;
|
|
7560
7777
|
}[]; // ----- perfectionist/sort-variable-declarations -----
|
|
7561
|
-
type PerfectionistSortVariableDeclarations =
|
|
7778
|
+
type PerfectionistSortVariableDeclarations = {
|
|
7562
7779
|
fallbackSort?: {
|
|
7563
7780
|
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7564
7781
|
order?: "asc" | "desc";
|
|
@@ -7630,6 +7847,16 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
7630
7847
|
order?: "asc" | "desc";
|
|
7631
7848
|
})[];
|
|
7632
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
|
+
};
|
|
7633
7860
|
useExperimentalDependencyDetection?: boolean;
|
|
7634
7861
|
partitionByComment?: boolean | (({
|
|
7635
7862
|
pattern: string;
|
|
@@ -7654,7 +7881,7 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
7654
7881
|
} | string));
|
|
7655
7882
|
};
|
|
7656
7883
|
partitionByNewLine?: boolean;
|
|
7657
|
-
}];
|
|
7884
|
+
}[];
|
|
7658
7885
|
//#endregion
|
|
7659
7886
|
//#region src/_generated/dts/pnpm.d.ts
|
|
7660
7887
|
interface PnpmRuleOptions {
|
|
@@ -12637,730 +12864,750 @@ type ImportPreferDefaultExport = [] | [{
|
|
|
12637
12864
|
interface UnicornRuleOptions {
|
|
12638
12865
|
/**
|
|
12639
12866
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
12640
|
-
* @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
|
|
12641
12868
|
*/
|
|
12642
12869
|
"unicorn/better-regex"?: Linter.RuleEntry<UnicornBetterRegex>;
|
|
12643
12870
|
/**
|
|
12644
12871
|
* Enforce a specific parameter name in catch clauses.
|
|
12645
|
-
* @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
|
|
12646
12873
|
*/
|
|
12647
12874
|
"unicorn/catch-error-name"?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
12648
12875
|
/**
|
|
12649
12876
|
* Enforce consistent assertion style with `node:assert`.
|
|
12650
|
-
* @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
|
|
12651
12878
|
*/
|
|
12652
12879
|
"unicorn/consistent-assert"?: Linter.RuleEntry<[]>;
|
|
12653
12880
|
/**
|
|
12654
12881
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
12655
|
-
* @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
|
|
12656
12883
|
*/
|
|
12657
12884
|
"unicorn/consistent-date-clone"?: Linter.RuleEntry<[]>;
|
|
12658
12885
|
/**
|
|
12659
12886
|
* Use destructured variables over properties.
|
|
12660
|
-
* @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
|
|
12661
12888
|
*/
|
|
12662
12889
|
"unicorn/consistent-destructuring"?: Linter.RuleEntry<[]>;
|
|
12663
12890
|
/**
|
|
12664
12891
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
12665
|
-
* @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
|
|
12666
12893
|
*/
|
|
12667
12894
|
"unicorn/consistent-empty-array-spread"?: Linter.RuleEntry<[]>;
|
|
12668
12895
|
/**
|
|
12669
12896
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
12670
|
-
* @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
|
|
12671
12898
|
*/
|
|
12672
12899
|
"unicorn/consistent-existence-index-check"?: Linter.RuleEntry<[]>;
|
|
12673
12900
|
/**
|
|
12674
12901
|
* Move function definitions to the highest possible scope.
|
|
12675
|
-
* @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
|
|
12676
12903
|
*/
|
|
12677
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<[]>;
|
|
12678
12910
|
/**
|
|
12679
12911
|
* Enforce correct `Error` subclassing.
|
|
12680
|
-
* @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
|
|
12681
12913
|
*/
|
|
12682
12914
|
"unicorn/custom-error-definition"?: Linter.RuleEntry<[]>;
|
|
12683
12915
|
/**
|
|
12684
12916
|
* Enforce no spaces between braces.
|
|
12685
|
-
* @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
|
|
12686
12918
|
*/
|
|
12687
12919
|
"unicorn/empty-brace-spaces"?: Linter.RuleEntry<[]>;
|
|
12688
12920
|
/**
|
|
12689
12921
|
* Enforce passing a `message` value when creating a built-in error.
|
|
12690
|
-
* @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
|
|
12691
12923
|
*/
|
|
12692
12924
|
"unicorn/error-message"?: Linter.RuleEntry<[]>;
|
|
12693
12925
|
/**
|
|
12694
12926
|
* Require escape sequences to use uppercase or lowercase values.
|
|
12695
|
-
* @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
|
|
12696
12928
|
*/
|
|
12697
12929
|
"unicorn/escape-case"?: Linter.RuleEntry<UnicornEscapeCase>;
|
|
12698
12930
|
/**
|
|
12699
12931
|
* Add expiration conditions to TODO comments.
|
|
12700
|
-
* @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
|
|
12701
12933
|
*/
|
|
12702
12934
|
"unicorn/expiring-todo-comments"?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
12703
12935
|
/**
|
|
12704
12936
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
12705
|
-
* @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
|
|
12706
12938
|
*/
|
|
12707
12939
|
"unicorn/explicit-length-check"?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
12708
12940
|
/**
|
|
12709
12941
|
* Enforce a case style for filenames.
|
|
12710
|
-
* @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
|
|
12711
12943
|
*/
|
|
12712
12944
|
"unicorn/filename-case"?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
12713
12945
|
/**
|
|
12714
12946
|
* Enforce specific import styles per module.
|
|
12715
|
-
* @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
|
|
12716
12948
|
*/
|
|
12717
12949
|
"unicorn/import-style"?: Linter.RuleEntry<UnicornImportStyle>;
|
|
12718
12950
|
/**
|
|
12719
12951
|
* Prevent usage of variables from outside the scope of isolated functions.
|
|
12720
|
-
* @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
|
|
12721
12953
|
*/
|
|
12722
12954
|
"unicorn/isolated-functions"?: Linter.RuleEntry<UnicornIsolatedFunctions>;
|
|
12723
12955
|
/**
|
|
12724
12956
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
12725
|
-
* @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
|
|
12726
12958
|
*/
|
|
12727
12959
|
"unicorn/new-for-builtins"?: Linter.RuleEntry<[]>;
|
|
12728
12960
|
/**
|
|
12729
12961
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
12730
|
-
* @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
|
|
12731
12963
|
*/
|
|
12732
12964
|
"unicorn/no-abusive-eslint-disable"?: Linter.RuleEntry<[]>;
|
|
12733
12965
|
/**
|
|
12734
12966
|
* Disallow recursive access to `this` within getters and setters.
|
|
12735
|
-
* @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
|
|
12736
12968
|
*/
|
|
12737
12969
|
"unicorn/no-accessor-recursion"?: Linter.RuleEntry<[]>;
|
|
12738
12970
|
/**
|
|
12739
12971
|
* Disallow anonymous functions and classes as the default export.
|
|
12740
|
-
* @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
|
|
12741
12973
|
*/
|
|
12742
12974
|
"unicorn/no-anonymous-default-export"?: Linter.RuleEntry<[]>;
|
|
12743
12975
|
/**
|
|
12744
12976
|
* Prevent passing a function reference directly to iterator methods.
|
|
12745
|
-
* @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
|
|
12746
12978
|
*/
|
|
12747
12979
|
"unicorn/no-array-callback-reference"?: Linter.RuleEntry<[]>;
|
|
12748
12980
|
/**
|
|
12749
12981
|
* Prefer `for…of` over the `forEach` method.
|
|
12750
|
-
* @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
|
|
12751
12983
|
*/
|
|
12752
12984
|
"unicorn/no-array-for-each"?: Linter.RuleEntry<[]>;
|
|
12753
12985
|
/**
|
|
12754
12986
|
* Disallow using the `this` argument in array methods.
|
|
12755
|
-
* @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
|
|
12756
12988
|
*/
|
|
12757
12989
|
"unicorn/no-array-method-this-argument"?: Linter.RuleEntry<[]>;
|
|
12758
12990
|
/**
|
|
12759
12991
|
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
12760
|
-
* @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
|
|
12761
12993
|
* @deprecated
|
|
12762
12994
|
*/
|
|
12763
12995
|
"unicorn/no-array-push-push"?: Linter.RuleEntry<[]>;
|
|
12764
12996
|
/**
|
|
12765
12997
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
12766
|
-
* @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
|
|
12767
12999
|
*/
|
|
12768
13000
|
"unicorn/no-array-reduce"?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
12769
13001
|
/**
|
|
12770
13002
|
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
12771
|
-
* @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
|
|
12772
13004
|
*/
|
|
12773
13005
|
"unicorn/no-array-reverse"?: Linter.RuleEntry<UnicornNoArrayReverse>;
|
|
12774
13006
|
/**
|
|
12775
13007
|
* Prefer `Array#toSorted()` over `Array#sort()`.
|
|
12776
|
-
* @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
|
|
12777
13009
|
*/
|
|
12778
13010
|
"unicorn/no-array-sort"?: Linter.RuleEntry<UnicornNoArraySort>;
|
|
12779
13011
|
/**
|
|
12780
13012
|
* Disallow member access from await expression.
|
|
12781
|
-
* @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
|
|
12782
13014
|
*/
|
|
12783
13015
|
"unicorn/no-await-expression-member"?: Linter.RuleEntry<[]>;
|
|
12784
13016
|
/**
|
|
12785
13017
|
* Disallow using `await` in `Promise` method parameters.
|
|
12786
|
-
* @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
|
|
12787
13019
|
*/
|
|
12788
13020
|
"unicorn/no-await-in-promise-methods"?: Linter.RuleEntry<[]>;
|
|
12789
13021
|
/**
|
|
12790
13022
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
12791
|
-
* @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
|
|
12792
13024
|
*/
|
|
12793
13025
|
"unicorn/no-console-spaces"?: Linter.RuleEntry<[]>;
|
|
12794
13026
|
/**
|
|
12795
13027
|
* Do not use `document.cookie` directly.
|
|
12796
|
-
* @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
|
|
12797
13029
|
*/
|
|
12798
13030
|
"unicorn/no-document-cookie"?: Linter.RuleEntry<[]>;
|
|
12799
13031
|
/**
|
|
12800
13032
|
* Disallow empty files.
|
|
12801
|
-
* @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
|
|
12802
13034
|
*/
|
|
12803
13035
|
"unicorn/no-empty-file"?: Linter.RuleEntry<[]>;
|
|
12804
13036
|
/**
|
|
12805
13037
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
12806
|
-
* @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
|
|
12807
13039
|
*/
|
|
12808
13040
|
"unicorn/no-for-loop"?: Linter.RuleEntry<[]>;
|
|
12809
13041
|
/**
|
|
12810
13042
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
12811
|
-
* @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
|
|
12812
13044
|
*/
|
|
12813
13045
|
"unicorn/no-hex-escape"?: Linter.RuleEntry<[]>;
|
|
12814
13046
|
/**
|
|
12815
13047
|
* Disallow immediate mutation after variable assignment.
|
|
12816
|
-
* @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
|
|
12817
13049
|
*/
|
|
12818
13050
|
"unicorn/no-immediate-mutation"?: Linter.RuleEntry<[]>;
|
|
12819
13051
|
/**
|
|
12820
13052
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
12821
|
-
* @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
|
|
12822
13054
|
* @deprecated
|
|
12823
13055
|
*/
|
|
12824
13056
|
"unicorn/no-instanceof-array"?: Linter.RuleEntry<[]>;
|
|
12825
13057
|
/**
|
|
12826
13058
|
* Disallow `instanceof` with built-in objects
|
|
12827
|
-
* @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
|
|
12828
13060
|
*/
|
|
12829
13061
|
"unicorn/no-instanceof-builtins"?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
|
|
12830
13062
|
/**
|
|
12831
13063
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
12832
|
-
* @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
|
|
12833
13065
|
*/
|
|
12834
13066
|
"unicorn/no-invalid-fetch-options"?: Linter.RuleEntry<[]>;
|
|
12835
13067
|
/**
|
|
12836
13068
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
12837
|
-
* @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
|
|
12838
13070
|
*/
|
|
12839
13071
|
"unicorn/no-invalid-remove-event-listener"?: Linter.RuleEntry<[]>;
|
|
12840
13072
|
/**
|
|
12841
13073
|
* Disallow identifiers starting with `new` or `class`.
|
|
12842
|
-
* @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
|
|
12843
13075
|
*/
|
|
12844
13076
|
"unicorn/no-keyword-prefix"?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
12845
13077
|
/**
|
|
12846
13078
|
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
12847
|
-
* @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
|
|
12848
13080
|
* @deprecated
|
|
12849
13081
|
*/
|
|
12850
13082
|
"unicorn/no-length-as-slice-end"?: Linter.RuleEntry<[]>;
|
|
12851
13083
|
/**
|
|
12852
13084
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
12853
|
-
* @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
|
|
12854
13086
|
*/
|
|
12855
13087
|
"unicorn/no-lonely-if"?: Linter.RuleEntry<[]>;
|
|
12856
13088
|
/**
|
|
12857
13089
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
12858
|
-
* @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
|
|
12859
13091
|
*/
|
|
12860
13092
|
"unicorn/no-magic-array-flat-depth"?: Linter.RuleEntry<[]>;
|
|
12861
13093
|
/**
|
|
12862
13094
|
* Disallow named usage of default import and export.
|
|
12863
|
-
* @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
|
|
12864
13096
|
*/
|
|
12865
13097
|
"unicorn/no-named-default"?: Linter.RuleEntry<[]>;
|
|
12866
13098
|
/**
|
|
12867
13099
|
* Disallow negated conditions.
|
|
12868
|
-
* @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
|
|
12869
13101
|
*/
|
|
12870
13102
|
"unicorn/no-negated-condition"?: Linter.RuleEntry<[]>;
|
|
12871
13103
|
/**
|
|
12872
13104
|
* Disallow negated expression in equality check.
|
|
12873
|
-
* @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
|
|
12874
13106
|
*/
|
|
12875
13107
|
"unicorn/no-negation-in-equality-check"?: Linter.RuleEntry<[]>;
|
|
12876
13108
|
/**
|
|
12877
13109
|
* Disallow nested ternary expressions.
|
|
12878
|
-
* @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
|
|
12879
13111
|
*/
|
|
12880
13112
|
"unicorn/no-nested-ternary"?: Linter.RuleEntry<[]>;
|
|
12881
13113
|
/**
|
|
12882
13114
|
* Disallow `new Array()`.
|
|
12883
|
-
* @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
|
|
12884
13116
|
*/
|
|
12885
13117
|
"unicorn/no-new-array"?: Linter.RuleEntry<[]>;
|
|
12886
13118
|
/**
|
|
12887
13119
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
12888
|
-
* @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
|
|
12889
13121
|
*/
|
|
12890
13122
|
"unicorn/no-new-buffer"?: Linter.RuleEntry<[]>;
|
|
12891
13123
|
/**
|
|
12892
13124
|
* Disallow the use of the `null` literal.
|
|
12893
|
-
* @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
|
|
12894
13126
|
*/
|
|
12895
13127
|
"unicorn/no-null"?: Linter.RuleEntry<UnicornNoNull>;
|
|
12896
13128
|
/**
|
|
12897
13129
|
* Disallow the use of objects as default parameters.
|
|
12898
|
-
* @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
|
|
12899
13131
|
*/
|
|
12900
13132
|
"unicorn/no-object-as-default-parameter"?: Linter.RuleEntry<[]>;
|
|
12901
13133
|
/**
|
|
12902
13134
|
* Disallow `process.exit()`.
|
|
12903
|
-
* @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
|
|
12904
13136
|
*/
|
|
12905
13137
|
"unicorn/no-process-exit"?: Linter.RuleEntry<[]>;
|
|
12906
13138
|
/**
|
|
12907
13139
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
12908
|
-
* @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
|
|
12909
13141
|
*/
|
|
12910
13142
|
"unicorn/no-single-promise-in-promise-methods"?: Linter.RuleEntry<[]>;
|
|
12911
13143
|
/**
|
|
12912
13144
|
* Disallow classes that only have static members.
|
|
12913
|
-
* @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
|
|
12914
13146
|
*/
|
|
12915
13147
|
"unicorn/no-static-only-class"?: Linter.RuleEntry<[]>;
|
|
12916
13148
|
/**
|
|
12917
13149
|
* Disallow `then` property.
|
|
12918
|
-
* @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
|
|
12919
13151
|
*/
|
|
12920
13152
|
"unicorn/no-thenable"?: Linter.RuleEntry<[]>;
|
|
12921
13153
|
/**
|
|
12922
13154
|
* Disallow assigning `this` to a variable.
|
|
12923
|
-
* @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
|
|
12924
13156
|
*/
|
|
12925
13157
|
"unicorn/no-this-assignment"?: Linter.RuleEntry<[]>;
|
|
12926
13158
|
/**
|
|
12927
13159
|
* Disallow comparing `undefined` using `typeof`.
|
|
12928
|
-
* @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
|
|
12929
13161
|
*/
|
|
12930
13162
|
"unicorn/no-typeof-undefined"?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
12931
13163
|
/**
|
|
12932
13164
|
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
12933
|
-
* @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
|
|
12934
13166
|
*/
|
|
12935
13167
|
"unicorn/no-unnecessary-array-flat-depth"?: Linter.RuleEntry<[]>;
|
|
12936
13168
|
/**
|
|
12937
13169
|
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
12938
|
-
* @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
|
|
12939
13171
|
*/
|
|
12940
13172
|
"unicorn/no-unnecessary-array-splice-count"?: Linter.RuleEntry<[]>;
|
|
12941
13173
|
/**
|
|
12942
13174
|
* Disallow awaiting non-promise values.
|
|
12943
|
-
* @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
|
|
12944
13176
|
*/
|
|
12945
13177
|
"unicorn/no-unnecessary-await"?: Linter.RuleEntry<[]>;
|
|
12946
13178
|
/**
|
|
12947
13179
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
12948
|
-
* @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
|
|
12949
13181
|
*/
|
|
12950
13182
|
"unicorn/no-unnecessary-polyfills"?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
12951
13183
|
/**
|
|
12952
13184
|
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
12953
|
-
* @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
|
|
12954
13186
|
*/
|
|
12955
13187
|
"unicorn/no-unnecessary-slice-end"?: Linter.RuleEntry<[]>;
|
|
12956
13188
|
/**
|
|
12957
13189
|
* Disallow unreadable array destructuring.
|
|
12958
|
-
* @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
|
|
12959
13191
|
*/
|
|
12960
13192
|
"unicorn/no-unreadable-array-destructuring"?: Linter.RuleEntry<[]>;
|
|
12961
13193
|
/**
|
|
12962
13194
|
* Disallow unreadable IIFEs.
|
|
12963
|
-
* @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
|
|
12964
13196
|
*/
|
|
12965
13197
|
"unicorn/no-unreadable-iife"?: Linter.RuleEntry<[]>;
|
|
12966
13198
|
/**
|
|
12967
13199
|
* Disallow unused object properties.
|
|
12968
|
-
* @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
|
|
12969
13201
|
*/
|
|
12970
13202
|
"unicorn/no-unused-properties"?: Linter.RuleEntry<[]>;
|
|
12971
13203
|
/**
|
|
12972
13204
|
* Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
|
|
12973
|
-
* @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
|
|
12974
13206
|
*/
|
|
12975
13207
|
"unicorn/no-useless-collection-argument"?: Linter.RuleEntry<[]>;
|
|
12976
13208
|
/**
|
|
12977
13209
|
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
12978
|
-
* @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
|
|
12979
13211
|
*/
|
|
12980
13212
|
"unicorn/no-useless-error-capture-stack-trace"?: Linter.RuleEntry<[]>;
|
|
12981
13213
|
/**
|
|
12982
13214
|
* Disallow useless fallback when spreading in object literals.
|
|
12983
|
-
* @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
|
|
12984
13216
|
*/
|
|
12985
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<[]>;
|
|
12986
13223
|
/**
|
|
12987
13224
|
* Disallow useless array length check.
|
|
12988
|
-
* @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
|
|
12989
13226
|
*/
|
|
12990
13227
|
"unicorn/no-useless-length-check"?: Linter.RuleEntry<[]>;
|
|
12991
13228
|
/**
|
|
12992
13229
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
12993
|
-
* @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
|
|
12994
13231
|
*/
|
|
12995
13232
|
"unicorn/no-useless-promise-resolve-reject"?: Linter.RuleEntry<[]>;
|
|
12996
13233
|
/**
|
|
12997
13234
|
* Disallow unnecessary spread.
|
|
12998
|
-
* @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
|
|
12999
13236
|
*/
|
|
13000
13237
|
"unicorn/no-useless-spread"?: Linter.RuleEntry<[]>;
|
|
13001
13238
|
/**
|
|
13002
13239
|
* Disallow useless case in switch statements.
|
|
13003
|
-
* @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
|
|
13004
13241
|
*/
|
|
13005
13242
|
"unicorn/no-useless-switch-case"?: Linter.RuleEntry<[]>;
|
|
13006
13243
|
/**
|
|
13007
13244
|
* Disallow useless `undefined`.
|
|
13008
|
-
* @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
|
|
13009
13246
|
*/
|
|
13010
13247
|
"unicorn/no-useless-undefined"?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
13011
13248
|
/**
|
|
13012
13249
|
* Disallow number literals with zero fractions or dangling dots.
|
|
13013
|
-
* @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
|
|
13014
13251
|
*/
|
|
13015
13252
|
"unicorn/no-zero-fractions"?: Linter.RuleEntry<[]>;
|
|
13016
13253
|
/**
|
|
13017
13254
|
* Enforce proper case for numeric literals.
|
|
13018
|
-
* @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
|
|
13019
13256
|
*/
|
|
13020
13257
|
"unicorn/number-literal-case"?: Linter.RuleEntry<UnicornNumberLiteralCase>;
|
|
13021
13258
|
/**
|
|
13022
13259
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
13023
|
-
* @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
|
|
13024
13261
|
*/
|
|
13025
13262
|
"unicorn/numeric-separators-style"?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
13026
13263
|
/**
|
|
13027
13264
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
13028
|
-
* @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
|
|
13029
13266
|
*/
|
|
13030
13267
|
"unicorn/prefer-add-event-listener"?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
13031
13268
|
/**
|
|
13032
13269
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
13033
|
-
* @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
|
|
13034
13271
|
*/
|
|
13035
13272
|
"unicorn/prefer-array-find"?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
13036
13273
|
/**
|
|
13037
13274
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
13038
|
-
* @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
|
|
13039
13276
|
*/
|
|
13040
13277
|
"unicorn/prefer-array-flat"?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
13041
13278
|
/**
|
|
13042
13279
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
13043
|
-
* @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
|
|
13044
13281
|
*/
|
|
13045
13282
|
"unicorn/prefer-array-flat-map"?: Linter.RuleEntry<[]>;
|
|
13046
13283
|
/**
|
|
13047
13284
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
13048
|
-
* @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
|
|
13049
13286
|
*/
|
|
13050
13287
|
"unicorn/prefer-array-index-of"?: Linter.RuleEntry<[]>;
|
|
13051
13288
|
/**
|
|
13052
13289
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
13053
|
-
* @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
|
|
13054
13291
|
*/
|
|
13055
13292
|
"unicorn/prefer-array-some"?: Linter.RuleEntry<[]>;
|
|
13056
13293
|
/**
|
|
13057
13294
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
13058
|
-
* @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
|
|
13059
13296
|
*/
|
|
13060
13297
|
"unicorn/prefer-at"?: Linter.RuleEntry<UnicornPreferAt>;
|
|
13061
13298
|
/**
|
|
13062
13299
|
* Prefer `BigInt` literals over the constructor.
|
|
13063
|
-
* @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
|
|
13064
13301
|
*/
|
|
13065
13302
|
"unicorn/prefer-bigint-literals"?: Linter.RuleEntry<[]>;
|
|
13066
13303
|
/**
|
|
13067
13304
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
13068
|
-
* @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
|
|
13069
13306
|
*/
|
|
13070
13307
|
"unicorn/prefer-blob-reading-methods"?: Linter.RuleEntry<[]>;
|
|
13071
13308
|
/**
|
|
13072
13309
|
* Prefer class field declarations over `this` assignments in constructors.
|
|
13073
|
-
* @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
|
|
13074
13311
|
*/
|
|
13075
13312
|
"unicorn/prefer-class-fields"?: Linter.RuleEntry<[]>;
|
|
13076
13313
|
/**
|
|
13077
13314
|
* Prefer using `Element#classList.toggle()` to toggle class names.
|
|
13078
|
-
* @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
|
|
13079
13316
|
*/
|
|
13080
13317
|
"unicorn/prefer-classlist-toggle"?: Linter.RuleEntry<[]>;
|
|
13081
13318
|
/**
|
|
13082
13319
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
13083
|
-
* @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
|
|
13084
13321
|
*/
|
|
13085
13322
|
"unicorn/prefer-code-point"?: Linter.RuleEntry<[]>;
|
|
13086
13323
|
/**
|
|
13087
13324
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
13088
|
-
* @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
|
|
13089
13326
|
*/
|
|
13090
13327
|
"unicorn/prefer-date-now"?: Linter.RuleEntry<[]>;
|
|
13091
13328
|
/**
|
|
13092
13329
|
* Prefer default parameters over reassignment.
|
|
13093
|
-
* @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
|
|
13094
13331
|
*/
|
|
13095
13332
|
"unicorn/prefer-default-parameters"?: Linter.RuleEntry<[]>;
|
|
13096
13333
|
/**
|
|
13097
13334
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
13098
|
-
* @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
|
|
13099
13336
|
*/
|
|
13100
13337
|
"unicorn/prefer-dom-node-append"?: Linter.RuleEntry<[]>;
|
|
13101
13338
|
/**
|
|
13102
13339
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
13103
|
-
* @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
|
|
13104
13341
|
*/
|
|
13105
13342
|
"unicorn/prefer-dom-node-dataset"?: Linter.RuleEntry<[]>;
|
|
13106
13343
|
/**
|
|
13107
13344
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
13108
|
-
* @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
|
|
13109
13346
|
*/
|
|
13110
13347
|
"unicorn/prefer-dom-node-remove"?: Linter.RuleEntry<[]>;
|
|
13111
13348
|
/**
|
|
13112
13349
|
* Prefer `.textContent` over `.innerText`.
|
|
13113
|
-
* @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
|
|
13114
13351
|
*/
|
|
13115
13352
|
"unicorn/prefer-dom-node-text-content"?: Linter.RuleEntry<[]>;
|
|
13116
13353
|
/**
|
|
13117
13354
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
13118
|
-
* @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
|
|
13119
13356
|
*/
|
|
13120
13357
|
"unicorn/prefer-event-target"?: Linter.RuleEntry<[]>;
|
|
13121
13358
|
/**
|
|
13122
13359
|
* Prefer `export…from` when re-exporting.
|
|
13123
|
-
* @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
|
|
13124
13361
|
*/
|
|
13125
13362
|
"unicorn/prefer-export-from"?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
13126
13363
|
/**
|
|
13127
13364
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
13128
|
-
* @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
|
|
13129
13366
|
*/
|
|
13130
13367
|
"unicorn/prefer-global-this"?: Linter.RuleEntry<[]>;
|
|
13131
13368
|
/**
|
|
13132
13369
|
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
13133
|
-
* @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
|
|
13134
13371
|
*/
|
|
13135
13372
|
"unicorn/prefer-import-meta-properties"?: Linter.RuleEntry<[]>;
|
|
13136
13373
|
/**
|
|
13137
13374
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
13138
|
-
* @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
|
|
13139
13376
|
*/
|
|
13140
13377
|
"unicorn/prefer-includes"?: Linter.RuleEntry<[]>;
|
|
13141
13378
|
/**
|
|
13142
13379
|
* Prefer reading a JSON file as a buffer.
|
|
13143
|
-
* @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
|
|
13144
13381
|
*/
|
|
13145
13382
|
"unicorn/prefer-json-parse-buffer"?: Linter.RuleEntry<[]>;
|
|
13146
13383
|
/**
|
|
13147
13384
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
13148
|
-
* @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
|
|
13149
13386
|
*/
|
|
13150
13387
|
"unicorn/prefer-keyboard-event-key"?: Linter.RuleEntry<[]>;
|
|
13151
13388
|
/**
|
|
13152
13389
|
* Prefer using a logical operator over a ternary.
|
|
13153
|
-
* @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
|
|
13154
13391
|
*/
|
|
13155
13392
|
"unicorn/prefer-logical-operator-over-ternary"?: Linter.RuleEntry<[]>;
|
|
13156
13393
|
/**
|
|
13157
13394
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
13158
|
-
* @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
|
|
13159
13396
|
*/
|
|
13160
13397
|
"unicorn/prefer-math-min-max"?: Linter.RuleEntry<[]>;
|
|
13161
13398
|
/**
|
|
13162
13399
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
13163
|
-
* @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
|
|
13164
13401
|
*/
|
|
13165
13402
|
"unicorn/prefer-math-trunc"?: Linter.RuleEntry<[]>;
|
|
13166
13403
|
/**
|
|
13167
13404
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
13168
|
-
* @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
|
|
13169
13406
|
*/
|
|
13170
13407
|
"unicorn/prefer-modern-dom-apis"?: Linter.RuleEntry<[]>;
|
|
13171
13408
|
/**
|
|
13172
13409
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
13173
|
-
* @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
|
|
13174
13411
|
*/
|
|
13175
13412
|
"unicorn/prefer-modern-math-apis"?: Linter.RuleEntry<[]>;
|
|
13176
13413
|
/**
|
|
13177
13414
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
13178
|
-
* @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
|
|
13179
13416
|
*/
|
|
13180
13417
|
"unicorn/prefer-module"?: Linter.RuleEntry<[]>;
|
|
13181
13418
|
/**
|
|
13182
13419
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
13183
|
-
* @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
|
|
13184
13421
|
*/
|
|
13185
13422
|
"unicorn/prefer-native-coercion-functions"?: Linter.RuleEntry<[]>;
|
|
13186
13423
|
/**
|
|
13187
13424
|
* Prefer negative index over `.length - index` when possible.
|
|
13188
|
-
* @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
|
|
13189
13426
|
*/
|
|
13190
13427
|
"unicorn/prefer-negative-index"?: Linter.RuleEntry<[]>;
|
|
13191
13428
|
/**
|
|
13192
13429
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
13193
|
-
* @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
|
|
13194
13431
|
*/
|
|
13195
13432
|
"unicorn/prefer-node-protocol"?: Linter.RuleEntry<[]>;
|
|
13196
13433
|
/**
|
|
13197
13434
|
* Prefer `Number` static properties over global ones.
|
|
13198
|
-
* @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
|
|
13199
13436
|
*/
|
|
13200
13437
|
"unicorn/prefer-number-properties"?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
13201
13438
|
/**
|
|
13202
13439
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
13203
|
-
* @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
|
|
13204
13441
|
*/
|
|
13205
13442
|
"unicorn/prefer-object-from-entries"?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
13206
13443
|
/**
|
|
13207
13444
|
* Prefer omitting the `catch` binding parameter.
|
|
13208
|
-
* @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
|
|
13209
13446
|
*/
|
|
13210
13447
|
"unicorn/prefer-optional-catch-binding"?: Linter.RuleEntry<[]>;
|
|
13211
13448
|
/**
|
|
13212
13449
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
13213
|
-
* @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
|
|
13214
13451
|
*/
|
|
13215
13452
|
"unicorn/prefer-prototype-methods"?: Linter.RuleEntry<[]>;
|
|
13216
13453
|
/**
|
|
13217
13454
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
13218
|
-
* @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
|
|
13219
13456
|
*/
|
|
13220
13457
|
"unicorn/prefer-query-selector"?: Linter.RuleEntry<[]>;
|
|
13221
13458
|
/**
|
|
13222
13459
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
13223
|
-
* @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
|
|
13224
13461
|
*/
|
|
13225
13462
|
"unicorn/prefer-reflect-apply"?: Linter.RuleEntry<[]>;
|
|
13226
13463
|
/**
|
|
13227
13464
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
13228
|
-
* @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
|
|
13229
13466
|
*/
|
|
13230
13467
|
"unicorn/prefer-regexp-test"?: Linter.RuleEntry<[]>;
|
|
13231
13468
|
/**
|
|
13232
13469
|
* Prefer `Response.json()` over `new Response(JSON.stringify())`.
|
|
13233
|
-
* @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
|
|
13234
13471
|
*/
|
|
13235
13472
|
"unicorn/prefer-response-static-json"?: Linter.RuleEntry<[]>;
|
|
13236
13473
|
/**
|
|
13237
13474
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
13238
|
-
* @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
|
|
13239
13476
|
*/
|
|
13240
13477
|
"unicorn/prefer-set-has"?: Linter.RuleEntry<[]>;
|
|
13241
13478
|
/**
|
|
13242
13479
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
13243
|
-
* @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
|
|
13244
13481
|
*/
|
|
13245
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<[]>;
|
|
13246
13488
|
/**
|
|
13247
13489
|
* Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
13248
|
-
* @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
|
|
13249
13491
|
*/
|
|
13250
13492
|
"unicorn/prefer-single-call"?: Linter.RuleEntry<UnicornPreferSingleCall>;
|
|
13251
13493
|
/**
|
|
13252
13494
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
13253
|
-
* @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
|
|
13254
13496
|
*/
|
|
13255
13497
|
"unicorn/prefer-spread"?: Linter.RuleEntry<[]>;
|
|
13256
13498
|
/**
|
|
13257
13499
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
13258
|
-
* @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
|
|
13259
13501
|
*/
|
|
13260
13502
|
"unicorn/prefer-string-raw"?: Linter.RuleEntry<[]>;
|
|
13261
13503
|
/**
|
|
13262
13504
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
13263
|
-
* @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
|
|
13264
13506
|
*/
|
|
13265
13507
|
"unicorn/prefer-string-replace-all"?: Linter.RuleEntry<[]>;
|
|
13266
13508
|
/**
|
|
13267
13509
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
13268
|
-
* @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
|
|
13269
13511
|
*/
|
|
13270
13512
|
"unicorn/prefer-string-slice"?: Linter.RuleEntry<[]>;
|
|
13271
13513
|
/**
|
|
13272
13514
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
13273
|
-
* @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
|
|
13274
13516
|
*/
|
|
13275
13517
|
"unicorn/prefer-string-starts-ends-with"?: Linter.RuleEntry<[]>;
|
|
13276
13518
|
/**
|
|
13277
13519
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
13278
|
-
* @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
|
|
13279
13521
|
*/
|
|
13280
13522
|
"unicorn/prefer-string-trim-start-end"?: Linter.RuleEntry<[]>;
|
|
13281
13523
|
/**
|
|
13282
13524
|
* Prefer using `structuredClone` to create a deep clone.
|
|
13283
|
-
* @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
|
|
13284
13526
|
*/
|
|
13285
13527
|
"unicorn/prefer-structured-clone"?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
13286
13528
|
/**
|
|
13287
13529
|
* Prefer `switch` over multiple `else-if`.
|
|
13288
|
-
* @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
|
|
13289
13531
|
*/
|
|
13290
13532
|
"unicorn/prefer-switch"?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
13291
13533
|
/**
|
|
13292
13534
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
13293
|
-
* @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
|
|
13294
13536
|
*/
|
|
13295
13537
|
"unicorn/prefer-ternary"?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
13296
13538
|
/**
|
|
13297
13539
|
* Prefer top-level await over top-level promises and async function calls.
|
|
13298
|
-
* @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
|
|
13299
13541
|
*/
|
|
13300
13542
|
"unicorn/prefer-top-level-await"?: Linter.RuleEntry<[]>;
|
|
13301
13543
|
/**
|
|
13302
13544
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
13303
|
-
* @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
|
|
13304
13546
|
*/
|
|
13305
13547
|
"unicorn/prefer-type-error"?: Linter.RuleEntry<[]>;
|
|
13306
13548
|
/**
|
|
13307
13549
|
* Prevent abbreviations.
|
|
13308
|
-
* @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
|
|
13309
13551
|
*/
|
|
13310
13552
|
"unicorn/prevent-abbreviations"?: Linter.RuleEntry<UnicornPreventAbbreviations>;
|
|
13311
13553
|
/**
|
|
13312
13554
|
* Enforce consistent relative URL style.
|
|
13313
|
-
* @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
|
|
13314
13556
|
*/
|
|
13315
13557
|
"unicorn/relative-url-style"?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
13316
13558
|
/**
|
|
13317
13559
|
* Enforce using the separator argument with `Array#join()`.
|
|
13318
|
-
* @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
|
|
13319
13561
|
*/
|
|
13320
13562
|
"unicorn/require-array-join-separator"?: Linter.RuleEntry<[]>;
|
|
13321
13563
|
/**
|
|
13322
13564
|
* Require non-empty module attributes for imports and exports
|
|
13323
|
-
* @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
|
|
13324
13566
|
*/
|
|
13325
13567
|
"unicorn/require-module-attributes"?: Linter.RuleEntry<[]>;
|
|
13326
13568
|
/**
|
|
13327
13569
|
* Require non-empty specifier list in import and export statements.
|
|
13328
|
-
* @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
|
|
13329
13571
|
*/
|
|
13330
13572
|
"unicorn/require-module-specifiers"?: Linter.RuleEntry<[]>;
|
|
13331
13573
|
/**
|
|
13332
13574
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
13333
|
-
* @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
|
|
13334
13576
|
*/
|
|
13335
13577
|
"unicorn/require-number-to-fixed-digits-argument"?: Linter.RuleEntry<[]>;
|
|
13336
13578
|
/**
|
|
13337
13579
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
13338
|
-
* @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
|
|
13339
13581
|
*/
|
|
13340
13582
|
"unicorn/require-post-message-target-origin"?: Linter.RuleEntry<[]>;
|
|
13341
13583
|
/**
|
|
13342
13584
|
* Enforce better string content.
|
|
13343
|
-
* @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
|
|
13344
13586
|
*/
|
|
13345
13587
|
"unicorn/string-content"?: Linter.RuleEntry<UnicornStringContent>;
|
|
13346
13588
|
/**
|
|
13347
13589
|
* Enforce consistent brace style for `case` clauses.
|
|
13348
|
-
* @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
|
|
13349
13591
|
*/
|
|
13350
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<[]>;
|
|
13351
13598
|
/**
|
|
13352
13599
|
* Fix whitespace-insensitive template indentation.
|
|
13353
|
-
* @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
|
|
13354
13601
|
*/
|
|
13355
13602
|
"unicorn/template-indent"?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
13356
13603
|
/**
|
|
13357
13604
|
* Enforce consistent case for text encoding identifiers.
|
|
13358
|
-
* @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
|
|
13359
13606
|
*/
|
|
13360
13607
|
"unicorn/text-encoding-identifier-case"?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
|
|
13361
13608
|
/**
|
|
13362
13609
|
* Require `new` when creating an error.
|
|
13363
|
-
* @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
|
|
13364
13611
|
*/
|
|
13365
13612
|
"unicorn/throw-new-error"?: Linter.RuleEntry<[]>;
|
|
13366
13613
|
}
|
|
@@ -13380,6 +13627,7 @@ type UnicornEscapeCase = [] | ["uppercase" | "lowercase"]; // ----- unicorn/expi
|
|
|
13380
13627
|
type UnicornExpiringTodoComments = [] | [{
|
|
13381
13628
|
terms?: string[];
|
|
13382
13629
|
ignore?: unknown[];
|
|
13630
|
+
ignoreDates?: boolean;
|
|
13383
13631
|
ignoreDatesOnPullRequests?: boolean;
|
|
13384
13632
|
allowWarningComments?: boolean;
|
|
13385
13633
|
date?: string;
|
|
@@ -13536,6 +13784,9 @@ type _UnicornPreventAbbreviationsReplacements = (false | _UnicornPreventAbbrevia
|
|
|
13536
13784
|
interface _UnicornPreventAbbreviations_Abbreviations {
|
|
13537
13785
|
[k: string]: _UnicornPreventAbbreviationsReplacements | undefined;
|
|
13538
13786
|
}
|
|
13787
|
+
interface _UnicornPreventAbbreviations_BooleanObject {
|
|
13788
|
+
[k: string]: boolean | undefined;
|
|
13789
|
+
}
|
|
13539
13790
|
interface _UnicornPreventAbbreviations_BooleanObject {
|
|
13540
13791
|
[k: string]: boolean | undefined;
|
|
13541
13792
|
} // ----- unicorn/relative-url-style -----
|
|
@@ -13944,6 +14195,11 @@ interface VitestRuleOptions {
|
|
|
13944
14195
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-top-level-describe.md
|
|
13945
14196
|
*/
|
|
13946
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>;
|
|
13947
14203
|
/**
|
|
13948
14204
|
* enforce valid describe callback
|
|
13949
14205
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-describe-callback.md
|
|
@@ -14047,6 +14303,9 @@ type VitestRequireMockTypeParameters = [] | [{
|
|
|
14047
14303
|
}]; // ----- vitest/require-top-level-describe -----
|
|
14048
14304
|
type VitestRequireTopLevelDescribe = [] | [{
|
|
14049
14305
|
maxNumberOfTopLevelDescribes?: number;
|
|
14306
|
+
}]; // ----- vitest/unbound-method -----
|
|
14307
|
+
type VitestUnboundMethod = [] | [{
|
|
14308
|
+
ignoreStatic?: boolean;
|
|
14050
14309
|
}]; // ----- vitest/valid-expect -----
|
|
14051
14310
|
type VitestValidExpect = [] | [{
|
|
14052
14311
|
alwaysAwait?: boolean;
|
|
@@ -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
|