@shayanthenerd/eslint-config 0.14.0 → 0.15.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.
Files changed (51) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +187 -178
  3. package/dist/configs/base.mjs +13 -9
  4. package/dist/configs/css.mjs +2 -2
  5. package/dist/configs/cypress.mjs +2 -2
  6. package/dist/configs/html.mjs +2 -2
  7. package/dist/configs/importX.mjs +2 -2
  8. package/dist/configs/oxlintOverrides.mjs +16 -11
  9. package/dist/configs/perfectionist.mjs +2 -2
  10. package/dist/configs/playwright.mjs +2 -2
  11. package/dist/configs/restrictedExports.mjs +1 -1
  12. package/dist/configs/storybook.mjs +2 -2
  13. package/dist/configs/stylistic.mjs +2 -2
  14. package/dist/configs/tailwind.mjs +4 -4
  15. package/dist/configs/typescript.mjs +2 -2
  16. package/dist/configs/vitest.mjs +2 -2
  17. package/dist/configs/vue.mjs +2 -2
  18. package/dist/configs/vueComponentNames.mjs +1 -1
  19. package/dist/configs/vueServerComponents.mjs +1 -1
  20. package/dist/configs/zod.mjs +2 -2
  21. package/dist/{utils → helpers}/globs.mjs +1 -1
  22. package/dist/{utils → helpers}/ignores/defaultIgnorePatterns.mjs +1 -1
  23. package/dist/{utils → helpers}/ignores/getIgnorePatterns.mjs +1 -1
  24. package/dist/{utils → helpers}/ignores/resolveGitignorePatterns.mjs +1 -1
  25. package/dist/{utils → helpers}/isPackageDetected.mjs +1 -1
  26. package/dist/{utils → helpers}/options/defaultOptions.mjs +13 -7
  27. package/dist/{utils → helpers}/options/enableDetectedConfigs.mjs +1 -3
  28. package/dist/{utils → helpers}/options/mergeWithDefaults.mjs +4 -5
  29. package/dist/{utils → helpers}/vue/getRestrictedVueElements.mjs +1 -1
  30. package/dist/{utils → helpers}/vue/getRestrictedVueInputs.mjs +1 -1
  31. package/dist/index.mjs +3 -3
  32. package/dist/oxlint.config.jsonc +209 -206
  33. package/dist/prettier.config.mjs +1 -1
  34. package/dist/rules/css.mjs +1 -1
  35. package/dist/rules/html.mjs +3 -3
  36. package/dist/rules/importX.mjs +1 -1
  37. package/dist/rules/javascript.mjs +1 -2
  38. package/dist/rules/perfectionist.mjs +2 -2
  39. package/dist/rules/stylistic.mjs +10 -7
  40. package/dist/rules/tailwind.mjs +4 -4
  41. package/dist/rules/typescript.mjs +2 -2
  42. package/dist/rules/vue.mjs +6 -6
  43. package/dist/rules/vueAccessibility.mjs +1 -1
  44. package/dist/types/configOptions/base.d.mts +8 -8
  45. package/dist/types/configOptions/nuxt.d.mts +3 -3
  46. package/dist/types/configOptions/stylistic.d.mts +0 -15
  47. package/dist/types/configOptions/test.d.mts +4 -4
  48. package/dist/types/configOptions/vue.d.mts +1 -1
  49. package/dist/types/eslint-schema.d.mts +549 -201
  50. package/dist/types/index.d.mts +36 -19
  51. package/package.json +139 -124
