@nicksp/eslint-config 1.5.4 → 1.5.5

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.mts CHANGED
@@ -66,7 +66,7 @@ interface RuleOptions {
66
66
  */
67
67
  '@next/next/inline-script-id'?: Linter.RuleEntry<[]>;
68
68
  /**
69
- * Prefer `next/script` component when using the inline script for Google Analytics.
69
+ * Prefer `@next/third-parties/google` when using the inline script for Google Analytics and Tag Manager.
70
70
  * @see https://nextjs.org/docs/messages/next-script-for-ga
71
71
  */
72
72
  '@next/next/next-script-for-ga'?: Linter.RuleEntry<[]>;
@@ -617,6 +617,11 @@ interface RuleOptions {
617
617
  * @see https://typescript-eslint.io/rules/no-useless-constructor
618
618
  */
619
619
  '@typescript-eslint/no-useless-constructor'?: Linter.RuleEntry<[]>;
620
+ /**
621
+ * Disallow default values that will never be used
622
+ * @see https://typescript-eslint.io/rules/no-useless-default-assignment
623
+ */
624
+ '@typescript-eslint/no-useless-default-assignment'?: Linter.RuleEntry<[]>;
620
625
  /**
621
626
  * Disallow empty exports that don't change anything in a module file
622
627
  * @see https://typescript-eslint.io/rules/no-useless-empty-export
@@ -1448,6 +1453,11 @@ interface RuleOptions {
1448
1453
  * @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/consistent-type-specifier-style/README.md
1449
1454
  */
1450
1455
  'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
1456
+ /**
1457
+ * Ensure all exports appear after other statements.
1458
+ * @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/exports-last/README.md
1459
+ */
1460
+ 'import/exports-last'?: Linter.RuleEntry<[]>;
1451
1461
  /**
1452
1462
  * Ensure all imports appear before other statements.
1453
1463
  * @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/first/README.md
@@ -3525,6 +3535,11 @@ interface RuleOptions {
3525
3535
  * @see https://perfectionist.dev/rules/sort-enums
3526
3536
  */
3527
3537
  'perfectionist/sort-enums'?: Linter.RuleEntry<PerfectionistSortEnums>;
3538
+ /**
3539
+ * Enforce sorted export attributes.
3540
+ * @see https://perfectionist.dev/rules/sort-export-attributes
3541
+ */
3542
+ 'perfectionist/sort-export-attributes'?: Linter.RuleEntry<PerfectionistSortExportAttributes>;
3528
3543
  /**
3529
3544
  * Enforce sorted exports.
3530
3545
  * @see https://perfectionist.dev/rules/sort-exports
@@ -3535,6 +3550,11 @@ interface RuleOptions {
3535
3550
  * @see https://perfectionist.dev/rules/sort-heritage-clauses
3536
3551
  */
3537
3552
  'perfectionist/sort-heritage-clauses'?: Linter.RuleEntry<PerfectionistSortHeritageClauses>;
3553
+ /**
3554
+ * Enforce sorted import attributes.
3555
+ * @see https://perfectionist.dev/rules/sort-import-attributes
3556
+ */
3557
+ 'perfectionist/sort-import-attributes'?: Linter.RuleEntry<PerfectionistSortImportAttributes>;
3538
3558
  /**
3539
3559
  * Enforce sorted imports.
3540
3560
  * @see https://perfectionist.dev/rules/sort-imports
@@ -4810,6 +4830,11 @@ interface RuleOptions {
4810
4830
  * @deprecated
4811
4831
  */
4812
4832
  'template-tag-spacing'?: Linter.RuleEntry<TemplateTagSpacing>;
4833
+ /**
4834
+ * enforce using `.each` or `.for` consistently
4835
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-each-for.md
4836
+ */
4837
+ 'test/consistent-each-for'?: Linter.RuleEntry<TestConsistentEachFor>;
4813
4838
  /**
4814
4839
  * require test file pattern
4815
4840
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-filename.md
@@ -4956,6 +4981,11 @@ interface RuleOptions {
4956
4981
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-return-statement.md
4957
4982
  */
4958
4983
  'test/no-test-return-statement'?: Linter.RuleEntry<[]>;
4984
+ /**
4985
+ * Disallow unnecessary async function wrapper for expected promises
4986
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-unneeded-async-expect-function.md
4987
+ */
4988
+ 'test/no-unneeded-async-expect-function'?: Linter.RuleEntry<[]>;
4959
4989
  /**
4960
4990
  * Enforce padding around `afterAll` blocks
4961
4991
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-after-all-blocks.md
@@ -5032,7 +5062,7 @@ interface RuleOptions {
5032
5062
  */
5033
5063
  'test/prefer-each'?: Linter.RuleEntry<[]>;
5034
5064
  /**
5035
- * enforce using the built-in quality matchers
5065
+ * enforce using the built-in equality matchers
5036
5066
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-equality-matcher.md
5037
5067
  */
5038
5068
  'test/prefer-equality-matcher'?: Linter.RuleEntry<[]>;
@@ -5126,6 +5156,11 @@ interface RuleOptions {
5126
5156
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-contain.md
5127
5157
  */
5128
5158
  'test/prefer-to-contain'?: Linter.RuleEntry<[]>;
5159
+ /**
5160
+ * Suggest using `toHaveBeenCalledTimes()`
5161
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-been-called-times.md
5162
+ */
5163
+ 'test/prefer-to-have-been-called-times'?: Linter.RuleEntry<[]>;
5129
5164
  /**
5130
5165
  * enforce using toHaveLength()
5131
5166
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-length.md
@@ -9908,27 +9943,25 @@ type PaddingLineBetweenStatements = {
9908
9943
  // ----- perfectionist/sort-array-includes -----
9909
9944
  type PerfectionistSortArrayIncludes = {
9910
9945
  fallbackSort?: {
9946
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
9911
9947
  order?: ("asc" | "desc");
9912
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
9913
9948
  };
9949
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
9914
9950
  specialCharacters?: ("remove" | "trim" | "keep");
9915
9951
  ignoreCase?: boolean;
9916
9952
  alphabet?: string;
9917
9953
  locales?: (string | string[]);
9918
9954
  order?: ("asc" | "desc");
9919
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
9920
- groupKind?: ("mixed" | "literals-first" | "spreads-first");
9921
9955
  customGroups?: ({
9922
- newlinesInside?: (("always" | "never") | number);
9923
9956
  fallbackSort?: {
9957
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
9924
9958
  order?: ("asc" | "desc");
9925
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
9926
9959
  };
9960
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
9927
9961
  groupName: string;
9962
+ newlinesInside?: ("ignore" | number);
9928
9963
  order?: ("asc" | "desc");
9929
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
9930
- anyOf?: {
9931
- selector?: ("literal" | "spread");
9964
+ anyOf: {
9932
9965
  elementNamePattern?: (({
9933
9966
  pattern: string;
9934
9967
  flags?: string;
@@ -9936,17 +9969,17 @@ type PerfectionistSortArrayIncludes = {
9936
9969
  pattern: string;
9937
9970
  flags?: string;
9938
9971
  } | string));
9972
+ selector?: ("literal" | "spread");
9939
9973
  }[];
9940
9974
  } | {
9941
- newlinesInside?: (("always" | "never") | number);
9942
9975
  fallbackSort?: {
9976
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
9943
9977
  order?: ("asc" | "desc");
9944
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
9945
9978
  };
9979
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
9946
9980
  groupName: string;
9981
+ newlinesInside?: ("ignore" | number);
9947
9982
  order?: ("asc" | "desc");
9948
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
9949
- selector?: ("literal" | "spread");
9950
9983
  elementNamePattern?: (({
9951
9984
  pattern: string;
9952
9985
  flags?: string;
@@ -9954,7 +9987,19 @@ type PerfectionistSortArrayIncludes = {
9954
9987
  pattern: string;
9955
9988
  flags?: string;
9956
9989
  } | string));
9990
+ selector?: ("literal" | "spread");
9991
+ })[];
9992
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
9993
+ groups?: (string | [string, ...(string)[]] | {
9994
+ newlinesBetween: ("ignore" | number);
9995
+ } | {
9996
+ group: (string | [string, ...(string)[]]);
9997
+ commentAbove?: string;
9998
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
9999
+ newlinesInside?: ("ignore" | number);
10000
+ order?: ("asc" | "desc");
9957
10001
  })[];
10002
+ newlinesBetween?: ("ignore" | number);
9958
10003
  useConfigurationIf?: {
9959
10004
  allNamesMatchPattern?: (({
9960
10005
  pattern: string;
@@ -9987,51 +10032,46 @@ type PerfectionistSortArrayIncludes = {
9987
10032
  } | string)));
9988
10033
  });
9989
10034
  partitionByNewLine?: boolean;
9990
- newlinesBetween?: (("ignore" | "always" | "never") | number);
9991
- groups?: (string | string[] | {
9992
- newlinesBetween?: (("ignore" | "always" | "never") | number);
9993
- commentAbove?: string;
9994
- })[];
9995
10035
  }[];
9996
10036
  // ----- perfectionist/sort-classes -----
9997
10037
  type PerfectionistSortClasses = [] | [{
9998
10038
  fallbackSort?: {
10039
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
9999
10040
  order?: ("asc" | "desc");
10000
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10001
10041
  };
10042
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10002
10043
  specialCharacters?: ("remove" | "trim" | "keep");
10003
10044
  ignoreCase?: boolean;
10004
10045
  alphabet?: string;
10005
10046
  locales?: (string | string[]);
10006
10047
  order?: ("asc" | "desc");
10007
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10008
10048
  customGroups?: ({
10009
- newlinesInside?: (("always" | "never") | number);
10010
10049
  fallbackSort?: {
10050
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10011
10051
  order?: ("asc" | "desc");
10012
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10013
10052
  };
10053
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10014
10054
  groupName: string;
10055
+ newlinesInside?: ("ignore" | number);
10015
10056
  order?: ("asc" | "desc");
10016
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10017
- anyOf?: {
10018
- modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
10019
- selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
10020
- decoratorNamePattern?: (({
10057
+ anyOf: {
10058
+ elementNamePattern?: (({
10021
10059
  pattern: string;
10022
10060
  flags?: string;
10023
10061
  } | string)[] | ({
10024
10062
  pattern: string;
10025
10063
  flags?: string;
10026
10064
  } | string));
10027
- elementValuePattern?: (({
10065
+ modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
10066
+ selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
10067
+ decoratorNamePattern?: (({
10028
10068
  pattern: string;
10029
10069
  flags?: string;
10030
10070
  } | string)[] | ({
10031
10071
  pattern: string;
10032
10072
  flags?: string;
10033
10073
  } | string));
10034
- elementNamePattern?: (({
10074
+ elementValuePattern?: (({
10035
10075
  pattern: string;
10036
10076
  flags?: string;
10037
10077
  } | string)[] | ({
@@ -10040,31 +10080,31 @@ type PerfectionistSortClasses = [] | [{
10040
10080
  } | string));
10041
10081
  }[];
10042
10082
  } | {
10043
- newlinesInside?: (("always" | "never") | number);
10044
10083
  fallbackSort?: {
10084
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10045
10085
  order?: ("asc" | "desc");
10046
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10047
10086
  };
10087
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10048
10088
  groupName: string;
10089
+ newlinesInside?: ("ignore" | number);
10049
10090
  order?: ("asc" | "desc");
10050
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10051
- modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
10052
- selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
10053
- decoratorNamePattern?: (({
10091
+ elementNamePattern?: (({
10054
10092
  pattern: string;
10055
10093
  flags?: string;
10056
10094
  } | string)[] | ({
10057
10095
  pattern: string;
10058
10096
  flags?: string;
10059
10097
  } | string));
10060
- elementValuePattern?: (({
10098
+ modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
10099
+ selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
10100
+ decoratorNamePattern?: (({
10061
10101
  pattern: string;
10062
10102
  flags?: string;
10063
10103
  } | string)[] | ({
10064
10104
  pattern: string;
10065
10105
  flags?: string;
10066
10106
  } | string));
10067
- elementNamePattern?: (({
10107
+ elementValuePattern?: (({
10068
10108
  pattern: string;
10069
10109
  flags?: string;
10070
10110
  } | string)[] | ({
@@ -10072,6 +10112,17 @@ type PerfectionistSortClasses = [] | [{
10072
10112
  flags?: string;
10073
10113
  } | string));
10074
10114
  })[];
10115
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
10116
+ groups?: (string | [string, ...(string)[]] | {
10117
+ newlinesBetween: ("ignore" | number);
10118
+ } | {
10119
+ group: (string | [string, ...(string)[]]);
10120
+ commentAbove?: string;
10121
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10122
+ newlinesInside?: ("ignore" | number);
10123
+ order?: ("asc" | "desc");
10124
+ })[];
10125
+ newlinesBetween?: ("ignore" | number);
10075
10126
  ignoreCallbackDependenciesPatterns?: (({
10076
10127
  pattern: string;
10077
10128
  flags?: string;
@@ -10102,24 +10153,65 @@ type PerfectionistSortClasses = [] | [{
10102
10153
  } | string)));
10103
10154
  });
10104
10155
  partitionByNewLine?: boolean;
10105
- newlinesBetween?: (("ignore" | "always" | "never") | number);
10106
- groups?: (string | string[] | {
10107
- newlinesBetween?: (("ignore" | "always" | "never") | number);
10108
- commentAbove?: string;
10109
- })[];
10110
10156
  }];
10111
10157
  // ----- perfectionist/sort-decorators -----
10112
- type PerfectionistSortDecorators = [] | [{
10158
+ type PerfectionistSortDecorators = {
10113
10159
  fallbackSort?: {
10160
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10114
10161
  order?: ("asc" | "desc");
10115
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10116
10162
  };
10163
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10117
10164
  specialCharacters?: ("remove" | "trim" | "keep");
10118
10165
  ignoreCase?: boolean;
10119
10166
  alphabet?: string;
10120
10167
  locales?: (string | string[]);
10121
10168
  order?: ("asc" | "desc");
10122
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10169
+ customGroups?: ({
10170
+ fallbackSort?: {
10171
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10172
+ order?: ("asc" | "desc");
10173
+ };
10174
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10175
+ groupName: string;
10176
+ newlinesInside?: ("ignore" | number);
10177
+ order?: ("asc" | "desc");
10178
+ anyOf: {
10179
+ elementNamePattern?: (({
10180
+ pattern: string;
10181
+ flags?: string;
10182
+ } | string)[] | ({
10183
+ pattern: string;
10184
+ flags?: string;
10185
+ } | string));
10186
+ }[];
10187
+ } | {
10188
+ fallbackSort?: {
10189
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10190
+ order?: ("asc" | "desc");
10191
+ };
10192
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10193
+ groupName: string;
10194
+ newlinesInside?: ("ignore" | number);
10195
+ order?: ("asc" | "desc");
10196
+ elementNamePattern?: (({
10197
+ pattern: string;
10198
+ flags?: string;
10199
+ } | string)[] | ({
10200
+ pattern: string;
10201
+ flags?: string;
10202
+ } | string));
10203
+ })[];
10204
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
10205
+ groups?: (string | [string, ...(string)[]] | {
10206
+ newlinesBetween: ("ignore" | number);
10207
+ } | {
10208
+ group: (string | [string, ...(string)[]]);
10209
+ commentAbove?: string;
10210
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10211
+ newlinesInside?: ("ignore" | number);
10212
+ order?: ("asc" | "desc");
10213
+ })[];
10214
+ newlinesBetween?: ("ignore" | number);
10123
10215
  sortOnParameters?: boolean;
10124
10216
  sortOnProperties?: boolean;
10125
10217
  sortOnAccessors?: boolean;
@@ -10147,46 +10239,38 @@ type PerfectionistSortDecorators = [] | [{
10147
10239
  flags?: string;
10148
10240
  } | string)));
10149
10241
  });
10150
- customGroups?: {
10151
- [k: string]: (string | string[]) | undefined;
10152
- };
10153
- groups?: (string | string[] | {
10154
- newlinesBetween?: (("ignore" | "always" | "never") | number);
10155
- commentAbove?: string;
10156
- })[];
10157
- }];
10242
+ partitionByNewLine?: boolean;
10243
+ }[];
10158
10244
  // ----- perfectionist/sort-enums -----
10159
10245
  type PerfectionistSortEnums = [] | [{
10160
10246
  fallbackSort?: {
10247
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10161
10248
  order?: ("asc" | "desc");
10162
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10163
10249
  };
10250
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10164
10251
  specialCharacters?: ("remove" | "trim" | "keep");
10165
10252
  ignoreCase?: boolean;
10166
10253
  alphabet?: string;
10167
10254
  locales?: (string | string[]);
10168
10255
  order?: ("asc" | "desc");
10169
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10170
10256
  customGroups?: ({
10171
- [k: string]: (string | string[]) | undefined;
10172
- } | ({
10173
- newlinesInside?: (("always" | "never") | number);
10174
10257
  fallbackSort?: {
10258
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10175
10259
  order?: ("asc" | "desc");
10176
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10177
10260
  };
10261
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10178
10262
  groupName: string;
10263
+ newlinesInside?: ("ignore" | number);
10179
10264
  order?: ("asc" | "desc");
10180
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10181
- anyOf?: {
10182
- elementValuePattern?: (({
10265
+ anyOf: {
10266
+ elementNamePattern?: (({
10183
10267
  pattern: string;
10184
10268
  flags?: string;
10185
10269
  } | string)[] | ({
10186
10270
  pattern: string;
10187
10271
  flags?: string;
10188
10272
  } | string));
10189
- elementNamePattern?: (({
10273
+ elementValuePattern?: (({
10190
10274
  pattern: string;
10191
10275
  flags?: string;
10192
10276
  } | string)[] | ({
@@ -10195,31 +10279,41 @@ type PerfectionistSortEnums = [] | [{
10195
10279
  } | string));
10196
10280
  }[];
10197
10281
  } | {
10198
- newlinesInside?: (("always" | "never") | number);
10199
10282
  fallbackSort?: {
10283
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10200
10284
  order?: ("asc" | "desc");
10201
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10202
10285
  };
10286
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10203
10287
  groupName: string;
10288
+ newlinesInside?: ("ignore" | number);
10204
10289
  order?: ("asc" | "desc");
10205
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10206
- elementValuePattern?: (({
10290
+ elementNamePattern?: (({
10207
10291
  pattern: string;
10208
10292
  flags?: string;
10209
10293
  } | string)[] | ({
10210
10294
  pattern: string;
10211
10295
  flags?: string;
10212
10296
  } | string));
10213
- elementNamePattern?: (({
10297
+ elementValuePattern?: (({
10214
10298
  pattern: string;
10215
10299
  flags?: string;
10216
10300
  } | string)[] | ({
10217
10301
  pattern: string;
10218
10302
  flags?: string;
10219
10303
  } | string));
10220
- })[]);
10221
- forceNumericSort?: boolean;
10222
- sortByValue?: boolean;
10304
+ })[];
10305
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
10306
+ groups?: (string | [string, ...(string)[]] | {
10307
+ newlinesBetween: ("ignore" | number);
10308
+ } | {
10309
+ group: (string | [string, ...(string)[]]);
10310
+ commentAbove?: string;
10311
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10312
+ newlinesInside?: ("ignore" | number);
10313
+ order?: ("asc" | "desc");
10314
+ })[];
10315
+ newlinesBetween?: ("ignore" | number);
10316
+ sortByValue?: ("always" | "ifNumericEnum" | "never");
10223
10317
  partitionByComment?: (boolean | (({
10224
10318
  pattern: string;
10225
10319
  flags?: string;
@@ -10243,37 +10337,29 @@ type PerfectionistSortEnums = [] | [{
10243
10337
  } | string)));
10244
10338
  });
10245
10339
  partitionByNewLine?: boolean;
10246
- newlinesBetween?: (("ignore" | "always" | "never") | number);
10247
- groups?: (string | string[] | {
10248
- newlinesBetween?: (("ignore" | "always" | "never") | number);
10249
- commentAbove?: string;
10250
- })[];
10251
10340
  }];
10252
- // ----- perfectionist/sort-exports -----
10253
- type PerfectionistSortExports = {
10341
+ // ----- perfectionist/sort-export-attributes -----
10342
+ type PerfectionistSortExportAttributes = {
10254
10343
  fallbackSort?: {
10344
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10255
10345
  order?: ("asc" | "desc");
10256
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10257
10346
  };
10347
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10258
10348
  specialCharacters?: ("remove" | "trim" | "keep");
10259
10349
  ignoreCase?: boolean;
10260
10350
  alphabet?: string;
10261
10351
  locales?: (string | string[]);
10262
10352
  order?: ("asc" | "desc");
10263
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10264
- groupKind?: ("mixed" | "values-first" | "types-first");
10265
10353
  customGroups?: ({
10266
- newlinesInside?: (("always" | "never") | number);
10267
10354
  fallbackSort?: {
10355
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10268
10356
  order?: ("asc" | "desc");
10269
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10270
10357
  };
10358
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10271
10359
  groupName: string;
10360
+ newlinesInside?: ("ignore" | number);
10272
10361
  order?: ("asc" | "desc");
10273
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10274
- anyOf?: {
10275
- modifiers?: ("value" | "type")[];
10276
- selector?: "export";
10362
+ anyOf: {
10277
10363
  elementNamePattern?: (({
10278
10364
  pattern: string;
10279
10365
  flags?: string;
@@ -10283,16 +10369,14 @@ type PerfectionistSortExports = {
10283
10369
  } | string));
10284
10370
  }[];
10285
10371
  } | {
10286
- newlinesInside?: (("always" | "never") | number);
10287
10372
  fallbackSort?: {
10373
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10288
10374
  order?: ("asc" | "desc");
10289
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10290
10375
  };
10376
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10291
10377
  groupName: string;
10378
+ newlinesInside?: ("ignore" | number);
10292
10379
  order?: ("asc" | "desc");
10293
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10294
- modifiers?: ("value" | "type")[];
10295
- selector?: "export";
10296
10380
  elementNamePattern?: (({
10297
10381
  pattern: string;
10298
10382
  flags?: string;
@@ -10301,6 +10385,17 @@ type PerfectionistSortExports = {
10301
10385
  flags?: string;
10302
10386
  } | string));
10303
10387
  })[];
10388
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
10389
+ groups?: (string | [string, ...(string)[]] | {
10390
+ newlinesBetween: ("ignore" | number);
10391
+ } | {
10392
+ group: (string | [string, ...(string)[]]);
10393
+ commentAbove?: string;
10394
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10395
+ newlinesInside?: ("ignore" | number);
10396
+ order?: ("asc" | "desc");
10397
+ })[];
10398
+ newlinesBetween?: ("ignore" | number);
10304
10399
  partitionByComment?: (boolean | (({
10305
10400
  pattern: string;
10306
10401
  flags?: string;
@@ -10324,70 +10419,29 @@ type PerfectionistSortExports = {
10324
10419
  } | string)));
10325
10420
  });
10326
10421
  partitionByNewLine?: boolean;
10327
- newlinesBetween?: (("ignore" | "always" | "never") | number);
10328
- groups?: (string | string[] | {
10329
- newlinesBetween?: (("ignore" | "always" | "never") | number);
10330
- commentAbove?: string;
10331
- })[];
10332
10422
  }[];
10333
- // ----- perfectionist/sort-heritage-clauses -----
10334
- type PerfectionistSortHeritageClauses = [] | [{
10423
+ // ----- perfectionist/sort-exports -----
10424
+ type PerfectionistSortExports = {
10335
10425
  fallbackSort?: {
10426
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10336
10427
  order?: ("asc" | "desc");
10337
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10338
10428
  };
10339
- specialCharacters?: ("remove" | "trim" | "keep");
10340
- ignoreCase?: boolean;
10341
- alphabet?: string;
10342
- locales?: (string | string[]);
10343
- order?: ("asc" | "desc");
10344
10429
  type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10345
- customGroups?: {
10346
- [k: string]: (string | string[]) | undefined;
10347
- };
10348
- groups?: (string | string[] | {
10349
- newlinesBetween?: (("ignore" | "always" | "never") | number);
10350
- commentAbove?: string;
10351
- })[];
10352
- }];
10353
- // ----- perfectionist/sort-imports -----
10354
- type PerfectionistSortImports = {
10355
- fallbackSort?: {
10356
- order?: ("asc" | "desc");
10357
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10358
- };
10359
10430
  specialCharacters?: ("remove" | "trim" | "keep");
10360
10431
  ignoreCase?: boolean;
10361
10432
  alphabet?: string;
10362
10433
  locales?: (string | string[]);
10363
10434
  order?: ("asc" | "desc");
10364
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10365
10435
  customGroups?: ({
10366
- value?: {
10367
- [k: string]: (string | string[]) | undefined;
10368
- };
10369
- type?: {
10370
- [k: string]: (string | string[]) | undefined;
10371
- };
10372
- } | ({
10373
- newlinesInside?: (("always" | "never") | number);
10374
10436
  fallbackSort?: {
10437
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10375
10438
  order?: ("asc" | "desc");
10376
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10377
10439
  };
10440
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10378
10441
  groupName: string;
10442
+ newlinesInside?: ("ignore" | number);
10379
10443
  order?: ("asc" | "desc");
10380
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10381
- anyOf?: {
10382
- modifiers?: ("default" | "named" | "require" | "side-effect" | "ts-equals" | "type" | "value" | "wildcard")[];
10383
- selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
10384
- elementValuePattern?: (({
10385
- pattern: string;
10386
- flags?: string;
10387
- } | string)[] | ({
10388
- pattern: string;
10389
- flags?: string;
10390
- } | string));
10444
+ anyOf: {
10391
10445
  elementNamePattern?: (({
10392
10446
  pattern: string;
10393
10447
  flags?: string;
@@ -10395,25 +10449,18 @@ type PerfectionistSortImports = {
10395
10449
  pattern: string;
10396
10450
  flags?: string;
10397
10451
  } | string));
10452
+ modifiers?: ("value" | "type" | "named" | "wildcard" | "multiline" | "singleline")[];
10453
+ selector?: "export";
10398
10454
  }[];
10399
10455
  } | {
10400
- newlinesInside?: (("always" | "never") | number);
10401
10456
  fallbackSort?: {
10457
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10402
10458
  order?: ("asc" | "desc");
10403
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10404
10459
  };
10460
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10405
10461
  groupName: string;
10462
+ newlinesInside?: ("ignore" | number);
10406
10463
  order?: ("asc" | "desc");
10407
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10408
- modifiers?: ("default" | "named" | "require" | "side-effect" | "ts-equals" | "type" | "value" | "wildcard")[];
10409
- selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
10410
- elementValuePattern?: (({
10411
- pattern: string;
10412
- flags?: string;
10413
- } | string)[] | ({
10414
- pattern: string;
10415
- flags?: string;
10416
- } | string));
10417
10464
  elementNamePattern?: (({
10418
10465
  pattern: string;
10419
10466
  flags?: string;
@@ -10421,15 +10468,20 @@ type PerfectionistSortImports = {
10421
10468
  pattern: string;
10422
10469
  flags?: string;
10423
10470
  } | string));
10424
- })[]);
10425
- tsconfig?: {
10426
- rootDir: string;
10427
- filename?: string;
10428
- };
10429
- maxLineLength?: number;
10430
- sortSideEffects?: boolean;
10431
- environment?: ("node" | "bun");
10432
- tsconfigRootDir?: string;
10471
+ modifiers?: ("value" | "type" | "named" | "wildcard" | "multiline" | "singleline")[];
10472
+ selector?: "export";
10473
+ })[];
10474
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
10475
+ groups?: (string | [string, ...(string)[]] | {
10476
+ newlinesBetween: ("ignore" | number);
10477
+ } | {
10478
+ group: (string | [string, ...(string)[]]);
10479
+ commentAbove?: string;
10480
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10481
+ newlinesInside?: ("ignore" | number);
10482
+ order?: ("asc" | "desc");
10483
+ })[];
10484
+ newlinesBetween?: ("ignore" | number);
10433
10485
  partitionByComment?: (boolean | (({
10434
10486
  pattern: string;
10435
10487
  flags?: string;
@@ -10453,54 +10505,29 @@ type PerfectionistSortImports = {
10453
10505
  } | string)));
10454
10506
  });
10455
10507
  partitionByNewLine?: boolean;
10456
- newlinesBetween?: (("ignore" | "always" | "never") | number);
10457
- internalPattern?: (({
10458
- pattern: string;
10459
- flags?: string;
10460
- } | string)[] | ({
10461
- pattern: string;
10462
- flags?: string;
10463
- } | string));
10464
- groups?: (string | string[] | {
10465
- newlinesBetween?: (("ignore" | "always" | "never") | number);
10466
- commentAbove?: string;
10467
- })[];
10468
10508
  }[];
10469
- // ----- perfectionist/sort-interfaces -----
10470
- type PerfectionistSortInterfaces = {
10509
+ // ----- perfectionist/sort-heritage-clauses -----
10510
+ type PerfectionistSortHeritageClauses = {
10471
10511
  fallbackSort?: {
10512
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10472
10513
  order?: ("asc" | "desc");
10473
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10474
- sortBy?: ("name" | "value");
10475
10514
  };
10515
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10476
10516
  specialCharacters?: ("remove" | "trim" | "keep");
10477
10517
  ignoreCase?: boolean;
10478
10518
  alphabet?: string;
10479
10519
  locales?: (string | string[]);
10480
10520
  order?: ("asc" | "desc");
10481
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10482
10521
  customGroups?: ({
10483
- [k: string]: (string | string[]) | undefined;
10484
- } | ({
10485
- newlinesInside?: (("always" | "never") | number);
10486
10522
  fallbackSort?: {
10523
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10487
10524
  order?: ("asc" | "desc");
10488
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10489
- sortBy?: ("name" | "value");
10490
10525
  };
10526
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10491
10527
  groupName: string;
10528
+ newlinesInside?: ("ignore" | number);
10492
10529
  order?: ("asc" | "desc");
10493
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10494
- anyOf?: {
10495
- modifiers?: ("optional" | "required" | "multiline")[];
10496
- selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
10497
- elementValuePattern?: (({
10498
- pattern: string;
10499
- flags?: string;
10500
- } | string)[] | ({
10501
- pattern: string;
10502
- flags?: string;
10503
- } | string));
10530
+ anyOf: {
10504
10531
  elementNamePattern?: (({
10505
10532
  pattern: string;
10506
10533
  flags?: string;
@@ -10508,27 +10535,16 @@ type PerfectionistSortInterfaces = {
10508
10535
  pattern: string;
10509
10536
  flags?: string;
10510
10537
  } | string));
10511
- sortBy?: ("name" | "value");
10512
10538
  }[];
10513
10539
  } | {
10514
- newlinesInside?: (("always" | "never") | number);
10515
10540
  fallbackSort?: {
10541
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10516
10542
  order?: ("asc" | "desc");
10517
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10518
- sortBy?: ("name" | "value");
10519
10543
  };
10544
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10520
10545
  groupName: string;
10546
+ newlinesInside?: ("ignore" | number);
10521
10547
  order?: ("asc" | "desc");
10522
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10523
- modifiers?: ("optional" | "required" | "multiline")[];
10524
- selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
10525
- elementValuePattern?: (({
10526
- pattern: string;
10527
- flags?: string;
10528
- } | string)[] | ({
10529
- pattern: string;
10530
- flags?: string;
10531
- } | string));
10532
10548
  elementNamePattern?: (({
10533
10549
  pattern: string;
10534
10550
  flags?: string;
@@ -10536,25 +10552,193 @@ type PerfectionistSortInterfaces = {
10536
10552
  pattern: string;
10537
10553
  flags?: string;
10538
10554
  } | string));
10539
- sortBy?: ("name" | "value");
10540
- })[]);
10541
- groupKind?: ("mixed" | "required-first" | "optional-first");
10542
- useConfigurationIf?: {
10543
- allNamesMatchPattern?: (({
10544
- pattern: string;
10555
+ })[];
10556
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
10557
+ groups?: (string | [string, ...(string)[]] | {
10558
+ newlinesBetween: ("ignore" | number);
10559
+ } | {
10560
+ group: (string | [string, ...(string)[]]);
10561
+ commentAbove?: string;
10562
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10563
+ newlinesInside?: ("ignore" | number);
10564
+ order?: ("asc" | "desc");
10565
+ })[];
10566
+ newlinesBetween?: ("ignore" | number);
10567
+ partitionByNewLine?: boolean;
10568
+ partitionByComment?: (boolean | (({
10569
+ pattern: string;
10570
+ flags?: string;
10571
+ } | string)[] | ({
10572
+ pattern: string;
10573
+ flags?: string;
10574
+ } | string)) | {
10575
+ block?: (boolean | (({
10576
+ pattern: string;
10577
+ flags?: string;
10578
+ } | string)[] | ({
10579
+ pattern: string;
10580
+ flags?: string;
10581
+ } | string)));
10582
+ line?: (boolean | (({
10583
+ pattern: string;
10584
+ flags?: string;
10585
+ } | string)[] | ({
10586
+ pattern: string;
10587
+ flags?: string;
10588
+ } | string)));
10589
+ });
10590
+ }[];
10591
+ // ----- perfectionist/sort-import-attributes -----
10592
+ type PerfectionistSortImportAttributes = {
10593
+ fallbackSort?: {
10594
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10595
+ order?: ("asc" | "desc");
10596
+ };
10597
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10598
+ specialCharacters?: ("remove" | "trim" | "keep");
10599
+ ignoreCase?: boolean;
10600
+ alphabet?: string;
10601
+ locales?: (string | string[]);
10602
+ order?: ("asc" | "desc");
10603
+ customGroups?: ({
10604
+ fallbackSort?: {
10605
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10606
+ order?: ("asc" | "desc");
10607
+ };
10608
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10609
+ groupName: string;
10610
+ newlinesInside?: ("ignore" | number);
10611
+ order?: ("asc" | "desc");
10612
+ anyOf: {
10613
+ elementNamePattern?: (({
10614
+ pattern: string;
10615
+ flags?: string;
10616
+ } | string)[] | ({
10617
+ pattern: string;
10618
+ flags?: string;
10619
+ } | string));
10620
+ }[];
10621
+ } | {
10622
+ fallbackSort?: {
10623
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10624
+ order?: ("asc" | "desc");
10625
+ };
10626
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10627
+ groupName: string;
10628
+ newlinesInside?: ("ignore" | number);
10629
+ order?: ("asc" | "desc");
10630
+ elementNamePattern?: (({
10631
+ pattern: string;
10545
10632
  flags?: string;
10546
10633
  } | string)[] | ({
10547
10634
  pattern: string;
10548
10635
  flags?: string;
10549
10636
  } | string));
10550
- declarationMatchesPattern?: (({
10637
+ })[];
10638
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
10639
+ groups?: (string | [string, ...(string)[]] | {
10640
+ newlinesBetween: ("ignore" | number);
10641
+ } | {
10642
+ group: (string | [string, ...(string)[]]);
10643
+ commentAbove?: string;
10644
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10645
+ newlinesInside?: ("ignore" | number);
10646
+ order?: ("asc" | "desc");
10647
+ })[];
10648
+ newlinesBetween?: ("ignore" | number);
10649
+ partitionByComment?: (boolean | (({
10650
+ pattern: string;
10651
+ flags?: string;
10652
+ } | string)[] | ({
10653
+ pattern: string;
10654
+ flags?: string;
10655
+ } | string)) | {
10656
+ block?: (boolean | (({
10657
+ pattern: string;
10658
+ flags?: string;
10659
+ } | string)[] | ({
10660
+ pattern: string;
10661
+ flags?: string;
10662
+ } | string)));
10663
+ line?: (boolean | (({
10664
+ pattern: string;
10665
+ flags?: string;
10666
+ } | string)[] | ({
10667
+ pattern: string;
10668
+ flags?: string;
10669
+ } | string)));
10670
+ });
10671
+ partitionByNewLine?: boolean;
10672
+ }[];
10673
+ // ----- perfectionist/sort-imports -----
10674
+ type PerfectionistSortImports = {
10675
+ fallbackSort?: {
10676
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
10677
+ order?: ("asc" | "desc");
10678
+ };
10679
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
10680
+ specialCharacters?: ("remove" | "trim" | "keep");
10681
+ ignoreCase?: boolean;
10682
+ alphabet?: string;
10683
+ locales?: (string | string[]);
10684
+ order?: ("asc" | "desc");
10685
+ customGroups?: ({
10686
+ fallbackSort?: {
10687
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
10688
+ order?: ("asc" | "desc");
10689
+ };
10690
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
10691
+ groupName: string;
10692
+ newlinesInside?: ("ignore" | number);
10693
+ order?: ("asc" | "desc");
10694
+ anyOf: {
10695
+ elementNamePattern?: (({
10696
+ pattern: string;
10697
+ flags?: string;
10698
+ } | string)[] | ({
10699
+ pattern: string;
10700
+ flags?: string;
10701
+ } | string));
10702
+ modifiers?: ("default" | "multiline" | "named" | "require" | "side-effect" | "singleline" | "ts-equals" | "type" | "value" | "wildcard")[];
10703
+ selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
10704
+ }[];
10705
+ } | {
10706
+ fallbackSort?: {
10707
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
10708
+ order?: ("asc" | "desc");
10709
+ };
10710
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
10711
+ groupName: string;
10712
+ newlinesInside?: ("ignore" | number);
10713
+ order?: ("asc" | "desc");
10714
+ elementNamePattern?: (({
10551
10715
  pattern: string;
10552
10716
  flags?: string;
10553
10717
  } | string)[] | ({
10554
10718
  pattern: string;
10555
10719
  flags?: string;
10556
10720
  } | string));
10721
+ modifiers?: ("default" | "multiline" | "named" | "require" | "side-effect" | "singleline" | "ts-equals" | "type" | "value" | "wildcard")[];
10722
+ selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
10723
+ })[];
10724
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
10725
+ groups?: (string | [string, ...(string)[]] | {
10726
+ newlinesBetween: ("ignore" | number);
10727
+ } | {
10728
+ group: (string | [string, ...(string)[]]);
10729
+ commentAbove?: string;
10730
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
10731
+ newlinesInside?: ("ignore" | number);
10732
+ order?: ("asc" | "desc");
10733
+ })[];
10734
+ newlinesBetween?: ("ignore" | number);
10735
+ tsconfig?: {
10736
+ rootDir: string;
10737
+ filename?: string;
10557
10738
  };
10739
+ maxLineLength?: number;
10740
+ sortSideEffects?: boolean;
10741
+ environment?: ("node" | "bun");
10558
10742
  partitionByComment?: (boolean | (({
10559
10743
  pattern: string;
10560
10744
  flags?: string;
@@ -10578,43 +10762,170 @@ type PerfectionistSortInterfaces = {
10578
10762
  } | string)));
10579
10763
  });
10580
10764
  partitionByNewLine?: boolean;
10581
- newlinesBetween?: (("ignore" | "always" | "never") | number);
10582
- ignorePattern?: (({
10765
+ internalPattern?: (({
10583
10766
  pattern: string;
10584
10767
  flags?: string;
10585
10768
  } | string)[] | ({
10586
10769
  pattern: string;
10587
10770
  flags?: string;
10588
10771
  } | string));
10589
- sortBy?: ("name" | "value");
10590
- groups?: (string | string[] | {
10591
- newlinesBetween?: (("ignore" | "always" | "never") | number);
10772
+ }[];
10773
+ // ----- perfectionist/sort-interfaces -----
10774
+ type PerfectionistSortInterfaces = {
10775
+ fallbackSort?: {
10776
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10777
+ order?: ("asc" | "desc");
10778
+ sortBy?: ("name" | "value");
10779
+ };
10780
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10781
+ specialCharacters?: ("remove" | "trim" | "keep");
10782
+ ignoreCase?: boolean;
10783
+ alphabet?: string;
10784
+ locales?: (string | string[]);
10785
+ order?: ("asc" | "desc");
10786
+ customGroups?: ({
10787
+ fallbackSort?: {
10788
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10789
+ order?: ("asc" | "desc");
10790
+ sortBy?: ("name" | "value");
10791
+ };
10792
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10793
+ groupName: string;
10794
+ newlinesInside?: ("ignore" | number);
10795
+ order?: ("asc" | "desc");
10796
+ anyOf: {
10797
+ elementNamePattern?: (({
10798
+ pattern: string;
10799
+ flags?: string;
10800
+ } | string)[] | ({
10801
+ pattern: string;
10802
+ flags?: string;
10803
+ } | string));
10804
+ modifiers?: ("optional" | "required" | "multiline")[];
10805
+ selector?: ("index-signature" | "member" | "method" | "property");
10806
+ elementValuePattern?: (({
10807
+ pattern: string;
10808
+ flags?: string;
10809
+ } | string)[] | ({
10810
+ pattern: string;
10811
+ flags?: string;
10812
+ } | string));
10813
+ sortBy?: ("name" | "value");
10814
+ }[];
10815
+ } | {
10816
+ fallbackSort?: {
10817
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10818
+ order?: ("asc" | "desc");
10819
+ sortBy?: ("name" | "value");
10820
+ };
10821
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10822
+ groupName: string;
10823
+ newlinesInside?: ("ignore" | number);
10824
+ order?: ("asc" | "desc");
10825
+ elementNamePattern?: (({
10826
+ pattern: string;
10827
+ flags?: string;
10828
+ } | string)[] | ({
10829
+ pattern: string;
10830
+ flags?: string;
10831
+ } | string));
10832
+ modifiers?: ("optional" | "required" | "multiline")[];
10833
+ selector?: ("index-signature" | "member" | "method" | "property");
10834
+ elementValuePattern?: (({
10835
+ pattern: string;
10836
+ flags?: string;
10837
+ } | string)[] | ({
10838
+ pattern: string;
10839
+ flags?: string;
10840
+ } | string));
10841
+ sortBy?: ("name" | "value");
10842
+ })[];
10843
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
10844
+ groups?: (string | [string, ...(string)[]] | {
10845
+ newlinesBetween: ("ignore" | number);
10846
+ } | {
10847
+ group: (string | [string, ...(string)[]]);
10592
10848
  commentAbove?: string;
10849
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10850
+ newlinesInside?: ("ignore" | number);
10851
+ order?: ("asc" | "desc");
10593
10852
  })[];
10853
+ newlinesBetween?: ("ignore" | number);
10854
+ useConfigurationIf?: {
10855
+ allNamesMatchPattern?: (({
10856
+ pattern: string;
10857
+ flags?: string;
10858
+ } | string)[] | ({
10859
+ pattern: string;
10860
+ flags?: string;
10861
+ } | string));
10862
+ hasNumericKeysOnly?: boolean;
10863
+ declarationCommentMatchesPattern?: (({
10864
+ scope?: ("shallow" | "deep");
10865
+ pattern: string;
10866
+ flags?: string;
10867
+ } | string)[] | ({
10868
+ scope?: ("shallow" | "deep");
10869
+ pattern: string;
10870
+ flags?: string;
10871
+ } | string));
10872
+ declarationMatchesPattern?: (({
10873
+ scope?: ("shallow" | "deep");
10874
+ pattern: string;
10875
+ flags?: string;
10876
+ } | string)[] | ({
10877
+ scope?: ("shallow" | "deep");
10878
+ pattern: string;
10879
+ flags?: string;
10880
+ } | string));
10881
+ };
10882
+ partitionByComment?: (boolean | (({
10883
+ pattern: string;
10884
+ flags?: string;
10885
+ } | string)[] | ({
10886
+ pattern: string;
10887
+ flags?: string;
10888
+ } | string)) | {
10889
+ block?: (boolean | (({
10890
+ pattern: string;
10891
+ flags?: string;
10892
+ } | string)[] | ({
10893
+ pattern: string;
10894
+ flags?: string;
10895
+ } | string)));
10896
+ line?: (boolean | (({
10897
+ pattern: string;
10898
+ flags?: string;
10899
+ } | string)[] | ({
10900
+ pattern: string;
10901
+ flags?: string;
10902
+ } | string)));
10903
+ });
10904
+ partitionByNewLine?: boolean;
10905
+ sortBy?: ("name" | "value");
10594
10906
  }[];
10595
10907
  // ----- perfectionist/sort-intersection-types -----
10596
10908
  type PerfectionistSortIntersectionTypes = {
10597
10909
  fallbackSort?: {
10910
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10598
10911
  order?: ("asc" | "desc");
10599
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10600
10912
  };
10913
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10601
10914
  specialCharacters?: ("remove" | "trim" | "keep");
10602
10915
  ignoreCase?: boolean;
10603
10916
  alphabet?: string;
10604
10917
  locales?: (string | string[]);
10605
10918
  order?: ("asc" | "desc");
10606
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10607
10919
  customGroups?: ({
10608
- newlinesInside?: (("always" | "never") | number);
10609
10920
  fallbackSort?: {
10921
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10610
10922
  order?: ("asc" | "desc");
10611
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10612
10923
  };
10924
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10613
10925
  groupName: string;
10926
+ newlinesInside?: ("ignore" | number);
10614
10927
  order?: ("asc" | "desc");
10615
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10616
- anyOf?: {
10617
- selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
10928
+ anyOf: {
10618
10929
  elementNamePattern?: (({
10619
10930
  pattern: string;
10620
10931
  flags?: string;
@@ -10622,17 +10933,17 @@ type PerfectionistSortIntersectionTypes = {
10622
10933
  pattern: string;
10623
10934
  flags?: string;
10624
10935
  } | string));
10936
+ selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
10625
10937
  }[];
10626
10938
  } | {
10627
- newlinesInside?: (("always" | "never") | number);
10628
10939
  fallbackSort?: {
10940
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10629
10941
  order?: ("asc" | "desc");
10630
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10631
10942
  };
10943
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10632
10944
  groupName: string;
10945
+ newlinesInside?: ("ignore" | number);
10633
10946
  order?: ("asc" | "desc");
10634
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10635
- selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
10636
10947
  elementNamePattern?: (({
10637
10948
  pattern: string;
10638
10949
  flags?: string;
@@ -10640,7 +10951,19 @@ type PerfectionistSortIntersectionTypes = {
10640
10951
  pattern: string;
10641
10952
  flags?: string;
10642
10953
  } | string));
10954
+ selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
10643
10955
  })[];
10956
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
10957
+ groups?: (string | [string, ...(string)[]] | {
10958
+ newlinesBetween: ("ignore" | number);
10959
+ } | {
10960
+ group: (string | [string, ...(string)[]]);
10961
+ commentAbove?: string;
10962
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10963
+ newlinesInside?: ("ignore" | number);
10964
+ order?: ("asc" | "desc");
10965
+ })[];
10966
+ newlinesBetween?: ("ignore" | number);
10644
10967
  partitionByComment?: (boolean | (({
10645
10968
  pattern: string;
10646
10969
  flags?: string;
@@ -10664,46 +10987,39 @@ type PerfectionistSortIntersectionTypes = {
10664
10987
  } | string)));
10665
10988
  });
10666
10989
  partitionByNewLine?: boolean;
10667
- newlinesBetween?: (("ignore" | "always" | "never") | number);
10668
- groups?: (string | string[] | {
10669
- newlinesBetween?: (("ignore" | "always" | "never") | number);
10670
- commentAbove?: string;
10671
- })[];
10672
10990
  }[];
10673
10991
  // ----- perfectionist/sort-jsx-props -----
10674
10992
  type PerfectionistSortJsxProps = {
10675
10993
  fallbackSort?: {
10994
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10676
10995
  order?: ("asc" | "desc");
10677
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10678
10996
  };
10997
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10679
10998
  specialCharacters?: ("remove" | "trim" | "keep");
10680
10999
  ignoreCase?: boolean;
10681
11000
  alphabet?: string;
10682
11001
  locales?: (string | string[]);
10683
11002
  order?: ("asc" | "desc");
10684
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10685
11003
  customGroups?: ({
10686
- [k: string]: (string | string[]) | undefined;
10687
- } | ({
10688
- newlinesInside?: (("always" | "never") | number);
10689
11004
  fallbackSort?: {
11005
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10690
11006
  order?: ("asc" | "desc");
10691
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10692
11007
  };
11008
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10693
11009
  groupName: string;
11010
+ newlinesInside?: ("ignore" | number);
10694
11011
  order?: ("asc" | "desc");
10695
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10696
- anyOf?: {
10697
- modifiers?: ("shorthand" | "multiline")[];
10698
- selector?: ("multiline" | "prop" | "shorthand");
10699
- elementValuePattern?: (({
11012
+ anyOf: {
11013
+ elementNamePattern?: (({
10700
11014
  pattern: string;
10701
11015
  flags?: string;
10702
11016
  } | string)[] | ({
10703
11017
  pattern: string;
10704
11018
  flags?: string;
10705
11019
  } | string));
10706
- elementNamePattern?: (({
11020
+ modifiers?: ("shorthand" | "multiline")[];
11021
+ selector?: "prop";
11022
+ elementValuePattern?: (({
10707
11023
  pattern: string;
10708
11024
  flags?: string;
10709
11025
  } | string)[] | ({
@@ -10712,31 +11028,42 @@ type PerfectionistSortJsxProps = {
10712
11028
  } | string));
10713
11029
  }[];
10714
11030
  } | {
10715
- newlinesInside?: (("always" | "never") | number);
10716
11031
  fallbackSort?: {
11032
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10717
11033
  order?: ("asc" | "desc");
10718
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10719
11034
  };
11035
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10720
11036
  groupName: string;
11037
+ newlinesInside?: ("ignore" | number);
10721
11038
  order?: ("asc" | "desc");
10722
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10723
- modifiers?: ("shorthand" | "multiline")[];
10724
- selector?: ("multiline" | "prop" | "shorthand");
10725
- elementValuePattern?: (({
11039
+ elementNamePattern?: (({
10726
11040
  pattern: string;
10727
11041
  flags?: string;
10728
11042
  } | string)[] | ({
10729
11043
  pattern: string;
10730
11044
  flags?: string;
10731
11045
  } | string));
10732
- elementNamePattern?: (({
11046
+ modifiers?: ("shorthand" | "multiline")[];
11047
+ selector?: "prop";
11048
+ elementValuePattern?: (({
10733
11049
  pattern: string;
10734
11050
  flags?: string;
10735
11051
  } | string)[] | ({
10736
11052
  pattern: string;
10737
11053
  flags?: string;
10738
11054
  } | string));
10739
- })[]);
11055
+ })[];
11056
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
11057
+ groups?: (string | [string, ...(string)[]] | {
11058
+ newlinesBetween: ("ignore" | number);
11059
+ } | {
11060
+ group: (string | [string, ...(string)[]]);
11061
+ commentAbove?: string;
11062
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11063
+ newlinesInside?: ("ignore" | number);
11064
+ order?: ("asc" | "desc");
11065
+ })[];
11066
+ newlinesBetween?: ("ignore" | number);
10740
11067
  useConfigurationIf?: {
10741
11068
  allNamesMatchPattern?: (({
10742
11069
  pattern: string;
@@ -10754,41 +11081,29 @@ type PerfectionistSortJsxProps = {
10754
11081
  } | string));
10755
11082
  };
10756
11083
  partitionByNewLine?: boolean;
10757
- newlinesBetween?: (("ignore" | "always" | "never") | number);
10758
- ignorePattern?: (({
10759
- pattern: string;
10760
- flags?: string;
10761
- } | string)[] | ({
10762
- pattern: string;
10763
- flags?: string;
10764
- } | string));
10765
- groups?: (string | string[] | {
10766
- newlinesBetween?: (("ignore" | "always" | "never") | number);
10767
- commentAbove?: string;
10768
- })[];
10769
11084
  }[];
10770
11085
  // ----- perfectionist/sort-maps -----
10771
11086
  type PerfectionistSortMaps = {
10772
11087
  fallbackSort?: {
11088
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10773
11089
  order?: ("asc" | "desc");
10774
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10775
11090
  };
11091
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10776
11092
  specialCharacters?: ("remove" | "trim" | "keep");
10777
11093
  ignoreCase?: boolean;
10778
11094
  alphabet?: string;
10779
11095
  locales?: (string | string[]);
10780
11096
  order?: ("asc" | "desc");
10781
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10782
11097
  customGroups?: ({
10783
- newlinesInside?: (("always" | "never") | number);
10784
11098
  fallbackSort?: {
11099
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10785
11100
  order?: ("asc" | "desc");
10786
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10787
11101
  };
11102
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10788
11103
  groupName: string;
11104
+ newlinesInside?: ("ignore" | number);
10789
11105
  order?: ("asc" | "desc");
10790
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10791
- anyOf?: {
11106
+ anyOf: {
10792
11107
  elementNamePattern?: (({
10793
11108
  pattern: string;
10794
11109
  flags?: string;
@@ -10798,14 +11113,14 @@ type PerfectionistSortMaps = {
10798
11113
  } | string));
10799
11114
  }[];
10800
11115
  } | {
10801
- newlinesInside?: (("always" | "never") | number);
10802
11116
  fallbackSort?: {
11117
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10803
11118
  order?: ("asc" | "desc");
10804
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10805
11119
  };
11120
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10806
11121
  groupName: string;
11122
+ newlinesInside?: ("ignore" | number);
10807
11123
  order?: ("asc" | "desc");
10808
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10809
11124
  elementNamePattern?: (({
10810
11125
  pattern: string;
10811
11126
  flags?: string;
@@ -10814,6 +11129,17 @@ type PerfectionistSortMaps = {
10814
11129
  flags?: string;
10815
11130
  } | string));
10816
11131
  })[];
11132
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
11133
+ groups?: (string | [string, ...(string)[]] | {
11134
+ newlinesBetween: ("ignore" | number);
11135
+ } | {
11136
+ group: (string | [string, ...(string)[]]);
11137
+ commentAbove?: string;
11138
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11139
+ newlinesInside?: ("ignore" | number);
11140
+ order?: ("asc" | "desc");
11141
+ })[];
11142
+ newlinesBetween?: ("ignore" | number);
10817
11143
  useConfigurationIf?: {
10818
11144
  allNamesMatchPattern?: (({
10819
11145
  pattern: string;
@@ -10846,44 +11172,39 @@ type PerfectionistSortMaps = {
10846
11172
  } | string)));
10847
11173
  });
10848
11174
  partitionByNewLine?: boolean;
10849
- newlinesBetween?: (("ignore" | "always" | "never") | number);
10850
- groups?: (string | string[] | {
10851
- newlinesBetween?: (("ignore" | "always" | "never") | number);
10852
- commentAbove?: string;
10853
- })[];
10854
11175
  }[];
10855
11176
  // ----- perfectionist/sort-modules -----
10856
11177
  type PerfectionistSortModules = [] | [{
10857
11178
  fallbackSort?: {
11179
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10858
11180
  order?: ("asc" | "desc");
10859
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10860
11181
  };
11182
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10861
11183
  specialCharacters?: ("remove" | "trim" | "keep");
10862
11184
  ignoreCase?: boolean;
10863
11185
  alphabet?: string;
10864
11186
  locales?: (string | string[]);
10865
11187
  order?: ("asc" | "desc");
10866
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10867
11188
  customGroups?: ({
10868
- newlinesInside?: (("always" | "never") | number);
10869
11189
  fallbackSort?: {
11190
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10870
11191
  order?: ("asc" | "desc");
10871
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10872
11192
  };
11193
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10873
11194
  groupName: string;
11195
+ newlinesInside?: ("ignore" | number);
10874
11196
  order?: ("asc" | "desc");
10875
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10876
- anyOf?: {
10877
- modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
10878
- selector?: ("enum" | "function" | "interface" | "type" | "class");
10879
- decoratorNamePattern?: (({
11197
+ anyOf: {
11198
+ elementNamePattern?: (({
10880
11199
  pattern: string;
10881
11200
  flags?: string;
10882
11201
  } | string)[] | ({
10883
11202
  pattern: string;
10884
11203
  flags?: string;
10885
11204
  } | string));
10886
- elementNamePattern?: (({
11205
+ modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
11206
+ selector?: ("enum" | "function" | "interface" | "type" | "class");
11207
+ decoratorNamePattern?: (({
10887
11208
  pattern: string;
10888
11209
  flags?: string;
10889
11210
  } | string)[] | ({
@@ -10892,24 +11213,24 @@ type PerfectionistSortModules = [] | [{
10892
11213
  } | string));
10893
11214
  }[];
10894
11215
  } | {
10895
- newlinesInside?: (("always" | "never") | number);
10896
11216
  fallbackSort?: {
11217
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10897
11218
  order?: ("asc" | "desc");
10898
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10899
11219
  };
11220
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10900
11221
  groupName: string;
11222
+ newlinesInside?: ("ignore" | number);
10901
11223
  order?: ("asc" | "desc");
10902
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10903
- modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
10904
- selector?: ("enum" | "function" | "interface" | "type" | "class");
10905
- decoratorNamePattern?: (({
11224
+ elementNamePattern?: (({
10906
11225
  pattern: string;
10907
11226
  flags?: string;
10908
11227
  } | string)[] | ({
10909
11228
  pattern: string;
10910
11229
  flags?: string;
10911
11230
  } | string));
10912
- elementNamePattern?: (({
11231
+ modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
11232
+ selector?: ("enum" | "function" | "interface" | "type" | "class");
11233
+ decoratorNamePattern?: (({
10913
11234
  pattern: string;
10914
11235
  flags?: string;
10915
11236
  } | string)[] | ({
@@ -10917,6 +11238,17 @@ type PerfectionistSortModules = [] | [{
10917
11238
  flags?: string;
10918
11239
  } | string));
10919
11240
  })[];
11241
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
11242
+ groups?: (string | [string, ...(string)[]] | {
11243
+ newlinesBetween: ("ignore" | number);
11244
+ } | {
11245
+ group: (string | [string, ...(string)[]]);
11246
+ commentAbove?: string;
11247
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11248
+ newlinesInside?: ("ignore" | number);
11249
+ order?: ("asc" | "desc");
11250
+ })[];
11251
+ newlinesBetween?: ("ignore" | number);
10920
11252
  partitionByComment?: (boolean | (({
10921
11253
  pattern: string;
10922
11254
  flags?: string;
@@ -10940,38 +11272,29 @@ type PerfectionistSortModules = [] | [{
10940
11272
  } | string)));
10941
11273
  });
10942
11274
  partitionByNewLine?: boolean;
10943
- newlinesBetween?: (("ignore" | "always" | "never") | number);
10944
- groups?: (string | string[] | {
10945
- newlinesBetween?: (("ignore" | "always" | "never") | number);
10946
- commentAbove?: string;
10947
- })[];
10948
11275
  }];
10949
11276
  // ----- perfectionist/sort-named-exports -----
10950
11277
  type PerfectionistSortNamedExports = {
10951
11278
  fallbackSort?: {
11279
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10952
11280
  order?: ("asc" | "desc");
10953
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10954
11281
  };
11282
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10955
11283
  specialCharacters?: ("remove" | "trim" | "keep");
10956
11284
  ignoreCase?: boolean;
10957
11285
  alphabet?: string;
10958
11286
  locales?: (string | string[]);
10959
11287
  order?: ("asc" | "desc");
10960
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10961
- groupKind?: ("mixed" | "values-first" | "types-first");
10962
- ignoreAlias?: boolean;
10963
11288
  customGroups?: ({
10964
- newlinesInside?: (("always" | "never") | number);
10965
11289
  fallbackSort?: {
11290
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10966
11291
  order?: ("asc" | "desc");
10967
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10968
11292
  };
11293
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10969
11294
  groupName: string;
11295
+ newlinesInside?: ("ignore" | number);
10970
11296
  order?: ("asc" | "desc");
10971
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10972
- anyOf?: {
10973
- modifiers?: ("value" | "type")[];
10974
- selector?: "export";
11297
+ anyOf: {
10975
11298
  elementNamePattern?: (({
10976
11299
  pattern: string;
10977
11300
  flags?: string;
@@ -10979,18 +11302,18 @@ type PerfectionistSortNamedExports = {
10979
11302
  pattern: string;
10980
11303
  flags?: string;
10981
11304
  } | string));
11305
+ modifiers?: ("value" | "type")[];
11306
+ selector?: "export";
10982
11307
  }[];
10983
11308
  } | {
10984
- newlinesInside?: (("always" | "never") | number);
10985
11309
  fallbackSort?: {
11310
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10986
11311
  order?: ("asc" | "desc");
10987
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10988
11312
  };
11313
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10989
11314
  groupName: string;
11315
+ newlinesInside?: ("ignore" | number);
10990
11316
  order?: ("asc" | "desc");
10991
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
10992
- modifiers?: ("value" | "type")[];
10993
- selector?: "export";
10994
11317
  elementNamePattern?: (({
10995
11318
  pattern: string;
10996
11319
  flags?: string;
@@ -10998,7 +11321,21 @@ type PerfectionistSortNamedExports = {
10998
11321
  pattern: string;
10999
11322
  flags?: string;
11000
11323
  } | string));
11324
+ modifiers?: ("value" | "type")[];
11325
+ selector?: "export";
11326
+ })[];
11327
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
11328
+ groups?: (string | [string, ...(string)[]] | {
11329
+ newlinesBetween: ("ignore" | number);
11330
+ } | {
11331
+ group: (string | [string, ...(string)[]]);
11332
+ commentAbove?: string;
11333
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11334
+ newlinesInside?: ("ignore" | number);
11335
+ order?: ("asc" | "desc");
11001
11336
  })[];
11337
+ newlinesBetween?: ("ignore" | number);
11338
+ ignoreAlias?: boolean;
11002
11339
  partitionByComment?: (boolean | (({
11003
11340
  pattern: string;
11004
11341
  flags?: string;
@@ -11022,38 +11359,29 @@ type PerfectionistSortNamedExports = {
11022
11359
  } | string)));
11023
11360
  });
11024
11361
  partitionByNewLine?: boolean;
11025
- newlinesBetween?: (("ignore" | "always" | "never") | number);
11026
- groups?: (string | string[] | {
11027
- newlinesBetween?: (("ignore" | "always" | "never") | number);
11028
- commentAbove?: string;
11029
- })[];
11030
11362
  }[];
11031
11363
  // ----- perfectionist/sort-named-imports -----
11032
11364
  type PerfectionistSortNamedImports = {
11033
11365
  fallbackSort?: {
11366
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11034
11367
  order?: ("asc" | "desc");
11035
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11036
11368
  };
11369
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11037
11370
  specialCharacters?: ("remove" | "trim" | "keep");
11038
11371
  ignoreCase?: boolean;
11039
11372
  alphabet?: string;
11040
11373
  locales?: (string | string[]);
11041
11374
  order?: ("asc" | "desc");
11042
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11043
- groupKind?: ("mixed" | "values-first" | "types-first");
11044
- ignoreAlias?: boolean;
11045
11375
  customGroups?: ({
11046
- newlinesInside?: (("always" | "never") | number);
11047
11376
  fallbackSort?: {
11377
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11048
11378
  order?: ("asc" | "desc");
11049
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11050
11379
  };
11380
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11051
11381
  groupName: string;
11382
+ newlinesInside?: ("ignore" | number);
11052
11383
  order?: ("asc" | "desc");
11053
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11054
- anyOf?: {
11055
- modifiers?: ("value" | "type")[];
11056
- selector?: "import";
11384
+ anyOf: {
11057
11385
  elementNamePattern?: (({
11058
11386
  pattern: string;
11059
11387
  flags?: string;
@@ -11061,18 +11389,18 @@ type PerfectionistSortNamedImports = {
11061
11389
  pattern: string;
11062
11390
  flags?: string;
11063
11391
  } | string));
11392
+ modifiers?: ("value" | "type")[];
11393
+ selector?: "import";
11064
11394
  }[];
11065
11395
  } | {
11066
- newlinesInside?: (("always" | "never") | number);
11067
11396
  fallbackSort?: {
11397
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11068
11398
  order?: ("asc" | "desc");
11069
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11070
11399
  };
11400
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11071
11401
  groupName: string;
11402
+ newlinesInside?: ("ignore" | number);
11072
11403
  order?: ("asc" | "desc");
11073
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11074
- modifiers?: ("value" | "type")[];
11075
- selector?: "import";
11076
11404
  elementNamePattern?: (({
11077
11405
  pattern: string;
11078
11406
  flags?: string;
@@ -11080,7 +11408,21 @@ type PerfectionistSortNamedImports = {
11080
11408
  pattern: string;
11081
11409
  flags?: string;
11082
11410
  } | string));
11411
+ modifiers?: ("value" | "type")[];
11412
+ selector?: "import";
11413
+ })[];
11414
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
11415
+ groups?: (string | [string, ...(string)[]] | {
11416
+ newlinesBetween: ("ignore" | number);
11417
+ } | {
11418
+ group: (string | [string, ...(string)[]]);
11419
+ commentAbove?: string;
11420
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11421
+ newlinesInside?: ("ignore" | number);
11422
+ order?: ("asc" | "desc");
11083
11423
  })[];
11424
+ newlinesBetween?: ("ignore" | number);
11425
+ ignoreAlias?: boolean;
11084
11426
  partitionByComment?: (boolean | (({
11085
11427
  pattern: string;
11086
11428
  flags?: string;
@@ -11104,48 +11446,41 @@ type PerfectionistSortNamedImports = {
11104
11446
  } | string)));
11105
11447
  });
11106
11448
  partitionByNewLine?: boolean;
11107
- newlinesBetween?: (("ignore" | "always" | "never") | number);
11108
- groups?: (string | string[] | {
11109
- newlinesBetween?: (("ignore" | "always" | "never") | number);
11110
- commentAbove?: string;
11111
- })[];
11112
11449
  }[];
11113
11450
  // ----- perfectionist/sort-object-types -----
11114
11451
  type PerfectionistSortObjectTypes = {
11115
11452
  fallbackSort?: {
11453
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11116
11454
  order?: ("asc" | "desc");
11117
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11118
11455
  sortBy?: ("name" | "value");
11119
11456
  };
11457
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11120
11458
  specialCharacters?: ("remove" | "trim" | "keep");
11121
11459
  ignoreCase?: boolean;
11122
11460
  alphabet?: string;
11123
11461
  locales?: (string | string[]);
11124
11462
  order?: ("asc" | "desc");
11125
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11126
11463
  customGroups?: ({
11127
- [k: string]: (string | string[]) | undefined;
11128
- } | ({
11129
- newlinesInside?: (("always" | "never") | number);
11130
11464
  fallbackSort?: {
11465
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11131
11466
  order?: ("asc" | "desc");
11132
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11133
11467
  sortBy?: ("name" | "value");
11134
11468
  };
11469
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11135
11470
  groupName: string;
11471
+ newlinesInside?: ("ignore" | number);
11136
11472
  order?: ("asc" | "desc");
11137
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11138
- anyOf?: {
11139
- modifiers?: ("optional" | "required" | "multiline")[];
11140
- selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
11141
- elementValuePattern?: (({
11473
+ anyOf: {
11474
+ elementNamePattern?: (({
11142
11475
  pattern: string;
11143
11476
  flags?: string;
11144
11477
  } | string)[] | ({
11145
11478
  pattern: string;
11146
11479
  flags?: string;
11147
11480
  } | string));
11148
- elementNamePattern?: (({
11481
+ modifiers?: ("optional" | "required" | "multiline")[];
11482
+ selector?: ("index-signature" | "member" | "method" | "property");
11483
+ elementValuePattern?: (({
11149
11484
  pattern: string;
11150
11485
  flags?: string;
11151
11486
  } | string)[] | ({
@@ -11155,25 +11490,25 @@ type PerfectionistSortObjectTypes = {
11155
11490
  sortBy?: ("name" | "value");
11156
11491
  }[];
11157
11492
  } | {
11158
- newlinesInside?: (("always" | "never") | number);
11159
11493
  fallbackSort?: {
11494
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11160
11495
  order?: ("asc" | "desc");
11161
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11162
11496
  sortBy?: ("name" | "value");
11163
11497
  };
11498
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11164
11499
  groupName: string;
11500
+ newlinesInside?: ("ignore" | number);
11165
11501
  order?: ("asc" | "desc");
11166
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11167
- modifiers?: ("optional" | "required" | "multiline")[];
11168
- selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
11169
- elementValuePattern?: (({
11502
+ elementNamePattern?: (({
11170
11503
  pattern: string;
11171
11504
  flags?: string;
11172
11505
  } | string)[] | ({
11173
11506
  pattern: string;
11174
11507
  flags?: string;
11175
11508
  } | string));
11176
- elementNamePattern?: (({
11509
+ modifiers?: ("optional" | "required" | "multiline")[];
11510
+ selector?: ("index-signature" | "member" | "method" | "property");
11511
+ elementValuePattern?: (({
11177
11512
  pattern: string;
11178
11513
  flags?: string;
11179
11514
  } | string)[] | ({
@@ -11181,8 +11516,18 @@ type PerfectionistSortObjectTypes = {
11181
11516
  flags?: string;
11182
11517
  } | string));
11183
11518
  sortBy?: ("name" | "value");
11184
- })[]);
11185
- groupKind?: ("mixed" | "required-first" | "optional-first");
11519
+ })[];
11520
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
11521
+ groups?: (string | [string, ...(string)[]] | {
11522
+ newlinesBetween: ("ignore" | number);
11523
+ } | {
11524
+ group: (string | [string, ...(string)[]]);
11525
+ commentAbove?: string;
11526
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11527
+ newlinesInside?: ("ignore" | number);
11528
+ order?: ("asc" | "desc");
11529
+ })[];
11530
+ newlinesBetween?: ("ignore" | number);
11186
11531
  useConfigurationIf?: {
11187
11532
  allNamesMatchPattern?: (({
11188
11533
  pattern: string;
@@ -11191,10 +11536,22 @@ type PerfectionistSortObjectTypes = {
11191
11536
  pattern: string;
11192
11537
  flags?: string;
11193
11538
  } | string));
11539
+ hasNumericKeysOnly?: boolean;
11540
+ declarationCommentMatchesPattern?: (({
11541
+ scope?: ("shallow" | "deep");
11542
+ pattern: string;
11543
+ flags?: string;
11544
+ } | string)[] | ({
11545
+ scope?: ("shallow" | "deep");
11546
+ pattern: string;
11547
+ flags?: string;
11548
+ } | string));
11194
11549
  declarationMatchesPattern?: (({
11550
+ scope?: ("shallow" | "deep");
11195
11551
  pattern: string;
11196
11552
  flags?: string;
11197
11553
  } | string)[] | ({
11554
+ scope?: ("shallow" | "deep");
11198
11555
  pattern: string;
11199
11556
  flags?: string;
11200
11557
  } | string));
@@ -11222,57 +11579,40 @@ type PerfectionistSortObjectTypes = {
11222
11579
  } | string)));
11223
11580
  });
11224
11581
  partitionByNewLine?: boolean;
11225
- newlinesBetween?: (("ignore" | "always" | "never") | number);
11226
- ignorePattern?: (({
11227
- pattern: string;
11228
- flags?: string;
11229
- } | string)[] | ({
11230
- pattern: string;
11231
- flags?: string;
11232
- } | string));
11233
11582
  sortBy?: ("name" | "value");
11234
- groups?: (string | string[] | {
11235
- newlinesBetween?: (("ignore" | "always" | "never") | number);
11236
- commentAbove?: string;
11237
- })[];
11238
11583
  }[];
11239
11584
  // ----- perfectionist/sort-objects -----
11240
11585
  type PerfectionistSortObjects = {
11241
11586
  fallbackSort?: {
11587
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11242
11588
  order?: ("asc" | "desc");
11243
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11244
11589
  };
11590
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11245
11591
  specialCharacters?: ("remove" | "trim" | "keep");
11246
11592
  ignoreCase?: boolean;
11247
11593
  alphabet?: string;
11248
11594
  locales?: (string | string[]);
11249
11595
  order?: ("asc" | "desc");
11250
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11251
- destructuredObjects?: (boolean | {
11252
- groups?: boolean;
11253
- });
11254
11596
  customGroups?: ({
11255
- [k: string]: (string | string[]) | undefined;
11256
- } | ({
11257
- newlinesInside?: (("always" | "never") | number);
11258
11597
  fallbackSort?: {
11598
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11259
11599
  order?: ("asc" | "desc");
11260
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11261
11600
  };
11601
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11262
11602
  groupName: string;
11603
+ newlinesInside?: ("ignore" | number);
11263
11604
  order?: ("asc" | "desc");
11264
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11265
- anyOf?: {
11266
- modifiers?: ("optional" | "required" | "multiline")[];
11267
- selector?: ("member" | "method" | "multiline" | "property");
11268
- elementValuePattern?: (({
11605
+ anyOf: {
11606
+ elementNamePattern?: (({
11269
11607
  pattern: string;
11270
11608
  flags?: string;
11271
11609
  } | string)[] | ({
11272
11610
  pattern: string;
11273
11611
  flags?: string;
11274
11612
  } | string));
11275
- elementNamePattern?: (({
11613
+ modifiers?: ("optional" | "required" | "multiline")[];
11614
+ selector?: ("member" | "method" | "property");
11615
+ elementValuePattern?: (({
11276
11616
  pattern: string;
11277
11617
  flags?: string;
11278
11618
  } | string)[] | ({
@@ -11281,31 +11621,42 @@ type PerfectionistSortObjects = {
11281
11621
  } | string));
11282
11622
  }[];
11283
11623
  } | {
11284
- newlinesInside?: (("always" | "never") | number);
11285
11624
  fallbackSort?: {
11625
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11286
11626
  order?: ("asc" | "desc");
11287
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11288
11627
  };
11628
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11289
11629
  groupName: string;
11630
+ newlinesInside?: ("ignore" | number);
11290
11631
  order?: ("asc" | "desc");
11291
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11292
- modifiers?: ("optional" | "required" | "multiline")[];
11293
- selector?: ("member" | "method" | "multiline" | "property");
11294
- elementValuePattern?: (({
11632
+ elementNamePattern?: (({
11295
11633
  pattern: string;
11296
11634
  flags?: string;
11297
11635
  } | string)[] | ({
11298
11636
  pattern: string;
11299
11637
  flags?: string;
11300
11638
  } | string));
11301
- elementNamePattern?: (({
11639
+ modifiers?: ("optional" | "required" | "multiline")[];
11640
+ selector?: ("member" | "method" | "property");
11641
+ elementValuePattern?: (({
11302
11642
  pattern: string;
11303
11643
  flags?: string;
11304
11644
  } | string)[] | ({
11305
11645
  pattern: string;
11306
11646
  flags?: string;
11307
11647
  } | string));
11308
- })[]);
11648
+ })[];
11649
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
11650
+ groups?: (string | [string, ...(string)[]] | {
11651
+ newlinesBetween: ("ignore" | number);
11652
+ } | {
11653
+ group: (string | [string, ...(string)[]]);
11654
+ commentAbove?: string;
11655
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11656
+ newlinesInside?: ("ignore" | number);
11657
+ order?: ("asc" | "desc");
11658
+ })[];
11659
+ newlinesBetween?: ("ignore" | number);
11309
11660
  useConfigurationIf?: {
11310
11661
  allNamesMatchPattern?: (({
11311
11662
  pattern: string;
@@ -11314,16 +11665,36 @@ type PerfectionistSortObjects = {
11314
11665
  pattern: string;
11315
11666
  flags?: string;
11316
11667
  } | string));
11668
+ objectType?: ("destructured" | "non-destructured");
11669
+ hasNumericKeysOnly?: boolean;
11670
+ declarationCommentMatchesPattern?: (({
11671
+ scope?: ("shallow" | "deep");
11672
+ pattern: string;
11673
+ flags?: string;
11674
+ } | string)[] | ({
11675
+ scope?: ("shallow" | "deep");
11676
+ pattern: string;
11677
+ flags?: string;
11678
+ } | string));
11317
11679
  callingFunctionNamePattern?: (({
11680
+ scope?: ("shallow" | "deep");
11681
+ pattern: string;
11682
+ flags?: string;
11683
+ } | string)[] | ({
11684
+ scope?: ("shallow" | "deep");
11685
+ pattern: string;
11686
+ flags?: string;
11687
+ } | string));
11688
+ declarationMatchesPattern?: (({
11689
+ scope?: ("shallow" | "deep");
11318
11690
  pattern: string;
11319
11691
  flags?: string;
11320
11692
  } | string)[] | ({
11693
+ scope?: ("shallow" | "deep");
11321
11694
  pattern: string;
11322
11695
  flags?: string;
11323
11696
  } | string));
11324
11697
  };
11325
- destructureOnly?: boolean;
11326
- objectDeclarations?: boolean;
11327
11698
  styledComponents?: boolean;
11328
11699
  partitionByComment?: (boolean | (({
11329
11700
  pattern: string;
@@ -11348,43 +11719,29 @@ type PerfectionistSortObjects = {
11348
11719
  } | string)));
11349
11720
  });
11350
11721
  partitionByNewLine?: boolean;
11351
- newlinesBetween?: (("ignore" | "always" | "never") | number);
11352
- ignorePattern?: (({
11353
- pattern: string;
11354
- flags?: string;
11355
- } | string)[] | ({
11356
- pattern: string;
11357
- flags?: string;
11358
- } | string));
11359
- groups?: (string | string[] | {
11360
- newlinesBetween?: (("ignore" | "always" | "never") | number);
11361
- commentAbove?: string;
11362
- })[];
11363
11722
  }[];
11364
11723
  // ----- perfectionist/sort-sets -----
11365
11724
  type PerfectionistSortSets = {
11366
11725
  fallbackSort?: {
11726
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11367
11727
  order?: ("asc" | "desc");
11368
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11369
11728
  };
11729
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11370
11730
  specialCharacters?: ("remove" | "trim" | "keep");
11371
11731
  ignoreCase?: boolean;
11372
11732
  alphabet?: string;
11373
11733
  locales?: (string | string[]);
11374
11734
  order?: ("asc" | "desc");
11375
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11376
- groupKind?: ("mixed" | "literals-first" | "spreads-first");
11377
11735
  customGroups?: ({
11378
- newlinesInside?: (("always" | "never") | number);
11379
11736
  fallbackSort?: {
11737
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11380
11738
  order?: ("asc" | "desc");
11381
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11382
11739
  };
11740
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11383
11741
  groupName: string;
11742
+ newlinesInside?: ("ignore" | number);
11384
11743
  order?: ("asc" | "desc");
11385
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11386
- anyOf?: {
11387
- selector?: ("literal" | "spread");
11744
+ anyOf: {
11388
11745
  elementNamePattern?: (({
11389
11746
  pattern: string;
11390
11747
  flags?: string;
@@ -11392,17 +11749,17 @@ type PerfectionistSortSets = {
11392
11749
  pattern: string;
11393
11750
  flags?: string;
11394
11751
  } | string));
11752
+ selector?: ("literal" | "spread");
11395
11753
  }[];
11396
11754
  } | {
11397
- newlinesInside?: (("always" | "never") | number);
11398
11755
  fallbackSort?: {
11756
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11399
11757
  order?: ("asc" | "desc");
11400
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11401
11758
  };
11759
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11402
11760
  groupName: string;
11761
+ newlinesInside?: ("ignore" | number);
11403
11762
  order?: ("asc" | "desc");
11404
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11405
- selector?: ("literal" | "spread");
11406
11763
  elementNamePattern?: (({
11407
11764
  pattern: string;
11408
11765
  flags?: string;
@@ -11410,7 +11767,19 @@ type PerfectionistSortSets = {
11410
11767
  pattern: string;
11411
11768
  flags?: string;
11412
11769
  } | string));
11770
+ selector?: ("literal" | "spread");
11771
+ })[];
11772
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
11773
+ groups?: (string | [string, ...(string)[]] | {
11774
+ newlinesBetween: ("ignore" | number);
11775
+ } | {
11776
+ group: (string | [string, ...(string)[]]);
11777
+ commentAbove?: string;
11778
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11779
+ newlinesInside?: ("ignore" | number);
11780
+ order?: ("asc" | "desc");
11413
11781
  })[];
11782
+ newlinesBetween?: ("ignore" | number);
11414
11783
  useConfigurationIf?: {
11415
11784
  allNamesMatchPattern?: (({
11416
11785
  pattern: string;
@@ -11443,48 +11812,42 @@ type PerfectionistSortSets = {
11443
11812
  } | string)));
11444
11813
  });
11445
11814
  partitionByNewLine?: boolean;
11446
- newlinesBetween?: (("ignore" | "always" | "never") | number);
11447
- groups?: (string | string[] | {
11448
- newlinesBetween?: (("ignore" | "always" | "never") | number);
11449
- commentAbove?: string;
11450
- })[];
11451
11815
  }[];
11452
11816
  // ----- perfectionist/sort-switch-case -----
11453
11817
  type PerfectionistSortSwitchCase = [] | [{
11454
11818
  fallbackSort?: {
11819
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11455
11820
  order?: ("asc" | "desc");
11456
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11457
11821
  };
11822
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11458
11823
  specialCharacters?: ("remove" | "trim" | "keep");
11459
11824
  ignoreCase?: boolean;
11460
11825
  alphabet?: string;
11461
11826
  locales?: (string | string[]);
11462
11827
  order?: ("asc" | "desc");
11463
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11464
11828
  }];
11465
11829
  // ----- perfectionist/sort-union-types -----
11466
11830
  type PerfectionistSortUnionTypes = {
11467
11831
  fallbackSort?: {
11832
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11468
11833
  order?: ("asc" | "desc");
11469
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11470
11834
  };
11835
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11471
11836
  specialCharacters?: ("remove" | "trim" | "keep");
11472
11837
  ignoreCase?: boolean;
11473
11838
  alphabet?: string;
11474
11839
  locales?: (string | string[]);
11475
11840
  order?: ("asc" | "desc");
11476
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11477
11841
  customGroups?: ({
11478
- newlinesInside?: (("always" | "never") | number);
11479
11842
  fallbackSort?: {
11843
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11480
11844
  order?: ("asc" | "desc");
11481
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11482
11845
  };
11846
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11483
11847
  groupName: string;
11848
+ newlinesInside?: ("ignore" | number);
11484
11849
  order?: ("asc" | "desc");
11485
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11486
- anyOf?: {
11487
- selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
11850
+ anyOf: {
11488
11851
  elementNamePattern?: (({
11489
11852
  pattern: string;
11490
11853
  flags?: string;
@@ -11492,17 +11855,17 @@ type PerfectionistSortUnionTypes = {
11492
11855
  pattern: string;
11493
11856
  flags?: string;
11494
11857
  } | string));
11858
+ selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
11495
11859
  }[];
11496
11860
  } | {
11497
- newlinesInside?: (("always" | "never") | number);
11498
11861
  fallbackSort?: {
11862
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11499
11863
  order?: ("asc" | "desc");
11500
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11501
11864
  };
11865
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11502
11866
  groupName: string;
11867
+ newlinesInside?: ("ignore" | number);
11503
11868
  order?: ("asc" | "desc");
11504
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11505
- selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
11506
11869
  elementNamePattern?: (({
11507
11870
  pattern: string;
11508
11871
  flags?: string;
@@ -11510,7 +11873,19 @@ type PerfectionistSortUnionTypes = {
11510
11873
  pattern: string;
11511
11874
  flags?: string;
11512
11875
  } | string));
11876
+ selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
11877
+ })[];
11878
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
11879
+ groups?: (string | [string, ...(string)[]] | {
11880
+ newlinesBetween: ("ignore" | number);
11881
+ } | {
11882
+ group: (string | [string, ...(string)[]]);
11883
+ commentAbove?: string;
11884
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11885
+ newlinesInside?: ("ignore" | number);
11886
+ order?: ("asc" | "desc");
11513
11887
  })[];
11888
+ newlinesBetween?: ("ignore" | number);
11514
11889
  partitionByComment?: (boolean | (({
11515
11890
  pattern: string;
11516
11891
  flags?: string;
@@ -11534,35 +11909,29 @@ type PerfectionistSortUnionTypes = {
11534
11909
  } | string)));
11535
11910
  });
11536
11911
  partitionByNewLine?: boolean;
11537
- newlinesBetween?: (("ignore" | "always" | "never") | number);
11538
- groups?: (string | string[] | {
11539
- newlinesBetween?: (("ignore" | "always" | "never") | number);
11540
- commentAbove?: string;
11541
- })[];
11542
11912
  }[];
11543
11913
  // ----- perfectionist/sort-variable-declarations -----
11544
11914
  type PerfectionistSortVariableDeclarations = [] | [{
11545
11915
  fallbackSort?: {
11916
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11546
11917
  order?: ("asc" | "desc");
11547
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11548
11918
  };
11919
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11549
11920
  specialCharacters?: ("remove" | "trim" | "keep");
11550
11921
  ignoreCase?: boolean;
11551
11922
  alphabet?: string;
11552
11923
  locales?: (string | string[]);
11553
11924
  order?: ("asc" | "desc");
11554
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11555
11925
  customGroups?: ({
11556
- newlinesInside?: (("always" | "never") | number);
11557
11926
  fallbackSort?: {
11927
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11558
11928
  order?: ("asc" | "desc");
11559
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11560
11929
  };
11930
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11561
11931
  groupName: string;
11932
+ newlinesInside?: ("ignore" | number);
11562
11933
  order?: ("asc" | "desc");
11563
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11564
- anyOf?: {
11565
- selector?: ("initialized" | "uninitialized");
11934
+ anyOf: {
11566
11935
  elementNamePattern?: (({
11567
11936
  pattern: string;
11568
11937
  flags?: string;
@@ -11570,17 +11939,17 @@ type PerfectionistSortVariableDeclarations = [] | [{
11570
11939
  pattern: string;
11571
11940
  flags?: string;
11572
11941
  } | string));
11942
+ selector?: ("initialized" | "uninitialized");
11573
11943
  }[];
11574
11944
  } | {
11575
- newlinesInside?: (("always" | "never") | number);
11576
11945
  fallbackSort?: {
11946
+ type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11577
11947
  order?: ("asc" | "desc");
11578
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11579
11948
  };
11949
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11580
11950
  groupName: string;
11951
+ newlinesInside?: ("ignore" | number);
11581
11952
  order?: ("asc" | "desc");
11582
- type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11583
- selector?: ("initialized" | "uninitialized");
11584
11953
  elementNamePattern?: (({
11585
11954
  pattern: string;
11586
11955
  flags?: string;
@@ -11588,7 +11957,19 @@ type PerfectionistSortVariableDeclarations = [] | [{
11588
11957
  pattern: string;
11589
11958
  flags?: string;
11590
11959
  } | string));
11960
+ selector?: ("initialized" | "uninitialized");
11591
11961
  })[];
11962
+ newlinesInside?: (("ignore" | number) | "newlinesBetween");
11963
+ groups?: (string | [string, ...(string)[]] | {
11964
+ newlinesBetween: ("ignore" | number);
11965
+ } | {
11966
+ group: (string | [string, ...(string)[]]);
11967
+ commentAbove?: string;
11968
+ type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
11969
+ newlinesInside?: ("ignore" | number);
11970
+ order?: ("asc" | "desc");
11971
+ })[];
11972
+ newlinesBetween?: ("ignore" | number);
11592
11973
  partitionByComment?: (boolean | (({
11593
11974
  pattern: string;
11594
11975
  flags?: string;
@@ -11612,11 +11993,6 @@ type PerfectionistSortVariableDeclarations = [] | [{
11612
11993
  } | string)));
11613
11994
  });
11614
11995
  partitionByNewLine?: boolean;
11615
- newlinesBetween?: (("ignore" | "always" | "never") | number);
11616
- groups?: (string | string[] | {
11617
- newlinesBetween?: (("ignore" | "always" | "never") | number);
11618
- commentAbove?: string;
11619
- })[];
11620
11996
  }];
11621
11997
  // ----- prefer-arrow-callback -----
11622
11998
  type PreferArrowCallback = [] | [{
@@ -11865,6 +12241,7 @@ type ReactXNoUnstableDefaultProps = [] | [{
11865
12241
  }];
11866
12242
  // ----- react-x/no-useless-fragment -----
11867
12243
  type ReactXNoUselessFragment = [] | [{
12244
+ allowEmptyFragment?: boolean;
11868
12245
  allowExpressions?: boolean;
11869
12246
  }];
11870
12247
  // ----- regexp/hexadecimal-escape -----
@@ -12085,6 +12462,13 @@ type SwitchColonSpacing = [] | [{
12085
12462
  type TemplateCurlySpacing = [] | [("always" | "never")];
12086
12463
  // ----- template-tag-spacing -----
12087
12464
  type TemplateTagSpacing = [] | [("always" | "never")];
12465
+ // ----- test/consistent-each-for -----
12466
+ type TestConsistentEachFor = [] | [{
12467
+ test?: ("each" | "for");
12468
+ it?: ("each" | "for");
12469
+ describe?: ("each" | "for");
12470
+ suite?: ("each" | "for");
12471
+ }];
12088
12472
  // ----- test/consistent-test-filename -----
12089
12473
  type TestConsistentTestFilename = [] | [{
12090
12474
  pattern?: string;