@jsse/eslint-config 0.4.25 → 0.4.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/{chunk-bekqDN86.js → chunk-VnP9fmST.js} +2 -2
- package/dist/cli.js +3 -3
- package/dist/index.d.ts +1220 -454
- package/dist/index.js +1077 -460
- package/dist/{version-B9ymZQwv.js → version-UD6aSD5j.js} +1 -1
- package/package.json +18 -18
package/dist/index.d.ts
CHANGED
|
@@ -3252,6 +3252,11 @@ interface ImportsRuleOptions {
|
|
|
3252
3252
|
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/consistent-type-specifier-style/README.md
|
|
3253
3253
|
*/
|
|
3254
3254
|
"import/consistent-type-specifier-style"?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle$1>;
|
|
3255
|
+
/**
|
|
3256
|
+
* Ensure all exports appear after other statements.
|
|
3257
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/exports-last/README.md
|
|
3258
|
+
*/
|
|
3259
|
+
"import/exports-last"?: Linter.RuleEntry<[]>;
|
|
3255
3260
|
/**
|
|
3256
3261
|
* Ensure all imports appear before other statements.
|
|
3257
3262
|
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/first/README.md
|
|
@@ -3282,6 +3287,11 @@ interface ImportsRuleOptions {
|
|
|
3282
3287
|
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/no-named-default/README.md
|
|
3283
3288
|
*/
|
|
3284
3289
|
"import/no-named-default"?: Linter.RuleEntry<[]>;
|
|
3290
|
+
/**
|
|
3291
|
+
* Prefer a default export if module exports a single name or multiple names.
|
|
3292
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/prefer-default-export/README.md
|
|
3293
|
+
*/
|
|
3294
|
+
"import/prefer-default-export"?: Linter.RuleEntry<ImportPreferDefaultExport$1>;
|
|
3285
3295
|
}
|
|
3286
3296
|
/* ======= Declarations ======= */
|
|
3287
3297
|
// ----- import/consistent-type-specifier-style -----
|
|
@@ -3298,6 +3308,10 @@ type ImportNewlineAfterImport$1 = [] | [{
|
|
|
3298
3308
|
type ImportNoDuplicates$1 = [] | [{
|
|
3299
3309
|
"prefer-inline"?: boolean;
|
|
3300
3310
|
}];
|
|
3311
|
+
// ----- import/prefer-default-export -----
|
|
3312
|
+
type ImportPreferDefaultExport$1 = [] | [{
|
|
3313
|
+
target?: "single" | "any";
|
|
3314
|
+
}];
|
|
3301
3315
|
//#endregion
|
|
3302
3316
|
//#region src/generated/dts/javascript.d.ts
|
|
3303
3317
|
interface JavascriptRuleOptions {
|
|
@@ -3320,6 +3334,9 @@ type UnusedImportsNoUnusedImports = [] | [("all" | "local") | {
|
|
|
3320
3334
|
caughtErrors?: "all" | "none";
|
|
3321
3335
|
caughtErrorsIgnorePattern?: string;
|
|
3322
3336
|
destructuredArrayIgnorePattern?: string;
|
|
3337
|
+
enableAutofixRemoval?: {
|
|
3338
|
+
imports?: boolean;
|
|
3339
|
+
};
|
|
3323
3340
|
ignoreClassWithStaticInitBlock?: boolean;
|
|
3324
3341
|
ignoreRestSiblings?: boolean;
|
|
3325
3342
|
ignoreUsingDeclarations?: boolean;
|
|
@@ -3334,6 +3351,9 @@ type UnusedImportsNoUnusedVars = [] | [("all" | "local") | {
|
|
|
3334
3351
|
caughtErrors?: "all" | "none";
|
|
3335
3352
|
caughtErrorsIgnorePattern?: string;
|
|
3336
3353
|
destructuredArrayIgnorePattern?: string;
|
|
3354
|
+
enableAutofixRemoval?: {
|
|
3355
|
+
imports?: boolean;
|
|
3356
|
+
};
|
|
3337
3357
|
ignoreClassWithStaticInitBlock?: boolean;
|
|
3338
3358
|
ignoreRestSiblings?: boolean;
|
|
3339
3359
|
ignoreUsingDeclarations?: boolean;
|
|
@@ -4018,6 +4038,7 @@ type JsdocRequireHyphenBeforeParamDescription = [] | ["always" | "never"] | ["al
|
|
|
4018
4038
|
}];
|
|
4019
4039
|
// ----- jsdoc/require-jsdoc -----
|
|
4020
4040
|
type JsdocRequireJsdoc = [] | [{
|
|
4041
|
+
checkAllFunctionExpressions?: boolean;
|
|
4021
4042
|
checkConstructors?: boolean;
|
|
4022
4043
|
checkGetters?: boolean | "no-setter";
|
|
4023
4044
|
checkSetters?: boolean | "no-getter";
|
|
@@ -5439,6 +5460,11 @@ interface PerfectionistRuleOptions {
|
|
|
5439
5460
|
* @see https://perfectionist.dev/rules/sort-enums
|
|
5440
5461
|
*/
|
|
5441
5462
|
"perfectionist/sort-enums"?: Linter.RuleEntry<PerfectionistSortEnums>;
|
|
5463
|
+
/**
|
|
5464
|
+
* Enforce sorted export attributes.
|
|
5465
|
+
* @see https://perfectionist.dev/rules/sort-export-attributes
|
|
5466
|
+
*/
|
|
5467
|
+
"perfectionist/sort-export-attributes"?: Linter.RuleEntry<PerfectionistSortExportAttributes>;
|
|
5442
5468
|
/**
|
|
5443
5469
|
* Enforce sorted exports.
|
|
5444
5470
|
* @see https://perfectionist.dev/rules/sort-exports
|
|
@@ -5449,6 +5475,11 @@ interface PerfectionistRuleOptions {
|
|
|
5449
5475
|
* @see https://perfectionist.dev/rules/sort-heritage-clauses
|
|
5450
5476
|
*/
|
|
5451
5477
|
"perfectionist/sort-heritage-clauses"?: Linter.RuleEntry<PerfectionistSortHeritageClauses>;
|
|
5478
|
+
/**
|
|
5479
|
+
* Enforce sorted import attributes.
|
|
5480
|
+
* @see https://perfectionist.dev/rules/sort-import-attributes
|
|
5481
|
+
*/
|
|
5482
|
+
"perfectionist/sort-import-attributes"?: Linter.RuleEntry<PerfectionistSortImportAttributes>;
|
|
5452
5483
|
/**
|
|
5453
5484
|
* Enforce sorted imports.
|
|
5454
5485
|
* @see https://perfectionist.dev/rules/sort-imports
|
|
@@ -5524,27 +5555,34 @@ interface PerfectionistRuleOptions {
|
|
|
5524
5555
|
// ----- perfectionist/sort-array-includes -----
|
|
5525
5556
|
type PerfectionistSortArrayIncludes = {
|
|
5526
5557
|
fallbackSort?: {
|
|
5558
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5527
5559
|
order?: "asc" | "desc";
|
|
5528
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5529
5560
|
};
|
|
5561
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5530
5562
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
5531
5563
|
ignoreCase?: boolean;
|
|
5532
5564
|
alphabet?: string;
|
|
5533
5565
|
locales?: string | string[];
|
|
5534
5566
|
order?: "asc" | "desc";
|
|
5535
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5536
|
-
groupKind?: "mixed" | "literals-first" | "spreads-first";
|
|
5537
5567
|
customGroups?: ({
|
|
5538
|
-
newlinesInside?: ("always" | "never") | number;
|
|
5539
5568
|
fallbackSort?: {
|
|
5569
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5540
5570
|
order?: "asc" | "desc";
|
|
5541
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5542
5571
|
};
|
|
5572
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5543
5573
|
groupName: string;
|
|
5574
|
+
newlinesInside?: "ignore" | number;
|
|
5544
5575
|
order?: "asc" | "desc";
|
|
5545
|
-
|
|
5546
|
-
|
|
5576
|
+
anyOf: [{
|
|
5577
|
+
elementNamePattern?: ({
|
|
5578
|
+
pattern: string;
|
|
5579
|
+
flags?: string;
|
|
5580
|
+
} | string)[] | ({
|
|
5581
|
+
pattern: string;
|
|
5582
|
+
flags?: string;
|
|
5583
|
+
} | string);
|
|
5547
5584
|
selector?: "literal" | "spread";
|
|
5585
|
+
}, ...{
|
|
5548
5586
|
elementNamePattern?: ({
|
|
5549
5587
|
pattern: string;
|
|
5550
5588
|
flags?: string;
|
|
@@ -5552,17 +5590,17 @@ type PerfectionistSortArrayIncludes = {
|
|
|
5552
5590
|
pattern: string;
|
|
5553
5591
|
flags?: string;
|
|
5554
5592
|
} | string);
|
|
5555
|
-
|
|
5593
|
+
selector?: "literal" | "spread";
|
|
5594
|
+
}[]];
|
|
5556
5595
|
} | {
|
|
5557
|
-
newlinesInside?: ("always" | "never") | number;
|
|
5558
5596
|
fallbackSort?: {
|
|
5597
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5559
5598
|
order?: "asc" | "desc";
|
|
5560
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5561
5599
|
};
|
|
5600
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5562
5601
|
groupName: string;
|
|
5602
|
+
newlinesInside?: "ignore" | number;
|
|
5563
5603
|
order?: "asc" | "desc";
|
|
5564
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5565
|
-
selector?: "literal" | "spread";
|
|
5566
5604
|
elementNamePattern?: ({
|
|
5567
5605
|
pattern: string;
|
|
5568
5606
|
flags?: string;
|
|
@@ -5570,7 +5608,23 @@ type PerfectionistSortArrayIncludes = {
|
|
|
5570
5608
|
pattern: string;
|
|
5571
5609
|
flags?: string;
|
|
5572
5610
|
} | string);
|
|
5611
|
+
selector?: "literal" | "spread";
|
|
5612
|
+
})[];
|
|
5613
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
5614
|
+
groups?: (string | [string, ...string[]] | {
|
|
5615
|
+
newlinesBetween: "ignore" | number;
|
|
5616
|
+
} | {
|
|
5617
|
+
group: string | [string, ...string[]];
|
|
5618
|
+
fallbackSort?: {
|
|
5619
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5620
|
+
order?: "asc" | "desc";
|
|
5621
|
+
};
|
|
5622
|
+
commentAbove?: string;
|
|
5623
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5624
|
+
newlinesInside?: "ignore" | number;
|
|
5625
|
+
order?: "asc" | "desc";
|
|
5573
5626
|
})[];
|
|
5627
|
+
newlinesBetween?: "ignore" | number;
|
|
5574
5628
|
useConfigurationIf?: {
|
|
5575
5629
|
allNamesMatchPattern?: ({
|
|
5576
5630
|
pattern: string;
|
|
@@ -5603,34 +5657,36 @@ type PerfectionistSortArrayIncludes = {
|
|
|
5603
5657
|
} | string));
|
|
5604
5658
|
};
|
|
5605
5659
|
partitionByNewLine?: boolean;
|
|
5606
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
5607
|
-
groups?: (string | string[] | {
|
|
5608
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
5609
|
-
commentAbove?: string;
|
|
5610
|
-
})[];
|
|
5611
5660
|
}[];
|
|
5612
5661
|
// ----- perfectionist/sort-classes -----
|
|
5613
5662
|
type PerfectionistSortClasses = [] | [{
|
|
5614
5663
|
fallbackSort?: {
|
|
5664
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5615
5665
|
order?: "asc" | "desc";
|
|
5616
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5617
5666
|
};
|
|
5667
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5618
5668
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
5619
5669
|
ignoreCase?: boolean;
|
|
5620
5670
|
alphabet?: string;
|
|
5621
5671
|
locales?: string | string[];
|
|
5622
5672
|
order?: "asc" | "desc";
|
|
5623
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5624
5673
|
customGroups?: ({
|
|
5625
|
-
newlinesInside?: ("always" | "never") | number;
|
|
5626
5674
|
fallbackSort?: {
|
|
5675
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5627
5676
|
order?: "asc" | "desc";
|
|
5628
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5629
5677
|
};
|
|
5678
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5630
5679
|
groupName: string;
|
|
5680
|
+
newlinesInside?: "ignore" | number;
|
|
5631
5681
|
order?: "asc" | "desc";
|
|
5632
|
-
|
|
5633
|
-
|
|
5682
|
+
anyOf: [{
|
|
5683
|
+
elementNamePattern?: ({
|
|
5684
|
+
pattern: string;
|
|
5685
|
+
flags?: string;
|
|
5686
|
+
} | string)[] | ({
|
|
5687
|
+
pattern: string;
|
|
5688
|
+
flags?: string;
|
|
5689
|
+
} | string);
|
|
5634
5690
|
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
5635
5691
|
selector?: "accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method";
|
|
5636
5692
|
decoratorNamePattern?: ({
|
|
@@ -5647,6 +5703,7 @@ type PerfectionistSortClasses = [] | [{
|
|
|
5647
5703
|
pattern: string;
|
|
5648
5704
|
flags?: string;
|
|
5649
5705
|
} | string);
|
|
5706
|
+
}, ...{
|
|
5650
5707
|
elementNamePattern?: ({
|
|
5651
5708
|
pattern: string;
|
|
5652
5709
|
flags?: string;
|
|
@@ -5654,33 +5711,49 @@ type PerfectionistSortClasses = [] | [{
|
|
|
5654
5711
|
pattern: string;
|
|
5655
5712
|
flags?: string;
|
|
5656
5713
|
} | string);
|
|
5657
|
-
|
|
5714
|
+
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
5715
|
+
selector?: "accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method";
|
|
5716
|
+
decoratorNamePattern?: ({
|
|
5717
|
+
pattern: string;
|
|
5718
|
+
flags?: string;
|
|
5719
|
+
} | string)[] | ({
|
|
5720
|
+
pattern: string;
|
|
5721
|
+
flags?: string;
|
|
5722
|
+
} | string);
|
|
5723
|
+
elementValuePattern?: ({
|
|
5724
|
+
pattern: string;
|
|
5725
|
+
flags?: string;
|
|
5726
|
+
} | string)[] | ({
|
|
5727
|
+
pattern: string;
|
|
5728
|
+
flags?: string;
|
|
5729
|
+
} | string);
|
|
5730
|
+
}[]];
|
|
5658
5731
|
} | {
|
|
5659
|
-
newlinesInside?: ("always" | "never") | number;
|
|
5660
5732
|
fallbackSort?: {
|
|
5733
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5661
5734
|
order?: "asc" | "desc";
|
|
5662
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5663
5735
|
};
|
|
5736
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5664
5737
|
groupName: string;
|
|
5738
|
+
newlinesInside?: "ignore" | number;
|
|
5665
5739
|
order?: "asc" | "desc";
|
|
5666
|
-
|
|
5667
|
-
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
5668
|
-
selector?: "accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method";
|
|
5669
|
-
decoratorNamePattern?: ({
|
|
5740
|
+
elementNamePattern?: ({
|
|
5670
5741
|
pattern: string;
|
|
5671
5742
|
flags?: string;
|
|
5672
5743
|
} | string)[] | ({
|
|
5673
5744
|
pattern: string;
|
|
5674
5745
|
flags?: string;
|
|
5675
5746
|
} | string);
|
|
5676
|
-
|
|
5747
|
+
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
5748
|
+
selector?: "accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method";
|
|
5749
|
+
decoratorNamePattern?: ({
|
|
5677
5750
|
pattern: string;
|
|
5678
5751
|
flags?: string;
|
|
5679
5752
|
} | string)[] | ({
|
|
5680
5753
|
pattern: string;
|
|
5681
5754
|
flags?: string;
|
|
5682
5755
|
} | string);
|
|
5683
|
-
|
|
5756
|
+
elementValuePattern?: ({
|
|
5684
5757
|
pattern: string;
|
|
5685
5758
|
flags?: string;
|
|
5686
5759
|
} | string)[] | ({
|
|
@@ -5688,6 +5761,21 @@ type PerfectionistSortClasses = [] | [{
|
|
|
5688
5761
|
flags?: string;
|
|
5689
5762
|
} | string);
|
|
5690
5763
|
})[];
|
|
5764
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
5765
|
+
groups?: (string | [string, ...string[]] | {
|
|
5766
|
+
newlinesBetween: "ignore" | number;
|
|
5767
|
+
} | {
|
|
5768
|
+
group: string | [string, ...string[]];
|
|
5769
|
+
fallbackSort?: {
|
|
5770
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5771
|
+
order?: "asc" | "desc";
|
|
5772
|
+
};
|
|
5773
|
+
commentAbove?: string;
|
|
5774
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5775
|
+
newlinesInside?: "ignore" | number;
|
|
5776
|
+
order?: "asc" | "desc";
|
|
5777
|
+
})[];
|
|
5778
|
+
newlinesBetween?: "ignore" | number;
|
|
5691
5779
|
ignoreCallbackDependenciesPatterns?: ({
|
|
5692
5780
|
pattern: string;
|
|
5693
5781
|
flags?: string;
|
|
@@ -5718,24 +5806,77 @@ type PerfectionistSortClasses = [] | [{
|
|
|
5718
5806
|
} | string));
|
|
5719
5807
|
};
|
|
5720
5808
|
partitionByNewLine?: boolean;
|
|
5721
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
5722
|
-
groups?: (string | string[] | {
|
|
5723
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
5724
|
-
commentAbove?: string;
|
|
5725
|
-
})[];
|
|
5726
5809
|
}];
|
|
5727
5810
|
// ----- perfectionist/sort-decorators -----
|
|
5728
|
-
type PerfectionistSortDecorators =
|
|
5811
|
+
type PerfectionistSortDecorators = {
|
|
5729
5812
|
fallbackSort?: {
|
|
5813
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5730
5814
|
order?: "asc" | "desc";
|
|
5731
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5732
5815
|
};
|
|
5816
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5733
5817
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
5734
5818
|
ignoreCase?: boolean;
|
|
5735
5819
|
alphabet?: string;
|
|
5736
5820
|
locales?: string | string[];
|
|
5737
5821
|
order?: "asc" | "desc";
|
|
5738
|
-
|
|
5822
|
+
customGroups?: ({
|
|
5823
|
+
fallbackSort?: {
|
|
5824
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5825
|
+
order?: "asc" | "desc";
|
|
5826
|
+
};
|
|
5827
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5828
|
+
groupName: string;
|
|
5829
|
+
newlinesInside?: "ignore" | number;
|
|
5830
|
+
order?: "asc" | "desc";
|
|
5831
|
+
anyOf: [{
|
|
5832
|
+
elementNamePattern?: ({
|
|
5833
|
+
pattern: string;
|
|
5834
|
+
flags?: string;
|
|
5835
|
+
} | string)[] | ({
|
|
5836
|
+
pattern: string;
|
|
5837
|
+
flags?: string;
|
|
5838
|
+
} | string);
|
|
5839
|
+
}, ...{
|
|
5840
|
+
elementNamePattern?: ({
|
|
5841
|
+
pattern: string;
|
|
5842
|
+
flags?: string;
|
|
5843
|
+
} | string)[] | ({
|
|
5844
|
+
pattern: string;
|
|
5845
|
+
flags?: string;
|
|
5846
|
+
} | string);
|
|
5847
|
+
}[]];
|
|
5848
|
+
} | {
|
|
5849
|
+
fallbackSort?: {
|
|
5850
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5851
|
+
order?: "asc" | "desc";
|
|
5852
|
+
};
|
|
5853
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5854
|
+
groupName: string;
|
|
5855
|
+
newlinesInside?: "ignore" | number;
|
|
5856
|
+
order?: "asc" | "desc";
|
|
5857
|
+
elementNamePattern?: ({
|
|
5858
|
+
pattern: string;
|
|
5859
|
+
flags?: string;
|
|
5860
|
+
} | string)[] | ({
|
|
5861
|
+
pattern: string;
|
|
5862
|
+
flags?: string;
|
|
5863
|
+
} | string);
|
|
5864
|
+
})[];
|
|
5865
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
5866
|
+
groups?: (string | [string, ...string[]] | {
|
|
5867
|
+
newlinesBetween: "ignore" | number;
|
|
5868
|
+
} | {
|
|
5869
|
+
group: string | [string, ...string[]];
|
|
5870
|
+
fallbackSort?: {
|
|
5871
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5872
|
+
order?: "asc" | "desc";
|
|
5873
|
+
};
|
|
5874
|
+
commentAbove?: string;
|
|
5875
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5876
|
+
newlinesInside?: "ignore" | number;
|
|
5877
|
+
order?: "asc" | "desc";
|
|
5878
|
+
})[];
|
|
5879
|
+
newlinesBetween?: "ignore" | number;
|
|
5739
5880
|
sortOnParameters?: boolean;
|
|
5740
5881
|
sortOnProperties?: boolean;
|
|
5741
5882
|
sortOnAccessors?: boolean;
|
|
@@ -5763,38 +5904,37 @@ type PerfectionistSortDecorators = [] | [{
|
|
|
5763
5904
|
flags?: string;
|
|
5764
5905
|
} | string));
|
|
5765
5906
|
};
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
};
|
|
5769
|
-
groups?: (string | string[] | {
|
|
5770
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
5771
|
-
commentAbove?: string;
|
|
5772
|
-
})[];
|
|
5773
|
-
}];
|
|
5907
|
+
partitionByNewLine?: boolean;
|
|
5908
|
+
}[];
|
|
5774
5909
|
// ----- perfectionist/sort-enums -----
|
|
5775
5910
|
type PerfectionistSortEnums = [] | [{
|
|
5776
5911
|
fallbackSort?: {
|
|
5912
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5777
5913
|
order?: "asc" | "desc";
|
|
5778
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5779
5914
|
};
|
|
5915
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5780
5916
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
5781
5917
|
ignoreCase?: boolean;
|
|
5782
5918
|
alphabet?: string;
|
|
5783
5919
|
locales?: string | string[];
|
|
5784
5920
|
order?: "asc" | "desc";
|
|
5785
|
-
|
|
5786
|
-
customGroups?: {
|
|
5787
|
-
[k: string]: (string | string[]) | undefined;
|
|
5788
|
-
} | ({
|
|
5789
|
-
newlinesInside?: ("always" | "never") | number;
|
|
5921
|
+
customGroups?: ({
|
|
5790
5922
|
fallbackSort?: {
|
|
5923
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5791
5924
|
order?: "asc" | "desc";
|
|
5792
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5793
5925
|
};
|
|
5926
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5794
5927
|
groupName: string;
|
|
5928
|
+
newlinesInside?: "ignore" | number;
|
|
5795
5929
|
order?: "asc" | "desc";
|
|
5796
|
-
|
|
5797
|
-
|
|
5930
|
+
anyOf: [{
|
|
5931
|
+
elementNamePattern?: ({
|
|
5932
|
+
pattern: string;
|
|
5933
|
+
flags?: string;
|
|
5934
|
+
} | string)[] | ({
|
|
5935
|
+
pattern: string;
|
|
5936
|
+
flags?: string;
|
|
5937
|
+
} | string);
|
|
5798
5938
|
elementValuePattern?: ({
|
|
5799
5939
|
pattern: string;
|
|
5800
5940
|
flags?: string;
|
|
@@ -5802,6 +5942,7 @@ type PerfectionistSortEnums = [] | [{
|
|
|
5802
5942
|
pattern: string;
|
|
5803
5943
|
flags?: string;
|
|
5804
5944
|
} | string);
|
|
5945
|
+
}, ...{
|
|
5805
5946
|
elementNamePattern?: ({
|
|
5806
5947
|
pattern: string;
|
|
5807
5948
|
flags?: string;
|
|
@@ -5809,24 +5950,31 @@ type PerfectionistSortEnums = [] | [{
|
|
|
5809
5950
|
pattern: string;
|
|
5810
5951
|
flags?: string;
|
|
5811
5952
|
} | string);
|
|
5812
|
-
|
|
5953
|
+
elementValuePattern?: ({
|
|
5954
|
+
pattern: string;
|
|
5955
|
+
flags?: string;
|
|
5956
|
+
} | string)[] | ({
|
|
5957
|
+
pattern: string;
|
|
5958
|
+
flags?: string;
|
|
5959
|
+
} | string);
|
|
5960
|
+
}[]];
|
|
5813
5961
|
} | {
|
|
5814
|
-
newlinesInside?: ("always" | "never") | number;
|
|
5815
5962
|
fallbackSort?: {
|
|
5963
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5816
5964
|
order?: "asc" | "desc";
|
|
5817
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5818
5965
|
};
|
|
5966
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5819
5967
|
groupName: string;
|
|
5968
|
+
newlinesInside?: "ignore" | number;
|
|
5820
5969
|
order?: "asc" | "desc";
|
|
5821
|
-
|
|
5822
|
-
elementValuePattern?: ({
|
|
5970
|
+
elementNamePattern?: ({
|
|
5823
5971
|
pattern: string;
|
|
5824
5972
|
flags?: string;
|
|
5825
5973
|
} | string)[] | ({
|
|
5826
5974
|
pattern: string;
|
|
5827
5975
|
flags?: string;
|
|
5828
5976
|
} | string);
|
|
5829
|
-
|
|
5977
|
+
elementValuePattern?: ({
|
|
5830
5978
|
pattern: string;
|
|
5831
5979
|
flags?: string;
|
|
5832
5980
|
} | string)[] | ({
|
|
@@ -5834,8 +5982,22 @@ type PerfectionistSortEnums = [] | [{
|
|
|
5834
5982
|
flags?: string;
|
|
5835
5983
|
} | string);
|
|
5836
5984
|
})[];
|
|
5837
|
-
|
|
5838
|
-
|
|
5985
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
5986
|
+
groups?: (string | [string, ...string[]] | {
|
|
5987
|
+
newlinesBetween: "ignore" | number;
|
|
5988
|
+
} | {
|
|
5989
|
+
group: string | [string, ...string[]];
|
|
5990
|
+
fallbackSort?: {
|
|
5991
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5992
|
+
order?: "asc" | "desc";
|
|
5993
|
+
};
|
|
5994
|
+
commentAbove?: string;
|
|
5995
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5996
|
+
newlinesInside?: "ignore" | number;
|
|
5997
|
+
order?: "asc" | "desc";
|
|
5998
|
+
})[];
|
|
5999
|
+
newlinesBetween?: "ignore" | number;
|
|
6000
|
+
sortByValue?: "always" | "ifNumericEnum" | "never";
|
|
5839
6001
|
partitionByComment?: boolean | (({
|
|
5840
6002
|
pattern: string;
|
|
5841
6003
|
flags?: string;
|
|
@@ -5859,37 +6021,29 @@ type PerfectionistSortEnums = [] | [{
|
|
|
5859
6021
|
} | string));
|
|
5860
6022
|
};
|
|
5861
6023
|
partitionByNewLine?: boolean;
|
|
5862
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
5863
|
-
groups?: (string | string[] | {
|
|
5864
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
5865
|
-
commentAbove?: string;
|
|
5866
|
-
})[];
|
|
5867
6024
|
}];
|
|
5868
|
-
// ----- perfectionist/sort-
|
|
5869
|
-
type
|
|
6025
|
+
// ----- perfectionist/sort-export-attributes -----
|
|
6026
|
+
type PerfectionistSortExportAttributes = {
|
|
5870
6027
|
fallbackSort?: {
|
|
6028
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5871
6029
|
order?: "asc" | "desc";
|
|
5872
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5873
6030
|
};
|
|
6031
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5874
6032
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
5875
6033
|
ignoreCase?: boolean;
|
|
5876
6034
|
alphabet?: string;
|
|
5877
6035
|
locales?: string | string[];
|
|
5878
6036
|
order?: "asc" | "desc";
|
|
5879
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5880
|
-
groupKind?: "mixed" | "values-first" | "types-first";
|
|
5881
6037
|
customGroups?: ({
|
|
5882
|
-
newlinesInside?: ("always" | "never") | number;
|
|
5883
6038
|
fallbackSort?: {
|
|
6039
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5884
6040
|
order?: "asc" | "desc";
|
|
5885
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5886
6041
|
};
|
|
6042
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5887
6043
|
groupName: string;
|
|
6044
|
+
newlinesInside?: "ignore" | number;
|
|
5888
6045
|
order?: "asc" | "desc";
|
|
5889
|
-
|
|
5890
|
-
anyOf?: {
|
|
5891
|
-
modifiers?: ("value" | "type")[];
|
|
5892
|
-
selector?: "export";
|
|
6046
|
+
anyOf: [{
|
|
5893
6047
|
elementNamePattern?: ({
|
|
5894
6048
|
pattern: string;
|
|
5895
6049
|
flags?: string;
|
|
@@ -5897,18 +6051,24 @@ type PerfectionistSortExports = {
|
|
|
5897
6051
|
pattern: string;
|
|
5898
6052
|
flags?: string;
|
|
5899
6053
|
} | string);
|
|
5900
|
-
}
|
|
6054
|
+
}, ...{
|
|
6055
|
+
elementNamePattern?: ({
|
|
6056
|
+
pattern: string;
|
|
6057
|
+
flags?: string;
|
|
6058
|
+
} | string)[] | ({
|
|
6059
|
+
pattern: string;
|
|
6060
|
+
flags?: string;
|
|
6061
|
+
} | string);
|
|
6062
|
+
}[]];
|
|
5901
6063
|
} | {
|
|
5902
|
-
newlinesInside?: ("always" | "never") | number;
|
|
5903
6064
|
fallbackSort?: {
|
|
6065
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5904
6066
|
order?: "asc" | "desc";
|
|
5905
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5906
6067
|
};
|
|
6068
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5907
6069
|
groupName: string;
|
|
6070
|
+
newlinesInside?: "ignore" | number;
|
|
5908
6071
|
order?: "asc" | "desc";
|
|
5909
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5910
|
-
modifiers?: ("value" | "type")[];
|
|
5911
|
-
selector?: "export";
|
|
5912
6072
|
elementNamePattern?: ({
|
|
5913
6073
|
pattern: string;
|
|
5914
6074
|
flags?: string;
|
|
@@ -5917,6 +6077,21 @@ type PerfectionistSortExports = {
|
|
|
5917
6077
|
flags?: string;
|
|
5918
6078
|
} | string);
|
|
5919
6079
|
})[];
|
|
6080
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
6081
|
+
groups?: (string | [string, ...string[]] | {
|
|
6082
|
+
newlinesBetween: "ignore" | number;
|
|
6083
|
+
} | {
|
|
6084
|
+
group: string | [string, ...string[]];
|
|
6085
|
+
fallbackSort?: {
|
|
6086
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6087
|
+
order?: "asc" | "desc";
|
|
6088
|
+
};
|
|
6089
|
+
commentAbove?: string;
|
|
6090
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6091
|
+
newlinesInside?: "ignore" | number;
|
|
6092
|
+
order?: "asc" | "desc";
|
|
6093
|
+
})[];
|
|
6094
|
+
newlinesBetween?: "ignore" | number;
|
|
5920
6095
|
partitionByComment?: boolean | (({
|
|
5921
6096
|
pattern: string;
|
|
5922
6097
|
flags?: string;
|
|
@@ -5940,70 +6115,39 @@ type PerfectionistSortExports = {
|
|
|
5940
6115
|
} | string));
|
|
5941
6116
|
};
|
|
5942
6117
|
partitionByNewLine?: boolean;
|
|
5943
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
5944
|
-
groups?: (string | string[] | {
|
|
5945
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
5946
|
-
commentAbove?: string;
|
|
5947
|
-
})[];
|
|
5948
6118
|
}[];
|
|
5949
|
-
// ----- perfectionist/sort-
|
|
5950
|
-
type
|
|
5951
|
-
fallbackSort?: {
|
|
5952
|
-
order?: "asc" | "desc";
|
|
5953
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5954
|
-
};
|
|
5955
|
-
specialCharacters?: "remove" | "trim" | "keep";
|
|
5956
|
-
ignoreCase?: boolean;
|
|
5957
|
-
alphabet?: string;
|
|
5958
|
-
locales?: string | string[];
|
|
5959
|
-
order?: "asc" | "desc";
|
|
5960
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5961
|
-
customGroups?: {
|
|
5962
|
-
[k: string]: (string | string[]) | undefined;
|
|
5963
|
-
};
|
|
5964
|
-
groups?: (string | string[] | {
|
|
5965
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
5966
|
-
commentAbove?: string;
|
|
5967
|
-
})[];
|
|
5968
|
-
}];
|
|
5969
|
-
// ----- perfectionist/sort-imports -----
|
|
5970
|
-
type PerfectionistSortImports = {
|
|
6119
|
+
// ----- perfectionist/sort-exports -----
|
|
6120
|
+
type PerfectionistSortExports = {
|
|
5971
6121
|
fallbackSort?: {
|
|
6122
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5972
6123
|
order?: "asc" | "desc";
|
|
5973
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5974
6124
|
};
|
|
6125
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5975
6126
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
5976
6127
|
ignoreCase?: boolean;
|
|
5977
6128
|
alphabet?: string;
|
|
5978
6129
|
locales?: string | string[];
|
|
5979
6130
|
order?: "asc" | "desc";
|
|
5980
|
-
|
|
5981
|
-
customGroups?: {
|
|
5982
|
-
value?: {
|
|
5983
|
-
[k: string]: (string | string[]) | undefined;
|
|
5984
|
-
};
|
|
5985
|
-
type?: {
|
|
5986
|
-
[k: string]: (string | string[]) | undefined;
|
|
5987
|
-
};
|
|
5988
|
-
} | ({
|
|
5989
|
-
newlinesInside?: ("always" | "never") | number;
|
|
6131
|
+
customGroups?: ({
|
|
5990
6132
|
fallbackSort?: {
|
|
6133
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5991
6134
|
order?: "asc" | "desc";
|
|
5992
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5993
6135
|
};
|
|
6136
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5994
6137
|
groupName: string;
|
|
6138
|
+
newlinesInside?: "ignore" | number;
|
|
5995
6139
|
order?: "asc" | "desc";
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
modifiers?: ("default" | "named" | "require" | "side-effect" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
5999
|
-
selector?: "side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type";
|
|
6000
|
-
elementValuePattern?: ({
|
|
6140
|
+
anyOf: [{
|
|
6141
|
+
elementNamePattern?: ({
|
|
6001
6142
|
pattern: string;
|
|
6002
6143
|
flags?: string;
|
|
6003
6144
|
} | string)[] | ({
|
|
6004
6145
|
pattern: string;
|
|
6005
6146
|
flags?: string;
|
|
6006
6147
|
} | string);
|
|
6148
|
+
modifiers?: ("value" | "type" | "named" | "wildcard" | "multiline" | "singleline")[];
|
|
6149
|
+
selector?: "export";
|
|
6150
|
+
}, ...{
|
|
6007
6151
|
elementNamePattern?: ({
|
|
6008
6152
|
pattern: string;
|
|
6009
6153
|
flags?: string;
|
|
@@ -6011,25 +6155,18 @@ type PerfectionistSortImports = {
|
|
|
6011
6155
|
pattern: string;
|
|
6012
6156
|
flags?: string;
|
|
6013
6157
|
} | string);
|
|
6014
|
-
|
|
6158
|
+
modifiers?: ("value" | "type" | "named" | "wildcard" | "multiline" | "singleline")[];
|
|
6159
|
+
selector?: "export";
|
|
6160
|
+
}[]];
|
|
6015
6161
|
} | {
|
|
6016
|
-
newlinesInside?: ("always" | "never") | number;
|
|
6017
6162
|
fallbackSort?: {
|
|
6163
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6018
6164
|
order?: "asc" | "desc";
|
|
6019
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6020
6165
|
};
|
|
6166
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6021
6167
|
groupName: string;
|
|
6168
|
+
newlinesInside?: "ignore" | number;
|
|
6022
6169
|
order?: "asc" | "desc";
|
|
6023
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6024
|
-
modifiers?: ("default" | "named" | "require" | "side-effect" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
6025
|
-
selector?: "side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type";
|
|
6026
|
-
elementValuePattern?: ({
|
|
6027
|
-
pattern: string;
|
|
6028
|
-
flags?: string;
|
|
6029
|
-
} | string)[] | ({
|
|
6030
|
-
pattern: string;
|
|
6031
|
-
flags?: string;
|
|
6032
|
-
} | string);
|
|
6033
6170
|
elementNamePattern?: ({
|
|
6034
6171
|
pattern: string;
|
|
6035
6172
|
flags?: string;
|
|
@@ -6037,15 +6174,24 @@ type PerfectionistSortImports = {
|
|
|
6037
6174
|
pattern: string;
|
|
6038
6175
|
flags?: string;
|
|
6039
6176
|
} | string);
|
|
6177
|
+
modifiers?: ("value" | "type" | "named" | "wildcard" | "multiline" | "singleline")[];
|
|
6178
|
+
selector?: "export";
|
|
6040
6179
|
})[];
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
|
|
6044
|
-
}
|
|
6045
|
-
|
|
6046
|
-
|
|
6047
|
-
|
|
6048
|
-
|
|
6180
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
6181
|
+
groups?: (string | [string, ...string[]] | {
|
|
6182
|
+
newlinesBetween: "ignore" | number;
|
|
6183
|
+
} | {
|
|
6184
|
+
group: string | [string, ...string[]];
|
|
6185
|
+
fallbackSort?: {
|
|
6186
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6187
|
+
order?: "asc" | "desc";
|
|
6188
|
+
};
|
|
6189
|
+
commentAbove?: string;
|
|
6190
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6191
|
+
newlinesInside?: "ignore" | number;
|
|
6192
|
+
order?: "asc" | "desc";
|
|
6193
|
+
})[];
|
|
6194
|
+
newlinesBetween?: "ignore" | number;
|
|
6049
6195
|
partitionByComment?: boolean | (({
|
|
6050
6196
|
pattern: string;
|
|
6051
6197
|
flags?: string;
|
|
@@ -6069,54 +6215,37 @@ type PerfectionistSortImports = {
|
|
|
6069
6215
|
} | string));
|
|
6070
6216
|
};
|
|
6071
6217
|
partitionByNewLine?: boolean;
|
|
6072
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
6073
|
-
internalPattern?: ({
|
|
6074
|
-
pattern: string;
|
|
6075
|
-
flags?: string;
|
|
6076
|
-
} | string)[] | ({
|
|
6077
|
-
pattern: string;
|
|
6078
|
-
flags?: string;
|
|
6079
|
-
} | string);
|
|
6080
|
-
groups?: (string | string[] | {
|
|
6081
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
6082
|
-
commentAbove?: string;
|
|
6083
|
-
})[];
|
|
6084
6218
|
}[];
|
|
6085
|
-
// ----- perfectionist/sort-
|
|
6086
|
-
type
|
|
6219
|
+
// ----- perfectionist/sort-heritage-clauses -----
|
|
6220
|
+
type PerfectionistSortHeritageClauses = {
|
|
6087
6221
|
fallbackSort?: {
|
|
6222
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6088
6223
|
order?: "asc" | "desc";
|
|
6089
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6090
|
-
sortBy?: "name" | "value";
|
|
6091
6224
|
};
|
|
6225
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6092
6226
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
6093
6227
|
ignoreCase?: boolean;
|
|
6094
6228
|
alphabet?: string;
|
|
6095
6229
|
locales?: string | string[];
|
|
6096
6230
|
order?: "asc" | "desc";
|
|
6097
|
-
|
|
6098
|
-
customGroups?: {
|
|
6099
|
-
[k: string]: (string | string[]) | undefined;
|
|
6100
|
-
} | ({
|
|
6101
|
-
newlinesInside?: ("always" | "never") | number;
|
|
6231
|
+
customGroups?: ({
|
|
6102
6232
|
fallbackSort?: {
|
|
6233
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6103
6234
|
order?: "asc" | "desc";
|
|
6104
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6105
|
-
sortBy?: "name" | "value";
|
|
6106
6235
|
};
|
|
6236
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6107
6237
|
groupName: string;
|
|
6238
|
+
newlinesInside?: "ignore" | number;
|
|
6108
6239
|
order?: "asc" | "desc";
|
|
6109
|
-
|
|
6110
|
-
|
|
6111
|
-
modifiers?: ("optional" | "required" | "multiline")[];
|
|
6112
|
-
selector?: "index-signature" | "member" | "method" | "multiline" | "property";
|
|
6113
|
-
elementValuePattern?: ({
|
|
6240
|
+
anyOf: [{
|
|
6241
|
+
elementNamePattern?: ({
|
|
6114
6242
|
pattern: string;
|
|
6115
6243
|
flags?: string;
|
|
6116
6244
|
} | string)[] | ({
|
|
6117
6245
|
pattern: string;
|
|
6118
6246
|
flags?: string;
|
|
6119
6247
|
} | string);
|
|
6248
|
+
}, ...{
|
|
6120
6249
|
elementNamePattern?: ({
|
|
6121
6250
|
pattern: string;
|
|
6122
6251
|
flags?: string;
|
|
@@ -6124,27 +6253,16 @@ type PerfectionistSortInterfaces = {
|
|
|
6124
6253
|
pattern: string;
|
|
6125
6254
|
flags?: string;
|
|
6126
6255
|
} | string);
|
|
6127
|
-
|
|
6128
|
-
}[];
|
|
6256
|
+
}[]];
|
|
6129
6257
|
} | {
|
|
6130
|
-
newlinesInside?: ("always" | "never") | number;
|
|
6131
6258
|
fallbackSort?: {
|
|
6259
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6132
6260
|
order?: "asc" | "desc";
|
|
6133
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6134
|
-
sortBy?: "name" | "value";
|
|
6135
6261
|
};
|
|
6262
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6136
6263
|
groupName: string;
|
|
6264
|
+
newlinesInside?: "ignore" | number;
|
|
6137
6265
|
order?: "asc" | "desc";
|
|
6138
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6139
|
-
modifiers?: ("optional" | "required" | "multiline")[];
|
|
6140
|
-
selector?: "index-signature" | "member" | "method" | "multiline" | "property";
|
|
6141
|
-
elementValuePattern?: ({
|
|
6142
|
-
pattern: string;
|
|
6143
|
-
flags?: string;
|
|
6144
|
-
} | string)[] | ({
|
|
6145
|
-
pattern: string;
|
|
6146
|
-
flags?: string;
|
|
6147
|
-
} | string);
|
|
6148
6266
|
elementNamePattern?: ({
|
|
6149
6267
|
pattern: string;
|
|
6150
6268
|
flags?: string;
|
|
@@ -6152,25 +6270,231 @@ type PerfectionistSortInterfaces = {
|
|
|
6152
6270
|
pattern: string;
|
|
6153
6271
|
flags?: string;
|
|
6154
6272
|
} | string);
|
|
6155
|
-
sortBy?: "name" | "value";
|
|
6156
6273
|
})[];
|
|
6157
|
-
|
|
6158
|
-
|
|
6159
|
-
|
|
6160
|
-
|
|
6161
|
-
|
|
6162
|
-
|
|
6163
|
-
|
|
6274
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
6275
|
+
groups?: (string | [string, ...string[]] | {
|
|
6276
|
+
newlinesBetween: "ignore" | number;
|
|
6277
|
+
} | {
|
|
6278
|
+
group: string | [string, ...string[]];
|
|
6279
|
+
fallbackSort?: {
|
|
6280
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6281
|
+
order?: "asc" | "desc";
|
|
6282
|
+
};
|
|
6283
|
+
commentAbove?: string;
|
|
6284
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6285
|
+
newlinesInside?: "ignore" | number;
|
|
6286
|
+
order?: "asc" | "desc";
|
|
6287
|
+
})[];
|
|
6288
|
+
newlinesBetween?: "ignore" | number;
|
|
6289
|
+
partitionByNewLine?: boolean;
|
|
6290
|
+
partitionByComment?: boolean | (({
|
|
6291
|
+
pattern: string;
|
|
6292
|
+
flags?: string;
|
|
6293
|
+
} | string)[] | ({
|
|
6294
|
+
pattern: string;
|
|
6295
|
+
flags?: string;
|
|
6296
|
+
} | string)) | {
|
|
6297
|
+
block?: boolean | (({
|
|
6298
|
+
pattern: string;
|
|
6299
|
+
flags?: string;
|
|
6300
|
+
} | string)[] | ({
|
|
6301
|
+
pattern: string;
|
|
6302
|
+
flags?: string;
|
|
6303
|
+
} | string));
|
|
6304
|
+
line?: boolean | (({
|
|
6305
|
+
pattern: string;
|
|
6306
|
+
flags?: string;
|
|
6307
|
+
} | string)[] | ({
|
|
6308
|
+
pattern: string;
|
|
6309
|
+
flags?: string;
|
|
6310
|
+
} | string));
|
|
6311
|
+
};
|
|
6312
|
+
}[];
|
|
6313
|
+
// ----- perfectionist/sort-import-attributes -----
|
|
6314
|
+
type PerfectionistSortImportAttributes = {
|
|
6315
|
+
fallbackSort?: {
|
|
6316
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6317
|
+
order?: "asc" | "desc";
|
|
6318
|
+
};
|
|
6319
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6320
|
+
specialCharacters?: "remove" | "trim" | "keep";
|
|
6321
|
+
ignoreCase?: boolean;
|
|
6322
|
+
alphabet?: string;
|
|
6323
|
+
locales?: string | string[];
|
|
6324
|
+
order?: "asc" | "desc";
|
|
6325
|
+
customGroups?: ({
|
|
6326
|
+
fallbackSort?: {
|
|
6327
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6328
|
+
order?: "asc" | "desc";
|
|
6329
|
+
};
|
|
6330
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6331
|
+
groupName: string;
|
|
6332
|
+
newlinesInside?: "ignore" | number;
|
|
6333
|
+
order?: "asc" | "desc";
|
|
6334
|
+
anyOf: [{
|
|
6335
|
+
elementNamePattern?: ({
|
|
6336
|
+
pattern: string;
|
|
6337
|
+
flags?: string;
|
|
6338
|
+
} | string)[] | ({
|
|
6339
|
+
pattern: string;
|
|
6340
|
+
flags?: string;
|
|
6341
|
+
} | string);
|
|
6342
|
+
}, ...{
|
|
6343
|
+
elementNamePattern?: ({
|
|
6344
|
+
pattern: string;
|
|
6345
|
+
flags?: string;
|
|
6346
|
+
} | string)[] | ({
|
|
6347
|
+
pattern: string;
|
|
6348
|
+
flags?: string;
|
|
6349
|
+
} | string);
|
|
6350
|
+
}[]];
|
|
6351
|
+
} | {
|
|
6352
|
+
fallbackSort?: {
|
|
6353
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6354
|
+
order?: "asc" | "desc";
|
|
6355
|
+
};
|
|
6356
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6357
|
+
groupName: string;
|
|
6358
|
+
newlinesInside?: "ignore" | number;
|
|
6359
|
+
order?: "asc" | "desc";
|
|
6360
|
+
elementNamePattern?: ({
|
|
6361
|
+
pattern: string;
|
|
6362
|
+
flags?: string;
|
|
6363
|
+
} | string)[] | ({
|
|
6364
|
+
pattern: string;
|
|
6164
6365
|
flags?: string;
|
|
6165
6366
|
} | string);
|
|
6166
|
-
|
|
6367
|
+
})[];
|
|
6368
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
6369
|
+
groups?: (string | [string, ...string[]] | {
|
|
6370
|
+
newlinesBetween: "ignore" | number;
|
|
6371
|
+
} | {
|
|
6372
|
+
group: string | [string, ...string[]];
|
|
6373
|
+
fallbackSort?: {
|
|
6374
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6375
|
+
order?: "asc" | "desc";
|
|
6376
|
+
};
|
|
6377
|
+
commentAbove?: string;
|
|
6378
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6379
|
+
newlinesInside?: "ignore" | number;
|
|
6380
|
+
order?: "asc" | "desc";
|
|
6381
|
+
})[];
|
|
6382
|
+
newlinesBetween?: "ignore" | number;
|
|
6383
|
+
partitionByComment?: boolean | (({
|
|
6384
|
+
pattern: string;
|
|
6385
|
+
flags?: string;
|
|
6386
|
+
} | string)[] | ({
|
|
6387
|
+
pattern: string;
|
|
6388
|
+
flags?: string;
|
|
6389
|
+
} | string)) | {
|
|
6390
|
+
block?: boolean | (({
|
|
6391
|
+
pattern: string;
|
|
6392
|
+
flags?: string;
|
|
6393
|
+
} | string)[] | ({
|
|
6394
|
+
pattern: string;
|
|
6395
|
+
flags?: string;
|
|
6396
|
+
} | string));
|
|
6397
|
+
line?: boolean | (({
|
|
6398
|
+
pattern: string;
|
|
6399
|
+
flags?: string;
|
|
6400
|
+
} | string)[] | ({
|
|
6401
|
+
pattern: string;
|
|
6402
|
+
flags?: string;
|
|
6403
|
+
} | string));
|
|
6404
|
+
};
|
|
6405
|
+
partitionByNewLine?: boolean;
|
|
6406
|
+
}[];
|
|
6407
|
+
// ----- perfectionist/sort-imports -----
|
|
6408
|
+
type PerfectionistSortImports = {
|
|
6409
|
+
fallbackSort?: {
|
|
6410
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first";
|
|
6411
|
+
order?: "asc" | "desc";
|
|
6412
|
+
sortBy?: "specifier" | "path";
|
|
6413
|
+
};
|
|
6414
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first";
|
|
6415
|
+
specialCharacters?: "remove" | "trim" | "keep";
|
|
6416
|
+
ignoreCase?: boolean;
|
|
6417
|
+
alphabet?: string;
|
|
6418
|
+
locales?: string | string[];
|
|
6419
|
+
order?: "asc" | "desc";
|
|
6420
|
+
sortBy?: "specifier" | "path";
|
|
6421
|
+
customGroups?: ({
|
|
6422
|
+
fallbackSort?: {
|
|
6423
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first";
|
|
6424
|
+
order?: "asc" | "desc";
|
|
6425
|
+
sortBy?: "specifier" | "path";
|
|
6426
|
+
};
|
|
6427
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first";
|
|
6428
|
+
groupName: string;
|
|
6429
|
+
newlinesInside?: "ignore" | number;
|
|
6430
|
+
order?: "asc" | "desc";
|
|
6431
|
+
sortBy?: "specifier" | "path";
|
|
6432
|
+
anyOf: [{
|
|
6433
|
+
elementNamePattern?: ({
|
|
6434
|
+
pattern: string;
|
|
6435
|
+
flags?: string;
|
|
6436
|
+
} | string)[] | ({
|
|
6437
|
+
pattern: string;
|
|
6438
|
+
flags?: string;
|
|
6439
|
+
} | string);
|
|
6440
|
+
modifiers?: ("default" | "multiline" | "named" | "require" | "side-effect" | "singleline" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
6441
|
+
selector?: "side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type";
|
|
6442
|
+
}, ...{
|
|
6443
|
+
elementNamePattern?: ({
|
|
6444
|
+
pattern: string;
|
|
6445
|
+
flags?: string;
|
|
6446
|
+
} | string)[] | ({
|
|
6447
|
+
pattern: string;
|
|
6448
|
+
flags?: string;
|
|
6449
|
+
} | string);
|
|
6450
|
+
modifiers?: ("default" | "multiline" | "named" | "require" | "side-effect" | "singleline" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
6451
|
+
selector?: "side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type";
|
|
6452
|
+
}[]];
|
|
6453
|
+
} | {
|
|
6454
|
+
fallbackSort?: {
|
|
6455
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first";
|
|
6456
|
+
order?: "asc" | "desc";
|
|
6457
|
+
sortBy?: "specifier" | "path";
|
|
6458
|
+
};
|
|
6459
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first";
|
|
6460
|
+
groupName: string;
|
|
6461
|
+
newlinesInside?: "ignore" | number;
|
|
6462
|
+
order?: "asc" | "desc";
|
|
6463
|
+
sortBy?: "specifier" | "path";
|
|
6464
|
+
elementNamePattern?: ({
|
|
6167
6465
|
pattern: string;
|
|
6168
6466
|
flags?: string;
|
|
6169
6467
|
} | string)[] | ({
|
|
6170
6468
|
pattern: string;
|
|
6171
6469
|
flags?: string;
|
|
6172
6470
|
} | string);
|
|
6471
|
+
modifiers?: ("default" | "multiline" | "named" | "require" | "side-effect" | "singleline" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
6472
|
+
selector?: "side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type";
|
|
6473
|
+
})[];
|
|
6474
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
6475
|
+
groups?: (string | [string, ...string[]] | {
|
|
6476
|
+
newlinesBetween: "ignore" | number;
|
|
6477
|
+
} | {
|
|
6478
|
+
group: string | [string, ...string[]];
|
|
6479
|
+
fallbackSort?: {
|
|
6480
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first";
|
|
6481
|
+
order?: "asc" | "desc";
|
|
6482
|
+
sortBy?: "specifier" | "path";
|
|
6483
|
+
};
|
|
6484
|
+
commentAbove?: string;
|
|
6485
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first";
|
|
6486
|
+
newlinesInside?: "ignore" | number;
|
|
6487
|
+
order?: "asc" | "desc";
|
|
6488
|
+
sortBy?: "specifier" | "path";
|
|
6489
|
+
})[];
|
|
6490
|
+
newlinesBetween?: "ignore" | number;
|
|
6491
|
+
tsconfig?: {
|
|
6492
|
+
rootDir: string;
|
|
6493
|
+
filename?: string;
|
|
6173
6494
|
};
|
|
6495
|
+
maxLineLength?: number;
|
|
6496
|
+
sortSideEffects?: boolean;
|
|
6497
|
+
environment?: "node" | "bun";
|
|
6174
6498
|
partitionByComment?: boolean | (({
|
|
6175
6499
|
pattern: string;
|
|
6176
6500
|
flags?: string;
|
|
@@ -6194,43 +6518,202 @@ type PerfectionistSortInterfaces = {
|
|
|
6194
6518
|
} | string));
|
|
6195
6519
|
};
|
|
6196
6520
|
partitionByNewLine?: boolean;
|
|
6197
|
-
|
|
6198
|
-
ignorePattern?: ({
|
|
6521
|
+
internalPattern?: ({
|
|
6199
6522
|
pattern: string;
|
|
6200
6523
|
flags?: string;
|
|
6201
6524
|
} | string)[] | ({
|
|
6202
6525
|
pattern: string;
|
|
6203
6526
|
flags?: string;
|
|
6204
6527
|
} | string);
|
|
6528
|
+
}[];
|
|
6529
|
+
// ----- perfectionist/sort-interfaces -----
|
|
6530
|
+
type PerfectionistSortInterfaces = {
|
|
6531
|
+
fallbackSort?: {
|
|
6532
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6533
|
+
order?: "asc" | "desc";
|
|
6534
|
+
sortBy?: "name" | "value";
|
|
6535
|
+
};
|
|
6536
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6537
|
+
specialCharacters?: "remove" | "trim" | "keep";
|
|
6538
|
+
ignoreCase?: boolean;
|
|
6539
|
+
alphabet?: string;
|
|
6540
|
+
locales?: string | string[];
|
|
6541
|
+
order?: "asc" | "desc";
|
|
6205
6542
|
sortBy?: "name" | "value";
|
|
6206
|
-
|
|
6207
|
-
|
|
6543
|
+
customGroups?: ({
|
|
6544
|
+
fallbackSort?: {
|
|
6545
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6546
|
+
order?: "asc" | "desc";
|
|
6547
|
+
sortBy?: "name" | "value";
|
|
6548
|
+
};
|
|
6549
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6550
|
+
groupName: string;
|
|
6551
|
+
newlinesInside?: "ignore" | number;
|
|
6552
|
+
order?: "asc" | "desc";
|
|
6553
|
+
sortBy?: "name" | "value";
|
|
6554
|
+
anyOf: [{
|
|
6555
|
+
elementNamePattern?: ({
|
|
6556
|
+
pattern: string;
|
|
6557
|
+
flags?: string;
|
|
6558
|
+
} | string)[] | ({
|
|
6559
|
+
pattern: string;
|
|
6560
|
+
flags?: string;
|
|
6561
|
+
} | string);
|
|
6562
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
6563
|
+
selector?: "index-signature" | "member" | "method" | "property";
|
|
6564
|
+
elementValuePattern?: ({
|
|
6565
|
+
pattern: string;
|
|
6566
|
+
flags?: string;
|
|
6567
|
+
} | string)[] | ({
|
|
6568
|
+
pattern: string;
|
|
6569
|
+
flags?: string;
|
|
6570
|
+
} | string);
|
|
6571
|
+
}, ...{
|
|
6572
|
+
elementNamePattern?: ({
|
|
6573
|
+
pattern: string;
|
|
6574
|
+
flags?: string;
|
|
6575
|
+
} | string)[] | ({
|
|
6576
|
+
pattern: string;
|
|
6577
|
+
flags?: string;
|
|
6578
|
+
} | string);
|
|
6579
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
6580
|
+
selector?: "index-signature" | "member" | "method" | "property";
|
|
6581
|
+
elementValuePattern?: ({
|
|
6582
|
+
pattern: string;
|
|
6583
|
+
flags?: string;
|
|
6584
|
+
} | string)[] | ({
|
|
6585
|
+
pattern: string;
|
|
6586
|
+
flags?: string;
|
|
6587
|
+
} | string);
|
|
6588
|
+
}[]];
|
|
6589
|
+
} | {
|
|
6590
|
+
fallbackSort?: {
|
|
6591
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6592
|
+
order?: "asc" | "desc";
|
|
6593
|
+
sortBy?: "name" | "value";
|
|
6594
|
+
};
|
|
6595
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6596
|
+
groupName: string;
|
|
6597
|
+
newlinesInside?: "ignore" | number;
|
|
6598
|
+
order?: "asc" | "desc";
|
|
6599
|
+
sortBy?: "name" | "value";
|
|
6600
|
+
elementNamePattern?: ({
|
|
6601
|
+
pattern: string;
|
|
6602
|
+
flags?: string;
|
|
6603
|
+
} | string)[] | ({
|
|
6604
|
+
pattern: string;
|
|
6605
|
+
flags?: string;
|
|
6606
|
+
} | string);
|
|
6607
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
6608
|
+
selector?: "index-signature" | "member" | "method" | "property";
|
|
6609
|
+
elementValuePattern?: ({
|
|
6610
|
+
pattern: string;
|
|
6611
|
+
flags?: string;
|
|
6612
|
+
} | string)[] | ({
|
|
6613
|
+
pattern: string;
|
|
6614
|
+
flags?: string;
|
|
6615
|
+
} | string);
|
|
6616
|
+
})[];
|
|
6617
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
6618
|
+
groups?: (string | [string, ...string[]] | {
|
|
6619
|
+
newlinesBetween: "ignore" | number;
|
|
6620
|
+
} | {
|
|
6621
|
+
group: string | [string, ...string[]];
|
|
6622
|
+
fallbackSort?: {
|
|
6623
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6624
|
+
order?: "asc" | "desc";
|
|
6625
|
+
sortBy?: "name" | "value";
|
|
6626
|
+
};
|
|
6208
6627
|
commentAbove?: string;
|
|
6628
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6629
|
+
newlinesInside?: "ignore" | number;
|
|
6630
|
+
order?: "asc" | "desc";
|
|
6631
|
+
sortBy?: "name" | "value";
|
|
6209
6632
|
})[];
|
|
6633
|
+
newlinesBetween?: "ignore" | number;
|
|
6634
|
+
useConfigurationIf?: {
|
|
6635
|
+
allNamesMatchPattern?: ({
|
|
6636
|
+
pattern: string;
|
|
6637
|
+
flags?: string;
|
|
6638
|
+
} | string)[] | ({
|
|
6639
|
+
pattern: string;
|
|
6640
|
+
flags?: string;
|
|
6641
|
+
} | string);
|
|
6642
|
+
hasNumericKeysOnly?: boolean;
|
|
6643
|
+
declarationCommentMatchesPattern?: ({
|
|
6644
|
+
scope?: "shallow" | "deep";
|
|
6645
|
+
pattern: string;
|
|
6646
|
+
flags?: string;
|
|
6647
|
+
} | string)[] | ({
|
|
6648
|
+
scope?: "shallow" | "deep";
|
|
6649
|
+
pattern: string;
|
|
6650
|
+
flags?: string;
|
|
6651
|
+
} | string);
|
|
6652
|
+
declarationMatchesPattern?: ({
|
|
6653
|
+
scope?: "shallow" | "deep";
|
|
6654
|
+
pattern: string;
|
|
6655
|
+
flags?: string;
|
|
6656
|
+
} | string)[] | ({
|
|
6657
|
+
scope?: "shallow" | "deep";
|
|
6658
|
+
pattern: string;
|
|
6659
|
+
flags?: string;
|
|
6660
|
+
} | string);
|
|
6661
|
+
};
|
|
6662
|
+
partitionByComment?: boolean | (({
|
|
6663
|
+
pattern: string;
|
|
6664
|
+
flags?: string;
|
|
6665
|
+
} | string)[] | ({
|
|
6666
|
+
pattern: string;
|
|
6667
|
+
flags?: string;
|
|
6668
|
+
} | string)) | {
|
|
6669
|
+
block?: boolean | (({
|
|
6670
|
+
pattern: string;
|
|
6671
|
+
flags?: string;
|
|
6672
|
+
} | string)[] | ({
|
|
6673
|
+
pattern: string;
|
|
6674
|
+
flags?: string;
|
|
6675
|
+
} | string));
|
|
6676
|
+
line?: boolean | (({
|
|
6677
|
+
pattern: string;
|
|
6678
|
+
flags?: string;
|
|
6679
|
+
} | string)[] | ({
|
|
6680
|
+
pattern: string;
|
|
6681
|
+
flags?: string;
|
|
6682
|
+
} | string));
|
|
6683
|
+
};
|
|
6684
|
+
partitionByNewLine?: boolean;
|
|
6210
6685
|
}[];
|
|
6211
6686
|
// ----- perfectionist/sort-intersection-types -----
|
|
6212
6687
|
type PerfectionistSortIntersectionTypes = {
|
|
6213
6688
|
fallbackSort?: {
|
|
6689
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6214
6690
|
order?: "asc" | "desc";
|
|
6215
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6216
6691
|
};
|
|
6692
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6217
6693
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
6218
6694
|
ignoreCase?: boolean;
|
|
6219
6695
|
alphabet?: string;
|
|
6220
6696
|
locales?: string | string[];
|
|
6221
6697
|
order?: "asc" | "desc";
|
|
6222
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6223
6698
|
customGroups?: ({
|
|
6224
|
-
newlinesInside?: ("always" | "never") | number;
|
|
6225
6699
|
fallbackSort?: {
|
|
6700
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6226
6701
|
order?: "asc" | "desc";
|
|
6227
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6228
6702
|
};
|
|
6703
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6229
6704
|
groupName: string;
|
|
6705
|
+
newlinesInside?: "ignore" | number;
|
|
6230
6706
|
order?: "asc" | "desc";
|
|
6231
|
-
|
|
6232
|
-
|
|
6707
|
+
anyOf: [{
|
|
6708
|
+
elementNamePattern?: ({
|
|
6709
|
+
pattern: string;
|
|
6710
|
+
flags?: string;
|
|
6711
|
+
} | string)[] | ({
|
|
6712
|
+
pattern: string;
|
|
6713
|
+
flags?: string;
|
|
6714
|
+
} | string);
|
|
6233
6715
|
selector?: "intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union";
|
|
6716
|
+
}, ...{
|
|
6234
6717
|
elementNamePattern?: ({
|
|
6235
6718
|
pattern: string;
|
|
6236
6719
|
flags?: string;
|
|
@@ -6238,17 +6721,17 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
6238
6721
|
pattern: string;
|
|
6239
6722
|
flags?: string;
|
|
6240
6723
|
} | string);
|
|
6241
|
-
|
|
6724
|
+
selector?: "intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union";
|
|
6725
|
+
}[]];
|
|
6242
6726
|
} | {
|
|
6243
|
-
newlinesInside?: ("always" | "never") | number;
|
|
6244
6727
|
fallbackSort?: {
|
|
6728
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6245
6729
|
order?: "asc" | "desc";
|
|
6246
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6247
6730
|
};
|
|
6731
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6248
6732
|
groupName: string;
|
|
6733
|
+
newlinesInside?: "ignore" | number;
|
|
6249
6734
|
order?: "asc" | "desc";
|
|
6250
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6251
|
-
selector?: "intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union";
|
|
6252
6735
|
elementNamePattern?: ({
|
|
6253
6736
|
pattern: string;
|
|
6254
6737
|
flags?: string;
|
|
@@ -6256,7 +6739,23 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
6256
6739
|
pattern: string;
|
|
6257
6740
|
flags?: string;
|
|
6258
6741
|
} | string);
|
|
6742
|
+
selector?: "intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union";
|
|
6259
6743
|
})[];
|
|
6744
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
6745
|
+
groups?: (string | [string, ...string[]] | {
|
|
6746
|
+
newlinesBetween: "ignore" | number;
|
|
6747
|
+
} | {
|
|
6748
|
+
group: string | [string, ...string[]];
|
|
6749
|
+
fallbackSort?: {
|
|
6750
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6751
|
+
order?: "asc" | "desc";
|
|
6752
|
+
};
|
|
6753
|
+
commentAbove?: string;
|
|
6754
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6755
|
+
newlinesInside?: "ignore" | number;
|
|
6756
|
+
order?: "asc" | "desc";
|
|
6757
|
+
})[];
|
|
6758
|
+
newlinesBetween?: "ignore" | number;
|
|
6260
6759
|
partitionByComment?: boolean | (({
|
|
6261
6760
|
pattern: string;
|
|
6262
6761
|
flags?: string;
|
|
@@ -6280,38 +6779,38 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
6280
6779
|
} | string));
|
|
6281
6780
|
};
|
|
6282
6781
|
partitionByNewLine?: boolean;
|
|
6283
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
6284
|
-
groups?: (string | string[] | {
|
|
6285
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
6286
|
-
commentAbove?: string;
|
|
6287
|
-
})[];
|
|
6288
6782
|
}[];
|
|
6289
6783
|
// ----- perfectionist/sort-jsx-props -----
|
|
6290
6784
|
type PerfectionistSortJsxProps = {
|
|
6291
6785
|
fallbackSort?: {
|
|
6786
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6292
6787
|
order?: "asc" | "desc";
|
|
6293
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6294
6788
|
};
|
|
6789
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6295
6790
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
6296
6791
|
ignoreCase?: boolean;
|
|
6297
6792
|
alphabet?: string;
|
|
6298
6793
|
locales?: string | string[];
|
|
6299
6794
|
order?: "asc" | "desc";
|
|
6300
|
-
|
|
6301
|
-
customGroups?: {
|
|
6302
|
-
[k: string]: (string | string[]) | undefined;
|
|
6303
|
-
} | ({
|
|
6304
|
-
newlinesInside?: ("always" | "never") | number;
|
|
6795
|
+
customGroups?: ({
|
|
6305
6796
|
fallbackSort?: {
|
|
6797
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6306
6798
|
order?: "asc" | "desc";
|
|
6307
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6308
6799
|
};
|
|
6800
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6309
6801
|
groupName: string;
|
|
6802
|
+
newlinesInside?: "ignore" | number;
|
|
6310
6803
|
order?: "asc" | "desc";
|
|
6311
|
-
|
|
6312
|
-
|
|
6804
|
+
anyOf: [{
|
|
6805
|
+
elementNamePattern?: ({
|
|
6806
|
+
pattern: string;
|
|
6807
|
+
flags?: string;
|
|
6808
|
+
} | string)[] | ({
|
|
6809
|
+
pattern: string;
|
|
6810
|
+
flags?: string;
|
|
6811
|
+
} | string);
|
|
6313
6812
|
modifiers?: ("shorthand" | "multiline")[];
|
|
6314
|
-
selector?: "
|
|
6813
|
+
selector?: "prop";
|
|
6315
6814
|
elementValuePattern?: ({
|
|
6316
6815
|
pattern: string;
|
|
6317
6816
|
flags?: string;
|
|
@@ -6319,6 +6818,7 @@ type PerfectionistSortJsxProps = {
|
|
|
6319
6818
|
pattern: string;
|
|
6320
6819
|
flags?: string;
|
|
6321
6820
|
} | string);
|
|
6821
|
+
}, ...{
|
|
6322
6822
|
elementNamePattern?: ({
|
|
6323
6823
|
pattern: string;
|
|
6324
6824
|
flags?: string;
|
|
@@ -6326,26 +6826,35 @@ type PerfectionistSortJsxProps = {
|
|
|
6326
6826
|
pattern: string;
|
|
6327
6827
|
flags?: string;
|
|
6328
6828
|
} | string);
|
|
6329
|
-
|
|
6829
|
+
modifiers?: ("shorthand" | "multiline")[];
|
|
6830
|
+
selector?: "prop";
|
|
6831
|
+
elementValuePattern?: ({
|
|
6832
|
+
pattern: string;
|
|
6833
|
+
flags?: string;
|
|
6834
|
+
} | string)[] | ({
|
|
6835
|
+
pattern: string;
|
|
6836
|
+
flags?: string;
|
|
6837
|
+
} | string);
|
|
6838
|
+
}[]];
|
|
6330
6839
|
} | {
|
|
6331
|
-
newlinesInside?: ("always" | "never") | number;
|
|
6332
6840
|
fallbackSort?: {
|
|
6841
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6333
6842
|
order?: "asc" | "desc";
|
|
6334
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6335
6843
|
};
|
|
6844
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6336
6845
|
groupName: string;
|
|
6846
|
+
newlinesInside?: "ignore" | number;
|
|
6337
6847
|
order?: "asc" | "desc";
|
|
6338
|
-
|
|
6339
|
-
modifiers?: ("shorthand" | "multiline")[];
|
|
6340
|
-
selector?: "multiline" | "prop" | "shorthand";
|
|
6341
|
-
elementValuePattern?: ({
|
|
6848
|
+
elementNamePattern?: ({
|
|
6342
6849
|
pattern: string;
|
|
6343
6850
|
flags?: string;
|
|
6344
6851
|
} | string)[] | ({
|
|
6345
6852
|
pattern: string;
|
|
6346
6853
|
flags?: string;
|
|
6347
6854
|
} | string);
|
|
6348
|
-
|
|
6855
|
+
modifiers?: ("shorthand" | "multiline")[];
|
|
6856
|
+
selector?: "prop";
|
|
6857
|
+
elementValuePattern?: ({
|
|
6349
6858
|
pattern: string;
|
|
6350
6859
|
flags?: string;
|
|
6351
6860
|
} | string)[] | ({
|
|
@@ -6353,6 +6862,21 @@ type PerfectionistSortJsxProps = {
|
|
|
6353
6862
|
flags?: string;
|
|
6354
6863
|
} | string);
|
|
6355
6864
|
})[];
|
|
6865
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
6866
|
+
groups?: (string | [string, ...string[]] | {
|
|
6867
|
+
newlinesBetween: "ignore" | number;
|
|
6868
|
+
} | {
|
|
6869
|
+
group: string | [string, ...string[]];
|
|
6870
|
+
fallbackSort?: {
|
|
6871
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6872
|
+
order?: "asc" | "desc";
|
|
6873
|
+
};
|
|
6874
|
+
commentAbove?: string;
|
|
6875
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6876
|
+
newlinesInside?: "ignore" | number;
|
|
6877
|
+
order?: "asc" | "desc";
|
|
6878
|
+
})[];
|
|
6879
|
+
newlinesBetween?: "ignore" | number;
|
|
6356
6880
|
useConfigurationIf?: {
|
|
6357
6881
|
allNamesMatchPattern?: ({
|
|
6358
6882
|
pattern: string;
|
|
@@ -6370,41 +6894,29 @@ type PerfectionistSortJsxProps = {
|
|
|
6370
6894
|
} | string);
|
|
6371
6895
|
};
|
|
6372
6896
|
partitionByNewLine?: boolean;
|
|
6373
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
6374
|
-
ignorePattern?: ({
|
|
6375
|
-
pattern: string;
|
|
6376
|
-
flags?: string;
|
|
6377
|
-
} | string)[] | ({
|
|
6378
|
-
pattern: string;
|
|
6379
|
-
flags?: string;
|
|
6380
|
-
} | string);
|
|
6381
|
-
groups?: (string | string[] | {
|
|
6382
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
6383
|
-
commentAbove?: string;
|
|
6384
|
-
})[];
|
|
6385
6897
|
}[];
|
|
6386
6898
|
// ----- perfectionist/sort-maps -----
|
|
6387
6899
|
type PerfectionistSortMaps = {
|
|
6388
6900
|
fallbackSort?: {
|
|
6901
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6389
6902
|
order?: "asc" | "desc";
|
|
6390
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6391
6903
|
};
|
|
6904
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6392
6905
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
6393
6906
|
ignoreCase?: boolean;
|
|
6394
6907
|
alphabet?: string;
|
|
6395
6908
|
locales?: string | string[];
|
|
6396
6909
|
order?: "asc" | "desc";
|
|
6397
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6398
6910
|
customGroups?: ({
|
|
6399
|
-
newlinesInside?: ("always" | "never") | number;
|
|
6400
6911
|
fallbackSort?: {
|
|
6912
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6401
6913
|
order?: "asc" | "desc";
|
|
6402
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6403
6914
|
};
|
|
6915
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6404
6916
|
groupName: string;
|
|
6917
|
+
newlinesInside?: "ignore" | number;
|
|
6405
6918
|
order?: "asc" | "desc";
|
|
6406
|
-
|
|
6407
|
-
anyOf?: {
|
|
6919
|
+
anyOf: [{
|
|
6408
6920
|
elementNamePattern?: ({
|
|
6409
6921
|
pattern: string;
|
|
6410
6922
|
flags?: string;
|
|
@@ -6412,16 +6924,24 @@ type PerfectionistSortMaps = {
|
|
|
6412
6924
|
pattern: string;
|
|
6413
6925
|
flags?: string;
|
|
6414
6926
|
} | string);
|
|
6415
|
-
}
|
|
6927
|
+
}, ...{
|
|
6928
|
+
elementNamePattern?: ({
|
|
6929
|
+
pattern: string;
|
|
6930
|
+
flags?: string;
|
|
6931
|
+
} | string)[] | ({
|
|
6932
|
+
pattern: string;
|
|
6933
|
+
flags?: string;
|
|
6934
|
+
} | string);
|
|
6935
|
+
}[]];
|
|
6416
6936
|
} | {
|
|
6417
|
-
newlinesInside?: ("always" | "never") | number;
|
|
6418
6937
|
fallbackSort?: {
|
|
6938
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6419
6939
|
order?: "asc" | "desc";
|
|
6420
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6421
6940
|
};
|
|
6941
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6422
6942
|
groupName: string;
|
|
6943
|
+
newlinesInside?: "ignore" | number;
|
|
6423
6944
|
order?: "asc" | "desc";
|
|
6424
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6425
6945
|
elementNamePattern?: ({
|
|
6426
6946
|
pattern: string;
|
|
6427
6947
|
flags?: string;
|
|
@@ -6430,6 +6950,21 @@ type PerfectionistSortMaps = {
|
|
|
6430
6950
|
flags?: string;
|
|
6431
6951
|
} | string);
|
|
6432
6952
|
})[];
|
|
6953
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
6954
|
+
groups?: (string | [string, ...string[]] | {
|
|
6955
|
+
newlinesBetween: "ignore" | number;
|
|
6956
|
+
} | {
|
|
6957
|
+
group: string | [string, ...string[]];
|
|
6958
|
+
fallbackSort?: {
|
|
6959
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6960
|
+
order?: "asc" | "desc";
|
|
6961
|
+
};
|
|
6962
|
+
commentAbove?: string;
|
|
6963
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6964
|
+
newlinesInside?: "ignore" | number;
|
|
6965
|
+
order?: "asc" | "desc";
|
|
6966
|
+
})[];
|
|
6967
|
+
newlinesBetween?: "ignore" | number;
|
|
6433
6968
|
useConfigurationIf?: {
|
|
6434
6969
|
allNamesMatchPattern?: ({
|
|
6435
6970
|
pattern: string;
|
|
@@ -6462,34 +6997,36 @@ type PerfectionistSortMaps = {
|
|
|
6462
6997
|
} | string));
|
|
6463
6998
|
};
|
|
6464
6999
|
partitionByNewLine?: boolean;
|
|
6465
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
6466
|
-
groups?: (string | string[] | {
|
|
6467
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
6468
|
-
commentAbove?: string;
|
|
6469
|
-
})[];
|
|
6470
7000
|
}[];
|
|
6471
7001
|
// ----- perfectionist/sort-modules -----
|
|
6472
7002
|
type PerfectionistSortModules = [] | [{
|
|
6473
7003
|
fallbackSort?: {
|
|
7004
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage";
|
|
6474
7005
|
order?: "asc" | "desc";
|
|
6475
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6476
7006
|
};
|
|
7007
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage";
|
|
6477
7008
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
6478
7009
|
ignoreCase?: boolean;
|
|
6479
7010
|
alphabet?: string;
|
|
6480
7011
|
locales?: string | string[];
|
|
6481
7012
|
order?: "asc" | "desc";
|
|
6482
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6483
7013
|
customGroups?: ({
|
|
6484
|
-
newlinesInside?: ("always" | "never") | number;
|
|
6485
7014
|
fallbackSort?: {
|
|
7015
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage";
|
|
6486
7016
|
order?: "asc" | "desc";
|
|
6487
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6488
7017
|
};
|
|
7018
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage";
|
|
6489
7019
|
groupName: string;
|
|
7020
|
+
newlinesInside?: "ignore" | number;
|
|
6490
7021
|
order?: "asc" | "desc";
|
|
6491
|
-
|
|
6492
|
-
|
|
7022
|
+
anyOf: [{
|
|
7023
|
+
elementNamePattern?: ({
|
|
7024
|
+
pattern: string;
|
|
7025
|
+
flags?: string;
|
|
7026
|
+
} | string)[] | ({
|
|
7027
|
+
pattern: string;
|
|
7028
|
+
flags?: string;
|
|
7029
|
+
} | string);
|
|
6493
7030
|
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
6494
7031
|
selector?: "enum" | "function" | "interface" | "type" | "class";
|
|
6495
7032
|
decoratorNamePattern?: ({
|
|
@@ -6499,6 +7036,7 @@ type PerfectionistSortModules = [] | [{
|
|
|
6499
7036
|
pattern: string;
|
|
6500
7037
|
flags?: string;
|
|
6501
7038
|
} | string);
|
|
7039
|
+
}, ...{
|
|
6502
7040
|
elementNamePattern?: ({
|
|
6503
7041
|
pattern: string;
|
|
6504
7042
|
flags?: string;
|
|
@@ -6506,26 +7044,35 @@ type PerfectionistSortModules = [] | [{
|
|
|
6506
7044
|
pattern: string;
|
|
6507
7045
|
flags?: string;
|
|
6508
7046
|
} | string);
|
|
6509
|
-
|
|
7047
|
+
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
7048
|
+
selector?: "enum" | "function" | "interface" | "type" | "class";
|
|
7049
|
+
decoratorNamePattern?: ({
|
|
7050
|
+
pattern: string;
|
|
7051
|
+
flags?: string;
|
|
7052
|
+
} | string)[] | ({
|
|
7053
|
+
pattern: string;
|
|
7054
|
+
flags?: string;
|
|
7055
|
+
} | string);
|
|
7056
|
+
}[]];
|
|
6510
7057
|
} | {
|
|
6511
|
-
newlinesInside?: ("always" | "never") | number;
|
|
6512
7058
|
fallbackSort?: {
|
|
7059
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage";
|
|
6513
7060
|
order?: "asc" | "desc";
|
|
6514
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6515
7061
|
};
|
|
7062
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage";
|
|
6516
7063
|
groupName: string;
|
|
7064
|
+
newlinesInside?: "ignore" | number;
|
|
6517
7065
|
order?: "asc" | "desc";
|
|
6518
|
-
|
|
6519
|
-
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
6520
|
-
selector?: "enum" | "function" | "interface" | "type" | "class";
|
|
6521
|
-
decoratorNamePattern?: ({
|
|
7066
|
+
elementNamePattern?: ({
|
|
6522
7067
|
pattern: string;
|
|
6523
7068
|
flags?: string;
|
|
6524
7069
|
} | string)[] | ({
|
|
6525
7070
|
pattern: string;
|
|
6526
7071
|
flags?: string;
|
|
6527
7072
|
} | string);
|
|
6528
|
-
|
|
7073
|
+
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
7074
|
+
selector?: "enum" | "function" | "interface" | "type" | "class";
|
|
7075
|
+
decoratorNamePattern?: ({
|
|
6529
7076
|
pattern: string;
|
|
6530
7077
|
flags?: string;
|
|
6531
7078
|
} | string)[] | ({
|
|
@@ -6533,6 +7080,21 @@ type PerfectionistSortModules = [] | [{
|
|
|
6533
7080
|
flags?: string;
|
|
6534
7081
|
} | string);
|
|
6535
7082
|
})[];
|
|
7083
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
7084
|
+
groups?: (string | [string, ...string[]] | {
|
|
7085
|
+
newlinesBetween: "ignore" | number;
|
|
7086
|
+
} | {
|
|
7087
|
+
group: string | [string, ...string[]];
|
|
7088
|
+
fallbackSort?: {
|
|
7089
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage";
|
|
7090
|
+
order?: "asc" | "desc";
|
|
7091
|
+
};
|
|
7092
|
+
commentAbove?: string;
|
|
7093
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage";
|
|
7094
|
+
newlinesInside?: "ignore" | number;
|
|
7095
|
+
order?: "asc" | "desc";
|
|
7096
|
+
})[];
|
|
7097
|
+
newlinesBetween?: "ignore" | number;
|
|
6536
7098
|
partitionByComment?: boolean | (({
|
|
6537
7099
|
pattern: string;
|
|
6538
7100
|
flags?: string;
|
|
@@ -6556,38 +7118,39 @@ type PerfectionistSortModules = [] | [{
|
|
|
6556
7118
|
} | string));
|
|
6557
7119
|
};
|
|
6558
7120
|
partitionByNewLine?: boolean;
|
|
6559
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
6560
|
-
groups?: (string | string[] | {
|
|
6561
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
6562
|
-
commentAbove?: string;
|
|
6563
|
-
})[];
|
|
6564
7121
|
}];
|
|
6565
7122
|
// ----- perfectionist/sort-named-exports -----
|
|
6566
7123
|
type PerfectionistSortNamedExports = {
|
|
6567
7124
|
fallbackSort?: {
|
|
7125
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6568
7126
|
order?: "asc" | "desc";
|
|
6569
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6570
7127
|
};
|
|
7128
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6571
7129
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
6572
7130
|
ignoreCase?: boolean;
|
|
6573
7131
|
alphabet?: string;
|
|
6574
7132
|
locales?: string | string[];
|
|
6575
7133
|
order?: "asc" | "desc";
|
|
6576
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6577
|
-
groupKind?: "mixed" | "values-first" | "types-first";
|
|
6578
|
-
ignoreAlias?: boolean;
|
|
6579
7134
|
customGroups?: ({
|
|
6580
|
-
newlinesInside?: ("always" | "never") | number;
|
|
6581
7135
|
fallbackSort?: {
|
|
7136
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6582
7137
|
order?: "asc" | "desc";
|
|
6583
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6584
7138
|
};
|
|
7139
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6585
7140
|
groupName: string;
|
|
7141
|
+
newlinesInside?: "ignore" | number;
|
|
6586
7142
|
order?: "asc" | "desc";
|
|
6587
|
-
|
|
6588
|
-
|
|
7143
|
+
anyOf: [{
|
|
7144
|
+
elementNamePattern?: ({
|
|
7145
|
+
pattern: string;
|
|
7146
|
+
flags?: string;
|
|
7147
|
+
} | string)[] | ({
|
|
7148
|
+
pattern: string;
|
|
7149
|
+
flags?: string;
|
|
7150
|
+
} | string);
|
|
6589
7151
|
modifiers?: ("value" | "type")[];
|
|
6590
7152
|
selector?: "export";
|
|
7153
|
+
}, ...{
|
|
6591
7154
|
elementNamePattern?: ({
|
|
6592
7155
|
pattern: string;
|
|
6593
7156
|
flags?: string;
|
|
@@ -6595,18 +7158,18 @@ type PerfectionistSortNamedExports = {
|
|
|
6595
7158
|
pattern: string;
|
|
6596
7159
|
flags?: string;
|
|
6597
7160
|
} | string);
|
|
6598
|
-
|
|
7161
|
+
modifiers?: ("value" | "type")[];
|
|
7162
|
+
selector?: "export";
|
|
7163
|
+
}[]];
|
|
6599
7164
|
} | {
|
|
6600
|
-
newlinesInside?: ("always" | "never") | number;
|
|
6601
7165
|
fallbackSort?: {
|
|
7166
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6602
7167
|
order?: "asc" | "desc";
|
|
6603
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6604
7168
|
};
|
|
7169
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6605
7170
|
groupName: string;
|
|
7171
|
+
newlinesInside?: "ignore" | number;
|
|
6606
7172
|
order?: "asc" | "desc";
|
|
6607
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6608
|
-
modifiers?: ("value" | "type")[];
|
|
6609
|
-
selector?: "export";
|
|
6610
7173
|
elementNamePattern?: ({
|
|
6611
7174
|
pattern: string;
|
|
6612
7175
|
flags?: string;
|
|
@@ -6614,7 +7177,25 @@ type PerfectionistSortNamedExports = {
|
|
|
6614
7177
|
pattern: string;
|
|
6615
7178
|
flags?: string;
|
|
6616
7179
|
} | string);
|
|
7180
|
+
modifiers?: ("value" | "type")[];
|
|
7181
|
+
selector?: "export";
|
|
7182
|
+
})[];
|
|
7183
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
7184
|
+
groups?: (string | [string, ...string[]] | {
|
|
7185
|
+
newlinesBetween: "ignore" | number;
|
|
7186
|
+
} | {
|
|
7187
|
+
group: string | [string, ...string[]];
|
|
7188
|
+
fallbackSort?: {
|
|
7189
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7190
|
+
order?: "asc" | "desc";
|
|
7191
|
+
};
|
|
7192
|
+
commentAbove?: string;
|
|
7193
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7194
|
+
newlinesInside?: "ignore" | number;
|
|
7195
|
+
order?: "asc" | "desc";
|
|
6617
7196
|
})[];
|
|
7197
|
+
newlinesBetween?: "ignore" | number;
|
|
7198
|
+
ignoreAlias?: boolean;
|
|
6618
7199
|
partitionByComment?: boolean | (({
|
|
6619
7200
|
pattern: string;
|
|
6620
7201
|
flags?: string;
|
|
@@ -6638,38 +7219,39 @@ type PerfectionistSortNamedExports = {
|
|
|
6638
7219
|
} | string));
|
|
6639
7220
|
};
|
|
6640
7221
|
partitionByNewLine?: boolean;
|
|
6641
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
6642
|
-
groups?: (string | string[] | {
|
|
6643
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
6644
|
-
commentAbove?: string;
|
|
6645
|
-
})[];
|
|
6646
7222
|
}[];
|
|
6647
7223
|
// ----- perfectionist/sort-named-imports -----
|
|
6648
7224
|
type PerfectionistSortNamedImports = {
|
|
6649
7225
|
fallbackSort?: {
|
|
7226
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6650
7227
|
order?: "asc" | "desc";
|
|
6651
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6652
7228
|
};
|
|
7229
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6653
7230
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
6654
7231
|
ignoreCase?: boolean;
|
|
6655
7232
|
alphabet?: string;
|
|
6656
7233
|
locales?: string | string[];
|
|
6657
7234
|
order?: "asc" | "desc";
|
|
6658
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6659
|
-
groupKind?: "mixed" | "values-first" | "types-first";
|
|
6660
|
-
ignoreAlias?: boolean;
|
|
6661
7235
|
customGroups?: ({
|
|
6662
|
-
newlinesInside?: ("always" | "never") | number;
|
|
6663
7236
|
fallbackSort?: {
|
|
7237
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6664
7238
|
order?: "asc" | "desc";
|
|
6665
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6666
7239
|
};
|
|
7240
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6667
7241
|
groupName: string;
|
|
7242
|
+
newlinesInside?: "ignore" | number;
|
|
6668
7243
|
order?: "asc" | "desc";
|
|
6669
|
-
|
|
6670
|
-
|
|
7244
|
+
anyOf: [{
|
|
7245
|
+
elementNamePattern?: ({
|
|
7246
|
+
pattern: string;
|
|
7247
|
+
flags?: string;
|
|
7248
|
+
} | string)[] | ({
|
|
7249
|
+
pattern: string;
|
|
7250
|
+
flags?: string;
|
|
7251
|
+
} | string);
|
|
6671
7252
|
modifiers?: ("value" | "type")[];
|
|
6672
7253
|
selector?: "import";
|
|
7254
|
+
}, ...{
|
|
6673
7255
|
elementNamePattern?: ({
|
|
6674
7256
|
pattern: string;
|
|
6675
7257
|
flags?: string;
|
|
@@ -6677,18 +7259,18 @@ type PerfectionistSortNamedImports = {
|
|
|
6677
7259
|
pattern: string;
|
|
6678
7260
|
flags?: string;
|
|
6679
7261
|
} | string);
|
|
6680
|
-
|
|
7262
|
+
modifiers?: ("value" | "type")[];
|
|
7263
|
+
selector?: "import";
|
|
7264
|
+
}[]];
|
|
6681
7265
|
} | {
|
|
6682
|
-
newlinesInside?: ("always" | "never") | number;
|
|
6683
7266
|
fallbackSort?: {
|
|
7267
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6684
7268
|
order?: "asc" | "desc";
|
|
6685
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6686
7269
|
};
|
|
7270
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6687
7271
|
groupName: string;
|
|
7272
|
+
newlinesInside?: "ignore" | number;
|
|
6688
7273
|
order?: "asc" | "desc";
|
|
6689
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6690
|
-
modifiers?: ("value" | "type")[];
|
|
6691
|
-
selector?: "import";
|
|
6692
7274
|
elementNamePattern?: ({
|
|
6693
7275
|
pattern: string;
|
|
6694
7276
|
flags?: string;
|
|
@@ -6696,7 +7278,25 @@ type PerfectionistSortNamedImports = {
|
|
|
6696
7278
|
pattern: string;
|
|
6697
7279
|
flags?: string;
|
|
6698
7280
|
} | string);
|
|
7281
|
+
modifiers?: ("value" | "type")[];
|
|
7282
|
+
selector?: "import";
|
|
7283
|
+
})[];
|
|
7284
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
7285
|
+
groups?: (string | [string, ...string[]] | {
|
|
7286
|
+
newlinesBetween: "ignore" | number;
|
|
7287
|
+
} | {
|
|
7288
|
+
group: string | [string, ...string[]];
|
|
7289
|
+
fallbackSort?: {
|
|
7290
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7291
|
+
order?: "asc" | "desc";
|
|
7292
|
+
};
|
|
7293
|
+
commentAbove?: string;
|
|
7294
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7295
|
+
newlinesInside?: "ignore" | number;
|
|
7296
|
+
order?: "asc" | "desc";
|
|
6699
7297
|
})[];
|
|
7298
|
+
newlinesBetween?: "ignore" | number;
|
|
7299
|
+
ignoreAlias?: boolean;
|
|
6700
7300
|
partitionByComment?: boolean | (({
|
|
6701
7301
|
pattern: string;
|
|
6702
7302
|
flags?: string;
|
|
@@ -6720,40 +7320,42 @@ type PerfectionistSortNamedImports = {
|
|
|
6720
7320
|
} | string));
|
|
6721
7321
|
};
|
|
6722
7322
|
partitionByNewLine?: boolean;
|
|
6723
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
6724
|
-
groups?: (string | string[] | {
|
|
6725
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
6726
|
-
commentAbove?: string;
|
|
6727
|
-
})[];
|
|
6728
7323
|
}[];
|
|
6729
7324
|
// ----- perfectionist/sort-object-types -----
|
|
6730
7325
|
type PerfectionistSortObjectTypes = {
|
|
6731
7326
|
fallbackSort?: {
|
|
7327
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6732
7328
|
order?: "asc" | "desc";
|
|
6733
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6734
7329
|
sortBy?: "name" | "value";
|
|
6735
7330
|
};
|
|
7331
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6736
7332
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
6737
7333
|
ignoreCase?: boolean;
|
|
6738
7334
|
alphabet?: string;
|
|
6739
7335
|
locales?: string | string[];
|
|
6740
7336
|
order?: "asc" | "desc";
|
|
6741
|
-
|
|
6742
|
-
customGroups?: {
|
|
6743
|
-
[k: string]: (string | string[]) | undefined;
|
|
6744
|
-
} | ({
|
|
6745
|
-
newlinesInside?: ("always" | "never") | number;
|
|
7337
|
+
sortBy?: "name" | "value";
|
|
7338
|
+
customGroups?: ({
|
|
6746
7339
|
fallbackSort?: {
|
|
7340
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6747
7341
|
order?: "asc" | "desc";
|
|
6748
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6749
7342
|
sortBy?: "name" | "value";
|
|
6750
7343
|
};
|
|
7344
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6751
7345
|
groupName: string;
|
|
7346
|
+
newlinesInside?: "ignore" | number;
|
|
6752
7347
|
order?: "asc" | "desc";
|
|
6753
|
-
|
|
6754
|
-
anyOf
|
|
7348
|
+
sortBy?: "name" | "value";
|
|
7349
|
+
anyOf: [{
|
|
7350
|
+
elementNamePattern?: ({
|
|
7351
|
+
pattern: string;
|
|
7352
|
+
flags?: string;
|
|
7353
|
+
} | string)[] | ({
|
|
7354
|
+
pattern: string;
|
|
7355
|
+
flags?: string;
|
|
7356
|
+
} | string);
|
|
6755
7357
|
modifiers?: ("optional" | "required" | "multiline")[];
|
|
6756
|
-
selector?: "index-signature" | "member" | "method" | "
|
|
7358
|
+
selector?: "index-signature" | "member" | "method" | "property";
|
|
6757
7359
|
elementValuePattern?: ({
|
|
6758
7360
|
pattern: string;
|
|
6759
7361
|
flags?: string;
|
|
@@ -6761,6 +7363,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
6761
7363
|
pattern: string;
|
|
6762
7364
|
flags?: string;
|
|
6763
7365
|
} | string);
|
|
7366
|
+
}, ...{
|
|
6764
7367
|
elementNamePattern?: ({
|
|
6765
7368
|
pattern: string;
|
|
6766
7369
|
flags?: string;
|
|
@@ -6768,37 +7371,61 @@ type PerfectionistSortObjectTypes = {
|
|
|
6768
7371
|
pattern: string;
|
|
6769
7372
|
flags?: string;
|
|
6770
7373
|
} | string);
|
|
6771
|
-
|
|
6772
|
-
|
|
7374
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
7375
|
+
selector?: "index-signature" | "member" | "method" | "property";
|
|
7376
|
+
elementValuePattern?: ({
|
|
7377
|
+
pattern: string;
|
|
7378
|
+
flags?: string;
|
|
7379
|
+
} | string)[] | ({
|
|
7380
|
+
pattern: string;
|
|
7381
|
+
flags?: string;
|
|
7382
|
+
} | string);
|
|
7383
|
+
}[]];
|
|
6773
7384
|
} | {
|
|
6774
|
-
newlinesInside?: ("always" | "never") | number;
|
|
6775
7385
|
fallbackSort?: {
|
|
7386
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6776
7387
|
order?: "asc" | "desc";
|
|
6777
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6778
7388
|
sortBy?: "name" | "value";
|
|
6779
7389
|
};
|
|
7390
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6780
7391
|
groupName: string;
|
|
7392
|
+
newlinesInside?: "ignore" | number;
|
|
6781
7393
|
order?: "asc" | "desc";
|
|
6782
|
-
|
|
6783
|
-
|
|
6784
|
-
selector?: "index-signature" | "member" | "method" | "multiline" | "property";
|
|
6785
|
-
elementValuePattern?: ({
|
|
7394
|
+
sortBy?: "name" | "value";
|
|
7395
|
+
elementNamePattern?: ({
|
|
6786
7396
|
pattern: string;
|
|
6787
7397
|
flags?: string;
|
|
6788
7398
|
} | string)[] | ({
|
|
6789
7399
|
pattern: string;
|
|
6790
7400
|
flags?: string;
|
|
6791
7401
|
} | string);
|
|
6792
|
-
|
|
7402
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
7403
|
+
selector?: "index-signature" | "member" | "method" | "property";
|
|
7404
|
+
elementValuePattern?: ({
|
|
6793
7405
|
pattern: string;
|
|
6794
7406
|
flags?: string;
|
|
6795
7407
|
} | string)[] | ({
|
|
6796
7408
|
pattern: string;
|
|
6797
7409
|
flags?: string;
|
|
6798
7410
|
} | string);
|
|
7411
|
+
})[];
|
|
7412
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
7413
|
+
groups?: (string | [string, ...string[]] | {
|
|
7414
|
+
newlinesBetween: "ignore" | number;
|
|
7415
|
+
} | {
|
|
7416
|
+
group: string | [string, ...string[]];
|
|
7417
|
+
fallbackSort?: {
|
|
7418
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7419
|
+
order?: "asc" | "desc";
|
|
7420
|
+
sortBy?: "name" | "value";
|
|
7421
|
+
};
|
|
7422
|
+
commentAbove?: string;
|
|
7423
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7424
|
+
newlinesInside?: "ignore" | number;
|
|
7425
|
+
order?: "asc" | "desc";
|
|
6799
7426
|
sortBy?: "name" | "value";
|
|
6800
7427
|
})[];
|
|
6801
|
-
|
|
7428
|
+
newlinesBetween?: "ignore" | number;
|
|
6802
7429
|
useConfigurationIf?: {
|
|
6803
7430
|
allNamesMatchPattern?: ({
|
|
6804
7431
|
pattern: string;
|
|
@@ -6807,10 +7434,22 @@ type PerfectionistSortObjectTypes = {
|
|
|
6807
7434
|
pattern: string;
|
|
6808
7435
|
flags?: string;
|
|
6809
7436
|
} | string);
|
|
7437
|
+
hasNumericKeysOnly?: boolean;
|
|
7438
|
+
declarationCommentMatchesPattern?: ({
|
|
7439
|
+
scope?: "shallow" | "deep";
|
|
7440
|
+
pattern: string;
|
|
7441
|
+
flags?: string;
|
|
7442
|
+
} | string)[] | ({
|
|
7443
|
+
scope?: "shallow" | "deep";
|
|
7444
|
+
pattern: string;
|
|
7445
|
+
flags?: string;
|
|
7446
|
+
} | string);
|
|
6810
7447
|
declarationMatchesPattern?: ({
|
|
7448
|
+
scope?: "shallow" | "deep";
|
|
6811
7449
|
pattern: string;
|
|
6812
7450
|
flags?: string;
|
|
6813
7451
|
} | string)[] | ({
|
|
7452
|
+
scope?: "shallow" | "deep";
|
|
6814
7453
|
pattern: string;
|
|
6815
7454
|
flags?: string;
|
|
6816
7455
|
} | string);
|
|
@@ -6838,49 +7477,38 @@ type PerfectionistSortObjectTypes = {
|
|
|
6838
7477
|
} | string));
|
|
6839
7478
|
};
|
|
6840
7479
|
partitionByNewLine?: boolean;
|
|
6841
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
6842
|
-
ignorePattern?: ({
|
|
6843
|
-
pattern: string;
|
|
6844
|
-
flags?: string;
|
|
6845
|
-
} | string)[] | ({
|
|
6846
|
-
pattern: string;
|
|
6847
|
-
flags?: string;
|
|
6848
|
-
} | string);
|
|
6849
|
-
sortBy?: "name" | "value";
|
|
6850
|
-
groups?: (string | string[] | {
|
|
6851
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
6852
|
-
commentAbove?: string;
|
|
6853
|
-
})[];
|
|
6854
7480
|
}[];
|
|
6855
7481
|
// ----- perfectionist/sort-objects -----
|
|
6856
7482
|
type PerfectionistSortObjects = {
|
|
6857
7483
|
fallbackSort?: {
|
|
7484
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6858
7485
|
order?: "asc" | "desc";
|
|
6859
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6860
7486
|
};
|
|
7487
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6861
7488
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
6862
7489
|
ignoreCase?: boolean;
|
|
6863
7490
|
alphabet?: string;
|
|
6864
7491
|
locales?: string | string[];
|
|
6865
7492
|
order?: "asc" | "desc";
|
|
6866
|
-
|
|
6867
|
-
destructuredObjects?: boolean | {
|
|
6868
|
-
groups?: boolean;
|
|
6869
|
-
};
|
|
6870
|
-
customGroups?: {
|
|
6871
|
-
[k: string]: (string | string[]) | undefined;
|
|
6872
|
-
} | ({
|
|
6873
|
-
newlinesInside?: ("always" | "never") | number;
|
|
7493
|
+
customGroups?: ({
|
|
6874
7494
|
fallbackSort?: {
|
|
7495
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6875
7496
|
order?: "asc" | "desc";
|
|
6876
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6877
7497
|
};
|
|
7498
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6878
7499
|
groupName: string;
|
|
7500
|
+
newlinesInside?: "ignore" | number;
|
|
6879
7501
|
order?: "asc" | "desc";
|
|
6880
|
-
|
|
6881
|
-
|
|
6882
|
-
|
|
6883
|
-
|
|
7502
|
+
anyOf: [{
|
|
7503
|
+
elementNamePattern?: ({
|
|
7504
|
+
pattern: string;
|
|
7505
|
+
flags?: string;
|
|
7506
|
+
} | string)[] | ({
|
|
7507
|
+
pattern: string;
|
|
7508
|
+
flags?: string;
|
|
7509
|
+
} | string);
|
|
7510
|
+
modifiers?: "multiline"[];
|
|
7511
|
+
selector?: "member" | "method" | "property";
|
|
6884
7512
|
elementValuePattern?: ({
|
|
6885
7513
|
pattern: string;
|
|
6886
7514
|
flags?: string;
|
|
@@ -6888,6 +7516,7 @@ type PerfectionistSortObjects = {
|
|
|
6888
7516
|
pattern: string;
|
|
6889
7517
|
flags?: string;
|
|
6890
7518
|
} | string);
|
|
7519
|
+
}, ...{
|
|
6891
7520
|
elementNamePattern?: ({
|
|
6892
7521
|
pattern: string;
|
|
6893
7522
|
flags?: string;
|
|
@@ -6895,26 +7524,35 @@ type PerfectionistSortObjects = {
|
|
|
6895
7524
|
pattern: string;
|
|
6896
7525
|
flags?: string;
|
|
6897
7526
|
} | string);
|
|
6898
|
-
|
|
7527
|
+
modifiers?: "multiline"[];
|
|
7528
|
+
selector?: "member" | "method" | "property";
|
|
7529
|
+
elementValuePattern?: ({
|
|
7530
|
+
pattern: string;
|
|
7531
|
+
flags?: string;
|
|
7532
|
+
} | string)[] | ({
|
|
7533
|
+
pattern: string;
|
|
7534
|
+
flags?: string;
|
|
7535
|
+
} | string);
|
|
7536
|
+
}[]];
|
|
6899
7537
|
} | {
|
|
6900
|
-
newlinesInside?: ("always" | "never") | number;
|
|
6901
7538
|
fallbackSort?: {
|
|
7539
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6902
7540
|
order?: "asc" | "desc";
|
|
6903
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6904
7541
|
};
|
|
7542
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6905
7543
|
groupName: string;
|
|
7544
|
+
newlinesInside?: "ignore" | number;
|
|
6906
7545
|
order?: "asc" | "desc";
|
|
6907
|
-
|
|
6908
|
-
modifiers?: ("optional" | "required" | "multiline")[];
|
|
6909
|
-
selector?: "member" | "method" | "multiline" | "property";
|
|
6910
|
-
elementValuePattern?: ({
|
|
7546
|
+
elementNamePattern?: ({
|
|
6911
7547
|
pattern: string;
|
|
6912
7548
|
flags?: string;
|
|
6913
7549
|
} | string)[] | ({
|
|
6914
7550
|
pattern: string;
|
|
6915
7551
|
flags?: string;
|
|
6916
7552
|
} | string);
|
|
6917
|
-
|
|
7553
|
+
modifiers?: "multiline"[];
|
|
7554
|
+
selector?: "member" | "method" | "property";
|
|
7555
|
+
elementValuePattern?: ({
|
|
6918
7556
|
pattern: string;
|
|
6919
7557
|
flags?: string;
|
|
6920
7558
|
} | string)[] | ({
|
|
@@ -6922,6 +7560,21 @@ type PerfectionistSortObjects = {
|
|
|
6922
7560
|
flags?: string;
|
|
6923
7561
|
} | string);
|
|
6924
7562
|
})[];
|
|
7563
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
7564
|
+
groups?: (string | [string, ...string[]] | {
|
|
7565
|
+
newlinesBetween: "ignore" | number;
|
|
7566
|
+
} | {
|
|
7567
|
+
group: string | [string, ...string[]];
|
|
7568
|
+
fallbackSort?: {
|
|
7569
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7570
|
+
order?: "asc" | "desc";
|
|
7571
|
+
};
|
|
7572
|
+
commentAbove?: string;
|
|
7573
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7574
|
+
newlinesInside?: "ignore" | number;
|
|
7575
|
+
order?: "asc" | "desc";
|
|
7576
|
+
})[];
|
|
7577
|
+
newlinesBetween?: "ignore" | number;
|
|
6925
7578
|
useConfigurationIf?: {
|
|
6926
7579
|
allNamesMatchPattern?: ({
|
|
6927
7580
|
pattern: string;
|
|
@@ -6930,16 +7583,36 @@ type PerfectionistSortObjects = {
|
|
|
6930
7583
|
pattern: string;
|
|
6931
7584
|
flags?: string;
|
|
6932
7585
|
} | string);
|
|
7586
|
+
objectType?: "destructured" | "non-destructured";
|
|
7587
|
+
hasNumericKeysOnly?: boolean;
|
|
7588
|
+
declarationCommentMatchesPattern?: ({
|
|
7589
|
+
scope?: "shallow" | "deep";
|
|
7590
|
+
pattern: string;
|
|
7591
|
+
flags?: string;
|
|
7592
|
+
} | string)[] | ({
|
|
7593
|
+
scope?: "shallow" | "deep";
|
|
7594
|
+
pattern: string;
|
|
7595
|
+
flags?: string;
|
|
7596
|
+
} | string);
|
|
6933
7597
|
callingFunctionNamePattern?: ({
|
|
7598
|
+
scope?: "shallow" | "deep";
|
|
7599
|
+
pattern: string;
|
|
7600
|
+
flags?: string;
|
|
7601
|
+
} | string)[] | ({
|
|
7602
|
+
scope?: "shallow" | "deep";
|
|
7603
|
+
pattern: string;
|
|
7604
|
+
flags?: string;
|
|
7605
|
+
} | string);
|
|
7606
|
+
declarationMatchesPattern?: ({
|
|
7607
|
+
scope?: "shallow" | "deep";
|
|
6934
7608
|
pattern: string;
|
|
6935
7609
|
flags?: string;
|
|
6936
7610
|
} | string)[] | ({
|
|
7611
|
+
scope?: "shallow" | "deep";
|
|
6937
7612
|
pattern: string;
|
|
6938
7613
|
flags?: string;
|
|
6939
7614
|
} | string);
|
|
6940
7615
|
};
|
|
6941
|
-
destructureOnly?: boolean;
|
|
6942
|
-
objectDeclarations?: boolean;
|
|
6943
7616
|
styledComponents?: boolean;
|
|
6944
7617
|
partitionByComment?: boolean | (({
|
|
6945
7618
|
pattern: string;
|
|
@@ -6964,43 +7637,38 @@ type PerfectionistSortObjects = {
|
|
|
6964
7637
|
} | string));
|
|
6965
7638
|
};
|
|
6966
7639
|
partitionByNewLine?: boolean;
|
|
6967
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
6968
|
-
ignorePattern?: ({
|
|
6969
|
-
pattern: string;
|
|
6970
|
-
flags?: string;
|
|
6971
|
-
} | string)[] | ({
|
|
6972
|
-
pattern: string;
|
|
6973
|
-
flags?: string;
|
|
6974
|
-
} | string);
|
|
6975
|
-
groups?: (string | string[] | {
|
|
6976
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
6977
|
-
commentAbove?: string;
|
|
6978
|
-
})[];
|
|
6979
7640
|
}[];
|
|
6980
7641
|
// ----- perfectionist/sort-sets -----
|
|
6981
7642
|
type PerfectionistSortSets = {
|
|
6982
7643
|
fallbackSort?: {
|
|
7644
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6983
7645
|
order?: "asc" | "desc";
|
|
6984
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6985
7646
|
};
|
|
7647
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6986
7648
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
6987
7649
|
ignoreCase?: boolean;
|
|
6988
7650
|
alphabet?: string;
|
|
6989
7651
|
locales?: string | string[];
|
|
6990
7652
|
order?: "asc" | "desc";
|
|
6991
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6992
|
-
groupKind?: "mixed" | "literals-first" | "spreads-first";
|
|
6993
7653
|
customGroups?: ({
|
|
6994
|
-
newlinesInside?: ("always" | "never") | number;
|
|
6995
7654
|
fallbackSort?: {
|
|
7655
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6996
7656
|
order?: "asc" | "desc";
|
|
6997
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6998
7657
|
};
|
|
7658
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6999
7659
|
groupName: string;
|
|
7660
|
+
newlinesInside?: "ignore" | number;
|
|
7000
7661
|
order?: "asc" | "desc";
|
|
7001
|
-
|
|
7002
|
-
|
|
7662
|
+
anyOf: [{
|
|
7663
|
+
elementNamePattern?: ({
|
|
7664
|
+
pattern: string;
|
|
7665
|
+
flags?: string;
|
|
7666
|
+
} | string)[] | ({
|
|
7667
|
+
pattern: string;
|
|
7668
|
+
flags?: string;
|
|
7669
|
+
} | string);
|
|
7003
7670
|
selector?: "literal" | "spread";
|
|
7671
|
+
}, ...{
|
|
7004
7672
|
elementNamePattern?: ({
|
|
7005
7673
|
pattern: string;
|
|
7006
7674
|
flags?: string;
|
|
@@ -7008,17 +7676,17 @@ type PerfectionistSortSets = {
|
|
|
7008
7676
|
pattern: string;
|
|
7009
7677
|
flags?: string;
|
|
7010
7678
|
} | string);
|
|
7011
|
-
|
|
7679
|
+
selector?: "literal" | "spread";
|
|
7680
|
+
}[]];
|
|
7012
7681
|
} | {
|
|
7013
|
-
newlinesInside?: ("always" | "never") | number;
|
|
7014
7682
|
fallbackSort?: {
|
|
7683
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7015
7684
|
order?: "asc" | "desc";
|
|
7016
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
7017
7685
|
};
|
|
7686
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7018
7687
|
groupName: string;
|
|
7688
|
+
newlinesInside?: "ignore" | number;
|
|
7019
7689
|
order?: "asc" | "desc";
|
|
7020
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
7021
|
-
selector?: "literal" | "spread";
|
|
7022
7690
|
elementNamePattern?: ({
|
|
7023
7691
|
pattern: string;
|
|
7024
7692
|
flags?: string;
|
|
@@ -7026,7 +7694,23 @@ type PerfectionistSortSets = {
|
|
|
7026
7694
|
pattern: string;
|
|
7027
7695
|
flags?: string;
|
|
7028
7696
|
} | string);
|
|
7697
|
+
selector?: "literal" | "spread";
|
|
7698
|
+
})[];
|
|
7699
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
7700
|
+
groups?: (string | [string, ...string[]] | {
|
|
7701
|
+
newlinesBetween: "ignore" | number;
|
|
7702
|
+
} | {
|
|
7703
|
+
group: string | [string, ...string[]];
|
|
7704
|
+
fallbackSort?: {
|
|
7705
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7706
|
+
order?: "asc" | "desc";
|
|
7707
|
+
};
|
|
7708
|
+
commentAbove?: string;
|
|
7709
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7710
|
+
newlinesInside?: "ignore" | number;
|
|
7711
|
+
order?: "asc" | "desc";
|
|
7029
7712
|
})[];
|
|
7713
|
+
newlinesBetween?: "ignore" | number;
|
|
7030
7714
|
useConfigurationIf?: {
|
|
7031
7715
|
allNamesMatchPattern?: ({
|
|
7032
7716
|
pattern: string;
|
|
@@ -7059,48 +7743,51 @@ type PerfectionistSortSets = {
|
|
|
7059
7743
|
} | string));
|
|
7060
7744
|
};
|
|
7061
7745
|
partitionByNewLine?: boolean;
|
|
7062
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
7063
|
-
groups?: (string | string[] | {
|
|
7064
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
7065
|
-
commentAbove?: string;
|
|
7066
|
-
})[];
|
|
7067
7746
|
}[];
|
|
7068
7747
|
// ----- perfectionist/sort-switch-case -----
|
|
7069
7748
|
type PerfectionistSortSwitchCase = [] | [{
|
|
7070
7749
|
fallbackSort?: {
|
|
7750
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7071
7751
|
order?: "asc" | "desc";
|
|
7072
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
7073
7752
|
};
|
|
7753
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7074
7754
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
7075
7755
|
ignoreCase?: boolean;
|
|
7076
7756
|
alphabet?: string;
|
|
7077
7757
|
locales?: string | string[];
|
|
7078
7758
|
order?: "asc" | "desc";
|
|
7079
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
7080
7759
|
}];
|
|
7081
7760
|
// ----- perfectionist/sort-union-types -----
|
|
7082
7761
|
type PerfectionistSortUnionTypes = {
|
|
7083
7762
|
fallbackSort?: {
|
|
7763
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7084
7764
|
order?: "asc" | "desc";
|
|
7085
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
7086
7765
|
};
|
|
7766
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7087
7767
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
7088
7768
|
ignoreCase?: boolean;
|
|
7089
7769
|
alphabet?: string;
|
|
7090
7770
|
locales?: string | string[];
|
|
7091
7771
|
order?: "asc" | "desc";
|
|
7092
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
7093
7772
|
customGroups?: ({
|
|
7094
|
-
newlinesInside?: ("always" | "never") | number;
|
|
7095
7773
|
fallbackSort?: {
|
|
7774
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7096
7775
|
order?: "asc" | "desc";
|
|
7097
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
7098
7776
|
};
|
|
7777
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7099
7778
|
groupName: string;
|
|
7779
|
+
newlinesInside?: "ignore" | number;
|
|
7100
7780
|
order?: "asc" | "desc";
|
|
7101
|
-
|
|
7102
|
-
|
|
7781
|
+
anyOf: [{
|
|
7782
|
+
elementNamePattern?: ({
|
|
7783
|
+
pattern: string;
|
|
7784
|
+
flags?: string;
|
|
7785
|
+
} | string)[] | ({
|
|
7786
|
+
pattern: string;
|
|
7787
|
+
flags?: string;
|
|
7788
|
+
} | string);
|
|
7103
7789
|
selector?: "intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union";
|
|
7790
|
+
}, ...{
|
|
7104
7791
|
elementNamePattern?: ({
|
|
7105
7792
|
pattern: string;
|
|
7106
7793
|
flags?: string;
|
|
@@ -7108,17 +7795,17 @@ type PerfectionistSortUnionTypes = {
|
|
|
7108
7795
|
pattern: string;
|
|
7109
7796
|
flags?: string;
|
|
7110
7797
|
} | string);
|
|
7111
|
-
|
|
7798
|
+
selector?: "intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union";
|
|
7799
|
+
}[]];
|
|
7112
7800
|
} | {
|
|
7113
|
-
newlinesInside?: ("always" | "never") | number;
|
|
7114
7801
|
fallbackSort?: {
|
|
7802
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7115
7803
|
order?: "asc" | "desc";
|
|
7116
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
7117
7804
|
};
|
|
7805
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7118
7806
|
groupName: string;
|
|
7807
|
+
newlinesInside?: "ignore" | number;
|
|
7119
7808
|
order?: "asc" | "desc";
|
|
7120
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
7121
|
-
selector?: "intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union";
|
|
7122
7809
|
elementNamePattern?: ({
|
|
7123
7810
|
pattern: string;
|
|
7124
7811
|
flags?: string;
|
|
@@ -7126,7 +7813,23 @@ type PerfectionistSortUnionTypes = {
|
|
|
7126
7813
|
pattern: string;
|
|
7127
7814
|
flags?: string;
|
|
7128
7815
|
} | string);
|
|
7816
|
+
selector?: "intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union";
|
|
7817
|
+
})[];
|
|
7818
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
7819
|
+
groups?: (string | [string, ...string[]] | {
|
|
7820
|
+
newlinesBetween: "ignore" | number;
|
|
7821
|
+
} | {
|
|
7822
|
+
group: string | [string, ...string[]];
|
|
7823
|
+
fallbackSort?: {
|
|
7824
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7825
|
+
order?: "asc" | "desc";
|
|
7826
|
+
};
|
|
7827
|
+
commentAbove?: string;
|
|
7828
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7829
|
+
newlinesInside?: "ignore" | number;
|
|
7830
|
+
order?: "asc" | "desc";
|
|
7129
7831
|
})[];
|
|
7832
|
+
newlinesBetween?: "ignore" | number;
|
|
7130
7833
|
partitionByComment?: boolean | (({
|
|
7131
7834
|
pattern: string;
|
|
7132
7835
|
flags?: string;
|
|
@@ -7150,35 +7853,38 @@ type PerfectionistSortUnionTypes = {
|
|
|
7150
7853
|
} | string));
|
|
7151
7854
|
};
|
|
7152
7855
|
partitionByNewLine?: boolean;
|
|
7153
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
7154
|
-
groups?: (string | string[] | {
|
|
7155
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
7156
|
-
commentAbove?: string;
|
|
7157
|
-
})[];
|
|
7158
7856
|
}[];
|
|
7159
7857
|
// ----- perfectionist/sort-variable-declarations -----
|
|
7160
7858
|
type PerfectionistSortVariableDeclarations = [] | [{
|
|
7161
7859
|
fallbackSort?: {
|
|
7860
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7162
7861
|
order?: "asc" | "desc";
|
|
7163
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
7164
7862
|
};
|
|
7863
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7165
7864
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
7166
7865
|
ignoreCase?: boolean;
|
|
7167
7866
|
alphabet?: string;
|
|
7168
7867
|
locales?: string | string[];
|
|
7169
7868
|
order?: "asc" | "desc";
|
|
7170
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
7171
7869
|
customGroups?: ({
|
|
7172
|
-
newlinesInside?: ("always" | "never") | number;
|
|
7173
7870
|
fallbackSort?: {
|
|
7871
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7174
7872
|
order?: "asc" | "desc";
|
|
7175
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
7176
7873
|
};
|
|
7874
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7177
7875
|
groupName: string;
|
|
7876
|
+
newlinesInside?: "ignore" | number;
|
|
7178
7877
|
order?: "asc" | "desc";
|
|
7179
|
-
|
|
7180
|
-
|
|
7878
|
+
anyOf: [{
|
|
7879
|
+
elementNamePattern?: ({
|
|
7880
|
+
pattern: string;
|
|
7881
|
+
flags?: string;
|
|
7882
|
+
} | string)[] | ({
|
|
7883
|
+
pattern: string;
|
|
7884
|
+
flags?: string;
|
|
7885
|
+
} | string);
|
|
7181
7886
|
selector?: "initialized" | "uninitialized";
|
|
7887
|
+
}, ...{
|
|
7182
7888
|
elementNamePattern?: ({
|
|
7183
7889
|
pattern: string;
|
|
7184
7890
|
flags?: string;
|
|
@@ -7186,17 +7892,17 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
7186
7892
|
pattern: string;
|
|
7187
7893
|
flags?: string;
|
|
7188
7894
|
} | string);
|
|
7189
|
-
|
|
7895
|
+
selector?: "initialized" | "uninitialized";
|
|
7896
|
+
}[]];
|
|
7190
7897
|
} | {
|
|
7191
|
-
newlinesInside?: ("always" | "never") | number;
|
|
7192
7898
|
fallbackSort?: {
|
|
7899
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7193
7900
|
order?: "asc" | "desc";
|
|
7194
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
7195
7901
|
};
|
|
7902
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7196
7903
|
groupName: string;
|
|
7904
|
+
newlinesInside?: "ignore" | number;
|
|
7197
7905
|
order?: "asc" | "desc";
|
|
7198
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
7199
|
-
selector?: "initialized" | "uninitialized";
|
|
7200
7906
|
elementNamePattern?: ({
|
|
7201
7907
|
pattern: string;
|
|
7202
7908
|
flags?: string;
|
|
@@ -7204,7 +7910,23 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
7204
7910
|
pattern: string;
|
|
7205
7911
|
flags?: string;
|
|
7206
7912
|
} | string);
|
|
7913
|
+
selector?: "initialized" | "uninitialized";
|
|
7914
|
+
})[];
|
|
7915
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
7916
|
+
groups?: (string | [string, ...string[]] | {
|
|
7917
|
+
newlinesBetween: "ignore" | number;
|
|
7918
|
+
} | {
|
|
7919
|
+
group: string | [string, ...string[]];
|
|
7920
|
+
fallbackSort?: {
|
|
7921
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7922
|
+
order?: "asc" | "desc";
|
|
7923
|
+
};
|
|
7924
|
+
commentAbove?: string;
|
|
7925
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7926
|
+
newlinesInside?: "ignore" | number;
|
|
7927
|
+
order?: "asc" | "desc";
|
|
7207
7928
|
})[];
|
|
7929
|
+
newlinesBetween?: "ignore" | number;
|
|
7208
7930
|
partitionByComment?: boolean | (({
|
|
7209
7931
|
pattern: string;
|
|
7210
7932
|
flags?: string;
|
|
@@ -7228,11 +7950,6 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
7228
7950
|
} | string));
|
|
7229
7951
|
};
|
|
7230
7952
|
partitionByNewLine?: boolean;
|
|
7231
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
7232
|
-
groups?: (string | string[] | {
|
|
7233
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
7234
|
-
commentAbove?: string;
|
|
7235
|
-
})[];
|
|
7236
7953
|
}];
|
|
7237
7954
|
//#endregion
|
|
7238
7955
|
//#region src/generated/dts/pnpm.d.ts
|
|
@@ -11411,6 +12128,11 @@ interface TypescriptRuleOptions {
|
|
|
11411
12128
|
* @see https://typescript-eslint.io/rules/strict-boolean-expressions
|
|
11412
12129
|
*/
|
|
11413
12130
|
"@typescript-eslint/strict-boolean-expressions"?: Linter.RuleEntry<TypescriptEslintStrictBooleanExpressions>;
|
|
12131
|
+
/**
|
|
12132
|
+
* Disallow passing a value-returning function in a position accepting a void function
|
|
12133
|
+
* @see https://typescript-eslint.io/rules/strict-void-return
|
|
12134
|
+
*/
|
|
12135
|
+
"@typescript-eslint/strict-void-return"?: Linter.RuleEntry<TypescriptEslintStrictVoidReturn>;
|
|
11414
12136
|
/**
|
|
11415
12137
|
* Require switch-case statements to be exhaustive
|
|
11416
12138
|
* @see https://typescript-eslint.io/rules/switch-exhaustiveness-check
|
|
@@ -11447,6 +12169,11 @@ interface TypescriptRuleOptions {
|
|
|
11447
12169
|
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/consistent-type-specifier-style/README.md
|
|
11448
12170
|
*/
|
|
11449
12171
|
"import/consistent-type-specifier-style"?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
|
|
12172
|
+
/**
|
|
12173
|
+
* Ensure all exports appear after other statements.
|
|
12174
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/exports-last/README.md
|
|
12175
|
+
*/
|
|
12176
|
+
"import/exports-last"?: Linter.RuleEntry<[]>;
|
|
11450
12177
|
/**
|
|
11451
12178
|
* Ensure all imports appear before other statements.
|
|
11452
12179
|
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/first/README.md
|
|
@@ -11477,6 +12204,11 @@ interface TypescriptRuleOptions {
|
|
|
11477
12204
|
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/no-named-default/README.md
|
|
11478
12205
|
*/
|
|
11479
12206
|
"import/no-named-default"?: Linter.RuleEntry<[]>;
|
|
12207
|
+
/**
|
|
12208
|
+
* Prefer a default export if module exports a single name or multiple names.
|
|
12209
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/prefer-default-export/README.md
|
|
12210
|
+
*/
|
|
12211
|
+
"import/prefer-default-export"?: Linter.RuleEntry<ImportPreferDefaultExport>;
|
|
11480
12212
|
}
|
|
11481
12213
|
/* ======= Declarations ======= */
|
|
11482
12214
|
// ----- @typescript-eslint/array-type -----
|
|
@@ -12195,6 +12927,9 @@ type TypescriptEslintNoUnusedVars = [] | [("all" | "local") | {
|
|
|
12195
12927
|
caughtErrors?: "all" | "none";
|
|
12196
12928
|
caughtErrorsIgnorePattern?: string;
|
|
12197
12929
|
destructuredArrayIgnorePattern?: string;
|
|
12930
|
+
enableAutofixRemoval?: {
|
|
12931
|
+
imports?: boolean;
|
|
12932
|
+
};
|
|
12198
12933
|
ignoreClassWithStaticInitBlock?: boolean;
|
|
12199
12934
|
ignoreRestSiblings?: boolean;
|
|
12200
12935
|
ignoreUsingDeclarations?: boolean;
|
|
@@ -12395,6 +13130,10 @@ type TypescriptEslintStrictBooleanExpressions = [] | [{
|
|
|
12395
13130
|
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
|
|
12396
13131
|
allowString?: boolean;
|
|
12397
13132
|
}];
|
|
13133
|
+
// ----- @typescript-eslint/strict-void-return -----
|
|
13134
|
+
type TypescriptEslintStrictVoidReturn = [] | [{
|
|
13135
|
+
allowReturnAny?: boolean;
|
|
13136
|
+
}];
|
|
12398
13137
|
// ----- @typescript-eslint/switch-exhaustiveness-check -----
|
|
12399
13138
|
type TypescriptEslintSwitchExhaustivenessCheck = [] | [{
|
|
12400
13139
|
allowDefaultCaseForExhaustiveSwitch?: boolean;
|
|
@@ -12442,6 +13181,10 @@ type ImportNewlineAfterImport = [] | [{
|
|
|
12442
13181
|
type ImportNoDuplicates = [] | [{
|
|
12443
13182
|
"prefer-inline"?: boolean;
|
|
12444
13183
|
}];
|
|
13184
|
+
// ----- import/prefer-default-export -----
|
|
13185
|
+
type ImportPreferDefaultExport = [] | [{
|
|
13186
|
+
target?: "single" | "any";
|
|
13187
|
+
}];
|
|
12445
13188
|
//#endregion
|
|
12446
13189
|
//#region src/generated/dts/unicorn.d.ts
|
|
12447
13190
|
interface UnicornRuleOptions {
|
|
@@ -13449,7 +14192,7 @@ interface VitestRuleOptions {
|
|
|
13449
14192
|
* disallow conditional expects
|
|
13450
14193
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-expect.md
|
|
13451
14194
|
*/
|
|
13452
|
-
"vitest/no-conditional-expect"?: Linter.RuleEntry<
|
|
14195
|
+
"vitest/no-conditional-expect"?: Linter.RuleEntry<VitestNoConditionalExpect>;
|
|
13453
14196
|
/**
|
|
13454
14197
|
* disallow conditional tests
|
|
13455
14198
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-in-test.md
|
|
@@ -13541,6 +14284,11 @@ interface VitestRuleOptions {
|
|
|
13541
14284
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-return-statement.md
|
|
13542
14285
|
*/
|
|
13543
14286
|
"vitest/no-test-return-statement"?: Linter.RuleEntry<[]>;
|
|
14287
|
+
/**
|
|
14288
|
+
* Disallow unnecessary async function wrapper for expected promises
|
|
14289
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-unneeded-async-expect-function.md
|
|
14290
|
+
*/
|
|
14291
|
+
"vitest/no-unneeded-async-expect-function"?: Linter.RuleEntry<[]>;
|
|
13544
14292
|
/**
|
|
13545
14293
|
* Enforce padding around `afterAll` blocks
|
|
13546
14294
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-after-all-blocks.md
|
|
@@ -13650,7 +14398,7 @@ interface VitestRuleOptions {
|
|
|
13650
14398
|
* prefer dynamic import in mock
|
|
13651
14399
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-import-in-mock.md
|
|
13652
14400
|
*/
|
|
13653
|
-
"vitest/prefer-import-in-mock"?: Linter.RuleEntry<
|
|
14401
|
+
"vitest/prefer-import-in-mock"?: Linter.RuleEntry<VitestPreferImportInMock>;
|
|
13654
14402
|
/**
|
|
13655
14403
|
* enforce importing Vitest globals
|
|
13656
14404
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-importing-vitest-globals.md
|
|
@@ -13666,6 +14414,11 @@ interface VitestRuleOptions {
|
|
|
13666
14414
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-mock-promise-shorthand.md
|
|
13667
14415
|
*/
|
|
13668
14416
|
"vitest/prefer-mock-promise-shorthand"?: Linter.RuleEntry<[]>;
|
|
14417
|
+
/**
|
|
14418
|
+
* Prefer mock return shorthands
|
|
14419
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-mock-return-shorthand.md
|
|
14420
|
+
*/
|
|
14421
|
+
"vitest/prefer-mock-return-shorthand"?: Linter.RuleEntry<[]>;
|
|
13669
14422
|
/**
|
|
13670
14423
|
* enforce including a hint with external snapshots
|
|
13671
14424
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-snapshot-hint.md
|
|
@@ -13711,6 +14464,11 @@ interface VitestRuleOptions {
|
|
|
13711
14464
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-contain.md
|
|
13712
14465
|
*/
|
|
13713
14466
|
"vitest/prefer-to-contain"?: Linter.RuleEntry<[]>;
|
|
14467
|
+
/**
|
|
14468
|
+
* Suggest using `toHaveBeenCalledTimes()`
|
|
14469
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-been-called-times.md
|
|
14470
|
+
*/
|
|
14471
|
+
"vitest/prefer-to-have-been-called-times"?: Linter.RuleEntry<[]>;
|
|
13714
14472
|
/**
|
|
13715
14473
|
* enforce using toHaveLength()
|
|
13716
14474
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-length.md
|
|
@@ -13736,11 +14494,6 @@ interface VitestRuleOptions {
|
|
|
13736
14494
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
|
|
13737
14495
|
*/
|
|
13738
14496
|
"vitest/require-hook"?: Linter.RuleEntry<VitestRequireHook>;
|
|
13739
|
-
/**
|
|
13740
|
-
* require usage of import in vi.mock()
|
|
13741
|
-
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-import-vi-mock.md
|
|
13742
|
-
*/
|
|
13743
|
-
"vitest/require-import-vi-mock"?: Linter.RuleEntry<[]>;
|
|
13744
14497
|
/**
|
|
13745
14498
|
* require local Test Context for concurrent snapshot tests
|
|
13746
14499
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-local-test-context-for-concurrent-snapshots.md
|
|
@@ -13751,6 +14504,11 @@ interface VitestRuleOptions {
|
|
|
13751
14504
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-mock-type-parameters.md
|
|
13752
14505
|
*/
|
|
13753
14506
|
"vitest/require-mock-type-parameters"?: Linter.RuleEntry<VitestRequireMockTypeParameters>;
|
|
14507
|
+
/**
|
|
14508
|
+
* require tests to declare a timeout
|
|
14509
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-test-timeout.md
|
|
14510
|
+
*/
|
|
14511
|
+
"vitest/require-test-timeout"?: Linter.RuleEntry<[]>;
|
|
13754
14512
|
/**
|
|
13755
14513
|
* require toThrow() to be called with an error message
|
|
13756
14514
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-to-throw-message.md
|
|
@@ -13822,6 +14580,10 @@ type VitestMaxExpects = [] | [{
|
|
|
13822
14580
|
type VitestMaxNestedDescribe = [] | [{
|
|
13823
14581
|
max?: number;
|
|
13824
14582
|
}];
|
|
14583
|
+
// ----- vitest/no-conditional-expect -----
|
|
14584
|
+
type VitestNoConditionalExpect = [] | [{
|
|
14585
|
+
expectAssertions?: boolean;
|
|
14586
|
+
}];
|
|
13825
14587
|
// ----- vitest/no-focused-tests -----
|
|
13826
14588
|
type VitestNoFocusedTests = [] | [{
|
|
13827
14589
|
fixable?: boolean;
|
|
@@ -13856,6 +14618,10 @@ type VitestPreferExpectAssertions = [] | [{
|
|
|
13856
14618
|
onlyFunctionsWithExpectInLoop?: boolean;
|
|
13857
14619
|
onlyFunctionsWithExpectInCallback?: boolean;
|
|
13858
14620
|
}];
|
|
14621
|
+
// ----- vitest/prefer-import-in-mock -----
|
|
14622
|
+
type VitestPreferImportInMock = [] | [{
|
|
14623
|
+
fixable?: boolean;
|
|
14624
|
+
}];
|
|
13859
14625
|
// ----- vitest/prefer-lowercase-title -----
|
|
13860
14626
|
type VitestPreferLowercaseTitle = [] | [{
|
|
13861
14627
|
ignore?: ("describe" | "test" | "it")[];
|
|
@@ -14563,7 +15329,7 @@ declare function defineConfig(options?: OptionsConfig & Config, ...userConfigs:
|
|
|
14563
15329
|
type DefineConfig = typeof defineConfig;
|
|
14564
15330
|
//#endregion
|
|
14565
15331
|
//#region src/generated/version.d.ts
|
|
14566
|
-
declare const VERSION = "0.4.
|
|
15332
|
+
declare const VERSION = "0.4.27";
|
|
14567
15333
|
declare namespace globs_d_exports {
|
|
14568
15334
|
export { GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_JS_SRC_EXT, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSCONFIG, GLOB_TSX, GLOB_TS_SRC_EXT, GLOB_YAML };
|
|
14569
15335
|
}
|