@@ -3961,7 +3961,7 @@ interface ESLintSchema {
3961
3961
  * disallow conditional expects
3962
3962
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-expect.md
3963
3963
  */
3964
- 'vitest/no-conditional-expect'?: Linter.RuleEntry<[]>;
3964
+ 'vitest/no-conditional-expect'?: Linter.RuleEntry<VitestNoConditionalExpect>;
3965
3965
  /**
3966
3966
  * disallow conditional tests
3967
3967
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-in-test.md
@@ -9073,7 +9073,6 @@ type Curly = ([] | ["all"] | [] | [("multi" | "multi-line" | "multi-or-nest")] |
9073
9073
  type CypressUnsafeToChainCommand = [] | [_CypressUnsafeToChainCommandRules];
9074
9074
  interface _CypressUnsafeToChainCommandRules {
9075
9075
  methods?: unknown[];
9076
- [k: string]: unknown | undefined;
9077
9076
  }
9078
9077
  // ----- default-case -----
9079
9078
  type DefaultCase = [] | [{
@@ -10491,10 +10490,10 @@ type PaddingLineBetweenStatements = {
10491
10490
  // ----- perfectionist/sort-array-includes -----
10492
10491
  type PerfectionistSortArrayIncludes = {
10493
10492
  fallbackSort?: {
10494
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10493
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10495
10494
  order?: ("asc" | "desc");
10496
10495
  };
10497
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10496
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10498
10497
  specialCharacters?: ("remove" | "trim" | "keep");
10499
10498
  ignoreCase?: boolean;
10500
10499
  alphabet?: string;
@@ -10502,14 +10501,23 @@ type PerfectionistSortArrayIncludes = {
10502
10501
  order?: ("asc" | "desc");
10503
10502
  customGroups?: ({
10504
10503
  fallbackSort?: {
10505
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10504
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10506
10505
  order?: ("asc" | "desc");
10507
10506
  };
10508
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10507
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10509
10508
  groupName: string;
10510
10509
  newlinesInside?: ("ignore" | number);
10511
10510
  order?: ("asc" | "desc");
10512
- anyOf: {
10511
+ anyOf: [{
10512
+ elementNamePattern?: (({
10513
+ pattern: string;
10514
+ flags?: string;
10515
+ } | string)[] | ({
10516
+ pattern: string;
10517
+ flags?: string;
10518
+ } | string));
10519
+ selector?: ("literal" | "spread");
10520
+ }, ...({
10513
10521
  elementNamePattern?: (({
10514
10522
  pattern: string;
10515
10523
  flags?: string;
@@ -10518,13 +10526,13 @@ type PerfectionistSortArrayIncludes = {
10518
10526
  flags?: string;
10519
10527
  } | string));
10520
10528
  selector?: ("literal" | "spread");
10521
- }[];
10529
+ })[]];
10522
10530
  } | {
10523
10531
  fallbackSort?: {
10524
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10532
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10525
10533
  order?: ("asc" | "desc");
10526
10534
  };
10527
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10535
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10528
10536
  groupName: string;
10529
10537
  newlinesInside?: ("ignore" | number);
10530
10538
  order?: ("asc" | "desc");
@@ -10542,8 +10550,12 @@ type PerfectionistSortArrayIncludes = {
10542
10550
  newlinesBetween: ("ignore" | number);
10543
10551
  } | {
10544
10552
  group: (string | [string, ...(string)[]]);
10553
+ fallbackSort?: {
10554
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10555
+ order?: ("asc" | "desc");
10556
+ };
10545
10557
  commentAbove?: string;
10546
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10558
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10547
10559
  newlinesInside?: ("ignore" | number);
10548
10560
  order?: ("asc" | "desc");
10549
10561
  })[];
@@ -10584,10 +10596,10 @@ type PerfectionistSortArrayIncludes = {
10584
10596
  // ----- perfectionist/sort-classes -----
10585
10597
  type PerfectionistSortClasses = [] | [{
10586
10598
  fallbackSort?: {
10587
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10599
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10588
10600
  order?: ("asc" | "desc");
10589
10601
  };
10590
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10602
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10591
10603
  specialCharacters?: ("remove" | "trim" | "keep");
10592
10604
  ignoreCase?: boolean;
10593
10605
  alphabet?: string;
@@ -10595,14 +10607,14 @@ type PerfectionistSortClasses = [] | [{
10595
10607
  order?: ("asc" | "desc");
10596
10608
  customGroups?: ({
10597
10609
  fallbackSort?: {
10598
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10610
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10599
10611
  order?: ("asc" | "desc");
10600
10612
  };
10601
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10613
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10602
10614
  groupName: string;
10603
10615
  newlinesInside?: ("ignore" | number);
10604
10616
  order?: ("asc" | "desc");
10605
- anyOf: {
10617
+ anyOf: [{
10606
10618
  elementNamePattern?: (({
10607
10619
  pattern: string;
10608
10620
  flags?: string;
@@ -10626,13 +10638,37 @@ type PerfectionistSortClasses = [] | [{
10626
10638
  pattern: string;
10627
10639
  flags?: string;
10628
10640
  } | string));
10629
- }[];
10641
+ }, ...({
10642
+ elementNamePattern?: (({
10643
+ pattern: string;
10644
+ flags?: string;
10645
+ } | string)[] | ({
10646
+ pattern: string;
10647
+ flags?: string;
10648
+ } | string));
10649
+ modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
10650
+ selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
10651
+ decoratorNamePattern?: (({
10652
+ pattern: string;
10653
+ flags?: string;
10654
+ } | string)[] | ({
10655
+ pattern: string;
10656
+ flags?: string;
10657
+ } | string));
10658
+ elementValuePattern?: (({
10659
+ pattern: string;
10660
+ flags?: string;
10661
+ } | string)[] | ({
10662
+ pattern: string;
10663
+ flags?: string;
10664
+ } | string));
10665
+ })[]];
10630
10666
  } | {
10631
10667
  fallbackSort?: {
10632
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10668
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10633
10669
  order?: ("asc" | "desc");
10634
10670
  };
10635
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10671
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10636
10672
  groupName: string;
10637
10673
  newlinesInside?: ("ignore" | number);
10638
10674
  order?: ("asc" | "desc");
@@ -10665,8 +10701,12 @@ type PerfectionistSortClasses = [] | [{
10665
10701
  newlinesBetween: ("ignore" | number);
10666
10702
  } | {
10667
10703
  group: (string | [string, ...(string)[]]);
10704
+ fallbackSort?: {
10705
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10706
+ order?: ("asc" | "desc");
10707
+ };
10668
10708
  commentAbove?: string;
10669
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10709
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10670
10710
  newlinesInside?: ("ignore" | number);
10671
10711
  order?: ("asc" | "desc");
10672
10712
  })[];
@@ -10705,10 +10745,10 @@ type PerfectionistSortClasses = [] | [{
10705
10745
  // ----- perfectionist/sort-decorators -----
10706
10746
  type PerfectionistSortDecorators = {
10707
10747
  fallbackSort?: {
10708
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10748
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10709
10749
  order?: ("asc" | "desc");
10710
10750
  };
10711
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10751
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10712
10752
  specialCharacters?: ("remove" | "trim" | "keep");
10713
10753
  ignoreCase?: boolean;
10714
10754
  alphabet?: string;
@@ -10716,14 +10756,22 @@ type PerfectionistSortDecorators = {
10716
10756
  order?: ("asc" | "desc");
10717
10757
  customGroups?: ({
10718
10758
  fallbackSort?: {
10719
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10759
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10720
10760
  order?: ("asc" | "desc");
10721
10761
  };
10722
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10762
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10723
10763
  groupName: string;
10724
10764
  newlinesInside?: ("ignore" | number);
10725
10765
  order?: ("asc" | "desc");
10726
- anyOf: {
10766
+ anyOf: [{
10767
+ elementNamePattern?: (({
10768
+ pattern: string;
10769
+ flags?: string;
10770
+ } | string)[] | ({
10771
+ pattern: string;
10772
+ flags?: string;
10773
+ } | string));
10774
+ }, ...({
10727
10775
  elementNamePattern?: (({
10728
10776
  pattern: string;
10729
10777
  flags?: string;
@@ -10731,13 +10779,13 @@ type PerfectionistSortDecorators = {
10731
10779
  pattern: string;
10732
10780
  flags?: string;
10733
10781
  } | string));
10734
- }[];
10782
+ })[]];
10735
10783
  } | {
10736
10784
  fallbackSort?: {
10737
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10785
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10738
10786
  order?: ("asc" | "desc");
10739
10787
  };
10740
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10788
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10741
10789
  groupName: string;
10742
10790
  newlinesInside?: ("ignore" | number);
10743
10791
  order?: ("asc" | "desc");
@@ -10754,8 +10802,12 @@ type PerfectionistSortDecorators = {
10754
10802
  newlinesBetween: ("ignore" | number);
10755
10803
  } | {
10756
10804
  group: (string | [string, ...(string)[]]);
10805
+ fallbackSort?: {
10806
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10807
+ order?: ("asc" | "desc");
10808
+ };
10757
10809
  commentAbove?: string;
10758
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10810
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10759
10811
  newlinesInside?: ("ignore" | number);
10760
10812
  order?: ("asc" | "desc");
10761
10813
  })[];
@@ -10792,10 +10844,10 @@ type PerfectionistSortDecorators = {
10792
10844
  // ----- perfectionist/sort-enums -----
10793
10845
  type PerfectionistSortEnums = [] | [{
10794
10846
  fallbackSort?: {
10795
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10847
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10796
10848
  order?: ("asc" | "desc");
10797
10849
  };
10798
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10850
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10799
10851
  specialCharacters?: ("remove" | "trim" | "keep");
10800
10852
  ignoreCase?: boolean;
10801
10853
  alphabet?: string;
@@ -10803,14 +10855,14 @@ type PerfectionistSortEnums = [] | [{
10803
10855
  order?: ("asc" | "desc");
10804
10856
  customGroups?: ({
10805
10857
  fallbackSort?: {
10806
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10858
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10807
10859
  order?: ("asc" | "desc");
10808
10860
  };
10809
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10861
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10810
10862
  groupName: string;
10811
10863
  newlinesInside?: ("ignore" | number);
10812
10864
  order?: ("asc" | "desc");
10813
- anyOf: {
10865
+ anyOf: [{
10814
10866
  elementNamePattern?: (({
10815
10867
  pattern: string;
10816
10868
  flags?: string;
@@ -10825,13 +10877,28 @@ type PerfectionistSortEnums = [] | [{
10825
10877
  pattern: string;
10826
10878
  flags?: string;
10827
10879
  } | string));
10828
- }[];
10880
+ }, ...({
10881
+ elementNamePattern?: (({
10882
+ pattern: string;
10883
+ flags?: string;
10884
+ } | string)[] | ({
10885
+ pattern: string;
10886
+ flags?: string;
10887
+ } | string));
10888
+ elementValuePattern?: (({
10889
+ pattern: string;
10890
+ flags?: string;
10891
+ } | string)[] | ({
10892
+ pattern: string;
10893
+ flags?: string;
10894
+ } | string));
10895
+ })[]];
10829
10896
  } | {
10830
10897
  fallbackSort?: {
10831
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10898
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10832
10899
  order?: ("asc" | "desc");
10833
10900
  };
10834
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10901
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10835
10902
  groupName: string;
10836
10903
  newlinesInside?: ("ignore" | number);
10837
10904
  order?: ("asc" | "desc");
@@ -10855,8 +10922,12 @@ type PerfectionistSortEnums = [] | [{
10855
10922
  newlinesBetween: ("ignore" | number);
10856
10923
  } | {
10857
10924
  group: (string | [string, ...(string)[]]);
10925
+ fallbackSort?: {
10926
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10927
+ order?: ("asc" | "desc");
10928
+ };
10858
10929
  commentAbove?: string;
10859
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10930
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10860
10931
  newlinesInside?: ("ignore" | number);
10861
10932
  order?: ("asc" | "desc");
10862
10933
  })[];
@@ -10889,10 +10960,10 @@ type PerfectionistSortEnums = [] | [{
10889
10960
  // ----- perfectionist/sort-export-attributes -----
10890
10961
  type PerfectionistSortExportAttributes = {
10891
10962
  fallbackSort?: {
10892
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10963
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10893
10964
  order?: ("asc" | "desc");
10894
10965
  };
10895
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10966
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10896
10967
  specialCharacters?: ("remove" | "trim" | "keep");
10897
10968
  ignoreCase?: boolean;
10898
10969
  alphabet?: string;
@@ -10900,14 +10971,14 @@ type PerfectionistSortExportAttributes = {
10900
10971
  order?: ("asc" | "desc");
10901
10972
  customGroups?: ({
10902
10973
  fallbackSort?: {
10903
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10974
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10904
10975
  order?: ("asc" | "desc");
10905
10976
  };
10906
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10977
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10907
10978
  groupName: string;
10908
10979
  newlinesInside?: ("ignore" | number);
10909
10980
  order?: ("asc" | "desc");
10910
- anyOf: {
10981
+ anyOf: [{
10911
10982
  elementNamePattern?: (({
10912
10983
  pattern: string;
10913
10984
  flags?: string;
@@ -10915,13 +10986,21 @@ type PerfectionistSortExportAttributes = {
10915
10986
  pattern: string;
10916
10987
  flags?: string;
10917
10988
  } | string));
10918
- }[];
10989
+ }, ...({
10990
+ elementNamePattern?: (({
10991
+ pattern: string;
10992
+ flags?: string;
10993
+ } | string)[] | ({
10994
+ pattern: string;
10995
+ flags?: string;
10996
+ } | string));
10997
+ })[]];
10919
10998
  } | {
10920
10999
  fallbackSort?: {
10921
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11000
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10922
11001
  order?: ("asc" | "desc");
10923
11002
  };
10924
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11003
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10925
11004
  groupName: string;
10926
11005
  newlinesInside?: ("ignore" | number);
10927
11006
  order?: ("asc" | "desc");
@@ -10938,8 +11017,12 @@ type PerfectionistSortExportAttributes = {
10938
11017
  newlinesBetween: ("ignore" | number);
10939
11018
  } | {
10940
11019
  group: (string | [string, ...(string)[]]);
11020
+ fallbackSort?: {
11021
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11022
+ order?: ("asc" | "desc");
11023
+ };
10941
11024
  commentAbove?: string;
10942
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11025
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10943
11026
  newlinesInside?: ("ignore" | number);
10944
11027
  order?: ("asc" | "desc");
10945
11028
  })[];
@@ -10971,10 +11054,10 @@ type PerfectionistSortExportAttributes = {
10971
11054
  // ----- perfectionist/sort-exports -----
10972
11055
  type PerfectionistSortExports = {
10973
11056
  fallbackSort?: {
10974
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11057
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10975
11058
  order?: ("asc" | "desc");
10976
11059
  };
10977
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11060
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10978
11061
  specialCharacters?: ("remove" | "trim" | "keep");
10979
11062
  ignoreCase?: boolean;
10980
11063
  alphabet?: string;
@@ -10982,14 +11065,14 @@ type PerfectionistSortExports = {
10982
11065
  order?: ("asc" | "desc");
10983
11066
  customGroups?: ({
10984
11067
  fallbackSort?: {
10985
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11068
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10986
11069
  order?: ("asc" | "desc");
10987
11070
  };
10988
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11071
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
10989
11072
  groupName: string;
10990
11073
  newlinesInside?: ("ignore" | number);
10991
11074
  order?: ("asc" | "desc");
10992
- anyOf: {
11075
+ anyOf: [{
10993
11076
  elementNamePattern?: (({
10994
11077
  pattern: string;
10995
11078
  flags?: string;
@@ -10999,13 +11082,23 @@ type PerfectionistSortExports = {
10999
11082
  } | string));
11000
11083
  modifiers?: ("value" | "type" | "named" | "wildcard" | "multiline" | "singleline")[];
11001
11084
  selector?: "export";
11002
- }[];
11085
+ }, ...({
11086
+ elementNamePattern?: (({
11087
+ pattern: string;
11088
+ flags?: string;
11089
+ } | string)[] | ({
11090
+ pattern: string;
11091
+ flags?: string;
11092
+ } | string));
11093
+ modifiers?: ("value" | "type" | "named" | "wildcard" | "multiline" | "singleline")[];
11094
+ selector?: "export";
11095
+ })[]];
11003
11096
  } | {
11004
11097
  fallbackSort?: {
11005
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11098
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11006
11099
  order?: ("asc" | "desc");
11007
11100
  };
11008
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11101
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11009
11102
  groupName: string;
11010
11103
  newlinesInside?: ("ignore" | number);
11011
11104
  order?: ("asc" | "desc");
@@ -11024,8 +11117,12 @@ type PerfectionistSortExports = {
11024
11117
  newlinesBetween: ("ignore" | number);
11025
11118
  } | {
11026
11119
  group: (string | [string, ...(string)[]]);
11120
+ fallbackSort?: {
11121
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11122
+ order?: ("asc" | "desc");
11123
+ };
11027
11124
  commentAbove?: string;
11028
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11125
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11029
11126
  newlinesInside?: ("ignore" | number);
11030
11127
  order?: ("asc" | "desc");
11031
11128
  })[];
@@ -11057,10 +11154,10 @@ type PerfectionistSortExports = {
11057
11154
  // ----- perfectionist/sort-heritage-clauses -----
11058
11155
  type PerfectionistSortHeritageClauses = {
11059
11156
  fallbackSort?: {
11060
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11157
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11061
11158
  order?: ("asc" | "desc");
11062
11159
  };
11063
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11160
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11064
11161
  specialCharacters?: ("remove" | "trim" | "keep");
11065
11162
  ignoreCase?: boolean;
11066
11163
  alphabet?: string;
@@ -11068,14 +11165,22 @@ type PerfectionistSortHeritageClauses = {
11068
11165
  order?: ("asc" | "desc");
11069
11166
  customGroups?: ({
11070
11167
  fallbackSort?: {
11071
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11168
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11072
11169
  order?: ("asc" | "desc");
11073
11170
  };
11074
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11171
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11075
11172
  groupName: string;
11076
11173
  newlinesInside?: ("ignore" | number);
11077
11174
  order?: ("asc" | "desc");
11078
- anyOf: {
11175
+ anyOf: [{
11176
+ elementNamePattern?: (({
11177
+ pattern: string;
11178
+ flags?: string;
11179
+ } | string)[] | ({
11180
+ pattern: string;
11181
+ flags?: string;
11182
+ } | string));
11183
+ }, ...({
11079
11184
  elementNamePattern?: (({
11080
11185
  pattern: string;
11081
11186
  flags?: string;
@@ -11083,13 +11188,13 @@ type PerfectionistSortHeritageClauses = {
11083
11188
  pattern: string;
11084
11189
  flags?: string;
11085
11190
  } | string));
11086
- }[];
11191
+ })[]];
11087
11192
  } | {
11088
11193
  fallbackSort?: {
11089
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11194
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11090
11195
  order?: ("asc" | "desc");
11091
11196
  };
11092
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11197
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11093
11198
  groupName: string;
11094
11199
  newlinesInside?: ("ignore" | number);
11095
11200
  order?: ("asc" | "desc");
@@ -11106,8 +11211,12 @@ type PerfectionistSortHeritageClauses = {
11106
11211
  newlinesBetween: ("ignore" | number);
11107
11212
  } | {
11108
11213
  group: (string | [string, ...(string)[]]);
11214
+ fallbackSort?: {
11215
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11216
+ order?: ("asc" | "desc");
11217
+ };
11109
11218
  commentAbove?: string;
11110
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11219
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11111
11220
  newlinesInside?: ("ignore" | number);
11112
11221
  order?: ("asc" | "desc");
11113
11222
  })[];
@@ -11139,10 +11248,10 @@ type PerfectionistSortHeritageClauses = {
11139
11248
  // ----- perfectionist/sort-import-attributes -----
11140
11249
  type PerfectionistSortImportAttributes = {
11141
11250
  fallbackSort?: {
11142
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11251
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11143
11252
  order?: ("asc" | "desc");
11144
11253
  };
11145
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11254
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11146
11255
  specialCharacters?: ("remove" | "trim" | "keep");
11147
11256
  ignoreCase?: boolean;
11148
11257
  alphabet?: string;
@@ -11150,14 +11259,14 @@ type PerfectionistSortImportAttributes = {
11150
11259
  order?: ("asc" | "desc");
11151
11260
  customGroups?: ({
11152
11261
  fallbackSort?: {
11153
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11262
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11154
11263
  order?: ("asc" | "desc");
11155
11264
  };
11156
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11265
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11157
11266
  groupName: string;
11158
11267
  newlinesInside?: ("ignore" | number);
11159
11268
  order?: ("asc" | "desc");
11160
- anyOf: {
11269
+ anyOf: [{
11161
11270
  elementNamePattern?: (({
11162
11271
  pattern: string;
11163
11272
  flags?: string;
@@ -11165,13 +11274,21 @@ type PerfectionistSortImportAttributes = {
11165
11274
  pattern: string;
11166
11275
  flags?: string;
11167
11276
  } | string));
11168
- }[];
11277
+ }, ...({
11278
+ elementNamePattern?: (({
11279
+ pattern: string;
11280
+ flags?: string;
11281
+ } | string)[] | ({
11282
+ pattern: string;
11283
+ flags?: string;
11284
+ } | string));
11285
+ })[]];
11169
11286
  } | {
11170
11287
  fallbackSort?: {
11171
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11288
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11172
11289
  order?: ("asc" | "desc");
11173
11290
  };
11174
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11291
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11175
11292
  groupName: string;
11176
11293
  newlinesInside?: ("ignore" | number);
11177
11294
  order?: ("asc" | "desc");
@@ -11188,8 +11305,12 @@ type PerfectionistSortImportAttributes = {
11188
11305
  newlinesBetween: ("ignore" | number);
11189
11306
  } | {
11190
11307
  group: (string | [string, ...(string)[]]);
11308
+ fallbackSort?: {
11309
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11310
+ order?: ("asc" | "desc");
11311
+ };
11191
11312
  commentAbove?: string;
11192
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11313
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11193
11314
  newlinesInside?: ("ignore" | number);
11194
11315
  order?: ("asc" | "desc");
11195
11316
  })[];
@@ -11221,25 +11342,29 @@ type PerfectionistSortImportAttributes = {
11221
11342
  // ----- perfectionist/sort-imports -----
11222
11343
  type PerfectionistSortImports = {
11223
11344
  fallbackSort?: {
11224
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
11345
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first");
11225
11346
  order?: ("asc" | "desc");
11347
+ sortBy?: ("specifier" | "path");
11226
11348
  };
11227
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
11349
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first");
11228
11350
  specialCharacters?: ("remove" | "trim" | "keep");
11229
11351
  ignoreCase?: boolean;
11230
11352
  alphabet?: string;
11231
11353
  locales?: (string | string[]);
11232
11354
  order?: ("asc" | "desc");
11355
+ sortBy?: ("specifier" | "path");
11233
11356
  customGroups?: ({
11234
11357
  fallbackSort?: {
11235
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
11358
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first");
11236
11359
  order?: ("asc" | "desc");
11360
+ sortBy?: ("specifier" | "path");
11237
11361
  };
11238
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
11362
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first");
11239
11363
  groupName: string;
11240
11364
  newlinesInside?: ("ignore" | number);
11241
11365
  order?: ("asc" | "desc");
11242
- anyOf: {
11366
+ sortBy?: ("specifier" | "path");
11367
+ anyOf: [{
11243
11368
  elementNamePattern?: (({
11244
11369
  pattern: string;
11245
11370
  flags?: string;
@@ -11249,16 +11374,28 @@ type PerfectionistSortImports = {
11249
11374
  } | string));
11250
11375
  modifiers?: ("default" | "multiline" | "named" | "require" | "side-effect" | "singleline" | "ts-equals" | "type" | "value" | "wildcard")[];
11251
11376
  selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
11252
- }[];
11377
+ }, ...({
11378
+ elementNamePattern?: (({
11379
+ pattern: string;
11380
+ flags?: string;
11381
+ } | string)[] | ({
11382
+ pattern: string;
11383
+ flags?: string;
11384
+ } | string));
11385
+ modifiers?: ("default" | "multiline" | "named" | "require" | "side-effect" | "singleline" | "ts-equals" | "type" | "value" | "wildcard")[];
11386
+ selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
11387
+ })[]];
11253
11388
  } | {
11254
11389
  fallbackSort?: {
11255
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
11390
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first");
11256
11391
  order?: ("asc" | "desc");
11392
+ sortBy?: ("specifier" | "path");
11257
11393
  };
11258
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
11394
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first");
11259
11395
  groupName: string;
11260
11396
  newlinesInside?: ("ignore" | number);
11261
11397
  order?: ("asc" | "desc");
11398
+ sortBy?: ("specifier" | "path");
11262
11399
  elementNamePattern?: (({
11263
11400
  pattern: string;
11264
11401
  flags?: string;
@@ -11274,10 +11411,16 @@ type PerfectionistSortImports = {
11274
11411
  newlinesBetween: ("ignore" | number);
11275
11412
  } | {
11276
11413
  group: (string | [string, ...(string)[]]);
11414
+ fallbackSort?: {
11415
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first");
11416
+ order?: ("asc" | "desc");
11417
+ sortBy?: ("specifier" | "path");
11418
+ };
11277
11419
  commentAbove?: string;
11278
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
11420
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first");
11279
11421
  newlinesInside?: ("ignore" | number);
11280
11422
  order?: ("asc" | "desc");
11423
+ sortBy?: ("specifier" | "path");
11281
11424
  })[];
11282
11425
  newlinesBetween?: ("ignore" | number);
11283
11426
  tsconfig?: {
@@ -11321,27 +11464,29 @@ type PerfectionistSortImports = {
11321
11464
  // ----- perfectionist/sort-interfaces -----
11322
11465
  type PerfectionistSortInterfaces = {
11323
11466
  fallbackSort?: {
11324
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11467
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11325
11468
  order?: ("asc" | "desc");
11326
11469
  sortBy?: ("name" | "value");
11327
11470
  };
11328
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11471
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11329
11472
  specialCharacters?: ("remove" | "trim" | "keep");
11330
11473
  ignoreCase?: boolean;
11331
11474
  alphabet?: string;
11332
11475
  locales?: (string | string[]);
11333
11476
  order?: ("asc" | "desc");
11477
+ sortBy?: ("name" | "value");
11334
11478
  customGroups?: ({
11335
11479
  fallbackSort?: {
11336
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11480
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11337
11481
  order?: ("asc" | "desc");
11338
11482
  sortBy?: ("name" | "value");
11339
11483
  };
11340
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11484
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11341
11485
  groupName: string;
11342
11486
  newlinesInside?: ("ignore" | number);
11343
11487
  order?: ("asc" | "desc");
11344
- anyOf: {
11488
+ sortBy?: ("name" | "value");
11489
+ anyOf: [{
11345
11490
  elementNamePattern?: (({
11346
11491
  pattern: string;
11347
11492
  flags?: string;
@@ -11358,18 +11503,35 @@ type PerfectionistSortInterfaces = {
11358
11503
  pattern: string;
11359
11504
  flags?: string;
11360
11505
  } | string));
11361
- sortBy?: ("name" | "value");
11362
- }[];
11506
+ }, ...({
11507
+ elementNamePattern?: (({
11508
+ pattern: string;
11509
+ flags?: string;
11510
+ } | string)[] | ({
11511
+ pattern: string;
11512
+ flags?: string;
11513
+ } | string));
11514
+ modifiers?: ("optional" | "required" | "multiline")[];
11515
+ selector?: ("index-signature" | "member" | "method" | "property");
11516
+ elementValuePattern?: (({
11517
+ pattern: string;
11518
+ flags?: string;
11519
+ } | string)[] | ({
11520
+ pattern: string;
11521
+ flags?: string;
11522
+ } | string));
11523
+ })[]];
11363
11524
  } | {
11364
11525
  fallbackSort?: {
11365
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11526
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11366
11527
  order?: ("asc" | "desc");
11367
11528
  sortBy?: ("name" | "value");
11368
11529
  };
11369
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11530
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11370
11531
  groupName: string;
11371
11532
  newlinesInside?: ("ignore" | number);
11372
11533
  order?: ("asc" | "desc");
11534
+ sortBy?: ("name" | "value");
11373
11535
  elementNamePattern?: (({
11374
11536
  pattern: string;
11375
11537
  flags?: string;
@@ -11386,17 +11548,22 @@ type PerfectionistSortInterfaces = {
11386
11548
  pattern: string;
11387
11549
  flags?: string;
11388
11550
  } | string));
11389
- sortBy?: ("name" | "value");
11390
11551
  })[];
11391
11552
  newlinesInside?: (("ignore" | number) | "newlinesBetween");
11392
11553
  groups?: (string | [string, ...(string)[]] | {
11393
11554
  newlinesBetween: ("ignore" | number);
11394
11555
  } | {
11395
11556
  group: (string | [string, ...(string)[]]);
11557
+ fallbackSort?: {
11558
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11559
+ order?: ("asc" | "desc");
11560
+ sortBy?: ("name" | "value");
11561
+ };
11396
11562
  commentAbove?: string;
11397
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11563
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11398
11564
  newlinesInside?: ("ignore" | number);
11399
11565
  order?: ("asc" | "desc");
11566
+ sortBy?: ("name" | "value");
11400
11567
  })[];
11401
11568
  newlinesBetween?: ("ignore" | number);
11402
11569
  useConfigurationIf?: {
@@ -11450,15 +11617,14 @@ type PerfectionistSortInterfaces = {
11450
11617
  } | string)));
11451
11618
  });
11452
11619
  partitionByNewLine?: boolean;
11453
- sortBy?: ("name" | "value");
11454
11620
  }[];
11455
11621
  // ----- perfectionist/sort-intersection-types -----
11456
11622
  type PerfectionistSortIntersectionTypes = {
11457
11623
  fallbackSort?: {
11458
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11624
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11459
11625
  order?: ("asc" | "desc");
11460
11626
  };
11461
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11627
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11462
11628
  specialCharacters?: ("remove" | "trim" | "keep");
11463
11629
  ignoreCase?: boolean;
11464
11630
  alphabet?: string;
@@ -11466,14 +11632,14 @@ type PerfectionistSortIntersectionTypes = {
11466
11632
  order?: ("asc" | "desc");
11467
11633
  customGroups?: ({
11468
11634
  fallbackSort?: {
11469
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11635
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11470
11636
  order?: ("asc" | "desc");
11471
11637
  };
11472
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11638
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11473
11639
  groupName: string;
11474
11640
  newlinesInside?: ("ignore" | number);
11475
11641
  order?: ("asc" | "desc");
11476
- anyOf: {
11642
+ anyOf: [{
11477
11643
  elementNamePattern?: (({
11478
11644
  pattern: string;
11479
11645
  flags?: string;
@@ -11482,13 +11648,22 @@ type PerfectionistSortIntersectionTypes = {
11482
11648
  flags?: string;
11483
11649
  } | string));
11484
11650
  selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
11485
- }[];
11651
+ }, ...({
11652
+ elementNamePattern?: (({
11653
+ pattern: string;
11654
+ flags?: string;
11655
+ } | string)[] | ({
11656
+ pattern: string;
11657
+ flags?: string;
11658
+ } | string));
11659
+ selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
11660
+ })[]];
11486
11661
  } | {
11487
11662
  fallbackSort?: {
11488
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11663
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11489
11664
  order?: ("asc" | "desc");
11490
11665
  };
11491
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11666
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11492
11667
  groupName: string;
11493
11668
  newlinesInside?: ("ignore" | number);
11494
11669
  order?: ("asc" | "desc");
@@ -11506,8 +11681,12 @@ type PerfectionistSortIntersectionTypes = {
11506
11681
  newlinesBetween: ("ignore" | number);
11507
11682
  } | {
11508
11683
  group: (string | [string, ...(string)[]]);
11684
+ fallbackSort?: {
11685
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11686
+ order?: ("asc" | "desc");
11687
+ };
11509
11688
  commentAbove?: string;
11510
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11689
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11511
11690
  newlinesInside?: ("ignore" | number);
11512
11691
  order?: ("asc" | "desc");
11513
11692
  })[];
@@ -11539,10 +11718,10 @@ type PerfectionistSortIntersectionTypes = {
11539
11718
  // ----- perfectionist/sort-jsx-props -----
11540
11719
  type PerfectionistSortJsxProps = {
11541
11720
  fallbackSort?: {
11542
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11721
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11543
11722
  order?: ("asc" | "desc");
11544
11723
  };
11545
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11724
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11546
11725
  specialCharacters?: ("remove" | "trim" | "keep");
11547
11726
  ignoreCase?: boolean;
11548
11727
  alphabet?: string;
@@ -11550,14 +11729,31 @@ type PerfectionistSortJsxProps = {
11550
11729
  order?: ("asc" | "desc");
11551
11730
  customGroups?: ({
11552
11731
  fallbackSort?: {
11553
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11732
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11554
11733
  order?: ("asc" | "desc");
11555
11734
  };
11556
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11735
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11557
11736
  groupName: string;
11558
11737
  newlinesInside?: ("ignore" | number);
11559
11738
  order?: ("asc" | "desc");
11560
- anyOf: {
11739
+ anyOf: [{
11740
+ elementNamePattern?: (({
11741
+ pattern: string;
11742
+ flags?: string;
11743
+ } | string)[] | ({
11744
+ pattern: string;
11745
+ flags?: string;
11746
+ } | string));
11747
+ modifiers?: ("shorthand" | "multiline")[];
11748
+ selector?: "prop";
11749
+ elementValuePattern?: (({
11750
+ pattern: string;
11751
+ flags?: string;
11752
+ } | string)[] | ({
11753
+ pattern: string;
11754
+ flags?: string;
11755
+ } | string));
11756
+ }, ...({
11561
11757
  elementNamePattern?: (({
11562
11758
  pattern: string;
11563
11759
  flags?: string;
@@ -11574,13 +11770,13 @@ type PerfectionistSortJsxProps = {
11574
11770
  pattern: string;
11575
11771
  flags?: string;
11576
11772
  } | string));
11577
- }[];
11773
+ })[]];
11578
11774
  } | {
11579
11775
  fallbackSort?: {
11580
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11776
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11581
11777
  order?: ("asc" | "desc");
11582
11778
  };
11583
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11779
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11584
11780
  groupName: string;
11585
11781
  newlinesInside?: ("ignore" | number);
11586
11782
  order?: ("asc" | "desc");
@@ -11606,8 +11802,12 @@ type PerfectionistSortJsxProps = {
11606
11802
  newlinesBetween: ("ignore" | number);
11607
11803
  } | {
11608
11804
  group: (string | [string, ...(string)[]]);
11805
+ fallbackSort?: {
11806
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11807
+ order?: ("asc" | "desc");
11808
+ };
11609
11809
  commentAbove?: string;
11610
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11810
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11611
11811
  newlinesInside?: ("ignore" | number);
11612
11812
  order?: ("asc" | "desc");
11613
11813
  })[];
@@ -11633,10 +11833,10 @@ type PerfectionistSortJsxProps = {
11633
11833
  // ----- perfectionist/sort-maps -----
11634
11834
  type PerfectionistSortMaps = {
11635
11835
  fallbackSort?: {
11636
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11836
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11637
11837
  order?: ("asc" | "desc");
11638
11838
  };
11639
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11839
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11640
11840
  specialCharacters?: ("remove" | "trim" | "keep");
11641
11841
  ignoreCase?: boolean;
11642
11842
  alphabet?: string;
@@ -11644,14 +11844,22 @@ type PerfectionistSortMaps = {
11644
11844
  order?: ("asc" | "desc");
11645
11845
  customGroups?: ({
11646
11846
  fallbackSort?: {
11647
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11847
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11648
11848
  order?: ("asc" | "desc");
11649
11849
  };
11650
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11850
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11651
11851
  groupName: string;
11652
11852
  newlinesInside?: ("ignore" | number);
11653
11853
  order?: ("asc" | "desc");
11654
- anyOf: {
11854
+ anyOf: [{
11855
+ elementNamePattern?: (({
11856
+ pattern: string;
11857
+ flags?: string;
11858
+ } | string)[] | ({
11859
+ pattern: string;
11860
+ flags?: string;
11861
+ } | string));
11862
+ }, ...({
11655
11863
  elementNamePattern?: (({
11656
11864
  pattern: string;
11657
11865
  flags?: string;
@@ -11659,13 +11867,13 @@ type PerfectionistSortMaps = {
11659
11867
  pattern: string;
11660
11868
  flags?: string;
11661
11869
  } | string));
11662
- }[];
11870
+ })[]];
11663
11871
  } | {
11664
11872
  fallbackSort?: {
11665
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11873
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11666
11874
  order?: ("asc" | "desc");
11667
11875
  };
11668
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11876
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11669
11877
  groupName: string;
11670
11878
  newlinesInside?: ("ignore" | number);
11671
11879
  order?: ("asc" | "desc");
@@ -11682,8 +11890,12 @@ type PerfectionistSortMaps = {
11682
11890
  newlinesBetween: ("ignore" | number);
11683
11891
  } | {
11684
11892
  group: (string | [string, ...(string)[]]);
11893
+ fallbackSort?: {
11894
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11895
+ order?: ("asc" | "desc");
11896
+ };
11685
11897
  commentAbove?: string;
11686
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11898
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11687
11899
  newlinesInside?: ("ignore" | number);
11688
11900
  order?: ("asc" | "desc");
11689
11901
  })[];
@@ -11724,10 +11936,10 @@ type PerfectionistSortMaps = {
11724
11936
  // ----- perfectionist/sort-modules -----
11725
11937
  type PerfectionistSortModules = [] | [{
11726
11938
  fallbackSort?: {
11727
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11939
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage");
11728
11940
  order?: ("asc" | "desc");
11729
11941
  };
11730
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11942
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage");
11731
11943
  specialCharacters?: ("remove" | "trim" | "keep");
11732
11944
  ignoreCase?: boolean;
11733
11945
  alphabet?: string;
@@ -11735,14 +11947,31 @@ type PerfectionistSortModules = [] | [{
11735
11947
  order?: ("asc" | "desc");
11736
11948
  customGroups?: ({
11737
11949
  fallbackSort?: {
11738
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11950
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage");
11739
11951
  order?: ("asc" | "desc");
11740
11952
  };
11741
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11953
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage");
11742
11954
  groupName: string;
11743
11955
  newlinesInside?: ("ignore" | number);
11744
11956
  order?: ("asc" | "desc");
11745
- anyOf: {
11957
+ anyOf: [{
11958
+ elementNamePattern?: (({
11959
+ pattern: string;
11960
+ flags?: string;
11961
+ } | string)[] | ({
11962
+ pattern: string;
11963
+ flags?: string;
11964
+ } | string));
11965
+ modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
11966
+ selector?: ("enum" | "function" | "interface" | "type" | "class");
11967
+ decoratorNamePattern?: (({
11968
+ pattern: string;
11969
+ flags?: string;
11970
+ } | string)[] | ({
11971
+ pattern: string;
11972
+ flags?: string;
11973
+ } | string));
11974
+ }, ...({
11746
11975
  elementNamePattern?: (({
11747
11976
  pattern: string;
11748
11977
  flags?: string;
@@ -11759,13 +11988,13 @@ type PerfectionistSortModules = [] | [{
11759
11988
  pattern: string;
11760
11989
  flags?: string;
11761
11990
  } | string));
11762
- }[];
11991
+ })[]];
11763
11992
  } | {
11764
11993
  fallbackSort?: {
11765
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11994
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage");
11766
11995
  order?: ("asc" | "desc");
11767
11996
  };
11768
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11997
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage");
11769
11998
  groupName: string;
11770
11999
  newlinesInside?: ("ignore" | number);
11771
12000
  order?: ("asc" | "desc");
@@ -11791,8 +12020,12 @@ type PerfectionistSortModules = [] | [{
11791
12020
  newlinesBetween: ("ignore" | number);
11792
12021
  } | {
11793
12022
  group: (string | [string, ...(string)[]]);
12023
+ fallbackSort?: {
12024
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage");
12025
+ order?: ("asc" | "desc");
12026
+ };
11794
12027
  commentAbove?: string;
11795
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12028
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage");
11796
12029
  newlinesInside?: ("ignore" | number);
11797
12030
  order?: ("asc" | "desc");
11798
12031
  })[];
@@ -11824,10 +12057,10 @@ type PerfectionistSortModules = [] | [{
11824
12057
  // ----- perfectionist/sort-named-exports -----
11825
12058
  type PerfectionistSortNamedExports = {
11826
12059
  fallbackSort?: {
11827
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12060
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11828
12061
  order?: ("asc" | "desc");
11829
12062
  };
11830
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12063
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11831
12064
  specialCharacters?: ("remove" | "trim" | "keep");
11832
12065
  ignoreCase?: boolean;
11833
12066
  alphabet?: string;
@@ -11835,14 +12068,24 @@ type PerfectionistSortNamedExports = {
11835
12068
  order?: ("asc" | "desc");
11836
12069
  customGroups?: ({
11837
12070
  fallbackSort?: {
11838
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12071
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11839
12072
  order?: ("asc" | "desc");
11840
12073
  };
11841
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12074
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11842
12075
  groupName: string;
11843
12076
  newlinesInside?: ("ignore" | number);
11844
12077
  order?: ("asc" | "desc");
11845
- anyOf: {
12078
+ anyOf: [{
12079
+ elementNamePattern?: (({
12080
+ pattern: string;
12081
+ flags?: string;
12082
+ } | string)[] | ({
12083
+ pattern: string;
12084
+ flags?: string;
12085
+ } | string));
12086
+ modifiers?: ("value" | "type")[];
12087
+ selector?: "export";
12088
+ }, ...({
11846
12089
  elementNamePattern?: (({
11847
12090
  pattern: string;
11848
12091
  flags?: string;
@@ -11852,13 +12095,13 @@ type PerfectionistSortNamedExports = {
11852
12095
  } | string));
11853
12096
  modifiers?: ("value" | "type")[];
11854
12097
  selector?: "export";
11855
- }[];
12098
+ })[]];
11856
12099
  } | {
11857
12100
  fallbackSort?: {
11858
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12101
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11859
12102
  order?: ("asc" | "desc");
11860
12103
  };
11861
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12104
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11862
12105
  groupName: string;
11863
12106
  newlinesInside?: ("ignore" | number);
11864
12107
  order?: ("asc" | "desc");
@@ -11877,8 +12120,12 @@ type PerfectionistSortNamedExports = {
11877
12120
  newlinesBetween: ("ignore" | number);
11878
12121
  } | {
11879
12122
  group: (string | [string, ...(string)[]]);
12123
+ fallbackSort?: {
12124
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12125
+ order?: ("asc" | "desc");
12126
+ };
11880
12127
  commentAbove?: string;
11881
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12128
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11882
12129
  newlinesInside?: ("ignore" | number);
11883
12130
  order?: ("asc" | "desc");
11884
12131
  })[];
@@ -11911,10 +12158,10 @@ type PerfectionistSortNamedExports = {
11911
12158
  // ----- perfectionist/sort-named-imports -----
11912
12159
  type PerfectionistSortNamedImports = {
11913
12160
  fallbackSort?: {
11914
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12161
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11915
12162
  order?: ("asc" | "desc");
11916
12163
  };
11917
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12164
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11918
12165
  specialCharacters?: ("remove" | "trim" | "keep");
11919
12166
  ignoreCase?: boolean;
11920
12167
  alphabet?: string;
@@ -11922,14 +12169,14 @@ type PerfectionistSortNamedImports = {
11922
12169
  order?: ("asc" | "desc");
11923
12170
  customGroups?: ({
11924
12171
  fallbackSort?: {
11925
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12172
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11926
12173
  order?: ("asc" | "desc");
11927
12174
  };
11928
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12175
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11929
12176
  groupName: string;
11930
12177
  newlinesInside?: ("ignore" | number);
11931
12178
  order?: ("asc" | "desc");
11932
- anyOf: {
12179
+ anyOf: [{
11933
12180
  elementNamePattern?: (({
11934
12181
  pattern: string;
11935
12182
  flags?: string;
@@ -11939,13 +12186,23 @@ type PerfectionistSortNamedImports = {
11939
12186
  } | string));
11940
12187
  modifiers?: ("value" | "type")[];
11941
12188
  selector?: "import";
11942
- }[];
12189
+ }, ...({
12190
+ elementNamePattern?: (({
12191
+ pattern: string;
12192
+ flags?: string;
12193
+ } | string)[] | ({
12194
+ pattern: string;
12195
+ flags?: string;
12196
+ } | string));
12197
+ modifiers?: ("value" | "type")[];
12198
+ selector?: "import";
12199
+ })[]];
11943
12200
  } | {
11944
12201
  fallbackSort?: {
11945
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12202
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11946
12203
  order?: ("asc" | "desc");
11947
12204
  };
11948
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12205
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11949
12206
  groupName: string;
11950
12207
  newlinesInside?: ("ignore" | number);
11951
12208
  order?: ("asc" | "desc");
@@ -11964,8 +12221,12 @@ type PerfectionistSortNamedImports = {
11964
12221
  newlinesBetween: ("ignore" | number);
11965
12222
  } | {
11966
12223
  group: (string | [string, ...(string)[]]);
12224
+ fallbackSort?: {
12225
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12226
+ order?: ("asc" | "desc");
12227
+ };
11967
12228
  commentAbove?: string;
11968
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12229
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
11969
12230
  newlinesInside?: ("ignore" | number);
11970
12231
  order?: ("asc" | "desc");
11971
12232
  })[];
@@ -11998,27 +12259,29 @@ type PerfectionistSortNamedImports = {
11998
12259
  // ----- perfectionist/sort-object-types -----
11999
12260
  type PerfectionistSortObjectTypes = {
12000
12261
  fallbackSort?: {
12001
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12262
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12002
12263
  order?: ("asc" | "desc");
12003
12264
  sortBy?: ("name" | "value");
12004
12265
  };
12005
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12266
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12006
12267
  specialCharacters?: ("remove" | "trim" | "keep");
12007
12268
  ignoreCase?: boolean;
12008
12269
  alphabet?: string;
12009
12270
  locales?: (string | string[]);
12010
12271
  order?: ("asc" | "desc");
12272
+ sortBy?: ("name" | "value");
12011
12273
  customGroups?: ({
12012
12274
  fallbackSort?: {
12013
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12275
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12014
12276
  order?: ("asc" | "desc");
12015
12277
  sortBy?: ("name" | "value");
12016
12278
  };
12017
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12279
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12018
12280
  groupName: string;
12019
12281
  newlinesInside?: ("ignore" | number);
12020
12282
  order?: ("asc" | "desc");
12021
- anyOf: {
12283
+ sortBy?: ("name" | "value");
12284
+ anyOf: [{
12022
12285
  elementNamePattern?: (({
12023
12286
  pattern: string;
12024
12287
  flags?: string;
@@ -12035,18 +12298,35 @@ type PerfectionistSortObjectTypes = {
12035
12298
  pattern: string;
12036
12299
  flags?: string;
12037
12300
  } | string));
12038
- sortBy?: ("name" | "value");
12039
- }[];
12301
+ }, ...({
12302
+ elementNamePattern?: (({
12303
+ pattern: string;
12304
+ flags?: string;
12305
+ } | string)[] | ({
12306
+ pattern: string;
12307
+ flags?: string;
12308
+ } | string));
12309
+ modifiers?: ("optional" | "required" | "multiline")[];
12310
+ selector?: ("index-signature" | "member" | "method" | "property");
12311
+ elementValuePattern?: (({
12312
+ pattern: string;
12313
+ flags?: string;
12314
+ } | string)[] | ({
12315
+ pattern: string;
12316
+ flags?: string;
12317
+ } | string));
12318
+ })[]];
12040
12319
  } | {
12041
12320
  fallbackSort?: {
12042
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12321
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12043
12322
  order?: ("asc" | "desc");
12044
12323
  sortBy?: ("name" | "value");
12045
12324
  };
12046
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12325
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12047
12326
  groupName: string;
12048
12327
  newlinesInside?: ("ignore" | number);
12049
12328
  order?: ("asc" | "desc");
12329
+ sortBy?: ("name" | "value");
12050
12330
  elementNamePattern?: (({
12051
12331
  pattern: string;
12052
12332
  flags?: string;
@@ -12063,17 +12343,22 @@ type PerfectionistSortObjectTypes = {
12063
12343
  pattern: string;
12064
12344
  flags?: string;
12065
12345
  } | string));
12066
- sortBy?: ("name" | "value");
12067
12346
  })[];
12068
12347
  newlinesInside?: (("ignore" | number) | "newlinesBetween");
12069
12348
  groups?: (string | [string, ...(string)[]] | {
12070
12349
  newlinesBetween: ("ignore" | number);
12071
12350
  } | {
12072
12351
  group: (string | [string, ...(string)[]]);
12352
+ fallbackSort?: {
12353
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12354
+ order?: ("asc" | "desc");
12355
+ sortBy?: ("name" | "value");
12356
+ };
12073
12357
  commentAbove?: string;
12074
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12358
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12075
12359
  newlinesInside?: ("ignore" | number);
12076
12360
  order?: ("asc" | "desc");
12361
+ sortBy?: ("name" | "value");
12077
12362
  })[];
12078
12363
  newlinesBetween?: ("ignore" | number);
12079
12364
  useConfigurationIf?: {
@@ -12127,15 +12412,14 @@ type PerfectionistSortObjectTypes = {
12127
12412
  } | string)));
12128
12413
  });
12129
12414
  partitionByNewLine?: boolean;
12130
- sortBy?: ("name" | "value");
12131
12415
  }[];
12132
12416
  // ----- perfectionist/sort-objects -----
12133
12417
  type PerfectionistSortObjects = {
12134
12418
  fallbackSort?: {
12135
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12419
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12136
12420
  order?: ("asc" | "desc");
12137
12421
  };
12138
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12422
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12139
12423
  specialCharacters?: ("remove" | "trim" | "keep");
12140
12424
  ignoreCase?: boolean;
12141
12425
  alphabet?: string;
@@ -12143,14 +12427,14 @@ type PerfectionistSortObjects = {
12143
12427
  order?: ("asc" | "desc");
12144
12428
  customGroups?: ({
12145
12429
  fallbackSort?: {
12146
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12430
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12147
12431
  order?: ("asc" | "desc");
12148
12432
  };
12149
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12433
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12150
12434
  groupName: string;
12151
12435
  newlinesInside?: ("ignore" | number);
12152
12436
  order?: ("asc" | "desc");
12153
- anyOf: {
12437
+ anyOf: [{
12154
12438
  elementNamePattern?: (({
12155
12439
  pattern: string;
12156
12440
  flags?: string;
@@ -12158,7 +12442,24 @@ type PerfectionistSortObjects = {
12158
12442
  pattern: string;
12159
12443
  flags?: string;
12160
12444
  } | string));
12161
- modifiers?: ("optional" | "required" | "multiline")[];
12445
+ modifiers?: ("multiline")[];
12446
+ selector?: ("member" | "method" | "property");
12447
+ elementValuePattern?: (({
12448
+ pattern: string;
12449
+ flags?: string;
12450
+ } | string)[] | ({
12451
+ pattern: string;
12452
+ flags?: string;
12453
+ } | string));
12454
+ }, ...({
12455
+ elementNamePattern?: (({
12456
+ pattern: string;
12457
+ flags?: string;
12458
+ } | string)[] | ({
12459
+ pattern: string;
12460
+ flags?: string;
12461
+ } | string));
12462
+ modifiers?: ("multiline")[];
12162
12463
  selector?: ("member" | "method" | "property");
12163
12464
  elementValuePattern?: (({
12164
12465
  pattern: string;
@@ -12167,13 +12468,13 @@ type PerfectionistSortObjects = {
12167
12468
  pattern: string;
12168
12469
  flags?: string;
12169
12470
  } | string));
12170
- }[];
12471
+ })[]];
12171
12472
  } | {
12172
12473
  fallbackSort?: {
12173
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12474
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12174
12475
  order?: ("asc" | "desc");
12175
12476
  };
12176
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12477
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12177
12478
  groupName: string;
12178
12479
  newlinesInside?: ("ignore" | number);
12179
12480
  order?: ("asc" | "desc");
@@ -12184,7 +12485,7 @@ type PerfectionistSortObjects = {
12184
12485
  pattern: string;
12185
12486
  flags?: string;
12186
12487
  } | string));
12187
- modifiers?: ("optional" | "required" | "multiline")[];
12488
+ modifiers?: ("multiline")[];
12188
12489
  selector?: ("member" | "method" | "property");
12189
12490
  elementValuePattern?: (({
12190
12491
  pattern: string;
@@ -12199,8 +12500,12 @@ type PerfectionistSortObjects = {
12199
12500
  newlinesBetween: ("ignore" | number);
12200
12501
  } | {
12201
12502
  group: (string | [string, ...(string)[]]);
12503
+ fallbackSort?: {
12504
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12505
+ order?: ("asc" | "desc");
12506
+ };
12202
12507
  commentAbove?: string;
12203
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12508
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12204
12509
  newlinesInside?: ("ignore" | number);
12205
12510
  order?: ("asc" | "desc");
12206
12511
  })[];
@@ -12271,10 +12576,10 @@ type PerfectionistSortObjects = {
12271
12576
  // ----- perfectionist/sort-sets -----
12272
12577
  type PerfectionistSortSets = {
12273
12578
  fallbackSort?: {
12274
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12579
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12275
12580
  order?: ("asc" | "desc");
12276
12581
  };
12277
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12582
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12278
12583
  specialCharacters?: ("remove" | "trim" | "keep");
12279
12584
  ignoreCase?: boolean;
12280
12585
  alphabet?: string;
@@ -12282,14 +12587,14 @@ type PerfectionistSortSets = {
12282
12587
  order?: ("asc" | "desc");
12283
12588
  customGroups?: ({
12284
12589
  fallbackSort?: {
12285
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12590
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12286
12591
  order?: ("asc" | "desc");
12287
12592
  };
12288
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12593
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12289
12594
  groupName: string;
12290
12595
  newlinesInside?: ("ignore" | number);
12291
12596
  order?: ("asc" | "desc");
12292
- anyOf: {
12597
+ anyOf: [{
12293
12598
  elementNamePattern?: (({
12294
12599
  pattern: string;
12295
12600
  flags?: string;
@@ -12298,13 +12603,22 @@ type PerfectionistSortSets = {
12298
12603
  flags?: string;
12299
12604
  } | string));
12300
12605
  selector?: ("literal" | "spread");
12301
- }[];
12606
+ }, ...({
12607
+ elementNamePattern?: (({
12608
+ pattern: string;
12609
+ flags?: string;
12610
+ } | string)[] | ({
12611
+ pattern: string;
12612
+ flags?: string;
12613
+ } | string));
12614
+ selector?: ("literal" | "spread");
12615
+ })[]];
12302
12616
  } | {
12303
12617
  fallbackSort?: {
12304
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12618
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12305
12619
  order?: ("asc" | "desc");
12306
12620
  };
12307
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12621
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12308
12622
  groupName: string;
12309
12623
  newlinesInside?: ("ignore" | number);
12310
12624
  order?: ("asc" | "desc");
@@ -12322,8 +12636,12 @@ type PerfectionistSortSets = {
12322
12636
  newlinesBetween: ("ignore" | number);
12323
12637
  } | {
12324
12638
  group: (string | [string, ...(string)[]]);
12639
+ fallbackSort?: {
12640
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12641
+ order?: ("asc" | "desc");
12642
+ };
12325
12643
  commentAbove?: string;
12326
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12644
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12327
12645
  newlinesInside?: ("ignore" | number);
12328
12646
  order?: ("asc" | "desc");
12329
12647
  })[];
@@ -12364,10 +12682,10 @@ type PerfectionistSortSets = {
12364
12682
  // ----- perfectionist/sort-switch-case -----
12365
12683
  type PerfectionistSortSwitchCase = [] | [{
12366
12684
  fallbackSort?: {
12367
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12685
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12368
12686
  order?: ("asc" | "desc");
12369
12687
  };
12370
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12688
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12371
12689
  specialCharacters?: ("remove" | "trim" | "keep");
12372
12690
  ignoreCase?: boolean;
12373
12691
  alphabet?: string;
@@ -12377,10 +12695,10 @@ type PerfectionistSortSwitchCase = [] | [{
12377
12695
  // ----- perfectionist/sort-union-types -----
12378
12696
  type PerfectionistSortUnionTypes = {
12379
12697
  fallbackSort?: {
12380
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12698
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12381
12699
  order?: ("asc" | "desc");
12382
12700
  };
12383
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12701
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12384
12702
  specialCharacters?: ("remove" | "trim" | "keep");
12385
12703
  ignoreCase?: boolean;
12386
12704
  alphabet?: string;
@@ -12388,14 +12706,23 @@ type PerfectionistSortUnionTypes = {
12388
12706
  order?: ("asc" | "desc");
12389
12707
  customGroups?: ({
12390
12708
  fallbackSort?: {
12391
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12709
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12392
12710
  order?: ("asc" | "desc");
12393
12711
  };
12394
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12712
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12395
12713
  groupName: string;
12396
12714
  newlinesInside?: ("ignore" | number);
12397
12715
  order?: ("asc" | "desc");
12398
- anyOf: {
12716
+ anyOf: [{
12717
+ elementNamePattern?: (({
12718
+ pattern: string;
12719
+ flags?: string;
12720
+ } | string)[] | ({
12721
+ pattern: string;
12722
+ flags?: string;
12723
+ } | string));
12724
+ selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
12725
+ }, ...({
12399
12726
  elementNamePattern?: (({
12400
12727
  pattern: string;
12401
12728
  flags?: string;
@@ -12404,13 +12731,13 @@ type PerfectionistSortUnionTypes = {
12404
12731
  flags?: string;
12405
12732
  } | string));
12406
12733
  selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
12407
- }[];
12734
+ })[]];
12408
12735
  } | {
12409
12736
  fallbackSort?: {
12410
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12737
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12411
12738
  order?: ("asc" | "desc");
12412
12739
  };
12413
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12740
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12414
12741
  groupName: string;
12415
12742
  newlinesInside?: ("ignore" | number);
12416
12743
  order?: ("asc" | "desc");
@@ -12428,8 +12755,12 @@ type PerfectionistSortUnionTypes = {
12428
12755
  newlinesBetween: ("ignore" | number);
12429
12756
  } | {
12430
12757
  group: (string | [string, ...(string)[]]);
12758
+ fallbackSort?: {
12759
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12760
+ order?: ("asc" | "desc");
12761
+ };
12431
12762
  commentAbove?: string;
12432
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12763
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12433
12764
  newlinesInside?: ("ignore" | number);
12434
12765
  order?: ("asc" | "desc");
12435
12766
  })[];
@@ -12461,10 +12792,10 @@ type PerfectionistSortUnionTypes = {
12461
12792
  // ----- perfectionist/sort-variable-declarations -----
12462
12793
  type PerfectionistSortVariableDeclarations = [] | [{
12463
12794
  fallbackSort?: {
12464
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12795
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12465
12796
  order?: ("asc" | "desc");
12466
12797
  };
12467
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12798
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12468
12799
  specialCharacters?: ("remove" | "trim" | "keep");
12469
12800
  ignoreCase?: boolean;
12470
12801
  alphabet?: string;
@@ -12472,14 +12803,14 @@ type PerfectionistSortVariableDeclarations = [] | [{
12472
12803
  order?: ("asc" | "desc");
12473
12804
  customGroups?: ({
12474
12805
  fallbackSort?: {
12475
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12806
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12476
12807
  order?: ("asc" | "desc");
12477
12808
  };
12478
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12809
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12479
12810
  groupName: string;
12480
12811
  newlinesInside?: ("ignore" | number);
12481
12812
  order?: ("asc" | "desc");
12482
- anyOf: {
12813
+ anyOf: [{
12483
12814
  elementNamePattern?: (({
12484
12815
  pattern: string;
12485
12816
  flags?: string;
@@ -12488,13 +12819,22 @@ type PerfectionistSortVariableDeclarations = [] | [{
12488
12819
  flags?: string;
12489
12820
  } | string));
12490
12821
  selector?: ("initialized" | "uninitialized");
12491
- }[];
12822
+ }, ...({
12823
+ elementNamePattern?: (({
12824
+ pattern: string;
12825
+ flags?: string;
12826
+ } | string)[] | ({
12827
+ pattern: string;
12828
+ flags?: string;
12829
+ } | string));
12830
+ selector?: ("initialized" | "uninitialized");
12831
+ })[]];
12492
12832
  } | {
12493
12833
  fallbackSort?: {
12494
- type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12834
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12495
12835
  order?: ("asc" | "desc");
12496
12836
  };
12497
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12837
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12498
12838
  groupName: string;
12499
12839
  newlinesInside?: ("ignore" | number);
12500
12840
  order?: ("asc" | "desc");
@@ -12512,8 +12852,12 @@ type PerfectionistSortVariableDeclarations = [] | [{
12512
12852
  newlinesBetween: ("ignore" | number);
12513
12853
  } | {
12514
12854
  group: (string | [string, ...(string)[]]);
12855
+ fallbackSort?: {
12856
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12857
+ order?: ("asc" | "desc");
12858
+ };
12515
12859
  commentAbove?: string;
12516
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
12860
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order");
12517
12861
  newlinesInside?: ("ignore" | number);
12518
12862
  order?: ("asc" | "desc");
12519
12863
  })[];
@@ -12869,6 +13213,10 @@ type VitestMaxExpects = [] | [{
12869
13213
  type VitestMaxNestedDescribe = [] | [{
12870
13214
  max?: number;
12871
13215
  }];
13216
+ // ----- vitest/no-conditional-expect -----
13217
+ type VitestNoConditionalExpect = [] | [{
13218
+ expectAssertions?: boolean;
13219
+ }];
12872
13220
  // ----- vitest/no-focused-tests -----
12873
13221
  type VitestNoFocusedTests = [] | [{
12874
13222
  fixable?: boolean;