@pengzhanbo/eslint-config 1.44.0 → 1.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +811 -471
- package/dist/index.mjs +23 -24
- package/package.json +11 -11
package/dist/index.d.mts
CHANGED
|
@@ -1751,7 +1751,7 @@ interface RuleOptions {
|
|
|
1751
1751
|
*/
|
|
1752
1752
|
'next/inline-script-id'?: Linter.RuleEntry<[]>;
|
|
1753
1753
|
/**
|
|
1754
|
-
* Prefer
|
|
1754
|
+
* Prefer `@next/third-parties/google` when using the inline script for Google Analytics and Tag Manager.
|
|
1755
1755
|
* @see https://nextjs.org/docs/messages/next-script-for-ga
|
|
1756
1756
|
*/
|
|
1757
1757
|
'next/next-script-for-ga'?: Linter.RuleEntry<[]>;
|
|
@@ -2935,6 +2935,11 @@ interface RuleOptions {
|
|
|
2935
2935
|
* @see https://perfectionist.dev/rules/sort-enums
|
|
2936
2936
|
*/
|
|
2937
2937
|
'perfectionist/sort-enums'?: Linter.RuleEntry<PerfectionistSortEnums>;
|
|
2938
|
+
/**
|
|
2939
|
+
* Enforce sorted export attributes.
|
|
2940
|
+
* @see https://perfectionist.dev/rules/sort-export-attributes
|
|
2941
|
+
*/
|
|
2942
|
+
'perfectionist/sort-export-attributes'?: Linter.RuleEntry<PerfectionistSortExportAttributes>;
|
|
2938
2943
|
/**
|
|
2939
2944
|
* Enforce sorted exports.
|
|
2940
2945
|
* @see https://perfectionist.dev/rules/sort-exports
|
|
@@ -2945,6 +2950,11 @@ interface RuleOptions {
|
|
|
2945
2950
|
* @see https://perfectionist.dev/rules/sort-heritage-clauses
|
|
2946
2951
|
*/
|
|
2947
2952
|
'perfectionist/sort-heritage-clauses'?: Linter.RuleEntry<PerfectionistSortHeritageClauses>;
|
|
2953
|
+
/**
|
|
2954
|
+
* Enforce sorted import attributes.
|
|
2955
|
+
* @see https://perfectionist.dev/rules/sort-import-attributes
|
|
2956
|
+
*/
|
|
2957
|
+
'perfectionist/sort-import-attributes'?: Linter.RuleEntry<PerfectionistSortImportAttributes>;
|
|
2948
2958
|
/**
|
|
2949
2959
|
* Enforce sorted imports.
|
|
2950
2960
|
* @see https://perfectionist.dev/rules/sort-imports
|
|
@@ -5384,6 +5394,11 @@ interface RuleOptions {
|
|
|
5384
5394
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-return-statement.md
|
|
5385
5395
|
*/
|
|
5386
5396
|
'test/no-test-return-statement'?: Linter.RuleEntry<[]>;
|
|
5397
|
+
/**
|
|
5398
|
+
* Disallow unnecessary async function wrapper for expected promises
|
|
5399
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-unneeded-async-expect-function.md
|
|
5400
|
+
*/
|
|
5401
|
+
'test/no-unneeded-async-expect-function'?: Linter.RuleEntry<[]>;
|
|
5387
5402
|
/**
|
|
5388
5403
|
* Enforce padding around `afterAll` blocks
|
|
5389
5404
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-after-all-blocks.md
|
|
@@ -5554,6 +5569,11 @@ interface RuleOptions {
|
|
|
5554
5569
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-contain.md
|
|
5555
5570
|
*/
|
|
5556
5571
|
'test/prefer-to-contain'?: Linter.RuleEntry<[]>;
|
|
5572
|
+
/**
|
|
5573
|
+
* Suggest using `toHaveBeenCalledTimes()`
|
|
5574
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-been-called-times.md
|
|
5575
|
+
*/
|
|
5576
|
+
'test/prefer-to-have-been-called-times'?: Linter.RuleEntry<[]>;
|
|
5557
5577
|
/**
|
|
5558
5578
|
* enforce using toHaveLength()
|
|
5559
5579
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-length.md
|
|
@@ -5579,11 +5599,6 @@ interface RuleOptions {
|
|
|
5579
5599
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
|
|
5580
5600
|
*/
|
|
5581
5601
|
'test/require-hook'?: Linter.RuleEntry<TestRequireHook>;
|
|
5582
|
-
/**
|
|
5583
|
-
* require usage of import in vi.mock()
|
|
5584
|
-
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-import-vi-mock.md
|
|
5585
|
-
*/
|
|
5586
|
-
'test/require-import-vi-mock'?: Linter.RuleEntry<[]>;
|
|
5587
5602
|
/**
|
|
5588
5603
|
* require local Test Context for concurrent snapshot tests
|
|
5589
5604
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-local-test-context-for-concurrent-snapshots.md
|
|
@@ -6203,6 +6218,11 @@ interface RuleOptions {
|
|
|
6203
6218
|
* @see https://typescript-eslint.io/rules/no-useless-constructor
|
|
6204
6219
|
*/
|
|
6205
6220
|
'ts/no-useless-constructor'?: Linter.RuleEntry<[]>;
|
|
6221
|
+
/**
|
|
6222
|
+
* Disallow default values that will never be used
|
|
6223
|
+
* @see https://typescript-eslint.io/rules/no-useless-default-assignment
|
|
6224
|
+
*/
|
|
6225
|
+
'ts/no-useless-default-assignment'?: Linter.RuleEntry<[]>;
|
|
6206
6226
|
/**
|
|
6207
6227
|
* Disallow empty exports that don't change anything in a module file
|
|
6208
6228
|
* @see https://typescript-eslint.io/rules/no-useless-empty-export
|
|
@@ -11584,27 +11604,25 @@ type PaddingLineBetweenStatements = {
|
|
|
11584
11604
|
// ----- perfectionist/sort-array-includes -----
|
|
11585
11605
|
type PerfectionistSortArrayIncludes = {
|
|
11586
11606
|
fallbackSort?: {
|
|
11607
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11587
11608
|
order?: ("asc" | "desc");
|
|
11588
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11589
11609
|
};
|
|
11610
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11590
11611
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11591
11612
|
ignoreCase?: boolean;
|
|
11592
11613
|
alphabet?: string;
|
|
11593
11614
|
locales?: (string | string[]);
|
|
11594
11615
|
order?: ("asc" | "desc");
|
|
11595
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11596
|
-
groupKind?: ("mixed" | "literals-first" | "spreads-first");
|
|
11597
11616
|
customGroups?: ({
|
|
11598
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11599
11617
|
fallbackSort?: {
|
|
11618
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11600
11619
|
order?: ("asc" | "desc");
|
|
11601
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11602
11620
|
};
|
|
11621
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11603
11622
|
groupName: string;
|
|
11623
|
+
newlinesInside?: number;
|
|
11604
11624
|
order?: ("asc" | "desc");
|
|
11605
|
-
|
|
11606
|
-
anyOf?: {
|
|
11607
|
-
selector?: ("literal" | "spread");
|
|
11625
|
+
anyOf: {
|
|
11608
11626
|
elementNamePattern?: (({
|
|
11609
11627
|
pattern: string;
|
|
11610
11628
|
flags?: string;
|
|
@@ -11612,17 +11630,17 @@ type PerfectionistSortArrayIncludes = {
|
|
|
11612
11630
|
pattern: string;
|
|
11613
11631
|
flags?: string;
|
|
11614
11632
|
} | string));
|
|
11633
|
+
selector?: ("literal" | "spread");
|
|
11615
11634
|
}[];
|
|
11616
11635
|
} | {
|
|
11617
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11618
11636
|
fallbackSort?: {
|
|
11637
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11619
11638
|
order?: ("asc" | "desc");
|
|
11620
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11621
11639
|
};
|
|
11640
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11622
11641
|
groupName: string;
|
|
11642
|
+
newlinesInside?: number;
|
|
11623
11643
|
order?: ("asc" | "desc");
|
|
11624
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11625
|
-
selector?: ("literal" | "spread");
|
|
11626
11644
|
elementNamePattern?: (({
|
|
11627
11645
|
pattern: string;
|
|
11628
11646
|
flags?: string;
|
|
@@ -11630,7 +11648,18 @@ type PerfectionistSortArrayIncludes = {
|
|
|
11630
11648
|
pattern: string;
|
|
11631
11649
|
flags?: string;
|
|
11632
11650
|
} | string));
|
|
11651
|
+
selector?: ("literal" | "spread");
|
|
11652
|
+
})[];
|
|
11653
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11654
|
+
newlinesBetween: ("ignore" | number);
|
|
11655
|
+
} | {
|
|
11656
|
+
group: (string | [string, ...(string)[]]);
|
|
11657
|
+
commentAbove?: string;
|
|
11658
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11659
|
+
newlinesInside?: number;
|
|
11660
|
+
order?: ("asc" | "desc");
|
|
11633
11661
|
})[];
|
|
11662
|
+
newlinesBetween?: ("ignore" | number);
|
|
11634
11663
|
useConfigurationIf?: {
|
|
11635
11664
|
allNamesMatchPattern?: (({
|
|
11636
11665
|
pattern: string;
|
|
@@ -11663,51 +11692,46 @@ type PerfectionistSortArrayIncludes = {
|
|
|
11663
11692
|
} | string)));
|
|
11664
11693
|
});
|
|
11665
11694
|
partitionByNewLine?: boolean;
|
|
11666
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11667
|
-
groups?: (string | string[] | {
|
|
11668
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11669
|
-
commentAbove?: string;
|
|
11670
|
-
})[];
|
|
11671
11695
|
}[];
|
|
11672
11696
|
// ----- perfectionist/sort-classes -----
|
|
11673
11697
|
type PerfectionistSortClasses = [] | [{
|
|
11674
11698
|
fallbackSort?: {
|
|
11699
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11675
11700
|
order?: ("asc" | "desc");
|
|
11676
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11677
11701
|
};
|
|
11702
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11678
11703
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11679
11704
|
ignoreCase?: boolean;
|
|
11680
11705
|
alphabet?: string;
|
|
11681
11706
|
locales?: (string | string[]);
|
|
11682
11707
|
order?: ("asc" | "desc");
|
|
11683
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11684
11708
|
customGroups?: ({
|
|
11685
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11686
11709
|
fallbackSort?: {
|
|
11710
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11687
11711
|
order?: ("asc" | "desc");
|
|
11688
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11689
11712
|
};
|
|
11713
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11690
11714
|
groupName: string;
|
|
11715
|
+
newlinesInside?: number;
|
|
11691
11716
|
order?: ("asc" | "desc");
|
|
11692
|
-
|
|
11693
|
-
|
|
11694
|
-
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
11695
|
-
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
11696
|
-
decoratorNamePattern?: (({
|
|
11717
|
+
anyOf: {
|
|
11718
|
+
elementNamePattern?: (({
|
|
11697
11719
|
pattern: string;
|
|
11698
11720
|
flags?: string;
|
|
11699
11721
|
} | string)[] | ({
|
|
11700
11722
|
pattern: string;
|
|
11701
11723
|
flags?: string;
|
|
11702
11724
|
} | string));
|
|
11703
|
-
|
|
11725
|
+
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
11726
|
+
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
11727
|
+
decoratorNamePattern?: (({
|
|
11704
11728
|
pattern: string;
|
|
11705
11729
|
flags?: string;
|
|
11706
11730
|
} | string)[] | ({
|
|
11707
11731
|
pattern: string;
|
|
11708
11732
|
flags?: string;
|
|
11709
11733
|
} | string));
|
|
11710
|
-
|
|
11734
|
+
elementValuePattern?: (({
|
|
11711
11735
|
pattern: string;
|
|
11712
11736
|
flags?: string;
|
|
11713
11737
|
} | string)[] | ({
|
|
@@ -11716,31 +11740,31 @@ type PerfectionistSortClasses = [] | [{
|
|
|
11716
11740
|
} | string));
|
|
11717
11741
|
}[];
|
|
11718
11742
|
} | {
|
|
11719
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11720
11743
|
fallbackSort?: {
|
|
11744
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11721
11745
|
order?: ("asc" | "desc");
|
|
11722
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11723
11746
|
};
|
|
11747
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11724
11748
|
groupName: string;
|
|
11749
|
+
newlinesInside?: number;
|
|
11725
11750
|
order?: ("asc" | "desc");
|
|
11726
|
-
|
|
11727
|
-
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
11728
|
-
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
11729
|
-
decoratorNamePattern?: (({
|
|
11751
|
+
elementNamePattern?: (({
|
|
11730
11752
|
pattern: string;
|
|
11731
11753
|
flags?: string;
|
|
11732
11754
|
} | string)[] | ({
|
|
11733
11755
|
pattern: string;
|
|
11734
11756
|
flags?: string;
|
|
11735
11757
|
} | string));
|
|
11736
|
-
|
|
11758
|
+
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
11759
|
+
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
11760
|
+
decoratorNamePattern?: (({
|
|
11737
11761
|
pattern: string;
|
|
11738
11762
|
flags?: string;
|
|
11739
11763
|
} | string)[] | ({
|
|
11740
11764
|
pattern: string;
|
|
11741
11765
|
flags?: string;
|
|
11742
11766
|
} | string));
|
|
11743
|
-
|
|
11767
|
+
elementValuePattern?: (({
|
|
11744
11768
|
pattern: string;
|
|
11745
11769
|
flags?: string;
|
|
11746
11770
|
} | string)[] | ({
|
|
@@ -11748,6 +11772,16 @@ type PerfectionistSortClasses = [] | [{
|
|
|
11748
11772
|
flags?: string;
|
|
11749
11773
|
} | string));
|
|
11750
11774
|
})[];
|
|
11775
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11776
|
+
newlinesBetween: ("ignore" | number);
|
|
11777
|
+
} | {
|
|
11778
|
+
group: (string | [string, ...(string)[]]);
|
|
11779
|
+
commentAbove?: string;
|
|
11780
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11781
|
+
newlinesInside?: number;
|
|
11782
|
+
order?: ("asc" | "desc");
|
|
11783
|
+
})[];
|
|
11784
|
+
newlinesBetween?: ("ignore" | number);
|
|
11751
11785
|
ignoreCallbackDependenciesPatterns?: (({
|
|
11752
11786
|
pattern: string;
|
|
11753
11787
|
flags?: string;
|
|
@@ -11778,24 +11812,64 @@ type PerfectionistSortClasses = [] | [{
|
|
|
11778
11812
|
} | string)));
|
|
11779
11813
|
});
|
|
11780
11814
|
partitionByNewLine?: boolean;
|
|
11781
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11782
|
-
groups?: (string | string[] | {
|
|
11783
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11784
|
-
commentAbove?: string;
|
|
11785
|
-
})[];
|
|
11786
11815
|
}];
|
|
11787
11816
|
// ----- perfectionist/sort-decorators -----
|
|
11788
|
-
type PerfectionistSortDecorators =
|
|
11817
|
+
type PerfectionistSortDecorators = {
|
|
11789
11818
|
fallbackSort?: {
|
|
11819
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11790
11820
|
order?: ("asc" | "desc");
|
|
11791
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11792
11821
|
};
|
|
11822
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11793
11823
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11794
11824
|
ignoreCase?: boolean;
|
|
11795
11825
|
alphabet?: string;
|
|
11796
11826
|
locales?: (string | string[]);
|
|
11797
11827
|
order?: ("asc" | "desc");
|
|
11798
|
-
|
|
11828
|
+
customGroups?: ({
|
|
11829
|
+
fallbackSort?: {
|
|
11830
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11831
|
+
order?: ("asc" | "desc");
|
|
11832
|
+
};
|
|
11833
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11834
|
+
groupName: string;
|
|
11835
|
+
newlinesInside?: number;
|
|
11836
|
+
order?: ("asc" | "desc");
|
|
11837
|
+
anyOf: {
|
|
11838
|
+
elementNamePattern?: (({
|
|
11839
|
+
pattern: string;
|
|
11840
|
+
flags?: string;
|
|
11841
|
+
} | string)[] | ({
|
|
11842
|
+
pattern: string;
|
|
11843
|
+
flags?: string;
|
|
11844
|
+
} | string));
|
|
11845
|
+
}[];
|
|
11846
|
+
} | {
|
|
11847
|
+
fallbackSort?: {
|
|
11848
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11849
|
+
order?: ("asc" | "desc");
|
|
11850
|
+
};
|
|
11851
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11852
|
+
groupName: string;
|
|
11853
|
+
newlinesInside?: number;
|
|
11854
|
+
order?: ("asc" | "desc");
|
|
11855
|
+
elementNamePattern?: (({
|
|
11856
|
+
pattern: string;
|
|
11857
|
+
flags?: string;
|
|
11858
|
+
} | string)[] | ({
|
|
11859
|
+
pattern: string;
|
|
11860
|
+
flags?: string;
|
|
11861
|
+
} | string));
|
|
11862
|
+
})[];
|
|
11863
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11864
|
+
newlinesBetween: ("ignore" | number);
|
|
11865
|
+
} | {
|
|
11866
|
+
group: (string | [string, ...(string)[]]);
|
|
11867
|
+
commentAbove?: string;
|
|
11868
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11869
|
+
newlinesInside?: number;
|
|
11870
|
+
order?: ("asc" | "desc");
|
|
11871
|
+
})[];
|
|
11872
|
+
newlinesBetween?: ("ignore" | number);
|
|
11799
11873
|
sortOnParameters?: boolean;
|
|
11800
11874
|
sortOnProperties?: boolean;
|
|
11801
11875
|
sortOnAccessors?: boolean;
|
|
@@ -11823,46 +11897,38 @@ type PerfectionistSortDecorators = [] | [{
|
|
|
11823
11897
|
flags?: string;
|
|
11824
11898
|
} | string)));
|
|
11825
11899
|
});
|
|
11826
|
-
|
|
11827
|
-
|
|
11828
|
-
};
|
|
11829
|
-
groups?: (string | string[] | {
|
|
11830
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11831
|
-
commentAbove?: string;
|
|
11832
|
-
})[];
|
|
11833
|
-
}];
|
|
11900
|
+
partitionByNewLine?: boolean;
|
|
11901
|
+
}[];
|
|
11834
11902
|
// ----- perfectionist/sort-enums -----
|
|
11835
11903
|
type PerfectionistSortEnums = [] | [{
|
|
11836
11904
|
fallbackSort?: {
|
|
11905
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11837
11906
|
order?: ("asc" | "desc");
|
|
11838
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11839
11907
|
};
|
|
11908
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11840
11909
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11841
11910
|
ignoreCase?: boolean;
|
|
11842
11911
|
alphabet?: string;
|
|
11843
11912
|
locales?: (string | string[]);
|
|
11844
11913
|
order?: ("asc" | "desc");
|
|
11845
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11846
11914
|
customGroups?: ({
|
|
11847
|
-
[k: string]: (string | string[]) | undefined;
|
|
11848
|
-
} | ({
|
|
11849
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11850
11915
|
fallbackSort?: {
|
|
11916
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11851
11917
|
order?: ("asc" | "desc");
|
|
11852
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11853
11918
|
};
|
|
11919
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11854
11920
|
groupName: string;
|
|
11921
|
+
newlinesInside?: number;
|
|
11855
11922
|
order?: ("asc" | "desc");
|
|
11856
|
-
|
|
11857
|
-
|
|
11858
|
-
elementValuePattern?: (({
|
|
11923
|
+
anyOf: {
|
|
11924
|
+
elementNamePattern?: (({
|
|
11859
11925
|
pattern: string;
|
|
11860
11926
|
flags?: string;
|
|
11861
11927
|
} | string)[] | ({
|
|
11862
11928
|
pattern: string;
|
|
11863
11929
|
flags?: string;
|
|
11864
11930
|
} | string));
|
|
11865
|
-
|
|
11931
|
+
elementValuePattern?: (({
|
|
11866
11932
|
pattern: string;
|
|
11867
11933
|
flags?: string;
|
|
11868
11934
|
} | string)[] | ({
|
|
@@ -11871,31 +11937,40 @@ type PerfectionistSortEnums = [] | [{
|
|
|
11871
11937
|
} | string));
|
|
11872
11938
|
}[];
|
|
11873
11939
|
} | {
|
|
11874
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11875
11940
|
fallbackSort?: {
|
|
11941
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11876
11942
|
order?: ("asc" | "desc");
|
|
11877
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11878
11943
|
};
|
|
11944
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11879
11945
|
groupName: string;
|
|
11946
|
+
newlinesInside?: number;
|
|
11880
11947
|
order?: ("asc" | "desc");
|
|
11881
|
-
|
|
11882
|
-
elementValuePattern?: (({
|
|
11948
|
+
elementNamePattern?: (({
|
|
11883
11949
|
pattern: string;
|
|
11884
11950
|
flags?: string;
|
|
11885
11951
|
} | string)[] | ({
|
|
11886
11952
|
pattern: string;
|
|
11887
11953
|
flags?: string;
|
|
11888
11954
|
} | string));
|
|
11889
|
-
|
|
11955
|
+
elementValuePattern?: (({
|
|
11890
11956
|
pattern: string;
|
|
11891
11957
|
flags?: string;
|
|
11892
11958
|
} | string)[] | ({
|
|
11893
11959
|
pattern: string;
|
|
11894
11960
|
flags?: string;
|
|
11895
11961
|
} | string));
|
|
11896
|
-
})[]
|
|
11897
|
-
|
|
11898
|
-
|
|
11962
|
+
})[];
|
|
11963
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11964
|
+
newlinesBetween: ("ignore" | number);
|
|
11965
|
+
} | {
|
|
11966
|
+
group: (string | [string, ...(string)[]]);
|
|
11967
|
+
commentAbove?: string;
|
|
11968
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11969
|
+
newlinesInside?: number;
|
|
11970
|
+
order?: ("asc" | "desc");
|
|
11971
|
+
})[];
|
|
11972
|
+
newlinesBetween?: ("ignore" | number);
|
|
11973
|
+
sortByValue?: ("always" | "ifNumericEnum" | "never");
|
|
11899
11974
|
partitionByComment?: (boolean | (({
|
|
11900
11975
|
pattern: string;
|
|
11901
11976
|
flags?: string;
|
|
@@ -11919,37 +11994,29 @@ type PerfectionistSortEnums = [] | [{
|
|
|
11919
11994
|
} | string)));
|
|
11920
11995
|
});
|
|
11921
11996
|
partitionByNewLine?: boolean;
|
|
11922
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11923
|
-
groups?: (string | string[] | {
|
|
11924
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11925
|
-
commentAbove?: string;
|
|
11926
|
-
})[];
|
|
11927
11997
|
}];
|
|
11928
|
-
// ----- perfectionist/sort-
|
|
11929
|
-
type
|
|
11998
|
+
// ----- perfectionist/sort-export-attributes -----
|
|
11999
|
+
type PerfectionistSortExportAttributes = {
|
|
11930
12000
|
fallbackSort?: {
|
|
12001
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11931
12002
|
order?: ("asc" | "desc");
|
|
11932
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11933
12003
|
};
|
|
12004
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11934
12005
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11935
12006
|
ignoreCase?: boolean;
|
|
11936
12007
|
alphabet?: string;
|
|
11937
12008
|
locales?: (string | string[]);
|
|
11938
12009
|
order?: ("asc" | "desc");
|
|
11939
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11940
|
-
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
11941
12010
|
customGroups?: ({
|
|
11942
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11943
12011
|
fallbackSort?: {
|
|
12012
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11944
12013
|
order?: ("asc" | "desc");
|
|
11945
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11946
12014
|
};
|
|
12015
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11947
12016
|
groupName: string;
|
|
12017
|
+
newlinesInside?: number;
|
|
11948
12018
|
order?: ("asc" | "desc");
|
|
11949
|
-
|
|
11950
|
-
anyOf?: {
|
|
11951
|
-
modifiers?: ("value" | "type")[];
|
|
11952
|
-
selector?: "export";
|
|
12019
|
+
anyOf: {
|
|
11953
12020
|
elementNamePattern?: (({
|
|
11954
12021
|
pattern: string;
|
|
11955
12022
|
flags?: string;
|
|
@@ -11959,16 +12026,14 @@ type PerfectionistSortExports = {
|
|
|
11959
12026
|
} | string));
|
|
11960
12027
|
}[];
|
|
11961
12028
|
} | {
|
|
11962
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11963
12029
|
fallbackSort?: {
|
|
12030
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11964
12031
|
order?: ("asc" | "desc");
|
|
11965
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11966
12032
|
};
|
|
12033
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11967
12034
|
groupName: string;
|
|
12035
|
+
newlinesInside?: number;
|
|
11968
12036
|
order?: ("asc" | "desc");
|
|
11969
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11970
|
-
modifiers?: ("value" | "type")[];
|
|
11971
|
-
selector?: "export";
|
|
11972
12037
|
elementNamePattern?: (({
|
|
11973
12038
|
pattern: string;
|
|
11974
12039
|
flags?: string;
|
|
@@ -11977,6 +12042,16 @@ type PerfectionistSortExports = {
|
|
|
11977
12042
|
flags?: string;
|
|
11978
12043
|
} | string));
|
|
11979
12044
|
})[];
|
|
12045
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
12046
|
+
newlinesBetween: ("ignore" | number);
|
|
12047
|
+
} | {
|
|
12048
|
+
group: (string | [string, ...(string)[]]);
|
|
12049
|
+
commentAbove?: string;
|
|
12050
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12051
|
+
newlinesInside?: number;
|
|
12052
|
+
order?: ("asc" | "desc");
|
|
12053
|
+
})[];
|
|
12054
|
+
newlinesBetween?: ("ignore" | number);
|
|
11980
12055
|
partitionByComment?: (boolean | (({
|
|
11981
12056
|
pattern: string;
|
|
11982
12057
|
flags?: string;
|
|
@@ -12000,70 +12075,29 @@ type PerfectionistSortExports = {
|
|
|
12000
12075
|
} | string)));
|
|
12001
12076
|
});
|
|
12002
12077
|
partitionByNewLine?: boolean;
|
|
12003
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12004
|
-
groups?: (string | string[] | {
|
|
12005
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12006
|
-
commentAbove?: string;
|
|
12007
|
-
})[];
|
|
12008
12078
|
}[];
|
|
12009
|
-
// ----- perfectionist/sort-
|
|
12010
|
-
type
|
|
12079
|
+
// ----- perfectionist/sort-exports -----
|
|
12080
|
+
type PerfectionistSortExports = {
|
|
12011
12081
|
fallbackSort?: {
|
|
12082
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12012
12083
|
order?: ("asc" | "desc");
|
|
12013
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12014
12084
|
};
|
|
12015
|
-
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12016
|
-
ignoreCase?: boolean;
|
|
12017
|
-
alphabet?: string;
|
|
12018
|
-
locales?: (string | string[]);
|
|
12019
|
-
order?: ("asc" | "desc");
|
|
12020
12085
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12021
|
-
customGroups?: {
|
|
12022
|
-
[k: string]: (string | string[]) | undefined;
|
|
12023
|
-
};
|
|
12024
|
-
groups?: (string | string[] | {
|
|
12025
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12026
|
-
commentAbove?: string;
|
|
12027
|
-
})[];
|
|
12028
|
-
}];
|
|
12029
|
-
// ----- perfectionist/sort-imports -----
|
|
12030
|
-
type PerfectionistSortImports = {
|
|
12031
|
-
fallbackSort?: {
|
|
12032
|
-
order?: ("asc" | "desc");
|
|
12033
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12034
|
-
};
|
|
12035
12086
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12036
12087
|
ignoreCase?: boolean;
|
|
12037
12088
|
alphabet?: string;
|
|
12038
12089
|
locales?: (string | string[]);
|
|
12039
12090
|
order?: ("asc" | "desc");
|
|
12040
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12041
12091
|
customGroups?: ({
|
|
12042
|
-
value?: {
|
|
12043
|
-
[k: string]: (string | string[]) | undefined;
|
|
12044
|
-
};
|
|
12045
|
-
type?: {
|
|
12046
|
-
[k: string]: (string | string[]) | undefined;
|
|
12047
|
-
};
|
|
12048
|
-
} | ({
|
|
12049
|
-
newlinesInside?: (("always" | "never") | number);
|
|
12050
12092
|
fallbackSort?: {
|
|
12093
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12051
12094
|
order?: ("asc" | "desc");
|
|
12052
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12053
12095
|
};
|
|
12096
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12054
12097
|
groupName: string;
|
|
12098
|
+
newlinesInside?: number;
|
|
12055
12099
|
order?: ("asc" | "desc");
|
|
12056
|
-
|
|
12057
|
-
anyOf?: {
|
|
12058
|
-
modifiers?: ("default" | "named" | "require" | "side-effect" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
12059
|
-
selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
|
|
12060
|
-
elementValuePattern?: (({
|
|
12061
|
-
pattern: string;
|
|
12062
|
-
flags?: string;
|
|
12063
|
-
} | string)[] | ({
|
|
12064
|
-
pattern: string;
|
|
12065
|
-
flags?: string;
|
|
12066
|
-
} | string));
|
|
12100
|
+
anyOf: {
|
|
12067
12101
|
elementNamePattern?: (({
|
|
12068
12102
|
pattern: string;
|
|
12069
12103
|
flags?: string;
|
|
@@ -12071,25 +12105,18 @@ type PerfectionistSortImports = {
|
|
|
12071
12105
|
pattern: string;
|
|
12072
12106
|
flags?: string;
|
|
12073
12107
|
} | string));
|
|
12108
|
+
modifiers?: ("value" | "type" | "named" | "wildcard" | "multiline" | "singleline")[];
|
|
12109
|
+
selector?: "export";
|
|
12074
12110
|
}[];
|
|
12075
12111
|
} | {
|
|
12076
|
-
newlinesInside?: (("always" | "never") | number);
|
|
12077
12112
|
fallbackSort?: {
|
|
12113
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12078
12114
|
order?: ("asc" | "desc");
|
|
12079
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12080
12115
|
};
|
|
12116
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12081
12117
|
groupName: string;
|
|
12118
|
+
newlinesInside?: number;
|
|
12082
12119
|
order?: ("asc" | "desc");
|
|
12083
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12084
|
-
modifiers?: ("default" | "named" | "require" | "side-effect" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
12085
|
-
selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
|
|
12086
|
-
elementValuePattern?: (({
|
|
12087
|
-
pattern: string;
|
|
12088
|
-
flags?: string;
|
|
12089
|
-
} | string)[] | ({
|
|
12090
|
-
pattern: string;
|
|
12091
|
-
flags?: string;
|
|
12092
|
-
} | string));
|
|
12093
12120
|
elementNamePattern?: (({
|
|
12094
12121
|
pattern: string;
|
|
12095
12122
|
flags?: string;
|
|
@@ -12097,15 +12124,19 @@ type PerfectionistSortImports = {
|
|
|
12097
12124
|
pattern: string;
|
|
12098
12125
|
flags?: string;
|
|
12099
12126
|
} | string));
|
|
12100
|
-
|
|
12101
|
-
|
|
12102
|
-
|
|
12103
|
-
|
|
12104
|
-
|
|
12105
|
-
|
|
12106
|
-
|
|
12107
|
-
|
|
12108
|
-
|
|
12127
|
+
modifiers?: ("value" | "type" | "named" | "wildcard" | "multiline" | "singleline")[];
|
|
12128
|
+
selector?: "export";
|
|
12129
|
+
})[];
|
|
12130
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
12131
|
+
newlinesBetween: ("ignore" | number);
|
|
12132
|
+
} | {
|
|
12133
|
+
group: (string | [string, ...(string)[]]);
|
|
12134
|
+
commentAbove?: string;
|
|
12135
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12136
|
+
newlinesInside?: number;
|
|
12137
|
+
order?: ("asc" | "desc");
|
|
12138
|
+
})[];
|
|
12139
|
+
newlinesBetween?: ("ignore" | number);
|
|
12109
12140
|
partitionByComment?: (boolean | (({
|
|
12110
12141
|
pattern: string;
|
|
12111
12142
|
flags?: string;
|
|
@@ -12129,54 +12160,29 @@ type PerfectionistSortImports = {
|
|
|
12129
12160
|
} | string)));
|
|
12130
12161
|
});
|
|
12131
12162
|
partitionByNewLine?: boolean;
|
|
12132
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12133
|
-
internalPattern?: (({
|
|
12134
|
-
pattern: string;
|
|
12135
|
-
flags?: string;
|
|
12136
|
-
} | string)[] | ({
|
|
12137
|
-
pattern: string;
|
|
12138
|
-
flags?: string;
|
|
12139
|
-
} | string));
|
|
12140
|
-
groups?: (string | string[] | {
|
|
12141
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12142
|
-
commentAbove?: string;
|
|
12143
|
-
})[];
|
|
12144
12163
|
}[];
|
|
12145
|
-
// ----- perfectionist/sort-
|
|
12146
|
-
type
|
|
12164
|
+
// ----- perfectionist/sort-heritage-clauses -----
|
|
12165
|
+
type PerfectionistSortHeritageClauses = {
|
|
12147
12166
|
fallbackSort?: {
|
|
12167
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12148
12168
|
order?: ("asc" | "desc");
|
|
12149
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12150
|
-
sortBy?: ("name" | "value");
|
|
12151
12169
|
};
|
|
12170
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12152
12171
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12153
12172
|
ignoreCase?: boolean;
|
|
12154
12173
|
alphabet?: string;
|
|
12155
12174
|
locales?: (string | string[]);
|
|
12156
12175
|
order?: ("asc" | "desc");
|
|
12157
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12158
12176
|
customGroups?: ({
|
|
12159
|
-
[k: string]: (string | string[]) | undefined;
|
|
12160
|
-
} | ({
|
|
12161
|
-
newlinesInside?: (("always" | "never") | number);
|
|
12162
12177
|
fallbackSort?: {
|
|
12178
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12163
12179
|
order?: ("asc" | "desc");
|
|
12164
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12165
|
-
sortBy?: ("name" | "value");
|
|
12166
12180
|
};
|
|
12181
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12167
12182
|
groupName: string;
|
|
12183
|
+
newlinesInside?: number;
|
|
12168
12184
|
order?: ("asc" | "desc");
|
|
12169
|
-
|
|
12170
|
-
anyOf?: {
|
|
12171
|
-
modifiers?: ("optional" | "required" | "multiline")[];
|
|
12172
|
-
selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
|
|
12173
|
-
elementValuePattern?: (({
|
|
12174
|
-
pattern: string;
|
|
12175
|
-
flags?: string;
|
|
12176
|
-
} | string)[] | ({
|
|
12177
|
-
pattern: string;
|
|
12178
|
-
flags?: string;
|
|
12179
|
-
} | string));
|
|
12185
|
+
anyOf: {
|
|
12180
12186
|
elementNamePattern?: (({
|
|
12181
12187
|
pattern: string;
|
|
12182
12188
|
flags?: string;
|
|
@@ -12184,27 +12190,16 @@ type PerfectionistSortInterfaces = {
|
|
|
12184
12190
|
pattern: string;
|
|
12185
12191
|
flags?: string;
|
|
12186
12192
|
} | string));
|
|
12187
|
-
sortBy?: ("name" | "value");
|
|
12188
12193
|
}[];
|
|
12189
12194
|
} | {
|
|
12190
|
-
newlinesInside?: (("always" | "never") | number);
|
|
12191
12195
|
fallbackSort?: {
|
|
12196
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12192
12197
|
order?: ("asc" | "desc");
|
|
12193
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12194
|
-
sortBy?: ("name" | "value");
|
|
12195
12198
|
};
|
|
12199
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12196
12200
|
groupName: string;
|
|
12201
|
+
newlinesInside?: number;
|
|
12197
12202
|
order?: ("asc" | "desc");
|
|
12198
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12199
|
-
modifiers?: ("optional" | "required" | "multiline")[];
|
|
12200
|
-
selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
|
|
12201
|
-
elementValuePattern?: (({
|
|
12202
|
-
pattern: string;
|
|
12203
|
-
flags?: string;
|
|
12204
|
-
} | string)[] | ({
|
|
12205
|
-
pattern: string;
|
|
12206
|
-
flags?: string;
|
|
12207
|
-
} | string));
|
|
12208
12203
|
elementNamePattern?: (({
|
|
12209
12204
|
pattern: string;
|
|
12210
12205
|
flags?: string;
|
|
@@ -12212,25 +12207,190 @@ type PerfectionistSortInterfaces = {
|
|
|
12212
12207
|
pattern: string;
|
|
12213
12208
|
flags?: string;
|
|
12214
12209
|
} | string));
|
|
12215
|
-
|
|
12216
|
-
|
|
12217
|
-
|
|
12218
|
-
|
|
12219
|
-
|
|
12220
|
-
|
|
12221
|
-
|
|
12210
|
+
})[];
|
|
12211
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
12212
|
+
newlinesBetween: ("ignore" | number);
|
|
12213
|
+
} | {
|
|
12214
|
+
group: (string | [string, ...(string)[]]);
|
|
12215
|
+
commentAbove?: string;
|
|
12216
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12217
|
+
newlinesInside?: number;
|
|
12218
|
+
order?: ("asc" | "desc");
|
|
12219
|
+
})[];
|
|
12220
|
+
newlinesBetween?: ("ignore" | number);
|
|
12221
|
+
partitionByNewLine?: boolean;
|
|
12222
|
+
partitionByComment?: (boolean | (({
|
|
12223
|
+
pattern: string;
|
|
12224
|
+
flags?: string;
|
|
12225
|
+
} | string)[] | ({
|
|
12226
|
+
pattern: string;
|
|
12227
|
+
flags?: string;
|
|
12228
|
+
} | string)) | {
|
|
12229
|
+
block?: (boolean | (({
|
|
12230
|
+
pattern: string;
|
|
12231
|
+
flags?: string;
|
|
12232
|
+
} | string)[] | ({
|
|
12233
|
+
pattern: string;
|
|
12234
|
+
flags?: string;
|
|
12235
|
+
} | string)));
|
|
12236
|
+
line?: (boolean | (({
|
|
12237
|
+
pattern: string;
|
|
12238
|
+
flags?: string;
|
|
12239
|
+
} | string)[] | ({
|
|
12240
|
+
pattern: string;
|
|
12241
|
+
flags?: string;
|
|
12242
|
+
} | string)));
|
|
12243
|
+
});
|
|
12244
|
+
}[];
|
|
12245
|
+
// ----- perfectionist/sort-import-attributes -----
|
|
12246
|
+
type PerfectionistSortImportAttributes = {
|
|
12247
|
+
fallbackSort?: {
|
|
12248
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12249
|
+
order?: ("asc" | "desc");
|
|
12250
|
+
};
|
|
12251
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12252
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12253
|
+
ignoreCase?: boolean;
|
|
12254
|
+
alphabet?: string;
|
|
12255
|
+
locales?: (string | string[]);
|
|
12256
|
+
order?: ("asc" | "desc");
|
|
12257
|
+
customGroups?: ({
|
|
12258
|
+
fallbackSort?: {
|
|
12259
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12260
|
+
order?: ("asc" | "desc");
|
|
12261
|
+
};
|
|
12262
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12263
|
+
groupName: string;
|
|
12264
|
+
newlinesInside?: number;
|
|
12265
|
+
order?: ("asc" | "desc");
|
|
12266
|
+
anyOf: {
|
|
12267
|
+
elementNamePattern?: (({
|
|
12268
|
+
pattern: string;
|
|
12269
|
+
flags?: string;
|
|
12270
|
+
} | string)[] | ({
|
|
12271
|
+
pattern: string;
|
|
12272
|
+
flags?: string;
|
|
12273
|
+
} | string));
|
|
12274
|
+
}[];
|
|
12275
|
+
} | {
|
|
12276
|
+
fallbackSort?: {
|
|
12277
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12278
|
+
order?: ("asc" | "desc");
|
|
12279
|
+
};
|
|
12280
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12281
|
+
groupName: string;
|
|
12282
|
+
newlinesInside?: number;
|
|
12283
|
+
order?: ("asc" | "desc");
|
|
12284
|
+
elementNamePattern?: (({
|
|
12285
|
+
pattern: string;
|
|
12286
|
+
flags?: string;
|
|
12222
12287
|
} | string)[] | ({
|
|
12223
12288
|
pattern: string;
|
|
12224
12289
|
flags?: string;
|
|
12225
12290
|
} | string));
|
|
12226
|
-
|
|
12291
|
+
})[];
|
|
12292
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
12293
|
+
newlinesBetween: ("ignore" | number);
|
|
12294
|
+
} | {
|
|
12295
|
+
group: (string | [string, ...(string)[]]);
|
|
12296
|
+
commentAbove?: string;
|
|
12297
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12298
|
+
newlinesInside?: number;
|
|
12299
|
+
order?: ("asc" | "desc");
|
|
12300
|
+
})[];
|
|
12301
|
+
newlinesBetween?: ("ignore" | number);
|
|
12302
|
+
partitionByComment?: (boolean | (({
|
|
12303
|
+
pattern: string;
|
|
12304
|
+
flags?: string;
|
|
12305
|
+
} | string)[] | ({
|
|
12306
|
+
pattern: string;
|
|
12307
|
+
flags?: string;
|
|
12308
|
+
} | string)) | {
|
|
12309
|
+
block?: (boolean | (({
|
|
12310
|
+
pattern: string;
|
|
12311
|
+
flags?: string;
|
|
12312
|
+
} | string)[] | ({
|
|
12313
|
+
pattern: string;
|
|
12314
|
+
flags?: string;
|
|
12315
|
+
} | string)));
|
|
12316
|
+
line?: (boolean | (({
|
|
12317
|
+
pattern: string;
|
|
12318
|
+
flags?: string;
|
|
12319
|
+
} | string)[] | ({
|
|
12320
|
+
pattern: string;
|
|
12321
|
+
flags?: string;
|
|
12322
|
+
} | string)));
|
|
12323
|
+
});
|
|
12324
|
+
partitionByNewLine?: boolean;
|
|
12325
|
+
}[];
|
|
12326
|
+
// ----- perfectionist/sort-imports -----
|
|
12327
|
+
type PerfectionistSortImports = {
|
|
12328
|
+
fallbackSort?: {
|
|
12329
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
12330
|
+
order?: ("asc" | "desc");
|
|
12331
|
+
};
|
|
12332
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
12333
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12334
|
+
ignoreCase?: boolean;
|
|
12335
|
+
alphabet?: string;
|
|
12336
|
+
locales?: (string | string[]);
|
|
12337
|
+
order?: ("asc" | "desc");
|
|
12338
|
+
customGroups?: ({
|
|
12339
|
+
fallbackSort?: {
|
|
12340
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
12341
|
+
order?: ("asc" | "desc");
|
|
12342
|
+
};
|
|
12343
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
12344
|
+
groupName: string;
|
|
12345
|
+
newlinesInside?: number;
|
|
12346
|
+
order?: ("asc" | "desc");
|
|
12347
|
+
anyOf: {
|
|
12348
|
+
elementNamePattern?: (({
|
|
12349
|
+
pattern: string;
|
|
12350
|
+
flags?: string;
|
|
12351
|
+
} | string)[] | ({
|
|
12352
|
+
pattern: string;
|
|
12353
|
+
flags?: string;
|
|
12354
|
+
} | string));
|
|
12355
|
+
modifiers?: ("default" | "multiline" | "named" | "require" | "side-effect" | "singleline" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
12356
|
+
selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
|
|
12357
|
+
}[];
|
|
12358
|
+
} | {
|
|
12359
|
+
fallbackSort?: {
|
|
12360
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
12361
|
+
order?: ("asc" | "desc");
|
|
12362
|
+
};
|
|
12363
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
12364
|
+
groupName: string;
|
|
12365
|
+
newlinesInside?: number;
|
|
12366
|
+
order?: ("asc" | "desc");
|
|
12367
|
+
elementNamePattern?: (({
|
|
12227
12368
|
pattern: string;
|
|
12228
12369
|
flags?: string;
|
|
12229
12370
|
} | string)[] | ({
|
|
12230
12371
|
pattern: string;
|
|
12231
12372
|
flags?: string;
|
|
12232
12373
|
} | string));
|
|
12374
|
+
modifiers?: ("default" | "multiline" | "named" | "require" | "side-effect" | "singleline" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
12375
|
+
selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
|
|
12376
|
+
})[];
|
|
12377
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
12378
|
+
newlinesBetween: ("ignore" | number);
|
|
12379
|
+
} | {
|
|
12380
|
+
group: (string | [string, ...(string)[]]);
|
|
12381
|
+
commentAbove?: string;
|
|
12382
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
12383
|
+
newlinesInside?: number;
|
|
12384
|
+
order?: ("asc" | "desc");
|
|
12385
|
+
})[];
|
|
12386
|
+
newlinesBetween?: ("ignore" | number);
|
|
12387
|
+
tsconfig?: {
|
|
12388
|
+
rootDir: string;
|
|
12389
|
+
filename?: string;
|
|
12233
12390
|
};
|
|
12391
|
+
maxLineLength?: number;
|
|
12392
|
+
sortSideEffects?: boolean;
|
|
12393
|
+
environment?: ("node" | "bun");
|
|
12234
12394
|
partitionByComment?: (boolean | (({
|
|
12235
12395
|
pattern: string;
|
|
12236
12396
|
flags?: string;
|
|
@@ -12254,43 +12414,169 @@ type PerfectionistSortInterfaces = {
|
|
|
12254
12414
|
} | string)));
|
|
12255
12415
|
});
|
|
12256
12416
|
partitionByNewLine?: boolean;
|
|
12257
|
-
|
|
12258
|
-
ignorePattern?: (({
|
|
12417
|
+
internalPattern?: (({
|
|
12259
12418
|
pattern: string;
|
|
12260
12419
|
flags?: string;
|
|
12261
12420
|
} | string)[] | ({
|
|
12262
12421
|
pattern: string;
|
|
12263
12422
|
flags?: string;
|
|
12264
12423
|
} | string));
|
|
12265
|
-
|
|
12266
|
-
|
|
12267
|
-
|
|
12424
|
+
}[];
|
|
12425
|
+
// ----- perfectionist/sort-interfaces -----
|
|
12426
|
+
type PerfectionistSortInterfaces = {
|
|
12427
|
+
fallbackSort?: {
|
|
12428
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12429
|
+
order?: ("asc" | "desc");
|
|
12430
|
+
sortBy?: ("name" | "value");
|
|
12431
|
+
};
|
|
12432
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12433
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12434
|
+
ignoreCase?: boolean;
|
|
12435
|
+
alphabet?: string;
|
|
12436
|
+
locales?: (string | string[]);
|
|
12437
|
+
order?: ("asc" | "desc");
|
|
12438
|
+
customGroups?: ({
|
|
12439
|
+
fallbackSort?: {
|
|
12440
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12441
|
+
order?: ("asc" | "desc");
|
|
12442
|
+
sortBy?: ("name" | "value");
|
|
12443
|
+
};
|
|
12444
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12445
|
+
groupName: string;
|
|
12446
|
+
newlinesInside?: number;
|
|
12447
|
+
order?: ("asc" | "desc");
|
|
12448
|
+
anyOf: {
|
|
12449
|
+
elementNamePattern?: (({
|
|
12450
|
+
pattern: string;
|
|
12451
|
+
flags?: string;
|
|
12452
|
+
} | string)[] | ({
|
|
12453
|
+
pattern: string;
|
|
12454
|
+
flags?: string;
|
|
12455
|
+
} | string));
|
|
12456
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
12457
|
+
selector?: ("index-signature" | "member" | "method" | "property");
|
|
12458
|
+
elementValuePattern?: (({
|
|
12459
|
+
pattern: string;
|
|
12460
|
+
flags?: string;
|
|
12461
|
+
} | string)[] | ({
|
|
12462
|
+
pattern: string;
|
|
12463
|
+
flags?: string;
|
|
12464
|
+
} | string));
|
|
12465
|
+
sortBy?: ("name" | "value");
|
|
12466
|
+
}[];
|
|
12467
|
+
} | {
|
|
12468
|
+
fallbackSort?: {
|
|
12469
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12470
|
+
order?: ("asc" | "desc");
|
|
12471
|
+
sortBy?: ("name" | "value");
|
|
12472
|
+
};
|
|
12473
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12474
|
+
groupName: string;
|
|
12475
|
+
newlinesInside?: number;
|
|
12476
|
+
order?: ("asc" | "desc");
|
|
12477
|
+
elementNamePattern?: (({
|
|
12478
|
+
pattern: string;
|
|
12479
|
+
flags?: string;
|
|
12480
|
+
} | string)[] | ({
|
|
12481
|
+
pattern: string;
|
|
12482
|
+
flags?: string;
|
|
12483
|
+
} | string));
|
|
12484
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
12485
|
+
selector?: ("index-signature" | "member" | "method" | "property");
|
|
12486
|
+
elementValuePattern?: (({
|
|
12487
|
+
pattern: string;
|
|
12488
|
+
flags?: string;
|
|
12489
|
+
} | string)[] | ({
|
|
12490
|
+
pattern: string;
|
|
12491
|
+
flags?: string;
|
|
12492
|
+
} | string));
|
|
12493
|
+
sortBy?: ("name" | "value");
|
|
12494
|
+
})[];
|
|
12495
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
12496
|
+
newlinesBetween: ("ignore" | number);
|
|
12497
|
+
} | {
|
|
12498
|
+
group: (string | [string, ...(string)[]]);
|
|
12268
12499
|
commentAbove?: string;
|
|
12500
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12501
|
+
newlinesInside?: number;
|
|
12502
|
+
order?: ("asc" | "desc");
|
|
12269
12503
|
})[];
|
|
12504
|
+
newlinesBetween?: ("ignore" | number);
|
|
12505
|
+
useConfigurationIf?: {
|
|
12506
|
+
allNamesMatchPattern?: (({
|
|
12507
|
+
pattern: string;
|
|
12508
|
+
flags?: string;
|
|
12509
|
+
} | string)[] | ({
|
|
12510
|
+
pattern: string;
|
|
12511
|
+
flags?: string;
|
|
12512
|
+
} | string));
|
|
12513
|
+
hasNumericKeysOnly?: boolean;
|
|
12514
|
+
declarationCommentMatchesPattern?: (({
|
|
12515
|
+
scope?: ("shallow" | "deep");
|
|
12516
|
+
pattern: string;
|
|
12517
|
+
flags?: string;
|
|
12518
|
+
} | string)[] | ({
|
|
12519
|
+
scope?: ("shallow" | "deep");
|
|
12520
|
+
pattern: string;
|
|
12521
|
+
flags?: string;
|
|
12522
|
+
} | string));
|
|
12523
|
+
declarationMatchesPattern?: (({
|
|
12524
|
+
scope?: ("shallow" | "deep");
|
|
12525
|
+
pattern: string;
|
|
12526
|
+
flags?: string;
|
|
12527
|
+
} | string)[] | ({
|
|
12528
|
+
scope?: ("shallow" | "deep");
|
|
12529
|
+
pattern: string;
|
|
12530
|
+
flags?: string;
|
|
12531
|
+
} | string));
|
|
12532
|
+
};
|
|
12533
|
+
partitionByComment?: (boolean | (({
|
|
12534
|
+
pattern: string;
|
|
12535
|
+
flags?: string;
|
|
12536
|
+
} | string)[] | ({
|
|
12537
|
+
pattern: string;
|
|
12538
|
+
flags?: string;
|
|
12539
|
+
} | string)) | {
|
|
12540
|
+
block?: (boolean | (({
|
|
12541
|
+
pattern: string;
|
|
12542
|
+
flags?: string;
|
|
12543
|
+
} | string)[] | ({
|
|
12544
|
+
pattern: string;
|
|
12545
|
+
flags?: string;
|
|
12546
|
+
} | string)));
|
|
12547
|
+
line?: (boolean | (({
|
|
12548
|
+
pattern: string;
|
|
12549
|
+
flags?: string;
|
|
12550
|
+
} | string)[] | ({
|
|
12551
|
+
pattern: string;
|
|
12552
|
+
flags?: string;
|
|
12553
|
+
} | string)));
|
|
12554
|
+
});
|
|
12555
|
+
partitionByNewLine?: boolean;
|
|
12556
|
+
sortBy?: ("name" | "value");
|
|
12270
12557
|
}[];
|
|
12271
12558
|
// ----- perfectionist/sort-intersection-types -----
|
|
12272
12559
|
type PerfectionistSortIntersectionTypes = {
|
|
12273
12560
|
fallbackSort?: {
|
|
12561
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12274
12562
|
order?: ("asc" | "desc");
|
|
12275
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12276
12563
|
};
|
|
12564
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12277
12565
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12278
12566
|
ignoreCase?: boolean;
|
|
12279
12567
|
alphabet?: string;
|
|
12280
12568
|
locales?: (string | string[]);
|
|
12281
12569
|
order?: ("asc" | "desc");
|
|
12282
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12283
12570
|
customGroups?: ({
|
|
12284
|
-
newlinesInside?: (("always" | "never") | number);
|
|
12285
12571
|
fallbackSort?: {
|
|
12572
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12286
12573
|
order?: ("asc" | "desc");
|
|
12287
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12288
12574
|
};
|
|
12575
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12289
12576
|
groupName: string;
|
|
12577
|
+
newlinesInside?: number;
|
|
12290
12578
|
order?: ("asc" | "desc");
|
|
12291
|
-
|
|
12292
|
-
anyOf?: {
|
|
12293
|
-
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
12579
|
+
anyOf: {
|
|
12294
12580
|
elementNamePattern?: (({
|
|
12295
12581
|
pattern: string;
|
|
12296
12582
|
flags?: string;
|
|
@@ -12298,17 +12584,17 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
12298
12584
|
pattern: string;
|
|
12299
12585
|
flags?: string;
|
|
12300
12586
|
} | string));
|
|
12587
|
+
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
12301
12588
|
}[];
|
|
12302
12589
|
} | {
|
|
12303
|
-
newlinesInside?: (("always" | "never") | number);
|
|
12304
12590
|
fallbackSort?: {
|
|
12591
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12305
12592
|
order?: ("asc" | "desc");
|
|
12306
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12307
12593
|
};
|
|
12594
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12308
12595
|
groupName: string;
|
|
12596
|
+
newlinesInside?: number;
|
|
12309
12597
|
order?: ("asc" | "desc");
|
|
12310
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12311
|
-
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
12312
12598
|
elementNamePattern?: (({
|
|
12313
12599
|
pattern: string;
|
|
12314
12600
|
flags?: string;
|
|
@@ -12316,7 +12602,18 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
12316
12602
|
pattern: string;
|
|
12317
12603
|
flags?: string;
|
|
12318
12604
|
} | string));
|
|
12605
|
+
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
12606
|
+
})[];
|
|
12607
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
12608
|
+
newlinesBetween: ("ignore" | number);
|
|
12609
|
+
} | {
|
|
12610
|
+
group: (string | [string, ...(string)[]]);
|
|
12611
|
+
commentAbove?: string;
|
|
12612
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12613
|
+
newlinesInside?: number;
|
|
12614
|
+
order?: ("asc" | "desc");
|
|
12319
12615
|
})[];
|
|
12616
|
+
newlinesBetween?: ("ignore" | number);
|
|
12320
12617
|
partitionByComment?: (boolean | (({
|
|
12321
12618
|
pattern: string;
|
|
12322
12619
|
flags?: string;
|
|
@@ -12340,46 +12637,39 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
12340
12637
|
} | string)));
|
|
12341
12638
|
});
|
|
12342
12639
|
partitionByNewLine?: boolean;
|
|
12343
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12344
|
-
groups?: (string | string[] | {
|
|
12345
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12346
|
-
commentAbove?: string;
|
|
12347
|
-
})[];
|
|
12348
12640
|
}[];
|
|
12349
12641
|
// ----- perfectionist/sort-jsx-props -----
|
|
12350
12642
|
type PerfectionistSortJsxProps = {
|
|
12351
12643
|
fallbackSort?: {
|
|
12644
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12352
12645
|
order?: ("asc" | "desc");
|
|
12353
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12354
12646
|
};
|
|
12647
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12355
12648
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12356
12649
|
ignoreCase?: boolean;
|
|
12357
12650
|
alphabet?: string;
|
|
12358
12651
|
locales?: (string | string[]);
|
|
12359
12652
|
order?: ("asc" | "desc");
|
|
12360
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12361
12653
|
customGroups?: ({
|
|
12362
|
-
[k: string]: (string | string[]) | undefined;
|
|
12363
|
-
} | ({
|
|
12364
|
-
newlinesInside?: (("always" | "never") | number);
|
|
12365
12654
|
fallbackSort?: {
|
|
12655
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12366
12656
|
order?: ("asc" | "desc");
|
|
12367
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12368
12657
|
};
|
|
12658
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12369
12659
|
groupName: string;
|
|
12660
|
+
newlinesInside?: number;
|
|
12370
12661
|
order?: ("asc" | "desc");
|
|
12371
|
-
|
|
12372
|
-
|
|
12373
|
-
modifiers?: ("shorthand" | "multiline")[];
|
|
12374
|
-
selector?: ("multiline" | "prop" | "shorthand");
|
|
12375
|
-
elementValuePattern?: (({
|
|
12662
|
+
anyOf: {
|
|
12663
|
+
elementNamePattern?: (({
|
|
12376
12664
|
pattern: string;
|
|
12377
12665
|
flags?: string;
|
|
12378
12666
|
} | string)[] | ({
|
|
12379
12667
|
pattern: string;
|
|
12380
12668
|
flags?: string;
|
|
12381
12669
|
} | string));
|
|
12382
|
-
|
|
12670
|
+
modifiers?: ("shorthand" | "multiline")[];
|
|
12671
|
+
selector?: "prop";
|
|
12672
|
+
elementValuePattern?: (({
|
|
12383
12673
|
pattern: string;
|
|
12384
12674
|
flags?: string;
|
|
12385
12675
|
} | string)[] | ({
|
|
@@ -12388,31 +12678,41 @@ type PerfectionistSortJsxProps = {
|
|
|
12388
12678
|
} | string));
|
|
12389
12679
|
}[];
|
|
12390
12680
|
} | {
|
|
12391
|
-
newlinesInside?: (("always" | "never") | number);
|
|
12392
12681
|
fallbackSort?: {
|
|
12682
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12393
12683
|
order?: ("asc" | "desc");
|
|
12394
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12395
12684
|
};
|
|
12685
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12396
12686
|
groupName: string;
|
|
12687
|
+
newlinesInside?: number;
|
|
12397
12688
|
order?: ("asc" | "desc");
|
|
12398
|
-
|
|
12399
|
-
modifiers?: ("shorthand" | "multiline")[];
|
|
12400
|
-
selector?: ("multiline" | "prop" | "shorthand");
|
|
12401
|
-
elementValuePattern?: (({
|
|
12689
|
+
elementNamePattern?: (({
|
|
12402
12690
|
pattern: string;
|
|
12403
12691
|
flags?: string;
|
|
12404
12692
|
} | string)[] | ({
|
|
12405
12693
|
pattern: string;
|
|
12406
12694
|
flags?: string;
|
|
12407
12695
|
} | string));
|
|
12408
|
-
|
|
12696
|
+
modifiers?: ("shorthand" | "multiline")[];
|
|
12697
|
+
selector?: "prop";
|
|
12698
|
+
elementValuePattern?: (({
|
|
12409
12699
|
pattern: string;
|
|
12410
12700
|
flags?: string;
|
|
12411
12701
|
} | string)[] | ({
|
|
12412
12702
|
pattern: string;
|
|
12413
12703
|
flags?: string;
|
|
12414
12704
|
} | string));
|
|
12415
|
-
})[]
|
|
12705
|
+
})[];
|
|
12706
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
12707
|
+
newlinesBetween: ("ignore" | number);
|
|
12708
|
+
} | {
|
|
12709
|
+
group: (string | [string, ...(string)[]]);
|
|
12710
|
+
commentAbove?: string;
|
|
12711
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12712
|
+
newlinesInside?: number;
|
|
12713
|
+
order?: ("asc" | "desc");
|
|
12714
|
+
})[];
|
|
12715
|
+
newlinesBetween?: ("ignore" | number);
|
|
12416
12716
|
useConfigurationIf?: {
|
|
12417
12717
|
allNamesMatchPattern?: (({
|
|
12418
12718
|
pattern: string;
|
|
@@ -12430,41 +12730,29 @@ type PerfectionistSortJsxProps = {
|
|
|
12430
12730
|
} | string));
|
|
12431
12731
|
};
|
|
12432
12732
|
partitionByNewLine?: boolean;
|
|
12433
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12434
|
-
ignorePattern?: (({
|
|
12435
|
-
pattern: string;
|
|
12436
|
-
flags?: string;
|
|
12437
|
-
} | string)[] | ({
|
|
12438
|
-
pattern: string;
|
|
12439
|
-
flags?: string;
|
|
12440
|
-
} | string));
|
|
12441
|
-
groups?: (string | string[] | {
|
|
12442
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12443
|
-
commentAbove?: string;
|
|
12444
|
-
})[];
|
|
12445
12733
|
}[];
|
|
12446
12734
|
// ----- perfectionist/sort-maps -----
|
|
12447
12735
|
type PerfectionistSortMaps = {
|
|
12448
12736
|
fallbackSort?: {
|
|
12737
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12449
12738
|
order?: ("asc" | "desc");
|
|
12450
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12451
12739
|
};
|
|
12740
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12452
12741
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12453
12742
|
ignoreCase?: boolean;
|
|
12454
12743
|
alphabet?: string;
|
|
12455
12744
|
locales?: (string | string[]);
|
|
12456
12745
|
order?: ("asc" | "desc");
|
|
12457
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12458
12746
|
customGroups?: ({
|
|
12459
|
-
newlinesInside?: (("always" | "never") | number);
|
|
12460
12747
|
fallbackSort?: {
|
|
12748
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12461
12749
|
order?: ("asc" | "desc");
|
|
12462
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12463
12750
|
};
|
|
12751
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12464
12752
|
groupName: string;
|
|
12753
|
+
newlinesInside?: number;
|
|
12465
12754
|
order?: ("asc" | "desc");
|
|
12466
|
-
|
|
12467
|
-
anyOf?: {
|
|
12755
|
+
anyOf: {
|
|
12468
12756
|
elementNamePattern?: (({
|
|
12469
12757
|
pattern: string;
|
|
12470
12758
|
flags?: string;
|
|
@@ -12474,14 +12762,14 @@ type PerfectionistSortMaps = {
|
|
|
12474
12762
|
} | string));
|
|
12475
12763
|
}[];
|
|
12476
12764
|
} | {
|
|
12477
|
-
newlinesInside?: (("always" | "never") | number);
|
|
12478
12765
|
fallbackSort?: {
|
|
12766
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12479
12767
|
order?: ("asc" | "desc");
|
|
12480
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12481
12768
|
};
|
|
12769
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12482
12770
|
groupName: string;
|
|
12771
|
+
newlinesInside?: number;
|
|
12483
12772
|
order?: ("asc" | "desc");
|
|
12484
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12485
12773
|
elementNamePattern?: (({
|
|
12486
12774
|
pattern: string;
|
|
12487
12775
|
flags?: string;
|
|
@@ -12490,6 +12778,16 @@ type PerfectionistSortMaps = {
|
|
|
12490
12778
|
flags?: string;
|
|
12491
12779
|
} | string));
|
|
12492
12780
|
})[];
|
|
12781
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
12782
|
+
newlinesBetween: ("ignore" | number);
|
|
12783
|
+
} | {
|
|
12784
|
+
group: (string | [string, ...(string)[]]);
|
|
12785
|
+
commentAbove?: string;
|
|
12786
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12787
|
+
newlinesInside?: number;
|
|
12788
|
+
order?: ("asc" | "desc");
|
|
12789
|
+
})[];
|
|
12790
|
+
newlinesBetween?: ("ignore" | number);
|
|
12493
12791
|
useConfigurationIf?: {
|
|
12494
12792
|
allNamesMatchPattern?: (({
|
|
12495
12793
|
pattern: string;
|
|
@@ -12522,44 +12820,39 @@ type PerfectionistSortMaps = {
|
|
|
12522
12820
|
} | string)));
|
|
12523
12821
|
});
|
|
12524
12822
|
partitionByNewLine?: boolean;
|
|
12525
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12526
|
-
groups?: (string | string[] | {
|
|
12527
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12528
|
-
commentAbove?: string;
|
|
12529
|
-
})[];
|
|
12530
12823
|
}[];
|
|
12531
12824
|
// ----- perfectionist/sort-modules -----
|
|
12532
12825
|
type PerfectionistSortModules = [] | [{
|
|
12533
12826
|
fallbackSort?: {
|
|
12827
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12534
12828
|
order?: ("asc" | "desc");
|
|
12535
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12536
12829
|
};
|
|
12830
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12537
12831
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12538
12832
|
ignoreCase?: boolean;
|
|
12539
12833
|
alphabet?: string;
|
|
12540
12834
|
locales?: (string | string[]);
|
|
12541
12835
|
order?: ("asc" | "desc");
|
|
12542
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12543
12836
|
customGroups?: ({
|
|
12544
|
-
newlinesInside?: (("always" | "never") | number);
|
|
12545
12837
|
fallbackSort?: {
|
|
12838
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12546
12839
|
order?: ("asc" | "desc");
|
|
12547
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12548
12840
|
};
|
|
12841
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12549
12842
|
groupName: string;
|
|
12843
|
+
newlinesInside?: number;
|
|
12550
12844
|
order?: ("asc" | "desc");
|
|
12551
|
-
|
|
12552
|
-
|
|
12553
|
-
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
12554
|
-
selector?: ("enum" | "function" | "interface" | "type" | "class");
|
|
12555
|
-
decoratorNamePattern?: (({
|
|
12845
|
+
anyOf: {
|
|
12846
|
+
elementNamePattern?: (({
|
|
12556
12847
|
pattern: string;
|
|
12557
12848
|
flags?: string;
|
|
12558
12849
|
} | string)[] | ({
|
|
12559
12850
|
pattern: string;
|
|
12560
12851
|
flags?: string;
|
|
12561
12852
|
} | string));
|
|
12562
|
-
|
|
12853
|
+
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
12854
|
+
selector?: ("enum" | "function" | "interface" | "type" | "class");
|
|
12855
|
+
decoratorNamePattern?: (({
|
|
12563
12856
|
pattern: string;
|
|
12564
12857
|
flags?: string;
|
|
12565
12858
|
} | string)[] | ({
|
|
@@ -12568,24 +12861,24 @@ type PerfectionistSortModules = [] | [{
|
|
|
12568
12861
|
} | string));
|
|
12569
12862
|
}[];
|
|
12570
12863
|
} | {
|
|
12571
|
-
newlinesInside?: (("always" | "never") | number);
|
|
12572
12864
|
fallbackSort?: {
|
|
12865
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12573
12866
|
order?: ("asc" | "desc");
|
|
12574
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12575
12867
|
};
|
|
12868
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12576
12869
|
groupName: string;
|
|
12870
|
+
newlinesInside?: number;
|
|
12577
12871
|
order?: ("asc" | "desc");
|
|
12578
|
-
|
|
12579
|
-
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
12580
|
-
selector?: ("enum" | "function" | "interface" | "type" | "class");
|
|
12581
|
-
decoratorNamePattern?: (({
|
|
12872
|
+
elementNamePattern?: (({
|
|
12582
12873
|
pattern: string;
|
|
12583
12874
|
flags?: string;
|
|
12584
12875
|
} | string)[] | ({
|
|
12585
12876
|
pattern: string;
|
|
12586
12877
|
flags?: string;
|
|
12587
12878
|
} | string));
|
|
12588
|
-
|
|
12879
|
+
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
12880
|
+
selector?: ("enum" | "function" | "interface" | "type" | "class");
|
|
12881
|
+
decoratorNamePattern?: (({
|
|
12589
12882
|
pattern: string;
|
|
12590
12883
|
flags?: string;
|
|
12591
12884
|
} | string)[] | ({
|
|
@@ -12593,6 +12886,16 @@ type PerfectionistSortModules = [] | [{
|
|
|
12593
12886
|
flags?: string;
|
|
12594
12887
|
} | string));
|
|
12595
12888
|
})[];
|
|
12889
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
12890
|
+
newlinesBetween: ("ignore" | number);
|
|
12891
|
+
} | {
|
|
12892
|
+
group: (string | [string, ...(string)[]]);
|
|
12893
|
+
commentAbove?: string;
|
|
12894
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12895
|
+
newlinesInside?: number;
|
|
12896
|
+
order?: ("asc" | "desc");
|
|
12897
|
+
})[];
|
|
12898
|
+
newlinesBetween?: ("ignore" | number);
|
|
12596
12899
|
partitionByComment?: (boolean | (({
|
|
12597
12900
|
pattern: string;
|
|
12598
12901
|
flags?: string;
|
|
@@ -12616,38 +12919,29 @@ type PerfectionistSortModules = [] | [{
|
|
|
12616
12919
|
} | string)));
|
|
12617
12920
|
});
|
|
12618
12921
|
partitionByNewLine?: boolean;
|
|
12619
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12620
|
-
groups?: (string | string[] | {
|
|
12621
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12622
|
-
commentAbove?: string;
|
|
12623
|
-
})[];
|
|
12624
12922
|
}];
|
|
12625
12923
|
// ----- perfectionist/sort-named-exports -----
|
|
12626
12924
|
type PerfectionistSortNamedExports = {
|
|
12627
12925
|
fallbackSort?: {
|
|
12926
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12628
12927
|
order?: ("asc" | "desc");
|
|
12629
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12630
12928
|
};
|
|
12929
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12631
12930
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12632
12931
|
ignoreCase?: boolean;
|
|
12633
12932
|
alphabet?: string;
|
|
12634
12933
|
locales?: (string | string[]);
|
|
12635
12934
|
order?: ("asc" | "desc");
|
|
12636
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12637
|
-
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
12638
|
-
ignoreAlias?: boolean;
|
|
12639
12935
|
customGroups?: ({
|
|
12640
|
-
newlinesInside?: (("always" | "never") | number);
|
|
12641
12936
|
fallbackSort?: {
|
|
12937
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12642
12938
|
order?: ("asc" | "desc");
|
|
12643
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12644
12939
|
};
|
|
12940
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12645
12941
|
groupName: string;
|
|
12942
|
+
newlinesInside?: number;
|
|
12646
12943
|
order?: ("asc" | "desc");
|
|
12647
|
-
|
|
12648
|
-
anyOf?: {
|
|
12649
|
-
modifiers?: ("value" | "type")[];
|
|
12650
|
-
selector?: "export";
|
|
12944
|
+
anyOf: {
|
|
12651
12945
|
elementNamePattern?: (({
|
|
12652
12946
|
pattern: string;
|
|
12653
12947
|
flags?: string;
|
|
@@ -12655,18 +12949,18 @@ type PerfectionistSortNamedExports = {
|
|
|
12655
12949
|
pattern: string;
|
|
12656
12950
|
flags?: string;
|
|
12657
12951
|
} | string));
|
|
12952
|
+
modifiers?: ("value" | "type")[];
|
|
12953
|
+
selector?: "export";
|
|
12658
12954
|
}[];
|
|
12659
12955
|
} | {
|
|
12660
|
-
newlinesInside?: (("always" | "never") | number);
|
|
12661
12956
|
fallbackSort?: {
|
|
12957
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12662
12958
|
order?: ("asc" | "desc");
|
|
12663
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12664
12959
|
};
|
|
12960
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12665
12961
|
groupName: string;
|
|
12962
|
+
newlinesInside?: number;
|
|
12666
12963
|
order?: ("asc" | "desc");
|
|
12667
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12668
|
-
modifiers?: ("value" | "type")[];
|
|
12669
|
-
selector?: "export";
|
|
12670
12964
|
elementNamePattern?: (({
|
|
12671
12965
|
pattern: string;
|
|
12672
12966
|
flags?: string;
|
|
@@ -12674,7 +12968,20 @@ type PerfectionistSortNamedExports = {
|
|
|
12674
12968
|
pattern: string;
|
|
12675
12969
|
flags?: string;
|
|
12676
12970
|
} | string));
|
|
12971
|
+
modifiers?: ("value" | "type")[];
|
|
12972
|
+
selector?: "export";
|
|
12973
|
+
})[];
|
|
12974
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
12975
|
+
newlinesBetween: ("ignore" | number);
|
|
12976
|
+
} | {
|
|
12977
|
+
group: (string | [string, ...(string)[]]);
|
|
12978
|
+
commentAbove?: string;
|
|
12979
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12980
|
+
newlinesInside?: number;
|
|
12981
|
+
order?: ("asc" | "desc");
|
|
12677
12982
|
})[];
|
|
12983
|
+
newlinesBetween?: ("ignore" | number);
|
|
12984
|
+
ignoreAlias?: boolean;
|
|
12678
12985
|
partitionByComment?: (boolean | (({
|
|
12679
12986
|
pattern: string;
|
|
12680
12987
|
flags?: string;
|
|
@@ -12698,38 +13005,29 @@ type PerfectionistSortNamedExports = {
|
|
|
12698
13005
|
} | string)));
|
|
12699
13006
|
});
|
|
12700
13007
|
partitionByNewLine?: boolean;
|
|
12701
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12702
|
-
groups?: (string | string[] | {
|
|
12703
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12704
|
-
commentAbove?: string;
|
|
12705
|
-
})[];
|
|
12706
13008
|
}[];
|
|
12707
13009
|
// ----- perfectionist/sort-named-imports -----
|
|
12708
13010
|
type PerfectionistSortNamedImports = {
|
|
12709
13011
|
fallbackSort?: {
|
|
13012
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12710
13013
|
order?: ("asc" | "desc");
|
|
12711
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12712
13014
|
};
|
|
13015
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12713
13016
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12714
13017
|
ignoreCase?: boolean;
|
|
12715
13018
|
alphabet?: string;
|
|
12716
13019
|
locales?: (string | string[]);
|
|
12717
13020
|
order?: ("asc" | "desc");
|
|
12718
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12719
|
-
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
12720
|
-
ignoreAlias?: boolean;
|
|
12721
13021
|
customGroups?: ({
|
|
12722
|
-
newlinesInside?: (("always" | "never") | number);
|
|
12723
13022
|
fallbackSort?: {
|
|
13023
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12724
13024
|
order?: ("asc" | "desc");
|
|
12725
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12726
13025
|
};
|
|
13026
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12727
13027
|
groupName: string;
|
|
13028
|
+
newlinesInside?: number;
|
|
12728
13029
|
order?: ("asc" | "desc");
|
|
12729
|
-
|
|
12730
|
-
anyOf?: {
|
|
12731
|
-
modifiers?: ("value" | "type")[];
|
|
12732
|
-
selector?: "import";
|
|
13030
|
+
anyOf: {
|
|
12733
13031
|
elementNamePattern?: (({
|
|
12734
13032
|
pattern: string;
|
|
12735
13033
|
flags?: string;
|
|
@@ -12737,18 +13035,18 @@ type PerfectionistSortNamedImports = {
|
|
|
12737
13035
|
pattern: string;
|
|
12738
13036
|
flags?: string;
|
|
12739
13037
|
} | string));
|
|
13038
|
+
modifiers?: ("value" | "type")[];
|
|
13039
|
+
selector?: "import";
|
|
12740
13040
|
}[];
|
|
12741
13041
|
} | {
|
|
12742
|
-
newlinesInside?: (("always" | "never") | number);
|
|
12743
13042
|
fallbackSort?: {
|
|
13043
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12744
13044
|
order?: ("asc" | "desc");
|
|
12745
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12746
13045
|
};
|
|
13046
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12747
13047
|
groupName: string;
|
|
13048
|
+
newlinesInside?: number;
|
|
12748
13049
|
order?: ("asc" | "desc");
|
|
12749
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12750
|
-
modifiers?: ("value" | "type")[];
|
|
12751
|
-
selector?: "import";
|
|
12752
13050
|
elementNamePattern?: (({
|
|
12753
13051
|
pattern: string;
|
|
12754
13052
|
flags?: string;
|
|
@@ -12756,7 +13054,20 @@ type PerfectionistSortNamedImports = {
|
|
|
12756
13054
|
pattern: string;
|
|
12757
13055
|
flags?: string;
|
|
12758
13056
|
} | string));
|
|
13057
|
+
modifiers?: ("value" | "type")[];
|
|
13058
|
+
selector?: "import";
|
|
13059
|
+
})[];
|
|
13060
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
13061
|
+
newlinesBetween: ("ignore" | number);
|
|
13062
|
+
} | {
|
|
13063
|
+
group: (string | [string, ...(string)[]]);
|
|
13064
|
+
commentAbove?: string;
|
|
13065
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13066
|
+
newlinesInside?: number;
|
|
13067
|
+
order?: ("asc" | "desc");
|
|
12759
13068
|
})[];
|
|
13069
|
+
newlinesBetween?: ("ignore" | number);
|
|
13070
|
+
ignoreAlias?: boolean;
|
|
12760
13071
|
partitionByComment?: (boolean | (({
|
|
12761
13072
|
pattern: string;
|
|
12762
13073
|
flags?: string;
|
|
@@ -12780,48 +13091,41 @@ type PerfectionistSortNamedImports = {
|
|
|
12780
13091
|
} | string)));
|
|
12781
13092
|
});
|
|
12782
13093
|
partitionByNewLine?: boolean;
|
|
12783
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12784
|
-
groups?: (string | string[] | {
|
|
12785
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12786
|
-
commentAbove?: string;
|
|
12787
|
-
})[];
|
|
12788
13094
|
}[];
|
|
12789
13095
|
// ----- perfectionist/sort-object-types -----
|
|
12790
13096
|
type PerfectionistSortObjectTypes = {
|
|
12791
13097
|
fallbackSort?: {
|
|
13098
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12792
13099
|
order?: ("asc" | "desc");
|
|
12793
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12794
13100
|
sortBy?: ("name" | "value");
|
|
12795
13101
|
};
|
|
13102
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12796
13103
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12797
13104
|
ignoreCase?: boolean;
|
|
12798
13105
|
alphabet?: string;
|
|
12799
13106
|
locales?: (string | string[]);
|
|
12800
13107
|
order?: ("asc" | "desc");
|
|
12801
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12802
13108
|
customGroups?: ({
|
|
12803
|
-
[k: string]: (string | string[]) | undefined;
|
|
12804
|
-
} | ({
|
|
12805
|
-
newlinesInside?: (("always" | "never") | number);
|
|
12806
13109
|
fallbackSort?: {
|
|
13110
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12807
13111
|
order?: ("asc" | "desc");
|
|
12808
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12809
13112
|
sortBy?: ("name" | "value");
|
|
12810
13113
|
};
|
|
13114
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12811
13115
|
groupName: string;
|
|
13116
|
+
newlinesInside?: number;
|
|
12812
13117
|
order?: ("asc" | "desc");
|
|
12813
|
-
|
|
12814
|
-
|
|
12815
|
-
modifiers?: ("optional" | "required" | "multiline")[];
|
|
12816
|
-
selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
|
|
12817
|
-
elementValuePattern?: (({
|
|
13118
|
+
anyOf: {
|
|
13119
|
+
elementNamePattern?: (({
|
|
12818
13120
|
pattern: string;
|
|
12819
13121
|
flags?: string;
|
|
12820
13122
|
} | string)[] | ({
|
|
12821
13123
|
pattern: string;
|
|
12822
13124
|
flags?: string;
|
|
12823
13125
|
} | string));
|
|
12824
|
-
|
|
13126
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
13127
|
+
selector?: ("index-signature" | "member" | "method" | "property");
|
|
13128
|
+
elementValuePattern?: (({
|
|
12825
13129
|
pattern: string;
|
|
12826
13130
|
flags?: string;
|
|
12827
13131
|
} | string)[] | ({
|
|
@@ -12831,25 +13135,25 @@ type PerfectionistSortObjectTypes = {
|
|
|
12831
13135
|
sortBy?: ("name" | "value");
|
|
12832
13136
|
}[];
|
|
12833
13137
|
} | {
|
|
12834
|
-
newlinesInside?: (("always" | "never") | number);
|
|
12835
13138
|
fallbackSort?: {
|
|
13139
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12836
13140
|
order?: ("asc" | "desc");
|
|
12837
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12838
13141
|
sortBy?: ("name" | "value");
|
|
12839
13142
|
};
|
|
13143
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12840
13144
|
groupName: string;
|
|
13145
|
+
newlinesInside?: number;
|
|
12841
13146
|
order?: ("asc" | "desc");
|
|
12842
|
-
|
|
12843
|
-
modifiers?: ("optional" | "required" | "multiline")[];
|
|
12844
|
-
selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
|
|
12845
|
-
elementValuePattern?: (({
|
|
13147
|
+
elementNamePattern?: (({
|
|
12846
13148
|
pattern: string;
|
|
12847
13149
|
flags?: string;
|
|
12848
13150
|
} | string)[] | ({
|
|
12849
13151
|
pattern: string;
|
|
12850
13152
|
flags?: string;
|
|
12851
13153
|
} | string));
|
|
12852
|
-
|
|
13154
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
13155
|
+
selector?: ("index-signature" | "member" | "method" | "property");
|
|
13156
|
+
elementValuePattern?: (({
|
|
12853
13157
|
pattern: string;
|
|
12854
13158
|
flags?: string;
|
|
12855
13159
|
} | string)[] | ({
|
|
@@ -12857,8 +13161,17 @@ type PerfectionistSortObjectTypes = {
|
|
|
12857
13161
|
flags?: string;
|
|
12858
13162
|
} | string));
|
|
12859
13163
|
sortBy?: ("name" | "value");
|
|
12860
|
-
})[]
|
|
12861
|
-
|
|
13164
|
+
})[];
|
|
13165
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
13166
|
+
newlinesBetween: ("ignore" | number);
|
|
13167
|
+
} | {
|
|
13168
|
+
group: (string | [string, ...(string)[]]);
|
|
13169
|
+
commentAbove?: string;
|
|
13170
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13171
|
+
newlinesInside?: number;
|
|
13172
|
+
order?: ("asc" | "desc");
|
|
13173
|
+
})[];
|
|
13174
|
+
newlinesBetween?: ("ignore" | number);
|
|
12862
13175
|
useConfigurationIf?: {
|
|
12863
13176
|
allNamesMatchPattern?: (({
|
|
12864
13177
|
pattern: string;
|
|
@@ -12867,10 +13180,22 @@ type PerfectionistSortObjectTypes = {
|
|
|
12867
13180
|
pattern: string;
|
|
12868
13181
|
flags?: string;
|
|
12869
13182
|
} | string));
|
|
13183
|
+
hasNumericKeysOnly?: boolean;
|
|
13184
|
+
declarationCommentMatchesPattern?: (({
|
|
13185
|
+
scope?: ("shallow" | "deep");
|
|
13186
|
+
pattern: string;
|
|
13187
|
+
flags?: string;
|
|
13188
|
+
} | string)[] | ({
|
|
13189
|
+
scope?: ("shallow" | "deep");
|
|
13190
|
+
pattern: string;
|
|
13191
|
+
flags?: string;
|
|
13192
|
+
} | string));
|
|
12870
13193
|
declarationMatchesPattern?: (({
|
|
13194
|
+
scope?: ("shallow" | "deep");
|
|
12871
13195
|
pattern: string;
|
|
12872
13196
|
flags?: string;
|
|
12873
13197
|
} | string)[] | ({
|
|
13198
|
+
scope?: ("shallow" | "deep");
|
|
12874
13199
|
pattern: string;
|
|
12875
13200
|
flags?: string;
|
|
12876
13201
|
} | string));
|
|
@@ -12898,57 +13223,40 @@ type PerfectionistSortObjectTypes = {
|
|
|
12898
13223
|
} | string)));
|
|
12899
13224
|
});
|
|
12900
13225
|
partitionByNewLine?: boolean;
|
|
12901
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12902
|
-
ignorePattern?: (({
|
|
12903
|
-
pattern: string;
|
|
12904
|
-
flags?: string;
|
|
12905
|
-
} | string)[] | ({
|
|
12906
|
-
pattern: string;
|
|
12907
|
-
flags?: string;
|
|
12908
|
-
} | string));
|
|
12909
13226
|
sortBy?: ("name" | "value");
|
|
12910
|
-
groups?: (string | string[] | {
|
|
12911
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12912
|
-
commentAbove?: string;
|
|
12913
|
-
})[];
|
|
12914
13227
|
}[];
|
|
12915
13228
|
// ----- perfectionist/sort-objects -----
|
|
12916
13229
|
type PerfectionistSortObjects = {
|
|
12917
13230
|
fallbackSort?: {
|
|
13231
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12918
13232
|
order?: ("asc" | "desc");
|
|
12919
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12920
13233
|
};
|
|
13234
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12921
13235
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12922
13236
|
ignoreCase?: boolean;
|
|
12923
13237
|
alphabet?: string;
|
|
12924
13238
|
locales?: (string | string[]);
|
|
12925
13239
|
order?: ("asc" | "desc");
|
|
12926
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12927
|
-
destructuredObjects?: (boolean | {
|
|
12928
|
-
groups?: boolean;
|
|
12929
|
-
});
|
|
12930
13240
|
customGroups?: ({
|
|
12931
|
-
[k: string]: (string | string[]) | undefined;
|
|
12932
|
-
} | ({
|
|
12933
|
-
newlinesInside?: (("always" | "never") | number);
|
|
12934
13241
|
fallbackSort?: {
|
|
13242
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12935
13243
|
order?: ("asc" | "desc");
|
|
12936
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12937
13244
|
};
|
|
13245
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12938
13246
|
groupName: string;
|
|
13247
|
+
newlinesInside?: number;
|
|
12939
13248
|
order?: ("asc" | "desc");
|
|
12940
|
-
|
|
12941
|
-
|
|
12942
|
-
modifiers?: ("optional" | "required" | "multiline")[];
|
|
12943
|
-
selector?: ("member" | "method" | "multiline" | "property");
|
|
12944
|
-
elementValuePattern?: (({
|
|
13249
|
+
anyOf: {
|
|
13250
|
+
elementNamePattern?: (({
|
|
12945
13251
|
pattern: string;
|
|
12946
13252
|
flags?: string;
|
|
12947
13253
|
} | string)[] | ({
|
|
12948
13254
|
pattern: string;
|
|
12949
13255
|
flags?: string;
|
|
12950
13256
|
} | string));
|
|
12951
|
-
|
|
13257
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
13258
|
+
selector?: ("member" | "method" | "property");
|
|
13259
|
+
elementValuePattern?: (({
|
|
12952
13260
|
pattern: string;
|
|
12953
13261
|
flags?: string;
|
|
12954
13262
|
} | string)[] | ({
|
|
@@ -12957,31 +13265,41 @@ type PerfectionistSortObjects = {
|
|
|
12957
13265
|
} | string));
|
|
12958
13266
|
}[];
|
|
12959
13267
|
} | {
|
|
12960
|
-
newlinesInside?: (("always" | "never") | number);
|
|
12961
13268
|
fallbackSort?: {
|
|
13269
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12962
13270
|
order?: ("asc" | "desc");
|
|
12963
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12964
13271
|
};
|
|
13272
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12965
13273
|
groupName: string;
|
|
13274
|
+
newlinesInside?: number;
|
|
12966
13275
|
order?: ("asc" | "desc");
|
|
12967
|
-
|
|
12968
|
-
modifiers?: ("optional" | "required" | "multiline")[];
|
|
12969
|
-
selector?: ("member" | "method" | "multiline" | "property");
|
|
12970
|
-
elementValuePattern?: (({
|
|
13276
|
+
elementNamePattern?: (({
|
|
12971
13277
|
pattern: string;
|
|
12972
13278
|
flags?: string;
|
|
12973
13279
|
} | string)[] | ({
|
|
12974
13280
|
pattern: string;
|
|
12975
13281
|
flags?: string;
|
|
12976
13282
|
} | string));
|
|
12977
|
-
|
|
13283
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
13284
|
+
selector?: ("member" | "method" | "property");
|
|
13285
|
+
elementValuePattern?: (({
|
|
12978
13286
|
pattern: string;
|
|
12979
13287
|
flags?: string;
|
|
12980
13288
|
} | string)[] | ({
|
|
12981
13289
|
pattern: string;
|
|
12982
13290
|
flags?: string;
|
|
12983
13291
|
} | string));
|
|
12984
|
-
})[]
|
|
13292
|
+
})[];
|
|
13293
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
13294
|
+
newlinesBetween: ("ignore" | number);
|
|
13295
|
+
} | {
|
|
13296
|
+
group: (string | [string, ...(string)[]]);
|
|
13297
|
+
commentAbove?: string;
|
|
13298
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13299
|
+
newlinesInside?: number;
|
|
13300
|
+
order?: ("asc" | "desc");
|
|
13301
|
+
})[];
|
|
13302
|
+
newlinesBetween?: ("ignore" | number);
|
|
12985
13303
|
useConfigurationIf?: {
|
|
12986
13304
|
allNamesMatchPattern?: (({
|
|
12987
13305
|
pattern: string;
|
|
@@ -12990,16 +13308,36 @@ type PerfectionistSortObjects = {
|
|
|
12990
13308
|
pattern: string;
|
|
12991
13309
|
flags?: string;
|
|
12992
13310
|
} | string));
|
|
13311
|
+
objectType?: ("destructured" | "non-destructured");
|
|
13312
|
+
hasNumericKeysOnly?: boolean;
|
|
13313
|
+
declarationCommentMatchesPattern?: (({
|
|
13314
|
+
scope?: ("shallow" | "deep");
|
|
13315
|
+
pattern: string;
|
|
13316
|
+
flags?: string;
|
|
13317
|
+
} | string)[] | ({
|
|
13318
|
+
scope?: ("shallow" | "deep");
|
|
13319
|
+
pattern: string;
|
|
13320
|
+
flags?: string;
|
|
13321
|
+
} | string));
|
|
12993
13322
|
callingFunctionNamePattern?: (({
|
|
13323
|
+
scope?: ("shallow" | "deep");
|
|
12994
13324
|
pattern: string;
|
|
12995
13325
|
flags?: string;
|
|
12996
13326
|
} | string)[] | ({
|
|
13327
|
+
scope?: ("shallow" | "deep");
|
|
13328
|
+
pattern: string;
|
|
13329
|
+
flags?: string;
|
|
13330
|
+
} | string));
|
|
13331
|
+
declarationMatchesPattern?: (({
|
|
13332
|
+
scope?: ("shallow" | "deep");
|
|
13333
|
+
pattern: string;
|
|
13334
|
+
flags?: string;
|
|
13335
|
+
} | string)[] | ({
|
|
13336
|
+
scope?: ("shallow" | "deep");
|
|
12997
13337
|
pattern: string;
|
|
12998
13338
|
flags?: string;
|
|
12999
13339
|
} | string));
|
|
13000
13340
|
};
|
|
13001
|
-
destructureOnly?: boolean;
|
|
13002
|
-
objectDeclarations?: boolean;
|
|
13003
13341
|
styledComponents?: boolean;
|
|
13004
13342
|
partitionByComment?: (boolean | (({
|
|
13005
13343
|
pattern: string;
|
|
@@ -13024,43 +13362,29 @@ type PerfectionistSortObjects = {
|
|
|
13024
13362
|
} | string)));
|
|
13025
13363
|
});
|
|
13026
13364
|
partitionByNewLine?: boolean;
|
|
13027
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
13028
|
-
ignorePattern?: (({
|
|
13029
|
-
pattern: string;
|
|
13030
|
-
flags?: string;
|
|
13031
|
-
} | string)[] | ({
|
|
13032
|
-
pattern: string;
|
|
13033
|
-
flags?: string;
|
|
13034
|
-
} | string));
|
|
13035
|
-
groups?: (string | string[] | {
|
|
13036
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
13037
|
-
commentAbove?: string;
|
|
13038
|
-
})[];
|
|
13039
13365
|
}[];
|
|
13040
13366
|
// ----- perfectionist/sort-sets -----
|
|
13041
13367
|
type PerfectionistSortSets = {
|
|
13042
13368
|
fallbackSort?: {
|
|
13369
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13043
13370
|
order?: ("asc" | "desc");
|
|
13044
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13045
13371
|
};
|
|
13372
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13046
13373
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
13047
13374
|
ignoreCase?: boolean;
|
|
13048
13375
|
alphabet?: string;
|
|
13049
13376
|
locales?: (string | string[]);
|
|
13050
13377
|
order?: ("asc" | "desc");
|
|
13051
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13052
|
-
groupKind?: ("mixed" | "literals-first" | "spreads-first");
|
|
13053
13378
|
customGroups?: ({
|
|
13054
|
-
newlinesInside?: (("always" | "never") | number);
|
|
13055
13379
|
fallbackSort?: {
|
|
13380
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13056
13381
|
order?: ("asc" | "desc");
|
|
13057
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13058
13382
|
};
|
|
13383
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13059
13384
|
groupName: string;
|
|
13385
|
+
newlinesInside?: number;
|
|
13060
13386
|
order?: ("asc" | "desc");
|
|
13061
|
-
|
|
13062
|
-
anyOf?: {
|
|
13063
|
-
selector?: ("literal" | "spread");
|
|
13387
|
+
anyOf: {
|
|
13064
13388
|
elementNamePattern?: (({
|
|
13065
13389
|
pattern: string;
|
|
13066
13390
|
flags?: string;
|
|
@@ -13068,17 +13392,17 @@ type PerfectionistSortSets = {
|
|
|
13068
13392
|
pattern: string;
|
|
13069
13393
|
flags?: string;
|
|
13070
13394
|
} | string));
|
|
13395
|
+
selector?: ("literal" | "spread");
|
|
13071
13396
|
}[];
|
|
13072
13397
|
} | {
|
|
13073
|
-
newlinesInside?: (("always" | "never") | number);
|
|
13074
13398
|
fallbackSort?: {
|
|
13399
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13075
13400
|
order?: ("asc" | "desc");
|
|
13076
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13077
13401
|
};
|
|
13402
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13078
13403
|
groupName: string;
|
|
13404
|
+
newlinesInside?: number;
|
|
13079
13405
|
order?: ("asc" | "desc");
|
|
13080
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13081
|
-
selector?: ("literal" | "spread");
|
|
13082
13406
|
elementNamePattern?: (({
|
|
13083
13407
|
pattern: string;
|
|
13084
13408
|
flags?: string;
|
|
@@ -13086,7 +13410,18 @@ type PerfectionistSortSets = {
|
|
|
13086
13410
|
pattern: string;
|
|
13087
13411
|
flags?: string;
|
|
13088
13412
|
} | string));
|
|
13413
|
+
selector?: ("literal" | "spread");
|
|
13414
|
+
})[];
|
|
13415
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
13416
|
+
newlinesBetween: ("ignore" | number);
|
|
13417
|
+
} | {
|
|
13418
|
+
group: (string | [string, ...(string)[]]);
|
|
13419
|
+
commentAbove?: string;
|
|
13420
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13421
|
+
newlinesInside?: number;
|
|
13422
|
+
order?: ("asc" | "desc");
|
|
13089
13423
|
})[];
|
|
13424
|
+
newlinesBetween?: ("ignore" | number);
|
|
13090
13425
|
useConfigurationIf?: {
|
|
13091
13426
|
allNamesMatchPattern?: (({
|
|
13092
13427
|
pattern: string;
|
|
@@ -13119,48 +13454,42 @@ type PerfectionistSortSets = {
|
|
|
13119
13454
|
} | string)));
|
|
13120
13455
|
});
|
|
13121
13456
|
partitionByNewLine?: boolean;
|
|
13122
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
13123
|
-
groups?: (string | string[] | {
|
|
13124
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
13125
|
-
commentAbove?: string;
|
|
13126
|
-
})[];
|
|
13127
13457
|
}[];
|
|
13128
13458
|
// ----- perfectionist/sort-switch-case -----
|
|
13129
13459
|
type PerfectionistSortSwitchCase = [] | [{
|
|
13130
13460
|
fallbackSort?: {
|
|
13461
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13131
13462
|
order?: ("asc" | "desc");
|
|
13132
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13133
13463
|
};
|
|
13464
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13134
13465
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
13135
13466
|
ignoreCase?: boolean;
|
|
13136
13467
|
alphabet?: string;
|
|
13137
13468
|
locales?: (string | string[]);
|
|
13138
13469
|
order?: ("asc" | "desc");
|
|
13139
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13140
13470
|
}];
|
|
13141
13471
|
// ----- perfectionist/sort-union-types -----
|
|
13142
13472
|
type PerfectionistSortUnionTypes = {
|
|
13143
13473
|
fallbackSort?: {
|
|
13474
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13144
13475
|
order?: ("asc" | "desc");
|
|
13145
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13146
13476
|
};
|
|
13477
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13147
13478
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
13148
13479
|
ignoreCase?: boolean;
|
|
13149
13480
|
alphabet?: string;
|
|
13150
13481
|
locales?: (string | string[]);
|
|
13151
13482
|
order?: ("asc" | "desc");
|
|
13152
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13153
13483
|
customGroups?: ({
|
|
13154
|
-
newlinesInside?: (("always" | "never") | number);
|
|
13155
13484
|
fallbackSort?: {
|
|
13485
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13156
13486
|
order?: ("asc" | "desc");
|
|
13157
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13158
13487
|
};
|
|
13488
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13159
13489
|
groupName: string;
|
|
13490
|
+
newlinesInside?: number;
|
|
13160
13491
|
order?: ("asc" | "desc");
|
|
13161
|
-
|
|
13162
|
-
anyOf?: {
|
|
13163
|
-
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
13492
|
+
anyOf: {
|
|
13164
13493
|
elementNamePattern?: (({
|
|
13165
13494
|
pattern: string;
|
|
13166
13495
|
flags?: string;
|
|
@@ -13168,17 +13497,17 @@ type PerfectionistSortUnionTypes = {
|
|
|
13168
13497
|
pattern: string;
|
|
13169
13498
|
flags?: string;
|
|
13170
13499
|
} | string));
|
|
13500
|
+
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
13171
13501
|
}[];
|
|
13172
13502
|
} | {
|
|
13173
|
-
newlinesInside?: (("always" | "never") | number);
|
|
13174
13503
|
fallbackSort?: {
|
|
13504
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13175
13505
|
order?: ("asc" | "desc");
|
|
13176
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13177
13506
|
};
|
|
13507
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13178
13508
|
groupName: string;
|
|
13509
|
+
newlinesInside?: number;
|
|
13179
13510
|
order?: ("asc" | "desc");
|
|
13180
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13181
|
-
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
13182
13511
|
elementNamePattern?: (({
|
|
13183
13512
|
pattern: string;
|
|
13184
13513
|
flags?: string;
|
|
@@ -13186,7 +13515,18 @@ type PerfectionistSortUnionTypes = {
|
|
|
13186
13515
|
pattern: string;
|
|
13187
13516
|
flags?: string;
|
|
13188
13517
|
} | string));
|
|
13518
|
+
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
13519
|
+
})[];
|
|
13520
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
13521
|
+
newlinesBetween: ("ignore" | number);
|
|
13522
|
+
} | {
|
|
13523
|
+
group: (string | [string, ...(string)[]]);
|
|
13524
|
+
commentAbove?: string;
|
|
13525
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13526
|
+
newlinesInside?: number;
|
|
13527
|
+
order?: ("asc" | "desc");
|
|
13189
13528
|
})[];
|
|
13529
|
+
newlinesBetween?: ("ignore" | number);
|
|
13190
13530
|
partitionByComment?: (boolean | (({
|
|
13191
13531
|
pattern: string;
|
|
13192
13532
|
flags?: string;
|
|
@@ -13210,35 +13550,29 @@ type PerfectionistSortUnionTypes = {
|
|
|
13210
13550
|
} | string)));
|
|
13211
13551
|
});
|
|
13212
13552
|
partitionByNewLine?: boolean;
|
|
13213
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
13214
|
-
groups?: (string | string[] | {
|
|
13215
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
13216
|
-
commentAbove?: string;
|
|
13217
|
-
})[];
|
|
13218
13553
|
}[];
|
|
13219
13554
|
// ----- perfectionist/sort-variable-declarations -----
|
|
13220
13555
|
type PerfectionistSortVariableDeclarations = [] | [{
|
|
13221
13556
|
fallbackSort?: {
|
|
13557
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13222
13558
|
order?: ("asc" | "desc");
|
|
13223
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13224
13559
|
};
|
|
13560
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13225
13561
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
13226
13562
|
ignoreCase?: boolean;
|
|
13227
13563
|
alphabet?: string;
|
|
13228
13564
|
locales?: (string | string[]);
|
|
13229
13565
|
order?: ("asc" | "desc");
|
|
13230
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13231
13566
|
customGroups?: ({
|
|
13232
|
-
newlinesInside?: (("always" | "never") | number);
|
|
13233
13567
|
fallbackSort?: {
|
|
13568
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13234
13569
|
order?: ("asc" | "desc");
|
|
13235
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13236
13570
|
};
|
|
13571
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13237
13572
|
groupName: string;
|
|
13573
|
+
newlinesInside?: number;
|
|
13238
13574
|
order?: ("asc" | "desc");
|
|
13239
|
-
|
|
13240
|
-
anyOf?: {
|
|
13241
|
-
selector?: ("initialized" | "uninitialized");
|
|
13575
|
+
anyOf: {
|
|
13242
13576
|
elementNamePattern?: (({
|
|
13243
13577
|
pattern: string;
|
|
13244
13578
|
flags?: string;
|
|
@@ -13246,17 +13580,17 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
13246
13580
|
pattern: string;
|
|
13247
13581
|
flags?: string;
|
|
13248
13582
|
} | string));
|
|
13583
|
+
selector?: ("initialized" | "uninitialized");
|
|
13249
13584
|
}[];
|
|
13250
13585
|
} | {
|
|
13251
|
-
newlinesInside?: (("always" | "never") | number);
|
|
13252
13586
|
fallbackSort?: {
|
|
13587
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13253
13588
|
order?: ("asc" | "desc");
|
|
13254
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13255
13589
|
};
|
|
13590
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13256
13591
|
groupName: string;
|
|
13592
|
+
newlinesInside?: number;
|
|
13257
13593
|
order?: ("asc" | "desc");
|
|
13258
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13259
|
-
selector?: ("initialized" | "uninitialized");
|
|
13260
13594
|
elementNamePattern?: (({
|
|
13261
13595
|
pattern: string;
|
|
13262
13596
|
flags?: string;
|
|
@@ -13264,7 +13598,18 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
13264
13598
|
pattern: string;
|
|
13265
13599
|
flags?: string;
|
|
13266
13600
|
} | string));
|
|
13601
|
+
selector?: ("initialized" | "uninitialized");
|
|
13602
|
+
})[];
|
|
13603
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
13604
|
+
newlinesBetween: ("ignore" | number);
|
|
13605
|
+
} | {
|
|
13606
|
+
group: (string | [string, ...(string)[]]);
|
|
13607
|
+
commentAbove?: string;
|
|
13608
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
13609
|
+
newlinesInside?: number;
|
|
13610
|
+
order?: ("asc" | "desc");
|
|
13267
13611
|
})[];
|
|
13612
|
+
newlinesBetween?: ("ignore" | number);
|
|
13268
13613
|
partitionByComment?: (boolean | (({
|
|
13269
13614
|
pattern: string;
|
|
13270
13615
|
flags?: string;
|
|
@@ -13288,11 +13633,6 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
13288
13633
|
} | string)));
|
|
13289
13634
|
});
|
|
13290
13635
|
partitionByNewLine?: boolean;
|
|
13291
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
13292
|
-
groups?: (string | string[] | {
|
|
13293
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
13294
|
-
commentAbove?: string;
|
|
13295
|
-
})[];
|
|
13296
13636
|
}];
|
|
13297
13637
|
// ----- pnpm/json-enforce-catalog -----
|
|
13298
13638
|
type PnpmJsonEnforceCatalog = [] | [{
|