@jsse/eslint-config 0.2.33 → 0.3.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 +17 -0
- package/dist/cli.js +1 -1
- package/dist/esm/configs/unicorn.js +2 -3
- package/dist/esm/fixable.js +4 -1
- package/dist/esm/generated/version.d.ts +1 -1
- package/dist/esm/generated/version.js +1 -1
- package/dist/esm/plugins.d.ts +16 -3
- package/dist/esm/plugins.js +7 -4
- package/dist/esm/types.d.ts +1 -0
- package/dist/index.d.ts +672 -329
- package/dist/index.js +461 -62
- package/package.json +35 -37
- package/dist/cli.cjs +0 -723
- package/dist/cli.d.cts +0 -2
- package/dist/index.cjs +0 -13570
- package/dist/index.d.cts +0 -25888
package/dist/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ import * as yaml_eslint_parser from 'yaml-eslint-parser';
|
|
|
14
14
|
import * as eslint_plugin_jsonc_types from 'eslint-plugin-jsonc/types';
|
|
15
15
|
import * as eslint_plugin_jsonc_meta from 'eslint-plugin-jsonc/meta';
|
|
16
16
|
import * as jsonc_eslint_parser from 'jsonc-eslint-parser';
|
|
17
|
+
import * as eslint_plugin_react_hooks from 'eslint-plugin-react-hooks';
|
|
17
18
|
import * as eslint_plugin_react from 'eslint-plugin-react';
|
|
18
19
|
export { default as pluginEslintComments } from '@eslint-community/eslint-plugin-eslint-comments';
|
|
19
20
|
export { default as pluginTs } from '@typescript-eslint/eslint-plugin';
|
|
@@ -9975,8 +9976,6 @@ interface PerfectionistRuleOptions {
|
|
|
9975
9976
|
/* ======= Declarations ======= */
|
|
9976
9977
|
// ----- perfectionist/sort-array-includes -----
|
|
9977
9978
|
type PerfectionistSortArrayIncludes = {
|
|
9978
|
-
specialCharacters?: "remove" | "trim" | "keep";
|
|
9979
|
-
|
|
9980
9979
|
fallbackSort?: {
|
|
9981
9980
|
order?: "asc" | "desc";
|
|
9982
9981
|
|
|
@@ -9984,6 +9983,8 @@ type PerfectionistSortArrayIncludes = {
|
|
|
9984
9983
|
[k: string]: unknown | undefined;
|
|
9985
9984
|
};
|
|
9986
9985
|
|
|
9986
|
+
specialCharacters?: "remove" | "trim" | "keep";
|
|
9987
|
+
|
|
9987
9988
|
ignoreCase?: boolean;
|
|
9988
9989
|
|
|
9989
9990
|
alphabet?: string;
|
|
@@ -9998,13 +9999,30 @@ type PerfectionistSortArrayIncludes = {
|
|
|
9998
9999
|
|
|
9999
10000
|
customGroups?: (
|
|
10000
10001
|
| {
|
|
10001
|
-
|
|
10002
|
+
newlinesInside?: "always" | "never";
|
|
10002
10003
|
|
|
10003
|
-
|
|
10004
|
+
fallbackSort?: {
|
|
10005
|
+
order?: "asc" | "desc";
|
|
10004
10006
|
|
|
10005
|
-
|
|
10007
|
+
type?:
|
|
10008
|
+
| "alphabetical"
|
|
10009
|
+
| "natural"
|
|
10010
|
+
| "line-length"
|
|
10011
|
+
| "custom"
|
|
10012
|
+
| "unsorted";
|
|
10013
|
+
[k: string]: unknown | undefined;
|
|
10014
|
+
};
|
|
10006
10015
|
|
|
10007
|
-
|
|
10016
|
+
groupName?: string;
|
|
10017
|
+
|
|
10018
|
+
order?: "asc" | "desc";
|
|
10019
|
+
|
|
10020
|
+
type?:
|
|
10021
|
+
| "alphabetical"
|
|
10022
|
+
| "natural"
|
|
10023
|
+
| "line-length"
|
|
10024
|
+
| "custom"
|
|
10025
|
+
| "unsorted";
|
|
10008
10026
|
anyOf?: {
|
|
10009
10027
|
selector?: "literal" | "spread";
|
|
10010
10028
|
|
|
@@ -10026,13 +10044,30 @@ type PerfectionistSortArrayIncludes = {
|
|
|
10026
10044
|
}[];
|
|
10027
10045
|
}
|
|
10028
10046
|
| {
|
|
10029
|
-
|
|
10047
|
+
newlinesInside?: "always" | "never";
|
|
10030
10048
|
|
|
10031
|
-
|
|
10049
|
+
fallbackSort?: {
|
|
10050
|
+
order?: "asc" | "desc";
|
|
10032
10051
|
|
|
10033
|
-
|
|
10052
|
+
type?:
|
|
10053
|
+
| "alphabetical"
|
|
10054
|
+
| "natural"
|
|
10055
|
+
| "line-length"
|
|
10056
|
+
| "custom"
|
|
10057
|
+
| "unsorted";
|
|
10058
|
+
[k: string]: unknown | undefined;
|
|
10059
|
+
};
|
|
10034
10060
|
|
|
10035
|
-
|
|
10061
|
+
groupName?: string;
|
|
10062
|
+
|
|
10063
|
+
order?: "asc" | "desc";
|
|
10064
|
+
|
|
10065
|
+
type?:
|
|
10066
|
+
| "alphabetical"
|
|
10067
|
+
| "natural"
|
|
10068
|
+
| "line-length"
|
|
10069
|
+
| "custom"
|
|
10070
|
+
| "unsorted";
|
|
10036
10071
|
|
|
10037
10072
|
selector?: "literal" | "spread";
|
|
10038
10073
|
|
|
@@ -10145,8 +10180,6 @@ type PerfectionistSortClasses =
|
|
|
10145
10180
|
| []
|
|
10146
10181
|
| [
|
|
10147
10182
|
{
|
|
10148
|
-
specialCharacters?: "remove" | "trim" | "keep";
|
|
10149
|
-
|
|
10150
10183
|
fallbackSort?: {
|
|
10151
10184
|
order?: "asc" | "desc";
|
|
10152
10185
|
|
|
@@ -10159,6 +10192,8 @@ type PerfectionistSortClasses =
|
|
|
10159
10192
|
[k: string]: unknown | undefined;
|
|
10160
10193
|
};
|
|
10161
10194
|
|
|
10195
|
+
specialCharacters?: "remove" | "trim" | "keep";
|
|
10196
|
+
|
|
10162
10197
|
ignoreCase?: boolean;
|
|
10163
10198
|
|
|
10164
10199
|
alphabet?: string;
|
|
@@ -10176,13 +10211,30 @@ type PerfectionistSortClasses =
|
|
|
10176
10211
|
|
|
10177
10212
|
customGroups?: (
|
|
10178
10213
|
| {
|
|
10179
|
-
|
|
10214
|
+
newlinesInside?: "always" | "never";
|
|
10180
10215
|
|
|
10181
|
-
|
|
10216
|
+
fallbackSort?: {
|
|
10217
|
+
order?: "asc" | "desc";
|
|
10182
10218
|
|
|
10183
|
-
|
|
10219
|
+
type?:
|
|
10220
|
+
| "alphabetical"
|
|
10221
|
+
| "natural"
|
|
10222
|
+
| "line-length"
|
|
10223
|
+
| "custom"
|
|
10224
|
+
| "unsorted";
|
|
10225
|
+
[k: string]: unknown | undefined;
|
|
10226
|
+
};
|
|
10184
10227
|
|
|
10185
|
-
|
|
10228
|
+
groupName?: string;
|
|
10229
|
+
|
|
10230
|
+
order?: "asc" | "desc";
|
|
10231
|
+
|
|
10232
|
+
type?:
|
|
10233
|
+
| "alphabetical"
|
|
10234
|
+
| "natural"
|
|
10235
|
+
| "line-length"
|
|
10236
|
+
| "custom"
|
|
10237
|
+
| "unsorted";
|
|
10186
10238
|
anyOf?: {
|
|
10187
10239
|
modifiers?: (
|
|
10188
10240
|
| "async"
|
|
@@ -10259,13 +10311,30 @@ type PerfectionistSortClasses =
|
|
|
10259
10311
|
}[];
|
|
10260
10312
|
}
|
|
10261
10313
|
| {
|
|
10262
|
-
|
|
10314
|
+
newlinesInside?: "always" | "never";
|
|
10263
10315
|
|
|
10264
|
-
|
|
10316
|
+
fallbackSort?: {
|
|
10317
|
+
order?: "asc" | "desc";
|
|
10265
10318
|
|
|
10266
|
-
|
|
10319
|
+
type?:
|
|
10320
|
+
| "alphabetical"
|
|
10321
|
+
| "natural"
|
|
10322
|
+
| "line-length"
|
|
10323
|
+
| "custom"
|
|
10324
|
+
| "unsorted";
|
|
10325
|
+
[k: string]: unknown | undefined;
|
|
10326
|
+
};
|
|
10267
10327
|
|
|
10268
|
-
|
|
10328
|
+
groupName?: string;
|
|
10329
|
+
|
|
10330
|
+
order?: "asc" | "desc";
|
|
10331
|
+
|
|
10332
|
+
type?:
|
|
10333
|
+
| "alphabetical"
|
|
10334
|
+
| "natural"
|
|
10335
|
+
| "line-length"
|
|
10336
|
+
| "custom"
|
|
10337
|
+
| "unsorted";
|
|
10269
10338
|
|
|
10270
10339
|
modifiers?: (
|
|
10271
10340
|
| "async"
|
|
@@ -10433,8 +10502,6 @@ type PerfectionistSortDecorators =
|
|
|
10433
10502
|
| []
|
|
10434
10503
|
| [
|
|
10435
10504
|
{
|
|
10436
|
-
specialCharacters?: "remove" | "trim" | "keep";
|
|
10437
|
-
|
|
10438
10505
|
fallbackSort?: {
|
|
10439
10506
|
order?: "asc" | "desc";
|
|
10440
10507
|
|
|
@@ -10447,6 +10514,8 @@ type PerfectionistSortDecorators =
|
|
|
10447
10514
|
[k: string]: unknown | undefined;
|
|
10448
10515
|
};
|
|
10449
10516
|
|
|
10517
|
+
specialCharacters?: "remove" | "trim" | "keep";
|
|
10518
|
+
|
|
10450
10519
|
ignoreCase?: boolean;
|
|
10451
10520
|
|
|
10452
10521
|
alphabet?: string;
|
|
@@ -10547,8 +10616,6 @@ type PerfectionistSortEnums =
|
|
|
10547
10616
|
| []
|
|
10548
10617
|
| [
|
|
10549
10618
|
{
|
|
10550
|
-
specialCharacters?: "remove" | "trim" | "keep";
|
|
10551
|
-
|
|
10552
10619
|
fallbackSort?: {
|
|
10553
10620
|
order?: "asc" | "desc";
|
|
10554
10621
|
|
|
@@ -10561,6 +10628,8 @@ type PerfectionistSortEnums =
|
|
|
10561
10628
|
[k: string]: unknown | undefined;
|
|
10562
10629
|
};
|
|
10563
10630
|
|
|
10631
|
+
specialCharacters?: "remove" | "trim" | "keep";
|
|
10632
|
+
|
|
10564
10633
|
ignoreCase?: boolean;
|
|
10565
10634
|
|
|
10566
10635
|
alphabet?: string;
|
|
@@ -10583,17 +10652,30 @@ type PerfectionistSortEnums =
|
|
|
10583
10652
|
}
|
|
10584
10653
|
| (
|
|
10585
10654
|
| {
|
|
10655
|
+
newlinesInside?: "always" | "never";
|
|
10656
|
+
|
|
10657
|
+
fallbackSort?: {
|
|
10658
|
+
order?: "asc" | "desc";
|
|
10659
|
+
|
|
10660
|
+
type?:
|
|
10661
|
+
| "alphabetical"
|
|
10662
|
+
| "natural"
|
|
10663
|
+
| "line-length"
|
|
10664
|
+
| "custom"
|
|
10665
|
+
| "unsorted";
|
|
10666
|
+
[k: string]: unknown | undefined;
|
|
10667
|
+
};
|
|
10668
|
+
|
|
10586
10669
|
groupName?: string;
|
|
10587
10670
|
|
|
10671
|
+
order?: "asc" | "desc";
|
|
10672
|
+
|
|
10588
10673
|
type?:
|
|
10589
10674
|
| "alphabetical"
|
|
10590
|
-
| "line-length"
|
|
10591
10675
|
| "natural"
|
|
10676
|
+
| "line-length"
|
|
10677
|
+
| "custom"
|
|
10592
10678
|
| "unsorted";
|
|
10593
|
-
|
|
10594
|
-
order?: "desc" | "asc";
|
|
10595
|
-
|
|
10596
|
-
newlinesInside?: "always" | "never";
|
|
10597
10679
|
anyOf?: {
|
|
10598
10680
|
elementValuePattern?:
|
|
10599
10681
|
| (
|
|
@@ -10629,18 +10711,31 @@ type PerfectionistSortEnums =
|
|
|
10629
10711
|
}[];
|
|
10630
10712
|
}
|
|
10631
10713
|
| {
|
|
10714
|
+
newlinesInside?: "always" | "never";
|
|
10715
|
+
|
|
10716
|
+
fallbackSort?: {
|
|
10717
|
+
order?: "asc" | "desc";
|
|
10718
|
+
|
|
10719
|
+
type?:
|
|
10720
|
+
| "alphabetical"
|
|
10721
|
+
| "natural"
|
|
10722
|
+
| "line-length"
|
|
10723
|
+
| "custom"
|
|
10724
|
+
| "unsorted";
|
|
10725
|
+
[k: string]: unknown | undefined;
|
|
10726
|
+
};
|
|
10727
|
+
|
|
10632
10728
|
groupName?: string;
|
|
10633
10729
|
|
|
10730
|
+
order?: "asc" | "desc";
|
|
10731
|
+
|
|
10634
10732
|
type?:
|
|
10635
10733
|
| "alphabetical"
|
|
10636
|
-
| "line-length"
|
|
10637
10734
|
| "natural"
|
|
10735
|
+
| "line-length"
|
|
10736
|
+
| "custom"
|
|
10638
10737
|
| "unsorted";
|
|
10639
10738
|
|
|
10640
|
-
order?: "desc" | "asc";
|
|
10641
|
-
|
|
10642
|
-
newlinesInside?: "always" | "never";
|
|
10643
|
-
|
|
10644
10739
|
elementValuePattern?:
|
|
10645
10740
|
| (
|
|
10646
10741
|
| {
|
|
@@ -10752,8 +10847,6 @@ type PerfectionistSortExports =
|
|
|
10752
10847
|
| []
|
|
10753
10848
|
| [
|
|
10754
10849
|
{
|
|
10755
|
-
specialCharacters?: "remove" | "trim" | "keep";
|
|
10756
|
-
|
|
10757
10850
|
fallbackSort?: {
|
|
10758
10851
|
order?: "asc" | "desc";
|
|
10759
10852
|
|
|
@@ -10766,6 +10859,8 @@ type PerfectionistSortExports =
|
|
|
10766
10859
|
[k: string]: unknown | undefined;
|
|
10767
10860
|
};
|
|
10768
10861
|
|
|
10862
|
+
specialCharacters?: "remove" | "trim" | "keep";
|
|
10863
|
+
|
|
10769
10864
|
ignoreCase?: boolean;
|
|
10770
10865
|
|
|
10771
10866
|
alphabet?: string;
|
|
@@ -10848,8 +10943,6 @@ type PerfectionistSortHeritageClauses =
|
|
|
10848
10943
|
| []
|
|
10849
10944
|
| [
|
|
10850
10945
|
{
|
|
10851
|
-
specialCharacters?: "remove" | "trim" | "keep";
|
|
10852
|
-
|
|
10853
10946
|
fallbackSort?: {
|
|
10854
10947
|
order?: "asc" | "desc";
|
|
10855
10948
|
|
|
@@ -10862,6 +10955,8 @@ type PerfectionistSortHeritageClauses =
|
|
|
10862
10955
|
[k: string]: unknown | undefined;
|
|
10863
10956
|
};
|
|
10864
10957
|
|
|
10958
|
+
specialCharacters?: "remove" | "trim" | "keep";
|
|
10959
|
+
|
|
10865
10960
|
ignoreCase?: boolean;
|
|
10866
10961
|
|
|
10867
10962
|
alphabet?: string;
|
|
@@ -10894,8 +10989,6 @@ type PerfectionistSortHeritageClauses =
|
|
|
10894
10989
|
type PerfectionistSortImports = [] | [_PerfectionistSortImportsSortImports];
|
|
10895
10990
|
type _PerfectionistSortImportsSortImports =
|
|
10896
10991
|
_PerfectionistSortImportsMaxLineLengthRequiresLineLengthType & {
|
|
10897
|
-
specialCharacters?: "remove" | "trim" | "keep";
|
|
10898
|
-
|
|
10899
10992
|
fallbackSort?: {
|
|
10900
10993
|
order?: "asc" | "desc";
|
|
10901
10994
|
|
|
@@ -10903,6 +10996,8 @@ type _PerfectionistSortImportsSortImports =
|
|
|
10903
10996
|
[k: string]: unknown | undefined;
|
|
10904
10997
|
};
|
|
10905
10998
|
|
|
10999
|
+
specialCharacters?: "remove" | "trim" | "keep";
|
|
11000
|
+
|
|
10906
11001
|
ignoreCase?: boolean;
|
|
10907
11002
|
|
|
10908
11003
|
alphabet?: string;
|
|
@@ -11027,8 +11122,6 @@ interface _PerfectionistSortImports_IsLineLength {
|
|
|
11027
11122
|
}
|
|
11028
11123
|
// ----- perfectionist/sort-interfaces -----
|
|
11029
11124
|
type PerfectionistSortInterfaces = {
|
|
11030
|
-
specialCharacters?: "remove" | "trim" | "keep";
|
|
11031
|
-
|
|
11032
11125
|
fallbackSort?: {
|
|
11033
11126
|
order?: "asc" | "desc";
|
|
11034
11127
|
|
|
@@ -11036,6 +11129,8 @@ type PerfectionistSortInterfaces = {
|
|
|
11036
11129
|
[k: string]: unknown | undefined;
|
|
11037
11130
|
};
|
|
11038
11131
|
|
|
11132
|
+
specialCharacters?: "remove" | "trim" | "keep";
|
|
11133
|
+
|
|
11039
11134
|
ignoreCase?: boolean;
|
|
11040
11135
|
|
|
11041
11136
|
alphabet?: string;
|
|
@@ -11051,13 +11146,31 @@ type PerfectionistSortInterfaces = {
|
|
|
11051
11146
|
}
|
|
11052
11147
|
| (
|
|
11053
11148
|
| {
|
|
11054
|
-
|
|
11149
|
+
newlinesInside?: "always" | "never";
|
|
11055
11150
|
|
|
11056
|
-
|
|
11151
|
+
fallbackSort?: {
|
|
11152
|
+
order?: "asc" | "desc";
|
|
11153
|
+
|
|
11154
|
+
type?:
|
|
11155
|
+
| "alphabetical"
|
|
11156
|
+
| "natural"
|
|
11157
|
+
| "line-length"
|
|
11158
|
+
| "custom"
|
|
11159
|
+
| "unsorted";
|
|
11160
|
+
sortBy?: "name" | "value";
|
|
11161
|
+
[k: string]: unknown | undefined;
|
|
11162
|
+
};
|
|
11057
11163
|
|
|
11058
|
-
|
|
11164
|
+
groupName?: string;
|
|
11059
11165
|
|
|
11060
|
-
|
|
11166
|
+
order?: "asc" | "desc";
|
|
11167
|
+
|
|
11168
|
+
type?:
|
|
11169
|
+
| "alphabetical"
|
|
11170
|
+
| "natural"
|
|
11171
|
+
| "line-length"
|
|
11172
|
+
| "custom"
|
|
11173
|
+
| "unsorted";
|
|
11061
11174
|
anyOf?: {
|
|
11062
11175
|
modifiers?: ("optional" | "required" | "multiline")[];
|
|
11063
11176
|
|
|
@@ -11068,6 +11181,22 @@ type PerfectionistSortInterfaces = {
|
|
|
11068
11181
|
| "multiline"
|
|
11069
11182
|
| "property";
|
|
11070
11183
|
|
|
11184
|
+
elementValuePattern?:
|
|
11185
|
+
| (
|
|
11186
|
+
| {
|
|
11187
|
+
pattern?: string;
|
|
11188
|
+
flags?: string;
|
|
11189
|
+
}
|
|
11190
|
+
| string
|
|
11191
|
+
)[]
|
|
11192
|
+
| (
|
|
11193
|
+
| {
|
|
11194
|
+
pattern?: string;
|
|
11195
|
+
flags?: string;
|
|
11196
|
+
}
|
|
11197
|
+
| string
|
|
11198
|
+
);
|
|
11199
|
+
|
|
11071
11200
|
elementNamePattern?:
|
|
11072
11201
|
| (
|
|
11073
11202
|
| {
|
|
@@ -11083,16 +11212,35 @@ type PerfectionistSortInterfaces = {
|
|
|
11083
11212
|
}
|
|
11084
11213
|
| string
|
|
11085
11214
|
);
|
|
11215
|
+
sortBy?: "name" | "value";
|
|
11086
11216
|
}[];
|
|
11087
11217
|
}
|
|
11088
11218
|
| {
|
|
11089
|
-
|
|
11219
|
+
newlinesInside?: "always" | "never";
|
|
11220
|
+
|
|
11221
|
+
fallbackSort?: {
|
|
11222
|
+
order?: "asc" | "desc";
|
|
11223
|
+
|
|
11224
|
+
type?:
|
|
11225
|
+
| "alphabetical"
|
|
11226
|
+
| "natural"
|
|
11227
|
+
| "line-length"
|
|
11228
|
+
| "custom"
|
|
11229
|
+
| "unsorted";
|
|
11230
|
+
sortBy?: "name" | "value";
|
|
11231
|
+
[k: string]: unknown | undefined;
|
|
11232
|
+
};
|
|
11090
11233
|
|
|
11091
|
-
|
|
11234
|
+
groupName?: string;
|
|
11092
11235
|
|
|
11093
|
-
order?: "
|
|
11236
|
+
order?: "asc" | "desc";
|
|
11094
11237
|
|
|
11095
|
-
|
|
11238
|
+
type?:
|
|
11239
|
+
| "alphabetical"
|
|
11240
|
+
| "natural"
|
|
11241
|
+
| "line-length"
|
|
11242
|
+
| "custom"
|
|
11243
|
+
| "unsorted";
|
|
11096
11244
|
|
|
11097
11245
|
modifiers?: ("optional" | "required" | "multiline")[];
|
|
11098
11246
|
|
|
@@ -11103,6 +11251,22 @@ type PerfectionistSortInterfaces = {
|
|
|
11103
11251
|
| "multiline"
|
|
11104
11252
|
| "property";
|
|
11105
11253
|
|
|
11254
|
+
elementValuePattern?:
|
|
11255
|
+
| (
|
|
11256
|
+
| {
|
|
11257
|
+
pattern?: string;
|
|
11258
|
+
flags?: string;
|
|
11259
|
+
}
|
|
11260
|
+
| string
|
|
11261
|
+
)[]
|
|
11262
|
+
| (
|
|
11263
|
+
| {
|
|
11264
|
+
pattern?: string;
|
|
11265
|
+
flags?: string;
|
|
11266
|
+
}
|
|
11267
|
+
| string
|
|
11268
|
+
);
|
|
11269
|
+
|
|
11106
11270
|
elementNamePattern?:
|
|
11107
11271
|
| (
|
|
11108
11272
|
| {
|
|
@@ -11118,6 +11282,7 @@ type PerfectionistSortInterfaces = {
|
|
|
11118
11282
|
}
|
|
11119
11283
|
| string
|
|
11120
11284
|
);
|
|
11285
|
+
sortBy?: "name" | "value";
|
|
11121
11286
|
}
|
|
11122
11287
|
)[];
|
|
11123
11288
|
useConfigurationIf?: {
|
|
@@ -11232,6 +11397,7 @@ type PerfectionistSortInterfaces = {
|
|
|
11232
11397
|
}
|
|
11233
11398
|
| string
|
|
11234
11399
|
);
|
|
11400
|
+
sortBy?: "name" | "value";
|
|
11235
11401
|
|
|
11236
11402
|
groups?: (
|
|
11237
11403
|
| string
|
|
@@ -11246,8 +11412,6 @@ type PerfectionistSortIntersectionTypes =
|
|
|
11246
11412
|
| []
|
|
11247
11413
|
| [
|
|
11248
11414
|
{
|
|
11249
|
-
specialCharacters?: "remove" | "trim" | "keep";
|
|
11250
|
-
|
|
11251
11415
|
fallbackSort?: {
|
|
11252
11416
|
order?: "asc" | "desc";
|
|
11253
11417
|
|
|
@@ -11260,6 +11424,8 @@ type PerfectionistSortIntersectionTypes =
|
|
|
11260
11424
|
[k: string]: unknown | undefined;
|
|
11261
11425
|
};
|
|
11262
11426
|
|
|
11427
|
+
specialCharacters?: "remove" | "trim" | "keep";
|
|
11428
|
+
|
|
11263
11429
|
ignoreCase?: boolean;
|
|
11264
11430
|
|
|
11265
11431
|
alphabet?: string;
|
|
@@ -11347,8 +11513,6 @@ type PerfectionistSortIntersectionTypes =
|
|
|
11347
11513
|
];
|
|
11348
11514
|
// ----- perfectionist/sort-jsx-props -----
|
|
11349
11515
|
type PerfectionistSortJsxProps = {
|
|
11350
|
-
specialCharacters?: "remove" | "trim" | "keep";
|
|
11351
|
-
|
|
11352
11516
|
fallbackSort?: {
|
|
11353
11517
|
order?: "asc" | "desc";
|
|
11354
11518
|
|
|
@@ -11356,6 +11520,8 @@ type PerfectionistSortJsxProps = {
|
|
|
11356
11520
|
[k: string]: unknown | undefined;
|
|
11357
11521
|
};
|
|
11358
11522
|
|
|
11523
|
+
specialCharacters?: "remove" | "trim" | "keep";
|
|
11524
|
+
|
|
11359
11525
|
ignoreCase?: boolean;
|
|
11360
11526
|
|
|
11361
11527
|
alphabet?: string;
|
|
@@ -11433,8 +11599,6 @@ type PerfectionistSortJsxProps = {
|
|
|
11433
11599
|
}[];
|
|
11434
11600
|
// ----- perfectionist/sort-maps -----
|
|
11435
11601
|
type PerfectionistSortMaps = {
|
|
11436
|
-
specialCharacters?: "remove" | "trim" | "keep";
|
|
11437
|
-
|
|
11438
11602
|
fallbackSort?: {
|
|
11439
11603
|
order?: "asc" | "desc";
|
|
11440
11604
|
|
|
@@ -11442,6 +11606,8 @@ type PerfectionistSortMaps = {
|
|
|
11442
11606
|
[k: string]: unknown | undefined;
|
|
11443
11607
|
};
|
|
11444
11608
|
|
|
11609
|
+
specialCharacters?: "remove" | "trim" | "keep";
|
|
11610
|
+
|
|
11445
11611
|
ignoreCase?: boolean;
|
|
11446
11612
|
|
|
11447
11613
|
alphabet?: string;
|
|
@@ -11454,13 +11620,30 @@ type PerfectionistSortMaps = {
|
|
|
11454
11620
|
|
|
11455
11621
|
customGroups?: (
|
|
11456
11622
|
| {
|
|
11457
|
-
|
|
11623
|
+
newlinesInside?: "always" | "never";
|
|
11458
11624
|
|
|
11459
|
-
|
|
11625
|
+
fallbackSort?: {
|
|
11626
|
+
order?: "asc" | "desc";
|
|
11460
11627
|
|
|
11461
|
-
|
|
11628
|
+
type?:
|
|
11629
|
+
| "alphabetical"
|
|
11630
|
+
| "natural"
|
|
11631
|
+
| "line-length"
|
|
11632
|
+
| "custom"
|
|
11633
|
+
| "unsorted";
|
|
11634
|
+
[k: string]: unknown | undefined;
|
|
11635
|
+
};
|
|
11462
11636
|
|
|
11463
|
-
|
|
11637
|
+
groupName?: string;
|
|
11638
|
+
|
|
11639
|
+
order?: "asc" | "desc";
|
|
11640
|
+
|
|
11641
|
+
type?:
|
|
11642
|
+
| "alphabetical"
|
|
11643
|
+
| "natural"
|
|
11644
|
+
| "line-length"
|
|
11645
|
+
| "custom"
|
|
11646
|
+
| "unsorted";
|
|
11464
11647
|
anyOf?: {
|
|
11465
11648
|
elementNamePattern?:
|
|
11466
11649
|
| (
|
|
@@ -11480,13 +11663,30 @@ type PerfectionistSortMaps = {
|
|
|
11480
11663
|
}[];
|
|
11481
11664
|
}
|
|
11482
11665
|
| {
|
|
11483
|
-
|
|
11666
|
+
newlinesInside?: "always" | "never";
|
|
11484
11667
|
|
|
11485
|
-
|
|
11668
|
+
fallbackSort?: {
|
|
11669
|
+
order?: "asc" | "desc";
|
|
11486
11670
|
|
|
11487
|
-
|
|
11671
|
+
type?:
|
|
11672
|
+
| "alphabetical"
|
|
11673
|
+
| "natural"
|
|
11674
|
+
| "line-length"
|
|
11675
|
+
| "custom"
|
|
11676
|
+
| "unsorted";
|
|
11677
|
+
[k: string]: unknown | undefined;
|
|
11678
|
+
};
|
|
11488
11679
|
|
|
11489
|
-
|
|
11680
|
+
groupName?: string;
|
|
11681
|
+
|
|
11682
|
+
order?: "asc" | "desc";
|
|
11683
|
+
|
|
11684
|
+
type?:
|
|
11685
|
+
| "alphabetical"
|
|
11686
|
+
| "natural"
|
|
11687
|
+
| "line-length"
|
|
11688
|
+
| "custom"
|
|
11689
|
+
| "unsorted";
|
|
11490
11690
|
|
|
11491
11691
|
elementNamePattern?:
|
|
11492
11692
|
| (
|
|
@@ -11597,8 +11797,6 @@ type PerfectionistSortModules =
|
|
|
11597
11797
|
| []
|
|
11598
11798
|
| [
|
|
11599
11799
|
{
|
|
11600
|
-
specialCharacters?: "remove" | "trim" | "keep";
|
|
11601
|
-
|
|
11602
11800
|
fallbackSort?: {
|
|
11603
11801
|
order?: "asc" | "desc";
|
|
11604
11802
|
|
|
@@ -11611,6 +11809,8 @@ type PerfectionistSortModules =
|
|
|
11611
11809
|
[k: string]: unknown | undefined;
|
|
11612
11810
|
};
|
|
11613
11811
|
|
|
11812
|
+
specialCharacters?: "remove" | "trim" | "keep";
|
|
11813
|
+
|
|
11614
11814
|
ignoreCase?: boolean;
|
|
11615
11815
|
|
|
11616
11816
|
alphabet?: string;
|
|
@@ -11628,13 +11828,30 @@ type PerfectionistSortModules =
|
|
|
11628
11828
|
|
|
11629
11829
|
customGroups?: (
|
|
11630
11830
|
| {
|
|
11631
|
-
|
|
11831
|
+
newlinesInside?: "always" | "never";
|
|
11632
11832
|
|
|
11633
|
-
|
|
11833
|
+
fallbackSort?: {
|
|
11834
|
+
order?: "asc" | "desc";
|
|
11634
11835
|
|
|
11635
|
-
|
|
11836
|
+
type?:
|
|
11837
|
+
| "alphabetical"
|
|
11838
|
+
| "natural"
|
|
11839
|
+
| "line-length"
|
|
11840
|
+
| "custom"
|
|
11841
|
+
| "unsorted";
|
|
11842
|
+
[k: string]: unknown | undefined;
|
|
11843
|
+
};
|
|
11636
11844
|
|
|
11637
|
-
|
|
11845
|
+
groupName?: string;
|
|
11846
|
+
|
|
11847
|
+
order?: "asc" | "desc";
|
|
11848
|
+
|
|
11849
|
+
type?:
|
|
11850
|
+
| "alphabetical"
|
|
11851
|
+
| "natural"
|
|
11852
|
+
| "line-length"
|
|
11853
|
+
| "custom"
|
|
11854
|
+
| "unsorted";
|
|
11638
11855
|
anyOf?: {
|
|
11639
11856
|
modifiers?: (
|
|
11640
11857
|
| "async"
|
|
@@ -11680,13 +11897,30 @@ type PerfectionistSortModules =
|
|
|
11680
11897
|
}[];
|
|
11681
11898
|
}
|
|
11682
11899
|
| {
|
|
11683
|
-
|
|
11900
|
+
newlinesInside?: "always" | "never";
|
|
11684
11901
|
|
|
11685
|
-
|
|
11902
|
+
fallbackSort?: {
|
|
11903
|
+
order?: "asc" | "desc";
|
|
11686
11904
|
|
|
11687
|
-
|
|
11905
|
+
type?:
|
|
11906
|
+
| "alphabetical"
|
|
11907
|
+
| "natural"
|
|
11908
|
+
| "line-length"
|
|
11909
|
+
| "custom"
|
|
11910
|
+
| "unsorted";
|
|
11911
|
+
[k: string]: unknown | undefined;
|
|
11912
|
+
};
|
|
11688
11913
|
|
|
11689
|
-
|
|
11914
|
+
groupName?: string;
|
|
11915
|
+
|
|
11916
|
+
order?: "asc" | "desc";
|
|
11917
|
+
|
|
11918
|
+
type?:
|
|
11919
|
+
| "alphabetical"
|
|
11920
|
+
| "natural"
|
|
11921
|
+
| "line-length"
|
|
11922
|
+
| "custom"
|
|
11923
|
+
| "unsorted";
|
|
11690
11924
|
|
|
11691
11925
|
modifiers?: (
|
|
11692
11926
|
| "async"
|
|
@@ -11807,8 +12041,6 @@ type PerfectionistSortNamedExports =
|
|
|
11807
12041
|
| []
|
|
11808
12042
|
| [
|
|
11809
12043
|
{
|
|
11810
|
-
specialCharacters?: "remove" | "trim" | "keep";
|
|
11811
|
-
|
|
11812
12044
|
fallbackSort?: {
|
|
11813
12045
|
order?: "asc" | "desc";
|
|
11814
12046
|
|
|
@@ -11821,6 +12053,8 @@ type PerfectionistSortNamedExports =
|
|
|
11821
12053
|
[k: string]: unknown | undefined;
|
|
11822
12054
|
};
|
|
11823
12055
|
|
|
12056
|
+
specialCharacters?: "remove" | "trim" | "keep";
|
|
12057
|
+
|
|
11824
12058
|
ignoreCase?: boolean;
|
|
11825
12059
|
|
|
11826
12060
|
alphabet?: string;
|
|
@@ -11905,8 +12139,6 @@ type PerfectionistSortNamedImports =
|
|
|
11905
12139
|
| []
|
|
11906
12140
|
| [
|
|
11907
12141
|
{
|
|
11908
|
-
specialCharacters?: "remove" | "trim" | "keep";
|
|
11909
|
-
|
|
11910
12142
|
fallbackSort?: {
|
|
11911
12143
|
order?: "asc" | "desc";
|
|
11912
12144
|
|
|
@@ -11919,6 +12151,8 @@ type PerfectionistSortNamedImports =
|
|
|
11919
12151
|
[k: string]: unknown | undefined;
|
|
11920
12152
|
};
|
|
11921
12153
|
|
|
12154
|
+
specialCharacters?: "remove" | "trim" | "keep";
|
|
12155
|
+
|
|
11922
12156
|
ignoreCase?: boolean;
|
|
11923
12157
|
|
|
11924
12158
|
alphabet?: string;
|
|
@@ -12000,8 +12234,6 @@ type PerfectionistSortNamedImports =
|
|
|
12000
12234
|
];
|
|
12001
12235
|
// ----- perfectionist/sort-object-types -----
|
|
12002
12236
|
type PerfectionistSortObjectTypes = {
|
|
12003
|
-
specialCharacters?: "remove" | "trim" | "keep";
|
|
12004
|
-
|
|
12005
12237
|
fallbackSort?: {
|
|
12006
12238
|
order?: "asc" | "desc";
|
|
12007
12239
|
|
|
@@ -12009,6 +12241,8 @@ type PerfectionistSortObjectTypes = {
|
|
|
12009
12241
|
[k: string]: unknown | undefined;
|
|
12010
12242
|
};
|
|
12011
12243
|
|
|
12244
|
+
specialCharacters?: "remove" | "trim" | "keep";
|
|
12245
|
+
|
|
12012
12246
|
ignoreCase?: boolean;
|
|
12013
12247
|
|
|
12014
12248
|
alphabet?: string;
|
|
@@ -12024,13 +12258,31 @@ type PerfectionistSortObjectTypes = {
|
|
|
12024
12258
|
}
|
|
12025
12259
|
| (
|
|
12026
12260
|
| {
|
|
12027
|
-
|
|
12261
|
+
newlinesInside?: "always" | "never";
|
|
12262
|
+
|
|
12263
|
+
fallbackSort?: {
|
|
12264
|
+
order?: "asc" | "desc";
|
|
12265
|
+
|
|
12266
|
+
type?:
|
|
12267
|
+
| "alphabetical"
|
|
12268
|
+
| "natural"
|
|
12269
|
+
| "line-length"
|
|
12270
|
+
| "custom"
|
|
12271
|
+
| "unsorted";
|
|
12272
|
+
sortBy?: "name" | "value";
|
|
12273
|
+
[k: string]: unknown | undefined;
|
|
12274
|
+
};
|
|
12028
12275
|
|
|
12029
|
-
|
|
12276
|
+
groupName?: string;
|
|
12030
12277
|
|
|
12031
|
-
order?: "
|
|
12278
|
+
order?: "asc" | "desc";
|
|
12032
12279
|
|
|
12033
|
-
|
|
12280
|
+
type?:
|
|
12281
|
+
| "alphabetical"
|
|
12282
|
+
| "natural"
|
|
12283
|
+
| "line-length"
|
|
12284
|
+
| "custom"
|
|
12285
|
+
| "unsorted";
|
|
12034
12286
|
anyOf?: {
|
|
12035
12287
|
modifiers?: ("optional" | "required" | "multiline")[];
|
|
12036
12288
|
|
|
@@ -12041,6 +12293,22 @@ type PerfectionistSortObjectTypes = {
|
|
|
12041
12293
|
| "multiline"
|
|
12042
12294
|
| "property";
|
|
12043
12295
|
|
|
12296
|
+
elementValuePattern?:
|
|
12297
|
+
| (
|
|
12298
|
+
| {
|
|
12299
|
+
pattern?: string;
|
|
12300
|
+
flags?: string;
|
|
12301
|
+
}
|
|
12302
|
+
| string
|
|
12303
|
+
)[]
|
|
12304
|
+
| (
|
|
12305
|
+
| {
|
|
12306
|
+
pattern?: string;
|
|
12307
|
+
flags?: string;
|
|
12308
|
+
}
|
|
12309
|
+
| string
|
|
12310
|
+
);
|
|
12311
|
+
|
|
12044
12312
|
elementNamePattern?:
|
|
12045
12313
|
| (
|
|
12046
12314
|
| {
|
|
@@ -12056,16 +12324,35 @@ type PerfectionistSortObjectTypes = {
|
|
|
12056
12324
|
}
|
|
12057
12325
|
| string
|
|
12058
12326
|
);
|
|
12327
|
+
sortBy?: "name" | "value";
|
|
12059
12328
|
}[];
|
|
12060
12329
|
}
|
|
12061
12330
|
| {
|
|
12062
|
-
|
|
12331
|
+
newlinesInside?: "always" | "never";
|
|
12063
12332
|
|
|
12064
|
-
|
|
12333
|
+
fallbackSort?: {
|
|
12334
|
+
order?: "asc" | "desc";
|
|
12065
12335
|
|
|
12066
|
-
|
|
12336
|
+
type?:
|
|
12337
|
+
| "alphabetical"
|
|
12338
|
+
| "natural"
|
|
12339
|
+
| "line-length"
|
|
12340
|
+
| "custom"
|
|
12341
|
+
| "unsorted";
|
|
12342
|
+
sortBy?: "name" | "value";
|
|
12343
|
+
[k: string]: unknown | undefined;
|
|
12344
|
+
};
|
|
12067
12345
|
|
|
12068
|
-
|
|
12346
|
+
groupName?: string;
|
|
12347
|
+
|
|
12348
|
+
order?: "asc" | "desc";
|
|
12349
|
+
|
|
12350
|
+
type?:
|
|
12351
|
+
| "alphabetical"
|
|
12352
|
+
| "natural"
|
|
12353
|
+
| "line-length"
|
|
12354
|
+
| "custom"
|
|
12355
|
+
| "unsorted";
|
|
12069
12356
|
|
|
12070
12357
|
modifiers?: ("optional" | "required" | "multiline")[];
|
|
12071
12358
|
|
|
@@ -12076,6 +12363,22 @@ type PerfectionistSortObjectTypes = {
|
|
|
12076
12363
|
| "multiline"
|
|
12077
12364
|
| "property";
|
|
12078
12365
|
|
|
12366
|
+
elementValuePattern?:
|
|
12367
|
+
| (
|
|
12368
|
+
| {
|
|
12369
|
+
pattern?: string;
|
|
12370
|
+
flags?: string;
|
|
12371
|
+
}
|
|
12372
|
+
| string
|
|
12373
|
+
)[]
|
|
12374
|
+
| (
|
|
12375
|
+
| {
|
|
12376
|
+
pattern?: string;
|
|
12377
|
+
flags?: string;
|
|
12378
|
+
}
|
|
12379
|
+
| string
|
|
12380
|
+
);
|
|
12381
|
+
|
|
12079
12382
|
elementNamePattern?:
|
|
12080
12383
|
| (
|
|
12081
12384
|
| {
|
|
@@ -12091,6 +12394,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
12091
12394
|
}
|
|
12092
12395
|
| string
|
|
12093
12396
|
);
|
|
12397
|
+
sortBy?: "name" | "value";
|
|
12094
12398
|
}
|
|
12095
12399
|
)[];
|
|
12096
12400
|
useConfigurationIf?: {
|
|
@@ -12205,6 +12509,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
12205
12509
|
}
|
|
12206
12510
|
| string
|
|
12207
12511
|
);
|
|
12512
|
+
sortBy?: "name" | "value";
|
|
12208
12513
|
|
|
12209
12514
|
groups?: (
|
|
12210
12515
|
| string
|
|
@@ -12216,8 +12521,6 @@ type PerfectionistSortObjectTypes = {
|
|
|
12216
12521
|
}[];
|
|
12217
12522
|
// ----- perfectionist/sort-objects -----
|
|
12218
12523
|
type PerfectionistSortObjects = {
|
|
12219
|
-
specialCharacters?: "remove" | "trim" | "keep";
|
|
12220
|
-
|
|
12221
12524
|
fallbackSort?: {
|
|
12222
12525
|
order?: "asc" | "desc";
|
|
12223
12526
|
|
|
@@ -12225,6 +12528,8 @@ type PerfectionistSortObjects = {
|
|
|
12225
12528
|
[k: string]: unknown | undefined;
|
|
12226
12529
|
};
|
|
12227
12530
|
|
|
12531
|
+
specialCharacters?: "remove" | "trim" | "keep";
|
|
12532
|
+
|
|
12228
12533
|
ignoreCase?: boolean;
|
|
12229
12534
|
|
|
12230
12535
|
alphabet?: string;
|
|
@@ -12246,13 +12551,30 @@ type PerfectionistSortObjects = {
|
|
|
12246
12551
|
}
|
|
12247
12552
|
| (
|
|
12248
12553
|
| {
|
|
12249
|
-
|
|
12554
|
+
newlinesInside?: "always" | "never";
|
|
12250
12555
|
|
|
12251
|
-
|
|
12556
|
+
fallbackSort?: {
|
|
12557
|
+
order?: "asc" | "desc";
|
|
12252
12558
|
|
|
12253
|
-
|
|
12559
|
+
type?:
|
|
12560
|
+
| "alphabetical"
|
|
12561
|
+
| "natural"
|
|
12562
|
+
| "line-length"
|
|
12563
|
+
| "custom"
|
|
12564
|
+
| "unsorted";
|
|
12565
|
+
[k: string]: unknown | undefined;
|
|
12566
|
+
};
|
|
12254
12567
|
|
|
12255
|
-
|
|
12568
|
+
groupName?: string;
|
|
12569
|
+
|
|
12570
|
+
order?: "asc" | "desc";
|
|
12571
|
+
|
|
12572
|
+
type?:
|
|
12573
|
+
| "alphabetical"
|
|
12574
|
+
| "natural"
|
|
12575
|
+
| "line-length"
|
|
12576
|
+
| "custom"
|
|
12577
|
+
| "unsorted";
|
|
12256
12578
|
anyOf?: {
|
|
12257
12579
|
modifiers?: ("optional" | "required" | "multiline")[];
|
|
12258
12580
|
|
|
@@ -12292,13 +12614,30 @@ type PerfectionistSortObjects = {
|
|
|
12292
12614
|
}[];
|
|
12293
12615
|
}
|
|
12294
12616
|
| {
|
|
12295
|
-
|
|
12617
|
+
newlinesInside?: "always" | "never";
|
|
12296
12618
|
|
|
12297
|
-
|
|
12619
|
+
fallbackSort?: {
|
|
12620
|
+
order?: "asc" | "desc";
|
|
12621
|
+
|
|
12622
|
+
type?:
|
|
12623
|
+
| "alphabetical"
|
|
12624
|
+
| "natural"
|
|
12625
|
+
| "line-length"
|
|
12626
|
+
| "custom"
|
|
12627
|
+
| "unsorted";
|
|
12628
|
+
[k: string]: unknown | undefined;
|
|
12629
|
+
};
|
|
12298
12630
|
|
|
12299
|
-
|
|
12631
|
+
groupName?: string;
|
|
12300
12632
|
|
|
12301
|
-
|
|
12633
|
+
order?: "asc" | "desc";
|
|
12634
|
+
|
|
12635
|
+
type?:
|
|
12636
|
+
| "alphabetical"
|
|
12637
|
+
| "natural"
|
|
12638
|
+
| "line-length"
|
|
12639
|
+
| "custom"
|
|
12640
|
+
| "unsorted";
|
|
12302
12641
|
|
|
12303
12642
|
modifiers?: ("optional" | "required" | "multiline")[];
|
|
12304
12643
|
|
|
@@ -12464,8 +12803,6 @@ type PerfectionistSortObjects = {
|
|
|
12464
12803
|
}[];
|
|
12465
12804
|
// ----- perfectionist/sort-sets -----
|
|
12466
12805
|
type PerfectionistSortSets = {
|
|
12467
|
-
specialCharacters?: "remove" | "trim" | "keep";
|
|
12468
|
-
|
|
12469
12806
|
fallbackSort?: {
|
|
12470
12807
|
order?: "asc" | "desc";
|
|
12471
12808
|
|
|
@@ -12473,6 +12810,8 @@ type PerfectionistSortSets = {
|
|
|
12473
12810
|
[k: string]: unknown | undefined;
|
|
12474
12811
|
};
|
|
12475
12812
|
|
|
12813
|
+
specialCharacters?: "remove" | "trim" | "keep";
|
|
12814
|
+
|
|
12476
12815
|
ignoreCase?: boolean;
|
|
12477
12816
|
|
|
12478
12817
|
alphabet?: string;
|
|
@@ -12487,13 +12826,30 @@ type PerfectionistSortSets = {
|
|
|
12487
12826
|
|
|
12488
12827
|
customGroups?: (
|
|
12489
12828
|
| {
|
|
12490
|
-
|
|
12829
|
+
newlinesInside?: "always" | "never";
|
|
12491
12830
|
|
|
12492
|
-
|
|
12831
|
+
fallbackSort?: {
|
|
12832
|
+
order?: "asc" | "desc";
|
|
12833
|
+
|
|
12834
|
+
type?:
|
|
12835
|
+
| "alphabetical"
|
|
12836
|
+
| "natural"
|
|
12837
|
+
| "line-length"
|
|
12838
|
+
| "custom"
|
|
12839
|
+
| "unsorted";
|
|
12840
|
+
[k: string]: unknown | undefined;
|
|
12841
|
+
};
|
|
12493
12842
|
|
|
12494
|
-
|
|
12843
|
+
groupName?: string;
|
|
12495
12844
|
|
|
12496
|
-
|
|
12845
|
+
order?: "asc" | "desc";
|
|
12846
|
+
|
|
12847
|
+
type?:
|
|
12848
|
+
| "alphabetical"
|
|
12849
|
+
| "natural"
|
|
12850
|
+
| "line-length"
|
|
12851
|
+
| "custom"
|
|
12852
|
+
| "unsorted";
|
|
12497
12853
|
anyOf?: {
|
|
12498
12854
|
selector?: "literal" | "spread";
|
|
12499
12855
|
|
|
@@ -12515,13 +12871,30 @@ type PerfectionistSortSets = {
|
|
|
12515
12871
|
}[];
|
|
12516
12872
|
}
|
|
12517
12873
|
| {
|
|
12518
|
-
|
|
12874
|
+
newlinesInside?: "always" | "never";
|
|
12519
12875
|
|
|
12520
|
-
|
|
12876
|
+
fallbackSort?: {
|
|
12877
|
+
order?: "asc" | "desc";
|
|
12521
12878
|
|
|
12522
|
-
|
|
12879
|
+
type?:
|
|
12880
|
+
| "alphabetical"
|
|
12881
|
+
| "natural"
|
|
12882
|
+
| "line-length"
|
|
12883
|
+
| "custom"
|
|
12884
|
+
| "unsorted";
|
|
12885
|
+
[k: string]: unknown | undefined;
|
|
12886
|
+
};
|
|
12523
12887
|
|
|
12524
|
-
|
|
12888
|
+
groupName?: string;
|
|
12889
|
+
|
|
12890
|
+
order?: "asc" | "desc";
|
|
12891
|
+
|
|
12892
|
+
type?:
|
|
12893
|
+
| "alphabetical"
|
|
12894
|
+
| "natural"
|
|
12895
|
+
| "line-length"
|
|
12896
|
+
| "custom"
|
|
12897
|
+
| "unsorted";
|
|
12525
12898
|
|
|
12526
12899
|
selector?: "literal" | "spread";
|
|
12527
12900
|
|
|
@@ -12634,8 +13007,6 @@ type PerfectionistSortSwitchCase =
|
|
|
12634
13007
|
| []
|
|
12635
13008
|
| [
|
|
12636
13009
|
{
|
|
12637
|
-
specialCharacters?: "remove" | "trim" | "keep";
|
|
12638
|
-
|
|
12639
13010
|
fallbackSort?: {
|
|
12640
13011
|
order?: "asc" | "desc";
|
|
12641
13012
|
|
|
@@ -12648,6 +13019,8 @@ type PerfectionistSortSwitchCase =
|
|
|
12648
13019
|
[k: string]: unknown | undefined;
|
|
12649
13020
|
};
|
|
12650
13021
|
|
|
13022
|
+
specialCharacters?: "remove" | "trim" | "keep";
|
|
13023
|
+
|
|
12651
13024
|
ignoreCase?: boolean;
|
|
12652
13025
|
|
|
12653
13026
|
alphabet?: string;
|
|
@@ -12669,8 +13042,6 @@ type PerfectionistSortUnionTypes =
|
|
|
12669
13042
|
| []
|
|
12670
13043
|
| [
|
|
12671
13044
|
{
|
|
12672
|
-
specialCharacters?: "remove" | "trim" | "keep";
|
|
12673
|
-
|
|
12674
13045
|
fallbackSort?: {
|
|
12675
13046
|
order?: "asc" | "desc";
|
|
12676
13047
|
|
|
@@ -12683,6 +13054,8 @@ type PerfectionistSortUnionTypes =
|
|
|
12683
13054
|
[k: string]: unknown | undefined;
|
|
12684
13055
|
};
|
|
12685
13056
|
|
|
13057
|
+
specialCharacters?: "remove" | "trim" | "keep";
|
|
13058
|
+
|
|
12686
13059
|
ignoreCase?: boolean;
|
|
12687
13060
|
|
|
12688
13061
|
alphabet?: string;
|
|
@@ -12773,8 +13146,6 @@ type PerfectionistSortVariableDeclarations =
|
|
|
12773
13146
|
| []
|
|
12774
13147
|
| [
|
|
12775
13148
|
{
|
|
12776
|
-
specialCharacters?: "remove" | "trim" | "keep";
|
|
12777
|
-
|
|
12778
13149
|
fallbackSort?: {
|
|
12779
13150
|
order?: "asc" | "desc";
|
|
12780
13151
|
|
|
@@ -12787,6 +13158,8 @@ type PerfectionistSortVariableDeclarations =
|
|
|
12787
13158
|
[k: string]: unknown | undefined;
|
|
12788
13159
|
};
|
|
12789
13160
|
|
|
13161
|
+
specialCharacters?: "remove" | "trim" | "keep";
|
|
13162
|
+
|
|
12790
13163
|
ignoreCase?: boolean;
|
|
12791
13164
|
|
|
12792
13165
|
alphabet?: string;
|
|
@@ -14697,7 +15070,7 @@ interface StylisticRuleOptions {
|
|
|
14697
15070
|
"@stylistic/semi"?: Linter.RuleEntry<StylisticSemi>;
|
|
14698
15071
|
/**
|
|
14699
15072
|
* Enforce consistent spacing before and after semicolons
|
|
14700
|
-
* @see https://eslint.style/rules/
|
|
15073
|
+
* @see https://eslint.style/rules/ts/semi-spacing
|
|
14701
15074
|
*/
|
|
14702
15075
|
"@stylistic/semi-spacing"?: Linter.RuleEntry<StylisticSemiSpacing>;
|
|
14703
15076
|
/**
|
|
@@ -16640,6 +17013,7 @@ type StylisticSpaceInfixOps =
|
|
|
16640
17013
|
| [
|
|
16641
17014
|
{
|
|
16642
17015
|
int32Hint?: boolean;
|
|
17016
|
+
ignoreTypes?: boolean;
|
|
16643
17017
|
},
|
|
16644
17018
|
];
|
|
16645
17019
|
// ----- @stylistic/space-unary-ops -----
|
|
@@ -18525,6 +18899,8 @@ type TypescriptEslintExplicitModuleBoundaryTypes =
|
|
|
18525
18899
|
|
|
18526
18900
|
allowHigherOrderFunctions?: boolean;
|
|
18527
18901
|
|
|
18902
|
+
allowOverloadFunctions?: boolean;
|
|
18903
|
+
|
|
18528
18904
|
allowTypedFunctionExpressions?: boolean;
|
|
18529
18905
|
},
|
|
18530
18906
|
];
|
|
@@ -22039,6 +22415,8 @@ type TypescriptEslintUnifiedSignatures =
|
|
|
22039
22415
|
| [
|
|
22040
22416
|
{
|
|
22041
22417
|
ignoreDifferentlyNamedParameters?: boolean;
|
|
22418
|
+
|
|
22419
|
+
ignoreOverloadsWithDifferentJSDoc?: boolean;
|
|
22042
22420
|
},
|
|
22043
22421
|
];
|
|
22044
22422
|
// ----- import/consistent-type-specifier-style -----
|
|
@@ -22426,702 +22804,642 @@ type ImportPreferDefaultExport =
|
|
|
22426
22804
|
interface UnicornRuleOptions {
|
|
22427
22805
|
/**
|
|
22428
22806
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
22429
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
22807
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/better-regex.md
|
|
22430
22808
|
*/
|
|
22431
22809
|
"unicorn/better-regex"?: Linter.RuleEntry<UnicornBetterRegex>;
|
|
22432
22810
|
/**
|
|
22433
22811
|
* Enforce a specific parameter name in catch clauses.
|
|
22434
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
22812
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/catch-error-name.md
|
|
22435
22813
|
*/
|
|
22436
22814
|
"unicorn/catch-error-name"?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
22815
|
+
/**
|
|
22816
|
+
* Enforce consistent assertion style with `node:assert`.
|
|
22817
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-assert.md
|
|
22818
|
+
*/
|
|
22819
|
+
"unicorn/consistent-assert"?: Linter.RuleEntry<[]>;
|
|
22820
|
+
/**
|
|
22821
|
+
* Prefer passing `Date` directly to the constructor when cloning.
|
|
22822
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-date-clone.md
|
|
22823
|
+
*/
|
|
22824
|
+
"unicorn/consistent-date-clone"?: Linter.RuleEntry<[]>;
|
|
22437
22825
|
/**
|
|
22438
22826
|
* Use destructured variables over properties.
|
|
22439
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
22827
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-destructuring.md
|
|
22440
22828
|
*/
|
|
22441
22829
|
"unicorn/consistent-destructuring"?: Linter.RuleEntry<[]>;
|
|
22442
22830
|
/**
|
|
22443
22831
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
22444
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
22832
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-empty-array-spread.md
|
|
22445
22833
|
*/
|
|
22446
22834
|
"unicorn/consistent-empty-array-spread"?: Linter.RuleEntry<[]>;
|
|
22447
22835
|
/**
|
|
22448
22836
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
22449
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
22837
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-existence-index-check.md
|
|
22450
22838
|
*/
|
|
22451
22839
|
"unicorn/consistent-existence-index-check"?: Linter.RuleEntry<[]>;
|
|
22452
22840
|
/**
|
|
22453
22841
|
* Move function definitions to the highest possible scope.
|
|
22454
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
22842
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-function-scoping.md
|
|
22455
22843
|
*/
|
|
22456
22844
|
"unicorn/consistent-function-scoping"?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
22457
22845
|
/**
|
|
22458
22846
|
* Enforce correct `Error` subclassing.
|
|
22459
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
22847
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/custom-error-definition.md
|
|
22460
22848
|
*/
|
|
22461
22849
|
"unicorn/custom-error-definition"?: Linter.RuleEntry<[]>;
|
|
22462
22850
|
/**
|
|
22463
22851
|
* Enforce no spaces between braces.
|
|
22464
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
22852
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/empty-brace-spaces.md
|
|
22465
22853
|
*/
|
|
22466
22854
|
"unicorn/empty-brace-spaces"?: Linter.RuleEntry<[]>;
|
|
22467
22855
|
/**
|
|
22468
22856
|
* Enforce passing a `message` value when creating a built-in error.
|
|
22469
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
22857
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/error-message.md
|
|
22470
22858
|
*/
|
|
22471
22859
|
"unicorn/error-message"?: Linter.RuleEntry<[]>;
|
|
22472
22860
|
/**
|
|
22473
22861
|
* Require escape sequences to use uppercase values.
|
|
22474
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
22862
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/escape-case.md
|
|
22475
22863
|
*/
|
|
22476
22864
|
"unicorn/escape-case"?: Linter.RuleEntry<[]>;
|
|
22477
22865
|
/**
|
|
22478
22866
|
* Add expiration conditions to TODO comments.
|
|
22479
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
22867
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/expiring-todo-comments.md
|
|
22480
22868
|
*/
|
|
22481
22869
|
"unicorn/expiring-todo-comments"?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
22482
22870
|
/**
|
|
22483
22871
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
22484
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
22872
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/explicit-length-check.md
|
|
22485
22873
|
*/
|
|
22486
22874
|
"unicorn/explicit-length-check"?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
22487
22875
|
/**
|
|
22488
22876
|
* Enforce a case style for filenames.
|
|
22489
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
22877
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/filename-case.md
|
|
22490
22878
|
*/
|
|
22491
22879
|
"unicorn/filename-case"?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
22492
|
-
/**
|
|
22493
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#import-index
|
|
22494
|
-
* @deprecated
|
|
22495
|
-
*/
|
|
22496
|
-
"unicorn/import-index"?: Linter.RuleEntry<[]>;
|
|
22497
22880
|
/**
|
|
22498
22881
|
* Enforce specific import styles per module.
|
|
22499
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
22882
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/import-style.md
|
|
22500
22883
|
*/
|
|
22501
22884
|
"unicorn/import-style"?: Linter.RuleEntry<UnicornImportStyle>;
|
|
22502
22885
|
/**
|
|
22503
22886
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
22504
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
22887
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/new-for-builtins.md
|
|
22505
22888
|
*/
|
|
22506
22889
|
"unicorn/new-for-builtins"?: Linter.RuleEntry<[]>;
|
|
22507
22890
|
/**
|
|
22508
22891
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
22509
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
22892
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
22510
22893
|
*/
|
|
22511
22894
|
"unicorn/no-abusive-eslint-disable"?: Linter.RuleEntry<[]>;
|
|
22895
|
+
/**
|
|
22896
|
+
* Disallow recursive access to `this` within getters and setters.
|
|
22897
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-accessor-recursion.md
|
|
22898
|
+
*/
|
|
22899
|
+
"unicorn/no-accessor-recursion"?: Linter.RuleEntry<[]>;
|
|
22512
22900
|
/**
|
|
22513
22901
|
* Disallow anonymous functions and classes as the default export.
|
|
22514
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
22902
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-anonymous-default-export.md
|
|
22515
22903
|
*/
|
|
22516
22904
|
"unicorn/no-anonymous-default-export"?: Linter.RuleEntry<[]>;
|
|
22517
22905
|
/**
|
|
22518
22906
|
* Prevent passing a function reference directly to iterator methods.
|
|
22519
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
22907
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-callback-reference.md
|
|
22520
22908
|
*/
|
|
22521
22909
|
"unicorn/no-array-callback-reference"?: Linter.RuleEntry<[]>;
|
|
22522
22910
|
/**
|
|
22523
22911
|
* Prefer `for…of` over the `forEach` method.
|
|
22524
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
22912
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-for-each.md
|
|
22525
22913
|
*/
|
|
22526
22914
|
"unicorn/no-array-for-each"?: Linter.RuleEntry<[]>;
|
|
22527
|
-
/**
|
|
22528
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-array-instanceof
|
|
22529
|
-
* @deprecated
|
|
22530
|
-
*/
|
|
22531
|
-
"unicorn/no-array-instanceof"?: Linter.RuleEntry<[]>;
|
|
22532
22915
|
/**
|
|
22533
22916
|
* Disallow using the `this` argument in array methods.
|
|
22534
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
22917
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-method-this-argument.md
|
|
22535
22918
|
*/
|
|
22536
22919
|
"unicorn/no-array-method-this-argument"?: Linter.RuleEntry<[]>;
|
|
22537
22920
|
/**
|
|
22538
22921
|
* Enforce combining multiple `Array#push()` into one call.
|
|
22539
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
22922
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-push-push.md
|
|
22540
22923
|
*/
|
|
22541
22924
|
"unicorn/no-array-push-push"?: Linter.RuleEntry<UnicornNoArrayPushPush>;
|
|
22542
22925
|
/**
|
|
22543
22926
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
22544
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
22927
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-reduce.md
|
|
22545
22928
|
*/
|
|
22546
22929
|
"unicorn/no-array-reduce"?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
22547
22930
|
/**
|
|
22548
22931
|
* Disallow member access from await expression.
|
|
22549
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
22932
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-expression-member.md
|
|
22550
22933
|
*/
|
|
22551
22934
|
"unicorn/no-await-expression-member"?: Linter.RuleEntry<[]>;
|
|
22552
22935
|
/**
|
|
22553
22936
|
* Disallow using `await` in `Promise` method parameters.
|
|
22554
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
22937
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-in-promise-methods.md
|
|
22555
22938
|
*/
|
|
22556
22939
|
"unicorn/no-await-in-promise-methods"?: Linter.RuleEntry<[]>;
|
|
22557
22940
|
/**
|
|
22558
22941
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
22559
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
22942
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-console-spaces.md
|
|
22560
22943
|
*/
|
|
22561
22944
|
"unicorn/no-console-spaces"?: Linter.RuleEntry<[]>;
|
|
22562
22945
|
/**
|
|
22563
22946
|
* Do not use `document.cookie` directly.
|
|
22564
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
22947
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-document-cookie.md
|
|
22565
22948
|
*/
|
|
22566
22949
|
"unicorn/no-document-cookie"?: Linter.RuleEntry<[]>;
|
|
22567
22950
|
/**
|
|
22568
22951
|
* Disallow empty files.
|
|
22569
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
22952
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-empty-file.md
|
|
22570
22953
|
*/
|
|
22571
22954
|
"unicorn/no-empty-file"?: Linter.RuleEntry<[]>;
|
|
22572
|
-
/**
|
|
22573
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-fn-reference-in-iterator
|
|
22574
|
-
* @deprecated
|
|
22575
|
-
*/
|
|
22576
|
-
"unicorn/no-fn-reference-in-iterator"?: Linter.RuleEntry<[]>;
|
|
22577
22955
|
/**
|
|
22578
22956
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
22579
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
22957
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-for-loop.md
|
|
22580
22958
|
*/
|
|
22581
22959
|
"unicorn/no-for-loop"?: Linter.RuleEntry<[]>;
|
|
22582
22960
|
/**
|
|
22583
22961
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
22584
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
22962
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-hex-escape.md
|
|
22585
22963
|
*/
|
|
22586
22964
|
"unicorn/no-hex-escape"?: Linter.RuleEntry<[]>;
|
|
22587
22965
|
/**
|
|
22588
|
-
*
|
|
22589
|
-
* @
|
|
22966
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/deprecated-rules.md#no-instanceof-array
|
|
22967
|
+
* @deprecated
|
|
22590
22968
|
*/
|
|
22591
22969
|
"unicorn/no-instanceof-array"?: Linter.RuleEntry<[]>;
|
|
22970
|
+
/**
|
|
22971
|
+
* Disallow `instanceof` with built-in objects
|
|
22972
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-instanceof-builtins.md
|
|
22973
|
+
*/
|
|
22974
|
+
"unicorn/no-instanceof-builtins"?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
|
|
22592
22975
|
/**
|
|
22593
22976
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
22594
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
22977
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-fetch-options.md
|
|
22595
22978
|
*/
|
|
22596
22979
|
"unicorn/no-invalid-fetch-options"?: Linter.RuleEntry<[]>;
|
|
22597
22980
|
/**
|
|
22598
22981
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
22599
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
22982
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
22600
22983
|
*/
|
|
22601
22984
|
"unicorn/no-invalid-remove-event-listener"?: Linter.RuleEntry<[]>;
|
|
22602
22985
|
/**
|
|
22603
22986
|
* Disallow identifiers starting with `new` or `class`.
|
|
22604
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
22987
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-keyword-prefix.md
|
|
22605
22988
|
*/
|
|
22606
22989
|
"unicorn/no-keyword-prefix"?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
22607
22990
|
/**
|
|
22608
22991
|
* Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
22609
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
22992
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-length-as-slice-end.md
|
|
22610
22993
|
*/
|
|
22611
22994
|
"unicorn/no-length-as-slice-end"?: Linter.RuleEntry<[]>;
|
|
22612
22995
|
/**
|
|
22613
22996
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
22614
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
22997
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-lonely-if.md
|
|
22615
22998
|
*/
|
|
22616
22999
|
"unicorn/no-lonely-if"?: Linter.RuleEntry<[]>;
|
|
22617
23000
|
/**
|
|
22618
23001
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
22619
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23002
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
22620
23003
|
*/
|
|
22621
23004
|
"unicorn/no-magic-array-flat-depth"?: Linter.RuleEntry<[]>;
|
|
23005
|
+
/**
|
|
23006
|
+
* Disallow named usage of default import and export.
|
|
23007
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-named-default.md
|
|
23008
|
+
*/
|
|
23009
|
+
"unicorn/no-named-default"?: Linter.RuleEntry<[]>;
|
|
22622
23010
|
/**
|
|
22623
23011
|
* Disallow negated conditions.
|
|
22624
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23012
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negated-condition.md
|
|
22625
23013
|
*/
|
|
22626
23014
|
"unicorn/no-negated-condition"?: Linter.RuleEntry<[]>;
|
|
22627
23015
|
/**
|
|
22628
23016
|
* Disallow negated expression in equality check.
|
|
22629
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23017
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negation-in-equality-check.md
|
|
22630
23018
|
*/
|
|
22631
23019
|
"unicorn/no-negation-in-equality-check"?: Linter.RuleEntry<[]>;
|
|
22632
23020
|
/**
|
|
22633
23021
|
* Disallow nested ternary expressions.
|
|
22634
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23022
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-nested-ternary.md
|
|
22635
23023
|
*/
|
|
22636
23024
|
"unicorn/no-nested-ternary"?: Linter.RuleEntry<[]>;
|
|
22637
23025
|
/**
|
|
22638
23026
|
* Disallow `new Array()`.
|
|
22639
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23027
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-array.md
|
|
22640
23028
|
*/
|
|
22641
23029
|
"unicorn/no-new-array"?: Linter.RuleEntry<[]>;
|
|
22642
23030
|
/**
|
|
22643
23031
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
22644
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23032
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-buffer.md
|
|
22645
23033
|
*/
|
|
22646
23034
|
"unicorn/no-new-buffer"?: Linter.RuleEntry<[]>;
|
|
22647
23035
|
/**
|
|
22648
23036
|
* Disallow the use of the `null` literal.
|
|
22649
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23037
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-null.md
|
|
22650
23038
|
*/
|
|
22651
23039
|
"unicorn/no-null"?: Linter.RuleEntry<UnicornNoNull>;
|
|
22652
23040
|
/**
|
|
22653
23041
|
* Disallow the use of objects as default parameters.
|
|
22654
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23042
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-object-as-default-parameter.md
|
|
22655
23043
|
*/
|
|
22656
23044
|
"unicorn/no-object-as-default-parameter"?: Linter.RuleEntry<[]>;
|
|
22657
23045
|
/**
|
|
22658
23046
|
* Disallow `process.exit()`.
|
|
22659
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23047
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-process-exit.md
|
|
22660
23048
|
*/
|
|
22661
23049
|
"unicorn/no-process-exit"?: Linter.RuleEntry<[]>;
|
|
22662
|
-
/**
|
|
22663
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-reduce
|
|
22664
|
-
* @deprecated
|
|
22665
|
-
*/
|
|
22666
|
-
"unicorn/no-reduce"?: Linter.RuleEntry<[]>;
|
|
22667
23050
|
/**
|
|
22668
23051
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
22669
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23052
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
22670
23053
|
*/
|
|
22671
23054
|
"unicorn/no-single-promise-in-promise-methods"?: Linter.RuleEntry<[]>;
|
|
22672
23055
|
/**
|
|
22673
23056
|
* Disallow classes that only have static members.
|
|
22674
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23057
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-static-only-class.md
|
|
22675
23058
|
*/
|
|
22676
23059
|
"unicorn/no-static-only-class"?: Linter.RuleEntry<[]>;
|
|
22677
23060
|
/**
|
|
22678
23061
|
* Disallow `then` property.
|
|
22679
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23062
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-thenable.md
|
|
22680
23063
|
*/
|
|
22681
23064
|
"unicorn/no-thenable"?: Linter.RuleEntry<[]>;
|
|
22682
23065
|
/**
|
|
22683
23066
|
* Disallow assigning `this` to a variable.
|
|
22684
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23067
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-this-assignment.md
|
|
22685
23068
|
*/
|
|
22686
23069
|
"unicorn/no-this-assignment"?: Linter.RuleEntry<[]>;
|
|
22687
23070
|
/**
|
|
22688
23071
|
* Disallow comparing `undefined` using `typeof`.
|
|
22689
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23072
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-typeof-undefined.md
|
|
22690
23073
|
*/
|
|
22691
23074
|
"unicorn/no-typeof-undefined"?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
22692
23075
|
/**
|
|
22693
23076
|
* Disallow awaiting non-promise values.
|
|
22694
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23077
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-await.md
|
|
22695
23078
|
*/
|
|
22696
23079
|
"unicorn/no-unnecessary-await"?: Linter.RuleEntry<[]>;
|
|
22697
23080
|
/**
|
|
22698
23081
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
22699
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23082
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
22700
23083
|
*/
|
|
22701
23084
|
"unicorn/no-unnecessary-polyfills"?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
22702
23085
|
/**
|
|
22703
23086
|
* Disallow unreadable array destructuring.
|
|
22704
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23087
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
22705
23088
|
*/
|
|
22706
23089
|
"unicorn/no-unreadable-array-destructuring"?: Linter.RuleEntry<[]>;
|
|
22707
23090
|
/**
|
|
22708
23091
|
* Disallow unreadable IIFEs.
|
|
22709
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23092
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-iife.md
|
|
22710
23093
|
*/
|
|
22711
23094
|
"unicorn/no-unreadable-iife"?: Linter.RuleEntry<[]>;
|
|
22712
|
-
/**
|
|
22713
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-unsafe-regex
|
|
22714
|
-
* @deprecated
|
|
22715
|
-
*/
|
|
22716
|
-
"unicorn/no-unsafe-regex"?: Linter.RuleEntry<[]>;
|
|
22717
23095
|
/**
|
|
22718
23096
|
* Disallow unused object properties.
|
|
22719
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23097
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unused-properties.md
|
|
22720
23098
|
*/
|
|
22721
23099
|
"unicorn/no-unused-properties"?: Linter.RuleEntry<[]>;
|
|
22722
23100
|
/**
|
|
22723
23101
|
* Disallow useless fallback when spreading in object literals.
|
|
22724
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23102
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
22725
23103
|
*/
|
|
22726
23104
|
"unicorn/no-useless-fallback-in-spread"?: Linter.RuleEntry<[]>;
|
|
22727
23105
|
/**
|
|
22728
23106
|
* Disallow useless array length check.
|
|
22729
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23107
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-length-check.md
|
|
22730
23108
|
*/
|
|
22731
23109
|
"unicorn/no-useless-length-check"?: Linter.RuleEntry<[]>;
|
|
22732
23110
|
/**
|
|
22733
23111
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
22734
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23112
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
22735
23113
|
*/
|
|
22736
23114
|
"unicorn/no-useless-promise-resolve-reject"?: Linter.RuleEntry<[]>;
|
|
22737
23115
|
/**
|
|
22738
23116
|
* Disallow unnecessary spread.
|
|
22739
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23117
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-spread.md
|
|
22740
23118
|
*/
|
|
22741
23119
|
"unicorn/no-useless-spread"?: Linter.RuleEntry<[]>;
|
|
22742
23120
|
/**
|
|
22743
23121
|
* Disallow useless case in switch statements.
|
|
22744
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23122
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-switch-case.md
|
|
22745
23123
|
*/
|
|
22746
23124
|
"unicorn/no-useless-switch-case"?: Linter.RuleEntry<[]>;
|
|
22747
23125
|
/**
|
|
22748
23126
|
* Disallow useless `undefined`.
|
|
22749
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23127
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-undefined.md
|
|
22750
23128
|
*/
|
|
22751
23129
|
"unicorn/no-useless-undefined"?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
22752
23130
|
/**
|
|
22753
23131
|
* Disallow number literals with zero fractions or dangling dots.
|
|
22754
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23132
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-zero-fractions.md
|
|
22755
23133
|
*/
|
|
22756
23134
|
"unicorn/no-zero-fractions"?: Linter.RuleEntry<[]>;
|
|
22757
23135
|
/**
|
|
22758
23136
|
* Enforce proper case for numeric literals.
|
|
22759
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23137
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/number-literal-case.md
|
|
22760
23138
|
*/
|
|
22761
23139
|
"unicorn/number-literal-case"?: Linter.RuleEntry<[]>;
|
|
22762
23140
|
/**
|
|
22763
23141
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
22764
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23142
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/numeric-separators-style.md
|
|
22765
23143
|
*/
|
|
22766
23144
|
"unicorn/numeric-separators-style"?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
22767
23145
|
/**
|
|
22768
23146
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
22769
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23147
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-add-event-listener.md
|
|
22770
23148
|
*/
|
|
22771
23149
|
"unicorn/prefer-add-event-listener"?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
22772
23150
|
/**
|
|
22773
23151
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
22774
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23152
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-find.md
|
|
22775
23153
|
*/
|
|
22776
23154
|
"unicorn/prefer-array-find"?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
22777
23155
|
/**
|
|
22778
23156
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
22779
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23157
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat.md
|
|
22780
23158
|
*/
|
|
22781
23159
|
"unicorn/prefer-array-flat"?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
22782
23160
|
/**
|
|
22783
23161
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
22784
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23162
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat-map.md
|
|
22785
23163
|
*/
|
|
22786
23164
|
"unicorn/prefer-array-flat-map"?: Linter.RuleEntry<[]>;
|
|
22787
23165
|
/**
|
|
22788
23166
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
22789
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23167
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-index-of.md
|
|
22790
23168
|
*/
|
|
22791
23169
|
"unicorn/prefer-array-index-of"?: Linter.RuleEntry<[]>;
|
|
22792
23170
|
/**
|
|
22793
23171
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
22794
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23172
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-some.md
|
|
22795
23173
|
*/
|
|
22796
23174
|
"unicorn/prefer-array-some"?: Linter.RuleEntry<[]>;
|
|
22797
23175
|
/**
|
|
22798
23176
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
22799
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23177
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-at.md
|
|
22800
23178
|
*/
|
|
22801
23179
|
"unicorn/prefer-at"?: Linter.RuleEntry<UnicornPreferAt>;
|
|
22802
23180
|
/**
|
|
22803
23181
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
22804
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23182
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
22805
23183
|
*/
|
|
22806
23184
|
"unicorn/prefer-blob-reading-methods"?: Linter.RuleEntry<[]>;
|
|
22807
23185
|
/**
|
|
22808
23186
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
22809
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23187
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-code-point.md
|
|
22810
23188
|
*/
|
|
22811
23189
|
"unicorn/prefer-code-point"?: Linter.RuleEntry<[]>;
|
|
22812
|
-
/**
|
|
22813
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-dataset
|
|
22814
|
-
* @deprecated
|
|
22815
|
-
*/
|
|
22816
|
-
"unicorn/prefer-dataset"?: Linter.RuleEntry<[]>;
|
|
22817
23190
|
/**
|
|
22818
23191
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
22819
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23192
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-date-now.md
|
|
22820
23193
|
*/
|
|
22821
23194
|
"unicorn/prefer-date-now"?: Linter.RuleEntry<[]>;
|
|
22822
23195
|
/**
|
|
22823
23196
|
* Prefer default parameters over reassignment.
|
|
22824
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23197
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-default-parameters.md
|
|
22825
23198
|
*/
|
|
22826
23199
|
"unicorn/prefer-default-parameters"?: Linter.RuleEntry<[]>;
|
|
22827
23200
|
/**
|
|
22828
23201
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
22829
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23202
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-append.md
|
|
22830
23203
|
*/
|
|
22831
23204
|
"unicorn/prefer-dom-node-append"?: Linter.RuleEntry<[]>;
|
|
22832
23205
|
/**
|
|
22833
23206
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
22834
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23207
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
22835
23208
|
*/
|
|
22836
23209
|
"unicorn/prefer-dom-node-dataset"?: Linter.RuleEntry<[]>;
|
|
22837
23210
|
/**
|
|
22838
23211
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
22839
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23212
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-remove.md
|
|
22840
23213
|
*/
|
|
22841
23214
|
"unicorn/prefer-dom-node-remove"?: Linter.RuleEntry<[]>;
|
|
22842
23215
|
/**
|
|
22843
23216
|
* Prefer `.textContent` over `.innerText`.
|
|
22844
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23217
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
22845
23218
|
*/
|
|
22846
23219
|
"unicorn/prefer-dom-node-text-content"?: Linter.RuleEntry<[]>;
|
|
22847
|
-
/**
|
|
22848
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-event-key
|
|
22849
|
-
* @deprecated
|
|
22850
|
-
*/
|
|
22851
|
-
"unicorn/prefer-event-key"?: Linter.RuleEntry<[]>;
|
|
22852
23220
|
/**
|
|
22853
23221
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
22854
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23222
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-event-target.md
|
|
22855
23223
|
*/
|
|
22856
23224
|
"unicorn/prefer-event-target"?: Linter.RuleEntry<[]>;
|
|
22857
|
-
/**
|
|
22858
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-exponentiation-operator
|
|
22859
|
-
* @deprecated
|
|
22860
|
-
*/
|
|
22861
|
-
"unicorn/prefer-exponentiation-operator"?: Linter.RuleEntry<[]>;
|
|
22862
23225
|
/**
|
|
22863
23226
|
* Prefer `export…from` when re-exporting.
|
|
22864
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23227
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-export-from.md
|
|
22865
23228
|
*/
|
|
22866
23229
|
"unicorn/prefer-export-from"?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
22867
|
-
/**
|
|
22868
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-flat-map
|
|
22869
|
-
* @deprecated
|
|
22870
|
-
*/
|
|
22871
|
-
"unicorn/prefer-flat-map"?: Linter.RuleEntry<[]>;
|
|
22872
23230
|
/**
|
|
22873
23231
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
22874
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23232
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-global-this.md
|
|
22875
23233
|
*/
|
|
22876
23234
|
"unicorn/prefer-global-this"?: Linter.RuleEntry<[]>;
|
|
22877
23235
|
/**
|
|
22878
23236
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
22879
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23237
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-includes.md
|
|
22880
23238
|
*/
|
|
22881
23239
|
"unicorn/prefer-includes"?: Linter.RuleEntry<[]>;
|
|
22882
23240
|
/**
|
|
22883
23241
|
* Prefer reading a JSON file as a buffer.
|
|
22884
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23242
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
22885
23243
|
*/
|
|
22886
23244
|
"unicorn/prefer-json-parse-buffer"?: Linter.RuleEntry<[]>;
|
|
22887
23245
|
/**
|
|
22888
23246
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
22889
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23247
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
22890
23248
|
*/
|
|
22891
23249
|
"unicorn/prefer-keyboard-event-key"?: Linter.RuleEntry<[]>;
|
|
22892
23250
|
/**
|
|
22893
23251
|
* Prefer using a logical operator over a ternary.
|
|
22894
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23252
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
22895
23253
|
*/
|
|
22896
23254
|
"unicorn/prefer-logical-operator-over-ternary"?: Linter.RuleEntry<[]>;
|
|
22897
23255
|
/**
|
|
22898
23256
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
22899
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23257
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-min-max.md
|
|
22900
23258
|
*/
|
|
22901
23259
|
"unicorn/prefer-math-min-max"?: Linter.RuleEntry<[]>;
|
|
22902
23260
|
/**
|
|
22903
23261
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
22904
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23262
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-trunc.md
|
|
22905
23263
|
*/
|
|
22906
23264
|
"unicorn/prefer-math-trunc"?: Linter.RuleEntry<[]>;
|
|
22907
23265
|
/**
|
|
22908
23266
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
22909
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23267
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
22910
23268
|
*/
|
|
22911
23269
|
"unicorn/prefer-modern-dom-apis"?: Linter.RuleEntry<[]>;
|
|
22912
23270
|
/**
|
|
22913
23271
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
22914
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23272
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-math-apis.md
|
|
22915
23273
|
*/
|
|
22916
23274
|
"unicorn/prefer-modern-math-apis"?: Linter.RuleEntry<[]>;
|
|
22917
23275
|
/**
|
|
22918
23276
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
22919
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23277
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-module.md
|
|
22920
23278
|
*/
|
|
22921
23279
|
"unicorn/prefer-module"?: Linter.RuleEntry<[]>;
|
|
22922
23280
|
/**
|
|
22923
23281
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
22924
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23282
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
22925
23283
|
*/
|
|
22926
23284
|
"unicorn/prefer-native-coercion-functions"?: Linter.RuleEntry<[]>;
|
|
22927
23285
|
/**
|
|
22928
23286
|
* Prefer negative index over `.length - index` when possible.
|
|
22929
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23287
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-negative-index.md
|
|
22930
23288
|
*/
|
|
22931
23289
|
"unicorn/prefer-negative-index"?: Linter.RuleEntry<[]>;
|
|
22932
|
-
/**
|
|
22933
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-node-append
|
|
22934
|
-
* @deprecated
|
|
22935
|
-
*/
|
|
22936
|
-
"unicorn/prefer-node-append"?: Linter.RuleEntry<[]>;
|
|
22937
23290
|
/**
|
|
22938
23291
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
22939
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23292
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-node-protocol.md
|
|
22940
23293
|
*/
|
|
22941
23294
|
"unicorn/prefer-node-protocol"?: Linter.RuleEntry<[]>;
|
|
22942
|
-
/**
|
|
22943
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-node-remove
|
|
22944
|
-
* @deprecated
|
|
22945
|
-
*/
|
|
22946
|
-
"unicorn/prefer-node-remove"?: Linter.RuleEntry<[]>;
|
|
22947
23295
|
/**
|
|
22948
23296
|
* Prefer `Number` static properties over global ones.
|
|
22949
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23297
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-number-properties.md
|
|
22950
23298
|
*/
|
|
22951
23299
|
"unicorn/prefer-number-properties"?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
22952
23300
|
/**
|
|
22953
23301
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
22954
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23302
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-object-from-entries.md
|
|
22955
23303
|
*/
|
|
22956
23304
|
"unicorn/prefer-object-from-entries"?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
22957
|
-
/**
|
|
22958
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-object-has-own
|
|
22959
|
-
* @deprecated
|
|
22960
|
-
*/
|
|
22961
|
-
"unicorn/prefer-object-has-own"?: Linter.RuleEntry<[]>;
|
|
22962
23305
|
/**
|
|
22963
23306
|
* Prefer omitting the `catch` binding parameter.
|
|
22964
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23307
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
22965
23308
|
*/
|
|
22966
23309
|
"unicorn/prefer-optional-catch-binding"?: Linter.RuleEntry<[]>;
|
|
22967
23310
|
/**
|
|
22968
23311
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
22969
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23312
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-prototype-methods.md
|
|
22970
23313
|
*/
|
|
22971
23314
|
"unicorn/prefer-prototype-methods"?: Linter.RuleEntry<[]>;
|
|
22972
23315
|
/**
|
|
22973
23316
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
22974
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23317
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-query-selector.md
|
|
22975
23318
|
*/
|
|
22976
23319
|
"unicorn/prefer-query-selector"?: Linter.RuleEntry<[]>;
|
|
22977
23320
|
/**
|
|
22978
23321
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
22979
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23322
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-reflect-apply.md
|
|
22980
23323
|
*/
|
|
22981
23324
|
"unicorn/prefer-reflect-apply"?: Linter.RuleEntry<[]>;
|
|
22982
23325
|
/**
|
|
22983
23326
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
22984
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23327
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-regexp-test.md
|
|
22985
23328
|
*/
|
|
22986
23329
|
"unicorn/prefer-regexp-test"?: Linter.RuleEntry<[]>;
|
|
22987
|
-
/**
|
|
22988
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-replace-all
|
|
22989
|
-
* @deprecated
|
|
22990
|
-
*/
|
|
22991
|
-
"unicorn/prefer-replace-all"?: Linter.RuleEntry<[]>;
|
|
22992
23330
|
/**
|
|
22993
23331
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
22994
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23332
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-has.md
|
|
22995
23333
|
*/
|
|
22996
23334
|
"unicorn/prefer-set-has"?: Linter.RuleEntry<[]>;
|
|
22997
23335
|
/**
|
|
22998
23336
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
22999
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23337
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-size.md
|
|
23000
23338
|
*/
|
|
23001
23339
|
"unicorn/prefer-set-size"?: Linter.RuleEntry<[]>;
|
|
23002
23340
|
/**
|
|
23003
23341
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
23004
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23342
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-spread.md
|
|
23005
23343
|
*/
|
|
23006
23344
|
"unicorn/prefer-spread"?: Linter.RuleEntry<[]>;
|
|
23007
|
-
/**
|
|
23008
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-starts-ends-with
|
|
23009
|
-
* @deprecated
|
|
23010
|
-
*/
|
|
23011
|
-
"unicorn/prefer-starts-ends-with"?: Linter.RuleEntry<[]>;
|
|
23012
23345
|
/**
|
|
23013
23346
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
23014
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23347
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-raw.md
|
|
23015
23348
|
*/
|
|
23016
23349
|
"unicorn/prefer-string-raw"?: Linter.RuleEntry<[]>;
|
|
23017
23350
|
/**
|
|
23018
23351
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
23019
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23352
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-replace-all.md
|
|
23020
23353
|
*/
|
|
23021
23354
|
"unicorn/prefer-string-replace-all"?: Linter.RuleEntry<[]>;
|
|
23022
23355
|
/**
|
|
23023
23356
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
23024
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23357
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-slice.md
|
|
23025
23358
|
*/
|
|
23026
23359
|
"unicorn/prefer-string-slice"?: Linter.RuleEntry<[]>;
|
|
23027
23360
|
/**
|
|
23028
23361
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
23029
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23362
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
23030
23363
|
*/
|
|
23031
23364
|
"unicorn/prefer-string-starts-ends-with"?: Linter.RuleEntry<[]>;
|
|
23032
23365
|
/**
|
|
23033
23366
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
23034
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23367
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
23035
23368
|
*/
|
|
23036
23369
|
"unicorn/prefer-string-trim-start-end"?: Linter.RuleEntry<[]>;
|
|
23037
23370
|
/**
|
|
23038
23371
|
* Prefer using `structuredClone` to create a deep clone.
|
|
23039
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23372
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-structured-clone.md
|
|
23040
23373
|
*/
|
|
23041
23374
|
"unicorn/prefer-structured-clone"?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
23042
23375
|
/**
|
|
23043
23376
|
* Prefer `switch` over multiple `else-if`.
|
|
23044
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23377
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-switch.md
|
|
23045
23378
|
*/
|
|
23046
23379
|
"unicorn/prefer-switch"?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
23047
23380
|
/**
|
|
23048
23381
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
23049
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23382
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-ternary.md
|
|
23050
23383
|
*/
|
|
23051
23384
|
"unicorn/prefer-ternary"?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
23052
|
-
/**
|
|
23053
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-text-content
|
|
23054
|
-
* @deprecated
|
|
23055
|
-
*/
|
|
23056
|
-
"unicorn/prefer-text-content"?: Linter.RuleEntry<[]>;
|
|
23057
23385
|
/**
|
|
23058
23386
|
* Prefer top-level await over top-level promises and async function calls.
|
|
23059
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23387
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-top-level-await.md
|
|
23060
23388
|
*/
|
|
23061
23389
|
"unicorn/prefer-top-level-await"?: Linter.RuleEntry<[]>;
|
|
23062
|
-
/**
|
|
23063
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-trim-start-end
|
|
23064
|
-
* @deprecated
|
|
23065
|
-
*/
|
|
23066
|
-
"unicorn/prefer-trim-start-end"?: Linter.RuleEntry<[]>;
|
|
23067
23390
|
/**
|
|
23068
23391
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
23069
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23392
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-type-error.md
|
|
23070
23393
|
*/
|
|
23071
23394
|
"unicorn/prefer-type-error"?: Linter.RuleEntry<[]>;
|
|
23072
23395
|
/**
|
|
23073
23396
|
* Prevent abbreviations.
|
|
23074
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23397
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prevent-abbreviations.md
|
|
23075
23398
|
*/
|
|
23076
23399
|
"unicorn/prevent-abbreviations"?: Linter.RuleEntry<UnicornPreventAbbreviations>;
|
|
23077
|
-
/**
|
|
23078
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#regex-shorthand
|
|
23079
|
-
* @deprecated
|
|
23080
|
-
*/
|
|
23081
|
-
"unicorn/regex-shorthand"?: Linter.RuleEntry<[]>;
|
|
23082
23400
|
/**
|
|
23083
23401
|
* Enforce consistent relative URL style.
|
|
23084
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23402
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/relative-url-style.md
|
|
23085
23403
|
*/
|
|
23086
23404
|
"unicorn/relative-url-style"?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
23087
23405
|
/**
|
|
23088
23406
|
* Enforce using the separator argument with `Array#join()`.
|
|
23089
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23407
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-array-join-separator.md
|
|
23090
23408
|
*/
|
|
23091
23409
|
"unicorn/require-array-join-separator"?: Linter.RuleEntry<[]>;
|
|
23092
23410
|
/**
|
|
23093
23411
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
23094
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23412
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
23095
23413
|
*/
|
|
23096
23414
|
"unicorn/require-number-to-fixed-digits-argument"?: Linter.RuleEntry<[]>;
|
|
23097
23415
|
/**
|
|
23098
23416
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
23099
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23417
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-post-message-target-origin.md
|
|
23100
23418
|
*/
|
|
23101
23419
|
"unicorn/require-post-message-target-origin"?: Linter.RuleEntry<[]>;
|
|
23102
23420
|
/**
|
|
23103
23421
|
* Enforce better string content.
|
|
23104
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23422
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/string-content.md
|
|
23105
23423
|
*/
|
|
23106
23424
|
"unicorn/string-content"?: Linter.RuleEntry<UnicornStringContent>;
|
|
23107
23425
|
/**
|
|
23108
23426
|
* Enforce consistent brace style for `case` clauses.
|
|
23109
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23427
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/switch-case-braces.md
|
|
23110
23428
|
*/
|
|
23111
23429
|
"unicorn/switch-case-braces"?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
23112
23430
|
/**
|
|
23113
23431
|
* Fix whitespace-insensitive template indentation.
|
|
23114
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23432
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/template-indent.md
|
|
23115
23433
|
*/
|
|
23116
23434
|
"unicorn/template-indent"?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
23117
23435
|
/**
|
|
23118
23436
|
* Enforce consistent case for text encoding identifiers.
|
|
23119
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23437
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/text-encoding-identifier-case.md
|
|
23120
23438
|
*/
|
|
23121
23439
|
"unicorn/text-encoding-identifier-case"?: Linter.RuleEntry<[]>;
|
|
23122
23440
|
/**
|
|
23123
23441
|
* Require `new` when creating an error.
|
|
23124
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
23442
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/throw-new-error.md
|
|
23125
23443
|
*/
|
|
23126
23444
|
"unicorn/throw-new-error"?: Linter.RuleEntry<[]>;
|
|
23127
23445
|
}
|
|
@@ -23230,6 +23548,17 @@ type UnicornNoArrayReduce =
|
|
|
23230
23548
|
allowSimpleOperations?: boolean;
|
|
23231
23549
|
},
|
|
23232
23550
|
];
|
|
23551
|
+
// ----- unicorn/no-instanceof-builtins -----
|
|
23552
|
+
type UnicornNoInstanceofBuiltins =
|
|
23553
|
+
| []
|
|
23554
|
+
| [
|
|
23555
|
+
{
|
|
23556
|
+
useErrorIsError?: boolean;
|
|
23557
|
+
strategy?: "loose" | "strict";
|
|
23558
|
+
include?: string[];
|
|
23559
|
+
exclude?: string[];
|
|
23560
|
+
},
|
|
23561
|
+
];
|
|
23233
23562
|
// ----- unicorn/no-keyword-prefix -----
|
|
23234
23563
|
type UnicornNoKeywordPrefix =
|
|
23235
23564
|
| []
|
|
@@ -23954,6 +24283,7 @@ type RuleOptionsUnion = BuiltinsRuleOptions &
|
|
|
23954
24283
|
YmlRuleOptions;
|
|
23955
24284
|
|
|
23956
24285
|
type Awaitable<T> = T | Promise<T>;
|
|
24286
|
+
type UnPromise<T> = T extends Promise<infer U> ? U : T;
|
|
23957
24287
|
type Rules = RuleOptionsUnion;
|
|
23958
24288
|
type LanguageOptions = Linter.Config["languageOptions"];
|
|
23959
24289
|
type TypedFlatConfigItem = Omit<Linter.Config<Linter.RulesRecord & Rules>, "plugins"> & {
|
|
@@ -24224,7 +24554,7 @@ declare function jsse(options?: OptionsConfig & TypedFlatConfigItem, ...userConf
|
|
|
24224
24554
|
declare function defineConfig(options?: OptionsConfig & TypedFlatConfigItem, ...userConfigs: (TypedFlatConfigItem | TypedFlatConfigItem[])[]): Promise<TypedFlatConfigItem[]>;
|
|
24225
24555
|
type DefineConfig = typeof defineConfig;
|
|
24226
24556
|
|
|
24227
|
-
declare const VERSION = "0.
|
|
24557
|
+
declare const VERSION = "0.3.1";
|
|
24228
24558
|
|
|
24229
24559
|
declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
24230
24560
|
declare const GLOB_JS_SRC_EXT = "?([cm])js?(x)";
|
|
@@ -24281,6 +24611,16 @@ declare namespace globs {
|
|
|
24281
24611
|
export { globs_GLOB_ALL_SRC as GLOB_ALL_SRC, globs_GLOB_CSS as GLOB_CSS, globs_GLOB_EXCLUDE as GLOB_EXCLUDE, globs_GLOB_GRAPHQL as GLOB_GRAPHQL, globs_GLOB_HTML as GLOB_HTML, globs_GLOB_JS as GLOB_JS, globs_GLOB_JSON as GLOB_JSON, globs_GLOB_JSON5 as GLOB_JSON5, globs_GLOB_JSONC as GLOB_JSONC, globs_GLOB_JSX as GLOB_JSX, globs_GLOB_JS_SRC_EXT as GLOB_JS_SRC_EXT, globs_GLOB_LESS as GLOB_LESS, globs_GLOB_MARKDOWN as GLOB_MARKDOWN, globs_GLOB_MARKDOWN_CODE as GLOB_MARKDOWN_CODE, globs_GLOB_MARKDOWN_IN_MARKDOWN as GLOB_MARKDOWN_IN_MARKDOWN, globs_GLOB_SCSS as GLOB_SCSS, globs_GLOB_SRC as GLOB_SRC, globs_GLOB_SRC_EXT as GLOB_SRC_EXT, globs_GLOB_STYLE as GLOB_STYLE, globs_GLOB_TESTS as GLOB_TESTS, globs_GLOB_TOML as GLOB_TOML, globs_GLOB_TS as GLOB_TS, globs_GLOB_TSCONFIG as GLOB_TSCONFIG, globs_GLOB_TSX as GLOB_TSX, globs_GLOB_YAML as GLOB_YAML };
|
|
24282
24612
|
}
|
|
24283
24613
|
|
|
24614
|
+
declare function importPluginUnicorn(): Promise<{
|
|
24615
|
+
pluginUnicorn: eslint.ESLint.Plugin & {
|
|
24616
|
+
configs: {
|
|
24617
|
+
recommended: eslint.Linter.FlatConfig;
|
|
24618
|
+
all: eslint.Linter.FlatConfig;
|
|
24619
|
+
"flat/all": eslint.Linter.FlatConfig;
|
|
24620
|
+
"flat/recommended": eslint.Linter.FlatConfig;
|
|
24621
|
+
};
|
|
24622
|
+
};
|
|
24623
|
+
}>;
|
|
24284
24624
|
declare function importPluginReact(): Promise<{
|
|
24285
24625
|
pluginReact: {
|
|
24286
24626
|
deprecatedRules: Partial<{
|
|
@@ -24555,7 +24895,7 @@ declare function importPluginReact(): Promise<{
|
|
|
24555
24895
|
};
|
|
24556
24896
|
}>;
|
|
24557
24897
|
declare function importPluginReactHooks(): Promise<{
|
|
24558
|
-
pluginReactHooks:
|
|
24898
|
+
pluginReactHooks: typeof eslint_plugin_react_hooks;
|
|
24559
24899
|
}>;
|
|
24560
24900
|
declare function importPluginReactRefresh(): Promise<{
|
|
24561
24901
|
pluginReactRefresh: {
|
|
@@ -24852,7 +25192,7 @@ declare function importReactPlugins(): Promise<{
|
|
|
24852
25192
|
flat: Record<string, eslint_plugin_react.ReactFlatConfig>;
|
|
24853
25193
|
};
|
|
24854
25194
|
};
|
|
24855
|
-
pluginReactHooks:
|
|
25195
|
+
pluginReactHooks: typeof eslint_plugin_react_hooks;
|
|
24856
25196
|
pluginReactRefresh: {
|
|
24857
25197
|
rules: Record<string, any>;
|
|
24858
25198
|
configs: {
|
|
@@ -25824,7 +26164,10 @@ declare function importPluginTsdoc(): Promise<{
|
|
|
25824
26164
|
};
|
|
25825
26165
|
}>;
|
|
25826
26166
|
declare function importPluginStylistic(): Promise<{
|
|
25827
|
-
pluginStylistic:
|
|
26167
|
+
pluginStylistic: {
|
|
26168
|
+
rules: _stylistic_eslint_plugin.Rules;
|
|
26169
|
+
configs: eslint.ESLint.Plugin["configs"] & _stylistic_eslint_plugin.Configs;
|
|
26170
|
+
};
|
|
25828
26171
|
}>;
|
|
25829
26172
|
declare function importPluginTailwind(): Promise<{
|
|
25830
26173
|
pluginTailwind: any;
|
|
@@ -25885,4 +26228,4 @@ declare function changeRuleEntrySeverity(ruleConfig: Linter.RuleEntry<any>, leve
|
|
|
25885
26228
|
declare function error2warn<T extends TypedFlatConfigItem>(configs: T[]): T[];
|
|
25886
26229
|
declare function warn2error<T extends TypedFlatConfigItem>(configs: T[]): T[];
|
|
25887
26230
|
|
|
25888
|
-
export { type Awaitable, type EslintConfigFn, type LanguageOptions, type OptionsCommon, type OptionsComponentExts, type OptionsConfig, type OptionsFiles, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsOverrides, type OptionsPrefix, type OptionsReact, type OptionsStylistic, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsTypescript, type PromiseFlatConfigItem, type RenamePefix, type RuleName, type Rules, SLOW_RULES, type StylisticConfig, type TailwindEslintSettings, type TailwindOptions, type TypedFlatConfigItem, type TypedFlatConfigItemWithId, VERSION, changeRuleEntrySeverity, combine, combineAsync, jsse as default, defineConfig, error2warn, globs, importJsoncLibs, importParserJsonc, importPluginJsdoc, importPluginJsonc, importPluginMarkdown, importPluginReact, importPluginReactHooks, importPluginReactRefresh, importPluginStylistic, importPluginTailwind, importPluginTsdoc, importReactPlugins, importYmlLibs, interopDefault, isCI, isInEditor, jsse, jsseReact, parserPlain, renameRules, safeImportPluginTailwind, turnOffRules, uniqueStrings, warn2error };
|
|
26231
|
+
export { type Awaitable, type EslintConfigFn, type LanguageOptions, type OptionsCommon, type OptionsComponentExts, type OptionsConfig, type OptionsFiles, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsOverrides, type OptionsPrefix, type OptionsReact, type OptionsStylistic, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsTypescript, type PromiseFlatConfigItem, type RenamePefix, type RuleName, type Rules, SLOW_RULES, type StylisticConfig, type TailwindEslintSettings, type TailwindOptions, type TypedFlatConfigItem, type TypedFlatConfigItemWithId, type UnPromise, VERSION, changeRuleEntrySeverity, combine, combineAsync, jsse as default, defineConfig, error2warn, globs, importJsoncLibs, importParserJsonc, importPluginJsdoc, importPluginJsonc, importPluginMarkdown, importPluginReact, importPluginReactHooks, importPluginReactRefresh, importPluginStylistic, importPluginTailwind, importPluginTsdoc, importPluginUnicorn, importReactPlugins, importYmlLibs, interopDefault, isCI, isInEditor, jsse, jsseReact, parserPlain, renameRules, safeImportPluginTailwind, turnOffRules, uniqueStrings, warn2error };
|