@jsse/eslint-config 0.2.32 → 0.3.0

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/dist/index.d.ts CHANGED
@@ -9977,6 +9977,13 @@ interface PerfectionistRuleOptions {
9977
9977
  type PerfectionistSortArrayIncludes = {
9978
9978
  specialCharacters?: "remove" | "trim" | "keep";
9979
9979
 
9980
+ fallbackSort?: {
9981
+ order?: "asc" | "desc";
9982
+
9983
+ type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
9984
+ [k: string]: unknown | undefined;
9985
+ };
9986
+
9980
9987
  ignoreCase?: boolean;
9981
9988
 
9982
9989
  alphabet?: string;
@@ -9985,6 +9992,8 @@ type PerfectionistSortArrayIncludes = {
9985
9992
 
9986
9993
  order?: "asc" | "desc";
9987
9994
 
9995
+ type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
9996
+
9988
9997
  groupKind?: "mixed" | "literals-first" | "spreads-first";
9989
9998
 
9990
9999
  customGroups?: (
@@ -9999,7 +10008,21 @@ type PerfectionistSortArrayIncludes = {
9999
10008
  anyOf?: {
10000
10009
  selector?: "literal" | "spread";
10001
10010
 
10002
- elementNamePattern?: string;
10011
+ elementNamePattern?:
10012
+ | (
10013
+ | {
10014
+ pattern?: string;
10015
+ flags?: string;
10016
+ }
10017
+ | string
10018
+ )[]
10019
+ | (
10020
+ | {
10021
+ pattern?: string;
10022
+ flags?: string;
10023
+ }
10024
+ | string
10025
+ );
10003
10026
  }[];
10004
10027
  }
10005
10028
  | {
@@ -10013,23 +10036,96 @@ type PerfectionistSortArrayIncludes = {
10013
10036
 
10014
10037
  selector?: "literal" | "spread";
10015
10038
 
10016
- elementNamePattern?: string;
10039
+ elementNamePattern?:
10040
+ | (
10041
+ | {
10042
+ pattern?: string;
10043
+ flags?: string;
10044
+ }
10045
+ | string
10046
+ )[]
10047
+ | (
10048
+ | {
10049
+ pattern?: string;
10050
+ flags?: string;
10051
+ }
10052
+ | string
10053
+ );
10017
10054
  }
10018
10055
  )[];
10019
10056
  useConfigurationIf?: {
10020
- allNamesMatchPattern?: string;
10057
+ allNamesMatchPattern?:
10058
+ | (
10059
+ | {
10060
+ pattern?: string;
10061
+ flags?: string;
10062
+ }
10063
+ | string
10064
+ )[]
10065
+ | (
10066
+ | {
10067
+ pattern?: string;
10068
+ flags?: string;
10069
+ }
10070
+ | string
10071
+ );
10021
10072
  };
10022
10073
 
10023
- type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
10024
-
10025
10074
  partitionByComment?:
10026
- | string[]
10027
10075
  | boolean
10028
- | string
10076
+ | (
10077
+ | (
10078
+ | {
10079
+ pattern?: string;
10080
+ flags?: string;
10081
+ }
10082
+ | string
10083
+ )[]
10084
+ | (
10085
+ | {
10086
+ pattern?: string;
10087
+ flags?: string;
10088
+ }
10089
+ | string
10090
+ )
10091
+ )
10029
10092
  | {
10030
- block?: string[] | boolean | string;
10031
- line?: string[] | boolean | string;
10032
- [k: string]: unknown | undefined;
10093
+ block?:
10094
+ | boolean
10095
+ | (
10096
+ | (
10097
+ | {
10098
+ pattern?: string;
10099
+ flags?: string;
10100
+ }
10101
+ | string
10102
+ )[]
10103
+ | (
10104
+ | {
10105
+ pattern?: string;
10106
+ flags?: string;
10107
+ }
10108
+ | string
10109
+ )
10110
+ );
10111
+ line?:
10112
+ | boolean
10113
+ | (
10114
+ | (
10115
+ | {
10116
+ pattern?: string;
10117
+ flags?: string;
10118
+ }
10119
+ | string
10120
+ )[]
10121
+ | (
10122
+ | {
10123
+ pattern?: string;
10124
+ flags?: string;
10125
+ }
10126
+ | string
10127
+ )
10128
+ );
10033
10129
  };
10034
10130
 
10035
10131
  partitionByNewLine?: boolean;
@@ -10041,7 +10137,6 @@ type PerfectionistSortArrayIncludes = {
10041
10137
  | string[]
10042
10138
  | {
10043
10139
  newlinesBetween?: "ignore" | "always" | "never";
10044
- [k: string]: unknown | undefined;
10045
10140
  }
10046
10141
  )[];
10047
10142
  }[];
@@ -10052,6 +10147,18 @@ type PerfectionistSortClasses =
10052
10147
  {
10053
10148
  specialCharacters?: "remove" | "trim" | "keep";
10054
10149
 
10150
+ fallbackSort?: {
10151
+ order?: "asc" | "desc";
10152
+
10153
+ type?:
10154
+ | "alphabetical"
10155
+ | "natural"
10156
+ | "line-length"
10157
+ | "custom"
10158
+ | "unsorted";
10159
+ [k: string]: unknown | undefined;
10160
+ };
10161
+
10055
10162
  ignoreCase?: boolean;
10056
10163
 
10057
10164
  alphabet?: string;
@@ -10060,7 +10167,12 @@ type PerfectionistSortClasses =
10060
10167
 
10061
10168
  order?: "asc" | "desc";
10062
10169
 
10063
- ignoreCallbackDependenciesPatterns?: string[];
10170
+ type?:
10171
+ | "alphabetical"
10172
+ | "natural"
10173
+ | "line-length"
10174
+ | "custom"
10175
+ | "unsorted";
10064
10176
 
10065
10177
  customGroups?: (
10066
10178
  | {
@@ -10072,8 +10184,6 @@ type PerfectionistSortClasses =
10072
10184
 
10073
10185
  newlinesInside?: "always" | "never";
10074
10186
  anyOf?: {
10075
- decoratorNamePattern?: string;
10076
-
10077
10187
  modifiers?: (
10078
10188
  | "async"
10079
10189
  | "protected"
@@ -10099,9 +10209,53 @@ type PerfectionistSortClasses =
10099
10209
  | "property"
10100
10210
  | "method";
10101
10211
 
10102
- elementValuePattern?: string;
10103
-
10104
- elementNamePattern?: string;
10212
+ decoratorNamePattern?:
10213
+ | (
10214
+ | {
10215
+ pattern?: string;
10216
+ flags?: string;
10217
+ }
10218
+ | string
10219
+ )[]
10220
+ | (
10221
+ | {
10222
+ pattern?: string;
10223
+ flags?: string;
10224
+ }
10225
+ | string
10226
+ );
10227
+
10228
+ elementValuePattern?:
10229
+ | (
10230
+ | {
10231
+ pattern?: string;
10232
+ flags?: string;
10233
+ }
10234
+ | string
10235
+ )[]
10236
+ | (
10237
+ | {
10238
+ pattern?: string;
10239
+ flags?: string;
10240
+ }
10241
+ | string
10242
+ );
10243
+
10244
+ elementNamePattern?:
10245
+ | (
10246
+ | {
10247
+ pattern?: string;
10248
+ flags?: string;
10249
+ }
10250
+ | string
10251
+ )[]
10252
+ | (
10253
+ | {
10254
+ pattern?: string;
10255
+ flags?: string;
10256
+ }
10257
+ | string
10258
+ );
10105
10259
  }[];
10106
10260
  }
10107
10261
  | {
@@ -10113,8 +10267,6 @@ type PerfectionistSortClasses =
10113
10267
 
10114
10268
  newlinesInside?: "always" | "never";
10115
10269
 
10116
- decoratorNamePattern?: string;
10117
-
10118
10270
  modifiers?: (
10119
10271
  | "async"
10120
10272
  | "protected"
@@ -10140,34 +10292,138 @@ type PerfectionistSortClasses =
10140
10292
  | "property"
10141
10293
  | "method";
10142
10294
 
10143
- elementValuePattern?: string;
10144
-
10145
- elementNamePattern?: string;
10295
+ decoratorNamePattern?:
10296
+ | (
10297
+ | {
10298
+ pattern?: string;
10299
+ flags?: string;
10300
+ }
10301
+ | string
10302
+ )[]
10303
+ | (
10304
+ | {
10305
+ pattern?: string;
10306
+ flags?: string;
10307
+ }
10308
+ | string
10309
+ );
10310
+
10311
+ elementValuePattern?:
10312
+ | (
10313
+ | {
10314
+ pattern?: string;
10315
+ flags?: string;
10316
+ }
10317
+ | string
10318
+ )[]
10319
+ | (
10320
+ | {
10321
+ pattern?: string;
10322
+ flags?: string;
10323
+ }
10324
+ | string
10325
+ );
10326
+
10327
+ elementNamePattern?:
10328
+ | (
10329
+ | {
10330
+ pattern?: string;
10331
+ flags?: string;
10332
+ }
10333
+ | string
10334
+ )[]
10335
+ | (
10336
+ | {
10337
+ pattern?: string;
10338
+ flags?: string;
10339
+ }
10340
+ | string
10341
+ );
10146
10342
  }
10147
10343
  )[];
10148
10344
 
10345
+ ignoreCallbackDependenciesPatterns?:
10346
+ | (
10347
+ | {
10348
+ pattern?: string;
10349
+ flags?: string;
10350
+ }
10351
+ | string
10352
+ )[]
10353
+ | (
10354
+ | {
10355
+ pattern?: string;
10356
+ flags?: string;
10357
+ }
10358
+ | string
10359
+ );
10360
+
10149
10361
  partitionByComment?:
10150
- | string[]
10151
10362
  | boolean
10152
- | string
10363
+ | (
10364
+ | (
10365
+ | {
10366
+ pattern?: string;
10367
+ flags?: string;
10368
+ }
10369
+ | string
10370
+ )[]
10371
+ | (
10372
+ | {
10373
+ pattern?: string;
10374
+ flags?: string;
10375
+ }
10376
+ | string
10377
+ )
10378
+ )
10153
10379
  | {
10154
- block?: string[] | boolean | string;
10155
- line?: string[] | boolean | string;
10156
- [k: string]: unknown | undefined;
10380
+ block?:
10381
+ | boolean
10382
+ | (
10383
+ | (
10384
+ | {
10385
+ pattern?: string;
10386
+ flags?: string;
10387
+ }
10388
+ | string
10389
+ )[]
10390
+ | (
10391
+ | {
10392
+ pattern?: string;
10393
+ flags?: string;
10394
+ }
10395
+ | string
10396
+ )
10397
+ );
10398
+ line?:
10399
+ | boolean
10400
+ | (
10401
+ | (
10402
+ | {
10403
+ pattern?: string;
10404
+ flags?: string;
10405
+ }
10406
+ | string
10407
+ )[]
10408
+ | (
10409
+ | {
10410
+ pattern?: string;
10411
+ flags?: string;
10412
+ }
10413
+ | string
10414
+ )
10415
+ );
10157
10416
  };
10158
10417
 
10159
10418
  partitionByNewLine?: boolean;
10160
10419
 
10161
10420
  newlinesBetween?: "ignore" | "always" | "never";
10162
10421
 
10163
- type?: "alphabetical" | "natural" | "line-length" | "custom";
10164
-
10165
10422
  groups?: (
10166
10423
  | string
10167
10424
  | string[]
10168
10425
  | {
10169
10426
  newlinesBetween?: "ignore" | "always" | "never";
10170
- [k: string]: unknown | undefined;
10171
10427
  }
10172
10428
  )[];
10173
10429
  },
@@ -10179,6 +10435,18 @@ type PerfectionistSortDecorators =
10179
10435
  {
10180
10436
  specialCharacters?: "remove" | "trim" | "keep";
10181
10437
 
10438
+ fallbackSort?: {
10439
+ order?: "asc" | "desc";
10440
+
10441
+ type?:
10442
+ | "alphabetical"
10443
+ | "natural"
10444
+ | "line-length"
10445
+ | "custom"
10446
+ | "unsorted";
10447
+ [k: string]: unknown | undefined;
10448
+ };
10449
+
10182
10450
  ignoreCase?: boolean;
10183
10451
 
10184
10452
  alphabet?: string;
@@ -10187,6 +10455,13 @@ type PerfectionistSortDecorators =
10187
10455
 
10188
10456
  order?: "asc" | "desc";
10189
10457
 
10458
+ type?:
10459
+ | "alphabetical"
10460
+ | "natural"
10461
+ | "line-length"
10462
+ | "custom"
10463
+ | "unsorted";
10464
+
10190
10465
  sortOnParameters?: boolean;
10191
10466
 
10192
10467
  sortOnProperties?: boolean;
@@ -10198,27 +10473,71 @@ type PerfectionistSortDecorators =
10198
10473
  sortOnClasses?: boolean;
10199
10474
 
10200
10475
  partitionByComment?:
10201
- | string[]
10202
10476
  | boolean
10203
- | string
10477
+ | (
10478
+ | (
10479
+ | {
10480
+ pattern?: string;
10481
+ flags?: string;
10482
+ }
10483
+ | string
10484
+ )[]
10485
+ | (
10486
+ | {
10487
+ pattern?: string;
10488
+ flags?: string;
10489
+ }
10490
+ | string
10491
+ )
10492
+ )
10204
10493
  | {
10205
- block?: string[] | boolean | string;
10206
- line?: string[] | boolean | string;
10207
- [k: string]: unknown | undefined;
10494
+ block?:
10495
+ | boolean
10496
+ | (
10497
+ | (
10498
+ | {
10499
+ pattern?: string;
10500
+ flags?: string;
10501
+ }
10502
+ | string
10503
+ )[]
10504
+ | (
10505
+ | {
10506
+ pattern?: string;
10507
+ flags?: string;
10508
+ }
10509
+ | string
10510
+ )
10511
+ );
10512
+ line?:
10513
+ | boolean
10514
+ | (
10515
+ | (
10516
+ | {
10517
+ pattern?: string;
10518
+ flags?: string;
10519
+ }
10520
+ | string
10521
+ )[]
10522
+ | (
10523
+ | {
10524
+ pattern?: string;
10525
+ flags?: string;
10526
+ }
10527
+ | string
10528
+ )
10529
+ );
10208
10530
  };
10209
10531
 
10210
10532
  customGroups?: {
10211
10533
  [k: string]: (string | string[]) | undefined;
10212
10534
  };
10213
10535
 
10214
- type?: "alphabetical" | "natural" | "line-length" | "custom";
10215
-
10216
10536
  groups?: (
10217
10537
  | string
10218
10538
  | string[]
10219
10539
  | {
10220
10540
  newlinesBetween?: "ignore" | "always" | "never";
10221
- [k: string]: unknown | undefined;
10222
10541
  }
10223
10542
  )[];
10224
10543
  },
@@ -10230,6 +10549,18 @@ type PerfectionistSortEnums =
10230
10549
  {
10231
10550
  specialCharacters?: "remove" | "trim" | "keep";
10232
10551
 
10552
+ fallbackSort?: {
10553
+ order?: "asc" | "desc";
10554
+
10555
+ type?:
10556
+ | "alphabetical"
10557
+ | "natural"
10558
+ | "line-length"
10559
+ | "custom"
10560
+ | "unsorted";
10561
+ [k: string]: unknown | undefined;
10562
+ };
10563
+
10233
10564
  ignoreCase?: boolean;
10234
10565
 
10235
10566
  alphabet?: string;
@@ -10238,6 +10569,13 @@ type PerfectionistSortEnums =
10238
10569
 
10239
10570
  order?: "asc" | "desc";
10240
10571
 
10572
+ type?:
10573
+ | "alphabetical"
10574
+ | "natural"
10575
+ | "line-length"
10576
+ | "custom"
10577
+ | "unsorted";
10578
+
10241
10579
  forceNumericSort?: boolean;
10242
10580
  customGroups?:
10243
10581
  | {
@@ -10257,9 +10595,37 @@ type PerfectionistSortEnums =
10257
10595
 
10258
10596
  newlinesInside?: "always" | "never";
10259
10597
  anyOf?: {
10260
- elementValuePattern?: string;
10261
-
10262
- elementNamePattern?: string;
10598
+ elementValuePattern?:
10599
+ | (
10600
+ | {
10601
+ pattern?: string;
10602
+ flags?: string;
10603
+ }
10604
+ | string
10605
+ )[]
10606
+ | (
10607
+ | {
10608
+ pattern?: string;
10609
+ flags?: string;
10610
+ }
10611
+ | string
10612
+ );
10613
+
10614
+ elementNamePattern?:
10615
+ | (
10616
+ | {
10617
+ pattern?: string;
10618
+ flags?: string;
10619
+ }
10620
+ | string
10621
+ )[]
10622
+ | (
10623
+ | {
10624
+ pattern?: string;
10625
+ flags?: string;
10626
+ }
10627
+ | string
10628
+ );
10263
10629
  }[];
10264
10630
  }
10265
10631
  | {
@@ -10275,36 +10641,108 @@ type PerfectionistSortEnums =
10275
10641
 
10276
10642
  newlinesInside?: "always" | "never";
10277
10643
 
10278
- elementValuePattern?: string;
10279
-
10280
- elementNamePattern?: string;
10644
+ elementValuePattern?:
10645
+ | (
10646
+ | {
10647
+ pattern?: string;
10648
+ flags?: string;
10649
+ }
10650
+ | string
10651
+ )[]
10652
+ | (
10653
+ | {
10654
+ pattern?: string;
10655
+ flags?: string;
10656
+ }
10657
+ | string
10658
+ );
10659
+
10660
+ elementNamePattern?:
10661
+ | (
10662
+ | {
10663
+ pattern?: string;
10664
+ flags?: string;
10665
+ }
10666
+ | string
10667
+ )[]
10668
+ | (
10669
+ | {
10670
+ pattern?: string;
10671
+ flags?: string;
10672
+ }
10673
+ | string
10674
+ );
10281
10675
  }
10282
10676
  )[];
10283
10677
 
10284
10678
  sortByValue?: boolean;
10285
10679
 
10286
10680
  partitionByComment?:
10287
- | string[]
10288
10681
  | boolean
10289
- | string
10682
+ | (
10683
+ | (
10684
+ | {
10685
+ pattern?: string;
10686
+ flags?: string;
10687
+ }
10688
+ | string
10689
+ )[]
10690
+ | (
10691
+ | {
10692
+ pattern?: string;
10693
+ flags?: string;
10694
+ }
10695
+ | string
10696
+ )
10697
+ )
10290
10698
  | {
10291
- block?: string[] | boolean | string;
10292
- line?: string[] | boolean | string;
10293
- [k: string]: unknown | undefined;
10699
+ block?:
10700
+ | boolean
10701
+ | (
10702
+ | (
10703
+ | {
10704
+ pattern?: string;
10705
+ flags?: string;
10706
+ }
10707
+ | string
10708
+ )[]
10709
+ | (
10710
+ | {
10711
+ pattern?: string;
10712
+ flags?: string;
10713
+ }
10714
+ | string
10715
+ )
10716
+ );
10717
+ line?:
10718
+ | boolean
10719
+ | (
10720
+ | (
10721
+ | {
10722
+ pattern?: string;
10723
+ flags?: string;
10724
+ }
10725
+ | string
10726
+ )[]
10727
+ | (
10728
+ | {
10729
+ pattern?: string;
10730
+ flags?: string;
10731
+ }
10732
+ | string
10733
+ )
10734
+ );
10294
10735
  };
10295
10736
 
10296
10737
  partitionByNewLine?: boolean;
10297
10738
 
10298
10739
  newlinesBetween?: "ignore" | "always" | "never";
10299
10740
 
10300
- type?: "alphabetical" | "natural" | "line-length" | "custom";
10301
-
10302
10741
  groups?: (
10303
10742
  | string
10304
10743
  | string[]
10305
10744
  | {
10306
10745
  newlinesBetween?: "ignore" | "always" | "never";
10307
- [k: string]: unknown | undefined;
10308
10746
  }
10309
10747
  )[];
10310
10748
  },
@@ -10316,6 +10754,18 @@ type PerfectionistSortExports =
10316
10754
  {
10317
10755
  specialCharacters?: "remove" | "trim" | "keep";
10318
10756
 
10757
+ fallbackSort?: {
10758
+ order?: "asc" | "desc";
10759
+
10760
+ type?:
10761
+ | "alphabetical"
10762
+ | "natural"
10763
+ | "line-length"
10764
+ | "custom"
10765
+ | "unsorted";
10766
+ [k: string]: unknown | undefined;
10767
+ };
10768
+
10319
10769
  ignoreCase?: boolean;
10320
10770
 
10321
10771
  alphabet?: string;
@@ -10324,21 +10774,73 @@ type PerfectionistSortExports =
10324
10774
 
10325
10775
  order?: "asc" | "desc";
10326
10776
 
10777
+ type?:
10778
+ | "alphabetical"
10779
+ | "natural"
10780
+ | "line-length"
10781
+ | "custom"
10782
+ | "unsorted";
10783
+
10327
10784
  groupKind?: "mixed" | "values-first" | "types-first";
10328
10785
 
10329
10786
  partitionByComment?:
10330
- | string[]
10331
10787
  | boolean
10332
- | string
10788
+ | (
10789
+ | (
10790
+ | {
10791
+ pattern?: string;
10792
+ flags?: string;
10793
+ }
10794
+ | string
10795
+ )[]
10796
+ | (
10797
+ | {
10798
+ pattern?: string;
10799
+ flags?: string;
10800
+ }
10801
+ | string
10802
+ )
10803
+ )
10333
10804
  | {
10334
- block?: string[] | boolean | string;
10335
- line?: string[] | boolean | string;
10336
- [k: string]: unknown | undefined;
10805
+ block?:
10806
+ | boolean
10807
+ | (
10808
+ | (
10809
+ | {
10810
+ pattern?: string;
10811
+ flags?: string;
10812
+ }
10813
+ | string
10814
+ )[]
10815
+ | (
10816
+ | {
10817
+ pattern?: string;
10818
+ flags?: string;
10819
+ }
10820
+ | string
10821
+ )
10822
+ );
10823
+ line?:
10824
+ | boolean
10825
+ | (
10826
+ | (
10827
+ | {
10828
+ pattern?: string;
10829
+ flags?: string;
10830
+ }
10831
+ | string
10832
+ )[]
10833
+ | (
10834
+ | {
10835
+ pattern?: string;
10836
+ flags?: string;
10837
+ }
10838
+ | string
10839
+ )
10840
+ );
10337
10841
  };
10338
10842
 
10339
10843
  partitionByNewLine?: boolean;
10340
-
10341
- type?: "alphabetical" | "natural" | "line-length" | "custom";
10342
10844
  },
10343
10845
  ];
10344
10846
  // ----- perfectionist/sort-heritage-clauses -----
@@ -10348,6 +10850,18 @@ type PerfectionistSortHeritageClauses =
10348
10850
  {
10349
10851
  specialCharacters?: "remove" | "trim" | "keep";
10350
10852
 
10853
+ fallbackSort?: {
10854
+ order?: "asc" | "desc";
10855
+
10856
+ type?:
10857
+ | "alphabetical"
10858
+ | "natural"
10859
+ | "line-length"
10860
+ | "custom"
10861
+ | "unsorted";
10862
+ [k: string]: unknown | undefined;
10863
+ };
10864
+
10351
10865
  ignoreCase?: boolean;
10352
10866
 
10353
10867
  alphabet?: string;
@@ -10356,18 +10870,22 @@ type PerfectionistSortHeritageClauses =
10356
10870
 
10357
10871
  order?: "asc" | "desc";
10358
10872
 
10873
+ type?:
10874
+ | "alphabetical"
10875
+ | "natural"
10876
+ | "line-length"
10877
+ | "custom"
10878
+ | "unsorted";
10879
+
10359
10880
  customGroups?: {
10360
10881
  [k: string]: (string | string[]) | undefined;
10361
10882
  };
10362
10883
 
10363
- type?: "alphabetical" | "natural" | "line-length" | "custom";
10364
-
10365
10884
  groups?: (
10366
10885
  | string
10367
10886
  | string[]
10368
10887
  | {
10369
10888
  newlinesBetween?: "ignore" | "always" | "never";
10370
- [k: string]: unknown | undefined;
10371
10889
  }
10372
10890
  )[];
10373
10891
  },
@@ -10378,6 +10896,13 @@ type _PerfectionistSortImportsSortImports =
10378
10896
  _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType & {
10379
10897
  specialCharacters?: "remove" | "trim" | "keep";
10380
10898
 
10899
+ fallbackSort?: {
10900
+ order?: "asc" | "desc";
10901
+
10902
+ type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
10903
+ [k: string]: unknown | undefined;
10904
+ };
10905
+
10381
10906
  ignoreCase?: boolean;
10382
10907
 
10383
10908
  alphabet?: string;
@@ -10386,6 +10911,8 @@ type _PerfectionistSortImportsSortImports =
10386
10911
 
10387
10912
  order?: "asc" | "desc";
10388
10913
 
10914
+ type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
10915
+
10389
10916
  customGroups?: {
10390
10917
  value?: {
10391
10918
  [k: string]: unknown | undefined;
@@ -10396,8 +10923,6 @@ type _PerfectionistSortImportsSortImports =
10396
10923
  };
10397
10924
  };
10398
10925
 
10399
- internalPattern?: string[];
10400
-
10401
10926
  maxLineLength?: number;
10402
10927
 
10403
10928
  sortSideEffects?: boolean;
@@ -10407,27 +10932,87 @@ type _PerfectionistSortImportsSortImports =
10407
10932
  tsconfigRootDir?: string;
10408
10933
 
10409
10934
  partitionByComment?:
10410
- | string[]
10411
10935
  | boolean
10412
- | string
10936
+ | (
10937
+ | (
10938
+ | {
10939
+ pattern?: string;
10940
+ flags?: string;
10941
+ }
10942
+ | string
10943
+ )[]
10944
+ | (
10945
+ | {
10946
+ pattern?: string;
10947
+ flags?: string;
10948
+ }
10949
+ | string
10950
+ )
10951
+ )
10413
10952
  | {
10414
- block?: string[] | boolean | string;
10415
- line?: string[] | boolean | string;
10416
- [k: string]: unknown | undefined;
10953
+ block?:
10954
+ | boolean
10955
+ | (
10956
+ | (
10957
+ | {
10958
+ pattern?: string;
10959
+ flags?: string;
10960
+ }
10961
+ | string
10962
+ )[]
10963
+ | (
10964
+ | {
10965
+ pattern?: string;
10966
+ flags?: string;
10967
+ }
10968
+ | string
10969
+ )
10970
+ );
10971
+ line?:
10972
+ | boolean
10973
+ | (
10974
+ | (
10975
+ | {
10976
+ pattern?: string;
10977
+ flags?: string;
10978
+ }
10979
+ | string
10980
+ )[]
10981
+ | (
10982
+ | {
10983
+ pattern?: string;
10984
+ flags?: string;
10985
+ }
10986
+ | string
10987
+ )
10988
+ );
10417
10989
  };
10418
10990
 
10419
10991
  partitionByNewLine?: boolean;
10420
10992
 
10421
10993
  newlinesBetween?: "ignore" | "always" | "never";
10422
10994
 
10423
- type?: "alphabetical" | "natural" | "line-length" | "custom";
10995
+ internalPattern?:
10996
+ | (
10997
+ | {
10998
+ pattern?: string;
10999
+ flags?: string;
11000
+ }
11001
+ | string
11002
+ )[]
11003
+ | (
11004
+ | {
11005
+ pattern?: string;
11006
+ flags?: string;
11007
+ }
11008
+ | string
11009
+ );
10424
11010
 
10425
11011
  groups?: (
10426
11012
  | string
10427
11013
  | string[]
10428
11014
  | {
10429
11015
  newlinesBetween?: "ignore" | "always" | "never";
10430
- [k: string]: unknown | undefined;
10431
11016
  }
10432
11017
  )[];
10433
11018
  };
@@ -10444,6 +11029,13 @@ interface _PerfectionistSortImports_IsLineLength {
10444
11029
  type PerfectionistSortInterfaces = {
10445
11030
  specialCharacters?: "remove" | "trim" | "keep";
10446
11031
 
11032
+ fallbackSort?: {
11033
+ order?: "asc" | "desc";
11034
+
11035
+ type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
11036
+ [k: string]: unknown | undefined;
11037
+ };
11038
+
10447
11039
  ignoreCase?: boolean;
10448
11040
 
10449
11041
  alphabet?: string;
@@ -10452,11 +11044,7 @@ type PerfectionistSortInterfaces = {
10452
11044
 
10453
11045
  order?: "asc" | "desc";
10454
11046
 
10455
- ignorePattern?: string[];
10456
- useConfigurationIf?: {
10457
- allNamesMatchPattern?: string;
10458
- declarationMatchesPattern?: string;
10459
- };
11047
+ type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
10460
11048
  customGroups?:
10461
11049
  | {
10462
11050
  [k: string]: (string | string[]) | undefined;
@@ -10480,7 +11068,21 @@ type PerfectionistSortInterfaces = {
10480
11068
  | "multiline"
10481
11069
  | "property";
10482
11070
 
10483
- elementNamePattern?: string;
11071
+ elementNamePattern?:
11072
+ | (
11073
+ | {
11074
+ pattern?: string;
11075
+ flags?: string;
11076
+ }
11077
+ | string
11078
+ )[]
11079
+ | (
11080
+ | {
11081
+ pattern?: string;
11082
+ flags?: string;
11083
+ }
11084
+ | string
11085
+ );
10484
11086
  }[];
10485
11087
  }
10486
11088
  | {
@@ -10501,34 +11103,141 @@ type PerfectionistSortInterfaces = {
10501
11103
  | "multiline"
10502
11104
  | "property";
10503
11105
 
10504
- elementNamePattern?: string;
11106
+ elementNamePattern?:
11107
+ | (
11108
+ | {
11109
+ pattern?: string;
11110
+ flags?: string;
11111
+ }
11112
+ | string
11113
+ )[]
11114
+ | (
11115
+ | {
11116
+ pattern?: string;
11117
+ flags?: string;
11118
+ }
11119
+ | string
11120
+ );
10505
11121
  }
10506
11122
  )[];
11123
+ useConfigurationIf?: {
11124
+ allNamesMatchPattern?:
11125
+ | (
11126
+ | {
11127
+ pattern?: string;
11128
+ flags?: string;
11129
+ }
11130
+ | string
11131
+ )[]
11132
+ | (
11133
+ | {
11134
+ pattern?: string;
11135
+ flags?: string;
11136
+ }
11137
+ | string
11138
+ );
11139
+
11140
+ declarationMatchesPattern?:
11141
+ | (
11142
+ | {
11143
+ pattern?: string;
11144
+ flags?: string;
11145
+ }
11146
+ | string
11147
+ )[]
11148
+ | (
11149
+ | {
11150
+ pattern?: string;
11151
+ flags?: string;
11152
+ }
11153
+ | string
11154
+ );
11155
+ };
11156
+
11157
+ groupKind?: "mixed" | "required-first" | "optional-first";
10507
11158
 
10508
- groupKind?: "mixed" | "required-first" | "optional-first";
10509
-
10510
- type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
10511
-
10512
11159
  partitionByComment?:
10513
- | string[]
10514
11160
  | boolean
10515
- | string
11161
+ | (
11162
+ | (
11163
+ | {
11164
+ pattern?: string;
11165
+ flags?: string;
11166
+ }
11167
+ | string
11168
+ )[]
11169
+ | (
11170
+ | {
11171
+ pattern?: string;
11172
+ flags?: string;
11173
+ }
11174
+ | string
11175
+ )
11176
+ )
10516
11177
  | {
10517
- block?: string[] | boolean | string;
10518
- line?: string[] | boolean | string;
10519
- [k: string]: unknown | undefined;
11178
+ block?:
11179
+ | boolean
11180
+ | (
11181
+ | (
11182
+ | {
11183
+ pattern?: string;
11184
+ flags?: string;
11185
+ }
11186
+ | string
11187
+ )[]
11188
+ | (
11189
+ | {
11190
+ pattern?: string;
11191
+ flags?: string;
11192
+ }
11193
+ | string
11194
+ )
11195
+ );
11196
+ line?:
11197
+ | boolean
11198
+ | (
11199
+ | (
11200
+ | {
11201
+ pattern?: string;
11202
+ flags?: string;
11203
+ }
11204
+ | string
11205
+ )[]
11206
+ | (
11207
+ | {
11208
+ pattern?: string;
11209
+ flags?: string;
11210
+ }
11211
+ | string
11212
+ )
11213
+ );
10520
11214
  };
10521
11215
 
10522
11216
  partitionByNewLine?: boolean;
10523
11217
 
10524
11218
  newlinesBetween?: "ignore" | "always" | "never";
10525
11219
 
11220
+ ignorePattern?:
11221
+ | (
11222
+ | {
11223
+ pattern?: string;
11224
+ flags?: string;
11225
+ }
11226
+ | string
11227
+ )[]
11228
+ | (
11229
+ | {
11230
+ pattern?: string;
11231
+ flags?: string;
11232
+ }
11233
+ | string
11234
+ );
11235
+
10526
11236
  groups?: (
10527
11237
  | string
10528
11238
  | string[]
10529
11239
  | {
10530
11240
  newlinesBetween?: "ignore" | "always" | "never";
10531
- [k: string]: unknown | undefined;
10532
11241
  }
10533
11242
  )[];
10534
11243
  }[];
@@ -10539,6 +11248,18 @@ type PerfectionistSortIntersectionTypes =
10539
11248
  {
10540
11249
  specialCharacters?: "remove" | "trim" | "keep";
10541
11250
 
11251
+ fallbackSort?: {
11252
+ order?: "asc" | "desc";
11253
+
11254
+ type?:
11255
+ | "alphabetical"
11256
+ | "natural"
11257
+ | "line-length"
11258
+ | "custom"
11259
+ | "unsorted";
11260
+ [k: string]: unknown | undefined;
11261
+ };
11262
+
10542
11263
  ignoreCase?: boolean;
10543
11264
 
10544
11265
  alphabet?: string;
@@ -10547,73 +11268,180 @@ type PerfectionistSortIntersectionTypes =
10547
11268
 
10548
11269
  order?: "asc" | "desc";
10549
11270
 
11271
+ type?:
11272
+ | "alphabetical"
11273
+ | "natural"
11274
+ | "line-length"
11275
+ | "custom"
11276
+ | "unsorted";
11277
+
10550
11278
  partitionByComment?:
10551
- | string[]
10552
11279
  | boolean
10553
- | string
11280
+ | (
11281
+ | (
11282
+ | {
11283
+ pattern?: string;
11284
+ flags?: string;
11285
+ }
11286
+ | string
11287
+ )[]
11288
+ | (
11289
+ | {
11290
+ pattern?: string;
11291
+ flags?: string;
11292
+ }
11293
+ | string
11294
+ )
11295
+ )
10554
11296
  | {
10555
- block?: string[] | boolean | string;
10556
- line?: string[] | boolean | string;
10557
- [k: string]: unknown | undefined;
11297
+ block?:
11298
+ | boolean
11299
+ | (
11300
+ | (
11301
+ | {
11302
+ pattern?: string;
11303
+ flags?: string;
11304
+ }
11305
+ | string
11306
+ )[]
11307
+ | (
11308
+ | {
11309
+ pattern?: string;
11310
+ flags?: string;
11311
+ }
11312
+ | string
11313
+ )
11314
+ );
11315
+ line?:
11316
+ | boolean
11317
+ | (
11318
+ | (
11319
+ | {
11320
+ pattern?: string;
11321
+ flags?: string;
11322
+ }
11323
+ | string
11324
+ )[]
11325
+ | (
11326
+ | {
11327
+ pattern?: string;
11328
+ flags?: string;
11329
+ }
11330
+ | string
11331
+ )
11332
+ );
10558
11333
  };
10559
11334
 
10560
11335
  partitionByNewLine?: boolean;
10561
11336
 
10562
11337
  newlinesBetween?: "ignore" | "always" | "never";
10563
11338
 
10564
- type?: "alphabetical" | "natural" | "line-length" | "custom";
10565
-
10566
11339
  groups?: (
10567
11340
  | string
10568
11341
  | string[]
10569
11342
  | {
10570
11343
  newlinesBetween?: "ignore" | "always" | "never";
10571
- [k: string]: unknown | undefined;
10572
11344
  }
10573
11345
  )[];
10574
11346
  },
10575
11347
  ];
10576
11348
  // ----- perfectionist/sort-jsx-props -----
10577
- type PerfectionistSortJsxProps =
10578
- | []
10579
- | [
10580
- {
10581
- specialCharacters?: "remove" | "trim" | "keep";
10582
-
10583
- ignoreCase?: boolean;
10584
-
10585
- alphabet?: string;
11349
+ type PerfectionistSortJsxProps = {
11350
+ specialCharacters?: "remove" | "trim" | "keep";
10586
11351
 
10587
- locales?: string | string[];
11352
+ fallbackSort?: {
11353
+ order?: "asc" | "desc";
10588
11354
 
10589
- order?: "asc" | "desc";
11355
+ type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
11356
+ [k: string]: unknown | undefined;
11357
+ };
10590
11358
 
10591
- ignorePattern?: string[];
11359
+ ignoreCase?: boolean;
10592
11360
 
10593
- partitionByNewLine?: boolean;
11361
+ alphabet?: string;
10594
11362
 
10595
- newlinesBetween?: "ignore" | "always" | "never";
11363
+ locales?: string | string[];
10596
11364
 
10597
- customGroups?: {
10598
- [k: string]: (string | string[]) | undefined;
10599
- };
11365
+ order?: "asc" | "desc";
10600
11366
 
10601
- type?: "alphabetical" | "natural" | "line-length" | "custom";
11367
+ type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
11368
+ useConfigurationIf?: {
11369
+ allNamesMatchPattern?:
11370
+ | (
11371
+ | {
11372
+ pattern?: string;
11373
+ flags?: string;
11374
+ }
11375
+ | string
11376
+ )[]
11377
+ | (
11378
+ | {
11379
+ pattern?: string;
11380
+ flags?: string;
11381
+ }
11382
+ | string
11383
+ );
10602
11384
 
10603
- groups?: (
11385
+ tagMatchesPattern?:
11386
+ | (
11387
+ | {
11388
+ pattern?: string;
11389
+ flags?: string;
11390
+ }
10604
11391
  | string
10605
- | string[]
11392
+ )[]
11393
+ | (
10606
11394
  | {
10607
- newlinesBetween?: "ignore" | "always" | "never";
10608
- [k: string]: unknown | undefined;
11395
+ pattern?: string;
11396
+ flags?: string;
10609
11397
  }
10610
- )[];
10611
- },
10612
- ];
11398
+ | string
11399
+ );
11400
+ };
11401
+
11402
+ partitionByNewLine?: boolean;
11403
+
11404
+ newlinesBetween?: "ignore" | "always" | "never";
11405
+
11406
+ customGroups?: {
11407
+ [k: string]: (string | string[]) | undefined;
11408
+ };
11409
+
11410
+ ignorePattern?:
11411
+ | (
11412
+ | {
11413
+ pattern?: string;
11414
+ flags?: string;
11415
+ }
11416
+ | string
11417
+ )[]
11418
+ | (
11419
+ | {
11420
+ pattern?: string;
11421
+ flags?: string;
11422
+ }
11423
+ | string
11424
+ );
11425
+
11426
+ groups?: (
11427
+ | string
11428
+ | string[]
11429
+ | {
11430
+ newlinesBetween?: "ignore" | "always" | "never";
11431
+ }
11432
+ )[];
11433
+ }[];
10613
11434
  // ----- perfectionist/sort-maps -----
10614
11435
  type PerfectionistSortMaps = {
10615
11436
  specialCharacters?: "remove" | "trim" | "keep";
10616
11437
 
11438
+ fallbackSort?: {
11439
+ order?: "asc" | "desc";
11440
+
11441
+ type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
11442
+ [k: string]: unknown | undefined;
11443
+ };
11444
+
10617
11445
  ignoreCase?: boolean;
10618
11446
 
10619
11447
  alphabet?: string;
@@ -10622,6 +11450,8 @@ type PerfectionistSortMaps = {
10622
11450
 
10623
11451
  order?: "asc" | "desc";
10624
11452
 
11453
+ type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
11454
+
10625
11455
  customGroups?: (
10626
11456
  | {
10627
11457
  groupName?: string;
@@ -10632,7 +11462,21 @@ type PerfectionistSortMaps = {
10632
11462
 
10633
11463
  newlinesInside?: "always" | "never";
10634
11464
  anyOf?: {
10635
- elementNamePattern?: string;
11465
+ elementNamePattern?:
11466
+ | (
11467
+ | {
11468
+ pattern?: string;
11469
+ flags?: string;
11470
+ }
11471
+ | string
11472
+ )[]
11473
+ | (
11474
+ | {
11475
+ pattern?: string;
11476
+ flags?: string;
11477
+ }
11478
+ | string
11479
+ );
10636
11480
  }[];
10637
11481
  }
10638
11482
  | {
@@ -10644,35 +11488,107 @@ type PerfectionistSortMaps = {
10644
11488
 
10645
11489
  newlinesInside?: "always" | "never";
10646
11490
 
10647
- elementNamePattern?: string;
11491
+ elementNamePattern?:
11492
+ | (
11493
+ | {
11494
+ pattern?: string;
11495
+ flags?: string;
11496
+ }
11497
+ | string
11498
+ )[]
11499
+ | (
11500
+ | {
11501
+ pattern?: string;
11502
+ flags?: string;
11503
+ }
11504
+ | string
11505
+ );
10648
11506
  }
10649
11507
  )[];
10650
11508
  useConfigurationIf?: {
10651
- allNamesMatchPattern?: string;
11509
+ allNamesMatchPattern?:
11510
+ | (
11511
+ | {
11512
+ pattern?: string;
11513
+ flags?: string;
11514
+ }
11515
+ | string
11516
+ )[]
11517
+ | (
11518
+ | {
11519
+ pattern?: string;
11520
+ flags?: string;
11521
+ }
11522
+ | string
11523
+ );
10652
11524
  };
10653
11525
 
10654
11526
  partitionByComment?:
10655
- | string[]
10656
11527
  | boolean
10657
- | string
11528
+ | (
11529
+ | (
11530
+ | {
11531
+ pattern?: string;
11532
+ flags?: string;
11533
+ }
11534
+ | string
11535
+ )[]
11536
+ | (
11537
+ | {
11538
+ pattern?: string;
11539
+ flags?: string;
11540
+ }
11541
+ | string
11542
+ )
11543
+ )
10658
11544
  | {
10659
- block?: string[] | boolean | string;
10660
- line?: string[] | boolean | string;
10661
- [k: string]: unknown | undefined;
11545
+ block?:
11546
+ | boolean
11547
+ | (
11548
+ | (
11549
+ | {
11550
+ pattern?: string;
11551
+ flags?: string;
11552
+ }
11553
+ | string
11554
+ )[]
11555
+ | (
11556
+ | {
11557
+ pattern?: string;
11558
+ flags?: string;
11559
+ }
11560
+ | string
11561
+ )
11562
+ );
11563
+ line?:
11564
+ | boolean
11565
+ | (
11566
+ | (
11567
+ | {
11568
+ pattern?: string;
11569
+ flags?: string;
11570
+ }
11571
+ | string
11572
+ )[]
11573
+ | (
11574
+ | {
11575
+ pattern?: string;
11576
+ flags?: string;
11577
+ }
11578
+ | string
11579
+ )
11580
+ );
10662
11581
  };
10663
11582
 
10664
11583
  partitionByNewLine?: boolean;
10665
11584
 
10666
11585
  newlinesBetween?: "ignore" | "always" | "never";
10667
11586
 
10668
- type?: "alphabetical" | "natural" | "line-length" | "custom";
10669
-
10670
11587
  groups?: (
10671
11588
  | string
10672
11589
  | string[]
10673
11590
  | {
10674
11591
  newlinesBetween?: "ignore" | "always" | "never";
10675
- [k: string]: unknown | undefined;
10676
11592
  }
10677
11593
  )[];
10678
11594
  }[];
@@ -10683,6 +11599,18 @@ type PerfectionistSortModules =
10683
11599
  {
10684
11600
  specialCharacters?: "remove" | "trim" | "keep";
10685
11601
 
11602
+ fallbackSort?: {
11603
+ order?: "asc" | "desc";
11604
+
11605
+ type?:
11606
+ | "alphabetical"
11607
+ | "natural"
11608
+ | "line-length"
11609
+ | "custom"
11610
+ | "unsorted";
11611
+ [k: string]: unknown | undefined;
11612
+ };
11613
+
10686
11614
  ignoreCase?: boolean;
10687
11615
 
10688
11616
  alphabet?: string;
@@ -10691,6 +11619,13 @@ type PerfectionistSortModules =
10691
11619
 
10692
11620
  order?: "asc" | "desc";
10693
11621
 
11622
+ type?:
11623
+ | "alphabetical"
11624
+ | "natural"
11625
+ | "line-length"
11626
+ | "custom"
11627
+ | "unsorted";
11628
+
10694
11629
  customGroups?: (
10695
11630
  | {
10696
11631
  groupName?: string;
@@ -10701,8 +11636,6 @@ type PerfectionistSortModules =
10701
11636
 
10702
11637
  newlinesInside?: "always" | "never";
10703
11638
  anyOf?: {
10704
- decoratorNamePattern?: string;
10705
-
10706
11639
  modifiers?: (
10707
11640
  | "async"
10708
11641
  | "declare"
@@ -10713,7 +11646,37 @@ type PerfectionistSortModules =
10713
11646
 
10714
11647
  selector?: "enum" | "function" | "interface" | "type" | "class";
10715
11648
 
10716
- elementNamePattern?: string;
11649
+ decoratorNamePattern?:
11650
+ | (
11651
+ | {
11652
+ pattern?: string;
11653
+ flags?: string;
11654
+ }
11655
+ | string
11656
+ )[]
11657
+ | (
11658
+ | {
11659
+ pattern?: string;
11660
+ flags?: string;
11661
+ }
11662
+ | string
11663
+ );
11664
+
11665
+ elementNamePattern?:
11666
+ | (
11667
+ | {
11668
+ pattern?: string;
11669
+ flags?: string;
11670
+ }
11671
+ | string
11672
+ )[]
11673
+ | (
11674
+ | {
11675
+ pattern?: string;
11676
+ flags?: string;
11677
+ }
11678
+ | string
11679
+ );
10717
11680
  }[];
10718
11681
  }
10719
11682
  | {
@@ -10725,8 +11688,6 @@ type PerfectionistSortModules =
10725
11688
 
10726
11689
  newlinesInside?: "always" | "never";
10727
11690
 
10728
- decoratorNamePattern?: string;
10729
-
10730
11691
  modifiers?: (
10731
11692
  | "async"
10732
11693
  | "declare"
@@ -10737,32 +11698,106 @@ type PerfectionistSortModules =
10737
11698
 
10738
11699
  selector?: "enum" | "function" | "interface" | "type" | "class";
10739
11700
 
10740
- elementNamePattern?: string;
11701
+ decoratorNamePattern?:
11702
+ | (
11703
+ | {
11704
+ pattern?: string;
11705
+ flags?: string;
11706
+ }
11707
+ | string
11708
+ )[]
11709
+ | (
11710
+ | {
11711
+ pattern?: string;
11712
+ flags?: string;
11713
+ }
11714
+ | string
11715
+ );
11716
+
11717
+ elementNamePattern?:
11718
+ | (
11719
+ | {
11720
+ pattern?: string;
11721
+ flags?: string;
11722
+ }
11723
+ | string
11724
+ )[]
11725
+ | (
11726
+ | {
11727
+ pattern?: string;
11728
+ flags?: string;
11729
+ }
11730
+ | string
11731
+ );
10741
11732
  }
10742
11733
  )[];
10743
11734
 
10744
11735
  partitionByComment?:
10745
- | string[]
10746
11736
  | boolean
10747
- | string
11737
+ | (
11738
+ | (
11739
+ | {
11740
+ pattern?: string;
11741
+ flags?: string;
11742
+ }
11743
+ | string
11744
+ )[]
11745
+ | (
11746
+ | {
11747
+ pattern?: string;
11748
+ flags?: string;
11749
+ }
11750
+ | string
11751
+ )
11752
+ )
10748
11753
  | {
10749
- block?: string[] | boolean | string;
10750
- line?: string[] | boolean | string;
10751
- [k: string]: unknown | undefined;
11754
+ block?:
11755
+ | boolean
11756
+ | (
11757
+ | (
11758
+ | {
11759
+ pattern?: string;
11760
+ flags?: string;
11761
+ }
11762
+ | string
11763
+ )[]
11764
+ | (
11765
+ | {
11766
+ pattern?: string;
11767
+ flags?: string;
11768
+ }
11769
+ | string
11770
+ )
11771
+ );
11772
+ line?:
11773
+ | boolean
11774
+ | (
11775
+ | (
11776
+ | {
11777
+ pattern?: string;
11778
+ flags?: string;
11779
+ }
11780
+ | string
11781
+ )[]
11782
+ | (
11783
+ | {
11784
+ pattern?: string;
11785
+ flags?: string;
11786
+ }
11787
+ | string
11788
+ )
11789
+ );
10752
11790
  };
10753
11791
 
10754
11792
  partitionByNewLine?: boolean;
10755
11793
 
10756
11794
  newlinesBetween?: "ignore" | "always" | "never";
10757
11795
 
10758
- type?: "alphabetical" | "natural" | "line-length" | "custom";
10759
-
10760
11796
  groups?: (
10761
11797
  | string
10762
11798
  | string[]
10763
11799
  | {
10764
11800
  newlinesBetween?: "ignore" | "always" | "never";
10765
- [k: string]: unknown | undefined;
10766
11801
  }
10767
11802
  )[];
10768
11803
  },
@@ -10774,6 +11809,18 @@ type PerfectionistSortNamedExports =
10774
11809
  {
10775
11810
  specialCharacters?: "remove" | "trim" | "keep";
10776
11811
 
11812
+ fallbackSort?: {
11813
+ order?: "asc" | "desc";
11814
+
11815
+ type?:
11816
+ | "alphabetical"
11817
+ | "natural"
11818
+ | "line-length"
11819
+ | "custom"
11820
+ | "unsorted";
11821
+ [k: string]: unknown | undefined;
11822
+ };
11823
+
10777
11824
  ignoreCase?: boolean;
10778
11825
 
10779
11826
  alphabet?: string;
@@ -10782,23 +11829,75 @@ type PerfectionistSortNamedExports =
10782
11829
 
10783
11830
  order?: "asc" | "desc";
10784
11831
 
11832
+ type?:
11833
+ | "alphabetical"
11834
+ | "natural"
11835
+ | "line-length"
11836
+ | "custom"
11837
+ | "unsorted";
11838
+
10785
11839
  groupKind?: "mixed" | "values-first" | "types-first";
10786
11840
 
10787
11841
  ignoreAlias?: boolean;
10788
11842
 
10789
11843
  partitionByComment?:
10790
- | string[]
10791
11844
  | boolean
10792
- | string
11845
+ | (
11846
+ | (
11847
+ | {
11848
+ pattern?: string;
11849
+ flags?: string;
11850
+ }
11851
+ | string
11852
+ )[]
11853
+ | (
11854
+ | {
11855
+ pattern?: string;
11856
+ flags?: string;
11857
+ }
11858
+ | string
11859
+ )
11860
+ )
10793
11861
  | {
10794
- block?: string[] | boolean | string;
10795
- line?: string[] | boolean | string;
10796
- [k: string]: unknown | undefined;
11862
+ block?:
11863
+ | boolean
11864
+ | (
11865
+ | (
11866
+ | {
11867
+ pattern?: string;
11868
+ flags?: string;
11869
+ }
11870
+ | string
11871
+ )[]
11872
+ | (
11873
+ | {
11874
+ pattern?: string;
11875
+ flags?: string;
11876
+ }
11877
+ | string
11878
+ )
11879
+ );
11880
+ line?:
11881
+ | boolean
11882
+ | (
11883
+ | (
11884
+ | {
11885
+ pattern?: string;
11886
+ flags?: string;
11887
+ }
11888
+ | string
11889
+ )[]
11890
+ | (
11891
+ | {
11892
+ pattern?: string;
11893
+ flags?: string;
11894
+ }
11895
+ | string
11896
+ )
11897
+ );
10797
11898
  };
10798
11899
 
10799
11900
  partitionByNewLine?: boolean;
10800
-
10801
- type?: "alphabetical" | "natural" | "line-length" | "custom";
10802
11901
  },
10803
11902
  ];
10804
11903
  // ----- perfectionist/sort-named-imports -----
@@ -10808,6 +11907,18 @@ type PerfectionistSortNamedImports =
10808
11907
  {
10809
11908
  specialCharacters?: "remove" | "trim" | "keep";
10810
11909
 
11910
+ fallbackSort?: {
11911
+ order?: "asc" | "desc";
11912
+
11913
+ type?:
11914
+ | "alphabetical"
11915
+ | "natural"
11916
+ | "line-length"
11917
+ | "custom"
11918
+ | "unsorted";
11919
+ [k: string]: unknown | undefined;
11920
+ };
11921
+
10811
11922
  ignoreCase?: boolean;
10812
11923
 
10813
11924
  alphabet?: string;
@@ -10816,29 +11927,88 @@ type PerfectionistSortNamedImports =
10816
11927
 
10817
11928
  order?: "asc" | "desc";
10818
11929
 
11930
+ type?:
11931
+ | "alphabetical"
11932
+ | "natural"
11933
+ | "line-length"
11934
+ | "custom"
11935
+ | "unsorted";
11936
+
10819
11937
  groupKind?: "mixed" | "values-first" | "types-first";
10820
11938
 
10821
11939
  ignoreAlias?: boolean;
10822
11940
 
10823
11941
  partitionByComment?:
10824
- | string[]
10825
11942
  | boolean
10826
- | string
11943
+ | (
11944
+ | (
11945
+ | {
11946
+ pattern?: string;
11947
+ flags?: string;
11948
+ }
11949
+ | string
11950
+ )[]
11951
+ | (
11952
+ | {
11953
+ pattern?: string;
11954
+ flags?: string;
11955
+ }
11956
+ | string
11957
+ )
11958
+ )
10827
11959
  | {
10828
- block?: string[] | boolean | string;
10829
- line?: string[] | boolean | string;
10830
- [k: string]: unknown | undefined;
11960
+ block?:
11961
+ | boolean
11962
+ | (
11963
+ | (
11964
+ | {
11965
+ pattern?: string;
11966
+ flags?: string;
11967
+ }
11968
+ | string
11969
+ )[]
11970
+ | (
11971
+ | {
11972
+ pattern?: string;
11973
+ flags?: string;
11974
+ }
11975
+ | string
11976
+ )
11977
+ );
11978
+ line?:
11979
+ | boolean
11980
+ | (
11981
+ | (
11982
+ | {
11983
+ pattern?: string;
11984
+ flags?: string;
11985
+ }
11986
+ | string
11987
+ )[]
11988
+ | (
11989
+ | {
11990
+ pattern?: string;
11991
+ flags?: string;
11992
+ }
11993
+ | string
11994
+ )
11995
+ );
10831
11996
  };
10832
11997
 
10833
11998
  partitionByNewLine?: boolean;
10834
-
10835
- type?: "alphabetical" | "natural" | "line-length" | "custom";
10836
11999
  },
10837
12000
  ];
10838
12001
  // ----- perfectionist/sort-object-types -----
10839
12002
  type PerfectionistSortObjectTypes = {
10840
12003
  specialCharacters?: "remove" | "trim" | "keep";
10841
12004
 
12005
+ fallbackSort?: {
12006
+ order?: "asc" | "desc";
12007
+
12008
+ type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
12009
+ [k: string]: unknown | undefined;
12010
+ };
12011
+
10842
12012
  ignoreCase?: boolean;
10843
12013
 
10844
12014
  alphabet?: string;
@@ -10847,11 +12017,7 @@ type PerfectionistSortObjectTypes = {
10847
12017
 
10848
12018
  order?: "asc" | "desc";
10849
12019
 
10850
- ignorePattern?: string[];
10851
- useConfigurationIf?: {
10852
- allNamesMatchPattern?: string;
10853
- declarationMatchesPattern?: string;
10854
- };
12020
+ type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
10855
12021
  customGroups?:
10856
12022
  | {
10857
12023
  [k: string]: (string | string[]) | undefined;
@@ -10875,7 +12041,21 @@ type PerfectionistSortObjectTypes = {
10875
12041
  | "multiline"
10876
12042
  | "property";
10877
12043
 
10878
- elementNamePattern?: string;
12044
+ elementNamePattern?:
12045
+ | (
12046
+ | {
12047
+ pattern?: string;
12048
+ flags?: string;
12049
+ }
12050
+ | string
12051
+ )[]
12052
+ | (
12053
+ | {
12054
+ pattern?: string;
12055
+ flags?: string;
12056
+ }
12057
+ | string
12058
+ );
10879
12059
  }[];
10880
12060
  }
10881
12061
  | {
@@ -10896,34 +12076,141 @@ type PerfectionistSortObjectTypes = {
10896
12076
  | "multiline"
10897
12077
  | "property";
10898
12078
 
10899
- elementNamePattern?: string;
12079
+ elementNamePattern?:
12080
+ | (
12081
+ | {
12082
+ pattern?: string;
12083
+ flags?: string;
12084
+ }
12085
+ | string
12086
+ )[]
12087
+ | (
12088
+ | {
12089
+ pattern?: string;
12090
+ flags?: string;
12091
+ }
12092
+ | string
12093
+ );
10900
12094
  }
10901
12095
  )[];
12096
+ useConfigurationIf?: {
12097
+ allNamesMatchPattern?:
12098
+ | (
12099
+ | {
12100
+ pattern?: string;
12101
+ flags?: string;
12102
+ }
12103
+ | string
12104
+ )[]
12105
+ | (
12106
+ | {
12107
+ pattern?: string;
12108
+ flags?: string;
12109
+ }
12110
+ | string
12111
+ );
10902
12112
 
10903
- groupKind?: "mixed" | "required-first" | "optional-first";
12113
+ declarationMatchesPattern?:
12114
+ | (
12115
+ | {
12116
+ pattern?: string;
12117
+ flags?: string;
12118
+ }
12119
+ | string
12120
+ )[]
12121
+ | (
12122
+ | {
12123
+ pattern?: string;
12124
+ flags?: string;
12125
+ }
12126
+ | string
12127
+ );
12128
+ };
10904
12129
 
10905
- type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
12130
+ groupKind?: "mixed" | "required-first" | "optional-first";
10906
12131
 
10907
12132
  partitionByComment?:
10908
- | string[]
10909
12133
  | boolean
10910
- | string
12134
+ | (
12135
+ | (
12136
+ | {
12137
+ pattern?: string;
12138
+ flags?: string;
12139
+ }
12140
+ | string
12141
+ )[]
12142
+ | (
12143
+ | {
12144
+ pattern?: string;
12145
+ flags?: string;
12146
+ }
12147
+ | string
12148
+ )
12149
+ )
10911
12150
  | {
10912
- block?: string[] | boolean | string;
10913
- line?: string[] | boolean | string;
10914
- [k: string]: unknown | undefined;
12151
+ block?:
12152
+ | boolean
12153
+ | (
12154
+ | (
12155
+ | {
12156
+ pattern?: string;
12157
+ flags?: string;
12158
+ }
12159
+ | string
12160
+ )[]
12161
+ | (
12162
+ | {
12163
+ pattern?: string;
12164
+ flags?: string;
12165
+ }
12166
+ | string
12167
+ )
12168
+ );
12169
+ line?:
12170
+ | boolean
12171
+ | (
12172
+ | (
12173
+ | {
12174
+ pattern?: string;
12175
+ flags?: string;
12176
+ }
12177
+ | string
12178
+ )[]
12179
+ | (
12180
+ | {
12181
+ pattern?: string;
12182
+ flags?: string;
12183
+ }
12184
+ | string
12185
+ )
12186
+ );
10915
12187
  };
10916
12188
 
10917
12189
  partitionByNewLine?: boolean;
10918
12190
 
10919
12191
  newlinesBetween?: "ignore" | "always" | "never";
10920
12192
 
12193
+ ignorePattern?:
12194
+ | (
12195
+ | {
12196
+ pattern?: string;
12197
+ flags?: string;
12198
+ }
12199
+ | string
12200
+ )[]
12201
+ | (
12202
+ | {
12203
+ pattern?: string;
12204
+ flags?: string;
12205
+ }
12206
+ | string
12207
+ );
12208
+
10921
12209
  groups?: (
10922
12210
  | string
10923
12211
  | string[]
10924
12212
  | {
10925
12213
  newlinesBetween?: "ignore" | "always" | "never";
10926
- [k: string]: unknown | undefined;
10927
12214
  }
10928
12215
  )[];
10929
12216
  }[];
@@ -10931,6 +12218,13 @@ type PerfectionistSortObjectTypes = {
10931
12218
  type PerfectionistSortObjects = {
10932
12219
  specialCharacters?: "remove" | "trim" | "keep";
10933
12220
 
12221
+ fallbackSort?: {
12222
+ order?: "asc" | "desc";
12223
+
12224
+ type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
12225
+ [k: string]: unknown | undefined;
12226
+ };
12227
+
10934
12228
  ignoreCase?: boolean;
10935
12229
 
10936
12230
  alphabet?: string;
@@ -10939,17 +12233,13 @@ type PerfectionistSortObjects = {
10939
12233
 
10940
12234
  order?: "asc" | "desc";
10941
12235
 
12236
+ type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
12237
+
10942
12238
  destructuredObjects?:
10943
12239
  | boolean
10944
12240
  | {
10945
12241
  groups?: boolean;
10946
12242
  };
10947
-
10948
- ignorePattern?: string[];
10949
- useConfigurationIf?: {
10950
- allNamesMatchPattern?: string;
10951
- callingFunctionNamePattern?: string;
10952
- };
10953
12243
  customGroups?:
10954
12244
  | {
10955
12245
  [k: string]: (string | string[]) | undefined;
@@ -10968,9 +12258,37 @@ type PerfectionistSortObjects = {
10968
12258
 
10969
12259
  selector?: "member" | "method" | "multiline" | "property";
10970
12260
 
10971
- elementValuePattern?: string;
10972
-
10973
- elementNamePattern?: string;
12261
+ elementValuePattern?:
12262
+ | (
12263
+ | {
12264
+ pattern?: string;
12265
+ flags?: string;
12266
+ }
12267
+ | string
12268
+ )[]
12269
+ | (
12270
+ | {
12271
+ pattern?: string;
12272
+ flags?: string;
12273
+ }
12274
+ | string
12275
+ );
12276
+
12277
+ elementNamePattern?:
12278
+ | (
12279
+ | {
12280
+ pattern?: string;
12281
+ flags?: string;
12282
+ }
12283
+ | string
12284
+ )[]
12285
+ | (
12286
+ | {
12287
+ pattern?: string;
12288
+ flags?: string;
12289
+ }
12290
+ | string
12291
+ );
10974
12292
  }[];
10975
12293
  }
10976
12294
  | {
@@ -10986,11 +12304,72 @@ type PerfectionistSortObjects = {
10986
12304
 
10987
12305
  selector?: "member" | "method" | "multiline" | "property";
10988
12306
 
10989
- elementValuePattern?: string;
10990
-
10991
- elementNamePattern?: string;
12307
+ elementValuePattern?:
12308
+ | (
12309
+ | {
12310
+ pattern?: string;
12311
+ flags?: string;
12312
+ }
12313
+ | string
12314
+ )[]
12315
+ | (
12316
+ | {
12317
+ pattern?: string;
12318
+ flags?: string;
12319
+ }
12320
+ | string
12321
+ );
12322
+
12323
+ elementNamePattern?:
12324
+ | (
12325
+ | {
12326
+ pattern?: string;
12327
+ flags?: string;
12328
+ }
12329
+ | string
12330
+ )[]
12331
+ | (
12332
+ | {
12333
+ pattern?: string;
12334
+ flags?: string;
12335
+ }
12336
+ | string
12337
+ );
10992
12338
  }
10993
12339
  )[];
12340
+ useConfigurationIf?: {
12341
+ allNamesMatchPattern?:
12342
+ | (
12343
+ | {
12344
+ pattern?: string;
12345
+ flags?: string;
12346
+ }
12347
+ | string
12348
+ )[]
12349
+ | (
12350
+ | {
12351
+ pattern?: string;
12352
+ flags?: string;
12353
+ }
12354
+ | string
12355
+ );
12356
+
12357
+ callingFunctionNamePattern?:
12358
+ | (
12359
+ | {
12360
+ pattern?: string;
12361
+ flags?: string;
12362
+ }
12363
+ | string
12364
+ )[]
12365
+ | (
12366
+ | {
12367
+ pattern?: string;
12368
+ flags?: string;
12369
+ }
12370
+ | string
12371
+ );
12372
+ };
10994
12373
 
10995
12374
  destructureOnly?: boolean;
10996
12375
 
@@ -10998,28 +12377,88 @@ type PerfectionistSortObjects = {
10998
12377
 
10999
12378
  styledComponents?: boolean;
11000
12379
 
11001
- type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
11002
-
11003
12380
  partitionByComment?:
11004
- | string[]
11005
12381
  | boolean
11006
- | string
12382
+ | (
12383
+ | (
12384
+ | {
12385
+ pattern?: string;
12386
+ flags?: string;
12387
+ }
12388
+ | string
12389
+ )[]
12390
+ | (
12391
+ | {
12392
+ pattern?: string;
12393
+ flags?: string;
12394
+ }
12395
+ | string
12396
+ )
12397
+ )
11007
12398
  | {
11008
- block?: string[] | boolean | string;
11009
- line?: string[] | boolean | string;
11010
- [k: string]: unknown | undefined;
12399
+ block?:
12400
+ | boolean
12401
+ | (
12402
+ | (
12403
+ | {
12404
+ pattern?: string;
12405
+ flags?: string;
12406
+ }
12407
+ | string
12408
+ )[]
12409
+ | (
12410
+ | {
12411
+ pattern?: string;
12412
+ flags?: string;
12413
+ }
12414
+ | string
12415
+ )
12416
+ );
12417
+ line?:
12418
+ | boolean
12419
+ | (
12420
+ | (
12421
+ | {
12422
+ pattern?: string;
12423
+ flags?: string;
12424
+ }
12425
+ | string
12426
+ )[]
12427
+ | (
12428
+ | {
12429
+ pattern?: string;
12430
+ flags?: string;
12431
+ }
12432
+ | string
12433
+ )
12434
+ );
11011
12435
  };
11012
12436
 
11013
12437
  partitionByNewLine?: boolean;
11014
12438
 
11015
12439
  newlinesBetween?: "ignore" | "always" | "never";
11016
12440
 
12441
+ ignorePattern?:
12442
+ | (
12443
+ | {
12444
+ pattern?: string;
12445
+ flags?: string;
12446
+ }
12447
+ | string
12448
+ )[]
12449
+ | (
12450
+ | {
12451
+ pattern?: string;
12452
+ flags?: string;
12453
+ }
12454
+ | string
12455
+ );
12456
+
11017
12457
  groups?: (
11018
12458
  | string
11019
12459
  | string[]
11020
12460
  | {
11021
12461
  newlinesBetween?: "ignore" | "always" | "never";
11022
- [k: string]: unknown | undefined;
11023
12462
  }
11024
12463
  )[];
11025
12464
  }[];
@@ -11027,6 +12466,13 @@ type PerfectionistSortObjects = {
11027
12466
  type PerfectionistSortSets = {
11028
12467
  specialCharacters?: "remove" | "trim" | "keep";
11029
12468
 
12469
+ fallbackSort?: {
12470
+ order?: "asc" | "desc";
12471
+
12472
+ type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
12473
+ [k: string]: unknown | undefined;
12474
+ };
12475
+
11030
12476
  ignoreCase?: boolean;
11031
12477
 
11032
12478
  alphabet?: string;
@@ -11035,6 +12481,8 @@ type PerfectionistSortSets = {
11035
12481
 
11036
12482
  order?: "asc" | "desc";
11037
12483
 
12484
+ type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
12485
+
11038
12486
  groupKind?: "mixed" | "literals-first" | "spreads-first";
11039
12487
 
11040
12488
  customGroups?: (
@@ -11049,7 +12497,21 @@ type PerfectionistSortSets = {
11049
12497
  anyOf?: {
11050
12498
  selector?: "literal" | "spread";
11051
12499
 
11052
- elementNamePattern?: string;
12500
+ elementNamePattern?:
12501
+ | (
12502
+ | {
12503
+ pattern?: string;
12504
+ flags?: string;
12505
+ }
12506
+ | string
12507
+ )[]
12508
+ | (
12509
+ | {
12510
+ pattern?: string;
12511
+ flags?: string;
12512
+ }
12513
+ | string
12514
+ );
11053
12515
  }[];
11054
12516
  }
11055
12517
  | {
@@ -11063,23 +12525,96 @@ type PerfectionistSortSets = {
11063
12525
 
11064
12526
  selector?: "literal" | "spread";
11065
12527
 
11066
- elementNamePattern?: string;
12528
+ elementNamePattern?:
12529
+ | (
12530
+ | {
12531
+ pattern?: string;
12532
+ flags?: string;
12533
+ }
12534
+ | string
12535
+ )[]
12536
+ | (
12537
+ | {
12538
+ pattern?: string;
12539
+ flags?: string;
12540
+ }
12541
+ | string
12542
+ );
11067
12543
  }
11068
12544
  )[];
11069
12545
  useConfigurationIf?: {
11070
- allNamesMatchPattern?: string;
12546
+ allNamesMatchPattern?:
12547
+ | (
12548
+ | {
12549
+ pattern?: string;
12550
+ flags?: string;
12551
+ }
12552
+ | string
12553
+ )[]
12554
+ | (
12555
+ | {
12556
+ pattern?: string;
12557
+ flags?: string;
12558
+ }
12559
+ | string
12560
+ );
11071
12561
  };
11072
12562
 
11073
- type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
11074
-
11075
12563
  partitionByComment?:
11076
- | string[]
11077
12564
  | boolean
11078
- | string
12565
+ | (
12566
+ | (
12567
+ | {
12568
+ pattern?: string;
12569
+ flags?: string;
12570
+ }
12571
+ | string
12572
+ )[]
12573
+ | (
12574
+ | {
12575
+ pattern?: string;
12576
+ flags?: string;
12577
+ }
12578
+ | string
12579
+ )
12580
+ )
11079
12581
  | {
11080
- block?: string[] | boolean | string;
11081
- line?: string[] | boolean | string;
11082
- [k: string]: unknown | undefined;
12582
+ block?:
12583
+ | boolean
12584
+ | (
12585
+ | (
12586
+ | {
12587
+ pattern?: string;
12588
+ flags?: string;
12589
+ }
12590
+ | string
12591
+ )[]
12592
+ | (
12593
+ | {
12594
+ pattern?: string;
12595
+ flags?: string;
12596
+ }
12597
+ | string
12598
+ )
12599
+ );
12600
+ line?:
12601
+ | boolean
12602
+ | (
12603
+ | (
12604
+ | {
12605
+ pattern?: string;
12606
+ flags?: string;
12607
+ }
12608
+ | string
12609
+ )[]
12610
+ | (
12611
+ | {
12612
+ pattern?: string;
12613
+ flags?: string;
12614
+ }
12615
+ | string
12616
+ )
12617
+ );
11083
12618
  };
11084
12619
 
11085
12620
  partitionByNewLine?: boolean;
@@ -11091,7 +12626,6 @@ type PerfectionistSortSets = {
11091
12626
  | string[]
11092
12627
  | {
11093
12628
  newlinesBetween?: "ignore" | "always" | "never";
11094
- [k: string]: unknown | undefined;
11095
12629
  }
11096
12630
  )[];
11097
12631
  }[];
@@ -11102,6 +12636,18 @@ type PerfectionistSortSwitchCase =
11102
12636
  {
11103
12637
  specialCharacters?: "remove" | "trim" | "keep";
11104
12638
 
12639
+ fallbackSort?: {
12640
+ order?: "asc" | "desc";
12641
+
12642
+ type?:
12643
+ | "alphabetical"
12644
+ | "natural"
12645
+ | "line-length"
12646
+ | "custom"
12647
+ | "unsorted";
12648
+ [k: string]: unknown | undefined;
12649
+ };
12650
+
11105
12651
  ignoreCase?: boolean;
11106
12652
 
11107
12653
  alphabet?: string;
@@ -11110,7 +12656,12 @@ type PerfectionistSortSwitchCase =
11110
12656
 
11111
12657
  order?: "asc" | "desc";
11112
12658
 
11113
- type?: "alphabetical" | "natural" | "line-length" | "custom";
12659
+ type?:
12660
+ | "alphabetical"
12661
+ | "natural"
12662
+ | "line-length"
12663
+ | "custom"
12664
+ | "unsorted";
11114
12665
  },
11115
12666
  ];
11116
12667
  // ----- perfectionist/sort-union-types -----
@@ -11120,6 +12671,18 @@ type PerfectionistSortUnionTypes =
11120
12671
  {
11121
12672
  specialCharacters?: "remove" | "trim" | "keep";
11122
12673
 
12674
+ fallbackSort?: {
12675
+ order?: "asc" | "desc";
12676
+
12677
+ type?:
12678
+ | "alphabetical"
12679
+ | "natural"
12680
+ | "line-length"
12681
+ | "custom"
12682
+ | "unsorted";
12683
+ [k: string]: unknown | undefined;
12684
+ };
12685
+
11123
12686
  ignoreCase?: boolean;
11124
12687
 
11125
12688
  alphabet?: string;
@@ -11128,28 +12691,79 @@ type PerfectionistSortUnionTypes =
11128
12691
 
11129
12692
  order?: "asc" | "desc";
11130
12693
 
12694
+ type?:
12695
+ | "alphabetical"
12696
+ | "natural"
12697
+ | "line-length"
12698
+ | "custom"
12699
+ | "unsorted";
12700
+
11131
12701
  partitionByComment?:
11132
- | string[]
11133
12702
  | boolean
11134
- | string
12703
+ | (
12704
+ | (
12705
+ | {
12706
+ pattern?: string;
12707
+ flags?: string;
12708
+ }
12709
+ | string
12710
+ )[]
12711
+ | (
12712
+ | {
12713
+ pattern?: string;
12714
+ flags?: string;
12715
+ }
12716
+ | string
12717
+ )
12718
+ )
11135
12719
  | {
11136
- block?: string[] | boolean | string;
11137
- line?: string[] | boolean | string;
11138
- [k: string]: unknown | undefined;
12720
+ block?:
12721
+ | boolean
12722
+ | (
12723
+ | (
12724
+ | {
12725
+ pattern?: string;
12726
+ flags?: string;
12727
+ }
12728
+ | string
12729
+ )[]
12730
+ | (
12731
+ | {
12732
+ pattern?: string;
12733
+ flags?: string;
12734
+ }
12735
+ | string
12736
+ )
12737
+ );
12738
+ line?:
12739
+ | boolean
12740
+ | (
12741
+ | (
12742
+ | {
12743
+ pattern?: string;
12744
+ flags?: string;
12745
+ }
12746
+ | string
12747
+ )[]
12748
+ | (
12749
+ | {
12750
+ pattern?: string;
12751
+ flags?: string;
12752
+ }
12753
+ | string
12754
+ )
12755
+ );
11139
12756
  };
11140
12757
 
11141
12758
  partitionByNewLine?: boolean;
11142
12759
 
11143
12760
  newlinesBetween?: "ignore" | "always" | "never";
11144
12761
 
11145
- type?: "alphabetical" | "natural" | "line-length" | "custom";
11146
-
11147
12762
  groups?: (
11148
12763
  | string
11149
12764
  | string[]
11150
12765
  | {
11151
12766
  newlinesBetween?: "ignore" | "always" | "never";
11152
- [k: string]: unknown | undefined;
11153
12767
  }
11154
12768
  )[];
11155
12769
  },
@@ -11161,6 +12775,18 @@ type PerfectionistSortVariableDeclarations =
11161
12775
  {
11162
12776
  specialCharacters?: "remove" | "trim" | "keep";
11163
12777
 
12778
+ fallbackSort?: {
12779
+ order?: "asc" | "desc";
12780
+
12781
+ type?:
12782
+ | "alphabetical"
12783
+ | "natural"
12784
+ | "line-length"
12785
+ | "custom"
12786
+ | "unsorted";
12787
+ [k: string]: unknown | undefined;
12788
+ };
12789
+
11164
12790
  ignoreCase?: boolean;
11165
12791
 
11166
12792
  alphabet?: string;
@@ -11169,19 +12795,71 @@ type PerfectionistSortVariableDeclarations =
11169
12795
 
11170
12796
  order?: "asc" | "desc";
11171
12797
 
12798
+ type?:
12799
+ | "alphabetical"
12800
+ | "natural"
12801
+ | "line-length"
12802
+ | "custom"
12803
+ | "unsorted";
12804
+
11172
12805
  partitionByComment?:
11173
- | string[]
11174
12806
  | boolean
11175
- | string
12807
+ | (
12808
+ | (
12809
+ | {
12810
+ pattern?: string;
12811
+ flags?: string;
12812
+ }
12813
+ | string
12814
+ )[]
12815
+ | (
12816
+ | {
12817
+ pattern?: string;
12818
+ flags?: string;
12819
+ }
12820
+ | string
12821
+ )
12822
+ )
11176
12823
  | {
11177
- block?: string[] | boolean | string;
11178
- line?: string[] | boolean | string;
11179
- [k: string]: unknown | undefined;
12824
+ block?:
12825
+ | boolean
12826
+ | (
12827
+ | (
12828
+ | {
12829
+ pattern?: string;
12830
+ flags?: string;
12831
+ }
12832
+ | string
12833
+ )[]
12834
+ | (
12835
+ | {
12836
+ pattern?: string;
12837
+ flags?: string;
12838
+ }
12839
+ | string
12840
+ )
12841
+ );
12842
+ line?:
12843
+ | boolean
12844
+ | (
12845
+ | (
12846
+ | {
12847
+ pattern?: string;
12848
+ flags?: string;
12849
+ }
12850
+ | string
12851
+ )[]
12852
+ | (
12853
+ | {
12854
+ pattern?: string;
12855
+ flags?: string;
12856
+ }
12857
+ | string
12858
+ )
12859
+ );
11180
12860
  };
11181
12861
 
11182
12862
  partitionByNewLine?: boolean;
11183
-
11184
- type?: "alphabetical" | "natural" | "line-length" | "custom";
11185
12863
  },
11186
12864
  ];
11187
12865
 
@@ -13019,7 +14697,7 @@ interface StylisticRuleOptions {
13019
14697
  "@stylistic/semi"?: Linter.RuleEntry<StylisticSemi>;
13020
14698
  /**
13021
14699
  * Enforce consistent spacing before and after semicolons
13022
- * @see https://eslint.style/rules/js/semi-spacing
14700
+ * @see https://eslint.style/rules/ts/semi-spacing
13023
14701
  */
13024
14702
  "@stylistic/semi-spacing"?: Linter.RuleEntry<StylisticSemiSpacing>;
13025
14703
  /**
@@ -14962,6 +16640,7 @@ type StylisticSpaceInfixOps =
14962
16640
  | [
14963
16641
  {
14964
16642
  int32Hint?: boolean;
16643
+ ignoreTypes?: boolean;
14965
16644
  },
14966
16645
  ];
14967
16646
  // ----- @stylistic/space-unary-ops -----
@@ -15282,6 +16961,11 @@ interface VitestRuleOptions {
15282
16961
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-spy-on.md
15283
16962
  */
15284
16963
  "vitest/prefer-spy-on"?: Linter.RuleEntry<[]>;
16964
+ /**
16965
+ * enforce using `toBe(true)` and `toBe(false)` over matchers that coerce types to boolean
16966
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-strict-boolean-matchers.md
16967
+ */
16968
+ "vitest/prefer-strict-boolean-matchers"?: Linter.RuleEntry<[]>;
15285
16969
  /**
15286
16970
  * enforce strict equal over equal
15287
16971
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-strict-equal.md
@@ -15339,6 +17023,11 @@ interface VitestRuleOptions {
15339
17023
  "vitest/require-local-test-context-for-concurrent-snapshots"?: Linter.RuleEntry<
15340
17024
  []
15341
17025
  >;
17026
+ /**
17027
+ * enforce using type parameters with vitest mock functions
17028
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-mock-type-parameters.md
17029
+ */
17030
+ "vitest/require-mock-type-parameters"?: Linter.RuleEntry<VitestRequireMockTypeParameters>;
15342
17031
  /**
15343
17032
  * require toThrow() to be called with an error message
15344
17033
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-to-throw-message.md
@@ -15498,6 +17187,14 @@ type VitestRequireHook =
15498
17187
  allowedFunctionCalls?: string[];
15499
17188
  },
15500
17189
  ];
17190
+ // ----- vitest/require-mock-type-parameters -----
17191
+ type VitestRequireMockTypeParameters =
17192
+ | []
17193
+ | [
17194
+ {
17195
+ checkImportFunctions?: boolean;
17196
+ },
17197
+ ];
15501
17198
  // ----- vitest/require-top-level-describe -----
15502
17199
  type VitestRequireTopLevelDescribe =
15503
17200
  | []
@@ -15958,7 +17655,7 @@ interface TypescriptRuleOptions {
15958
17655
  */
15959
17656
  "@typescript-eslint/no-for-in-array"?: Linter.RuleEntry<[]>;
15960
17657
  /**
15961
- * Disallow the use of `eval()`-like methods
17658
+ * Disallow the use of `eval()`-like functions
15962
17659
  * @see https://typescript-eslint.io/rules/no-implied-eval
15963
17660
  */
15964
17661
  "@typescript-eslint/no-implied-eval"?: Linter.RuleEntry<[]>;
@@ -19846,7 +21543,9 @@ type TypescriptEslintNoUnnecessaryCondition =
19846
21543
  | []
19847
21544
  | [
19848
21545
  {
19849
- allowConstantLoopConditions?: boolean;
21546
+ allowConstantLoopConditions?:
21547
+ | boolean
21548
+ | ("always" | "never" | "only-allowed-literals");
19850
21549
 
19851
21550
  allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
19852
21551
 
@@ -20728,702 +22427,642 @@ type ImportPreferDefaultExport =
20728
22427
  interface UnicornRuleOptions {
20729
22428
  /**
20730
22429
  * Improve regexes by making them shorter, consistent, and safer.
20731
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/better-regex.md
22430
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/better-regex.md
20732
22431
  */
20733
22432
  "unicorn/better-regex"?: Linter.RuleEntry<UnicornBetterRegex>;
20734
22433
  /**
20735
22434
  * Enforce a specific parameter name in catch clauses.
20736
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/catch-error-name.md
22435
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/catch-error-name.md
20737
22436
  */
20738
22437
  "unicorn/catch-error-name"?: Linter.RuleEntry<UnicornCatchErrorName>;
22438
+ /**
22439
+ * Enforce consistent assertion style with `node:assert`.
22440
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-assert.md
22441
+ */
22442
+ "unicorn/consistent-assert"?: Linter.RuleEntry<[]>;
22443
+ /**
22444
+ * Prefer passing `Date` directly to the constructor when cloning.
22445
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-date-clone.md
22446
+ */
22447
+ "unicorn/consistent-date-clone"?: Linter.RuleEntry<[]>;
20739
22448
  /**
20740
22449
  * Use destructured variables over properties.
20741
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-destructuring.md
22450
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-destructuring.md
20742
22451
  */
20743
22452
  "unicorn/consistent-destructuring"?: Linter.RuleEntry<[]>;
20744
22453
  /**
20745
22454
  * Prefer consistent types when spreading a ternary in an array literal.
20746
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-empty-array-spread.md
22455
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-empty-array-spread.md
20747
22456
  */
20748
22457
  "unicorn/consistent-empty-array-spread"?: Linter.RuleEntry<[]>;
20749
22458
  /**
20750
22459
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
20751
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-existence-index-check.md
22460
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-existence-index-check.md
20752
22461
  */
20753
22462
  "unicorn/consistent-existence-index-check"?: Linter.RuleEntry<[]>;
20754
22463
  /**
20755
22464
  * Move function definitions to the highest possible scope.
20756
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/consistent-function-scoping.md
22465
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-function-scoping.md
20757
22466
  */
20758
22467
  "unicorn/consistent-function-scoping"?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
20759
22468
  /**
20760
22469
  * Enforce correct `Error` subclassing.
20761
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/custom-error-definition.md
22470
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/custom-error-definition.md
20762
22471
  */
20763
22472
  "unicorn/custom-error-definition"?: Linter.RuleEntry<[]>;
20764
22473
  /**
20765
22474
  * Enforce no spaces between braces.
20766
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/empty-brace-spaces.md
22475
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/empty-brace-spaces.md
20767
22476
  */
20768
22477
  "unicorn/empty-brace-spaces"?: Linter.RuleEntry<[]>;
20769
22478
  /**
20770
22479
  * Enforce passing a `message` value when creating a built-in error.
20771
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/error-message.md
22480
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/error-message.md
20772
22481
  */
20773
22482
  "unicorn/error-message"?: Linter.RuleEntry<[]>;
20774
22483
  /**
20775
22484
  * Require escape sequences to use uppercase values.
20776
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/escape-case.md
22485
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/escape-case.md
20777
22486
  */
20778
22487
  "unicorn/escape-case"?: Linter.RuleEntry<[]>;
20779
22488
  /**
20780
22489
  * Add expiration conditions to TODO comments.
20781
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/expiring-todo-comments.md
22490
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/expiring-todo-comments.md
20782
22491
  */
20783
22492
  "unicorn/expiring-todo-comments"?: Linter.RuleEntry<UnicornExpiringTodoComments>;
20784
22493
  /**
20785
22494
  * Enforce explicitly comparing the `length` or `size` property of a value.
20786
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/explicit-length-check.md
22495
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/explicit-length-check.md
20787
22496
  */
20788
22497
  "unicorn/explicit-length-check"?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
20789
22498
  /**
20790
22499
  * Enforce a case style for filenames.
20791
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/filename-case.md
22500
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/filename-case.md
20792
22501
  */
20793
22502
  "unicorn/filename-case"?: Linter.RuleEntry<UnicornFilenameCase>;
20794
- /**
20795
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#import-index
20796
- * @deprecated
20797
- */
20798
- "unicorn/import-index"?: Linter.RuleEntry<[]>;
20799
22503
  /**
20800
22504
  * Enforce specific import styles per module.
20801
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/import-style.md
22505
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/import-style.md
20802
22506
  */
20803
22507
  "unicorn/import-style"?: Linter.RuleEntry<UnicornImportStyle>;
20804
22508
  /**
20805
22509
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
20806
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/new-for-builtins.md
22510
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/new-for-builtins.md
20807
22511
  */
20808
22512
  "unicorn/new-for-builtins"?: Linter.RuleEntry<[]>;
20809
22513
  /**
20810
22514
  * Enforce specifying rules to disable in `eslint-disable` comments.
20811
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-abusive-eslint-disable.md
22515
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-abusive-eslint-disable.md
20812
22516
  */
20813
22517
  "unicorn/no-abusive-eslint-disable"?: Linter.RuleEntry<[]>;
22518
+ /**
22519
+ * Disallow recursive access to `this` within getters and setters.
22520
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-accessor-recursion.md
22521
+ */
22522
+ "unicorn/no-accessor-recursion"?: Linter.RuleEntry<[]>;
20814
22523
  /**
20815
22524
  * Disallow anonymous functions and classes as the default export.
20816
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-anonymous-default-export.md
22525
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-anonymous-default-export.md
20817
22526
  */
20818
22527
  "unicorn/no-anonymous-default-export"?: Linter.RuleEntry<[]>;
20819
22528
  /**
20820
22529
  * Prevent passing a function reference directly to iterator methods.
20821
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-callback-reference.md
22530
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-callback-reference.md
20822
22531
  */
20823
22532
  "unicorn/no-array-callback-reference"?: Linter.RuleEntry<[]>;
20824
22533
  /**
20825
22534
  * Prefer `for…of` over the `forEach` method.
20826
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-for-each.md
22535
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-for-each.md
20827
22536
  */
20828
22537
  "unicorn/no-array-for-each"?: Linter.RuleEntry<[]>;
20829
- /**
20830
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-array-instanceof
20831
- * @deprecated
20832
- */
20833
- "unicorn/no-array-instanceof"?: Linter.RuleEntry<[]>;
20834
22538
  /**
20835
22539
  * Disallow using the `this` argument in array methods.
20836
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-method-this-argument.md
22540
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-method-this-argument.md
20837
22541
  */
20838
22542
  "unicorn/no-array-method-this-argument"?: Linter.RuleEntry<[]>;
20839
22543
  /**
20840
22544
  * Enforce combining multiple `Array#push()` into one call.
20841
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-push-push.md
22545
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-push-push.md
20842
22546
  */
20843
22547
  "unicorn/no-array-push-push"?: Linter.RuleEntry<UnicornNoArrayPushPush>;
20844
22548
  /**
20845
22549
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
20846
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-array-reduce.md
22550
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-reduce.md
20847
22551
  */
20848
22552
  "unicorn/no-array-reduce"?: Linter.RuleEntry<UnicornNoArrayReduce>;
20849
22553
  /**
20850
22554
  * Disallow member access from await expression.
20851
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-await-expression-member.md
22555
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-expression-member.md
20852
22556
  */
20853
22557
  "unicorn/no-await-expression-member"?: Linter.RuleEntry<[]>;
20854
22558
  /**
20855
22559
  * Disallow using `await` in `Promise` method parameters.
20856
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-await-in-promise-methods.md
22560
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-in-promise-methods.md
20857
22561
  */
20858
22562
  "unicorn/no-await-in-promise-methods"?: Linter.RuleEntry<[]>;
20859
22563
  /**
20860
22564
  * Do not use leading/trailing space between `console.log` parameters.
20861
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-console-spaces.md
22565
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-console-spaces.md
20862
22566
  */
20863
22567
  "unicorn/no-console-spaces"?: Linter.RuleEntry<[]>;
20864
22568
  /**
20865
22569
  * Do not use `document.cookie` directly.
20866
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-document-cookie.md
22570
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-document-cookie.md
20867
22571
  */
20868
22572
  "unicorn/no-document-cookie"?: Linter.RuleEntry<[]>;
20869
22573
  /**
20870
22574
  * Disallow empty files.
20871
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-empty-file.md
22575
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-empty-file.md
20872
22576
  */
20873
22577
  "unicorn/no-empty-file"?: Linter.RuleEntry<[]>;
20874
- /**
20875
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-fn-reference-in-iterator
20876
- * @deprecated
20877
- */
20878
- "unicorn/no-fn-reference-in-iterator"?: Linter.RuleEntry<[]>;
20879
22578
  /**
20880
22579
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
20881
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-for-loop.md
22580
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-for-loop.md
20882
22581
  */
20883
22582
  "unicorn/no-for-loop"?: Linter.RuleEntry<[]>;
20884
22583
  /**
20885
22584
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
20886
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-hex-escape.md
22585
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-hex-escape.md
20887
22586
  */
20888
22587
  "unicorn/no-hex-escape"?: Linter.RuleEntry<[]>;
20889
22588
  /**
20890
- * Require `Array.isArray()` instead of `instanceof Array`.
20891
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-instanceof-array.md
22589
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/deprecated-rules.md#no-instanceof-array
22590
+ * @deprecated
20892
22591
  */
20893
22592
  "unicorn/no-instanceof-array"?: Linter.RuleEntry<[]>;
22593
+ /**
22594
+ * Disallow `instanceof` with built-in objects
22595
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-instanceof-builtins.md
22596
+ */
22597
+ "unicorn/no-instanceof-builtins"?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
20894
22598
  /**
20895
22599
  * Disallow invalid options in `fetch()` and `new Request()`.
20896
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-invalid-fetch-options.md
22600
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-fetch-options.md
20897
22601
  */
20898
22602
  "unicorn/no-invalid-fetch-options"?: Linter.RuleEntry<[]>;
20899
22603
  /**
20900
22604
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
20901
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-invalid-remove-event-listener.md
22605
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-remove-event-listener.md
20902
22606
  */
20903
22607
  "unicorn/no-invalid-remove-event-listener"?: Linter.RuleEntry<[]>;
20904
22608
  /**
20905
22609
  * Disallow identifiers starting with `new` or `class`.
20906
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-keyword-prefix.md
22610
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-keyword-prefix.md
20907
22611
  */
20908
22612
  "unicorn/no-keyword-prefix"?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
20909
22613
  /**
20910
22614
  * Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.
20911
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-length-as-slice-end.md
22615
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-length-as-slice-end.md
20912
22616
  */
20913
22617
  "unicorn/no-length-as-slice-end"?: Linter.RuleEntry<[]>;
20914
22618
  /**
20915
22619
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
20916
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-lonely-if.md
22620
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-lonely-if.md
20917
22621
  */
20918
22622
  "unicorn/no-lonely-if"?: Linter.RuleEntry<[]>;
20919
22623
  /**
20920
22624
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
20921
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-magic-array-flat-depth.md
22625
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-magic-array-flat-depth.md
20922
22626
  */
20923
22627
  "unicorn/no-magic-array-flat-depth"?: Linter.RuleEntry<[]>;
22628
+ /**
22629
+ * Disallow named usage of default import and export.
22630
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-named-default.md
22631
+ */
22632
+ "unicorn/no-named-default"?: Linter.RuleEntry<[]>;
20924
22633
  /**
20925
22634
  * Disallow negated conditions.
20926
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-negated-condition.md
22635
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negated-condition.md
20927
22636
  */
20928
22637
  "unicorn/no-negated-condition"?: Linter.RuleEntry<[]>;
20929
22638
  /**
20930
22639
  * Disallow negated expression in equality check.
20931
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-negation-in-equality-check.md
22640
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negation-in-equality-check.md
20932
22641
  */
20933
22642
  "unicorn/no-negation-in-equality-check"?: Linter.RuleEntry<[]>;
20934
22643
  /**
20935
22644
  * Disallow nested ternary expressions.
20936
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-nested-ternary.md
22645
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-nested-ternary.md
20937
22646
  */
20938
22647
  "unicorn/no-nested-ternary"?: Linter.RuleEntry<[]>;
20939
22648
  /**
20940
22649
  * Disallow `new Array()`.
20941
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-new-array.md
22650
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-array.md
20942
22651
  */
20943
22652
  "unicorn/no-new-array"?: Linter.RuleEntry<[]>;
20944
22653
  /**
20945
22654
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
20946
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-new-buffer.md
22655
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-buffer.md
20947
22656
  */
20948
22657
  "unicorn/no-new-buffer"?: Linter.RuleEntry<[]>;
20949
22658
  /**
20950
22659
  * Disallow the use of the `null` literal.
20951
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-null.md
22660
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-null.md
20952
22661
  */
20953
22662
  "unicorn/no-null"?: Linter.RuleEntry<UnicornNoNull>;
20954
22663
  /**
20955
22664
  * Disallow the use of objects as default parameters.
20956
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-object-as-default-parameter.md
22665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-object-as-default-parameter.md
20957
22666
  */
20958
22667
  "unicorn/no-object-as-default-parameter"?: Linter.RuleEntry<[]>;
20959
22668
  /**
20960
22669
  * Disallow `process.exit()`.
20961
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-process-exit.md
22670
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-process-exit.md
20962
22671
  */
20963
22672
  "unicorn/no-process-exit"?: Linter.RuleEntry<[]>;
20964
- /**
20965
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-reduce
20966
- * @deprecated
20967
- */
20968
- "unicorn/no-reduce"?: Linter.RuleEntry<[]>;
20969
22673
  /**
20970
22674
  * Disallow passing single-element arrays to `Promise` methods.
20971
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-single-promise-in-promise-methods.md
22675
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-single-promise-in-promise-methods.md
20972
22676
  */
20973
22677
  "unicorn/no-single-promise-in-promise-methods"?: Linter.RuleEntry<[]>;
20974
22678
  /**
20975
22679
  * Disallow classes that only have static members.
20976
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-static-only-class.md
22680
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-static-only-class.md
20977
22681
  */
20978
22682
  "unicorn/no-static-only-class"?: Linter.RuleEntry<[]>;
20979
22683
  /**
20980
22684
  * Disallow `then` property.
20981
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-thenable.md
22685
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-thenable.md
20982
22686
  */
20983
22687
  "unicorn/no-thenable"?: Linter.RuleEntry<[]>;
20984
22688
  /**
20985
22689
  * Disallow assigning `this` to a variable.
20986
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-this-assignment.md
22690
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-this-assignment.md
20987
22691
  */
20988
22692
  "unicorn/no-this-assignment"?: Linter.RuleEntry<[]>;
20989
22693
  /**
20990
22694
  * Disallow comparing `undefined` using `typeof`.
20991
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-typeof-undefined.md
22695
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-typeof-undefined.md
20992
22696
  */
20993
22697
  "unicorn/no-typeof-undefined"?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
20994
22698
  /**
20995
22699
  * Disallow awaiting non-promise values.
20996
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unnecessary-await.md
22700
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-await.md
20997
22701
  */
20998
22702
  "unicorn/no-unnecessary-await"?: Linter.RuleEntry<[]>;
20999
22703
  /**
21000
22704
  * Enforce the use of built-in methods instead of unnecessary polyfills.
21001
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unnecessary-polyfills.md
22705
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-polyfills.md
21002
22706
  */
21003
22707
  "unicorn/no-unnecessary-polyfills"?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
21004
22708
  /**
21005
22709
  * Disallow unreadable array destructuring.
21006
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unreadable-array-destructuring.md
22710
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-array-destructuring.md
21007
22711
  */
21008
22712
  "unicorn/no-unreadable-array-destructuring"?: Linter.RuleEntry<[]>;
21009
22713
  /**
21010
22714
  * Disallow unreadable IIFEs.
21011
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unreadable-iife.md
22715
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-iife.md
21012
22716
  */
21013
22717
  "unicorn/no-unreadable-iife"?: Linter.RuleEntry<[]>;
21014
- /**
21015
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#no-unsafe-regex
21016
- * @deprecated
21017
- */
21018
- "unicorn/no-unsafe-regex"?: Linter.RuleEntry<[]>;
21019
22718
  /**
21020
22719
  * Disallow unused object properties.
21021
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-unused-properties.md
22720
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unused-properties.md
21022
22721
  */
21023
22722
  "unicorn/no-unused-properties"?: Linter.RuleEntry<[]>;
21024
22723
  /**
21025
22724
  * Disallow useless fallback when spreading in object literals.
21026
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-fallback-in-spread.md
22725
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-fallback-in-spread.md
21027
22726
  */
21028
22727
  "unicorn/no-useless-fallback-in-spread"?: Linter.RuleEntry<[]>;
21029
22728
  /**
21030
22729
  * Disallow useless array length check.
21031
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-length-check.md
22730
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-length-check.md
21032
22731
  */
21033
22732
  "unicorn/no-useless-length-check"?: Linter.RuleEntry<[]>;
21034
22733
  /**
21035
22734
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
21036
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-promise-resolve-reject.md
22735
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-promise-resolve-reject.md
21037
22736
  */
21038
22737
  "unicorn/no-useless-promise-resolve-reject"?: Linter.RuleEntry<[]>;
21039
22738
  /**
21040
22739
  * Disallow unnecessary spread.
21041
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-spread.md
22740
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-spread.md
21042
22741
  */
21043
22742
  "unicorn/no-useless-spread"?: Linter.RuleEntry<[]>;
21044
22743
  /**
21045
22744
  * Disallow useless case in switch statements.
21046
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-switch-case.md
22745
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-switch-case.md
21047
22746
  */
21048
22747
  "unicorn/no-useless-switch-case"?: Linter.RuleEntry<[]>;
21049
22748
  /**
21050
22749
  * Disallow useless `undefined`.
21051
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-useless-undefined.md
22750
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-undefined.md
21052
22751
  */
21053
22752
  "unicorn/no-useless-undefined"?: Linter.RuleEntry<UnicornNoUselessUndefined>;
21054
22753
  /**
21055
22754
  * Disallow number literals with zero fractions or dangling dots.
21056
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/no-zero-fractions.md
22755
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-zero-fractions.md
21057
22756
  */
21058
22757
  "unicorn/no-zero-fractions"?: Linter.RuleEntry<[]>;
21059
22758
  /**
21060
22759
  * Enforce proper case for numeric literals.
21061
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/number-literal-case.md
22760
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/number-literal-case.md
21062
22761
  */
21063
22762
  "unicorn/number-literal-case"?: Linter.RuleEntry<[]>;
21064
22763
  /**
21065
22764
  * Enforce the style of numeric separators by correctly grouping digits.
21066
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/numeric-separators-style.md
22765
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/numeric-separators-style.md
21067
22766
  */
21068
22767
  "unicorn/numeric-separators-style"?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
21069
22768
  /**
21070
22769
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
21071
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-add-event-listener.md
22770
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-add-event-listener.md
21072
22771
  */
21073
22772
  "unicorn/prefer-add-event-listener"?: Linter.RuleEntry<UnicornPreferAddEventListener>;
21074
22773
  /**
21075
22774
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
21076
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-find.md
22775
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-find.md
21077
22776
  */
21078
22777
  "unicorn/prefer-array-find"?: Linter.RuleEntry<UnicornPreferArrayFind>;
21079
22778
  /**
21080
22779
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
21081
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-flat.md
22780
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat.md
21082
22781
  */
21083
22782
  "unicorn/prefer-array-flat"?: Linter.RuleEntry<UnicornPreferArrayFlat>;
21084
22783
  /**
21085
22784
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
21086
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-flat-map.md
22785
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat-map.md
21087
22786
  */
21088
22787
  "unicorn/prefer-array-flat-map"?: Linter.RuleEntry<[]>;
21089
22788
  /**
21090
22789
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
21091
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-index-of.md
22790
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-index-of.md
21092
22791
  */
21093
22792
  "unicorn/prefer-array-index-of"?: Linter.RuleEntry<[]>;
21094
22793
  /**
21095
22794
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
21096
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-array-some.md
22795
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-some.md
21097
22796
  */
21098
22797
  "unicorn/prefer-array-some"?: Linter.RuleEntry<[]>;
21099
22798
  /**
21100
22799
  * Prefer `.at()` method for index access and `String#charAt()`.
21101
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-at.md
22800
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-at.md
21102
22801
  */
21103
22802
  "unicorn/prefer-at"?: Linter.RuleEntry<UnicornPreferAt>;
21104
22803
  /**
21105
22804
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
21106
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-blob-reading-methods.md
22805
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-blob-reading-methods.md
21107
22806
  */
21108
22807
  "unicorn/prefer-blob-reading-methods"?: Linter.RuleEntry<[]>;
21109
22808
  /**
21110
22809
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
21111
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-code-point.md
22810
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-code-point.md
21112
22811
  */
21113
22812
  "unicorn/prefer-code-point"?: Linter.RuleEntry<[]>;
21114
- /**
21115
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-dataset
21116
- * @deprecated
21117
- */
21118
- "unicorn/prefer-dataset"?: Linter.RuleEntry<[]>;
21119
22813
  /**
21120
22814
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
21121
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-date-now.md
22815
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-date-now.md
21122
22816
  */
21123
22817
  "unicorn/prefer-date-now"?: Linter.RuleEntry<[]>;
21124
22818
  /**
21125
22819
  * Prefer default parameters over reassignment.
21126
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-default-parameters.md
22820
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-default-parameters.md
21127
22821
  */
21128
22822
  "unicorn/prefer-default-parameters"?: Linter.RuleEntry<[]>;
21129
22823
  /**
21130
22824
  * Prefer `Node#append()` over `Node#appendChild()`.
21131
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-append.md
22825
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-append.md
21132
22826
  */
21133
22827
  "unicorn/prefer-dom-node-append"?: Linter.RuleEntry<[]>;
21134
22828
  /**
21135
22829
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
21136
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-dataset.md
22830
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-dataset.md
21137
22831
  */
21138
22832
  "unicorn/prefer-dom-node-dataset"?: Linter.RuleEntry<[]>;
21139
22833
  /**
21140
22834
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
21141
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-remove.md
22835
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-remove.md
21142
22836
  */
21143
22837
  "unicorn/prefer-dom-node-remove"?: Linter.RuleEntry<[]>;
21144
22838
  /**
21145
22839
  * Prefer `.textContent` over `.innerText`.
21146
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-dom-node-text-content.md
22840
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-text-content.md
21147
22841
  */
21148
22842
  "unicorn/prefer-dom-node-text-content"?: Linter.RuleEntry<[]>;
21149
- /**
21150
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-event-key
21151
- * @deprecated
21152
- */
21153
- "unicorn/prefer-event-key"?: Linter.RuleEntry<[]>;
21154
22843
  /**
21155
22844
  * Prefer `EventTarget` over `EventEmitter`.
21156
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-event-target.md
22845
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-event-target.md
21157
22846
  */
21158
22847
  "unicorn/prefer-event-target"?: Linter.RuleEntry<[]>;
21159
- /**
21160
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-exponentiation-operator
21161
- * @deprecated
21162
- */
21163
- "unicorn/prefer-exponentiation-operator"?: Linter.RuleEntry<[]>;
21164
22848
  /**
21165
22849
  * Prefer `export…from` when re-exporting.
21166
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-export-from.md
22850
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-export-from.md
21167
22851
  */
21168
22852
  "unicorn/prefer-export-from"?: Linter.RuleEntry<UnicornPreferExportFrom>;
21169
- /**
21170
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-flat-map
21171
- * @deprecated
21172
- */
21173
- "unicorn/prefer-flat-map"?: Linter.RuleEntry<[]>;
21174
22853
  /**
21175
22854
  * Prefer `globalThis` over `window`, `self`, and `global`.
21176
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-global-this.md
22855
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-global-this.md
21177
22856
  */
21178
22857
  "unicorn/prefer-global-this"?: Linter.RuleEntry<[]>;
21179
22858
  /**
21180
22859
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
21181
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-includes.md
22860
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-includes.md
21182
22861
  */
21183
22862
  "unicorn/prefer-includes"?: Linter.RuleEntry<[]>;
21184
22863
  /**
21185
22864
  * Prefer reading a JSON file as a buffer.
21186
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-json-parse-buffer.md
22865
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-json-parse-buffer.md
21187
22866
  */
21188
22867
  "unicorn/prefer-json-parse-buffer"?: Linter.RuleEntry<[]>;
21189
22868
  /**
21190
22869
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
21191
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-keyboard-event-key.md
22870
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-keyboard-event-key.md
21192
22871
  */
21193
22872
  "unicorn/prefer-keyboard-event-key"?: Linter.RuleEntry<[]>;
21194
22873
  /**
21195
22874
  * Prefer using a logical operator over a ternary.
21196
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-logical-operator-over-ternary.md
22875
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-logical-operator-over-ternary.md
21197
22876
  */
21198
22877
  "unicorn/prefer-logical-operator-over-ternary"?: Linter.RuleEntry<[]>;
21199
22878
  /**
21200
22879
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
21201
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-math-min-max.md
22880
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-min-max.md
21202
22881
  */
21203
22882
  "unicorn/prefer-math-min-max"?: Linter.RuleEntry<[]>;
21204
22883
  /**
21205
22884
  * Enforce the use of `Math.trunc` instead of bitwise operators.
21206
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-math-trunc.md
22885
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-trunc.md
21207
22886
  */
21208
22887
  "unicorn/prefer-math-trunc"?: Linter.RuleEntry<[]>;
21209
22888
  /**
21210
22889
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
21211
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-modern-dom-apis.md
22890
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-dom-apis.md
21212
22891
  */
21213
22892
  "unicorn/prefer-modern-dom-apis"?: Linter.RuleEntry<[]>;
21214
22893
  /**
21215
22894
  * Prefer modern `Math` APIs over legacy patterns.
21216
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-modern-math-apis.md
22895
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-math-apis.md
21217
22896
  */
21218
22897
  "unicorn/prefer-modern-math-apis"?: Linter.RuleEntry<[]>;
21219
22898
  /**
21220
22899
  * Prefer JavaScript modules (ESM) over CommonJS.
21221
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-module.md
22900
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-module.md
21222
22901
  */
21223
22902
  "unicorn/prefer-module"?: Linter.RuleEntry<[]>;
21224
22903
  /**
21225
22904
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
21226
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-native-coercion-functions.md
22905
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-native-coercion-functions.md
21227
22906
  */
21228
22907
  "unicorn/prefer-native-coercion-functions"?: Linter.RuleEntry<[]>;
21229
22908
  /**
21230
22909
  * Prefer negative index over `.length - index` when possible.
21231
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-negative-index.md
22910
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-negative-index.md
21232
22911
  */
21233
22912
  "unicorn/prefer-negative-index"?: Linter.RuleEntry<[]>;
21234
- /**
21235
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-node-append
21236
- * @deprecated
21237
- */
21238
- "unicorn/prefer-node-append"?: Linter.RuleEntry<[]>;
21239
22913
  /**
21240
22914
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
21241
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-node-protocol.md
22915
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-node-protocol.md
21242
22916
  */
21243
22917
  "unicorn/prefer-node-protocol"?: Linter.RuleEntry<[]>;
21244
- /**
21245
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-node-remove
21246
- * @deprecated
21247
- */
21248
- "unicorn/prefer-node-remove"?: Linter.RuleEntry<[]>;
21249
22918
  /**
21250
22919
  * Prefer `Number` static properties over global ones.
21251
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-number-properties.md
22920
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-number-properties.md
21252
22921
  */
21253
22922
  "unicorn/prefer-number-properties"?: Linter.RuleEntry<UnicornPreferNumberProperties>;
21254
22923
  /**
21255
22924
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
21256
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-object-from-entries.md
22925
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-object-from-entries.md
21257
22926
  */
21258
22927
  "unicorn/prefer-object-from-entries"?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
21259
- /**
21260
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-object-has-own
21261
- * @deprecated
21262
- */
21263
- "unicorn/prefer-object-has-own"?: Linter.RuleEntry<[]>;
21264
22928
  /**
21265
22929
  * Prefer omitting the `catch` binding parameter.
21266
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-optional-catch-binding.md
22930
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-optional-catch-binding.md
21267
22931
  */
21268
22932
  "unicorn/prefer-optional-catch-binding"?: Linter.RuleEntry<[]>;
21269
22933
  /**
21270
22934
  * Prefer borrowing methods from the prototype instead of the instance.
21271
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-prototype-methods.md
22935
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-prototype-methods.md
21272
22936
  */
21273
22937
  "unicorn/prefer-prototype-methods"?: Linter.RuleEntry<[]>;
21274
22938
  /**
21275
22939
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
21276
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-query-selector.md
22940
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-query-selector.md
21277
22941
  */
21278
22942
  "unicorn/prefer-query-selector"?: Linter.RuleEntry<[]>;
21279
22943
  /**
21280
22944
  * Prefer `Reflect.apply()` over `Function#apply()`.
21281
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-reflect-apply.md
22945
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-reflect-apply.md
21282
22946
  */
21283
22947
  "unicorn/prefer-reflect-apply"?: Linter.RuleEntry<[]>;
21284
22948
  /**
21285
22949
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
21286
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-regexp-test.md
22950
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-regexp-test.md
21287
22951
  */
21288
22952
  "unicorn/prefer-regexp-test"?: Linter.RuleEntry<[]>;
21289
- /**
21290
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-replace-all
21291
- * @deprecated
21292
- */
21293
- "unicorn/prefer-replace-all"?: Linter.RuleEntry<[]>;
21294
22953
  /**
21295
22954
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
21296
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-set-has.md
22955
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-has.md
21297
22956
  */
21298
22957
  "unicorn/prefer-set-has"?: Linter.RuleEntry<[]>;
21299
22958
  /**
21300
22959
  * Prefer using `Set#size` instead of `Array#length`.
21301
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-set-size.md
22960
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-size.md
21302
22961
  */
21303
22962
  "unicorn/prefer-set-size"?: Linter.RuleEntry<[]>;
21304
22963
  /**
21305
22964
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
21306
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-spread.md
22965
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-spread.md
21307
22966
  */
21308
22967
  "unicorn/prefer-spread"?: Linter.RuleEntry<[]>;
21309
- /**
21310
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-starts-ends-with
21311
- * @deprecated
21312
- */
21313
- "unicorn/prefer-starts-ends-with"?: Linter.RuleEntry<[]>;
21314
22968
  /**
21315
22969
  * Prefer using the `String.raw` tag to avoid escaping `\`.
21316
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-raw.md
22970
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-raw.md
21317
22971
  */
21318
22972
  "unicorn/prefer-string-raw"?: Linter.RuleEntry<[]>;
21319
22973
  /**
21320
22974
  * Prefer `String#replaceAll()` over regex searches with the global flag.
21321
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-replace-all.md
22975
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-replace-all.md
21322
22976
  */
21323
22977
  "unicorn/prefer-string-replace-all"?: Linter.RuleEntry<[]>;
21324
22978
  /**
21325
22979
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
21326
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-slice.md
22980
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-slice.md
21327
22981
  */
21328
22982
  "unicorn/prefer-string-slice"?: Linter.RuleEntry<[]>;
21329
22983
  /**
21330
22984
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
21331
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-starts-ends-with.md
22985
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-starts-ends-with.md
21332
22986
  */
21333
22987
  "unicorn/prefer-string-starts-ends-with"?: Linter.RuleEntry<[]>;
21334
22988
  /**
21335
22989
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
21336
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-string-trim-start-end.md
22990
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-trim-start-end.md
21337
22991
  */
21338
22992
  "unicorn/prefer-string-trim-start-end"?: Linter.RuleEntry<[]>;
21339
22993
  /**
21340
22994
  * Prefer using `structuredClone` to create a deep clone.
21341
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-structured-clone.md
22995
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-structured-clone.md
21342
22996
  */
21343
22997
  "unicorn/prefer-structured-clone"?: Linter.RuleEntry<UnicornPreferStructuredClone>;
21344
22998
  /**
21345
22999
  * Prefer `switch` over multiple `else-if`.
21346
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-switch.md
23000
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-switch.md
21347
23001
  */
21348
23002
  "unicorn/prefer-switch"?: Linter.RuleEntry<UnicornPreferSwitch>;
21349
23003
  /**
21350
23004
  * Prefer ternary expressions over simple `if-else` statements.
21351
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-ternary.md
23005
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-ternary.md
21352
23006
  */
21353
23007
  "unicorn/prefer-ternary"?: Linter.RuleEntry<UnicornPreferTernary>;
21354
- /**
21355
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-text-content
21356
- * @deprecated
21357
- */
21358
- "unicorn/prefer-text-content"?: Linter.RuleEntry<[]>;
21359
23008
  /**
21360
23009
  * Prefer top-level await over top-level promises and async function calls.
21361
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-top-level-await.md
23010
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-top-level-await.md
21362
23011
  */
21363
23012
  "unicorn/prefer-top-level-await"?: Linter.RuleEntry<[]>;
21364
- /**
21365
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#prefer-trim-start-end
21366
- * @deprecated
21367
- */
21368
- "unicorn/prefer-trim-start-end"?: Linter.RuleEntry<[]>;
21369
23013
  /**
21370
23014
  * Enforce throwing `TypeError` in type checking conditions.
21371
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prefer-type-error.md
23015
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-type-error.md
21372
23016
  */
21373
23017
  "unicorn/prefer-type-error"?: Linter.RuleEntry<[]>;
21374
23018
  /**
21375
23019
  * Prevent abbreviations.
21376
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/prevent-abbreviations.md
23020
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prevent-abbreviations.md
21377
23021
  */
21378
23022
  "unicorn/prevent-abbreviations"?: Linter.RuleEntry<UnicornPreventAbbreviations>;
21379
- /**
21380
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/deprecated-rules.md#regex-shorthand
21381
- * @deprecated
21382
- */
21383
- "unicorn/regex-shorthand"?: Linter.RuleEntry<[]>;
21384
23023
  /**
21385
23024
  * Enforce consistent relative URL style.
21386
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/relative-url-style.md
23025
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/relative-url-style.md
21387
23026
  */
21388
23027
  "unicorn/relative-url-style"?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
21389
23028
  /**
21390
23029
  * Enforce using the separator argument with `Array#join()`.
21391
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-array-join-separator.md
23030
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-array-join-separator.md
21392
23031
  */
21393
23032
  "unicorn/require-array-join-separator"?: Linter.RuleEntry<[]>;
21394
23033
  /**
21395
23034
  * Enforce using the digits argument with `Number#toFixed()`.
21396
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-number-to-fixed-digits-argument.md
23035
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-number-to-fixed-digits-argument.md
21397
23036
  */
21398
23037
  "unicorn/require-number-to-fixed-digits-argument"?: Linter.RuleEntry<[]>;
21399
23038
  /**
21400
23039
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
21401
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/require-post-message-target-origin.md
23040
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-post-message-target-origin.md
21402
23041
  */
21403
23042
  "unicorn/require-post-message-target-origin"?: Linter.RuleEntry<[]>;
21404
23043
  /**
21405
23044
  * Enforce better string content.
21406
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/string-content.md
23045
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/string-content.md
21407
23046
  */
21408
23047
  "unicorn/string-content"?: Linter.RuleEntry<UnicornStringContent>;
21409
23048
  /**
21410
23049
  * Enforce consistent brace style for `case` clauses.
21411
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/switch-case-braces.md
23050
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/switch-case-braces.md
21412
23051
  */
21413
23052
  "unicorn/switch-case-braces"?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
21414
23053
  /**
21415
23054
  * Fix whitespace-insensitive template indentation.
21416
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/template-indent.md
23055
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/template-indent.md
21417
23056
  */
21418
23057
  "unicorn/template-indent"?: Linter.RuleEntry<UnicornTemplateIndent>;
21419
23058
  /**
21420
23059
  * Enforce consistent case for text encoding identifiers.
21421
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/text-encoding-identifier-case.md
23060
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/text-encoding-identifier-case.md
21422
23061
  */
21423
23062
  "unicorn/text-encoding-identifier-case"?: Linter.RuleEntry<[]>;
21424
23063
  /**
21425
23064
  * Require `new` when creating an error.
21426
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.1/docs/rules/throw-new-error.md
23065
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/throw-new-error.md
21427
23066
  */
21428
23067
  "unicorn/throw-new-error"?: Linter.RuleEntry<[]>;
21429
23068
  }
@@ -21532,6 +23171,17 @@ type UnicornNoArrayReduce =
21532
23171
  allowSimpleOperations?: boolean;
21533
23172
  },
21534
23173
  ];
23174
+ // ----- unicorn/no-instanceof-builtins -----
23175
+ type UnicornNoInstanceofBuiltins =
23176
+ | []
23177
+ | [
23178
+ {
23179
+ useErrorIsError?: boolean;
23180
+ strategy?: "loose" | "strict";
23181
+ include?: string[];
23182
+ exclude?: string[];
23183
+ },
23184
+ ];
21535
23185
  // ----- unicorn/no-keyword-prefix -----
21536
23186
  type UnicornNoKeywordPrefix =
21537
23187
  | []
@@ -22256,6 +23906,7 @@ type RuleOptionsUnion = BuiltinsRuleOptions &
22256
23906
  YmlRuleOptions;
22257
23907
 
22258
23908
  type Awaitable<T> = T | Promise<T>;
23909
+ type UnPromise<T> = T extends Promise<infer U> ? U : T;
22259
23910
  type Rules = RuleOptionsUnion;
22260
23911
  type LanguageOptions = Linter.Config["languageOptions"];
22261
23912
  type TypedFlatConfigItem = Omit<Linter.Config<Linter.RulesRecord & Rules>, "plugins"> & {
@@ -22526,7 +24177,7 @@ declare function jsse(options?: OptionsConfig & TypedFlatConfigItem, ...userConf
22526
24177
  declare function defineConfig(options?: OptionsConfig & TypedFlatConfigItem, ...userConfigs: (TypedFlatConfigItem | TypedFlatConfigItem[])[]): Promise<TypedFlatConfigItem[]>;
22527
24178
  type DefineConfig = typeof defineConfig;
22528
24179
 
22529
- declare const VERSION = "0.2.32";
24180
+ declare const VERSION = "0.3.0";
22530
24181
 
22531
24182
  declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
22532
24183
  declare const GLOB_JS_SRC_EXT = "?([cm])js?(x)";
@@ -22583,6 +24234,16 @@ declare namespace globs {
22583
24234
  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 };
22584
24235
  }
22585
24236
 
24237
+ declare function importPluginUnicorn(): Promise<{
24238
+ pluginUnicorn: eslint.ESLint.Plugin & {
24239
+ configs: {
24240
+ recommended: eslint.Linter.FlatConfig;
24241
+ all: eslint.Linter.FlatConfig;
24242
+ "flat/all": eslint.Linter.FlatConfig;
24243
+ "flat/recommended": eslint.Linter.FlatConfig;
24244
+ };
24245
+ };
24246
+ }>;
22586
24247
  declare function importPluginReact(): Promise<{
22587
24248
  pluginReact: {
22588
24249
  deprecatedRules: Partial<{
@@ -24126,7 +25787,10 @@ declare function importPluginTsdoc(): Promise<{
24126
25787
  };
24127
25788
  }>;
24128
25789
  declare function importPluginStylistic(): Promise<{
24129
- pluginStylistic: typeof _stylistic_eslint_plugin;
25790
+ pluginStylistic: {
25791
+ rules: _stylistic_eslint_plugin.Rules;
25792
+ configs: eslint.ESLint.Plugin["configs"] & _stylistic_eslint_plugin.Configs;
25793
+ };
24130
25794
  }>;
24131
25795
  declare function importPluginTailwind(): Promise<{
24132
25796
  pluginTailwind: any;
@@ -24187,4 +25851,4 @@ declare function changeRuleEntrySeverity(ruleConfig: Linter.RuleEntry<any>, leve
24187
25851
  declare function error2warn<T extends TypedFlatConfigItem>(configs: T[]): T[];
24188
25852
  declare function warn2error<T extends TypedFlatConfigItem>(configs: T[]): T[];
24189
25853
 
24190
- 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 };
25854
+ 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 };