@shayanthenerd/eslint-config 0.13.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/dist/configs/perfectionist.mjs +8 -1
- package/dist/configs/zod.mjs +21 -0
- package/dist/index.mjs +3 -1
- package/dist/oxlint.config.jsonc +6 -1
- package/dist/rules/html.mjs +1 -0
- package/dist/rules/perfectionist.mjs +2 -2
- package/dist/rules/stylistic.mjs +12 -3
- package/dist/rules/typescript.mjs +5 -1
- package/dist/rules/vitest.mjs +4 -0
- package/dist/rules/zod.mjs +20 -0
- package/dist/types/configOptions/perfectionist.d.mts +2 -1
- package/dist/types/configOptions/vue.d.mts +1 -1
- package/dist/types/eslint-schema.d.mts +947 -452
- package/dist/types/index.d.mts +8 -1
- package/dist/utils/isPackageDetected.mjs +4 -2
- package/dist/utils/options/defaultOptions.mjs +1 -0
- package/dist/utils/options/enableDetectedConfigs.mjs +1 -0
- package/package.json +14 -13
|
@@ -21,6 +21,7 @@ declare module 'eslint-flat-config-utils' {
|
|
|
21
21
|
'shayanthenerd/restricted-exports'?: true;
|
|
22
22
|
'shayanthenerd/stylistic'?: true;
|
|
23
23
|
'shayanthenerd/perfectionist'?: true;
|
|
24
|
+
'shayanthenerd/zod'?: true;
|
|
24
25
|
'shayanthenerd/tailwind'?: true;
|
|
25
26
|
'shayanthenerd/vue > setup'?: true;
|
|
26
27
|
'shayanthenerd/vue'?: true;
|
|
@@ -42,6 +43,11 @@ interface ESLintSchema {
|
|
|
42
43
|
* @see https://html-eslint.org/docs/rules/attrs-newline
|
|
43
44
|
*/
|
|
44
45
|
'@html-eslint/attrs-newline'?: Linter.RuleEntry<HtmlEslintAttrsNewline>;
|
|
46
|
+
/**
|
|
47
|
+
* Disallow extra spacing in class attribute values
|
|
48
|
+
* @see https://html-eslint.org/docs/rules/class-spacing
|
|
49
|
+
*/
|
|
50
|
+
'@html-eslint/class-spacing'?: Linter.RuleEntry<[]>;
|
|
45
51
|
/**
|
|
46
52
|
* Enforce newline between elements.
|
|
47
53
|
* @see https://html-eslint.org/docs/rules/element-newline
|
|
@@ -165,6 +171,11 @@ interface ESLintSchema {
|
|
|
165
171
|
* @see https://html-eslint.org/docs/rules/no-non-scalable-viewport
|
|
166
172
|
*/
|
|
167
173
|
'@html-eslint/no-non-scalable-viewport'?: Linter.RuleEntry<[]>;
|
|
174
|
+
/**
|
|
175
|
+
* Disallow use of obsolete attributes in HTML5
|
|
176
|
+
* @see https://html-eslint.org/docs/rules/no-obsolete-attrs
|
|
177
|
+
*/
|
|
178
|
+
'@html-eslint/no-obsolete-attrs'?: Linter.RuleEntry<[]>;
|
|
168
179
|
/**
|
|
169
180
|
* Disallow use of obsolete elements in HTML5
|
|
170
181
|
* @see https://html-eslint.org/docs/rules/no-obsolete-tags
|
|
@@ -210,6 +221,11 @@ interface ESLintSchema {
|
|
|
210
221
|
* @see https://html-eslint.org/docs/rules/no-trailing-spaces
|
|
211
222
|
*/
|
|
212
223
|
'@html-eslint/no-trailing-spaces'?: Linter.RuleEntry<[]>;
|
|
224
|
+
/**
|
|
225
|
+
* Disallow tags with only whitespace children.
|
|
226
|
+
* @see https://html-eslint.org/docs/rules/no-whitespace-only-children
|
|
227
|
+
*/
|
|
228
|
+
'@html-eslint/no-whitespace-only-children'?: Linter.RuleEntry<HtmlEslintNoWhitespaceOnlyChildren>;
|
|
213
229
|
/**
|
|
214
230
|
* Prefer to use HTTPS for embedded resources
|
|
215
231
|
* @see https://html-eslint.org/docs/rules/prefer-https
|
|
@@ -1255,6 +1271,11 @@ interface ESLintSchema {
|
|
|
1255
1271
|
* @see https://typescript-eslint.io/rules/no-useless-constructor
|
|
1256
1272
|
*/
|
|
1257
1273
|
'@typescript-eslint/no-useless-constructor'?: Linter.RuleEntry<[]>;
|
|
1274
|
+
/**
|
|
1275
|
+
* Disallow default values that will never be used
|
|
1276
|
+
* @see https://typescript-eslint.io/rules/no-useless-default-assignment
|
|
1277
|
+
*/
|
|
1278
|
+
'@typescript-eslint/no-useless-default-assignment'?: Linter.RuleEntry<[]>;
|
|
1258
1279
|
/**
|
|
1259
1280
|
* Disallow empty exports that don't change anything in a module file
|
|
1260
1281
|
* @see https://typescript-eslint.io/rules/no-useless-empty-export
|
|
@@ -3211,6 +3232,11 @@ interface ESLintSchema {
|
|
|
3211
3232
|
* @see https://perfectionist.dev/rules/sort-enums
|
|
3212
3233
|
*/
|
|
3213
3234
|
'perfectionist/sort-enums'?: Linter.RuleEntry<PerfectionistSortEnums>;
|
|
3235
|
+
/**
|
|
3236
|
+
* Enforce sorted export attributes.
|
|
3237
|
+
* @see https://perfectionist.dev/rules/sort-export-attributes
|
|
3238
|
+
*/
|
|
3239
|
+
'perfectionist/sort-export-attributes'?: Linter.RuleEntry<PerfectionistSortExportAttributes>;
|
|
3214
3240
|
/**
|
|
3215
3241
|
* Enforce sorted exports.
|
|
3216
3242
|
* @see https://perfectionist.dev/rules/sort-exports
|
|
@@ -3221,6 +3247,11 @@ interface ESLintSchema {
|
|
|
3221
3247
|
* @see https://perfectionist.dev/rules/sort-heritage-clauses
|
|
3222
3248
|
*/
|
|
3223
3249
|
'perfectionist/sort-heritage-clauses'?: Linter.RuleEntry<PerfectionistSortHeritageClauses>;
|
|
3250
|
+
/**
|
|
3251
|
+
* Enforce sorted import attributes.
|
|
3252
|
+
* @see https://perfectionist.dev/rules/sort-import-attributes
|
|
3253
|
+
*/
|
|
3254
|
+
'perfectionist/sort-import-attributes'?: Linter.RuleEntry<PerfectionistSortImportAttributes>;
|
|
3224
3255
|
/**
|
|
3225
3256
|
* Enforce sorted imports.
|
|
3226
3257
|
* @see https://perfectionist.dev/rules/sort-imports
|
|
@@ -4022,6 +4053,11 @@ interface ESLintSchema {
|
|
|
4022
4053
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-return-statement.md
|
|
4023
4054
|
*/
|
|
4024
4055
|
'vitest/no-test-return-statement'?: Linter.RuleEntry<[]>;
|
|
4056
|
+
/**
|
|
4057
|
+
* Disallow unnecessary async function wrapper for expected promises
|
|
4058
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-unneeded-async-expect-function.md
|
|
4059
|
+
*/
|
|
4060
|
+
'vitest/no-unneeded-async-expect-function'?: Linter.RuleEntry<[]>;
|
|
4025
4061
|
/**
|
|
4026
4062
|
* Enforce padding around `afterAll` blocks
|
|
4027
4063
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-after-all-blocks.md
|
|
@@ -4131,7 +4167,7 @@ interface ESLintSchema {
|
|
|
4131
4167
|
* prefer dynamic import in mock
|
|
4132
4168
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-import-in-mock.md
|
|
4133
4169
|
*/
|
|
4134
|
-
'vitest/prefer-import-in-mock'?: Linter.RuleEntry<
|
|
4170
|
+
'vitest/prefer-import-in-mock'?: Linter.RuleEntry<VitestPreferImportInMock>;
|
|
4135
4171
|
/**
|
|
4136
4172
|
* enforce importing Vitest globals
|
|
4137
4173
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-importing-vitest-globals.md
|
|
@@ -4147,6 +4183,11 @@ interface ESLintSchema {
|
|
|
4147
4183
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-mock-promise-shorthand.md
|
|
4148
4184
|
*/
|
|
4149
4185
|
'vitest/prefer-mock-promise-shorthand'?: Linter.RuleEntry<[]>;
|
|
4186
|
+
/**
|
|
4187
|
+
* Prefer mock return shorthands
|
|
4188
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-mock-return-shorthand.md
|
|
4189
|
+
*/
|
|
4190
|
+
'vitest/prefer-mock-return-shorthand'?: Linter.RuleEntry<[]>;
|
|
4150
4191
|
/**
|
|
4151
4192
|
* enforce including a hint with external snapshots
|
|
4152
4193
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-snapshot-hint.md
|
|
@@ -4192,6 +4233,11 @@ interface ESLintSchema {
|
|
|
4192
4233
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-contain.md
|
|
4193
4234
|
*/
|
|
4194
4235
|
'vitest/prefer-to-contain'?: Linter.RuleEntry<[]>;
|
|
4236
|
+
/**
|
|
4237
|
+
* Suggest using `toHaveBeenCalledTimes()`
|
|
4238
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-been-called-times.md
|
|
4239
|
+
*/
|
|
4240
|
+
'vitest/prefer-to-have-been-called-times'?: Linter.RuleEntry<[]>;
|
|
4195
4241
|
/**
|
|
4196
4242
|
* enforce using toHaveLength()
|
|
4197
4243
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-length.md
|
|
@@ -4217,11 +4263,6 @@ interface ESLintSchema {
|
|
|
4217
4263
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
|
|
4218
4264
|
*/
|
|
4219
4265
|
'vitest/require-hook'?: Linter.RuleEntry<VitestRequireHook>;
|
|
4220
|
-
/**
|
|
4221
|
-
* require usage of import in vi.mock()
|
|
4222
|
-
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-import-vi-mock.md
|
|
4223
|
-
*/
|
|
4224
|
-
'vitest/require-import-vi-mock'?: Linter.RuleEntry<[]>;
|
|
4225
4266
|
/**
|
|
4226
4267
|
* require local Test Context for concurrent snapshot tests
|
|
4227
4268
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-local-test-context-for-concurrent-snapshots.md
|
|
@@ -5627,6 +5668,86 @@ interface ESLintSchema {
|
|
|
5627
5668
|
* @see https://eslint.org/docs/latest/rules/yoda
|
|
5628
5669
|
*/
|
|
5629
5670
|
'yoda'?: Linter.RuleEntry<Yoda>;
|
|
5671
|
+
/**
|
|
5672
|
+
* Enforce consistent Zod array style
|
|
5673
|
+
* @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/HEAD/docs/rules/array-style.md
|
|
5674
|
+
*/
|
|
5675
|
+
'zod-x/array-style'?: Linter.RuleEntry<ZodXArrayStyle>;
|
|
5676
|
+
/**
|
|
5677
|
+
* Enforce consistent source from Zod imports
|
|
5678
|
+
* @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/HEAD/docs/rules/consistent-import-source.md
|
|
5679
|
+
*/
|
|
5680
|
+
'zod-x/consistent-import-source'?: Linter.RuleEntry<ZodXConsistentImportSource>;
|
|
5681
|
+
/**
|
|
5682
|
+
* Enforce consistent usage of Zod schema methods
|
|
5683
|
+
* @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/HEAD/docs/rules/consistent-object-schema-type.md
|
|
5684
|
+
*/
|
|
5685
|
+
'zod-x/consistent-object-schema-type'?: Linter.RuleEntry<ZodXConsistentObjectSchemaType>;
|
|
5686
|
+
/**
|
|
5687
|
+
* Disallow usage of `z.any()` in Zod schemas
|
|
5688
|
+
* @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/HEAD/docs/rules/no-any-schema.md
|
|
5689
|
+
*/
|
|
5690
|
+
'zod-x/no-any-schema'?: Linter.RuleEntry<[]>;
|
|
5691
|
+
/**
|
|
5692
|
+
* Disallow usage of `z.custom()` without arguments
|
|
5693
|
+
* @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/HEAD/docs/rules/no-empty-custom-schema.md
|
|
5694
|
+
*/
|
|
5695
|
+
'zod-x/no-empty-custom-schema'?: Linter.RuleEntry<[]>;
|
|
5696
|
+
/**
|
|
5697
|
+
* Disallow usage of `z.number().int()` as it is considered legacy
|
|
5698
|
+
* @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/HEAD/docs/rules/no-number-schema-with-int.md
|
|
5699
|
+
*/
|
|
5700
|
+
'zod-x/no-number-schema-with-int'?: Linter.RuleEntry<[]>;
|
|
5701
|
+
/**
|
|
5702
|
+
* Disallow using both `.optional()` and `.default()` on the same Zod schema
|
|
5703
|
+
* @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/HEAD/docs/rules/no-optional-and-default-together.md
|
|
5704
|
+
*/
|
|
5705
|
+
'zod-x/no-optional-and-default-together'?: Linter.RuleEntry<ZodXNoOptionalAndDefaultTogether>;
|
|
5706
|
+
/**
|
|
5707
|
+
* Disallow throwing errors directly inside Zod refine callbacks
|
|
5708
|
+
* @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/HEAD/docs/rules/no-throw-in-refine.md
|
|
5709
|
+
*/
|
|
5710
|
+
'zod-x/no-throw-in-refine'?: Linter.RuleEntry<[]>;
|
|
5711
|
+
/**
|
|
5712
|
+
* Disallow usage of `z.unknown()` in Zod schemas
|
|
5713
|
+
* @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/HEAD/docs/rules/no-unknown-schema.md
|
|
5714
|
+
*/
|
|
5715
|
+
'zod-x/no-unknown-schema'?: Linter.RuleEntry<[]>;
|
|
5716
|
+
/**
|
|
5717
|
+
* Enforce usage of `.meta()` over `.describe()`
|
|
5718
|
+
* @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/HEAD/docs/rules/prefer-meta.md
|
|
5719
|
+
*/
|
|
5720
|
+
'zod-x/prefer-meta'?: Linter.RuleEntry<[]>;
|
|
5721
|
+
/**
|
|
5722
|
+
* Enforce `.meta()` as last method
|
|
5723
|
+
* @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/HEAD/docs/rules/prefer-meta-last.md
|
|
5724
|
+
*/
|
|
5725
|
+
'zod-x/prefer-meta-last'?: Linter.RuleEntry<[]>;
|
|
5726
|
+
/**
|
|
5727
|
+
* Enforce importing zod as a namespace import (`import * as z from 'zod'`)
|
|
5728
|
+
* @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/HEAD/docs/rules/prefer-namespace-import.md
|
|
5729
|
+
*/
|
|
5730
|
+
'zod-x/prefer-namespace-import'?: Linter.RuleEntry<[]>;
|
|
5731
|
+
/**
|
|
5732
|
+
* Require type parameter on `.brand()` functions
|
|
5733
|
+
* @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/HEAD/docs/rules/require-brand-type-parameter.md
|
|
5734
|
+
*/
|
|
5735
|
+
'zod-x/require-brand-type-parameter'?: Linter.RuleEntry<[]>;
|
|
5736
|
+
/**
|
|
5737
|
+
* Enforce that custom refinements include an error message
|
|
5738
|
+
* @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/HEAD/docs/rules/require-error-message.md
|
|
5739
|
+
*/
|
|
5740
|
+
'zod-x/require-error-message'?: Linter.RuleEntry<[]>;
|
|
5741
|
+
/**
|
|
5742
|
+
* Require schema suffix when declaring a Zod schema
|
|
5743
|
+
* @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/HEAD/docs/rules/require-schema-suffix.md
|
|
5744
|
+
*/
|
|
5745
|
+
'zod-x/require-schema-suffix'?: Linter.RuleEntry<ZodXRequireSchemaSuffix>;
|
|
5746
|
+
/**
|
|
5747
|
+
* Enforce consistent style for error messages in Zod schema validation (using ESQuery patterns)
|
|
5748
|
+
* @see https://github.com/marcalexiei/eslint-plugin-zod-x/blob/HEAD/docs/rules/schema-error-property-style.md
|
|
5749
|
+
*/
|
|
5750
|
+
'zod-x/schema-error-property-style'?: Linter.RuleEntry<ZodXSchemaErrorPropertyStyle>;
|
|
5630
5751
|
}
|
|
5631
5752
|
/* ======= Declarations ======= */
|
|
5632
5753
|
// ----- @html-eslint/attrs-newline -----
|
|
@@ -5689,6 +5810,10 @@ type HtmlEslintNoRestrictedTags = {
|
|
|
5689
5810
|
tagPatterns: string[];
|
|
5690
5811
|
message?: string;
|
|
5691
5812
|
}[];
|
|
5813
|
+
// ----- @html-eslint/no-whitespace-only-children -----
|
|
5814
|
+
type HtmlEslintNoWhitespaceOnlyChildren = [] | [{
|
|
5815
|
+
tagPatterns?: string[];
|
|
5816
|
+
}];
|
|
5692
5817
|
// ----- @html-eslint/quotes -----
|
|
5693
5818
|
type HtmlEslintQuotes = [] | [("single" | "double")] | [("single" | "double"), {
|
|
5694
5819
|
enforceTemplatedAttrValue?: boolean;
|
|
@@ -10366,27 +10491,25 @@ type PaddingLineBetweenStatements = {
|
|
|
10366
10491
|
// ----- perfectionist/sort-array-includes -----
|
|
10367
10492
|
type PerfectionistSortArrayIncludes = {
|
|
10368
10493
|
fallbackSort?: {
|
|
10494
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10369
10495
|
order?: ("asc" | "desc");
|
|
10370
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10371
10496
|
};
|
|
10497
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10372
10498
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10373
10499
|
ignoreCase?: boolean;
|
|
10374
10500
|
alphabet?: string;
|
|
10375
10501
|
locales?: (string | string[]);
|
|
10376
10502
|
order?: ("asc" | "desc");
|
|
10377
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10378
|
-
groupKind?: ("mixed" | "literals-first" | "spreads-first");
|
|
10379
10503
|
customGroups?: ({
|
|
10380
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10381
10504
|
fallbackSort?: {
|
|
10505
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10382
10506
|
order?: ("asc" | "desc");
|
|
10383
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10384
10507
|
};
|
|
10508
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10385
10509
|
groupName: string;
|
|
10510
|
+
newlinesInside?: ("ignore" | number);
|
|
10386
10511
|
order?: ("asc" | "desc");
|
|
10387
|
-
|
|
10388
|
-
anyOf?: {
|
|
10389
|
-
selector?: ("literal" | "spread");
|
|
10512
|
+
anyOf: {
|
|
10390
10513
|
elementNamePattern?: (({
|
|
10391
10514
|
pattern: string;
|
|
10392
10515
|
flags?: string;
|
|
@@ -10394,17 +10517,17 @@ type PerfectionistSortArrayIncludes = {
|
|
|
10394
10517
|
pattern: string;
|
|
10395
10518
|
flags?: string;
|
|
10396
10519
|
} | string));
|
|
10520
|
+
selector?: ("literal" | "spread");
|
|
10397
10521
|
}[];
|
|
10398
10522
|
} | {
|
|
10399
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10400
10523
|
fallbackSort?: {
|
|
10524
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10401
10525
|
order?: ("asc" | "desc");
|
|
10402
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10403
10526
|
};
|
|
10527
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10404
10528
|
groupName: string;
|
|
10529
|
+
newlinesInside?: ("ignore" | number);
|
|
10405
10530
|
order?: ("asc" | "desc");
|
|
10406
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10407
|
-
selector?: ("literal" | "spread");
|
|
10408
10531
|
elementNamePattern?: (({
|
|
10409
10532
|
pattern: string;
|
|
10410
10533
|
flags?: string;
|
|
@@ -10412,7 +10535,19 @@ type PerfectionistSortArrayIncludes = {
|
|
|
10412
10535
|
pattern: string;
|
|
10413
10536
|
flags?: string;
|
|
10414
10537
|
} | string));
|
|
10538
|
+
selector?: ("literal" | "spread");
|
|
10415
10539
|
})[];
|
|
10540
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
10541
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
10542
|
+
newlinesBetween: ("ignore" | number);
|
|
10543
|
+
} | {
|
|
10544
|
+
group: (string | [string, ...(string)[]]);
|
|
10545
|
+
commentAbove?: string;
|
|
10546
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10547
|
+
newlinesInside?: ("ignore" | number);
|
|
10548
|
+
order?: ("asc" | "desc");
|
|
10549
|
+
})[];
|
|
10550
|
+
newlinesBetween?: ("ignore" | number);
|
|
10416
10551
|
useConfigurationIf?: {
|
|
10417
10552
|
allNamesMatchPattern?: (({
|
|
10418
10553
|
pattern: string;
|
|
@@ -10445,51 +10580,46 @@ type PerfectionistSortArrayIncludes = {
|
|
|
10445
10580
|
} | string)));
|
|
10446
10581
|
});
|
|
10447
10582
|
partitionByNewLine?: boolean;
|
|
10448
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10449
|
-
groups?: (string | string[] | {
|
|
10450
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10451
|
-
commentAbove?: string;
|
|
10452
|
-
})[];
|
|
10453
10583
|
}[];
|
|
10454
10584
|
// ----- perfectionist/sort-classes -----
|
|
10455
10585
|
type PerfectionistSortClasses = [] | [{
|
|
10456
10586
|
fallbackSort?: {
|
|
10587
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10457
10588
|
order?: ("asc" | "desc");
|
|
10458
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10459
10589
|
};
|
|
10590
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10460
10591
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10461
10592
|
ignoreCase?: boolean;
|
|
10462
10593
|
alphabet?: string;
|
|
10463
10594
|
locales?: (string | string[]);
|
|
10464
10595
|
order?: ("asc" | "desc");
|
|
10465
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10466
10596
|
customGroups?: ({
|
|
10467
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10468
10597
|
fallbackSort?: {
|
|
10598
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10469
10599
|
order?: ("asc" | "desc");
|
|
10470
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10471
10600
|
};
|
|
10601
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10472
10602
|
groupName: string;
|
|
10603
|
+
newlinesInside?: ("ignore" | number);
|
|
10473
10604
|
order?: ("asc" | "desc");
|
|
10474
|
-
|
|
10475
|
-
|
|
10476
|
-
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
10477
|
-
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
10478
|
-
decoratorNamePattern?: (({
|
|
10605
|
+
anyOf: {
|
|
10606
|
+
elementNamePattern?: (({
|
|
10479
10607
|
pattern: string;
|
|
10480
10608
|
flags?: string;
|
|
10481
10609
|
} | string)[] | ({
|
|
10482
10610
|
pattern: string;
|
|
10483
10611
|
flags?: string;
|
|
10484
10612
|
} | string));
|
|
10485
|
-
|
|
10613
|
+
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
10614
|
+
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
10615
|
+
decoratorNamePattern?: (({
|
|
10486
10616
|
pattern: string;
|
|
10487
10617
|
flags?: string;
|
|
10488
10618
|
} | string)[] | ({
|
|
10489
10619
|
pattern: string;
|
|
10490
10620
|
flags?: string;
|
|
10491
10621
|
} | string));
|
|
10492
|
-
|
|
10622
|
+
elementValuePattern?: (({
|
|
10493
10623
|
pattern: string;
|
|
10494
10624
|
flags?: string;
|
|
10495
10625
|
} | string)[] | ({
|
|
@@ -10498,31 +10628,31 @@ type PerfectionistSortClasses = [] | [{
|
|
|
10498
10628
|
} | string));
|
|
10499
10629
|
}[];
|
|
10500
10630
|
} | {
|
|
10501
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10502
10631
|
fallbackSort?: {
|
|
10632
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10503
10633
|
order?: ("asc" | "desc");
|
|
10504
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10505
10634
|
};
|
|
10635
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10506
10636
|
groupName: string;
|
|
10637
|
+
newlinesInside?: ("ignore" | number);
|
|
10507
10638
|
order?: ("asc" | "desc");
|
|
10508
|
-
|
|
10509
|
-
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
10510
|
-
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
10511
|
-
decoratorNamePattern?: (({
|
|
10639
|
+
elementNamePattern?: (({
|
|
10512
10640
|
pattern: string;
|
|
10513
10641
|
flags?: string;
|
|
10514
10642
|
} | string)[] | ({
|
|
10515
10643
|
pattern: string;
|
|
10516
10644
|
flags?: string;
|
|
10517
10645
|
} | string));
|
|
10518
|
-
|
|
10646
|
+
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
10647
|
+
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
10648
|
+
decoratorNamePattern?: (({
|
|
10519
10649
|
pattern: string;
|
|
10520
10650
|
flags?: string;
|
|
10521
10651
|
} | string)[] | ({
|
|
10522
10652
|
pattern: string;
|
|
10523
10653
|
flags?: string;
|
|
10524
10654
|
} | string));
|
|
10525
|
-
|
|
10655
|
+
elementValuePattern?: (({
|
|
10526
10656
|
pattern: string;
|
|
10527
10657
|
flags?: string;
|
|
10528
10658
|
} | string)[] | ({
|
|
@@ -10530,6 +10660,17 @@ type PerfectionistSortClasses = [] | [{
|
|
|
10530
10660
|
flags?: string;
|
|
10531
10661
|
} | string));
|
|
10532
10662
|
})[];
|
|
10663
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
10664
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
10665
|
+
newlinesBetween: ("ignore" | number);
|
|
10666
|
+
} | {
|
|
10667
|
+
group: (string | [string, ...(string)[]]);
|
|
10668
|
+
commentAbove?: string;
|
|
10669
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10670
|
+
newlinesInside?: ("ignore" | number);
|
|
10671
|
+
order?: ("asc" | "desc");
|
|
10672
|
+
})[];
|
|
10673
|
+
newlinesBetween?: ("ignore" | number);
|
|
10533
10674
|
ignoreCallbackDependenciesPatterns?: (({
|
|
10534
10675
|
pattern: string;
|
|
10535
10676
|
flags?: string;
|
|
@@ -10560,24 +10701,65 @@ type PerfectionistSortClasses = [] | [{
|
|
|
10560
10701
|
} | string)));
|
|
10561
10702
|
});
|
|
10562
10703
|
partitionByNewLine?: boolean;
|
|
10563
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10564
|
-
groups?: (string | string[] | {
|
|
10565
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10566
|
-
commentAbove?: string;
|
|
10567
|
-
})[];
|
|
10568
10704
|
}];
|
|
10569
10705
|
// ----- perfectionist/sort-decorators -----
|
|
10570
|
-
type PerfectionistSortDecorators =
|
|
10706
|
+
type PerfectionistSortDecorators = {
|
|
10571
10707
|
fallbackSort?: {
|
|
10708
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10572
10709
|
order?: ("asc" | "desc");
|
|
10573
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10574
10710
|
};
|
|
10711
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10575
10712
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10576
10713
|
ignoreCase?: boolean;
|
|
10577
10714
|
alphabet?: string;
|
|
10578
10715
|
locales?: (string | string[]);
|
|
10579
10716
|
order?: ("asc" | "desc");
|
|
10580
|
-
|
|
10717
|
+
customGroups?: ({
|
|
10718
|
+
fallbackSort?: {
|
|
10719
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10720
|
+
order?: ("asc" | "desc");
|
|
10721
|
+
};
|
|
10722
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10723
|
+
groupName: string;
|
|
10724
|
+
newlinesInside?: ("ignore" | number);
|
|
10725
|
+
order?: ("asc" | "desc");
|
|
10726
|
+
anyOf: {
|
|
10727
|
+
elementNamePattern?: (({
|
|
10728
|
+
pattern: string;
|
|
10729
|
+
flags?: string;
|
|
10730
|
+
} | string)[] | ({
|
|
10731
|
+
pattern: string;
|
|
10732
|
+
flags?: string;
|
|
10733
|
+
} | string));
|
|
10734
|
+
}[];
|
|
10735
|
+
} | {
|
|
10736
|
+
fallbackSort?: {
|
|
10737
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10738
|
+
order?: ("asc" | "desc");
|
|
10739
|
+
};
|
|
10740
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10741
|
+
groupName: string;
|
|
10742
|
+
newlinesInside?: ("ignore" | number);
|
|
10743
|
+
order?: ("asc" | "desc");
|
|
10744
|
+
elementNamePattern?: (({
|
|
10745
|
+
pattern: string;
|
|
10746
|
+
flags?: string;
|
|
10747
|
+
} | string)[] | ({
|
|
10748
|
+
pattern: string;
|
|
10749
|
+
flags?: string;
|
|
10750
|
+
} | string));
|
|
10751
|
+
})[];
|
|
10752
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
10753
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
10754
|
+
newlinesBetween: ("ignore" | number);
|
|
10755
|
+
} | {
|
|
10756
|
+
group: (string | [string, ...(string)[]]);
|
|
10757
|
+
commentAbove?: string;
|
|
10758
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10759
|
+
newlinesInside?: ("ignore" | number);
|
|
10760
|
+
order?: ("asc" | "desc");
|
|
10761
|
+
})[];
|
|
10762
|
+
newlinesBetween?: ("ignore" | number);
|
|
10581
10763
|
sortOnParameters?: boolean;
|
|
10582
10764
|
sortOnProperties?: boolean;
|
|
10583
10765
|
sortOnAccessors?: boolean;
|
|
@@ -10605,46 +10787,38 @@ type PerfectionistSortDecorators = [] | [{
|
|
|
10605
10787
|
flags?: string;
|
|
10606
10788
|
} | string)));
|
|
10607
10789
|
});
|
|
10608
|
-
|
|
10609
|
-
|
|
10610
|
-
};
|
|
10611
|
-
groups?: (string | string[] | {
|
|
10612
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10613
|
-
commentAbove?: string;
|
|
10614
|
-
})[];
|
|
10615
|
-
}];
|
|
10790
|
+
partitionByNewLine?: boolean;
|
|
10791
|
+
}[];
|
|
10616
10792
|
// ----- perfectionist/sort-enums -----
|
|
10617
10793
|
type PerfectionistSortEnums = [] | [{
|
|
10618
10794
|
fallbackSort?: {
|
|
10795
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10619
10796
|
order?: ("asc" | "desc");
|
|
10620
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10621
10797
|
};
|
|
10798
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10622
10799
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10623
10800
|
ignoreCase?: boolean;
|
|
10624
10801
|
alphabet?: string;
|
|
10625
10802
|
locales?: (string | string[]);
|
|
10626
10803
|
order?: ("asc" | "desc");
|
|
10627
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10628
10804
|
customGroups?: ({
|
|
10629
|
-
[k: string]: (string | string[]) | undefined;
|
|
10630
|
-
} | ({
|
|
10631
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10632
10805
|
fallbackSort?: {
|
|
10806
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10633
10807
|
order?: ("asc" | "desc");
|
|
10634
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10635
10808
|
};
|
|
10809
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10636
10810
|
groupName: string;
|
|
10811
|
+
newlinesInside?: ("ignore" | number);
|
|
10637
10812
|
order?: ("asc" | "desc");
|
|
10638
|
-
|
|
10639
|
-
|
|
10640
|
-
elementValuePattern?: (({
|
|
10813
|
+
anyOf: {
|
|
10814
|
+
elementNamePattern?: (({
|
|
10641
10815
|
pattern: string;
|
|
10642
10816
|
flags?: string;
|
|
10643
10817
|
} | string)[] | ({
|
|
10644
10818
|
pattern: string;
|
|
10645
10819
|
flags?: string;
|
|
10646
10820
|
} | string));
|
|
10647
|
-
|
|
10821
|
+
elementValuePattern?: (({
|
|
10648
10822
|
pattern: string;
|
|
10649
10823
|
flags?: string;
|
|
10650
10824
|
} | string)[] | ({
|
|
@@ -10653,31 +10827,41 @@ type PerfectionistSortEnums = [] | [{
|
|
|
10653
10827
|
} | string));
|
|
10654
10828
|
}[];
|
|
10655
10829
|
} | {
|
|
10656
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10657
10830
|
fallbackSort?: {
|
|
10831
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10658
10832
|
order?: ("asc" | "desc");
|
|
10659
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10660
10833
|
};
|
|
10834
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10661
10835
|
groupName: string;
|
|
10836
|
+
newlinesInside?: ("ignore" | number);
|
|
10662
10837
|
order?: ("asc" | "desc");
|
|
10663
|
-
|
|
10664
|
-
elementValuePattern?: (({
|
|
10838
|
+
elementNamePattern?: (({
|
|
10665
10839
|
pattern: string;
|
|
10666
10840
|
flags?: string;
|
|
10667
10841
|
} | string)[] | ({
|
|
10668
10842
|
pattern: string;
|
|
10669
10843
|
flags?: string;
|
|
10670
10844
|
} | string));
|
|
10671
|
-
|
|
10845
|
+
elementValuePattern?: (({
|
|
10672
10846
|
pattern: string;
|
|
10673
10847
|
flags?: string;
|
|
10674
10848
|
} | string)[] | ({
|
|
10675
10849
|
pattern: string;
|
|
10676
10850
|
flags?: string;
|
|
10677
10851
|
} | string));
|
|
10678
|
-
})[]
|
|
10679
|
-
|
|
10680
|
-
|
|
10852
|
+
})[];
|
|
10853
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
10854
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
10855
|
+
newlinesBetween: ("ignore" | number);
|
|
10856
|
+
} | {
|
|
10857
|
+
group: (string | [string, ...(string)[]]);
|
|
10858
|
+
commentAbove?: string;
|
|
10859
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10860
|
+
newlinesInside?: ("ignore" | number);
|
|
10861
|
+
order?: ("asc" | "desc");
|
|
10862
|
+
})[];
|
|
10863
|
+
newlinesBetween?: ("ignore" | number);
|
|
10864
|
+
sortByValue?: ("always" | "ifNumericEnum" | "never");
|
|
10681
10865
|
partitionByComment?: (boolean | (({
|
|
10682
10866
|
pattern: string;
|
|
10683
10867
|
flags?: string;
|
|
@@ -10701,37 +10885,29 @@ type PerfectionistSortEnums = [] | [{
|
|
|
10701
10885
|
} | string)));
|
|
10702
10886
|
});
|
|
10703
10887
|
partitionByNewLine?: boolean;
|
|
10704
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10705
|
-
groups?: (string | string[] | {
|
|
10706
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10707
|
-
commentAbove?: string;
|
|
10708
|
-
})[];
|
|
10709
10888
|
}];
|
|
10710
|
-
// ----- perfectionist/sort-
|
|
10711
|
-
type
|
|
10889
|
+
// ----- perfectionist/sort-export-attributes -----
|
|
10890
|
+
type PerfectionistSortExportAttributes = {
|
|
10712
10891
|
fallbackSort?: {
|
|
10892
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10713
10893
|
order?: ("asc" | "desc");
|
|
10714
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10715
10894
|
};
|
|
10895
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10716
10896
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10717
10897
|
ignoreCase?: boolean;
|
|
10718
10898
|
alphabet?: string;
|
|
10719
10899
|
locales?: (string | string[]);
|
|
10720
10900
|
order?: ("asc" | "desc");
|
|
10721
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10722
|
-
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
10723
10901
|
customGroups?: ({
|
|
10724
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10725
10902
|
fallbackSort?: {
|
|
10903
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10726
10904
|
order?: ("asc" | "desc");
|
|
10727
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10728
10905
|
};
|
|
10906
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10729
10907
|
groupName: string;
|
|
10908
|
+
newlinesInside?: ("ignore" | number);
|
|
10730
10909
|
order?: ("asc" | "desc");
|
|
10731
|
-
|
|
10732
|
-
anyOf?: {
|
|
10733
|
-
modifiers?: ("value" | "type")[];
|
|
10734
|
-
selector?: "export";
|
|
10910
|
+
anyOf: {
|
|
10735
10911
|
elementNamePattern?: (({
|
|
10736
10912
|
pattern: string;
|
|
10737
10913
|
flags?: string;
|
|
@@ -10741,16 +10917,14 @@ type PerfectionistSortExports = {
|
|
|
10741
10917
|
} | string));
|
|
10742
10918
|
}[];
|
|
10743
10919
|
} | {
|
|
10744
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10745
10920
|
fallbackSort?: {
|
|
10921
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10746
10922
|
order?: ("asc" | "desc");
|
|
10747
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10748
10923
|
};
|
|
10924
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10749
10925
|
groupName: string;
|
|
10926
|
+
newlinesInside?: ("ignore" | number);
|
|
10750
10927
|
order?: ("asc" | "desc");
|
|
10751
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10752
|
-
modifiers?: ("value" | "type")[];
|
|
10753
|
-
selector?: "export";
|
|
10754
10928
|
elementNamePattern?: (({
|
|
10755
10929
|
pattern: string;
|
|
10756
10930
|
flags?: string;
|
|
@@ -10759,6 +10933,17 @@ type PerfectionistSortExports = {
|
|
|
10759
10933
|
flags?: string;
|
|
10760
10934
|
} | string));
|
|
10761
10935
|
})[];
|
|
10936
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
10937
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
10938
|
+
newlinesBetween: ("ignore" | number);
|
|
10939
|
+
} | {
|
|
10940
|
+
group: (string | [string, ...(string)[]]);
|
|
10941
|
+
commentAbove?: string;
|
|
10942
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10943
|
+
newlinesInside?: ("ignore" | number);
|
|
10944
|
+
order?: ("asc" | "desc");
|
|
10945
|
+
})[];
|
|
10946
|
+
newlinesBetween?: ("ignore" | number);
|
|
10762
10947
|
partitionByComment?: (boolean | (({
|
|
10763
10948
|
pattern: string;
|
|
10764
10949
|
flags?: string;
|
|
@@ -10782,70 +10967,29 @@ type PerfectionistSortExports = {
|
|
|
10782
10967
|
} | string)));
|
|
10783
10968
|
});
|
|
10784
10969
|
partitionByNewLine?: boolean;
|
|
10785
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10786
|
-
groups?: (string | string[] | {
|
|
10787
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10788
|
-
commentAbove?: string;
|
|
10789
|
-
})[];
|
|
10790
10970
|
}[];
|
|
10791
|
-
// ----- perfectionist/sort-
|
|
10792
|
-
type
|
|
10971
|
+
// ----- perfectionist/sort-exports -----
|
|
10972
|
+
type PerfectionistSortExports = {
|
|
10793
10973
|
fallbackSort?: {
|
|
10974
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10794
10975
|
order?: ("asc" | "desc");
|
|
10795
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10796
10976
|
};
|
|
10797
|
-
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10798
|
-
ignoreCase?: boolean;
|
|
10799
|
-
alphabet?: string;
|
|
10800
|
-
locales?: (string | string[]);
|
|
10801
|
-
order?: ("asc" | "desc");
|
|
10802
10977
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10803
|
-
customGroups?: {
|
|
10804
|
-
[k: string]: (string | string[]) | undefined;
|
|
10805
|
-
};
|
|
10806
|
-
groups?: (string | string[] | {
|
|
10807
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10808
|
-
commentAbove?: string;
|
|
10809
|
-
})[];
|
|
10810
|
-
}];
|
|
10811
|
-
// ----- perfectionist/sort-imports -----
|
|
10812
|
-
type PerfectionistSortImports = {
|
|
10813
|
-
fallbackSort?: {
|
|
10814
|
-
order?: ("asc" | "desc");
|
|
10815
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10816
|
-
};
|
|
10817
10978
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10818
10979
|
ignoreCase?: boolean;
|
|
10819
10980
|
alphabet?: string;
|
|
10820
10981
|
locales?: (string | string[]);
|
|
10821
10982
|
order?: ("asc" | "desc");
|
|
10822
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10823
10983
|
customGroups?: ({
|
|
10824
|
-
value?: {
|
|
10825
|
-
[k: string]: (string | string[]) | undefined;
|
|
10826
|
-
};
|
|
10827
|
-
type?: {
|
|
10828
|
-
[k: string]: (string | string[]) | undefined;
|
|
10829
|
-
};
|
|
10830
|
-
} | ({
|
|
10831
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10832
10984
|
fallbackSort?: {
|
|
10985
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10833
10986
|
order?: ("asc" | "desc");
|
|
10834
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10835
10987
|
};
|
|
10988
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10836
10989
|
groupName: string;
|
|
10990
|
+
newlinesInside?: ("ignore" | number);
|
|
10837
10991
|
order?: ("asc" | "desc");
|
|
10838
|
-
|
|
10839
|
-
anyOf?: {
|
|
10840
|
-
modifiers?: ("default" | "named" | "require" | "side-effect" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
10841
|
-
selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
|
|
10842
|
-
elementValuePattern?: (({
|
|
10843
|
-
pattern: string;
|
|
10844
|
-
flags?: string;
|
|
10845
|
-
} | string)[] | ({
|
|
10846
|
-
pattern: string;
|
|
10847
|
-
flags?: string;
|
|
10848
|
-
} | string));
|
|
10992
|
+
anyOf: {
|
|
10849
10993
|
elementNamePattern?: (({
|
|
10850
10994
|
pattern: string;
|
|
10851
10995
|
flags?: string;
|
|
@@ -10853,25 +10997,18 @@ type PerfectionistSortImports = {
|
|
|
10853
10997
|
pattern: string;
|
|
10854
10998
|
flags?: string;
|
|
10855
10999
|
} | string));
|
|
11000
|
+
modifiers?: ("value" | "type" | "named" | "wildcard" | "multiline" | "singleline")[];
|
|
11001
|
+
selector?: "export";
|
|
10856
11002
|
}[];
|
|
10857
11003
|
} | {
|
|
10858
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10859
11004
|
fallbackSort?: {
|
|
11005
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10860
11006
|
order?: ("asc" | "desc");
|
|
10861
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10862
11007
|
};
|
|
11008
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10863
11009
|
groupName: string;
|
|
11010
|
+
newlinesInside?: ("ignore" | number);
|
|
10864
11011
|
order?: ("asc" | "desc");
|
|
10865
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10866
|
-
modifiers?: ("default" | "named" | "require" | "side-effect" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
10867
|
-
selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
|
|
10868
|
-
elementValuePattern?: (({
|
|
10869
|
-
pattern: string;
|
|
10870
|
-
flags?: string;
|
|
10871
|
-
} | string)[] | ({
|
|
10872
|
-
pattern: string;
|
|
10873
|
-
flags?: string;
|
|
10874
|
-
} | string));
|
|
10875
11012
|
elementNamePattern?: (({
|
|
10876
11013
|
pattern: string;
|
|
10877
11014
|
flags?: string;
|
|
@@ -10879,15 +11016,20 @@ type PerfectionistSortImports = {
|
|
|
10879
11016
|
pattern: string;
|
|
10880
11017
|
flags?: string;
|
|
10881
11018
|
} | string));
|
|
10882
|
-
|
|
10883
|
-
|
|
10884
|
-
|
|
10885
|
-
|
|
10886
|
-
|
|
10887
|
-
|
|
10888
|
-
|
|
10889
|
-
|
|
10890
|
-
|
|
11019
|
+
modifiers?: ("value" | "type" | "named" | "wildcard" | "multiline" | "singleline")[];
|
|
11020
|
+
selector?: "export";
|
|
11021
|
+
})[];
|
|
11022
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11023
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11024
|
+
newlinesBetween: ("ignore" | number);
|
|
11025
|
+
} | {
|
|
11026
|
+
group: (string | [string, ...(string)[]]);
|
|
11027
|
+
commentAbove?: string;
|
|
11028
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11029
|
+
newlinesInside?: ("ignore" | number);
|
|
11030
|
+
order?: ("asc" | "desc");
|
|
11031
|
+
})[];
|
|
11032
|
+
newlinesBetween?: ("ignore" | number);
|
|
10891
11033
|
partitionByComment?: (boolean | (({
|
|
10892
11034
|
pattern: string;
|
|
10893
11035
|
flags?: string;
|
|
@@ -10911,55 +11053,305 @@ type PerfectionistSortImports = {
|
|
|
10911
11053
|
} | string)));
|
|
10912
11054
|
});
|
|
10913
11055
|
partitionByNewLine?: boolean;
|
|
10914
|
-
|
|
10915
|
-
|
|
10916
|
-
|
|
10917
|
-
|
|
10918
|
-
|
|
11056
|
+
}[];
|
|
11057
|
+
// ----- perfectionist/sort-heritage-clauses -----
|
|
11058
|
+
type PerfectionistSortHeritageClauses = {
|
|
11059
|
+
fallbackSort?: {
|
|
11060
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11061
|
+
order?: ("asc" | "desc");
|
|
11062
|
+
};
|
|
11063
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11064
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11065
|
+
ignoreCase?: boolean;
|
|
11066
|
+
alphabet?: string;
|
|
11067
|
+
locales?: (string | string[]);
|
|
11068
|
+
order?: ("asc" | "desc");
|
|
11069
|
+
customGroups?: ({
|
|
11070
|
+
fallbackSort?: {
|
|
11071
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11072
|
+
order?: ("asc" | "desc");
|
|
11073
|
+
};
|
|
11074
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11075
|
+
groupName: string;
|
|
11076
|
+
newlinesInside?: ("ignore" | number);
|
|
11077
|
+
order?: ("asc" | "desc");
|
|
11078
|
+
anyOf: {
|
|
11079
|
+
elementNamePattern?: (({
|
|
11080
|
+
pattern: string;
|
|
11081
|
+
flags?: string;
|
|
11082
|
+
} | string)[] | ({
|
|
11083
|
+
pattern: string;
|
|
11084
|
+
flags?: string;
|
|
11085
|
+
} | string));
|
|
11086
|
+
}[];
|
|
11087
|
+
} | {
|
|
11088
|
+
fallbackSort?: {
|
|
11089
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11090
|
+
order?: ("asc" | "desc");
|
|
11091
|
+
};
|
|
11092
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11093
|
+
groupName: string;
|
|
11094
|
+
newlinesInside?: ("ignore" | number);
|
|
11095
|
+
order?: ("asc" | "desc");
|
|
11096
|
+
elementNamePattern?: (({
|
|
11097
|
+
pattern: string;
|
|
11098
|
+
flags?: string;
|
|
11099
|
+
} | string)[] | ({
|
|
11100
|
+
pattern: string;
|
|
11101
|
+
flags?: string;
|
|
11102
|
+
} | string));
|
|
11103
|
+
})[];
|
|
11104
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11105
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11106
|
+
newlinesBetween: ("ignore" | number);
|
|
11107
|
+
} | {
|
|
11108
|
+
group: (string | [string, ...(string)[]]);
|
|
11109
|
+
commentAbove?: string;
|
|
11110
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11111
|
+
newlinesInside?: ("ignore" | number);
|
|
11112
|
+
order?: ("asc" | "desc");
|
|
11113
|
+
})[];
|
|
11114
|
+
newlinesBetween?: ("ignore" | number);
|
|
11115
|
+
partitionByNewLine?: boolean;
|
|
11116
|
+
partitionByComment?: (boolean | (({
|
|
10919
11117
|
pattern: string;
|
|
10920
11118
|
flags?: string;
|
|
10921
|
-
} | string)
|
|
10922
|
-
|
|
10923
|
-
|
|
11119
|
+
} | string)[] | ({
|
|
11120
|
+
pattern: string;
|
|
11121
|
+
flags?: string;
|
|
11122
|
+
} | string)) | {
|
|
11123
|
+
block?: (boolean | (({
|
|
11124
|
+
pattern: string;
|
|
11125
|
+
flags?: string;
|
|
11126
|
+
} | string)[] | ({
|
|
11127
|
+
pattern: string;
|
|
11128
|
+
flags?: string;
|
|
11129
|
+
} | string)));
|
|
11130
|
+
line?: (boolean | (({
|
|
11131
|
+
pattern: string;
|
|
11132
|
+
flags?: string;
|
|
11133
|
+
} | string)[] | ({
|
|
11134
|
+
pattern: string;
|
|
11135
|
+
flags?: string;
|
|
11136
|
+
} | string)));
|
|
11137
|
+
});
|
|
11138
|
+
}[];
|
|
11139
|
+
// ----- perfectionist/sort-import-attributes -----
|
|
11140
|
+
type PerfectionistSortImportAttributes = {
|
|
11141
|
+
fallbackSort?: {
|
|
11142
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11143
|
+
order?: ("asc" | "desc");
|
|
11144
|
+
};
|
|
11145
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11146
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11147
|
+
ignoreCase?: boolean;
|
|
11148
|
+
alphabet?: string;
|
|
11149
|
+
locales?: (string | string[]);
|
|
11150
|
+
order?: ("asc" | "desc");
|
|
11151
|
+
customGroups?: ({
|
|
11152
|
+
fallbackSort?: {
|
|
11153
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11154
|
+
order?: ("asc" | "desc");
|
|
11155
|
+
};
|
|
11156
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11157
|
+
groupName: string;
|
|
11158
|
+
newlinesInside?: ("ignore" | number);
|
|
11159
|
+
order?: ("asc" | "desc");
|
|
11160
|
+
anyOf: {
|
|
11161
|
+
elementNamePattern?: (({
|
|
11162
|
+
pattern: string;
|
|
11163
|
+
flags?: string;
|
|
11164
|
+
} | string)[] | ({
|
|
11165
|
+
pattern: string;
|
|
11166
|
+
flags?: string;
|
|
11167
|
+
} | string));
|
|
11168
|
+
}[];
|
|
11169
|
+
} | {
|
|
11170
|
+
fallbackSort?: {
|
|
11171
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11172
|
+
order?: ("asc" | "desc");
|
|
11173
|
+
};
|
|
11174
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11175
|
+
groupName: string;
|
|
11176
|
+
newlinesInside?: ("ignore" | number);
|
|
11177
|
+
order?: ("asc" | "desc");
|
|
11178
|
+
elementNamePattern?: (({
|
|
11179
|
+
pattern: string;
|
|
11180
|
+
flags?: string;
|
|
11181
|
+
} | string)[] | ({
|
|
11182
|
+
pattern: string;
|
|
11183
|
+
flags?: string;
|
|
11184
|
+
} | string));
|
|
11185
|
+
})[];
|
|
11186
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11187
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11188
|
+
newlinesBetween: ("ignore" | number);
|
|
11189
|
+
} | {
|
|
11190
|
+
group: (string | [string, ...(string)[]]);
|
|
10924
11191
|
commentAbove?: string;
|
|
11192
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11193
|
+
newlinesInside?: ("ignore" | number);
|
|
11194
|
+
order?: ("asc" | "desc");
|
|
10925
11195
|
})[];
|
|
11196
|
+
newlinesBetween?: ("ignore" | number);
|
|
11197
|
+
partitionByComment?: (boolean | (({
|
|
11198
|
+
pattern: string;
|
|
11199
|
+
flags?: string;
|
|
11200
|
+
} | string)[] | ({
|
|
11201
|
+
pattern: string;
|
|
11202
|
+
flags?: string;
|
|
11203
|
+
} | string)) | {
|
|
11204
|
+
block?: (boolean | (({
|
|
11205
|
+
pattern: string;
|
|
11206
|
+
flags?: string;
|
|
11207
|
+
} | string)[] | ({
|
|
11208
|
+
pattern: string;
|
|
11209
|
+
flags?: string;
|
|
11210
|
+
} | string)));
|
|
11211
|
+
line?: (boolean | (({
|
|
11212
|
+
pattern: string;
|
|
11213
|
+
flags?: string;
|
|
11214
|
+
} | string)[] | ({
|
|
11215
|
+
pattern: string;
|
|
11216
|
+
flags?: string;
|
|
11217
|
+
} | string)));
|
|
11218
|
+
});
|
|
11219
|
+
partitionByNewLine?: boolean;
|
|
11220
|
+
}[];
|
|
11221
|
+
// ----- perfectionist/sort-imports -----
|
|
11222
|
+
type PerfectionistSortImports = {
|
|
11223
|
+
fallbackSort?: {
|
|
11224
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
11225
|
+
order?: ("asc" | "desc");
|
|
11226
|
+
};
|
|
11227
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
11228
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11229
|
+
ignoreCase?: boolean;
|
|
11230
|
+
alphabet?: string;
|
|
11231
|
+
locales?: (string | string[]);
|
|
11232
|
+
order?: ("asc" | "desc");
|
|
11233
|
+
customGroups?: ({
|
|
11234
|
+
fallbackSort?: {
|
|
11235
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
11236
|
+
order?: ("asc" | "desc");
|
|
11237
|
+
};
|
|
11238
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
11239
|
+
groupName: string;
|
|
11240
|
+
newlinesInside?: ("ignore" | number);
|
|
11241
|
+
order?: ("asc" | "desc");
|
|
11242
|
+
anyOf: {
|
|
11243
|
+
elementNamePattern?: (({
|
|
11244
|
+
pattern: string;
|
|
11245
|
+
flags?: string;
|
|
11246
|
+
} | string)[] | ({
|
|
11247
|
+
pattern: string;
|
|
11248
|
+
flags?: string;
|
|
11249
|
+
} | string));
|
|
11250
|
+
modifiers?: ("default" | "multiline" | "named" | "require" | "side-effect" | "singleline" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
11251
|
+
selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
|
|
11252
|
+
}[];
|
|
11253
|
+
} | {
|
|
11254
|
+
fallbackSort?: {
|
|
11255
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
11256
|
+
order?: ("asc" | "desc");
|
|
11257
|
+
};
|
|
11258
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
11259
|
+
groupName: string;
|
|
11260
|
+
newlinesInside?: ("ignore" | number);
|
|
11261
|
+
order?: ("asc" | "desc");
|
|
11262
|
+
elementNamePattern?: (({
|
|
11263
|
+
pattern: string;
|
|
11264
|
+
flags?: string;
|
|
11265
|
+
} | string)[] | ({
|
|
11266
|
+
pattern: string;
|
|
11267
|
+
flags?: string;
|
|
11268
|
+
} | string));
|
|
11269
|
+
modifiers?: ("default" | "multiline" | "named" | "require" | "side-effect" | "singleline" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
11270
|
+
selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
|
|
11271
|
+
})[];
|
|
11272
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11273
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11274
|
+
newlinesBetween: ("ignore" | number);
|
|
11275
|
+
} | {
|
|
11276
|
+
group: (string | [string, ...(string)[]]);
|
|
11277
|
+
commentAbove?: string;
|
|
11278
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
11279
|
+
newlinesInside?: ("ignore" | number);
|
|
11280
|
+
order?: ("asc" | "desc");
|
|
11281
|
+
})[];
|
|
11282
|
+
newlinesBetween?: ("ignore" | number);
|
|
11283
|
+
tsconfig?: {
|
|
11284
|
+
rootDir: string;
|
|
11285
|
+
filename?: string;
|
|
11286
|
+
};
|
|
11287
|
+
maxLineLength?: number;
|
|
11288
|
+
sortSideEffects?: boolean;
|
|
11289
|
+
environment?: ("node" | "bun");
|
|
11290
|
+
partitionByComment?: (boolean | (({
|
|
11291
|
+
pattern: string;
|
|
11292
|
+
flags?: string;
|
|
11293
|
+
} | string)[] | ({
|
|
11294
|
+
pattern: string;
|
|
11295
|
+
flags?: string;
|
|
11296
|
+
} | string)) | {
|
|
11297
|
+
block?: (boolean | (({
|
|
11298
|
+
pattern: string;
|
|
11299
|
+
flags?: string;
|
|
11300
|
+
} | string)[] | ({
|
|
11301
|
+
pattern: string;
|
|
11302
|
+
flags?: string;
|
|
11303
|
+
} | string)));
|
|
11304
|
+
line?: (boolean | (({
|
|
11305
|
+
pattern: string;
|
|
11306
|
+
flags?: string;
|
|
11307
|
+
} | string)[] | ({
|
|
11308
|
+
pattern: string;
|
|
11309
|
+
flags?: string;
|
|
11310
|
+
} | string)));
|
|
11311
|
+
});
|
|
11312
|
+
partitionByNewLine?: boolean;
|
|
11313
|
+
internalPattern?: (({
|
|
11314
|
+
pattern: string;
|
|
11315
|
+
flags?: string;
|
|
11316
|
+
} | string)[] | ({
|
|
11317
|
+
pattern: string;
|
|
11318
|
+
flags?: string;
|
|
11319
|
+
} | string));
|
|
10926
11320
|
}[];
|
|
10927
11321
|
// ----- perfectionist/sort-interfaces -----
|
|
10928
11322
|
type PerfectionistSortInterfaces = {
|
|
10929
11323
|
fallbackSort?: {
|
|
11324
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10930
11325
|
order?: ("asc" | "desc");
|
|
10931
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10932
11326
|
sortBy?: ("name" | "value");
|
|
10933
11327
|
};
|
|
11328
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10934
11329
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10935
11330
|
ignoreCase?: boolean;
|
|
10936
11331
|
alphabet?: string;
|
|
10937
11332
|
locales?: (string | string[]);
|
|
10938
11333
|
order?: ("asc" | "desc");
|
|
10939
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10940
11334
|
customGroups?: ({
|
|
10941
|
-
[k: string]: (string | string[]) | undefined;
|
|
10942
|
-
} | ({
|
|
10943
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10944
11335
|
fallbackSort?: {
|
|
11336
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10945
11337
|
order?: ("asc" | "desc");
|
|
10946
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10947
11338
|
sortBy?: ("name" | "value");
|
|
10948
11339
|
};
|
|
11340
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10949
11341
|
groupName: string;
|
|
11342
|
+
newlinesInside?: ("ignore" | number);
|
|
10950
11343
|
order?: ("asc" | "desc");
|
|
10951
|
-
|
|
10952
|
-
|
|
10953
|
-
modifiers?: ("optional" | "required" | "multiline")[];
|
|
10954
|
-
selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
|
|
10955
|
-
elementValuePattern?: (({
|
|
11344
|
+
anyOf: {
|
|
11345
|
+
elementNamePattern?: (({
|
|
10956
11346
|
pattern: string;
|
|
10957
11347
|
flags?: string;
|
|
10958
11348
|
} | string)[] | ({
|
|
10959
11349
|
pattern: string;
|
|
10960
11350
|
flags?: string;
|
|
10961
11351
|
} | string));
|
|
10962
|
-
|
|
11352
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
11353
|
+
selector?: ("index-signature" | "member" | "method" | "property");
|
|
11354
|
+
elementValuePattern?: (({
|
|
10963
11355
|
pattern: string;
|
|
10964
11356
|
flags?: string;
|
|
10965
11357
|
} | string)[] | ({
|
|
@@ -10969,25 +11361,25 @@ type PerfectionistSortInterfaces = {
|
|
|
10969
11361
|
sortBy?: ("name" | "value");
|
|
10970
11362
|
}[];
|
|
10971
11363
|
} | {
|
|
10972
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10973
11364
|
fallbackSort?: {
|
|
11365
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10974
11366
|
order?: ("asc" | "desc");
|
|
10975
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10976
11367
|
sortBy?: ("name" | "value");
|
|
10977
11368
|
};
|
|
11369
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10978
11370
|
groupName: string;
|
|
11371
|
+
newlinesInside?: ("ignore" | number);
|
|
10979
11372
|
order?: ("asc" | "desc");
|
|
10980
|
-
|
|
10981
|
-
modifiers?: ("optional" | "required" | "multiline")[];
|
|
10982
|
-
selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
|
|
10983
|
-
elementValuePattern?: (({
|
|
11373
|
+
elementNamePattern?: (({
|
|
10984
11374
|
pattern: string;
|
|
10985
11375
|
flags?: string;
|
|
10986
11376
|
} | string)[] | ({
|
|
10987
11377
|
pattern: string;
|
|
10988
11378
|
flags?: string;
|
|
10989
11379
|
} | string));
|
|
10990
|
-
|
|
11380
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
11381
|
+
selector?: ("index-signature" | "member" | "method" | "property");
|
|
11382
|
+
elementValuePattern?: (({
|
|
10991
11383
|
pattern: string;
|
|
10992
11384
|
flags?: string;
|
|
10993
11385
|
} | string)[] | ({
|
|
@@ -10995,8 +11387,18 @@ type PerfectionistSortInterfaces = {
|
|
|
10995
11387
|
flags?: string;
|
|
10996
11388
|
} | string));
|
|
10997
11389
|
sortBy?: ("name" | "value");
|
|
10998
|
-
})[]
|
|
10999
|
-
|
|
11390
|
+
})[];
|
|
11391
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11392
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11393
|
+
newlinesBetween: ("ignore" | number);
|
|
11394
|
+
} | {
|
|
11395
|
+
group: (string | [string, ...(string)[]]);
|
|
11396
|
+
commentAbove?: string;
|
|
11397
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11398
|
+
newlinesInside?: ("ignore" | number);
|
|
11399
|
+
order?: ("asc" | "desc");
|
|
11400
|
+
})[];
|
|
11401
|
+
newlinesBetween?: ("ignore" | number);
|
|
11000
11402
|
useConfigurationIf?: {
|
|
11001
11403
|
allNamesMatchPattern?: (({
|
|
11002
11404
|
pattern: string;
|
|
@@ -11005,10 +11407,22 @@ type PerfectionistSortInterfaces = {
|
|
|
11005
11407
|
pattern: string;
|
|
11006
11408
|
flags?: string;
|
|
11007
11409
|
} | string));
|
|
11410
|
+
hasNumericKeysOnly?: boolean;
|
|
11411
|
+
declarationCommentMatchesPattern?: (({
|
|
11412
|
+
scope?: ("shallow" | "deep");
|
|
11413
|
+
pattern: string;
|
|
11414
|
+
flags?: string;
|
|
11415
|
+
} | string)[] | ({
|
|
11416
|
+
scope?: ("shallow" | "deep");
|
|
11417
|
+
pattern: string;
|
|
11418
|
+
flags?: string;
|
|
11419
|
+
} | string));
|
|
11008
11420
|
declarationMatchesPattern?: (({
|
|
11421
|
+
scope?: ("shallow" | "deep");
|
|
11009
11422
|
pattern: string;
|
|
11010
11423
|
flags?: string;
|
|
11011
11424
|
} | string)[] | ({
|
|
11425
|
+
scope?: ("shallow" | "deep");
|
|
11012
11426
|
pattern: string;
|
|
11013
11427
|
flags?: string;
|
|
11014
11428
|
} | string));
|
|
@@ -11036,43 +11450,30 @@ type PerfectionistSortInterfaces = {
|
|
|
11036
11450
|
} | string)));
|
|
11037
11451
|
});
|
|
11038
11452
|
partitionByNewLine?: boolean;
|
|
11039
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11040
|
-
ignorePattern?: (({
|
|
11041
|
-
pattern: string;
|
|
11042
|
-
flags?: string;
|
|
11043
|
-
} | string)[] | ({
|
|
11044
|
-
pattern: string;
|
|
11045
|
-
flags?: string;
|
|
11046
|
-
} | string));
|
|
11047
11453
|
sortBy?: ("name" | "value");
|
|
11048
|
-
groups?: (string | string[] | {
|
|
11049
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11050
|
-
commentAbove?: string;
|
|
11051
|
-
})[];
|
|
11052
11454
|
}[];
|
|
11053
11455
|
// ----- perfectionist/sort-intersection-types -----
|
|
11054
11456
|
type PerfectionistSortIntersectionTypes = {
|
|
11055
11457
|
fallbackSort?: {
|
|
11458
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11056
11459
|
order?: ("asc" | "desc");
|
|
11057
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11058
11460
|
};
|
|
11461
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11059
11462
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11060
11463
|
ignoreCase?: boolean;
|
|
11061
11464
|
alphabet?: string;
|
|
11062
11465
|
locales?: (string | string[]);
|
|
11063
11466
|
order?: ("asc" | "desc");
|
|
11064
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11065
11467
|
customGroups?: ({
|
|
11066
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11067
11468
|
fallbackSort?: {
|
|
11469
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11068
11470
|
order?: ("asc" | "desc");
|
|
11069
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11070
11471
|
};
|
|
11472
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11071
11473
|
groupName: string;
|
|
11474
|
+
newlinesInside?: ("ignore" | number);
|
|
11072
11475
|
order?: ("asc" | "desc");
|
|
11073
|
-
|
|
11074
|
-
anyOf?: {
|
|
11075
|
-
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
11476
|
+
anyOf: {
|
|
11076
11477
|
elementNamePattern?: (({
|
|
11077
11478
|
pattern: string;
|
|
11078
11479
|
flags?: string;
|
|
@@ -11080,17 +11481,17 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
11080
11481
|
pattern: string;
|
|
11081
11482
|
flags?: string;
|
|
11082
11483
|
} | string));
|
|
11484
|
+
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
11083
11485
|
}[];
|
|
11084
11486
|
} | {
|
|
11085
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11086
11487
|
fallbackSort?: {
|
|
11488
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11087
11489
|
order?: ("asc" | "desc");
|
|
11088
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11089
11490
|
};
|
|
11491
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11090
11492
|
groupName: string;
|
|
11493
|
+
newlinesInside?: ("ignore" | number);
|
|
11091
11494
|
order?: ("asc" | "desc");
|
|
11092
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11093
|
-
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
11094
11495
|
elementNamePattern?: (({
|
|
11095
11496
|
pattern: string;
|
|
11096
11497
|
flags?: string;
|
|
@@ -11098,7 +11499,19 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
11098
11499
|
pattern: string;
|
|
11099
11500
|
flags?: string;
|
|
11100
11501
|
} | string));
|
|
11502
|
+
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
11101
11503
|
})[];
|
|
11504
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11505
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11506
|
+
newlinesBetween: ("ignore" | number);
|
|
11507
|
+
} | {
|
|
11508
|
+
group: (string | [string, ...(string)[]]);
|
|
11509
|
+
commentAbove?: string;
|
|
11510
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11511
|
+
newlinesInside?: ("ignore" | number);
|
|
11512
|
+
order?: ("asc" | "desc");
|
|
11513
|
+
})[];
|
|
11514
|
+
newlinesBetween?: ("ignore" | number);
|
|
11102
11515
|
partitionByComment?: (boolean | (({
|
|
11103
11516
|
pattern: string;
|
|
11104
11517
|
flags?: string;
|
|
@@ -11122,46 +11535,39 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
11122
11535
|
} | string)));
|
|
11123
11536
|
});
|
|
11124
11537
|
partitionByNewLine?: boolean;
|
|
11125
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11126
|
-
groups?: (string | string[] | {
|
|
11127
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11128
|
-
commentAbove?: string;
|
|
11129
|
-
})[];
|
|
11130
11538
|
}[];
|
|
11131
11539
|
// ----- perfectionist/sort-jsx-props -----
|
|
11132
11540
|
type PerfectionistSortJsxProps = {
|
|
11133
11541
|
fallbackSort?: {
|
|
11542
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11134
11543
|
order?: ("asc" | "desc");
|
|
11135
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11136
11544
|
};
|
|
11545
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11137
11546
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11138
11547
|
ignoreCase?: boolean;
|
|
11139
11548
|
alphabet?: string;
|
|
11140
11549
|
locales?: (string | string[]);
|
|
11141
11550
|
order?: ("asc" | "desc");
|
|
11142
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11143
11551
|
customGroups?: ({
|
|
11144
|
-
[k: string]: (string | string[]) | undefined;
|
|
11145
|
-
} | ({
|
|
11146
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11147
11552
|
fallbackSort?: {
|
|
11553
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11148
11554
|
order?: ("asc" | "desc");
|
|
11149
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11150
11555
|
};
|
|
11556
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11151
11557
|
groupName: string;
|
|
11558
|
+
newlinesInside?: ("ignore" | number);
|
|
11152
11559
|
order?: ("asc" | "desc");
|
|
11153
|
-
|
|
11154
|
-
|
|
11155
|
-
modifiers?: ("shorthand" | "multiline")[];
|
|
11156
|
-
selector?: ("multiline" | "prop" | "shorthand");
|
|
11157
|
-
elementValuePattern?: (({
|
|
11560
|
+
anyOf: {
|
|
11561
|
+
elementNamePattern?: (({
|
|
11158
11562
|
pattern: string;
|
|
11159
11563
|
flags?: string;
|
|
11160
11564
|
} | string)[] | ({
|
|
11161
11565
|
pattern: string;
|
|
11162
11566
|
flags?: string;
|
|
11163
11567
|
} | string));
|
|
11164
|
-
|
|
11568
|
+
modifiers?: ("shorthand" | "multiline")[];
|
|
11569
|
+
selector?: "prop";
|
|
11570
|
+
elementValuePattern?: (({
|
|
11165
11571
|
pattern: string;
|
|
11166
11572
|
flags?: string;
|
|
11167
11573
|
} | string)[] | ({
|
|
@@ -11170,31 +11576,42 @@ type PerfectionistSortJsxProps = {
|
|
|
11170
11576
|
} | string));
|
|
11171
11577
|
}[];
|
|
11172
11578
|
} | {
|
|
11173
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11174
11579
|
fallbackSort?: {
|
|
11580
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11175
11581
|
order?: ("asc" | "desc");
|
|
11176
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11177
11582
|
};
|
|
11583
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11178
11584
|
groupName: string;
|
|
11585
|
+
newlinesInside?: ("ignore" | number);
|
|
11179
11586
|
order?: ("asc" | "desc");
|
|
11180
|
-
|
|
11181
|
-
modifiers?: ("shorthand" | "multiline")[];
|
|
11182
|
-
selector?: ("multiline" | "prop" | "shorthand");
|
|
11183
|
-
elementValuePattern?: (({
|
|
11587
|
+
elementNamePattern?: (({
|
|
11184
11588
|
pattern: string;
|
|
11185
11589
|
flags?: string;
|
|
11186
11590
|
} | string)[] | ({
|
|
11187
11591
|
pattern: string;
|
|
11188
11592
|
flags?: string;
|
|
11189
11593
|
} | string));
|
|
11190
|
-
|
|
11594
|
+
modifiers?: ("shorthand" | "multiline")[];
|
|
11595
|
+
selector?: "prop";
|
|
11596
|
+
elementValuePattern?: (({
|
|
11191
11597
|
pattern: string;
|
|
11192
11598
|
flags?: string;
|
|
11193
11599
|
} | string)[] | ({
|
|
11194
11600
|
pattern: string;
|
|
11195
11601
|
flags?: string;
|
|
11196
11602
|
} | string));
|
|
11197
|
-
})[]
|
|
11603
|
+
})[];
|
|
11604
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11605
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11606
|
+
newlinesBetween: ("ignore" | number);
|
|
11607
|
+
} | {
|
|
11608
|
+
group: (string | [string, ...(string)[]]);
|
|
11609
|
+
commentAbove?: string;
|
|
11610
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11611
|
+
newlinesInside?: ("ignore" | number);
|
|
11612
|
+
order?: ("asc" | "desc");
|
|
11613
|
+
})[];
|
|
11614
|
+
newlinesBetween?: ("ignore" | number);
|
|
11198
11615
|
useConfigurationIf?: {
|
|
11199
11616
|
allNamesMatchPattern?: (({
|
|
11200
11617
|
pattern: string;
|
|
@@ -11212,41 +11629,29 @@ type PerfectionistSortJsxProps = {
|
|
|
11212
11629
|
} | string));
|
|
11213
11630
|
};
|
|
11214
11631
|
partitionByNewLine?: boolean;
|
|
11215
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11216
|
-
ignorePattern?: (({
|
|
11217
|
-
pattern: string;
|
|
11218
|
-
flags?: string;
|
|
11219
|
-
} | string)[] | ({
|
|
11220
|
-
pattern: string;
|
|
11221
|
-
flags?: string;
|
|
11222
|
-
} | string));
|
|
11223
|
-
groups?: (string | string[] | {
|
|
11224
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11225
|
-
commentAbove?: string;
|
|
11226
|
-
})[];
|
|
11227
11632
|
}[];
|
|
11228
11633
|
// ----- perfectionist/sort-maps -----
|
|
11229
11634
|
type PerfectionistSortMaps = {
|
|
11230
11635
|
fallbackSort?: {
|
|
11636
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11231
11637
|
order?: ("asc" | "desc");
|
|
11232
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11233
11638
|
};
|
|
11639
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11234
11640
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11235
11641
|
ignoreCase?: boolean;
|
|
11236
11642
|
alphabet?: string;
|
|
11237
11643
|
locales?: (string | string[]);
|
|
11238
11644
|
order?: ("asc" | "desc");
|
|
11239
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11240
11645
|
customGroups?: ({
|
|
11241
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11242
11646
|
fallbackSort?: {
|
|
11647
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11243
11648
|
order?: ("asc" | "desc");
|
|
11244
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11245
11649
|
};
|
|
11650
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11246
11651
|
groupName: string;
|
|
11652
|
+
newlinesInside?: ("ignore" | number);
|
|
11247
11653
|
order?: ("asc" | "desc");
|
|
11248
|
-
|
|
11249
|
-
anyOf?: {
|
|
11654
|
+
anyOf: {
|
|
11250
11655
|
elementNamePattern?: (({
|
|
11251
11656
|
pattern: string;
|
|
11252
11657
|
flags?: string;
|
|
@@ -11256,14 +11661,14 @@ type PerfectionistSortMaps = {
|
|
|
11256
11661
|
} | string));
|
|
11257
11662
|
}[];
|
|
11258
11663
|
} | {
|
|
11259
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11260
11664
|
fallbackSort?: {
|
|
11665
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11261
11666
|
order?: ("asc" | "desc");
|
|
11262
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11263
11667
|
};
|
|
11668
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11264
11669
|
groupName: string;
|
|
11670
|
+
newlinesInside?: ("ignore" | number);
|
|
11265
11671
|
order?: ("asc" | "desc");
|
|
11266
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11267
11672
|
elementNamePattern?: (({
|
|
11268
11673
|
pattern: string;
|
|
11269
11674
|
flags?: string;
|
|
@@ -11272,6 +11677,17 @@ type PerfectionistSortMaps = {
|
|
|
11272
11677
|
flags?: string;
|
|
11273
11678
|
} | string));
|
|
11274
11679
|
})[];
|
|
11680
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11681
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11682
|
+
newlinesBetween: ("ignore" | number);
|
|
11683
|
+
} | {
|
|
11684
|
+
group: (string | [string, ...(string)[]]);
|
|
11685
|
+
commentAbove?: string;
|
|
11686
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11687
|
+
newlinesInside?: ("ignore" | number);
|
|
11688
|
+
order?: ("asc" | "desc");
|
|
11689
|
+
})[];
|
|
11690
|
+
newlinesBetween?: ("ignore" | number);
|
|
11275
11691
|
useConfigurationIf?: {
|
|
11276
11692
|
allNamesMatchPattern?: (({
|
|
11277
11693
|
pattern: string;
|
|
@@ -11304,44 +11720,39 @@ type PerfectionistSortMaps = {
|
|
|
11304
11720
|
} | string)));
|
|
11305
11721
|
});
|
|
11306
11722
|
partitionByNewLine?: boolean;
|
|
11307
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11308
|
-
groups?: (string | string[] | {
|
|
11309
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11310
|
-
commentAbove?: string;
|
|
11311
|
-
})[];
|
|
11312
11723
|
}[];
|
|
11313
11724
|
// ----- perfectionist/sort-modules -----
|
|
11314
11725
|
type PerfectionistSortModules = [] | [{
|
|
11315
11726
|
fallbackSort?: {
|
|
11727
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11316
11728
|
order?: ("asc" | "desc");
|
|
11317
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11318
11729
|
};
|
|
11730
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11319
11731
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11320
11732
|
ignoreCase?: boolean;
|
|
11321
11733
|
alphabet?: string;
|
|
11322
11734
|
locales?: (string | string[]);
|
|
11323
11735
|
order?: ("asc" | "desc");
|
|
11324
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11325
11736
|
customGroups?: ({
|
|
11326
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11327
11737
|
fallbackSort?: {
|
|
11738
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11328
11739
|
order?: ("asc" | "desc");
|
|
11329
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11330
11740
|
};
|
|
11741
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11331
11742
|
groupName: string;
|
|
11743
|
+
newlinesInside?: ("ignore" | number);
|
|
11332
11744
|
order?: ("asc" | "desc");
|
|
11333
|
-
|
|
11334
|
-
|
|
11335
|
-
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
11336
|
-
selector?: ("enum" | "function" | "interface" | "type" | "class");
|
|
11337
|
-
decoratorNamePattern?: (({
|
|
11745
|
+
anyOf: {
|
|
11746
|
+
elementNamePattern?: (({
|
|
11338
11747
|
pattern: string;
|
|
11339
11748
|
flags?: string;
|
|
11340
11749
|
} | string)[] | ({
|
|
11341
11750
|
pattern: string;
|
|
11342
11751
|
flags?: string;
|
|
11343
11752
|
} | string));
|
|
11344
|
-
|
|
11753
|
+
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
11754
|
+
selector?: ("enum" | "function" | "interface" | "type" | "class");
|
|
11755
|
+
decoratorNamePattern?: (({
|
|
11345
11756
|
pattern: string;
|
|
11346
11757
|
flags?: string;
|
|
11347
11758
|
} | string)[] | ({
|
|
@@ -11350,24 +11761,24 @@ type PerfectionistSortModules = [] | [{
|
|
|
11350
11761
|
} | string));
|
|
11351
11762
|
}[];
|
|
11352
11763
|
} | {
|
|
11353
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11354
11764
|
fallbackSort?: {
|
|
11765
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11355
11766
|
order?: ("asc" | "desc");
|
|
11356
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11357
11767
|
};
|
|
11768
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11358
11769
|
groupName: string;
|
|
11770
|
+
newlinesInside?: ("ignore" | number);
|
|
11359
11771
|
order?: ("asc" | "desc");
|
|
11360
|
-
|
|
11361
|
-
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
11362
|
-
selector?: ("enum" | "function" | "interface" | "type" | "class");
|
|
11363
|
-
decoratorNamePattern?: (({
|
|
11772
|
+
elementNamePattern?: (({
|
|
11364
11773
|
pattern: string;
|
|
11365
11774
|
flags?: string;
|
|
11366
11775
|
} | string)[] | ({
|
|
11367
11776
|
pattern: string;
|
|
11368
11777
|
flags?: string;
|
|
11369
11778
|
} | string));
|
|
11370
|
-
|
|
11779
|
+
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
11780
|
+
selector?: ("enum" | "function" | "interface" | "type" | "class");
|
|
11781
|
+
decoratorNamePattern?: (({
|
|
11371
11782
|
pattern: string;
|
|
11372
11783
|
flags?: string;
|
|
11373
11784
|
} | string)[] | ({
|
|
@@ -11375,6 +11786,17 @@ type PerfectionistSortModules = [] | [{
|
|
|
11375
11786
|
flags?: string;
|
|
11376
11787
|
} | string));
|
|
11377
11788
|
})[];
|
|
11789
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11790
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11791
|
+
newlinesBetween: ("ignore" | number);
|
|
11792
|
+
} | {
|
|
11793
|
+
group: (string | [string, ...(string)[]]);
|
|
11794
|
+
commentAbove?: string;
|
|
11795
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11796
|
+
newlinesInside?: ("ignore" | number);
|
|
11797
|
+
order?: ("asc" | "desc");
|
|
11798
|
+
})[];
|
|
11799
|
+
newlinesBetween?: ("ignore" | number);
|
|
11378
11800
|
partitionByComment?: (boolean | (({
|
|
11379
11801
|
pattern: string;
|
|
11380
11802
|
flags?: string;
|
|
@@ -11398,38 +11820,29 @@ type PerfectionistSortModules = [] | [{
|
|
|
11398
11820
|
} | string)));
|
|
11399
11821
|
});
|
|
11400
11822
|
partitionByNewLine?: boolean;
|
|
11401
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11402
|
-
groups?: (string | string[] | {
|
|
11403
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11404
|
-
commentAbove?: string;
|
|
11405
|
-
})[];
|
|
11406
11823
|
}];
|
|
11407
11824
|
// ----- perfectionist/sort-named-exports -----
|
|
11408
11825
|
type PerfectionistSortNamedExports = {
|
|
11409
11826
|
fallbackSort?: {
|
|
11827
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11410
11828
|
order?: ("asc" | "desc");
|
|
11411
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11412
11829
|
};
|
|
11830
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11413
11831
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11414
11832
|
ignoreCase?: boolean;
|
|
11415
11833
|
alphabet?: string;
|
|
11416
11834
|
locales?: (string | string[]);
|
|
11417
11835
|
order?: ("asc" | "desc");
|
|
11418
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11419
|
-
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
11420
|
-
ignoreAlias?: boolean;
|
|
11421
11836
|
customGroups?: ({
|
|
11422
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11423
11837
|
fallbackSort?: {
|
|
11838
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11424
11839
|
order?: ("asc" | "desc");
|
|
11425
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11426
11840
|
};
|
|
11841
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11427
11842
|
groupName: string;
|
|
11843
|
+
newlinesInside?: ("ignore" | number);
|
|
11428
11844
|
order?: ("asc" | "desc");
|
|
11429
|
-
|
|
11430
|
-
anyOf?: {
|
|
11431
|
-
modifiers?: ("value" | "type")[];
|
|
11432
|
-
selector?: "export";
|
|
11845
|
+
anyOf: {
|
|
11433
11846
|
elementNamePattern?: (({
|
|
11434
11847
|
pattern: string;
|
|
11435
11848
|
flags?: string;
|
|
@@ -11437,18 +11850,18 @@ type PerfectionistSortNamedExports = {
|
|
|
11437
11850
|
pattern: string;
|
|
11438
11851
|
flags?: string;
|
|
11439
11852
|
} | string));
|
|
11853
|
+
modifiers?: ("value" | "type")[];
|
|
11854
|
+
selector?: "export";
|
|
11440
11855
|
}[];
|
|
11441
11856
|
} | {
|
|
11442
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11443
11857
|
fallbackSort?: {
|
|
11858
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11444
11859
|
order?: ("asc" | "desc");
|
|
11445
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11446
11860
|
};
|
|
11861
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11447
11862
|
groupName: string;
|
|
11863
|
+
newlinesInside?: ("ignore" | number);
|
|
11448
11864
|
order?: ("asc" | "desc");
|
|
11449
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11450
|
-
modifiers?: ("value" | "type")[];
|
|
11451
|
-
selector?: "export";
|
|
11452
11865
|
elementNamePattern?: (({
|
|
11453
11866
|
pattern: string;
|
|
11454
11867
|
flags?: string;
|
|
@@ -11456,7 +11869,21 @@ type PerfectionistSortNamedExports = {
|
|
|
11456
11869
|
pattern: string;
|
|
11457
11870
|
flags?: string;
|
|
11458
11871
|
} | string));
|
|
11872
|
+
modifiers?: ("value" | "type")[];
|
|
11873
|
+
selector?: "export";
|
|
11874
|
+
})[];
|
|
11875
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11876
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11877
|
+
newlinesBetween: ("ignore" | number);
|
|
11878
|
+
} | {
|
|
11879
|
+
group: (string | [string, ...(string)[]]);
|
|
11880
|
+
commentAbove?: string;
|
|
11881
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11882
|
+
newlinesInside?: ("ignore" | number);
|
|
11883
|
+
order?: ("asc" | "desc");
|
|
11459
11884
|
})[];
|
|
11885
|
+
newlinesBetween?: ("ignore" | number);
|
|
11886
|
+
ignoreAlias?: boolean;
|
|
11460
11887
|
partitionByComment?: (boolean | (({
|
|
11461
11888
|
pattern: string;
|
|
11462
11889
|
flags?: string;
|
|
@@ -11480,38 +11907,29 @@ type PerfectionistSortNamedExports = {
|
|
|
11480
11907
|
} | string)));
|
|
11481
11908
|
});
|
|
11482
11909
|
partitionByNewLine?: boolean;
|
|
11483
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11484
|
-
groups?: (string | string[] | {
|
|
11485
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11486
|
-
commentAbove?: string;
|
|
11487
|
-
})[];
|
|
11488
11910
|
}[];
|
|
11489
11911
|
// ----- perfectionist/sort-named-imports -----
|
|
11490
11912
|
type PerfectionistSortNamedImports = {
|
|
11491
11913
|
fallbackSort?: {
|
|
11914
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11492
11915
|
order?: ("asc" | "desc");
|
|
11493
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11494
11916
|
};
|
|
11917
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11495
11918
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11496
11919
|
ignoreCase?: boolean;
|
|
11497
11920
|
alphabet?: string;
|
|
11498
11921
|
locales?: (string | string[]);
|
|
11499
11922
|
order?: ("asc" | "desc");
|
|
11500
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11501
|
-
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
11502
|
-
ignoreAlias?: boolean;
|
|
11503
11923
|
customGroups?: ({
|
|
11504
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11505
11924
|
fallbackSort?: {
|
|
11925
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11506
11926
|
order?: ("asc" | "desc");
|
|
11507
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11508
11927
|
};
|
|
11928
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11509
11929
|
groupName: string;
|
|
11930
|
+
newlinesInside?: ("ignore" | number);
|
|
11510
11931
|
order?: ("asc" | "desc");
|
|
11511
|
-
|
|
11512
|
-
anyOf?: {
|
|
11513
|
-
modifiers?: ("value" | "type")[];
|
|
11514
|
-
selector?: "import";
|
|
11932
|
+
anyOf: {
|
|
11515
11933
|
elementNamePattern?: (({
|
|
11516
11934
|
pattern: string;
|
|
11517
11935
|
flags?: string;
|
|
@@ -11519,18 +11937,18 @@ type PerfectionistSortNamedImports = {
|
|
|
11519
11937
|
pattern: string;
|
|
11520
11938
|
flags?: string;
|
|
11521
11939
|
} | string));
|
|
11940
|
+
modifiers?: ("value" | "type")[];
|
|
11941
|
+
selector?: "import";
|
|
11522
11942
|
}[];
|
|
11523
11943
|
} | {
|
|
11524
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11525
11944
|
fallbackSort?: {
|
|
11945
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11526
11946
|
order?: ("asc" | "desc");
|
|
11527
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11528
11947
|
};
|
|
11948
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11529
11949
|
groupName: string;
|
|
11950
|
+
newlinesInside?: ("ignore" | number);
|
|
11530
11951
|
order?: ("asc" | "desc");
|
|
11531
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11532
|
-
modifiers?: ("value" | "type")[];
|
|
11533
|
-
selector?: "import";
|
|
11534
11952
|
elementNamePattern?: (({
|
|
11535
11953
|
pattern: string;
|
|
11536
11954
|
flags?: string;
|
|
@@ -11538,7 +11956,21 @@ type PerfectionistSortNamedImports = {
|
|
|
11538
11956
|
pattern: string;
|
|
11539
11957
|
flags?: string;
|
|
11540
11958
|
} | string));
|
|
11959
|
+
modifiers?: ("value" | "type")[];
|
|
11960
|
+
selector?: "import";
|
|
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");
|
|
11541
11971
|
})[];
|
|
11972
|
+
newlinesBetween?: ("ignore" | number);
|
|
11973
|
+
ignoreAlias?: boolean;
|
|
11542
11974
|
partitionByComment?: (boolean | (({
|
|
11543
11975
|
pattern: string;
|
|
11544
11976
|
flags?: string;
|
|
@@ -11562,48 +11994,41 @@ type PerfectionistSortNamedImports = {
|
|
|
11562
11994
|
} | string)));
|
|
11563
11995
|
});
|
|
11564
11996
|
partitionByNewLine?: boolean;
|
|
11565
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11566
|
-
groups?: (string | string[] | {
|
|
11567
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11568
|
-
commentAbove?: string;
|
|
11569
|
-
})[];
|
|
11570
11997
|
}[];
|
|
11571
11998
|
// ----- perfectionist/sort-object-types -----
|
|
11572
11999
|
type PerfectionistSortObjectTypes = {
|
|
11573
12000
|
fallbackSort?: {
|
|
12001
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11574
12002
|
order?: ("asc" | "desc");
|
|
11575
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11576
12003
|
sortBy?: ("name" | "value");
|
|
11577
12004
|
};
|
|
12005
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11578
12006
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11579
12007
|
ignoreCase?: boolean;
|
|
11580
12008
|
alphabet?: string;
|
|
11581
12009
|
locales?: (string | string[]);
|
|
11582
12010
|
order?: ("asc" | "desc");
|
|
11583
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11584
12011
|
customGroups?: ({
|
|
11585
|
-
[k: string]: (string | string[]) | undefined;
|
|
11586
|
-
} | ({
|
|
11587
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11588
12012
|
fallbackSort?: {
|
|
12013
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11589
12014
|
order?: ("asc" | "desc");
|
|
11590
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11591
12015
|
sortBy?: ("name" | "value");
|
|
11592
12016
|
};
|
|
12017
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11593
12018
|
groupName: string;
|
|
12019
|
+
newlinesInside?: ("ignore" | number);
|
|
11594
12020
|
order?: ("asc" | "desc");
|
|
11595
|
-
|
|
11596
|
-
|
|
11597
|
-
modifiers?: ("optional" | "required" | "multiline")[];
|
|
11598
|
-
selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
|
|
11599
|
-
elementValuePattern?: (({
|
|
12021
|
+
anyOf: {
|
|
12022
|
+
elementNamePattern?: (({
|
|
11600
12023
|
pattern: string;
|
|
11601
12024
|
flags?: string;
|
|
11602
12025
|
} | string)[] | ({
|
|
11603
12026
|
pattern: string;
|
|
11604
12027
|
flags?: string;
|
|
11605
12028
|
} | string));
|
|
11606
|
-
|
|
12029
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
12030
|
+
selector?: ("index-signature" | "member" | "method" | "property");
|
|
12031
|
+
elementValuePattern?: (({
|
|
11607
12032
|
pattern: string;
|
|
11608
12033
|
flags?: string;
|
|
11609
12034
|
} | string)[] | ({
|
|
@@ -11613,25 +12038,25 @@ type PerfectionistSortObjectTypes = {
|
|
|
11613
12038
|
sortBy?: ("name" | "value");
|
|
11614
12039
|
}[];
|
|
11615
12040
|
} | {
|
|
11616
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11617
12041
|
fallbackSort?: {
|
|
12042
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11618
12043
|
order?: ("asc" | "desc");
|
|
11619
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11620
12044
|
sortBy?: ("name" | "value");
|
|
11621
12045
|
};
|
|
12046
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11622
12047
|
groupName: string;
|
|
12048
|
+
newlinesInside?: ("ignore" | number);
|
|
11623
12049
|
order?: ("asc" | "desc");
|
|
11624
|
-
|
|
11625
|
-
modifiers?: ("optional" | "required" | "multiline")[];
|
|
11626
|
-
selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
|
|
11627
|
-
elementValuePattern?: (({
|
|
12050
|
+
elementNamePattern?: (({
|
|
11628
12051
|
pattern: string;
|
|
11629
12052
|
flags?: string;
|
|
11630
12053
|
} | string)[] | ({
|
|
11631
12054
|
pattern: string;
|
|
11632
12055
|
flags?: string;
|
|
11633
12056
|
} | string));
|
|
11634
|
-
|
|
12057
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
12058
|
+
selector?: ("index-signature" | "member" | "method" | "property");
|
|
12059
|
+
elementValuePattern?: (({
|
|
11635
12060
|
pattern: string;
|
|
11636
12061
|
flags?: string;
|
|
11637
12062
|
} | string)[] | ({
|
|
@@ -11639,8 +12064,18 @@ type PerfectionistSortObjectTypes = {
|
|
|
11639
12064
|
flags?: string;
|
|
11640
12065
|
} | string));
|
|
11641
12066
|
sortBy?: ("name" | "value");
|
|
11642
|
-
})[]
|
|
11643
|
-
|
|
12067
|
+
})[];
|
|
12068
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12069
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
12070
|
+
newlinesBetween: ("ignore" | number);
|
|
12071
|
+
} | {
|
|
12072
|
+
group: (string | [string, ...(string)[]]);
|
|
12073
|
+
commentAbove?: string;
|
|
12074
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12075
|
+
newlinesInside?: ("ignore" | number);
|
|
12076
|
+
order?: ("asc" | "desc");
|
|
12077
|
+
})[];
|
|
12078
|
+
newlinesBetween?: ("ignore" | number);
|
|
11644
12079
|
useConfigurationIf?: {
|
|
11645
12080
|
allNamesMatchPattern?: (({
|
|
11646
12081
|
pattern: string;
|
|
@@ -11649,10 +12084,22 @@ type PerfectionistSortObjectTypes = {
|
|
|
11649
12084
|
pattern: string;
|
|
11650
12085
|
flags?: string;
|
|
11651
12086
|
} | string));
|
|
12087
|
+
hasNumericKeysOnly?: boolean;
|
|
12088
|
+
declarationCommentMatchesPattern?: (({
|
|
12089
|
+
scope?: ("shallow" | "deep");
|
|
12090
|
+
pattern: string;
|
|
12091
|
+
flags?: string;
|
|
12092
|
+
} | string)[] | ({
|
|
12093
|
+
scope?: ("shallow" | "deep");
|
|
12094
|
+
pattern: string;
|
|
12095
|
+
flags?: string;
|
|
12096
|
+
} | string));
|
|
11652
12097
|
declarationMatchesPattern?: (({
|
|
12098
|
+
scope?: ("shallow" | "deep");
|
|
11653
12099
|
pattern: string;
|
|
11654
12100
|
flags?: string;
|
|
11655
12101
|
} | string)[] | ({
|
|
12102
|
+
scope?: ("shallow" | "deep");
|
|
11656
12103
|
pattern: string;
|
|
11657
12104
|
flags?: string;
|
|
11658
12105
|
} | string));
|
|
@@ -11680,57 +12127,40 @@ type PerfectionistSortObjectTypes = {
|
|
|
11680
12127
|
} | string)));
|
|
11681
12128
|
});
|
|
11682
12129
|
partitionByNewLine?: boolean;
|
|
11683
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11684
|
-
ignorePattern?: (({
|
|
11685
|
-
pattern: string;
|
|
11686
|
-
flags?: string;
|
|
11687
|
-
} | string)[] | ({
|
|
11688
|
-
pattern: string;
|
|
11689
|
-
flags?: string;
|
|
11690
|
-
} | string));
|
|
11691
12130
|
sortBy?: ("name" | "value");
|
|
11692
|
-
groups?: (string | string[] | {
|
|
11693
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11694
|
-
commentAbove?: string;
|
|
11695
|
-
})[];
|
|
11696
12131
|
}[];
|
|
11697
12132
|
// ----- perfectionist/sort-objects -----
|
|
11698
12133
|
type PerfectionistSortObjects = {
|
|
11699
12134
|
fallbackSort?: {
|
|
12135
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11700
12136
|
order?: ("asc" | "desc");
|
|
11701
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11702
12137
|
};
|
|
12138
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11703
12139
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11704
12140
|
ignoreCase?: boolean;
|
|
11705
12141
|
alphabet?: string;
|
|
11706
12142
|
locales?: (string | string[]);
|
|
11707
12143
|
order?: ("asc" | "desc");
|
|
11708
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11709
|
-
destructuredObjects?: (boolean | {
|
|
11710
|
-
groups?: boolean;
|
|
11711
|
-
});
|
|
11712
12144
|
customGroups?: ({
|
|
11713
|
-
[k: string]: (string | string[]) | undefined;
|
|
11714
|
-
} | ({
|
|
11715
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11716
12145
|
fallbackSort?: {
|
|
12146
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11717
12147
|
order?: ("asc" | "desc");
|
|
11718
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11719
12148
|
};
|
|
12149
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11720
12150
|
groupName: string;
|
|
12151
|
+
newlinesInside?: ("ignore" | number);
|
|
11721
12152
|
order?: ("asc" | "desc");
|
|
11722
|
-
|
|
11723
|
-
|
|
11724
|
-
modifiers?: ("optional" | "required" | "multiline")[];
|
|
11725
|
-
selector?: ("member" | "method" | "multiline" | "property");
|
|
11726
|
-
elementValuePattern?: (({
|
|
12153
|
+
anyOf: {
|
|
12154
|
+
elementNamePattern?: (({
|
|
11727
12155
|
pattern: string;
|
|
11728
12156
|
flags?: string;
|
|
11729
12157
|
} | string)[] | ({
|
|
11730
12158
|
pattern: string;
|
|
11731
12159
|
flags?: string;
|
|
11732
12160
|
} | string));
|
|
11733
|
-
|
|
12161
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
12162
|
+
selector?: ("member" | "method" | "property");
|
|
12163
|
+
elementValuePattern?: (({
|
|
11734
12164
|
pattern: string;
|
|
11735
12165
|
flags?: string;
|
|
11736
12166
|
} | string)[] | ({
|
|
@@ -11739,31 +12169,42 @@ type PerfectionistSortObjects = {
|
|
|
11739
12169
|
} | string));
|
|
11740
12170
|
}[];
|
|
11741
12171
|
} | {
|
|
11742
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11743
12172
|
fallbackSort?: {
|
|
12173
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11744
12174
|
order?: ("asc" | "desc");
|
|
11745
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11746
12175
|
};
|
|
12176
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11747
12177
|
groupName: string;
|
|
12178
|
+
newlinesInside?: ("ignore" | number);
|
|
11748
12179
|
order?: ("asc" | "desc");
|
|
11749
|
-
|
|
11750
|
-
modifiers?: ("optional" | "required" | "multiline")[];
|
|
11751
|
-
selector?: ("member" | "method" | "multiline" | "property");
|
|
11752
|
-
elementValuePattern?: (({
|
|
12180
|
+
elementNamePattern?: (({
|
|
11753
12181
|
pattern: string;
|
|
11754
12182
|
flags?: string;
|
|
11755
12183
|
} | string)[] | ({
|
|
11756
12184
|
pattern: string;
|
|
11757
12185
|
flags?: string;
|
|
11758
12186
|
} | string));
|
|
11759
|
-
|
|
12187
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
12188
|
+
selector?: ("member" | "method" | "property");
|
|
12189
|
+
elementValuePattern?: (({
|
|
11760
12190
|
pattern: string;
|
|
11761
12191
|
flags?: string;
|
|
11762
12192
|
} | string)[] | ({
|
|
11763
12193
|
pattern: string;
|
|
11764
12194
|
flags?: string;
|
|
11765
12195
|
} | string));
|
|
11766
|
-
})[]
|
|
12196
|
+
})[];
|
|
12197
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12198
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
12199
|
+
newlinesBetween: ("ignore" | number);
|
|
12200
|
+
} | {
|
|
12201
|
+
group: (string | [string, ...(string)[]]);
|
|
12202
|
+
commentAbove?: string;
|
|
12203
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12204
|
+
newlinesInside?: ("ignore" | number);
|
|
12205
|
+
order?: ("asc" | "desc");
|
|
12206
|
+
})[];
|
|
12207
|
+
newlinesBetween?: ("ignore" | number);
|
|
11767
12208
|
useConfigurationIf?: {
|
|
11768
12209
|
allNamesMatchPattern?: (({
|
|
11769
12210
|
pattern: string;
|
|
@@ -11772,16 +12213,36 @@ type PerfectionistSortObjects = {
|
|
|
11772
12213
|
pattern: string;
|
|
11773
12214
|
flags?: string;
|
|
11774
12215
|
} | string));
|
|
12216
|
+
objectType?: ("destructured" | "non-destructured");
|
|
12217
|
+
hasNumericKeysOnly?: boolean;
|
|
12218
|
+
declarationCommentMatchesPattern?: (({
|
|
12219
|
+
scope?: ("shallow" | "deep");
|
|
12220
|
+
pattern: string;
|
|
12221
|
+
flags?: string;
|
|
12222
|
+
} | string)[] | ({
|
|
12223
|
+
scope?: ("shallow" | "deep");
|
|
12224
|
+
pattern: string;
|
|
12225
|
+
flags?: string;
|
|
12226
|
+
} | string));
|
|
11775
12227
|
callingFunctionNamePattern?: (({
|
|
12228
|
+
scope?: ("shallow" | "deep");
|
|
11776
12229
|
pattern: string;
|
|
11777
12230
|
flags?: string;
|
|
11778
12231
|
} | string)[] | ({
|
|
12232
|
+
scope?: ("shallow" | "deep");
|
|
12233
|
+
pattern: string;
|
|
12234
|
+
flags?: string;
|
|
12235
|
+
} | string));
|
|
12236
|
+
declarationMatchesPattern?: (({
|
|
12237
|
+
scope?: ("shallow" | "deep");
|
|
12238
|
+
pattern: string;
|
|
12239
|
+
flags?: string;
|
|
12240
|
+
} | string)[] | ({
|
|
12241
|
+
scope?: ("shallow" | "deep");
|
|
11779
12242
|
pattern: string;
|
|
11780
12243
|
flags?: string;
|
|
11781
12244
|
} | string));
|
|
11782
12245
|
};
|
|
11783
|
-
destructureOnly?: boolean;
|
|
11784
|
-
objectDeclarations?: boolean;
|
|
11785
12246
|
styledComponents?: boolean;
|
|
11786
12247
|
partitionByComment?: (boolean | (({
|
|
11787
12248
|
pattern: string;
|
|
@@ -11806,43 +12267,29 @@ type PerfectionistSortObjects = {
|
|
|
11806
12267
|
} | string)));
|
|
11807
12268
|
});
|
|
11808
12269
|
partitionByNewLine?: boolean;
|
|
11809
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11810
|
-
ignorePattern?: (({
|
|
11811
|
-
pattern: string;
|
|
11812
|
-
flags?: string;
|
|
11813
|
-
} | string)[] | ({
|
|
11814
|
-
pattern: string;
|
|
11815
|
-
flags?: string;
|
|
11816
|
-
} | string));
|
|
11817
|
-
groups?: (string | string[] | {
|
|
11818
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11819
|
-
commentAbove?: string;
|
|
11820
|
-
})[];
|
|
11821
12270
|
}[];
|
|
11822
12271
|
// ----- perfectionist/sort-sets -----
|
|
11823
12272
|
type PerfectionistSortSets = {
|
|
11824
12273
|
fallbackSort?: {
|
|
12274
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11825
12275
|
order?: ("asc" | "desc");
|
|
11826
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11827
12276
|
};
|
|
12277
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11828
12278
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11829
12279
|
ignoreCase?: boolean;
|
|
11830
12280
|
alphabet?: string;
|
|
11831
12281
|
locales?: (string | string[]);
|
|
11832
12282
|
order?: ("asc" | "desc");
|
|
11833
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11834
|
-
groupKind?: ("mixed" | "literals-first" | "spreads-first");
|
|
11835
12283
|
customGroups?: ({
|
|
11836
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11837
12284
|
fallbackSort?: {
|
|
12285
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11838
12286
|
order?: ("asc" | "desc");
|
|
11839
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11840
12287
|
};
|
|
12288
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11841
12289
|
groupName: string;
|
|
12290
|
+
newlinesInside?: ("ignore" | number);
|
|
11842
12291
|
order?: ("asc" | "desc");
|
|
11843
|
-
|
|
11844
|
-
anyOf?: {
|
|
11845
|
-
selector?: ("literal" | "spread");
|
|
12292
|
+
anyOf: {
|
|
11846
12293
|
elementNamePattern?: (({
|
|
11847
12294
|
pattern: string;
|
|
11848
12295
|
flags?: string;
|
|
@@ -11850,17 +12297,17 @@ type PerfectionistSortSets = {
|
|
|
11850
12297
|
pattern: string;
|
|
11851
12298
|
flags?: string;
|
|
11852
12299
|
} | string));
|
|
12300
|
+
selector?: ("literal" | "spread");
|
|
11853
12301
|
}[];
|
|
11854
12302
|
} | {
|
|
11855
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11856
12303
|
fallbackSort?: {
|
|
12304
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11857
12305
|
order?: ("asc" | "desc");
|
|
11858
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11859
12306
|
};
|
|
12307
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11860
12308
|
groupName: string;
|
|
12309
|
+
newlinesInside?: ("ignore" | number);
|
|
11861
12310
|
order?: ("asc" | "desc");
|
|
11862
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11863
|
-
selector?: ("literal" | "spread");
|
|
11864
12311
|
elementNamePattern?: (({
|
|
11865
12312
|
pattern: string;
|
|
11866
12313
|
flags?: string;
|
|
@@ -11868,7 +12315,19 @@ type PerfectionistSortSets = {
|
|
|
11868
12315
|
pattern: string;
|
|
11869
12316
|
flags?: string;
|
|
11870
12317
|
} | string));
|
|
12318
|
+
selector?: ("literal" | "spread");
|
|
12319
|
+
})[];
|
|
12320
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12321
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
12322
|
+
newlinesBetween: ("ignore" | number);
|
|
12323
|
+
} | {
|
|
12324
|
+
group: (string | [string, ...(string)[]]);
|
|
12325
|
+
commentAbove?: string;
|
|
12326
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12327
|
+
newlinesInside?: ("ignore" | number);
|
|
12328
|
+
order?: ("asc" | "desc");
|
|
11871
12329
|
})[];
|
|
12330
|
+
newlinesBetween?: ("ignore" | number);
|
|
11872
12331
|
useConfigurationIf?: {
|
|
11873
12332
|
allNamesMatchPattern?: (({
|
|
11874
12333
|
pattern: string;
|
|
@@ -11901,48 +12360,42 @@ type PerfectionistSortSets = {
|
|
|
11901
12360
|
} | string)));
|
|
11902
12361
|
});
|
|
11903
12362
|
partitionByNewLine?: boolean;
|
|
11904
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11905
|
-
groups?: (string | string[] | {
|
|
11906
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11907
|
-
commentAbove?: string;
|
|
11908
|
-
})[];
|
|
11909
12363
|
}[];
|
|
11910
12364
|
// ----- perfectionist/sort-switch-case -----
|
|
11911
12365
|
type PerfectionistSortSwitchCase = [] | [{
|
|
11912
12366
|
fallbackSort?: {
|
|
12367
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11913
12368
|
order?: ("asc" | "desc");
|
|
11914
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11915
12369
|
};
|
|
12370
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11916
12371
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11917
12372
|
ignoreCase?: boolean;
|
|
11918
12373
|
alphabet?: string;
|
|
11919
12374
|
locales?: (string | string[]);
|
|
11920
12375
|
order?: ("asc" | "desc");
|
|
11921
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11922
12376
|
}];
|
|
11923
12377
|
// ----- perfectionist/sort-union-types -----
|
|
11924
12378
|
type PerfectionistSortUnionTypes = {
|
|
11925
12379
|
fallbackSort?: {
|
|
12380
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11926
12381
|
order?: ("asc" | "desc");
|
|
11927
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11928
12382
|
};
|
|
12383
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11929
12384
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11930
12385
|
ignoreCase?: boolean;
|
|
11931
12386
|
alphabet?: string;
|
|
11932
12387
|
locales?: (string | string[]);
|
|
11933
12388
|
order?: ("asc" | "desc");
|
|
11934
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11935
12389
|
customGroups?: ({
|
|
11936
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11937
12390
|
fallbackSort?: {
|
|
12391
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11938
12392
|
order?: ("asc" | "desc");
|
|
11939
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11940
12393
|
};
|
|
12394
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11941
12395
|
groupName: string;
|
|
12396
|
+
newlinesInside?: ("ignore" | number);
|
|
11942
12397
|
order?: ("asc" | "desc");
|
|
11943
|
-
|
|
11944
|
-
anyOf?: {
|
|
11945
|
-
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
12398
|
+
anyOf: {
|
|
11946
12399
|
elementNamePattern?: (({
|
|
11947
12400
|
pattern: string;
|
|
11948
12401
|
flags?: string;
|
|
@@ -11950,17 +12403,17 @@ type PerfectionistSortUnionTypes = {
|
|
|
11950
12403
|
pattern: string;
|
|
11951
12404
|
flags?: string;
|
|
11952
12405
|
} | string));
|
|
12406
|
+
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
11953
12407
|
}[];
|
|
11954
12408
|
} | {
|
|
11955
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11956
12409
|
fallbackSort?: {
|
|
12410
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11957
12411
|
order?: ("asc" | "desc");
|
|
11958
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11959
12412
|
};
|
|
12413
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11960
12414
|
groupName: string;
|
|
12415
|
+
newlinesInside?: ("ignore" | number);
|
|
11961
12416
|
order?: ("asc" | "desc");
|
|
11962
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11963
|
-
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
11964
12417
|
elementNamePattern?: (({
|
|
11965
12418
|
pattern: string;
|
|
11966
12419
|
flags?: string;
|
|
@@ -11968,7 +12421,19 @@ type PerfectionistSortUnionTypes = {
|
|
|
11968
12421
|
pattern: string;
|
|
11969
12422
|
flags?: string;
|
|
11970
12423
|
} | string));
|
|
12424
|
+
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
12425
|
+
})[];
|
|
12426
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12427
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
12428
|
+
newlinesBetween: ("ignore" | number);
|
|
12429
|
+
} | {
|
|
12430
|
+
group: (string | [string, ...(string)[]]);
|
|
12431
|
+
commentAbove?: string;
|
|
12432
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12433
|
+
newlinesInside?: ("ignore" | number);
|
|
12434
|
+
order?: ("asc" | "desc");
|
|
11971
12435
|
})[];
|
|
12436
|
+
newlinesBetween?: ("ignore" | number);
|
|
11972
12437
|
partitionByComment?: (boolean | (({
|
|
11973
12438
|
pattern: string;
|
|
11974
12439
|
flags?: string;
|
|
@@ -11992,35 +12457,29 @@ type PerfectionistSortUnionTypes = {
|
|
|
11992
12457
|
} | string)));
|
|
11993
12458
|
});
|
|
11994
12459
|
partitionByNewLine?: boolean;
|
|
11995
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11996
|
-
groups?: (string | string[] | {
|
|
11997
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11998
|
-
commentAbove?: string;
|
|
11999
|
-
})[];
|
|
12000
12460
|
}[];
|
|
12001
12461
|
// ----- perfectionist/sort-variable-declarations -----
|
|
12002
12462
|
type PerfectionistSortVariableDeclarations = [] | [{
|
|
12003
12463
|
fallbackSort?: {
|
|
12464
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12004
12465
|
order?: ("asc" | "desc");
|
|
12005
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12006
12466
|
};
|
|
12467
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12007
12468
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12008
12469
|
ignoreCase?: boolean;
|
|
12009
12470
|
alphabet?: string;
|
|
12010
12471
|
locales?: (string | string[]);
|
|
12011
12472
|
order?: ("asc" | "desc");
|
|
12012
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12013
12473
|
customGroups?: ({
|
|
12014
|
-
newlinesInside?: (("always" | "never") | number);
|
|
12015
12474
|
fallbackSort?: {
|
|
12475
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12016
12476
|
order?: ("asc" | "desc");
|
|
12017
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12018
12477
|
};
|
|
12478
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12019
12479
|
groupName: string;
|
|
12480
|
+
newlinesInside?: ("ignore" | number);
|
|
12020
12481
|
order?: ("asc" | "desc");
|
|
12021
|
-
|
|
12022
|
-
anyOf?: {
|
|
12023
|
-
selector?: ("initialized" | "uninitialized");
|
|
12482
|
+
anyOf: {
|
|
12024
12483
|
elementNamePattern?: (({
|
|
12025
12484
|
pattern: string;
|
|
12026
12485
|
flags?: string;
|
|
@@ -12028,17 +12487,17 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
12028
12487
|
pattern: string;
|
|
12029
12488
|
flags?: string;
|
|
12030
12489
|
} | string));
|
|
12490
|
+
selector?: ("initialized" | "uninitialized");
|
|
12031
12491
|
}[];
|
|
12032
12492
|
} | {
|
|
12033
|
-
newlinesInside?: (("always" | "never") | number);
|
|
12034
12493
|
fallbackSort?: {
|
|
12494
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12035
12495
|
order?: ("asc" | "desc");
|
|
12036
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12037
12496
|
};
|
|
12497
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12038
12498
|
groupName: string;
|
|
12499
|
+
newlinesInside?: ("ignore" | number);
|
|
12039
12500
|
order?: ("asc" | "desc");
|
|
12040
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12041
|
-
selector?: ("initialized" | "uninitialized");
|
|
12042
12501
|
elementNamePattern?: (({
|
|
12043
12502
|
pattern: string;
|
|
12044
12503
|
flags?: string;
|
|
@@ -12046,7 +12505,19 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
12046
12505
|
pattern: string;
|
|
12047
12506
|
flags?: string;
|
|
12048
12507
|
} | string));
|
|
12508
|
+
selector?: ("initialized" | "uninitialized");
|
|
12509
|
+
})[];
|
|
12510
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12511
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
12512
|
+
newlinesBetween: ("ignore" | number);
|
|
12513
|
+
} | {
|
|
12514
|
+
group: (string | [string, ...(string)[]]);
|
|
12515
|
+
commentAbove?: string;
|
|
12516
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12517
|
+
newlinesInside?: ("ignore" | number);
|
|
12518
|
+
order?: ("asc" | "desc");
|
|
12049
12519
|
})[];
|
|
12520
|
+
newlinesBetween?: ("ignore" | number);
|
|
12050
12521
|
partitionByComment?: (boolean | (({
|
|
12051
12522
|
pattern: string;
|
|
12052
12523
|
flags?: string;
|
|
@@ -12070,11 +12541,6 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
12070
12541
|
} | string)));
|
|
12071
12542
|
});
|
|
12072
12543
|
partitionByNewLine?: boolean;
|
|
12073
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12074
|
-
groups?: (string | string[] | {
|
|
12075
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12076
|
-
commentAbove?: string;
|
|
12077
|
-
})[];
|
|
12078
12544
|
}];
|
|
12079
12545
|
// ----- playwright/expect-expect -----
|
|
12080
12546
|
type PlaywrightExpectExpect = [] | [{
|
|
@@ -12437,6 +12903,10 @@ type VitestPreferExpectAssertions = [] | [{
|
|
|
12437
12903
|
onlyFunctionsWithExpectInLoop?: boolean;
|
|
12438
12904
|
onlyFunctionsWithExpectInCallback?: boolean;
|
|
12439
12905
|
}];
|
|
12906
|
+
// ----- vitest/prefer-import-in-mock -----
|
|
12907
|
+
type VitestPreferImportInMock = [] | [{
|
|
12908
|
+
fixable?: boolean;
|
|
12909
|
+
}];
|
|
12440
12910
|
// ----- vitest/prefer-lowercase-title -----
|
|
12441
12911
|
type VitestPreferLowercaseTitle = [] | [{
|
|
12442
12912
|
ignore?: ("describe" | "test" | "it")[];
|
|
@@ -13817,5 +14287,30 @@ type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
|
|
|
13817
14287
|
exceptRange?: boolean;
|
|
13818
14288
|
onlyEquality?: boolean;
|
|
13819
14289
|
}];
|
|
14290
|
+
// ----- zod-x/array-style -----
|
|
14291
|
+
type ZodXArrayStyle = [] | [{
|
|
14292
|
+
style?: ("function" | "method");
|
|
14293
|
+
}];
|
|
14294
|
+
// ----- zod-x/consistent-import-source -----
|
|
14295
|
+
type ZodXConsistentImportSource = [] | [{
|
|
14296
|
+
sources?: [("zod" | "zod/mini" | "zod/v4" | "zod/v4-mini" | "zod/v3"), ...(("zod" | "zod/mini" | "zod/v4" | "zod/v4-mini" | "zod/v3"))[]];
|
|
14297
|
+
}];
|
|
14298
|
+
// ----- zod-x/consistent-object-schema-type -----
|
|
14299
|
+
type ZodXConsistentObjectSchemaType = [] | [{
|
|
14300
|
+
allow?: [("object" | "looseObject" | "strictObject"), ...(("object" | "looseObject" | "strictObject"))[]];
|
|
14301
|
+
}];
|
|
14302
|
+
// ----- zod-x/no-optional-and-default-together -----
|
|
14303
|
+
type ZodXNoOptionalAndDefaultTogether = [] | [{
|
|
14304
|
+
preferredMethod?: ("none" | "default" | "optional");
|
|
14305
|
+
}];
|
|
14306
|
+
// ----- zod-x/require-schema-suffix -----
|
|
14307
|
+
type ZodXRequireSchemaSuffix = [] | [{
|
|
14308
|
+
suffix?: string;
|
|
14309
|
+
}];
|
|
14310
|
+
// ----- zod-x/schema-error-property-style -----
|
|
14311
|
+
type ZodXSchemaErrorPropertyStyle = [] | [{
|
|
14312
|
+
selector?: string;
|
|
14313
|
+
example?: string;
|
|
14314
|
+
}];
|
|
13820
14315
|
//#endregion
|
|
13821
14316
|
export { ESLintSchema };
|