@jsse/eslint-config 0.4.25 → 0.4.26
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 +6 -0
- package/dist/{chunk-bekqDN86.js → chunk-VnP9fmST.js} +2 -2
- package/dist/cli.js +3 -3
- package/dist/index.d.ts +1199 -457
- package/dist/index.js +1077 -460
- package/dist/{version-B9ymZQwv.js → version-BLrZTyT6.js} +1 -1
- package/package.json +14 -14
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 {
|
|
@@ -5439,6 +5453,11 @@ interface PerfectionistRuleOptions {
|
|
|
5439
5453
|
* @see https://perfectionist.dev/rules/sort-enums
|
|
5440
5454
|
*/
|
|
5441
5455
|
"perfectionist/sort-enums"?: Linter.RuleEntry<PerfectionistSortEnums>;
|
|
5456
|
+
/**
|
|
5457
|
+
* Enforce sorted export attributes.
|
|
5458
|
+
* @see https://perfectionist.dev/rules/sort-export-attributes
|
|
5459
|
+
*/
|
|
5460
|
+
"perfectionist/sort-export-attributes"?: Linter.RuleEntry<PerfectionistSortExportAttributes>;
|
|
5442
5461
|
/**
|
|
5443
5462
|
* Enforce sorted exports.
|
|
5444
5463
|
* @see https://perfectionist.dev/rules/sort-exports
|
|
@@ -5449,6 +5468,11 @@ interface PerfectionistRuleOptions {
|
|
|
5449
5468
|
* @see https://perfectionist.dev/rules/sort-heritage-clauses
|
|
5450
5469
|
*/
|
|
5451
5470
|
"perfectionist/sort-heritage-clauses"?: Linter.RuleEntry<PerfectionistSortHeritageClauses>;
|
|
5471
|
+
/**
|
|
5472
|
+
* Enforce sorted import attributes.
|
|
5473
|
+
* @see https://perfectionist.dev/rules/sort-import-attributes
|
|
5474
|
+
*/
|
|
5475
|
+
"perfectionist/sort-import-attributes"?: Linter.RuleEntry<PerfectionistSortImportAttributes>;
|
|
5452
5476
|
/**
|
|
5453
5477
|
* Enforce sorted imports.
|
|
5454
5478
|
* @see https://perfectionist.dev/rules/sort-imports
|
|
@@ -5524,27 +5548,34 @@ interface PerfectionistRuleOptions {
|
|
|
5524
5548
|
// ----- perfectionist/sort-array-includes -----
|
|
5525
5549
|
type PerfectionistSortArrayIncludes = {
|
|
5526
5550
|
fallbackSort?: {
|
|
5551
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5527
5552
|
order?: "asc" | "desc";
|
|
5528
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5529
5553
|
};
|
|
5554
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5530
5555
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
5531
5556
|
ignoreCase?: boolean;
|
|
5532
5557
|
alphabet?: string;
|
|
5533
5558
|
locales?: string | string[];
|
|
5534
5559
|
order?: "asc" | "desc";
|
|
5535
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5536
|
-
groupKind?: "mixed" | "literals-first" | "spreads-first";
|
|
5537
5560
|
customGroups?: ({
|
|
5538
|
-
newlinesInside?: ("always" | "never") | number;
|
|
5539
5561
|
fallbackSort?: {
|
|
5562
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5540
5563
|
order?: "asc" | "desc";
|
|
5541
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5542
5564
|
};
|
|
5565
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5543
5566
|
groupName: string;
|
|
5567
|
+
newlinesInside?: "ignore" | number;
|
|
5544
5568
|
order?: "asc" | "desc";
|
|
5545
|
-
|
|
5546
|
-
|
|
5569
|
+
anyOf: [{
|
|
5570
|
+
elementNamePattern?: ({
|
|
5571
|
+
pattern: string;
|
|
5572
|
+
flags?: string;
|
|
5573
|
+
} | string)[] | ({
|
|
5574
|
+
pattern: string;
|
|
5575
|
+
flags?: string;
|
|
5576
|
+
} | string);
|
|
5547
5577
|
selector?: "literal" | "spread";
|
|
5578
|
+
}, ...{
|
|
5548
5579
|
elementNamePattern?: ({
|
|
5549
5580
|
pattern: string;
|
|
5550
5581
|
flags?: string;
|
|
@@ -5552,17 +5583,17 @@ type PerfectionistSortArrayIncludes = {
|
|
|
5552
5583
|
pattern: string;
|
|
5553
5584
|
flags?: string;
|
|
5554
5585
|
} | string);
|
|
5555
|
-
|
|
5586
|
+
selector?: "literal" | "spread";
|
|
5587
|
+
}[]];
|
|
5556
5588
|
} | {
|
|
5557
|
-
newlinesInside?: ("always" | "never") | number;
|
|
5558
5589
|
fallbackSort?: {
|
|
5590
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5559
5591
|
order?: "asc" | "desc";
|
|
5560
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5561
5592
|
};
|
|
5593
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5562
5594
|
groupName: string;
|
|
5595
|
+
newlinesInside?: "ignore" | number;
|
|
5563
5596
|
order?: "asc" | "desc";
|
|
5564
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5565
|
-
selector?: "literal" | "spread";
|
|
5566
5597
|
elementNamePattern?: ({
|
|
5567
5598
|
pattern: string;
|
|
5568
5599
|
flags?: string;
|
|
@@ -5570,7 +5601,23 @@ type PerfectionistSortArrayIncludes = {
|
|
|
5570
5601
|
pattern: string;
|
|
5571
5602
|
flags?: string;
|
|
5572
5603
|
} | string);
|
|
5604
|
+
selector?: "literal" | "spread";
|
|
5605
|
+
})[];
|
|
5606
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
5607
|
+
groups?: (string | [string, ...string[]] | {
|
|
5608
|
+
newlinesBetween: "ignore" | number;
|
|
5609
|
+
} | {
|
|
5610
|
+
group: string | [string, ...string[]];
|
|
5611
|
+
fallbackSort?: {
|
|
5612
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5613
|
+
order?: "asc" | "desc";
|
|
5614
|
+
};
|
|
5615
|
+
commentAbove?: string;
|
|
5616
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5617
|
+
newlinesInside?: "ignore" | number;
|
|
5618
|
+
order?: "asc" | "desc";
|
|
5573
5619
|
})[];
|
|
5620
|
+
newlinesBetween?: "ignore" | number;
|
|
5574
5621
|
useConfigurationIf?: {
|
|
5575
5622
|
allNamesMatchPattern?: ({
|
|
5576
5623
|
pattern: string;
|
|
@@ -5603,34 +5650,36 @@ type PerfectionistSortArrayIncludes = {
|
|
|
5603
5650
|
} | string));
|
|
5604
5651
|
};
|
|
5605
5652
|
partitionByNewLine?: boolean;
|
|
5606
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
5607
|
-
groups?: (string | string[] | {
|
|
5608
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
5609
|
-
commentAbove?: string;
|
|
5610
|
-
})[];
|
|
5611
5653
|
}[];
|
|
5612
5654
|
// ----- perfectionist/sort-classes -----
|
|
5613
5655
|
type PerfectionistSortClasses = [] | [{
|
|
5614
5656
|
fallbackSort?: {
|
|
5657
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5615
5658
|
order?: "asc" | "desc";
|
|
5616
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5617
5659
|
};
|
|
5660
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5618
5661
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
5619
5662
|
ignoreCase?: boolean;
|
|
5620
5663
|
alphabet?: string;
|
|
5621
5664
|
locales?: string | string[];
|
|
5622
5665
|
order?: "asc" | "desc";
|
|
5623
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5624
5666
|
customGroups?: ({
|
|
5625
|
-
newlinesInside?: ("always" | "never") | number;
|
|
5626
5667
|
fallbackSort?: {
|
|
5668
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5627
5669
|
order?: "asc" | "desc";
|
|
5628
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5629
5670
|
};
|
|
5671
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5630
5672
|
groupName: string;
|
|
5673
|
+
newlinesInside?: "ignore" | number;
|
|
5631
5674
|
order?: "asc" | "desc";
|
|
5632
|
-
|
|
5633
|
-
|
|
5675
|
+
anyOf: [{
|
|
5676
|
+
elementNamePattern?: ({
|
|
5677
|
+
pattern: string;
|
|
5678
|
+
flags?: string;
|
|
5679
|
+
} | string)[] | ({
|
|
5680
|
+
pattern: string;
|
|
5681
|
+
flags?: string;
|
|
5682
|
+
} | string);
|
|
5634
5683
|
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
5635
5684
|
selector?: "accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method";
|
|
5636
5685
|
decoratorNamePattern?: ({
|
|
@@ -5647,6 +5696,7 @@ type PerfectionistSortClasses = [] | [{
|
|
|
5647
5696
|
pattern: string;
|
|
5648
5697
|
flags?: string;
|
|
5649
5698
|
} | string);
|
|
5699
|
+
}, ...{
|
|
5650
5700
|
elementNamePattern?: ({
|
|
5651
5701
|
pattern: string;
|
|
5652
5702
|
flags?: string;
|
|
@@ -5654,33 +5704,49 @@ type PerfectionistSortClasses = [] | [{
|
|
|
5654
5704
|
pattern: string;
|
|
5655
5705
|
flags?: string;
|
|
5656
5706
|
} | string);
|
|
5657
|
-
|
|
5707
|
+
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
5708
|
+
selector?: "accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method";
|
|
5709
|
+
decoratorNamePattern?: ({
|
|
5710
|
+
pattern: string;
|
|
5711
|
+
flags?: string;
|
|
5712
|
+
} | string)[] | ({
|
|
5713
|
+
pattern: string;
|
|
5714
|
+
flags?: string;
|
|
5715
|
+
} | string);
|
|
5716
|
+
elementValuePattern?: ({
|
|
5717
|
+
pattern: string;
|
|
5718
|
+
flags?: string;
|
|
5719
|
+
} | string)[] | ({
|
|
5720
|
+
pattern: string;
|
|
5721
|
+
flags?: string;
|
|
5722
|
+
} | string);
|
|
5723
|
+
}[]];
|
|
5658
5724
|
} | {
|
|
5659
|
-
newlinesInside?: ("always" | "never") | number;
|
|
5660
5725
|
fallbackSort?: {
|
|
5726
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5661
5727
|
order?: "asc" | "desc";
|
|
5662
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5663
5728
|
};
|
|
5729
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5664
5730
|
groupName: string;
|
|
5731
|
+
newlinesInside?: "ignore" | number;
|
|
5665
5732
|
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?: ({
|
|
5733
|
+
elementNamePattern?: ({
|
|
5670
5734
|
pattern: string;
|
|
5671
5735
|
flags?: string;
|
|
5672
5736
|
} | string)[] | ({
|
|
5673
5737
|
pattern: string;
|
|
5674
5738
|
flags?: string;
|
|
5675
5739
|
} | string);
|
|
5676
|
-
|
|
5740
|
+
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
5741
|
+
selector?: "accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method";
|
|
5742
|
+
decoratorNamePattern?: ({
|
|
5677
5743
|
pattern: string;
|
|
5678
5744
|
flags?: string;
|
|
5679
5745
|
} | string)[] | ({
|
|
5680
5746
|
pattern: string;
|
|
5681
5747
|
flags?: string;
|
|
5682
5748
|
} | string);
|
|
5683
|
-
|
|
5749
|
+
elementValuePattern?: ({
|
|
5684
5750
|
pattern: string;
|
|
5685
5751
|
flags?: string;
|
|
5686
5752
|
} | string)[] | ({
|
|
@@ -5688,6 +5754,21 @@ type PerfectionistSortClasses = [] | [{
|
|
|
5688
5754
|
flags?: string;
|
|
5689
5755
|
} | string);
|
|
5690
5756
|
})[];
|
|
5757
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
5758
|
+
groups?: (string | [string, ...string[]] | {
|
|
5759
|
+
newlinesBetween: "ignore" | number;
|
|
5760
|
+
} | {
|
|
5761
|
+
group: string | [string, ...string[]];
|
|
5762
|
+
fallbackSort?: {
|
|
5763
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5764
|
+
order?: "asc" | "desc";
|
|
5765
|
+
};
|
|
5766
|
+
commentAbove?: string;
|
|
5767
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5768
|
+
newlinesInside?: "ignore" | number;
|
|
5769
|
+
order?: "asc" | "desc";
|
|
5770
|
+
})[];
|
|
5771
|
+
newlinesBetween?: "ignore" | number;
|
|
5691
5772
|
ignoreCallbackDependenciesPatterns?: ({
|
|
5692
5773
|
pattern: string;
|
|
5693
5774
|
flags?: string;
|
|
@@ -5718,24 +5799,77 @@ type PerfectionistSortClasses = [] | [{
|
|
|
5718
5799
|
} | string));
|
|
5719
5800
|
};
|
|
5720
5801
|
partitionByNewLine?: boolean;
|
|
5721
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
5722
|
-
groups?: (string | string[] | {
|
|
5723
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
5724
|
-
commentAbove?: string;
|
|
5725
|
-
})[];
|
|
5726
5802
|
}];
|
|
5727
5803
|
// ----- perfectionist/sort-decorators -----
|
|
5728
|
-
type PerfectionistSortDecorators =
|
|
5804
|
+
type PerfectionistSortDecorators = {
|
|
5729
5805
|
fallbackSort?: {
|
|
5806
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5730
5807
|
order?: "asc" | "desc";
|
|
5731
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5732
5808
|
};
|
|
5809
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5733
5810
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
5734
5811
|
ignoreCase?: boolean;
|
|
5735
5812
|
alphabet?: string;
|
|
5736
5813
|
locales?: string | string[];
|
|
5737
5814
|
order?: "asc" | "desc";
|
|
5738
|
-
|
|
5815
|
+
customGroups?: ({
|
|
5816
|
+
fallbackSort?: {
|
|
5817
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5818
|
+
order?: "asc" | "desc";
|
|
5819
|
+
};
|
|
5820
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5821
|
+
groupName: string;
|
|
5822
|
+
newlinesInside?: "ignore" | number;
|
|
5823
|
+
order?: "asc" | "desc";
|
|
5824
|
+
anyOf: [{
|
|
5825
|
+
elementNamePattern?: ({
|
|
5826
|
+
pattern: string;
|
|
5827
|
+
flags?: string;
|
|
5828
|
+
} | string)[] | ({
|
|
5829
|
+
pattern: string;
|
|
5830
|
+
flags?: string;
|
|
5831
|
+
} | string);
|
|
5832
|
+
}, ...{
|
|
5833
|
+
elementNamePattern?: ({
|
|
5834
|
+
pattern: string;
|
|
5835
|
+
flags?: string;
|
|
5836
|
+
} | string)[] | ({
|
|
5837
|
+
pattern: string;
|
|
5838
|
+
flags?: string;
|
|
5839
|
+
} | string);
|
|
5840
|
+
}[]];
|
|
5841
|
+
} | {
|
|
5842
|
+
fallbackSort?: {
|
|
5843
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5844
|
+
order?: "asc" | "desc";
|
|
5845
|
+
};
|
|
5846
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5847
|
+
groupName: string;
|
|
5848
|
+
newlinesInside?: "ignore" | number;
|
|
5849
|
+
order?: "asc" | "desc";
|
|
5850
|
+
elementNamePattern?: ({
|
|
5851
|
+
pattern: string;
|
|
5852
|
+
flags?: string;
|
|
5853
|
+
} | string)[] | ({
|
|
5854
|
+
pattern: string;
|
|
5855
|
+
flags?: string;
|
|
5856
|
+
} | string);
|
|
5857
|
+
})[];
|
|
5858
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
5859
|
+
groups?: (string | [string, ...string[]] | {
|
|
5860
|
+
newlinesBetween: "ignore" | number;
|
|
5861
|
+
} | {
|
|
5862
|
+
group: string | [string, ...string[]];
|
|
5863
|
+
fallbackSort?: {
|
|
5864
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5865
|
+
order?: "asc" | "desc";
|
|
5866
|
+
};
|
|
5867
|
+
commentAbove?: string;
|
|
5868
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5869
|
+
newlinesInside?: "ignore" | number;
|
|
5870
|
+
order?: "asc" | "desc";
|
|
5871
|
+
})[];
|
|
5872
|
+
newlinesBetween?: "ignore" | number;
|
|
5739
5873
|
sortOnParameters?: boolean;
|
|
5740
5874
|
sortOnProperties?: boolean;
|
|
5741
5875
|
sortOnAccessors?: boolean;
|
|
@@ -5763,38 +5897,37 @@ type PerfectionistSortDecorators = [] | [{
|
|
|
5763
5897
|
flags?: string;
|
|
5764
5898
|
} | string));
|
|
5765
5899
|
};
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
};
|
|
5769
|
-
groups?: (string | string[] | {
|
|
5770
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
5771
|
-
commentAbove?: string;
|
|
5772
|
-
})[];
|
|
5773
|
-
}];
|
|
5900
|
+
partitionByNewLine?: boolean;
|
|
5901
|
+
}[];
|
|
5774
5902
|
// ----- perfectionist/sort-enums -----
|
|
5775
5903
|
type PerfectionistSortEnums = [] | [{
|
|
5776
5904
|
fallbackSort?: {
|
|
5905
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5777
5906
|
order?: "asc" | "desc";
|
|
5778
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5779
5907
|
};
|
|
5908
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5780
5909
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
5781
5910
|
ignoreCase?: boolean;
|
|
5782
5911
|
alphabet?: string;
|
|
5783
5912
|
locales?: string | string[];
|
|
5784
5913
|
order?: "asc" | "desc";
|
|
5785
|
-
|
|
5786
|
-
customGroups?: {
|
|
5787
|
-
[k: string]: (string | string[]) | undefined;
|
|
5788
|
-
} | ({
|
|
5789
|
-
newlinesInside?: ("always" | "never") | number;
|
|
5914
|
+
customGroups?: ({
|
|
5790
5915
|
fallbackSort?: {
|
|
5916
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5791
5917
|
order?: "asc" | "desc";
|
|
5792
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5793
5918
|
};
|
|
5919
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5794
5920
|
groupName: string;
|
|
5921
|
+
newlinesInside?: "ignore" | number;
|
|
5795
5922
|
order?: "asc" | "desc";
|
|
5796
|
-
|
|
5797
|
-
|
|
5923
|
+
anyOf: [{
|
|
5924
|
+
elementNamePattern?: ({
|
|
5925
|
+
pattern: string;
|
|
5926
|
+
flags?: string;
|
|
5927
|
+
} | string)[] | ({
|
|
5928
|
+
pattern: string;
|
|
5929
|
+
flags?: string;
|
|
5930
|
+
} | string);
|
|
5798
5931
|
elementValuePattern?: ({
|
|
5799
5932
|
pattern: string;
|
|
5800
5933
|
flags?: string;
|
|
@@ -5802,6 +5935,7 @@ type PerfectionistSortEnums = [] | [{
|
|
|
5802
5935
|
pattern: string;
|
|
5803
5936
|
flags?: string;
|
|
5804
5937
|
} | string);
|
|
5938
|
+
}, ...{
|
|
5805
5939
|
elementNamePattern?: ({
|
|
5806
5940
|
pattern: string;
|
|
5807
5941
|
flags?: string;
|
|
@@ -5809,24 +5943,31 @@ type PerfectionistSortEnums = [] | [{
|
|
|
5809
5943
|
pattern: string;
|
|
5810
5944
|
flags?: string;
|
|
5811
5945
|
} | string);
|
|
5812
|
-
|
|
5946
|
+
elementValuePattern?: ({
|
|
5947
|
+
pattern: string;
|
|
5948
|
+
flags?: string;
|
|
5949
|
+
} | string)[] | ({
|
|
5950
|
+
pattern: string;
|
|
5951
|
+
flags?: string;
|
|
5952
|
+
} | string);
|
|
5953
|
+
}[]];
|
|
5813
5954
|
} | {
|
|
5814
|
-
newlinesInside?: ("always" | "never") | number;
|
|
5815
5955
|
fallbackSort?: {
|
|
5956
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5816
5957
|
order?: "asc" | "desc";
|
|
5817
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5818
5958
|
};
|
|
5959
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5819
5960
|
groupName: string;
|
|
5961
|
+
newlinesInside?: "ignore" | number;
|
|
5820
5962
|
order?: "asc" | "desc";
|
|
5821
|
-
|
|
5822
|
-
elementValuePattern?: ({
|
|
5963
|
+
elementNamePattern?: ({
|
|
5823
5964
|
pattern: string;
|
|
5824
5965
|
flags?: string;
|
|
5825
5966
|
} | string)[] | ({
|
|
5826
5967
|
pattern: string;
|
|
5827
5968
|
flags?: string;
|
|
5828
5969
|
} | string);
|
|
5829
|
-
|
|
5970
|
+
elementValuePattern?: ({
|
|
5830
5971
|
pattern: string;
|
|
5831
5972
|
flags?: string;
|
|
5832
5973
|
} | string)[] | ({
|
|
@@ -5834,8 +5975,22 @@ type PerfectionistSortEnums = [] | [{
|
|
|
5834
5975
|
flags?: string;
|
|
5835
5976
|
} | string);
|
|
5836
5977
|
})[];
|
|
5837
|
-
|
|
5838
|
-
|
|
5978
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
5979
|
+
groups?: (string | [string, ...string[]] | {
|
|
5980
|
+
newlinesBetween: "ignore" | number;
|
|
5981
|
+
} | {
|
|
5982
|
+
group: string | [string, ...string[]];
|
|
5983
|
+
fallbackSort?: {
|
|
5984
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5985
|
+
order?: "asc" | "desc";
|
|
5986
|
+
};
|
|
5987
|
+
commentAbove?: string;
|
|
5988
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5989
|
+
newlinesInside?: "ignore" | number;
|
|
5990
|
+
order?: "asc" | "desc";
|
|
5991
|
+
})[];
|
|
5992
|
+
newlinesBetween?: "ignore" | number;
|
|
5993
|
+
sortByValue?: "always" | "ifNumericEnum" | "never";
|
|
5839
5994
|
partitionByComment?: boolean | (({
|
|
5840
5995
|
pattern: string;
|
|
5841
5996
|
flags?: string;
|
|
@@ -5859,37 +6014,37 @@ type PerfectionistSortEnums = [] | [{
|
|
|
5859
6014
|
} | string));
|
|
5860
6015
|
};
|
|
5861
6016
|
partitionByNewLine?: boolean;
|
|
5862
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
5863
|
-
groups?: (string | string[] | {
|
|
5864
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
5865
|
-
commentAbove?: string;
|
|
5866
|
-
})[];
|
|
5867
6017
|
}];
|
|
5868
|
-
// ----- perfectionist/sort-
|
|
5869
|
-
type
|
|
6018
|
+
// ----- perfectionist/sort-export-attributes -----
|
|
6019
|
+
type PerfectionistSortExportAttributes = {
|
|
5870
6020
|
fallbackSort?: {
|
|
6021
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5871
6022
|
order?: "asc" | "desc";
|
|
5872
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5873
6023
|
};
|
|
6024
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5874
6025
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
5875
6026
|
ignoreCase?: boolean;
|
|
5876
6027
|
alphabet?: string;
|
|
5877
6028
|
locales?: string | string[];
|
|
5878
6029
|
order?: "asc" | "desc";
|
|
5879
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5880
|
-
groupKind?: "mixed" | "values-first" | "types-first";
|
|
5881
6030
|
customGroups?: ({
|
|
5882
|
-
newlinesInside?: ("always" | "never") | number;
|
|
5883
6031
|
fallbackSort?: {
|
|
6032
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5884
6033
|
order?: "asc" | "desc";
|
|
5885
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5886
6034
|
};
|
|
6035
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5887
6036
|
groupName: string;
|
|
6037
|
+
newlinesInside?: "ignore" | number;
|
|
5888
6038
|
order?: "asc" | "desc";
|
|
5889
|
-
|
|
5890
|
-
|
|
5891
|
-
|
|
5892
|
-
|
|
6039
|
+
anyOf: [{
|
|
6040
|
+
elementNamePattern?: ({
|
|
6041
|
+
pattern: string;
|
|
6042
|
+
flags?: string;
|
|
6043
|
+
} | string)[] | ({
|
|
6044
|
+
pattern: string;
|
|
6045
|
+
flags?: string;
|
|
6046
|
+
} | string);
|
|
6047
|
+
}, ...{
|
|
5893
6048
|
elementNamePattern?: ({
|
|
5894
6049
|
pattern: string;
|
|
5895
6050
|
flags?: string;
|
|
@@ -5897,18 +6052,16 @@ type PerfectionistSortExports = {
|
|
|
5897
6052
|
pattern: string;
|
|
5898
6053
|
flags?: string;
|
|
5899
6054
|
} | string);
|
|
5900
|
-
}[];
|
|
6055
|
+
}[]];
|
|
5901
6056
|
} | {
|
|
5902
|
-
newlinesInside?: ("always" | "never") | number;
|
|
5903
6057
|
fallbackSort?: {
|
|
6058
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5904
6059
|
order?: "asc" | "desc";
|
|
5905
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5906
6060
|
};
|
|
6061
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5907
6062
|
groupName: string;
|
|
6063
|
+
newlinesInside?: "ignore" | number;
|
|
5908
6064
|
order?: "asc" | "desc";
|
|
5909
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5910
|
-
modifiers?: ("value" | "type")[];
|
|
5911
|
-
selector?: "export";
|
|
5912
6065
|
elementNamePattern?: ({
|
|
5913
6066
|
pattern: string;
|
|
5914
6067
|
flags?: string;
|
|
@@ -5917,6 +6070,21 @@ type PerfectionistSortExports = {
|
|
|
5917
6070
|
flags?: string;
|
|
5918
6071
|
} | string);
|
|
5919
6072
|
})[];
|
|
6073
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
6074
|
+
groups?: (string | [string, ...string[]] | {
|
|
6075
|
+
newlinesBetween: "ignore" | number;
|
|
6076
|
+
} | {
|
|
6077
|
+
group: string | [string, ...string[]];
|
|
6078
|
+
fallbackSort?: {
|
|
6079
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6080
|
+
order?: "asc" | "desc";
|
|
6081
|
+
};
|
|
6082
|
+
commentAbove?: string;
|
|
6083
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6084
|
+
newlinesInside?: "ignore" | number;
|
|
6085
|
+
order?: "asc" | "desc";
|
|
6086
|
+
})[];
|
|
6087
|
+
newlinesBetween?: "ignore" | number;
|
|
5920
6088
|
partitionByComment?: boolean | (({
|
|
5921
6089
|
pattern: string;
|
|
5922
6090
|
flags?: string;
|
|
@@ -5940,70 +6108,39 @@ type PerfectionistSortExports = {
|
|
|
5940
6108
|
} | string));
|
|
5941
6109
|
};
|
|
5942
6110
|
partitionByNewLine?: boolean;
|
|
5943
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
5944
|
-
groups?: (string | string[] | {
|
|
5945
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
5946
|
-
commentAbove?: string;
|
|
5947
|
-
})[];
|
|
5948
6111
|
}[];
|
|
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 = {
|
|
6112
|
+
// ----- perfectionist/sort-exports -----
|
|
6113
|
+
type PerfectionistSortExports = {
|
|
5971
6114
|
fallbackSort?: {
|
|
6115
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5972
6116
|
order?: "asc" | "desc";
|
|
5973
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5974
6117
|
};
|
|
6118
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5975
6119
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
5976
6120
|
ignoreCase?: boolean;
|
|
5977
6121
|
alphabet?: string;
|
|
5978
6122
|
locales?: string | string[];
|
|
5979
6123
|
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;
|
|
6124
|
+
customGroups?: ({
|
|
5990
6125
|
fallbackSort?: {
|
|
6126
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5991
6127
|
order?: "asc" | "desc";
|
|
5992
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
5993
6128
|
};
|
|
6129
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
5994
6130
|
groupName: string;
|
|
6131
|
+
newlinesInside?: "ignore" | number;
|
|
5995
6132
|
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?: ({
|
|
6133
|
+
anyOf: [{
|
|
6134
|
+
elementNamePattern?: ({
|
|
6001
6135
|
pattern: string;
|
|
6002
6136
|
flags?: string;
|
|
6003
6137
|
} | string)[] | ({
|
|
6004
6138
|
pattern: string;
|
|
6005
6139
|
flags?: string;
|
|
6006
6140
|
} | string);
|
|
6141
|
+
modifiers?: ("value" | "type" | "named" | "wildcard" | "multiline" | "singleline")[];
|
|
6142
|
+
selector?: "export";
|
|
6143
|
+
}, ...{
|
|
6007
6144
|
elementNamePattern?: ({
|
|
6008
6145
|
pattern: string;
|
|
6009
6146
|
flags?: string;
|
|
@@ -6011,25 +6148,18 @@ type PerfectionistSortImports = {
|
|
|
6011
6148
|
pattern: string;
|
|
6012
6149
|
flags?: string;
|
|
6013
6150
|
} | string);
|
|
6014
|
-
|
|
6151
|
+
modifiers?: ("value" | "type" | "named" | "wildcard" | "multiline" | "singleline")[];
|
|
6152
|
+
selector?: "export";
|
|
6153
|
+
}[]];
|
|
6015
6154
|
} | {
|
|
6016
|
-
newlinesInside?: ("always" | "never") | number;
|
|
6017
6155
|
fallbackSort?: {
|
|
6156
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6018
6157
|
order?: "asc" | "desc";
|
|
6019
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6020
6158
|
};
|
|
6159
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6021
6160
|
groupName: string;
|
|
6161
|
+
newlinesInside?: "ignore" | number;
|
|
6022
6162
|
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
6163
|
elementNamePattern?: ({
|
|
6034
6164
|
pattern: string;
|
|
6035
6165
|
flags?: string;
|
|
@@ -6037,15 +6167,24 @@ type PerfectionistSortImports = {
|
|
|
6037
6167
|
pattern: string;
|
|
6038
6168
|
flags?: string;
|
|
6039
6169
|
} | string);
|
|
6170
|
+
modifiers?: ("value" | "type" | "named" | "wildcard" | "multiline" | "singleline")[];
|
|
6171
|
+
selector?: "export";
|
|
6040
6172
|
})[];
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
|
|
6044
|
-
}
|
|
6045
|
-
|
|
6046
|
-
|
|
6047
|
-
|
|
6048
|
-
|
|
6173
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
6174
|
+
groups?: (string | [string, ...string[]] | {
|
|
6175
|
+
newlinesBetween: "ignore" | number;
|
|
6176
|
+
} | {
|
|
6177
|
+
group: string | [string, ...string[]];
|
|
6178
|
+
fallbackSort?: {
|
|
6179
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6180
|
+
order?: "asc" | "desc";
|
|
6181
|
+
};
|
|
6182
|
+
commentAbove?: string;
|
|
6183
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6184
|
+
newlinesInside?: "ignore" | number;
|
|
6185
|
+
order?: "asc" | "desc";
|
|
6186
|
+
})[];
|
|
6187
|
+
newlinesBetween?: "ignore" | number;
|
|
6049
6188
|
partitionByComment?: boolean | (({
|
|
6050
6189
|
pattern: string;
|
|
6051
6190
|
flags?: string;
|
|
@@ -6069,54 +6208,37 @@ type PerfectionistSortImports = {
|
|
|
6069
6208
|
} | string));
|
|
6070
6209
|
};
|
|
6071
6210
|
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
6211
|
}[];
|
|
6085
|
-
// ----- perfectionist/sort-
|
|
6086
|
-
type
|
|
6212
|
+
// ----- perfectionist/sort-heritage-clauses -----
|
|
6213
|
+
type PerfectionistSortHeritageClauses = {
|
|
6087
6214
|
fallbackSort?: {
|
|
6215
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6088
6216
|
order?: "asc" | "desc";
|
|
6089
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6090
|
-
sortBy?: "name" | "value";
|
|
6091
6217
|
};
|
|
6218
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6092
6219
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
6093
6220
|
ignoreCase?: boolean;
|
|
6094
6221
|
alphabet?: string;
|
|
6095
6222
|
locales?: string | string[];
|
|
6096
6223
|
order?: "asc" | "desc";
|
|
6097
|
-
|
|
6098
|
-
customGroups?: {
|
|
6099
|
-
[k: string]: (string | string[]) | undefined;
|
|
6100
|
-
} | ({
|
|
6101
|
-
newlinesInside?: ("always" | "never") | number;
|
|
6224
|
+
customGroups?: ({
|
|
6102
6225
|
fallbackSort?: {
|
|
6226
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6103
6227
|
order?: "asc" | "desc";
|
|
6104
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6105
|
-
sortBy?: "name" | "value";
|
|
6106
6228
|
};
|
|
6229
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6107
6230
|
groupName: string;
|
|
6231
|
+
newlinesInside?: "ignore" | number;
|
|
6108
6232
|
order?: "asc" | "desc";
|
|
6109
|
-
|
|
6110
|
-
|
|
6111
|
-
modifiers?: ("optional" | "required" | "multiline")[];
|
|
6112
|
-
selector?: "index-signature" | "member" | "method" | "multiline" | "property";
|
|
6113
|
-
elementValuePattern?: ({
|
|
6233
|
+
anyOf: [{
|
|
6234
|
+
elementNamePattern?: ({
|
|
6114
6235
|
pattern: string;
|
|
6115
6236
|
flags?: string;
|
|
6116
6237
|
} | string)[] | ({
|
|
6117
6238
|
pattern: string;
|
|
6118
6239
|
flags?: string;
|
|
6119
6240
|
} | string);
|
|
6241
|
+
}, ...{
|
|
6120
6242
|
elementNamePattern?: ({
|
|
6121
6243
|
pattern: string;
|
|
6122
6244
|
flags?: string;
|
|
@@ -6124,27 +6246,16 @@ type PerfectionistSortInterfaces = {
|
|
|
6124
6246
|
pattern: string;
|
|
6125
6247
|
flags?: string;
|
|
6126
6248
|
} | string);
|
|
6127
|
-
|
|
6128
|
-
}[];
|
|
6249
|
+
}[]];
|
|
6129
6250
|
} | {
|
|
6130
|
-
newlinesInside?: ("always" | "never") | number;
|
|
6131
6251
|
fallbackSort?: {
|
|
6252
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6132
6253
|
order?: "asc" | "desc";
|
|
6133
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6134
|
-
sortBy?: "name" | "value";
|
|
6135
6254
|
};
|
|
6255
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6136
6256
|
groupName: string;
|
|
6257
|
+
newlinesInside?: "ignore" | number;
|
|
6137
6258
|
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
6259
|
elementNamePattern?: ({
|
|
6149
6260
|
pattern: string;
|
|
6150
6261
|
flags?: string;
|
|
@@ -6152,25 +6263,231 @@ type PerfectionistSortInterfaces = {
|
|
|
6152
6263
|
pattern: string;
|
|
6153
6264
|
flags?: string;
|
|
6154
6265
|
} | string);
|
|
6155
|
-
sortBy?: "name" | "value";
|
|
6156
6266
|
})[];
|
|
6157
|
-
|
|
6158
|
-
|
|
6159
|
-
|
|
6160
|
-
|
|
6161
|
-
|
|
6162
|
-
|
|
6163
|
-
|
|
6164
|
-
|
|
6165
|
-
}
|
|
6166
|
-
|
|
6267
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
6268
|
+
groups?: (string | [string, ...string[]] | {
|
|
6269
|
+
newlinesBetween: "ignore" | number;
|
|
6270
|
+
} | {
|
|
6271
|
+
group: string | [string, ...string[]];
|
|
6272
|
+
fallbackSort?: {
|
|
6273
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6274
|
+
order?: "asc" | "desc";
|
|
6275
|
+
};
|
|
6276
|
+
commentAbove?: string;
|
|
6277
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6278
|
+
newlinesInside?: "ignore" | number;
|
|
6279
|
+
order?: "asc" | "desc";
|
|
6280
|
+
})[];
|
|
6281
|
+
newlinesBetween?: "ignore" | number;
|
|
6282
|
+
partitionByNewLine?: boolean;
|
|
6283
|
+
partitionByComment?: boolean | (({
|
|
6284
|
+
pattern: string;
|
|
6285
|
+
flags?: string;
|
|
6286
|
+
} | string)[] | ({
|
|
6287
|
+
pattern: string;
|
|
6288
|
+
flags?: string;
|
|
6289
|
+
} | string)) | {
|
|
6290
|
+
block?: boolean | (({
|
|
6291
|
+
pattern: string;
|
|
6292
|
+
flags?: string;
|
|
6293
|
+
} | string)[] | ({
|
|
6294
|
+
pattern: string;
|
|
6295
|
+
flags?: string;
|
|
6296
|
+
} | string));
|
|
6297
|
+
line?: boolean | (({
|
|
6298
|
+
pattern: string;
|
|
6299
|
+
flags?: string;
|
|
6300
|
+
} | string)[] | ({
|
|
6301
|
+
pattern: string;
|
|
6302
|
+
flags?: string;
|
|
6303
|
+
} | string));
|
|
6304
|
+
};
|
|
6305
|
+
}[];
|
|
6306
|
+
// ----- perfectionist/sort-import-attributes -----
|
|
6307
|
+
type PerfectionistSortImportAttributes = {
|
|
6308
|
+
fallbackSort?: {
|
|
6309
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6310
|
+
order?: "asc" | "desc";
|
|
6311
|
+
};
|
|
6312
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6313
|
+
specialCharacters?: "remove" | "trim" | "keep";
|
|
6314
|
+
ignoreCase?: boolean;
|
|
6315
|
+
alphabet?: string;
|
|
6316
|
+
locales?: string | string[];
|
|
6317
|
+
order?: "asc" | "desc";
|
|
6318
|
+
customGroups?: ({
|
|
6319
|
+
fallbackSort?: {
|
|
6320
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6321
|
+
order?: "asc" | "desc";
|
|
6322
|
+
};
|
|
6323
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6324
|
+
groupName: string;
|
|
6325
|
+
newlinesInside?: "ignore" | number;
|
|
6326
|
+
order?: "asc" | "desc";
|
|
6327
|
+
anyOf: [{
|
|
6328
|
+
elementNamePattern?: ({
|
|
6329
|
+
pattern: string;
|
|
6330
|
+
flags?: string;
|
|
6331
|
+
} | string)[] | ({
|
|
6332
|
+
pattern: string;
|
|
6333
|
+
flags?: string;
|
|
6334
|
+
} | string);
|
|
6335
|
+
}, ...{
|
|
6336
|
+
elementNamePattern?: ({
|
|
6337
|
+
pattern: string;
|
|
6338
|
+
flags?: string;
|
|
6339
|
+
} | string)[] | ({
|
|
6340
|
+
pattern: string;
|
|
6341
|
+
flags?: string;
|
|
6342
|
+
} | string);
|
|
6343
|
+
}[]];
|
|
6344
|
+
} | {
|
|
6345
|
+
fallbackSort?: {
|
|
6346
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6347
|
+
order?: "asc" | "desc";
|
|
6348
|
+
};
|
|
6349
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6350
|
+
groupName: string;
|
|
6351
|
+
newlinesInside?: "ignore" | number;
|
|
6352
|
+
order?: "asc" | "desc";
|
|
6353
|
+
elementNamePattern?: ({
|
|
6354
|
+
pattern: string;
|
|
6355
|
+
flags?: string;
|
|
6356
|
+
} | string)[] | ({
|
|
6357
|
+
pattern: string;
|
|
6358
|
+
flags?: string;
|
|
6359
|
+
} | string);
|
|
6360
|
+
})[];
|
|
6361
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
6362
|
+
groups?: (string | [string, ...string[]] | {
|
|
6363
|
+
newlinesBetween: "ignore" | number;
|
|
6364
|
+
} | {
|
|
6365
|
+
group: string | [string, ...string[]];
|
|
6366
|
+
fallbackSort?: {
|
|
6367
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6368
|
+
order?: "asc" | "desc";
|
|
6369
|
+
};
|
|
6370
|
+
commentAbove?: string;
|
|
6371
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6372
|
+
newlinesInside?: "ignore" | number;
|
|
6373
|
+
order?: "asc" | "desc";
|
|
6374
|
+
})[];
|
|
6375
|
+
newlinesBetween?: "ignore" | number;
|
|
6376
|
+
partitionByComment?: boolean | (({
|
|
6377
|
+
pattern: string;
|
|
6378
|
+
flags?: string;
|
|
6379
|
+
} | string)[] | ({
|
|
6380
|
+
pattern: string;
|
|
6381
|
+
flags?: string;
|
|
6382
|
+
} | string)) | {
|
|
6383
|
+
block?: boolean | (({
|
|
6384
|
+
pattern: string;
|
|
6385
|
+
flags?: string;
|
|
6386
|
+
} | string)[] | ({
|
|
6387
|
+
pattern: string;
|
|
6388
|
+
flags?: string;
|
|
6389
|
+
} | string));
|
|
6390
|
+
line?: boolean | (({
|
|
6391
|
+
pattern: string;
|
|
6392
|
+
flags?: string;
|
|
6393
|
+
} | string)[] | ({
|
|
6394
|
+
pattern: string;
|
|
6395
|
+
flags?: string;
|
|
6396
|
+
} | string));
|
|
6397
|
+
};
|
|
6398
|
+
partitionByNewLine?: boolean;
|
|
6399
|
+
}[];
|
|
6400
|
+
// ----- perfectionist/sort-imports -----
|
|
6401
|
+
type PerfectionistSortImports = {
|
|
6402
|
+
fallbackSort?: {
|
|
6403
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first";
|
|
6404
|
+
order?: "asc" | "desc";
|
|
6405
|
+
sortBy?: "specifier" | "path";
|
|
6406
|
+
};
|
|
6407
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first";
|
|
6408
|
+
specialCharacters?: "remove" | "trim" | "keep";
|
|
6409
|
+
ignoreCase?: boolean;
|
|
6410
|
+
alphabet?: string;
|
|
6411
|
+
locales?: string | string[];
|
|
6412
|
+
order?: "asc" | "desc";
|
|
6413
|
+
sortBy?: "specifier" | "path";
|
|
6414
|
+
customGroups?: ({
|
|
6415
|
+
fallbackSort?: {
|
|
6416
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first";
|
|
6417
|
+
order?: "asc" | "desc";
|
|
6418
|
+
sortBy?: "specifier" | "path";
|
|
6419
|
+
};
|
|
6420
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first";
|
|
6421
|
+
groupName: string;
|
|
6422
|
+
newlinesInside?: "ignore" | number;
|
|
6423
|
+
order?: "asc" | "desc";
|
|
6424
|
+
sortBy?: "specifier" | "path";
|
|
6425
|
+
anyOf: [{
|
|
6426
|
+
elementNamePattern?: ({
|
|
6427
|
+
pattern: string;
|
|
6428
|
+
flags?: string;
|
|
6429
|
+
} | string)[] | ({
|
|
6430
|
+
pattern: string;
|
|
6431
|
+
flags?: string;
|
|
6432
|
+
} | string);
|
|
6433
|
+
modifiers?: ("default" | "multiline" | "named" | "require" | "side-effect" | "singleline" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
6434
|
+
selector?: "side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type";
|
|
6435
|
+
}, ...{
|
|
6436
|
+
elementNamePattern?: ({
|
|
6437
|
+
pattern: string;
|
|
6438
|
+
flags?: string;
|
|
6439
|
+
} | string)[] | ({
|
|
6440
|
+
pattern: string;
|
|
6441
|
+
flags?: string;
|
|
6442
|
+
} | string);
|
|
6443
|
+
modifiers?: ("default" | "multiline" | "named" | "require" | "side-effect" | "singleline" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
6444
|
+
selector?: "side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type";
|
|
6445
|
+
}[]];
|
|
6446
|
+
} | {
|
|
6447
|
+
fallbackSort?: {
|
|
6448
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first";
|
|
6449
|
+
order?: "asc" | "desc";
|
|
6450
|
+
sortBy?: "specifier" | "path";
|
|
6451
|
+
};
|
|
6452
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first";
|
|
6453
|
+
groupName: string;
|
|
6454
|
+
newlinesInside?: "ignore" | number;
|
|
6455
|
+
order?: "asc" | "desc";
|
|
6456
|
+
sortBy?: "specifier" | "path";
|
|
6457
|
+
elementNamePattern?: ({
|
|
6167
6458
|
pattern: string;
|
|
6168
6459
|
flags?: string;
|
|
6169
6460
|
} | string)[] | ({
|
|
6170
6461
|
pattern: string;
|
|
6171
6462
|
flags?: string;
|
|
6172
6463
|
} | string);
|
|
6464
|
+
modifiers?: ("default" | "multiline" | "named" | "require" | "side-effect" | "singleline" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
6465
|
+
selector?: "side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type";
|
|
6466
|
+
})[];
|
|
6467
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
6468
|
+
groups?: (string | [string, ...string[]] | {
|
|
6469
|
+
newlinesBetween: "ignore" | number;
|
|
6470
|
+
} | {
|
|
6471
|
+
group: string | [string, ...string[]];
|
|
6472
|
+
fallbackSort?: {
|
|
6473
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first";
|
|
6474
|
+
order?: "asc" | "desc";
|
|
6475
|
+
sortBy?: "specifier" | "path";
|
|
6476
|
+
};
|
|
6477
|
+
commentAbove?: string;
|
|
6478
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "type-import-first";
|
|
6479
|
+
newlinesInside?: "ignore" | number;
|
|
6480
|
+
order?: "asc" | "desc";
|
|
6481
|
+
sortBy?: "specifier" | "path";
|
|
6482
|
+
})[];
|
|
6483
|
+
newlinesBetween?: "ignore" | number;
|
|
6484
|
+
tsconfig?: {
|
|
6485
|
+
rootDir: string;
|
|
6486
|
+
filename?: string;
|
|
6173
6487
|
};
|
|
6488
|
+
maxLineLength?: number;
|
|
6489
|
+
sortSideEffects?: boolean;
|
|
6490
|
+
environment?: "node" | "bun";
|
|
6174
6491
|
partitionByComment?: boolean | (({
|
|
6175
6492
|
pattern: string;
|
|
6176
6493
|
flags?: string;
|
|
@@ -6194,43 +6511,202 @@ type PerfectionistSortInterfaces = {
|
|
|
6194
6511
|
} | string));
|
|
6195
6512
|
};
|
|
6196
6513
|
partitionByNewLine?: boolean;
|
|
6197
|
-
|
|
6198
|
-
ignorePattern?: ({
|
|
6514
|
+
internalPattern?: ({
|
|
6199
6515
|
pattern: string;
|
|
6200
6516
|
flags?: string;
|
|
6201
6517
|
} | string)[] | ({
|
|
6202
6518
|
pattern: string;
|
|
6203
6519
|
flags?: string;
|
|
6204
6520
|
} | string);
|
|
6521
|
+
}[];
|
|
6522
|
+
// ----- perfectionist/sort-interfaces -----
|
|
6523
|
+
type PerfectionistSortInterfaces = {
|
|
6524
|
+
fallbackSort?: {
|
|
6525
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6526
|
+
order?: "asc" | "desc";
|
|
6527
|
+
sortBy?: "name" | "value";
|
|
6528
|
+
};
|
|
6529
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6530
|
+
specialCharacters?: "remove" | "trim" | "keep";
|
|
6531
|
+
ignoreCase?: boolean;
|
|
6532
|
+
alphabet?: string;
|
|
6533
|
+
locales?: string | string[];
|
|
6534
|
+
order?: "asc" | "desc";
|
|
6205
6535
|
sortBy?: "name" | "value";
|
|
6206
|
-
|
|
6207
|
-
|
|
6536
|
+
customGroups?: ({
|
|
6537
|
+
fallbackSort?: {
|
|
6538
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6539
|
+
order?: "asc" | "desc";
|
|
6540
|
+
sortBy?: "name" | "value";
|
|
6541
|
+
};
|
|
6542
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6543
|
+
groupName: string;
|
|
6544
|
+
newlinesInside?: "ignore" | number;
|
|
6545
|
+
order?: "asc" | "desc";
|
|
6546
|
+
sortBy?: "name" | "value";
|
|
6547
|
+
anyOf: [{
|
|
6548
|
+
elementNamePattern?: ({
|
|
6549
|
+
pattern: string;
|
|
6550
|
+
flags?: string;
|
|
6551
|
+
} | string)[] | ({
|
|
6552
|
+
pattern: string;
|
|
6553
|
+
flags?: string;
|
|
6554
|
+
} | string);
|
|
6555
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
6556
|
+
selector?: "index-signature" | "member" | "method" | "property";
|
|
6557
|
+
elementValuePattern?: ({
|
|
6558
|
+
pattern: string;
|
|
6559
|
+
flags?: string;
|
|
6560
|
+
} | string)[] | ({
|
|
6561
|
+
pattern: string;
|
|
6562
|
+
flags?: string;
|
|
6563
|
+
} | string);
|
|
6564
|
+
}, ...{
|
|
6565
|
+
elementNamePattern?: ({
|
|
6566
|
+
pattern: string;
|
|
6567
|
+
flags?: string;
|
|
6568
|
+
} | string)[] | ({
|
|
6569
|
+
pattern: string;
|
|
6570
|
+
flags?: string;
|
|
6571
|
+
} | string);
|
|
6572
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
6573
|
+
selector?: "index-signature" | "member" | "method" | "property";
|
|
6574
|
+
elementValuePattern?: ({
|
|
6575
|
+
pattern: string;
|
|
6576
|
+
flags?: string;
|
|
6577
|
+
} | string)[] | ({
|
|
6578
|
+
pattern: string;
|
|
6579
|
+
flags?: string;
|
|
6580
|
+
} | string);
|
|
6581
|
+
}[]];
|
|
6582
|
+
} | {
|
|
6583
|
+
fallbackSort?: {
|
|
6584
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6585
|
+
order?: "asc" | "desc";
|
|
6586
|
+
sortBy?: "name" | "value";
|
|
6587
|
+
};
|
|
6588
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6589
|
+
groupName: string;
|
|
6590
|
+
newlinesInside?: "ignore" | number;
|
|
6591
|
+
order?: "asc" | "desc";
|
|
6592
|
+
sortBy?: "name" | "value";
|
|
6593
|
+
elementNamePattern?: ({
|
|
6594
|
+
pattern: string;
|
|
6595
|
+
flags?: string;
|
|
6596
|
+
} | string)[] | ({
|
|
6597
|
+
pattern: string;
|
|
6598
|
+
flags?: string;
|
|
6599
|
+
} | string);
|
|
6600
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
6601
|
+
selector?: "index-signature" | "member" | "method" | "property";
|
|
6602
|
+
elementValuePattern?: ({
|
|
6603
|
+
pattern: string;
|
|
6604
|
+
flags?: string;
|
|
6605
|
+
} | string)[] | ({
|
|
6606
|
+
pattern: string;
|
|
6607
|
+
flags?: string;
|
|
6608
|
+
} | string);
|
|
6609
|
+
})[];
|
|
6610
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
6611
|
+
groups?: (string | [string, ...string[]] | {
|
|
6612
|
+
newlinesBetween: "ignore" | number;
|
|
6613
|
+
} | {
|
|
6614
|
+
group: string | [string, ...string[]];
|
|
6615
|
+
fallbackSort?: {
|
|
6616
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6617
|
+
order?: "asc" | "desc";
|
|
6618
|
+
sortBy?: "name" | "value";
|
|
6619
|
+
};
|
|
6208
6620
|
commentAbove?: string;
|
|
6621
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6622
|
+
newlinesInside?: "ignore" | number;
|
|
6623
|
+
order?: "asc" | "desc";
|
|
6624
|
+
sortBy?: "name" | "value";
|
|
6209
6625
|
})[];
|
|
6626
|
+
newlinesBetween?: "ignore" | number;
|
|
6627
|
+
useConfigurationIf?: {
|
|
6628
|
+
allNamesMatchPattern?: ({
|
|
6629
|
+
pattern: string;
|
|
6630
|
+
flags?: string;
|
|
6631
|
+
} | string)[] | ({
|
|
6632
|
+
pattern: string;
|
|
6633
|
+
flags?: string;
|
|
6634
|
+
} | string);
|
|
6635
|
+
hasNumericKeysOnly?: boolean;
|
|
6636
|
+
declarationCommentMatchesPattern?: ({
|
|
6637
|
+
scope?: "shallow" | "deep";
|
|
6638
|
+
pattern: string;
|
|
6639
|
+
flags?: string;
|
|
6640
|
+
} | string)[] | ({
|
|
6641
|
+
scope?: "shallow" | "deep";
|
|
6642
|
+
pattern: string;
|
|
6643
|
+
flags?: string;
|
|
6644
|
+
} | string);
|
|
6645
|
+
declarationMatchesPattern?: ({
|
|
6646
|
+
scope?: "shallow" | "deep";
|
|
6647
|
+
pattern: string;
|
|
6648
|
+
flags?: string;
|
|
6649
|
+
} | string)[] | ({
|
|
6650
|
+
scope?: "shallow" | "deep";
|
|
6651
|
+
pattern: string;
|
|
6652
|
+
flags?: string;
|
|
6653
|
+
} | string);
|
|
6654
|
+
};
|
|
6655
|
+
partitionByComment?: boolean | (({
|
|
6656
|
+
pattern: string;
|
|
6657
|
+
flags?: string;
|
|
6658
|
+
} | string)[] | ({
|
|
6659
|
+
pattern: string;
|
|
6660
|
+
flags?: string;
|
|
6661
|
+
} | string)) | {
|
|
6662
|
+
block?: boolean | (({
|
|
6663
|
+
pattern: string;
|
|
6664
|
+
flags?: string;
|
|
6665
|
+
} | string)[] | ({
|
|
6666
|
+
pattern: string;
|
|
6667
|
+
flags?: string;
|
|
6668
|
+
} | string));
|
|
6669
|
+
line?: boolean | (({
|
|
6670
|
+
pattern: string;
|
|
6671
|
+
flags?: string;
|
|
6672
|
+
} | string)[] | ({
|
|
6673
|
+
pattern: string;
|
|
6674
|
+
flags?: string;
|
|
6675
|
+
} | string));
|
|
6676
|
+
};
|
|
6677
|
+
partitionByNewLine?: boolean;
|
|
6210
6678
|
}[];
|
|
6211
6679
|
// ----- perfectionist/sort-intersection-types -----
|
|
6212
6680
|
type PerfectionistSortIntersectionTypes = {
|
|
6213
6681
|
fallbackSort?: {
|
|
6682
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6214
6683
|
order?: "asc" | "desc";
|
|
6215
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6216
6684
|
};
|
|
6685
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6217
6686
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
6218
6687
|
ignoreCase?: boolean;
|
|
6219
6688
|
alphabet?: string;
|
|
6220
6689
|
locales?: string | string[];
|
|
6221
6690
|
order?: "asc" | "desc";
|
|
6222
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6223
6691
|
customGroups?: ({
|
|
6224
|
-
newlinesInside?: ("always" | "never") | number;
|
|
6225
6692
|
fallbackSort?: {
|
|
6693
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6226
6694
|
order?: "asc" | "desc";
|
|
6227
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6228
6695
|
};
|
|
6696
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6229
6697
|
groupName: string;
|
|
6698
|
+
newlinesInside?: "ignore" | number;
|
|
6230
6699
|
order?: "asc" | "desc";
|
|
6231
|
-
|
|
6232
|
-
|
|
6700
|
+
anyOf: [{
|
|
6701
|
+
elementNamePattern?: ({
|
|
6702
|
+
pattern: string;
|
|
6703
|
+
flags?: string;
|
|
6704
|
+
} | string)[] | ({
|
|
6705
|
+
pattern: string;
|
|
6706
|
+
flags?: string;
|
|
6707
|
+
} | string);
|
|
6233
6708
|
selector?: "intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union";
|
|
6709
|
+
}, ...{
|
|
6234
6710
|
elementNamePattern?: ({
|
|
6235
6711
|
pattern: string;
|
|
6236
6712
|
flags?: string;
|
|
@@ -6238,17 +6714,17 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
6238
6714
|
pattern: string;
|
|
6239
6715
|
flags?: string;
|
|
6240
6716
|
} | string);
|
|
6241
|
-
|
|
6717
|
+
selector?: "intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union";
|
|
6718
|
+
}[]];
|
|
6242
6719
|
} | {
|
|
6243
|
-
newlinesInside?: ("always" | "never") | number;
|
|
6244
6720
|
fallbackSort?: {
|
|
6721
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6245
6722
|
order?: "asc" | "desc";
|
|
6246
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6247
6723
|
};
|
|
6724
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6248
6725
|
groupName: string;
|
|
6726
|
+
newlinesInside?: "ignore" | number;
|
|
6249
6727
|
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
6728
|
elementNamePattern?: ({
|
|
6253
6729
|
pattern: string;
|
|
6254
6730
|
flags?: string;
|
|
@@ -6256,7 +6732,23 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
6256
6732
|
pattern: string;
|
|
6257
6733
|
flags?: string;
|
|
6258
6734
|
} | string);
|
|
6735
|
+
selector?: "intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union";
|
|
6259
6736
|
})[];
|
|
6737
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
6738
|
+
groups?: (string | [string, ...string[]] | {
|
|
6739
|
+
newlinesBetween: "ignore" | number;
|
|
6740
|
+
} | {
|
|
6741
|
+
group: string | [string, ...string[]];
|
|
6742
|
+
fallbackSort?: {
|
|
6743
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6744
|
+
order?: "asc" | "desc";
|
|
6745
|
+
};
|
|
6746
|
+
commentAbove?: string;
|
|
6747
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6748
|
+
newlinesInside?: "ignore" | number;
|
|
6749
|
+
order?: "asc" | "desc";
|
|
6750
|
+
})[];
|
|
6751
|
+
newlinesBetween?: "ignore" | number;
|
|
6260
6752
|
partitionByComment?: boolean | (({
|
|
6261
6753
|
pattern: string;
|
|
6262
6754
|
flags?: string;
|
|
@@ -6280,38 +6772,38 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
6280
6772
|
} | string));
|
|
6281
6773
|
};
|
|
6282
6774
|
partitionByNewLine?: boolean;
|
|
6283
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
6284
|
-
groups?: (string | string[] | {
|
|
6285
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
6286
|
-
commentAbove?: string;
|
|
6287
|
-
})[];
|
|
6288
6775
|
}[];
|
|
6289
6776
|
// ----- perfectionist/sort-jsx-props -----
|
|
6290
6777
|
type PerfectionistSortJsxProps = {
|
|
6291
6778
|
fallbackSort?: {
|
|
6779
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6292
6780
|
order?: "asc" | "desc";
|
|
6293
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6294
6781
|
};
|
|
6782
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6295
6783
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
6296
6784
|
ignoreCase?: boolean;
|
|
6297
6785
|
alphabet?: string;
|
|
6298
6786
|
locales?: string | string[];
|
|
6299
6787
|
order?: "asc" | "desc";
|
|
6300
|
-
|
|
6301
|
-
customGroups?: {
|
|
6302
|
-
[k: string]: (string | string[]) | undefined;
|
|
6303
|
-
} | ({
|
|
6304
|
-
newlinesInside?: ("always" | "never") | number;
|
|
6788
|
+
customGroups?: ({
|
|
6305
6789
|
fallbackSort?: {
|
|
6790
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6306
6791
|
order?: "asc" | "desc";
|
|
6307
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6308
6792
|
};
|
|
6793
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6309
6794
|
groupName: string;
|
|
6795
|
+
newlinesInside?: "ignore" | number;
|
|
6310
6796
|
order?: "asc" | "desc";
|
|
6311
|
-
|
|
6312
|
-
|
|
6797
|
+
anyOf: [{
|
|
6798
|
+
elementNamePattern?: ({
|
|
6799
|
+
pattern: string;
|
|
6800
|
+
flags?: string;
|
|
6801
|
+
} | string)[] | ({
|
|
6802
|
+
pattern: string;
|
|
6803
|
+
flags?: string;
|
|
6804
|
+
} | string);
|
|
6313
6805
|
modifiers?: ("shorthand" | "multiline")[];
|
|
6314
|
-
selector?: "
|
|
6806
|
+
selector?: "prop";
|
|
6315
6807
|
elementValuePattern?: ({
|
|
6316
6808
|
pattern: string;
|
|
6317
6809
|
flags?: string;
|
|
@@ -6319,6 +6811,7 @@ type PerfectionistSortJsxProps = {
|
|
|
6319
6811
|
pattern: string;
|
|
6320
6812
|
flags?: string;
|
|
6321
6813
|
} | string);
|
|
6814
|
+
}, ...{
|
|
6322
6815
|
elementNamePattern?: ({
|
|
6323
6816
|
pattern: string;
|
|
6324
6817
|
flags?: string;
|
|
@@ -6326,26 +6819,35 @@ type PerfectionistSortJsxProps = {
|
|
|
6326
6819
|
pattern: string;
|
|
6327
6820
|
flags?: string;
|
|
6328
6821
|
} | string);
|
|
6329
|
-
|
|
6822
|
+
modifiers?: ("shorthand" | "multiline")[];
|
|
6823
|
+
selector?: "prop";
|
|
6824
|
+
elementValuePattern?: ({
|
|
6825
|
+
pattern: string;
|
|
6826
|
+
flags?: string;
|
|
6827
|
+
} | string)[] | ({
|
|
6828
|
+
pattern: string;
|
|
6829
|
+
flags?: string;
|
|
6830
|
+
} | string);
|
|
6831
|
+
}[]];
|
|
6330
6832
|
} | {
|
|
6331
|
-
newlinesInside?: ("always" | "never") | number;
|
|
6332
6833
|
fallbackSort?: {
|
|
6834
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6333
6835
|
order?: "asc" | "desc";
|
|
6334
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6335
6836
|
};
|
|
6837
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6336
6838
|
groupName: string;
|
|
6839
|
+
newlinesInside?: "ignore" | number;
|
|
6337
6840
|
order?: "asc" | "desc";
|
|
6338
|
-
|
|
6339
|
-
modifiers?: ("shorthand" | "multiline")[];
|
|
6340
|
-
selector?: "multiline" | "prop" | "shorthand";
|
|
6341
|
-
elementValuePattern?: ({
|
|
6841
|
+
elementNamePattern?: ({
|
|
6342
6842
|
pattern: string;
|
|
6343
6843
|
flags?: string;
|
|
6344
6844
|
} | string)[] | ({
|
|
6345
6845
|
pattern: string;
|
|
6346
6846
|
flags?: string;
|
|
6347
6847
|
} | string);
|
|
6348
|
-
|
|
6848
|
+
modifiers?: ("shorthand" | "multiline")[];
|
|
6849
|
+
selector?: "prop";
|
|
6850
|
+
elementValuePattern?: ({
|
|
6349
6851
|
pattern: string;
|
|
6350
6852
|
flags?: string;
|
|
6351
6853
|
} | string)[] | ({
|
|
@@ -6353,6 +6855,21 @@ type PerfectionistSortJsxProps = {
|
|
|
6353
6855
|
flags?: string;
|
|
6354
6856
|
} | string);
|
|
6355
6857
|
})[];
|
|
6858
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
6859
|
+
groups?: (string | [string, ...string[]] | {
|
|
6860
|
+
newlinesBetween: "ignore" | number;
|
|
6861
|
+
} | {
|
|
6862
|
+
group: string | [string, ...string[]];
|
|
6863
|
+
fallbackSort?: {
|
|
6864
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6865
|
+
order?: "asc" | "desc";
|
|
6866
|
+
};
|
|
6867
|
+
commentAbove?: string;
|
|
6868
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6869
|
+
newlinesInside?: "ignore" | number;
|
|
6870
|
+
order?: "asc" | "desc";
|
|
6871
|
+
})[];
|
|
6872
|
+
newlinesBetween?: "ignore" | number;
|
|
6356
6873
|
useConfigurationIf?: {
|
|
6357
6874
|
allNamesMatchPattern?: ({
|
|
6358
6875
|
pattern: string;
|
|
@@ -6370,41 +6887,37 @@ type PerfectionistSortJsxProps = {
|
|
|
6370
6887
|
} | string);
|
|
6371
6888
|
};
|
|
6372
6889
|
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
6890
|
}[];
|
|
6386
6891
|
// ----- perfectionist/sort-maps -----
|
|
6387
6892
|
type PerfectionistSortMaps = {
|
|
6388
6893
|
fallbackSort?: {
|
|
6894
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6389
6895
|
order?: "asc" | "desc";
|
|
6390
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6391
6896
|
};
|
|
6897
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6392
6898
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
6393
6899
|
ignoreCase?: boolean;
|
|
6394
6900
|
alphabet?: string;
|
|
6395
6901
|
locales?: string | string[];
|
|
6396
6902
|
order?: "asc" | "desc";
|
|
6397
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6398
6903
|
customGroups?: ({
|
|
6399
|
-
newlinesInside?: ("always" | "never") | number;
|
|
6400
6904
|
fallbackSort?: {
|
|
6905
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6401
6906
|
order?: "asc" | "desc";
|
|
6402
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6403
6907
|
};
|
|
6908
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6404
6909
|
groupName: string;
|
|
6910
|
+
newlinesInside?: "ignore" | number;
|
|
6405
6911
|
order?: "asc" | "desc";
|
|
6406
|
-
|
|
6407
|
-
|
|
6912
|
+
anyOf: [{
|
|
6913
|
+
elementNamePattern?: ({
|
|
6914
|
+
pattern: string;
|
|
6915
|
+
flags?: string;
|
|
6916
|
+
} | string)[] | ({
|
|
6917
|
+
pattern: string;
|
|
6918
|
+
flags?: string;
|
|
6919
|
+
} | string);
|
|
6920
|
+
}, ...{
|
|
6408
6921
|
elementNamePattern?: ({
|
|
6409
6922
|
pattern: string;
|
|
6410
6923
|
flags?: string;
|
|
@@ -6412,16 +6925,16 @@ type PerfectionistSortMaps = {
|
|
|
6412
6925
|
pattern: string;
|
|
6413
6926
|
flags?: string;
|
|
6414
6927
|
} | string);
|
|
6415
|
-
}[];
|
|
6928
|
+
}[]];
|
|
6416
6929
|
} | {
|
|
6417
|
-
newlinesInside?: ("always" | "never") | number;
|
|
6418
6930
|
fallbackSort?: {
|
|
6931
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6419
6932
|
order?: "asc" | "desc";
|
|
6420
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6421
6933
|
};
|
|
6934
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6422
6935
|
groupName: string;
|
|
6936
|
+
newlinesInside?: "ignore" | number;
|
|
6423
6937
|
order?: "asc" | "desc";
|
|
6424
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6425
6938
|
elementNamePattern?: ({
|
|
6426
6939
|
pattern: string;
|
|
6427
6940
|
flags?: string;
|
|
@@ -6430,6 +6943,21 @@ type PerfectionistSortMaps = {
|
|
|
6430
6943
|
flags?: string;
|
|
6431
6944
|
} | string);
|
|
6432
6945
|
})[];
|
|
6946
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
6947
|
+
groups?: (string | [string, ...string[]] | {
|
|
6948
|
+
newlinesBetween: "ignore" | number;
|
|
6949
|
+
} | {
|
|
6950
|
+
group: string | [string, ...string[]];
|
|
6951
|
+
fallbackSort?: {
|
|
6952
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6953
|
+
order?: "asc" | "desc";
|
|
6954
|
+
};
|
|
6955
|
+
commentAbove?: string;
|
|
6956
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6957
|
+
newlinesInside?: "ignore" | number;
|
|
6958
|
+
order?: "asc" | "desc";
|
|
6959
|
+
})[];
|
|
6960
|
+
newlinesBetween?: "ignore" | number;
|
|
6433
6961
|
useConfigurationIf?: {
|
|
6434
6962
|
allNamesMatchPattern?: ({
|
|
6435
6963
|
pattern: string;
|
|
@@ -6461,35 +6989,37 @@ type PerfectionistSortMaps = {
|
|
|
6461
6989
|
flags?: string;
|
|
6462
6990
|
} | string));
|
|
6463
6991
|
};
|
|
6464
|
-
partitionByNewLine?: boolean;
|
|
6465
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
6466
|
-
groups?: (string | string[] | {
|
|
6467
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
6468
|
-
commentAbove?: string;
|
|
6469
|
-
})[];
|
|
6992
|
+
partitionByNewLine?: boolean;
|
|
6470
6993
|
}[];
|
|
6471
6994
|
// ----- perfectionist/sort-modules -----
|
|
6472
6995
|
type PerfectionistSortModules = [] | [{
|
|
6473
6996
|
fallbackSort?: {
|
|
6997
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage";
|
|
6474
6998
|
order?: "asc" | "desc";
|
|
6475
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6476
6999
|
};
|
|
7000
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage";
|
|
6477
7001
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
6478
7002
|
ignoreCase?: boolean;
|
|
6479
7003
|
alphabet?: string;
|
|
6480
7004
|
locales?: string | string[];
|
|
6481
7005
|
order?: "asc" | "desc";
|
|
6482
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6483
7006
|
customGroups?: ({
|
|
6484
|
-
newlinesInside?: ("always" | "never") | number;
|
|
6485
7007
|
fallbackSort?: {
|
|
7008
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage";
|
|
6486
7009
|
order?: "asc" | "desc";
|
|
6487
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6488
7010
|
};
|
|
7011
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage";
|
|
6489
7012
|
groupName: string;
|
|
7013
|
+
newlinesInside?: "ignore" | number;
|
|
6490
7014
|
order?: "asc" | "desc";
|
|
6491
|
-
|
|
6492
|
-
|
|
7015
|
+
anyOf: [{
|
|
7016
|
+
elementNamePattern?: ({
|
|
7017
|
+
pattern: string;
|
|
7018
|
+
flags?: string;
|
|
7019
|
+
} | string)[] | ({
|
|
7020
|
+
pattern: string;
|
|
7021
|
+
flags?: string;
|
|
7022
|
+
} | string);
|
|
6493
7023
|
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
6494
7024
|
selector?: "enum" | "function" | "interface" | "type" | "class";
|
|
6495
7025
|
decoratorNamePattern?: ({
|
|
@@ -6499,6 +7029,7 @@ type PerfectionistSortModules = [] | [{
|
|
|
6499
7029
|
pattern: string;
|
|
6500
7030
|
flags?: string;
|
|
6501
7031
|
} | string);
|
|
7032
|
+
}, ...{
|
|
6502
7033
|
elementNamePattern?: ({
|
|
6503
7034
|
pattern: string;
|
|
6504
7035
|
flags?: string;
|
|
@@ -6506,26 +7037,35 @@ type PerfectionistSortModules = [] | [{
|
|
|
6506
7037
|
pattern: string;
|
|
6507
7038
|
flags?: string;
|
|
6508
7039
|
} | string);
|
|
6509
|
-
|
|
7040
|
+
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
7041
|
+
selector?: "enum" | "function" | "interface" | "type" | "class";
|
|
7042
|
+
decoratorNamePattern?: ({
|
|
7043
|
+
pattern: string;
|
|
7044
|
+
flags?: string;
|
|
7045
|
+
} | string)[] | ({
|
|
7046
|
+
pattern: string;
|
|
7047
|
+
flags?: string;
|
|
7048
|
+
} | string);
|
|
7049
|
+
}[]];
|
|
6510
7050
|
} | {
|
|
6511
|
-
newlinesInside?: ("always" | "never") | number;
|
|
6512
7051
|
fallbackSort?: {
|
|
7052
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage";
|
|
6513
7053
|
order?: "asc" | "desc";
|
|
6514
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6515
7054
|
};
|
|
7055
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage";
|
|
6516
7056
|
groupName: string;
|
|
7057
|
+
newlinesInside?: "ignore" | number;
|
|
6517
7058
|
order?: "asc" | "desc";
|
|
6518
|
-
|
|
6519
|
-
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
6520
|
-
selector?: "enum" | "function" | "interface" | "type" | "class";
|
|
6521
|
-
decoratorNamePattern?: ({
|
|
7059
|
+
elementNamePattern?: ({
|
|
6522
7060
|
pattern: string;
|
|
6523
7061
|
flags?: string;
|
|
6524
7062
|
} | string)[] | ({
|
|
6525
7063
|
pattern: string;
|
|
6526
7064
|
flags?: string;
|
|
6527
7065
|
} | string);
|
|
6528
|
-
|
|
7066
|
+
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
7067
|
+
selector?: "enum" | "function" | "interface" | "type" | "class";
|
|
7068
|
+
decoratorNamePattern?: ({
|
|
6529
7069
|
pattern: string;
|
|
6530
7070
|
flags?: string;
|
|
6531
7071
|
} | string)[] | ({
|
|
@@ -6533,6 +7073,21 @@ type PerfectionistSortModules = [] | [{
|
|
|
6533
7073
|
flags?: string;
|
|
6534
7074
|
} | string);
|
|
6535
7075
|
})[];
|
|
7076
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
7077
|
+
groups?: (string | [string, ...string[]] | {
|
|
7078
|
+
newlinesBetween: "ignore" | number;
|
|
7079
|
+
} | {
|
|
7080
|
+
group: string | [string, ...string[]];
|
|
7081
|
+
fallbackSort?: {
|
|
7082
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage";
|
|
7083
|
+
order?: "asc" | "desc";
|
|
7084
|
+
};
|
|
7085
|
+
commentAbove?: string;
|
|
7086
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order" | "usage";
|
|
7087
|
+
newlinesInside?: "ignore" | number;
|
|
7088
|
+
order?: "asc" | "desc";
|
|
7089
|
+
})[];
|
|
7090
|
+
newlinesBetween?: "ignore" | number;
|
|
6536
7091
|
partitionByComment?: boolean | (({
|
|
6537
7092
|
pattern: string;
|
|
6538
7093
|
flags?: string;
|
|
@@ -6556,38 +7111,39 @@ type PerfectionistSortModules = [] | [{
|
|
|
6556
7111
|
} | string));
|
|
6557
7112
|
};
|
|
6558
7113
|
partitionByNewLine?: boolean;
|
|
6559
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
6560
|
-
groups?: (string | string[] | {
|
|
6561
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
6562
|
-
commentAbove?: string;
|
|
6563
|
-
})[];
|
|
6564
7114
|
}];
|
|
6565
7115
|
// ----- perfectionist/sort-named-exports -----
|
|
6566
7116
|
type PerfectionistSortNamedExports = {
|
|
6567
7117
|
fallbackSort?: {
|
|
7118
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6568
7119
|
order?: "asc" | "desc";
|
|
6569
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6570
7120
|
};
|
|
7121
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6571
7122
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
6572
7123
|
ignoreCase?: boolean;
|
|
6573
7124
|
alphabet?: string;
|
|
6574
7125
|
locales?: string | string[];
|
|
6575
7126
|
order?: "asc" | "desc";
|
|
6576
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6577
|
-
groupKind?: "mixed" | "values-first" | "types-first";
|
|
6578
|
-
ignoreAlias?: boolean;
|
|
6579
7127
|
customGroups?: ({
|
|
6580
|
-
newlinesInside?: ("always" | "never") | number;
|
|
6581
7128
|
fallbackSort?: {
|
|
7129
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6582
7130
|
order?: "asc" | "desc";
|
|
6583
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6584
7131
|
};
|
|
7132
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6585
7133
|
groupName: string;
|
|
7134
|
+
newlinesInside?: "ignore" | number;
|
|
6586
7135
|
order?: "asc" | "desc";
|
|
6587
|
-
|
|
6588
|
-
|
|
7136
|
+
anyOf: [{
|
|
7137
|
+
elementNamePattern?: ({
|
|
7138
|
+
pattern: string;
|
|
7139
|
+
flags?: string;
|
|
7140
|
+
} | string)[] | ({
|
|
7141
|
+
pattern: string;
|
|
7142
|
+
flags?: string;
|
|
7143
|
+
} | string);
|
|
6589
7144
|
modifiers?: ("value" | "type")[];
|
|
6590
7145
|
selector?: "export";
|
|
7146
|
+
}, ...{
|
|
6591
7147
|
elementNamePattern?: ({
|
|
6592
7148
|
pattern: string;
|
|
6593
7149
|
flags?: string;
|
|
@@ -6595,18 +7151,18 @@ type PerfectionistSortNamedExports = {
|
|
|
6595
7151
|
pattern: string;
|
|
6596
7152
|
flags?: string;
|
|
6597
7153
|
} | string);
|
|
6598
|
-
|
|
7154
|
+
modifiers?: ("value" | "type")[];
|
|
7155
|
+
selector?: "export";
|
|
7156
|
+
}[]];
|
|
6599
7157
|
} | {
|
|
6600
|
-
newlinesInside?: ("always" | "never") | number;
|
|
6601
7158
|
fallbackSort?: {
|
|
7159
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6602
7160
|
order?: "asc" | "desc";
|
|
6603
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6604
7161
|
};
|
|
7162
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6605
7163
|
groupName: string;
|
|
7164
|
+
newlinesInside?: "ignore" | number;
|
|
6606
7165
|
order?: "asc" | "desc";
|
|
6607
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6608
|
-
modifiers?: ("value" | "type")[];
|
|
6609
|
-
selector?: "export";
|
|
6610
7166
|
elementNamePattern?: ({
|
|
6611
7167
|
pattern: string;
|
|
6612
7168
|
flags?: string;
|
|
@@ -6614,7 +7170,25 @@ type PerfectionistSortNamedExports = {
|
|
|
6614
7170
|
pattern: string;
|
|
6615
7171
|
flags?: string;
|
|
6616
7172
|
} | string);
|
|
7173
|
+
modifiers?: ("value" | "type")[];
|
|
7174
|
+
selector?: "export";
|
|
6617
7175
|
})[];
|
|
7176
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
7177
|
+
groups?: (string | [string, ...string[]] | {
|
|
7178
|
+
newlinesBetween: "ignore" | number;
|
|
7179
|
+
} | {
|
|
7180
|
+
group: string | [string, ...string[]];
|
|
7181
|
+
fallbackSort?: {
|
|
7182
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7183
|
+
order?: "asc" | "desc";
|
|
7184
|
+
};
|
|
7185
|
+
commentAbove?: string;
|
|
7186
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7187
|
+
newlinesInside?: "ignore" | number;
|
|
7188
|
+
order?: "asc" | "desc";
|
|
7189
|
+
})[];
|
|
7190
|
+
newlinesBetween?: "ignore" | number;
|
|
7191
|
+
ignoreAlias?: boolean;
|
|
6618
7192
|
partitionByComment?: boolean | (({
|
|
6619
7193
|
pattern: string;
|
|
6620
7194
|
flags?: string;
|
|
@@ -6638,38 +7212,39 @@ type PerfectionistSortNamedExports = {
|
|
|
6638
7212
|
} | string));
|
|
6639
7213
|
};
|
|
6640
7214
|
partitionByNewLine?: boolean;
|
|
6641
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
6642
|
-
groups?: (string | string[] | {
|
|
6643
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
6644
|
-
commentAbove?: string;
|
|
6645
|
-
})[];
|
|
6646
7215
|
}[];
|
|
6647
7216
|
// ----- perfectionist/sort-named-imports -----
|
|
6648
7217
|
type PerfectionistSortNamedImports = {
|
|
6649
7218
|
fallbackSort?: {
|
|
7219
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6650
7220
|
order?: "asc" | "desc";
|
|
6651
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6652
7221
|
};
|
|
7222
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6653
7223
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
6654
7224
|
ignoreCase?: boolean;
|
|
6655
7225
|
alphabet?: string;
|
|
6656
7226
|
locales?: string | string[];
|
|
6657
7227
|
order?: "asc" | "desc";
|
|
6658
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6659
|
-
groupKind?: "mixed" | "values-first" | "types-first";
|
|
6660
|
-
ignoreAlias?: boolean;
|
|
6661
7228
|
customGroups?: ({
|
|
6662
|
-
newlinesInside?: ("always" | "never") | number;
|
|
6663
7229
|
fallbackSort?: {
|
|
7230
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6664
7231
|
order?: "asc" | "desc";
|
|
6665
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6666
7232
|
};
|
|
7233
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6667
7234
|
groupName: string;
|
|
7235
|
+
newlinesInside?: "ignore" | number;
|
|
6668
7236
|
order?: "asc" | "desc";
|
|
6669
|
-
|
|
6670
|
-
|
|
7237
|
+
anyOf: [{
|
|
7238
|
+
elementNamePattern?: ({
|
|
7239
|
+
pattern: string;
|
|
7240
|
+
flags?: string;
|
|
7241
|
+
} | string)[] | ({
|
|
7242
|
+
pattern: string;
|
|
7243
|
+
flags?: string;
|
|
7244
|
+
} | string);
|
|
6671
7245
|
modifiers?: ("value" | "type")[];
|
|
6672
7246
|
selector?: "import";
|
|
7247
|
+
}, ...{
|
|
6673
7248
|
elementNamePattern?: ({
|
|
6674
7249
|
pattern: string;
|
|
6675
7250
|
flags?: string;
|
|
@@ -6677,18 +7252,18 @@ type PerfectionistSortNamedImports = {
|
|
|
6677
7252
|
pattern: string;
|
|
6678
7253
|
flags?: string;
|
|
6679
7254
|
} | string);
|
|
6680
|
-
|
|
7255
|
+
modifiers?: ("value" | "type")[];
|
|
7256
|
+
selector?: "import";
|
|
7257
|
+
}[]];
|
|
6681
7258
|
} | {
|
|
6682
|
-
newlinesInside?: ("always" | "never") | number;
|
|
6683
7259
|
fallbackSort?: {
|
|
7260
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6684
7261
|
order?: "asc" | "desc";
|
|
6685
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6686
7262
|
};
|
|
7263
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6687
7264
|
groupName: string;
|
|
7265
|
+
newlinesInside?: "ignore" | number;
|
|
6688
7266
|
order?: "asc" | "desc";
|
|
6689
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6690
|
-
modifiers?: ("value" | "type")[];
|
|
6691
|
-
selector?: "import";
|
|
6692
7267
|
elementNamePattern?: ({
|
|
6693
7268
|
pattern: string;
|
|
6694
7269
|
flags?: string;
|
|
@@ -6696,7 +7271,25 @@ type PerfectionistSortNamedImports = {
|
|
|
6696
7271
|
pattern: string;
|
|
6697
7272
|
flags?: string;
|
|
6698
7273
|
} | string);
|
|
7274
|
+
modifiers?: ("value" | "type")[];
|
|
7275
|
+
selector?: "import";
|
|
6699
7276
|
})[];
|
|
7277
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
7278
|
+
groups?: (string | [string, ...string[]] | {
|
|
7279
|
+
newlinesBetween: "ignore" | number;
|
|
7280
|
+
} | {
|
|
7281
|
+
group: string | [string, ...string[]];
|
|
7282
|
+
fallbackSort?: {
|
|
7283
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7284
|
+
order?: "asc" | "desc";
|
|
7285
|
+
};
|
|
7286
|
+
commentAbove?: string;
|
|
7287
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7288
|
+
newlinesInside?: "ignore" | number;
|
|
7289
|
+
order?: "asc" | "desc";
|
|
7290
|
+
})[];
|
|
7291
|
+
newlinesBetween?: "ignore" | number;
|
|
7292
|
+
ignoreAlias?: boolean;
|
|
6700
7293
|
partitionByComment?: boolean | (({
|
|
6701
7294
|
pattern: string;
|
|
6702
7295
|
flags?: string;
|
|
@@ -6720,40 +7313,42 @@ type PerfectionistSortNamedImports = {
|
|
|
6720
7313
|
} | string));
|
|
6721
7314
|
};
|
|
6722
7315
|
partitionByNewLine?: boolean;
|
|
6723
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
6724
|
-
groups?: (string | string[] | {
|
|
6725
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
6726
|
-
commentAbove?: string;
|
|
6727
|
-
})[];
|
|
6728
7316
|
}[];
|
|
6729
7317
|
// ----- perfectionist/sort-object-types -----
|
|
6730
7318
|
type PerfectionistSortObjectTypes = {
|
|
6731
7319
|
fallbackSort?: {
|
|
7320
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6732
7321
|
order?: "asc" | "desc";
|
|
6733
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6734
7322
|
sortBy?: "name" | "value";
|
|
6735
7323
|
};
|
|
7324
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6736
7325
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
6737
7326
|
ignoreCase?: boolean;
|
|
6738
7327
|
alphabet?: string;
|
|
6739
7328
|
locales?: string | string[];
|
|
6740
7329
|
order?: "asc" | "desc";
|
|
6741
|
-
|
|
6742
|
-
customGroups?: {
|
|
6743
|
-
[k: string]: (string | string[]) | undefined;
|
|
6744
|
-
} | ({
|
|
6745
|
-
newlinesInside?: ("always" | "never") | number;
|
|
7330
|
+
sortBy?: "name" | "value";
|
|
7331
|
+
customGroups?: ({
|
|
6746
7332
|
fallbackSort?: {
|
|
7333
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6747
7334
|
order?: "asc" | "desc";
|
|
6748
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6749
7335
|
sortBy?: "name" | "value";
|
|
6750
7336
|
};
|
|
7337
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6751
7338
|
groupName: string;
|
|
7339
|
+
newlinesInside?: "ignore" | number;
|
|
6752
7340
|
order?: "asc" | "desc";
|
|
6753
|
-
|
|
6754
|
-
anyOf
|
|
7341
|
+
sortBy?: "name" | "value";
|
|
7342
|
+
anyOf: [{
|
|
7343
|
+
elementNamePattern?: ({
|
|
7344
|
+
pattern: string;
|
|
7345
|
+
flags?: string;
|
|
7346
|
+
} | string)[] | ({
|
|
7347
|
+
pattern: string;
|
|
7348
|
+
flags?: string;
|
|
7349
|
+
} | string);
|
|
6755
7350
|
modifiers?: ("optional" | "required" | "multiline")[];
|
|
6756
|
-
selector?: "index-signature" | "member" | "method" | "
|
|
7351
|
+
selector?: "index-signature" | "member" | "method" | "property";
|
|
6757
7352
|
elementValuePattern?: ({
|
|
6758
7353
|
pattern: string;
|
|
6759
7354
|
flags?: string;
|
|
@@ -6761,6 +7356,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
6761
7356
|
pattern: string;
|
|
6762
7357
|
flags?: string;
|
|
6763
7358
|
} | string);
|
|
7359
|
+
}, ...{
|
|
6764
7360
|
elementNamePattern?: ({
|
|
6765
7361
|
pattern: string;
|
|
6766
7362
|
flags?: string;
|
|
@@ -6768,37 +7364,61 @@ type PerfectionistSortObjectTypes = {
|
|
|
6768
7364
|
pattern: string;
|
|
6769
7365
|
flags?: string;
|
|
6770
7366
|
} | string);
|
|
6771
|
-
|
|
6772
|
-
|
|
7367
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
7368
|
+
selector?: "index-signature" | "member" | "method" | "property";
|
|
7369
|
+
elementValuePattern?: ({
|
|
7370
|
+
pattern: string;
|
|
7371
|
+
flags?: string;
|
|
7372
|
+
} | string)[] | ({
|
|
7373
|
+
pattern: string;
|
|
7374
|
+
flags?: string;
|
|
7375
|
+
} | string);
|
|
7376
|
+
}[]];
|
|
6773
7377
|
} | {
|
|
6774
|
-
newlinesInside?: ("always" | "never") | number;
|
|
6775
7378
|
fallbackSort?: {
|
|
7379
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6776
7380
|
order?: "asc" | "desc";
|
|
6777
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6778
7381
|
sortBy?: "name" | "value";
|
|
6779
7382
|
};
|
|
7383
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6780
7384
|
groupName: string;
|
|
7385
|
+
newlinesInside?: "ignore" | number;
|
|
6781
7386
|
order?: "asc" | "desc";
|
|
6782
|
-
|
|
6783
|
-
|
|
6784
|
-
selector?: "index-signature" | "member" | "method" | "multiline" | "property";
|
|
6785
|
-
elementValuePattern?: ({
|
|
7387
|
+
sortBy?: "name" | "value";
|
|
7388
|
+
elementNamePattern?: ({
|
|
6786
7389
|
pattern: string;
|
|
6787
7390
|
flags?: string;
|
|
6788
7391
|
} | string)[] | ({
|
|
6789
7392
|
pattern: string;
|
|
6790
7393
|
flags?: string;
|
|
6791
7394
|
} | string);
|
|
6792
|
-
|
|
7395
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
7396
|
+
selector?: "index-signature" | "member" | "method" | "property";
|
|
7397
|
+
elementValuePattern?: ({
|
|
6793
7398
|
pattern: string;
|
|
6794
7399
|
flags?: string;
|
|
6795
7400
|
} | string)[] | ({
|
|
6796
7401
|
pattern: string;
|
|
6797
7402
|
flags?: string;
|
|
6798
7403
|
} | string);
|
|
7404
|
+
})[];
|
|
7405
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
7406
|
+
groups?: (string | [string, ...string[]] | {
|
|
7407
|
+
newlinesBetween: "ignore" | number;
|
|
7408
|
+
} | {
|
|
7409
|
+
group: string | [string, ...string[]];
|
|
7410
|
+
fallbackSort?: {
|
|
7411
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7412
|
+
order?: "asc" | "desc";
|
|
7413
|
+
sortBy?: "name" | "value";
|
|
7414
|
+
};
|
|
7415
|
+
commentAbove?: string;
|
|
7416
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7417
|
+
newlinesInside?: "ignore" | number;
|
|
7418
|
+
order?: "asc" | "desc";
|
|
6799
7419
|
sortBy?: "name" | "value";
|
|
6800
7420
|
})[];
|
|
6801
|
-
|
|
7421
|
+
newlinesBetween?: "ignore" | number;
|
|
6802
7422
|
useConfigurationIf?: {
|
|
6803
7423
|
allNamesMatchPattern?: ({
|
|
6804
7424
|
pattern: string;
|
|
@@ -6807,10 +7427,22 @@ type PerfectionistSortObjectTypes = {
|
|
|
6807
7427
|
pattern: string;
|
|
6808
7428
|
flags?: string;
|
|
6809
7429
|
} | string);
|
|
7430
|
+
hasNumericKeysOnly?: boolean;
|
|
7431
|
+
declarationCommentMatchesPattern?: ({
|
|
7432
|
+
scope?: "shallow" | "deep";
|
|
7433
|
+
pattern: string;
|
|
7434
|
+
flags?: string;
|
|
7435
|
+
} | string)[] | ({
|
|
7436
|
+
scope?: "shallow" | "deep";
|
|
7437
|
+
pattern: string;
|
|
7438
|
+
flags?: string;
|
|
7439
|
+
} | string);
|
|
6810
7440
|
declarationMatchesPattern?: ({
|
|
7441
|
+
scope?: "shallow" | "deep";
|
|
6811
7442
|
pattern: string;
|
|
6812
7443
|
flags?: string;
|
|
6813
7444
|
} | string)[] | ({
|
|
7445
|
+
scope?: "shallow" | "deep";
|
|
6814
7446
|
pattern: string;
|
|
6815
7447
|
flags?: string;
|
|
6816
7448
|
} | string);
|
|
@@ -6838,49 +7470,38 @@ type PerfectionistSortObjectTypes = {
|
|
|
6838
7470
|
} | string));
|
|
6839
7471
|
};
|
|
6840
7472
|
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
7473
|
}[];
|
|
6855
7474
|
// ----- perfectionist/sort-objects -----
|
|
6856
7475
|
type PerfectionistSortObjects = {
|
|
6857
7476
|
fallbackSort?: {
|
|
7477
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6858
7478
|
order?: "asc" | "desc";
|
|
6859
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6860
7479
|
};
|
|
7480
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6861
7481
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
6862
7482
|
ignoreCase?: boolean;
|
|
6863
7483
|
alphabet?: string;
|
|
6864
7484
|
locales?: string | string[];
|
|
6865
7485
|
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;
|
|
7486
|
+
customGroups?: ({
|
|
6874
7487
|
fallbackSort?: {
|
|
7488
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6875
7489
|
order?: "asc" | "desc";
|
|
6876
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6877
7490
|
};
|
|
7491
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6878
7492
|
groupName: string;
|
|
7493
|
+
newlinesInside?: "ignore" | number;
|
|
6879
7494
|
order?: "asc" | "desc";
|
|
6880
|
-
|
|
6881
|
-
|
|
6882
|
-
|
|
6883
|
-
|
|
7495
|
+
anyOf: [{
|
|
7496
|
+
elementNamePattern?: ({
|
|
7497
|
+
pattern: string;
|
|
7498
|
+
flags?: string;
|
|
7499
|
+
} | string)[] | ({
|
|
7500
|
+
pattern: string;
|
|
7501
|
+
flags?: string;
|
|
7502
|
+
} | string);
|
|
7503
|
+
modifiers?: "multiline"[];
|
|
7504
|
+
selector?: "member" | "method" | "property";
|
|
6884
7505
|
elementValuePattern?: ({
|
|
6885
7506
|
pattern: string;
|
|
6886
7507
|
flags?: string;
|
|
@@ -6888,6 +7509,7 @@ type PerfectionistSortObjects = {
|
|
|
6888
7509
|
pattern: string;
|
|
6889
7510
|
flags?: string;
|
|
6890
7511
|
} | string);
|
|
7512
|
+
}, ...{
|
|
6891
7513
|
elementNamePattern?: ({
|
|
6892
7514
|
pattern: string;
|
|
6893
7515
|
flags?: string;
|
|
@@ -6895,26 +7517,35 @@ type PerfectionistSortObjects = {
|
|
|
6895
7517
|
pattern: string;
|
|
6896
7518
|
flags?: string;
|
|
6897
7519
|
} | string);
|
|
6898
|
-
|
|
7520
|
+
modifiers?: "multiline"[];
|
|
7521
|
+
selector?: "member" | "method" | "property";
|
|
7522
|
+
elementValuePattern?: ({
|
|
7523
|
+
pattern: string;
|
|
7524
|
+
flags?: string;
|
|
7525
|
+
} | string)[] | ({
|
|
7526
|
+
pattern: string;
|
|
7527
|
+
flags?: string;
|
|
7528
|
+
} | string);
|
|
7529
|
+
}[]];
|
|
6899
7530
|
} | {
|
|
6900
|
-
newlinesInside?: ("always" | "never") | number;
|
|
6901
7531
|
fallbackSort?: {
|
|
7532
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6902
7533
|
order?: "asc" | "desc";
|
|
6903
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6904
7534
|
};
|
|
7535
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6905
7536
|
groupName: string;
|
|
7537
|
+
newlinesInside?: "ignore" | number;
|
|
6906
7538
|
order?: "asc" | "desc";
|
|
6907
|
-
|
|
6908
|
-
modifiers?: ("optional" | "required" | "multiline")[];
|
|
6909
|
-
selector?: "member" | "method" | "multiline" | "property";
|
|
6910
|
-
elementValuePattern?: ({
|
|
7539
|
+
elementNamePattern?: ({
|
|
6911
7540
|
pattern: string;
|
|
6912
7541
|
flags?: string;
|
|
6913
7542
|
} | string)[] | ({
|
|
6914
7543
|
pattern: string;
|
|
6915
7544
|
flags?: string;
|
|
6916
7545
|
} | string);
|
|
6917
|
-
|
|
7546
|
+
modifiers?: "multiline"[];
|
|
7547
|
+
selector?: "member" | "method" | "property";
|
|
7548
|
+
elementValuePattern?: ({
|
|
6918
7549
|
pattern: string;
|
|
6919
7550
|
flags?: string;
|
|
6920
7551
|
} | string)[] | ({
|
|
@@ -6922,6 +7553,21 @@ type PerfectionistSortObjects = {
|
|
|
6922
7553
|
flags?: string;
|
|
6923
7554
|
} | string);
|
|
6924
7555
|
})[];
|
|
7556
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
7557
|
+
groups?: (string | [string, ...string[]] | {
|
|
7558
|
+
newlinesBetween: "ignore" | number;
|
|
7559
|
+
} | {
|
|
7560
|
+
group: string | [string, ...string[]];
|
|
7561
|
+
fallbackSort?: {
|
|
7562
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7563
|
+
order?: "asc" | "desc";
|
|
7564
|
+
};
|
|
7565
|
+
commentAbove?: string;
|
|
7566
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7567
|
+
newlinesInside?: "ignore" | number;
|
|
7568
|
+
order?: "asc" | "desc";
|
|
7569
|
+
})[];
|
|
7570
|
+
newlinesBetween?: "ignore" | number;
|
|
6925
7571
|
useConfigurationIf?: {
|
|
6926
7572
|
allNamesMatchPattern?: ({
|
|
6927
7573
|
pattern: string;
|
|
@@ -6930,16 +7576,36 @@ type PerfectionistSortObjects = {
|
|
|
6930
7576
|
pattern: string;
|
|
6931
7577
|
flags?: string;
|
|
6932
7578
|
} | string);
|
|
7579
|
+
objectType?: "destructured" | "non-destructured";
|
|
7580
|
+
hasNumericKeysOnly?: boolean;
|
|
7581
|
+
declarationCommentMatchesPattern?: ({
|
|
7582
|
+
scope?: "shallow" | "deep";
|
|
7583
|
+
pattern: string;
|
|
7584
|
+
flags?: string;
|
|
7585
|
+
} | string)[] | ({
|
|
7586
|
+
scope?: "shallow" | "deep";
|
|
7587
|
+
pattern: string;
|
|
7588
|
+
flags?: string;
|
|
7589
|
+
} | string);
|
|
6933
7590
|
callingFunctionNamePattern?: ({
|
|
7591
|
+
scope?: "shallow" | "deep";
|
|
6934
7592
|
pattern: string;
|
|
6935
7593
|
flags?: string;
|
|
6936
7594
|
} | string)[] | ({
|
|
7595
|
+
scope?: "shallow" | "deep";
|
|
7596
|
+
pattern: string;
|
|
7597
|
+
flags?: string;
|
|
7598
|
+
} | string);
|
|
7599
|
+
declarationMatchesPattern?: ({
|
|
7600
|
+
scope?: "shallow" | "deep";
|
|
7601
|
+
pattern: string;
|
|
7602
|
+
flags?: string;
|
|
7603
|
+
} | string)[] | ({
|
|
7604
|
+
scope?: "shallow" | "deep";
|
|
6937
7605
|
pattern: string;
|
|
6938
7606
|
flags?: string;
|
|
6939
7607
|
} | string);
|
|
6940
7608
|
};
|
|
6941
|
-
destructureOnly?: boolean;
|
|
6942
|
-
objectDeclarations?: boolean;
|
|
6943
7609
|
styledComponents?: boolean;
|
|
6944
7610
|
partitionByComment?: boolean | (({
|
|
6945
7611
|
pattern: string;
|
|
@@ -6964,43 +7630,38 @@ type PerfectionistSortObjects = {
|
|
|
6964
7630
|
} | string));
|
|
6965
7631
|
};
|
|
6966
7632
|
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
7633
|
}[];
|
|
6980
7634
|
// ----- perfectionist/sort-sets -----
|
|
6981
7635
|
type PerfectionistSortSets = {
|
|
6982
7636
|
fallbackSort?: {
|
|
7637
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6983
7638
|
order?: "asc" | "desc";
|
|
6984
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6985
7639
|
};
|
|
7640
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6986
7641
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
6987
7642
|
ignoreCase?: boolean;
|
|
6988
7643
|
alphabet?: string;
|
|
6989
7644
|
locales?: string | string[];
|
|
6990
7645
|
order?: "asc" | "desc";
|
|
6991
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6992
|
-
groupKind?: "mixed" | "literals-first" | "spreads-first";
|
|
6993
7646
|
customGroups?: ({
|
|
6994
|
-
newlinesInside?: ("always" | "never") | number;
|
|
6995
7647
|
fallbackSort?: {
|
|
7648
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6996
7649
|
order?: "asc" | "desc";
|
|
6997
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
6998
7650
|
};
|
|
7651
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
6999
7652
|
groupName: string;
|
|
7653
|
+
newlinesInside?: "ignore" | number;
|
|
7000
7654
|
order?: "asc" | "desc";
|
|
7001
|
-
|
|
7002
|
-
|
|
7655
|
+
anyOf: [{
|
|
7656
|
+
elementNamePattern?: ({
|
|
7657
|
+
pattern: string;
|
|
7658
|
+
flags?: string;
|
|
7659
|
+
} | string)[] | ({
|
|
7660
|
+
pattern: string;
|
|
7661
|
+
flags?: string;
|
|
7662
|
+
} | string);
|
|
7003
7663
|
selector?: "literal" | "spread";
|
|
7664
|
+
}, ...{
|
|
7004
7665
|
elementNamePattern?: ({
|
|
7005
7666
|
pattern: string;
|
|
7006
7667
|
flags?: string;
|
|
@@ -7008,17 +7669,17 @@ type PerfectionistSortSets = {
|
|
|
7008
7669
|
pattern: string;
|
|
7009
7670
|
flags?: string;
|
|
7010
7671
|
} | string);
|
|
7011
|
-
|
|
7672
|
+
selector?: "literal" | "spread";
|
|
7673
|
+
}[]];
|
|
7012
7674
|
} | {
|
|
7013
|
-
newlinesInside?: ("always" | "never") | number;
|
|
7014
7675
|
fallbackSort?: {
|
|
7676
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7015
7677
|
order?: "asc" | "desc";
|
|
7016
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
7017
7678
|
};
|
|
7679
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7018
7680
|
groupName: string;
|
|
7681
|
+
newlinesInside?: "ignore" | number;
|
|
7019
7682
|
order?: "asc" | "desc";
|
|
7020
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
7021
|
-
selector?: "literal" | "spread";
|
|
7022
7683
|
elementNamePattern?: ({
|
|
7023
7684
|
pattern: string;
|
|
7024
7685
|
flags?: string;
|
|
@@ -7026,7 +7687,23 @@ type PerfectionistSortSets = {
|
|
|
7026
7687
|
pattern: string;
|
|
7027
7688
|
flags?: string;
|
|
7028
7689
|
} | string);
|
|
7690
|
+
selector?: "literal" | "spread";
|
|
7691
|
+
})[];
|
|
7692
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
7693
|
+
groups?: (string | [string, ...string[]] | {
|
|
7694
|
+
newlinesBetween: "ignore" | number;
|
|
7695
|
+
} | {
|
|
7696
|
+
group: string | [string, ...string[]];
|
|
7697
|
+
fallbackSort?: {
|
|
7698
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7699
|
+
order?: "asc" | "desc";
|
|
7700
|
+
};
|
|
7701
|
+
commentAbove?: string;
|
|
7702
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7703
|
+
newlinesInside?: "ignore" | number;
|
|
7704
|
+
order?: "asc" | "desc";
|
|
7029
7705
|
})[];
|
|
7706
|
+
newlinesBetween?: "ignore" | number;
|
|
7030
7707
|
useConfigurationIf?: {
|
|
7031
7708
|
allNamesMatchPattern?: ({
|
|
7032
7709
|
pattern: string;
|
|
@@ -7059,48 +7736,51 @@ type PerfectionistSortSets = {
|
|
|
7059
7736
|
} | string));
|
|
7060
7737
|
};
|
|
7061
7738
|
partitionByNewLine?: boolean;
|
|
7062
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
7063
|
-
groups?: (string | string[] | {
|
|
7064
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
7065
|
-
commentAbove?: string;
|
|
7066
|
-
})[];
|
|
7067
7739
|
}[];
|
|
7068
7740
|
// ----- perfectionist/sort-switch-case -----
|
|
7069
7741
|
type PerfectionistSortSwitchCase = [] | [{
|
|
7070
7742
|
fallbackSort?: {
|
|
7743
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7071
7744
|
order?: "asc" | "desc";
|
|
7072
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
7073
7745
|
};
|
|
7746
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7074
7747
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
7075
7748
|
ignoreCase?: boolean;
|
|
7076
7749
|
alphabet?: string;
|
|
7077
7750
|
locales?: string | string[];
|
|
7078
7751
|
order?: "asc" | "desc";
|
|
7079
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
7080
7752
|
}];
|
|
7081
7753
|
// ----- perfectionist/sort-union-types -----
|
|
7082
7754
|
type PerfectionistSortUnionTypes = {
|
|
7083
7755
|
fallbackSort?: {
|
|
7756
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7084
7757
|
order?: "asc" | "desc";
|
|
7085
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
7086
7758
|
};
|
|
7759
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7087
7760
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
7088
7761
|
ignoreCase?: boolean;
|
|
7089
7762
|
alphabet?: string;
|
|
7090
7763
|
locales?: string | string[];
|
|
7091
7764
|
order?: "asc" | "desc";
|
|
7092
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
7093
7765
|
customGroups?: ({
|
|
7094
|
-
newlinesInside?: ("always" | "never") | number;
|
|
7095
7766
|
fallbackSort?: {
|
|
7767
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7096
7768
|
order?: "asc" | "desc";
|
|
7097
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
7098
7769
|
};
|
|
7770
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7099
7771
|
groupName: string;
|
|
7772
|
+
newlinesInside?: "ignore" | number;
|
|
7100
7773
|
order?: "asc" | "desc";
|
|
7101
|
-
|
|
7102
|
-
|
|
7774
|
+
anyOf: [{
|
|
7775
|
+
elementNamePattern?: ({
|
|
7776
|
+
pattern: string;
|
|
7777
|
+
flags?: string;
|
|
7778
|
+
} | string)[] | ({
|
|
7779
|
+
pattern: string;
|
|
7780
|
+
flags?: string;
|
|
7781
|
+
} | string);
|
|
7103
7782
|
selector?: "intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union";
|
|
7783
|
+
}, ...{
|
|
7104
7784
|
elementNamePattern?: ({
|
|
7105
7785
|
pattern: string;
|
|
7106
7786
|
flags?: string;
|
|
@@ -7108,17 +7788,17 @@ type PerfectionistSortUnionTypes = {
|
|
|
7108
7788
|
pattern: string;
|
|
7109
7789
|
flags?: string;
|
|
7110
7790
|
} | string);
|
|
7111
|
-
|
|
7791
|
+
selector?: "intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union";
|
|
7792
|
+
}[]];
|
|
7112
7793
|
} | {
|
|
7113
|
-
newlinesInside?: ("always" | "never") | number;
|
|
7114
7794
|
fallbackSort?: {
|
|
7795
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7115
7796
|
order?: "asc" | "desc";
|
|
7116
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
7117
7797
|
};
|
|
7798
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7118
7799
|
groupName: string;
|
|
7800
|
+
newlinesInside?: "ignore" | number;
|
|
7119
7801
|
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
7802
|
elementNamePattern?: ({
|
|
7123
7803
|
pattern: string;
|
|
7124
7804
|
flags?: string;
|
|
@@ -7126,7 +7806,23 @@ type PerfectionistSortUnionTypes = {
|
|
|
7126
7806
|
pattern: string;
|
|
7127
7807
|
flags?: string;
|
|
7128
7808
|
} | string);
|
|
7809
|
+
selector?: "intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union";
|
|
7810
|
+
})[];
|
|
7811
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
7812
|
+
groups?: (string | [string, ...string[]] | {
|
|
7813
|
+
newlinesBetween: "ignore" | number;
|
|
7814
|
+
} | {
|
|
7815
|
+
group: string | [string, ...string[]];
|
|
7816
|
+
fallbackSort?: {
|
|
7817
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7818
|
+
order?: "asc" | "desc";
|
|
7819
|
+
};
|
|
7820
|
+
commentAbove?: string;
|
|
7821
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7822
|
+
newlinesInside?: "ignore" | number;
|
|
7823
|
+
order?: "asc" | "desc";
|
|
7129
7824
|
})[];
|
|
7825
|
+
newlinesBetween?: "ignore" | number;
|
|
7130
7826
|
partitionByComment?: boolean | (({
|
|
7131
7827
|
pattern: string;
|
|
7132
7828
|
flags?: string;
|
|
@@ -7150,35 +7846,38 @@ type PerfectionistSortUnionTypes = {
|
|
|
7150
7846
|
} | string));
|
|
7151
7847
|
};
|
|
7152
7848
|
partitionByNewLine?: boolean;
|
|
7153
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
7154
|
-
groups?: (string | string[] | {
|
|
7155
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
7156
|
-
commentAbove?: string;
|
|
7157
|
-
})[];
|
|
7158
7849
|
}[];
|
|
7159
7850
|
// ----- perfectionist/sort-variable-declarations -----
|
|
7160
7851
|
type PerfectionistSortVariableDeclarations = [] | [{
|
|
7161
7852
|
fallbackSort?: {
|
|
7853
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7162
7854
|
order?: "asc" | "desc";
|
|
7163
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
7164
7855
|
};
|
|
7856
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7165
7857
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
7166
7858
|
ignoreCase?: boolean;
|
|
7167
7859
|
alphabet?: string;
|
|
7168
7860
|
locales?: string | string[];
|
|
7169
7861
|
order?: "asc" | "desc";
|
|
7170
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
7171
7862
|
customGroups?: ({
|
|
7172
|
-
newlinesInside?: ("always" | "never") | number;
|
|
7173
7863
|
fallbackSort?: {
|
|
7864
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7174
7865
|
order?: "asc" | "desc";
|
|
7175
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
7176
7866
|
};
|
|
7867
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7177
7868
|
groupName: string;
|
|
7869
|
+
newlinesInside?: "ignore" | number;
|
|
7178
7870
|
order?: "asc" | "desc";
|
|
7179
|
-
|
|
7180
|
-
|
|
7871
|
+
anyOf: [{
|
|
7872
|
+
elementNamePattern?: ({
|
|
7873
|
+
pattern: string;
|
|
7874
|
+
flags?: string;
|
|
7875
|
+
} | string)[] | ({
|
|
7876
|
+
pattern: string;
|
|
7877
|
+
flags?: string;
|
|
7878
|
+
} | string);
|
|
7181
7879
|
selector?: "initialized" | "uninitialized";
|
|
7880
|
+
}, ...{
|
|
7182
7881
|
elementNamePattern?: ({
|
|
7183
7882
|
pattern: string;
|
|
7184
7883
|
flags?: string;
|
|
@@ -7186,17 +7885,17 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
7186
7885
|
pattern: string;
|
|
7187
7886
|
flags?: string;
|
|
7188
7887
|
} | string);
|
|
7189
|
-
|
|
7888
|
+
selector?: "initialized" | "uninitialized";
|
|
7889
|
+
}[]];
|
|
7190
7890
|
} | {
|
|
7191
|
-
newlinesInside?: ("always" | "never") | number;
|
|
7192
7891
|
fallbackSort?: {
|
|
7892
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7193
7893
|
order?: "asc" | "desc";
|
|
7194
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
7195
7894
|
};
|
|
7895
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7196
7896
|
groupName: string;
|
|
7897
|
+
newlinesInside?: "ignore" | number;
|
|
7197
7898
|
order?: "asc" | "desc";
|
|
7198
|
-
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
7199
|
-
selector?: "initialized" | "uninitialized";
|
|
7200
7899
|
elementNamePattern?: ({
|
|
7201
7900
|
pattern: string;
|
|
7202
7901
|
flags?: string;
|
|
@@ -7204,7 +7903,23 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
7204
7903
|
pattern: string;
|
|
7205
7904
|
flags?: string;
|
|
7206
7905
|
} | string);
|
|
7906
|
+
selector?: "initialized" | "uninitialized";
|
|
7907
|
+
})[];
|
|
7908
|
+
newlinesInside?: ("ignore" | number) | "newlinesBetween";
|
|
7909
|
+
groups?: (string | [string, ...string[]] | {
|
|
7910
|
+
newlinesBetween: "ignore" | number;
|
|
7911
|
+
} | {
|
|
7912
|
+
group: string | [string, ...string[]];
|
|
7913
|
+
fallbackSort?: {
|
|
7914
|
+
type: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7915
|
+
order?: "asc" | "desc";
|
|
7916
|
+
};
|
|
7917
|
+
commentAbove?: string;
|
|
7918
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "subgroup-order";
|
|
7919
|
+
newlinesInside?: "ignore" | number;
|
|
7920
|
+
order?: "asc" | "desc";
|
|
7207
7921
|
})[];
|
|
7922
|
+
newlinesBetween?: "ignore" | number;
|
|
7208
7923
|
partitionByComment?: boolean | (({
|
|
7209
7924
|
pattern: string;
|
|
7210
7925
|
flags?: string;
|
|
@@ -7228,11 +7943,6 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
7228
7943
|
} | string));
|
|
7229
7944
|
};
|
|
7230
7945
|
partitionByNewLine?: boolean;
|
|
7231
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
7232
|
-
groups?: (string | string[] | {
|
|
7233
|
-
newlinesBetween?: ("ignore" | "always" | "never") | number;
|
|
7234
|
-
commentAbove?: string;
|
|
7235
|
-
})[];
|
|
7236
7946
|
}];
|
|
7237
7947
|
//#endregion
|
|
7238
7948
|
//#region src/generated/dts/pnpm.d.ts
|
|
@@ -11447,6 +12157,11 @@ interface TypescriptRuleOptions {
|
|
|
11447
12157
|
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/consistent-type-specifier-style/README.md
|
|
11448
12158
|
*/
|
|
11449
12159
|
"import/consistent-type-specifier-style"?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
|
|
12160
|
+
/**
|
|
12161
|
+
* Ensure all exports appear after other statements.
|
|
12162
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/exports-last/README.md
|
|
12163
|
+
*/
|
|
12164
|
+
"import/exports-last"?: Linter.RuleEntry<[]>;
|
|
11450
12165
|
/**
|
|
11451
12166
|
* Ensure all imports appear before other statements.
|
|
11452
12167
|
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/first/README.md
|
|
@@ -11477,6 +12192,11 @@ interface TypescriptRuleOptions {
|
|
|
11477
12192
|
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/no-named-default/README.md
|
|
11478
12193
|
*/
|
|
11479
12194
|
"import/no-named-default"?: Linter.RuleEntry<[]>;
|
|
12195
|
+
/**
|
|
12196
|
+
* Prefer a default export if module exports a single name or multiple names.
|
|
12197
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/prefer-default-export/README.md
|
|
12198
|
+
*/
|
|
12199
|
+
"import/prefer-default-export"?: Linter.RuleEntry<ImportPreferDefaultExport>;
|
|
11480
12200
|
}
|
|
11481
12201
|
/* ======= Declarations ======= */
|
|
11482
12202
|
// ----- @typescript-eslint/array-type -----
|
|
@@ -12442,6 +13162,10 @@ type ImportNewlineAfterImport = [] | [{
|
|
|
12442
13162
|
type ImportNoDuplicates = [] | [{
|
|
12443
13163
|
"prefer-inline"?: boolean;
|
|
12444
13164
|
}];
|
|
13165
|
+
// ----- import/prefer-default-export -----
|
|
13166
|
+
type ImportPreferDefaultExport = [] | [{
|
|
13167
|
+
target?: "single" | "any";
|
|
13168
|
+
}];
|
|
12445
13169
|
//#endregion
|
|
12446
13170
|
//#region src/generated/dts/unicorn.d.ts
|
|
12447
13171
|
interface UnicornRuleOptions {
|
|
@@ -13449,7 +14173,7 @@ interface VitestRuleOptions {
|
|
|
13449
14173
|
* disallow conditional expects
|
|
13450
14174
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-expect.md
|
|
13451
14175
|
*/
|
|
13452
|
-
"vitest/no-conditional-expect"?: Linter.RuleEntry<
|
|
14176
|
+
"vitest/no-conditional-expect"?: Linter.RuleEntry<VitestNoConditionalExpect>;
|
|
13453
14177
|
/**
|
|
13454
14178
|
* disallow conditional tests
|
|
13455
14179
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-in-test.md
|
|
@@ -13541,6 +14265,11 @@ interface VitestRuleOptions {
|
|
|
13541
14265
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-return-statement.md
|
|
13542
14266
|
*/
|
|
13543
14267
|
"vitest/no-test-return-statement"?: Linter.RuleEntry<[]>;
|
|
14268
|
+
/**
|
|
14269
|
+
* Disallow unnecessary async function wrapper for expected promises
|
|
14270
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-unneeded-async-expect-function.md
|
|
14271
|
+
*/
|
|
14272
|
+
"vitest/no-unneeded-async-expect-function"?: Linter.RuleEntry<[]>;
|
|
13544
14273
|
/**
|
|
13545
14274
|
* Enforce padding around `afterAll` blocks
|
|
13546
14275
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-after-all-blocks.md
|
|
@@ -13650,7 +14379,7 @@ interface VitestRuleOptions {
|
|
|
13650
14379
|
* prefer dynamic import in mock
|
|
13651
14380
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-import-in-mock.md
|
|
13652
14381
|
*/
|
|
13653
|
-
"vitest/prefer-import-in-mock"?: Linter.RuleEntry<
|
|
14382
|
+
"vitest/prefer-import-in-mock"?: Linter.RuleEntry<VitestPreferImportInMock>;
|
|
13654
14383
|
/**
|
|
13655
14384
|
* enforce importing Vitest globals
|
|
13656
14385
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-importing-vitest-globals.md
|
|
@@ -13666,6 +14395,11 @@ interface VitestRuleOptions {
|
|
|
13666
14395
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-mock-promise-shorthand.md
|
|
13667
14396
|
*/
|
|
13668
14397
|
"vitest/prefer-mock-promise-shorthand"?: Linter.RuleEntry<[]>;
|
|
14398
|
+
/**
|
|
14399
|
+
* Prefer mock return shorthands
|
|
14400
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-mock-return-shorthand.md
|
|
14401
|
+
*/
|
|
14402
|
+
"vitest/prefer-mock-return-shorthand"?: Linter.RuleEntry<[]>;
|
|
13669
14403
|
/**
|
|
13670
14404
|
* enforce including a hint with external snapshots
|
|
13671
14405
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-snapshot-hint.md
|
|
@@ -13711,6 +14445,11 @@ interface VitestRuleOptions {
|
|
|
13711
14445
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-contain.md
|
|
13712
14446
|
*/
|
|
13713
14447
|
"vitest/prefer-to-contain"?: Linter.RuleEntry<[]>;
|
|
14448
|
+
/**
|
|
14449
|
+
* Suggest using `toHaveBeenCalledTimes()`
|
|
14450
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-been-called-times.md
|
|
14451
|
+
*/
|
|
14452
|
+
"vitest/prefer-to-have-been-called-times"?: Linter.RuleEntry<[]>;
|
|
13714
14453
|
/**
|
|
13715
14454
|
* enforce using toHaveLength()
|
|
13716
14455
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-length.md
|
|
@@ -13736,11 +14475,6 @@ interface VitestRuleOptions {
|
|
|
13736
14475
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
|
|
13737
14476
|
*/
|
|
13738
14477
|
"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
14478
|
/**
|
|
13745
14479
|
* require local Test Context for concurrent snapshot tests
|
|
13746
14480
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-local-test-context-for-concurrent-snapshots.md
|
|
@@ -13822,6 +14556,10 @@ type VitestMaxExpects = [] | [{
|
|
|
13822
14556
|
type VitestMaxNestedDescribe = [] | [{
|
|
13823
14557
|
max?: number;
|
|
13824
14558
|
}];
|
|
14559
|
+
// ----- vitest/no-conditional-expect -----
|
|
14560
|
+
type VitestNoConditionalExpect = [] | [{
|
|
14561
|
+
expectAssertions?: boolean;
|
|
14562
|
+
}];
|
|
13825
14563
|
// ----- vitest/no-focused-tests -----
|
|
13826
14564
|
type VitestNoFocusedTests = [] | [{
|
|
13827
14565
|
fixable?: boolean;
|
|
@@ -13856,6 +14594,10 @@ type VitestPreferExpectAssertions = [] | [{
|
|
|
13856
14594
|
onlyFunctionsWithExpectInLoop?: boolean;
|
|
13857
14595
|
onlyFunctionsWithExpectInCallback?: boolean;
|
|
13858
14596
|
}];
|
|
14597
|
+
// ----- vitest/prefer-import-in-mock -----
|
|
14598
|
+
type VitestPreferImportInMock = [] | [{
|
|
14599
|
+
fixable?: boolean;
|
|
14600
|
+
}];
|
|
13859
14601
|
// ----- vitest/prefer-lowercase-title -----
|
|
13860
14602
|
type VitestPreferLowercaseTitle = [] | [{
|
|
13861
14603
|
ignore?: ("describe" | "test" | "it")[];
|
|
@@ -14563,7 +15305,7 @@ declare function defineConfig(options?: OptionsConfig & Config, ...userConfigs:
|
|
|
14563
15305
|
type DefineConfig = typeof defineConfig;
|
|
14564
15306
|
//#endregion
|
|
14565
15307
|
//#region src/generated/version.d.ts
|
|
14566
|
-
declare const VERSION = "0.4.
|
|
15308
|
+
declare const VERSION = "0.4.26";
|
|
14567
15309
|
declare namespace globs_d_exports {
|
|
14568
15310
|
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
15311
|
}
|