@ghettoddos/eslint-config 3.1.0 → 3.2.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.ts → index.d.mts} +902 -478
- package/dist/{index.js → index.mjs} +175 -61
- package/dist/lib-iPqdw0x2.mjs +11151 -0
- package/package.json +34 -33
- package/dist/lib-CEKTiw7V.js +0 -11176
|
@@ -521,6 +521,11 @@ interface RuleOptions {
|
|
|
521
521
|
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/consistent-type-specifier-style/README.md
|
|
522
522
|
*/
|
|
523
523
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
|
|
524
|
+
/**
|
|
525
|
+
* Ensure all exports appear after other statements.
|
|
526
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/exports-last/README.md
|
|
527
|
+
*/
|
|
528
|
+
'import/exports-last'?: Linter.RuleEntry<[]>;
|
|
524
529
|
/**
|
|
525
530
|
* Ensure all imports appear before other statements.
|
|
526
531
|
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/first/README.md
|
|
@@ -1618,7 +1623,7 @@ interface RuleOptions {
|
|
|
1618
1623
|
*/
|
|
1619
1624
|
'next/inline-script-id'?: Linter.RuleEntry<[]>;
|
|
1620
1625
|
/**
|
|
1621
|
-
* Prefer
|
|
1626
|
+
* Prefer `@next/third-parties/google` when using the inline script for Google Analytics and Tag Manager.
|
|
1622
1627
|
* @see https://nextjs.org/docs/messages/next-script-for-ga
|
|
1623
1628
|
*/
|
|
1624
1629
|
'next/next-script-for-ga'?: Linter.RuleEntry<[]>;
|
|
@@ -2802,6 +2807,11 @@ interface RuleOptions {
|
|
|
2802
2807
|
* @see https://perfectionist.dev/rules/sort-enums
|
|
2803
2808
|
*/
|
|
2804
2809
|
'perfectionist/sort-enums'?: Linter.RuleEntry<PerfectionistSortEnums>;
|
|
2810
|
+
/**
|
|
2811
|
+
* Enforce sorted export attributes.
|
|
2812
|
+
* @see https://perfectionist.dev/rules/sort-export-attributes
|
|
2813
|
+
*/
|
|
2814
|
+
'perfectionist/sort-export-attributes'?: Linter.RuleEntry<PerfectionistSortExportAttributes>;
|
|
2805
2815
|
/**
|
|
2806
2816
|
* Enforce sorted exports.
|
|
2807
2817
|
* @see https://perfectionist.dev/rules/sort-exports
|
|
@@ -2812,6 +2822,11 @@ interface RuleOptions {
|
|
|
2812
2822
|
* @see https://perfectionist.dev/rules/sort-heritage-clauses
|
|
2813
2823
|
*/
|
|
2814
2824
|
'perfectionist/sort-heritage-clauses'?: Linter.RuleEntry<PerfectionistSortHeritageClauses>;
|
|
2825
|
+
/**
|
|
2826
|
+
* Enforce sorted import attributes.
|
|
2827
|
+
* @see https://perfectionist.dev/rules/sort-import-attributes
|
|
2828
|
+
*/
|
|
2829
|
+
'perfectionist/sort-import-attributes'?: Linter.RuleEntry<PerfectionistSortImportAttributes>;
|
|
2815
2830
|
/**
|
|
2816
2831
|
* Enforce sorted imports.
|
|
2817
2832
|
* @see https://perfectionist.dev/rules/sort-imports
|
|
@@ -3247,7 +3262,7 @@ interface RuleOptions {
|
|
|
3247
3262
|
* Enforces destructuring and symmetric naming of `useState` hook value and setter.
|
|
3248
3263
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-use-state
|
|
3249
3264
|
*/
|
|
3250
|
-
'react-naming-convention/use-state'?: Linter.RuleEntry<
|
|
3265
|
+
'react-naming-convention/use-state'?: Linter.RuleEntry<ReactNamingConventionUseState>;
|
|
3251
3266
|
'react-native-community/no-color-literals'?: Linter.RuleEntry<[]>;
|
|
3252
3267
|
'react-native-community/no-inline-styles'?: Linter.RuleEntry<[]>;
|
|
3253
3268
|
'react-native-community/no-raw-text'?: Linter.RuleEntry<ReactNativeCommunityNoRawText>;
|
|
@@ -4836,6 +4851,11 @@ interface RuleOptions {
|
|
|
4836
4851
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-return-statement.md
|
|
4837
4852
|
*/
|
|
4838
4853
|
'test/no-test-return-statement'?: Linter.RuleEntry<[]>;
|
|
4854
|
+
/**
|
|
4855
|
+
* Disallow unnecessary async function wrapper for expected promises
|
|
4856
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-unneeded-async-expect-function.md
|
|
4857
|
+
*/
|
|
4858
|
+
'test/no-unneeded-async-expect-function'?: Linter.RuleEntry<[]>;
|
|
4839
4859
|
/**
|
|
4840
4860
|
* Enforce padding around `afterAll` blocks
|
|
4841
4861
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-after-all-blocks.md
|
|
@@ -4945,7 +4965,7 @@ interface RuleOptions {
|
|
|
4945
4965
|
* prefer dynamic import in mock
|
|
4946
4966
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-import-in-mock.md
|
|
4947
4967
|
*/
|
|
4948
|
-
'test/prefer-import-in-mock'?: Linter.RuleEntry<
|
|
4968
|
+
'test/prefer-import-in-mock'?: Linter.RuleEntry<TestPreferImportInMock>;
|
|
4949
4969
|
/**
|
|
4950
4970
|
* enforce importing Vitest globals
|
|
4951
4971
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-importing-vitest-globals.md
|
|
@@ -4961,6 +4981,11 @@ interface RuleOptions {
|
|
|
4961
4981
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-mock-promise-shorthand.md
|
|
4962
4982
|
*/
|
|
4963
4983
|
'test/prefer-mock-promise-shorthand'?: Linter.RuleEntry<[]>;
|
|
4984
|
+
/**
|
|
4985
|
+
* Prefer mock return shorthands
|
|
4986
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-mock-return-shorthand.md
|
|
4987
|
+
*/
|
|
4988
|
+
'test/prefer-mock-return-shorthand'?: Linter.RuleEntry<[]>;
|
|
4964
4989
|
/**
|
|
4965
4990
|
* enforce including a hint with external snapshots
|
|
4966
4991
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-snapshot-hint.md
|
|
@@ -5006,6 +5031,11 @@ interface RuleOptions {
|
|
|
5006
5031
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-contain.md
|
|
5007
5032
|
*/
|
|
5008
5033
|
'test/prefer-to-contain'?: Linter.RuleEntry<[]>;
|
|
5034
|
+
/**
|
|
5035
|
+
* Suggest using `toHaveBeenCalledTimes()`
|
|
5036
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-been-called-times.md
|
|
5037
|
+
*/
|
|
5038
|
+
'test/prefer-to-have-been-called-times'?: Linter.RuleEntry<[]>;
|
|
5009
5039
|
/**
|
|
5010
5040
|
* enforce using toHaveLength()
|
|
5011
5041
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-length.md
|
|
@@ -5031,11 +5061,6 @@ interface RuleOptions {
|
|
|
5031
5061
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
|
|
5032
5062
|
*/
|
|
5033
5063
|
'test/require-hook'?: Linter.RuleEntry<TestRequireHook>;
|
|
5034
|
-
/**
|
|
5035
|
-
* require usage of import in vi.mock()
|
|
5036
|
-
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-import-vi-mock.md
|
|
5037
|
-
*/
|
|
5038
|
-
'test/require-import-vi-mock'?: Linter.RuleEntry<[]>;
|
|
5039
5064
|
/**
|
|
5040
5065
|
* require local Test Context for concurrent snapshot tests
|
|
5041
5066
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-local-test-context-for-concurrent-snapshots.md
|
|
@@ -5655,6 +5680,11 @@ interface RuleOptions {
|
|
|
5655
5680
|
* @see https://typescript-eslint.io/rules/no-useless-constructor
|
|
5656
5681
|
*/
|
|
5657
5682
|
'ts/no-useless-constructor'?: Linter.RuleEntry<[]>;
|
|
5683
|
+
/**
|
|
5684
|
+
* Disallow default values that will never be used
|
|
5685
|
+
* @see https://typescript-eslint.io/rules/no-useless-default-assignment
|
|
5686
|
+
*/
|
|
5687
|
+
'ts/no-useless-default-assignment'?: Linter.RuleEntry<[]>;
|
|
5658
5688
|
/**
|
|
5659
5689
|
* Disallow empty exports that don't change anything in a module file
|
|
5660
5690
|
* @see https://typescript-eslint.io/rules/no-useless-empty-export
|
|
@@ -10844,27 +10874,25 @@ type PaddingLineBetweenStatements = {
|
|
|
10844
10874
|
// ----- perfectionist/sort-array-includes -----
|
|
10845
10875
|
type PerfectionistSortArrayIncludes = {
|
|
10846
10876
|
fallbackSort?: {
|
|
10877
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10847
10878
|
order?: ("asc" | "desc");
|
|
10848
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10849
10879
|
};
|
|
10880
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10850
10881
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10851
10882
|
ignoreCase?: boolean;
|
|
10852
10883
|
alphabet?: string;
|
|
10853
10884
|
locales?: (string | string[]);
|
|
10854
10885
|
order?: ("asc" | "desc");
|
|
10855
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10856
|
-
groupKind?: ("mixed" | "literals-first" | "spreads-first");
|
|
10857
10886
|
customGroups?: ({
|
|
10858
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10859
10887
|
fallbackSort?: {
|
|
10888
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10860
10889
|
order?: ("asc" | "desc");
|
|
10861
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10862
10890
|
};
|
|
10891
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10863
10892
|
groupName: string;
|
|
10893
|
+
newlinesInside?: ("ignore" | number);
|
|
10864
10894
|
order?: ("asc" | "desc");
|
|
10865
|
-
|
|
10866
|
-
anyOf?: {
|
|
10867
|
-
selector?: ("literal" | "spread");
|
|
10895
|
+
anyOf: {
|
|
10868
10896
|
elementNamePattern?: (({
|
|
10869
10897
|
pattern: string;
|
|
10870
10898
|
flags?: string;
|
|
@@ -10872,17 +10900,17 @@ type PerfectionistSortArrayIncludes = {
|
|
|
10872
10900
|
pattern: string;
|
|
10873
10901
|
flags?: string;
|
|
10874
10902
|
} | string));
|
|
10903
|
+
selector?: ("literal" | "spread");
|
|
10875
10904
|
}[];
|
|
10876
10905
|
} | {
|
|
10877
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10878
10906
|
fallbackSort?: {
|
|
10907
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10879
10908
|
order?: ("asc" | "desc");
|
|
10880
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10881
10909
|
};
|
|
10910
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10882
10911
|
groupName: string;
|
|
10912
|
+
newlinesInside?: ("ignore" | number);
|
|
10883
10913
|
order?: ("asc" | "desc");
|
|
10884
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10885
|
-
selector?: ("literal" | "spread");
|
|
10886
10914
|
elementNamePattern?: (({
|
|
10887
10915
|
pattern: string;
|
|
10888
10916
|
flags?: string;
|
|
@@ -10890,7 +10918,19 @@ type PerfectionistSortArrayIncludes = {
|
|
|
10890
10918
|
pattern: string;
|
|
10891
10919
|
flags?: string;
|
|
10892
10920
|
} | string));
|
|
10921
|
+
selector?: ("literal" | "spread");
|
|
10922
|
+
})[];
|
|
10923
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
10924
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
10925
|
+
newlinesBetween: ("ignore" | number);
|
|
10926
|
+
} | {
|
|
10927
|
+
group: (string | [string, ...(string)[]]);
|
|
10928
|
+
commentAbove?: string;
|
|
10929
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10930
|
+
newlinesInside?: ("ignore" | number);
|
|
10931
|
+
order?: ("asc" | "desc");
|
|
10893
10932
|
})[];
|
|
10933
|
+
newlinesBetween?: ("ignore" | number);
|
|
10894
10934
|
useConfigurationIf?: {
|
|
10895
10935
|
allNamesMatchPattern?: (({
|
|
10896
10936
|
pattern: string;
|
|
@@ -10923,51 +10963,46 @@ type PerfectionistSortArrayIncludes = {
|
|
|
10923
10963
|
} | string)));
|
|
10924
10964
|
});
|
|
10925
10965
|
partitionByNewLine?: boolean;
|
|
10926
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10927
|
-
groups?: (string | string[] | {
|
|
10928
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10929
|
-
commentAbove?: string;
|
|
10930
|
-
})[];
|
|
10931
10966
|
}[];
|
|
10932
10967
|
// ----- perfectionist/sort-classes -----
|
|
10933
10968
|
type PerfectionistSortClasses = [] | [{
|
|
10934
10969
|
fallbackSort?: {
|
|
10970
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10935
10971
|
order?: ("asc" | "desc");
|
|
10936
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10937
10972
|
};
|
|
10973
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10938
10974
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10939
10975
|
ignoreCase?: boolean;
|
|
10940
10976
|
alphabet?: string;
|
|
10941
10977
|
locales?: (string | string[]);
|
|
10942
10978
|
order?: ("asc" | "desc");
|
|
10943
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10944
10979
|
customGroups?: ({
|
|
10945
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10946
10980
|
fallbackSort?: {
|
|
10981
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10947
10982
|
order?: ("asc" | "desc");
|
|
10948
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10949
10983
|
};
|
|
10984
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10950
10985
|
groupName: string;
|
|
10986
|
+
newlinesInside?: ("ignore" | number);
|
|
10951
10987
|
order?: ("asc" | "desc");
|
|
10952
|
-
|
|
10953
|
-
|
|
10954
|
-
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
10955
|
-
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
10956
|
-
decoratorNamePattern?: (({
|
|
10988
|
+
anyOf: {
|
|
10989
|
+
elementNamePattern?: (({
|
|
10957
10990
|
pattern: string;
|
|
10958
10991
|
flags?: string;
|
|
10959
10992
|
} | string)[] | ({
|
|
10960
10993
|
pattern: string;
|
|
10961
10994
|
flags?: string;
|
|
10962
10995
|
} | string));
|
|
10963
|
-
|
|
10996
|
+
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
10997
|
+
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
10998
|
+
decoratorNamePattern?: (({
|
|
10964
10999
|
pattern: string;
|
|
10965
11000
|
flags?: string;
|
|
10966
11001
|
} | string)[] | ({
|
|
10967
11002
|
pattern: string;
|
|
10968
11003
|
flags?: string;
|
|
10969
11004
|
} | string));
|
|
10970
|
-
|
|
11005
|
+
elementValuePattern?: (({
|
|
10971
11006
|
pattern: string;
|
|
10972
11007
|
flags?: string;
|
|
10973
11008
|
} | string)[] | ({
|
|
@@ -10976,31 +11011,31 @@ type PerfectionistSortClasses = [] | [{
|
|
|
10976
11011
|
} | string));
|
|
10977
11012
|
}[];
|
|
10978
11013
|
} | {
|
|
10979
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10980
11014
|
fallbackSort?: {
|
|
11015
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10981
11016
|
order?: ("asc" | "desc");
|
|
10982
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10983
11017
|
};
|
|
11018
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10984
11019
|
groupName: string;
|
|
11020
|
+
newlinesInside?: ("ignore" | number);
|
|
10985
11021
|
order?: ("asc" | "desc");
|
|
10986
|
-
|
|
10987
|
-
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
10988
|
-
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
10989
|
-
decoratorNamePattern?: (({
|
|
11022
|
+
elementNamePattern?: (({
|
|
10990
11023
|
pattern: string;
|
|
10991
11024
|
flags?: string;
|
|
10992
11025
|
} | string)[] | ({
|
|
10993
11026
|
pattern: string;
|
|
10994
11027
|
flags?: string;
|
|
10995
11028
|
} | string));
|
|
10996
|
-
|
|
11029
|
+
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
11030
|
+
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
11031
|
+
decoratorNamePattern?: (({
|
|
10997
11032
|
pattern: string;
|
|
10998
11033
|
flags?: string;
|
|
10999
11034
|
} | string)[] | ({
|
|
11000
11035
|
pattern: string;
|
|
11001
11036
|
flags?: string;
|
|
11002
11037
|
} | string));
|
|
11003
|
-
|
|
11038
|
+
elementValuePattern?: (({
|
|
11004
11039
|
pattern: string;
|
|
11005
11040
|
flags?: string;
|
|
11006
11041
|
} | string)[] | ({
|
|
@@ -11008,6 +11043,17 @@ type PerfectionistSortClasses = [] | [{
|
|
|
11008
11043
|
flags?: string;
|
|
11009
11044
|
} | string));
|
|
11010
11045
|
})[];
|
|
11046
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11047
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11048
|
+
newlinesBetween: ("ignore" | number);
|
|
11049
|
+
} | {
|
|
11050
|
+
group: (string | [string, ...(string)[]]);
|
|
11051
|
+
commentAbove?: string;
|
|
11052
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11053
|
+
newlinesInside?: ("ignore" | number);
|
|
11054
|
+
order?: ("asc" | "desc");
|
|
11055
|
+
})[];
|
|
11056
|
+
newlinesBetween?: ("ignore" | number);
|
|
11011
11057
|
ignoreCallbackDependenciesPatterns?: (({
|
|
11012
11058
|
pattern: string;
|
|
11013
11059
|
flags?: string;
|
|
@@ -11038,24 +11084,65 @@ type PerfectionistSortClasses = [] | [{
|
|
|
11038
11084
|
} | string)));
|
|
11039
11085
|
});
|
|
11040
11086
|
partitionByNewLine?: boolean;
|
|
11041
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11042
|
-
groups?: (string | string[] | {
|
|
11043
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11044
|
-
commentAbove?: string;
|
|
11045
|
-
})[];
|
|
11046
11087
|
}];
|
|
11047
11088
|
// ----- perfectionist/sort-decorators -----
|
|
11048
|
-
type PerfectionistSortDecorators =
|
|
11089
|
+
type PerfectionistSortDecorators = {
|
|
11049
11090
|
fallbackSort?: {
|
|
11091
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11050
11092
|
order?: ("asc" | "desc");
|
|
11051
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11052
11093
|
};
|
|
11094
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11053
11095
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11054
11096
|
ignoreCase?: boolean;
|
|
11055
11097
|
alphabet?: string;
|
|
11056
11098
|
locales?: (string | string[]);
|
|
11057
11099
|
order?: ("asc" | "desc");
|
|
11058
|
-
|
|
11100
|
+
customGroups?: ({
|
|
11101
|
+
fallbackSort?: {
|
|
11102
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11103
|
+
order?: ("asc" | "desc");
|
|
11104
|
+
};
|
|
11105
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11106
|
+
groupName: string;
|
|
11107
|
+
newlinesInside?: ("ignore" | number);
|
|
11108
|
+
order?: ("asc" | "desc");
|
|
11109
|
+
anyOf: {
|
|
11110
|
+
elementNamePattern?: (({
|
|
11111
|
+
pattern: string;
|
|
11112
|
+
flags?: string;
|
|
11113
|
+
} | string)[] | ({
|
|
11114
|
+
pattern: string;
|
|
11115
|
+
flags?: string;
|
|
11116
|
+
} | string));
|
|
11117
|
+
}[];
|
|
11118
|
+
} | {
|
|
11119
|
+
fallbackSort?: {
|
|
11120
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11121
|
+
order?: ("asc" | "desc");
|
|
11122
|
+
};
|
|
11123
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11124
|
+
groupName: string;
|
|
11125
|
+
newlinesInside?: ("ignore" | number);
|
|
11126
|
+
order?: ("asc" | "desc");
|
|
11127
|
+
elementNamePattern?: (({
|
|
11128
|
+
pattern: string;
|
|
11129
|
+
flags?: string;
|
|
11130
|
+
} | string)[] | ({
|
|
11131
|
+
pattern: string;
|
|
11132
|
+
flags?: string;
|
|
11133
|
+
} | string));
|
|
11134
|
+
})[];
|
|
11135
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11136
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11137
|
+
newlinesBetween: ("ignore" | number);
|
|
11138
|
+
} | {
|
|
11139
|
+
group: (string | [string, ...(string)[]]);
|
|
11140
|
+
commentAbove?: string;
|
|
11141
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11142
|
+
newlinesInside?: ("ignore" | number);
|
|
11143
|
+
order?: ("asc" | "desc");
|
|
11144
|
+
})[];
|
|
11145
|
+
newlinesBetween?: ("ignore" | number);
|
|
11059
11146
|
sortOnParameters?: boolean;
|
|
11060
11147
|
sortOnProperties?: boolean;
|
|
11061
11148
|
sortOnAccessors?: boolean;
|
|
@@ -11083,46 +11170,38 @@ type PerfectionistSortDecorators = [] | [{
|
|
|
11083
11170
|
flags?: string;
|
|
11084
11171
|
} | string)));
|
|
11085
11172
|
});
|
|
11086
|
-
|
|
11087
|
-
|
|
11088
|
-
};
|
|
11089
|
-
groups?: (string | string[] | {
|
|
11090
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11091
|
-
commentAbove?: string;
|
|
11092
|
-
})[];
|
|
11093
|
-
}];
|
|
11173
|
+
partitionByNewLine?: boolean;
|
|
11174
|
+
}[];
|
|
11094
11175
|
// ----- perfectionist/sort-enums -----
|
|
11095
11176
|
type PerfectionistSortEnums = [] | [{
|
|
11096
11177
|
fallbackSort?: {
|
|
11178
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11097
11179
|
order?: ("asc" | "desc");
|
|
11098
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11099
11180
|
};
|
|
11181
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11100
11182
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11101
11183
|
ignoreCase?: boolean;
|
|
11102
11184
|
alphabet?: string;
|
|
11103
11185
|
locales?: (string | string[]);
|
|
11104
11186
|
order?: ("asc" | "desc");
|
|
11105
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11106
11187
|
customGroups?: ({
|
|
11107
|
-
[k: string]: (string | string[]) | undefined;
|
|
11108
|
-
} | ({
|
|
11109
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11110
11188
|
fallbackSort?: {
|
|
11189
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11111
11190
|
order?: ("asc" | "desc");
|
|
11112
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11113
11191
|
};
|
|
11192
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11114
11193
|
groupName: string;
|
|
11194
|
+
newlinesInside?: ("ignore" | number);
|
|
11115
11195
|
order?: ("asc" | "desc");
|
|
11116
|
-
|
|
11117
|
-
|
|
11118
|
-
elementValuePattern?: (({
|
|
11196
|
+
anyOf: {
|
|
11197
|
+
elementNamePattern?: (({
|
|
11119
11198
|
pattern: string;
|
|
11120
11199
|
flags?: string;
|
|
11121
11200
|
} | string)[] | ({
|
|
11122
11201
|
pattern: string;
|
|
11123
11202
|
flags?: string;
|
|
11124
11203
|
} | string));
|
|
11125
|
-
|
|
11204
|
+
elementValuePattern?: (({
|
|
11126
11205
|
pattern: string;
|
|
11127
11206
|
flags?: string;
|
|
11128
11207
|
} | string)[] | ({
|
|
@@ -11131,31 +11210,41 @@ type PerfectionistSortEnums = [] | [{
|
|
|
11131
11210
|
} | string));
|
|
11132
11211
|
}[];
|
|
11133
11212
|
} | {
|
|
11134
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11135
11213
|
fallbackSort?: {
|
|
11214
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11136
11215
|
order?: ("asc" | "desc");
|
|
11137
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11138
11216
|
};
|
|
11217
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11139
11218
|
groupName: string;
|
|
11219
|
+
newlinesInside?: ("ignore" | number);
|
|
11140
11220
|
order?: ("asc" | "desc");
|
|
11141
|
-
|
|
11142
|
-
elementValuePattern?: (({
|
|
11221
|
+
elementNamePattern?: (({
|
|
11143
11222
|
pattern: string;
|
|
11144
11223
|
flags?: string;
|
|
11145
11224
|
} | string)[] | ({
|
|
11146
11225
|
pattern: string;
|
|
11147
11226
|
flags?: string;
|
|
11148
11227
|
} | string));
|
|
11149
|
-
|
|
11228
|
+
elementValuePattern?: (({
|
|
11150
11229
|
pattern: string;
|
|
11151
11230
|
flags?: string;
|
|
11152
11231
|
} | string)[] | ({
|
|
11153
11232
|
pattern: string;
|
|
11154
11233
|
flags?: string;
|
|
11155
11234
|
} | string));
|
|
11156
|
-
})[]
|
|
11157
|
-
|
|
11158
|
-
|
|
11235
|
+
})[];
|
|
11236
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11237
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11238
|
+
newlinesBetween: ("ignore" | number);
|
|
11239
|
+
} | {
|
|
11240
|
+
group: (string | [string, ...(string)[]]);
|
|
11241
|
+
commentAbove?: string;
|
|
11242
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11243
|
+
newlinesInside?: ("ignore" | number);
|
|
11244
|
+
order?: ("asc" | "desc");
|
|
11245
|
+
})[];
|
|
11246
|
+
newlinesBetween?: ("ignore" | number);
|
|
11247
|
+
sortByValue?: ("always" | "ifNumericEnum" | "never");
|
|
11159
11248
|
partitionByComment?: (boolean | (({
|
|
11160
11249
|
pattern: string;
|
|
11161
11250
|
flags?: string;
|
|
@@ -11179,37 +11268,29 @@ type PerfectionistSortEnums = [] | [{
|
|
|
11179
11268
|
} | string)));
|
|
11180
11269
|
});
|
|
11181
11270
|
partitionByNewLine?: boolean;
|
|
11182
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11183
|
-
groups?: (string | string[] | {
|
|
11184
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11185
|
-
commentAbove?: string;
|
|
11186
|
-
})[];
|
|
11187
11271
|
}];
|
|
11188
|
-
// ----- perfectionist/sort-
|
|
11189
|
-
type
|
|
11272
|
+
// ----- perfectionist/sort-export-attributes -----
|
|
11273
|
+
type PerfectionistSortExportAttributes = {
|
|
11190
11274
|
fallbackSort?: {
|
|
11275
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11191
11276
|
order?: ("asc" | "desc");
|
|
11192
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11193
11277
|
};
|
|
11278
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11194
11279
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11195
11280
|
ignoreCase?: boolean;
|
|
11196
11281
|
alphabet?: string;
|
|
11197
11282
|
locales?: (string | string[]);
|
|
11198
11283
|
order?: ("asc" | "desc");
|
|
11199
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11200
|
-
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
11201
11284
|
customGroups?: ({
|
|
11202
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11203
11285
|
fallbackSort?: {
|
|
11286
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11204
11287
|
order?: ("asc" | "desc");
|
|
11205
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11206
11288
|
};
|
|
11289
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11207
11290
|
groupName: string;
|
|
11291
|
+
newlinesInside?: ("ignore" | number);
|
|
11208
11292
|
order?: ("asc" | "desc");
|
|
11209
|
-
|
|
11210
|
-
anyOf?: {
|
|
11211
|
-
modifiers?: ("value" | "type")[];
|
|
11212
|
-
selector?: "export";
|
|
11293
|
+
anyOf: {
|
|
11213
11294
|
elementNamePattern?: (({
|
|
11214
11295
|
pattern: string;
|
|
11215
11296
|
flags?: string;
|
|
@@ -11219,16 +11300,14 @@ type PerfectionistSortExports = {
|
|
|
11219
11300
|
} | string));
|
|
11220
11301
|
}[];
|
|
11221
11302
|
} | {
|
|
11222
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11223
11303
|
fallbackSort?: {
|
|
11304
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11224
11305
|
order?: ("asc" | "desc");
|
|
11225
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11226
11306
|
};
|
|
11307
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11227
11308
|
groupName: string;
|
|
11309
|
+
newlinesInside?: ("ignore" | number);
|
|
11228
11310
|
order?: ("asc" | "desc");
|
|
11229
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11230
|
-
modifiers?: ("value" | "type")[];
|
|
11231
|
-
selector?: "export";
|
|
11232
11311
|
elementNamePattern?: (({
|
|
11233
11312
|
pattern: string;
|
|
11234
11313
|
flags?: string;
|
|
@@ -11237,6 +11316,17 @@ type PerfectionistSortExports = {
|
|
|
11237
11316
|
flags?: string;
|
|
11238
11317
|
} | string));
|
|
11239
11318
|
})[];
|
|
11319
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11320
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11321
|
+
newlinesBetween: ("ignore" | number);
|
|
11322
|
+
} | {
|
|
11323
|
+
group: (string | [string, ...(string)[]]);
|
|
11324
|
+
commentAbove?: string;
|
|
11325
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11326
|
+
newlinesInside?: ("ignore" | number);
|
|
11327
|
+
order?: ("asc" | "desc");
|
|
11328
|
+
})[];
|
|
11329
|
+
newlinesBetween?: ("ignore" | number);
|
|
11240
11330
|
partitionByComment?: (boolean | (({
|
|
11241
11331
|
pattern: string;
|
|
11242
11332
|
flags?: string;
|
|
@@ -11260,70 +11350,29 @@ type PerfectionistSortExports = {
|
|
|
11260
11350
|
} | string)));
|
|
11261
11351
|
});
|
|
11262
11352
|
partitionByNewLine?: boolean;
|
|
11263
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11264
|
-
groups?: (string | string[] | {
|
|
11265
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11266
|
-
commentAbove?: string;
|
|
11267
|
-
})[];
|
|
11268
11353
|
}[];
|
|
11269
|
-
// ----- perfectionist/sort-
|
|
11270
|
-
type
|
|
11354
|
+
// ----- perfectionist/sort-exports -----
|
|
11355
|
+
type PerfectionistSortExports = {
|
|
11271
11356
|
fallbackSort?: {
|
|
11357
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11272
11358
|
order?: ("asc" | "desc");
|
|
11273
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11274
11359
|
};
|
|
11275
|
-
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11276
|
-
ignoreCase?: boolean;
|
|
11277
|
-
alphabet?: string;
|
|
11278
|
-
locales?: (string | string[]);
|
|
11279
|
-
order?: ("asc" | "desc");
|
|
11280
11360
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11281
|
-
customGroups?: {
|
|
11282
|
-
[k: string]: (string | string[]) | undefined;
|
|
11283
|
-
};
|
|
11284
|
-
groups?: (string | string[] | {
|
|
11285
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11286
|
-
commentAbove?: string;
|
|
11287
|
-
})[];
|
|
11288
|
-
}];
|
|
11289
|
-
// ----- perfectionist/sort-imports -----
|
|
11290
|
-
type PerfectionistSortImports = {
|
|
11291
|
-
fallbackSort?: {
|
|
11292
|
-
order?: ("asc" | "desc");
|
|
11293
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11294
|
-
};
|
|
11295
11361
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11296
11362
|
ignoreCase?: boolean;
|
|
11297
11363
|
alphabet?: string;
|
|
11298
11364
|
locales?: (string | string[]);
|
|
11299
11365
|
order?: ("asc" | "desc");
|
|
11300
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11301
11366
|
customGroups?: ({
|
|
11302
|
-
value?: {
|
|
11303
|
-
[k: string]: (string | string[]) | undefined;
|
|
11304
|
-
};
|
|
11305
|
-
type?: {
|
|
11306
|
-
[k: string]: (string | string[]) | undefined;
|
|
11307
|
-
};
|
|
11308
|
-
} | ({
|
|
11309
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11310
11367
|
fallbackSort?: {
|
|
11368
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11311
11369
|
order?: ("asc" | "desc");
|
|
11312
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11313
11370
|
};
|
|
11371
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11314
11372
|
groupName: string;
|
|
11373
|
+
newlinesInside?: ("ignore" | number);
|
|
11315
11374
|
order?: ("asc" | "desc");
|
|
11316
|
-
|
|
11317
|
-
anyOf?: {
|
|
11318
|
-
modifiers?: ("default" | "named" | "require" | "side-effect" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
11319
|
-
selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
|
|
11320
|
-
elementValuePattern?: (({
|
|
11321
|
-
pattern: string;
|
|
11322
|
-
flags?: string;
|
|
11323
|
-
} | string)[] | ({
|
|
11324
|
-
pattern: string;
|
|
11325
|
-
flags?: string;
|
|
11326
|
-
} | string));
|
|
11375
|
+
anyOf: {
|
|
11327
11376
|
elementNamePattern?: (({
|
|
11328
11377
|
pattern: string;
|
|
11329
11378
|
flags?: string;
|
|
@@ -11331,25 +11380,18 @@ type PerfectionistSortImports = {
|
|
|
11331
11380
|
pattern: string;
|
|
11332
11381
|
flags?: string;
|
|
11333
11382
|
} | string));
|
|
11383
|
+
modifiers?: ("value" | "type" | "named" | "wildcard" | "multiline" | "singleline")[];
|
|
11384
|
+
selector?: "export";
|
|
11334
11385
|
}[];
|
|
11335
11386
|
} | {
|
|
11336
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11337
11387
|
fallbackSort?: {
|
|
11388
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11338
11389
|
order?: ("asc" | "desc");
|
|
11339
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11340
11390
|
};
|
|
11391
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11341
11392
|
groupName: string;
|
|
11393
|
+
newlinesInside?: ("ignore" | number);
|
|
11342
11394
|
order?: ("asc" | "desc");
|
|
11343
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11344
|
-
modifiers?: ("default" | "named" | "require" | "side-effect" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
11345
|
-
selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
|
|
11346
|
-
elementValuePattern?: (({
|
|
11347
|
-
pattern: string;
|
|
11348
|
-
flags?: string;
|
|
11349
|
-
} | string)[] | ({
|
|
11350
|
-
pattern: string;
|
|
11351
|
-
flags?: string;
|
|
11352
|
-
} | string));
|
|
11353
11395
|
elementNamePattern?: (({
|
|
11354
11396
|
pattern: string;
|
|
11355
11397
|
flags?: string;
|
|
@@ -11357,15 +11399,20 @@ type PerfectionistSortImports = {
|
|
|
11357
11399
|
pattern: string;
|
|
11358
11400
|
flags?: string;
|
|
11359
11401
|
} | string));
|
|
11360
|
-
|
|
11361
|
-
|
|
11362
|
-
|
|
11363
|
-
|
|
11364
|
-
|
|
11365
|
-
|
|
11366
|
-
|
|
11367
|
-
|
|
11368
|
-
|
|
11402
|
+
modifiers?: ("value" | "type" | "named" | "wildcard" | "multiline" | "singleline")[];
|
|
11403
|
+
selector?: "export";
|
|
11404
|
+
})[];
|
|
11405
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11406
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11407
|
+
newlinesBetween: ("ignore" | number);
|
|
11408
|
+
} | {
|
|
11409
|
+
group: (string | [string, ...(string)[]]);
|
|
11410
|
+
commentAbove?: string;
|
|
11411
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11412
|
+
newlinesInside?: ("ignore" | number);
|
|
11413
|
+
order?: ("asc" | "desc");
|
|
11414
|
+
})[];
|
|
11415
|
+
newlinesBetween?: ("ignore" | number);
|
|
11369
11416
|
partitionByComment?: (boolean | (({
|
|
11370
11417
|
pattern: string;
|
|
11371
11418
|
flags?: string;
|
|
@@ -11389,54 +11436,29 @@ type PerfectionistSortImports = {
|
|
|
11389
11436
|
} | string)));
|
|
11390
11437
|
});
|
|
11391
11438
|
partitionByNewLine?: boolean;
|
|
11392
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11393
|
-
internalPattern?: (({
|
|
11394
|
-
pattern: string;
|
|
11395
|
-
flags?: string;
|
|
11396
|
-
} | string)[] | ({
|
|
11397
|
-
pattern: string;
|
|
11398
|
-
flags?: string;
|
|
11399
|
-
} | string));
|
|
11400
|
-
groups?: (string | string[] | {
|
|
11401
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11402
|
-
commentAbove?: string;
|
|
11403
|
-
})[];
|
|
11404
11439
|
}[];
|
|
11405
|
-
// ----- perfectionist/sort-
|
|
11406
|
-
type
|
|
11440
|
+
// ----- perfectionist/sort-heritage-clauses -----
|
|
11441
|
+
type PerfectionistSortHeritageClauses = {
|
|
11407
11442
|
fallbackSort?: {
|
|
11443
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11408
11444
|
order?: ("asc" | "desc");
|
|
11409
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11410
|
-
sortBy?: ("name" | "value");
|
|
11411
11445
|
};
|
|
11446
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11412
11447
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11413
11448
|
ignoreCase?: boolean;
|
|
11414
11449
|
alphabet?: string;
|
|
11415
11450
|
locales?: (string | string[]);
|
|
11416
11451
|
order?: ("asc" | "desc");
|
|
11417
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11418
11452
|
customGroups?: ({
|
|
11419
|
-
[k: string]: (string | string[]) | undefined;
|
|
11420
|
-
} | ({
|
|
11421
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11422
11453
|
fallbackSort?: {
|
|
11454
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11423
11455
|
order?: ("asc" | "desc");
|
|
11424
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11425
|
-
sortBy?: ("name" | "value");
|
|
11426
11456
|
};
|
|
11457
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11427
11458
|
groupName: string;
|
|
11459
|
+
newlinesInside?: ("ignore" | number);
|
|
11428
11460
|
order?: ("asc" | "desc");
|
|
11429
|
-
|
|
11430
|
-
anyOf?: {
|
|
11431
|
-
modifiers?: ("optional" | "required" | "multiline")[];
|
|
11432
|
-
selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
|
|
11433
|
-
elementValuePattern?: (({
|
|
11434
|
-
pattern: string;
|
|
11435
|
-
flags?: string;
|
|
11436
|
-
} | string)[] | ({
|
|
11437
|
-
pattern: string;
|
|
11438
|
-
flags?: string;
|
|
11439
|
-
} | string));
|
|
11461
|
+
anyOf: {
|
|
11440
11462
|
elementNamePattern?: (({
|
|
11441
11463
|
pattern: string;
|
|
11442
11464
|
flags?: string;
|
|
@@ -11444,27 +11466,16 @@ type PerfectionistSortInterfaces = {
|
|
|
11444
11466
|
pattern: string;
|
|
11445
11467
|
flags?: string;
|
|
11446
11468
|
} | string));
|
|
11447
|
-
sortBy?: ("name" | "value");
|
|
11448
11469
|
}[];
|
|
11449
11470
|
} | {
|
|
11450
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11451
11471
|
fallbackSort?: {
|
|
11472
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11452
11473
|
order?: ("asc" | "desc");
|
|
11453
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11454
|
-
sortBy?: ("name" | "value");
|
|
11455
11474
|
};
|
|
11475
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11456
11476
|
groupName: string;
|
|
11477
|
+
newlinesInside?: ("ignore" | number);
|
|
11457
11478
|
order?: ("asc" | "desc");
|
|
11458
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11459
|
-
modifiers?: ("optional" | "required" | "multiline")[];
|
|
11460
|
-
selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
|
|
11461
|
-
elementValuePattern?: (({
|
|
11462
|
-
pattern: string;
|
|
11463
|
-
flags?: string;
|
|
11464
|
-
} | string)[] | ({
|
|
11465
|
-
pattern: string;
|
|
11466
|
-
flags?: string;
|
|
11467
|
-
} | string));
|
|
11468
11479
|
elementNamePattern?: (({
|
|
11469
11480
|
pattern: string;
|
|
11470
11481
|
flags?: string;
|
|
@@ -11472,25 +11483,193 @@ type PerfectionistSortInterfaces = {
|
|
|
11472
11483
|
pattern: string;
|
|
11473
11484
|
flags?: string;
|
|
11474
11485
|
} | string));
|
|
11475
|
-
|
|
11476
|
-
|
|
11477
|
-
|
|
11478
|
-
|
|
11479
|
-
|
|
11486
|
+
})[];
|
|
11487
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11488
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11489
|
+
newlinesBetween: ("ignore" | number);
|
|
11490
|
+
} | {
|
|
11491
|
+
group: (string | [string, ...(string)[]]);
|
|
11492
|
+
commentAbove?: string;
|
|
11493
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11494
|
+
newlinesInside?: ("ignore" | number);
|
|
11495
|
+
order?: ("asc" | "desc");
|
|
11496
|
+
})[];
|
|
11497
|
+
newlinesBetween?: ("ignore" | number);
|
|
11498
|
+
partitionByNewLine?: boolean;
|
|
11499
|
+
partitionByComment?: (boolean | (({
|
|
11500
|
+
pattern: string;
|
|
11501
|
+
flags?: string;
|
|
11502
|
+
} | string)[] | ({
|
|
11503
|
+
pattern: string;
|
|
11504
|
+
flags?: string;
|
|
11505
|
+
} | string)) | {
|
|
11506
|
+
block?: (boolean | (({
|
|
11507
|
+
pattern: string;
|
|
11508
|
+
flags?: string;
|
|
11509
|
+
} | string)[] | ({
|
|
11510
|
+
pattern: string;
|
|
11511
|
+
flags?: string;
|
|
11512
|
+
} | string)));
|
|
11513
|
+
line?: (boolean | (({
|
|
11514
|
+
pattern: string;
|
|
11515
|
+
flags?: string;
|
|
11516
|
+
} | string)[] | ({
|
|
11517
|
+
pattern: string;
|
|
11518
|
+
flags?: string;
|
|
11519
|
+
} | string)));
|
|
11520
|
+
});
|
|
11521
|
+
}[];
|
|
11522
|
+
// ----- perfectionist/sort-import-attributes -----
|
|
11523
|
+
type PerfectionistSortImportAttributes = {
|
|
11524
|
+
fallbackSort?: {
|
|
11525
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11526
|
+
order?: ("asc" | "desc");
|
|
11527
|
+
};
|
|
11528
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11529
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11530
|
+
ignoreCase?: boolean;
|
|
11531
|
+
alphabet?: string;
|
|
11532
|
+
locales?: (string | string[]);
|
|
11533
|
+
order?: ("asc" | "desc");
|
|
11534
|
+
customGroups?: ({
|
|
11535
|
+
fallbackSort?: {
|
|
11536
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11537
|
+
order?: ("asc" | "desc");
|
|
11538
|
+
};
|
|
11539
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11540
|
+
groupName: string;
|
|
11541
|
+
newlinesInside?: ("ignore" | number);
|
|
11542
|
+
order?: ("asc" | "desc");
|
|
11543
|
+
anyOf: {
|
|
11544
|
+
elementNamePattern?: (({
|
|
11545
|
+
pattern: string;
|
|
11546
|
+
flags?: string;
|
|
11547
|
+
} | string)[] | ({
|
|
11548
|
+
pattern: string;
|
|
11549
|
+
flags?: string;
|
|
11550
|
+
} | string));
|
|
11551
|
+
}[];
|
|
11552
|
+
} | {
|
|
11553
|
+
fallbackSort?: {
|
|
11554
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11555
|
+
order?: ("asc" | "desc");
|
|
11556
|
+
};
|
|
11557
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11558
|
+
groupName: string;
|
|
11559
|
+
newlinesInside?: ("ignore" | number);
|
|
11560
|
+
order?: ("asc" | "desc");
|
|
11561
|
+
elementNamePattern?: (({
|
|
11480
11562
|
pattern: string;
|
|
11481
11563
|
flags?: string;
|
|
11482
11564
|
} | string)[] | ({
|
|
11483
11565
|
pattern: string;
|
|
11484
11566
|
flags?: string;
|
|
11485
11567
|
} | string));
|
|
11486
|
-
|
|
11568
|
+
})[];
|
|
11569
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11570
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11571
|
+
newlinesBetween: ("ignore" | number);
|
|
11572
|
+
} | {
|
|
11573
|
+
group: (string | [string, ...(string)[]]);
|
|
11574
|
+
commentAbove?: string;
|
|
11575
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11576
|
+
newlinesInside?: ("ignore" | number);
|
|
11577
|
+
order?: ("asc" | "desc");
|
|
11578
|
+
})[];
|
|
11579
|
+
newlinesBetween?: ("ignore" | number);
|
|
11580
|
+
partitionByComment?: (boolean | (({
|
|
11581
|
+
pattern: string;
|
|
11582
|
+
flags?: string;
|
|
11583
|
+
} | string)[] | ({
|
|
11584
|
+
pattern: string;
|
|
11585
|
+
flags?: string;
|
|
11586
|
+
} | string)) | {
|
|
11587
|
+
block?: (boolean | (({
|
|
11588
|
+
pattern: string;
|
|
11589
|
+
flags?: string;
|
|
11590
|
+
} | string)[] | ({
|
|
11591
|
+
pattern: string;
|
|
11592
|
+
flags?: string;
|
|
11593
|
+
} | string)));
|
|
11594
|
+
line?: (boolean | (({
|
|
11595
|
+
pattern: string;
|
|
11596
|
+
flags?: string;
|
|
11597
|
+
} | string)[] | ({
|
|
11598
|
+
pattern: string;
|
|
11599
|
+
flags?: string;
|
|
11600
|
+
} | string)));
|
|
11601
|
+
});
|
|
11602
|
+
partitionByNewLine?: boolean;
|
|
11603
|
+
}[];
|
|
11604
|
+
// ----- perfectionist/sort-imports -----
|
|
11605
|
+
type PerfectionistSortImports = {
|
|
11606
|
+
fallbackSort?: {
|
|
11607
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
11608
|
+
order?: ("asc" | "desc");
|
|
11609
|
+
};
|
|
11610
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
11611
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11612
|
+
ignoreCase?: boolean;
|
|
11613
|
+
alphabet?: string;
|
|
11614
|
+
locales?: (string | string[]);
|
|
11615
|
+
order?: ("asc" | "desc");
|
|
11616
|
+
customGroups?: ({
|
|
11617
|
+
fallbackSort?: {
|
|
11618
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
11619
|
+
order?: ("asc" | "desc");
|
|
11620
|
+
};
|
|
11621
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
11622
|
+
groupName: string;
|
|
11623
|
+
newlinesInside?: ("ignore" | number);
|
|
11624
|
+
order?: ("asc" | "desc");
|
|
11625
|
+
anyOf: {
|
|
11626
|
+
elementNamePattern?: (({
|
|
11627
|
+
pattern: string;
|
|
11628
|
+
flags?: string;
|
|
11629
|
+
} | string)[] | ({
|
|
11630
|
+
pattern: string;
|
|
11631
|
+
flags?: string;
|
|
11632
|
+
} | string));
|
|
11633
|
+
modifiers?: ("default" | "multiline" | "named" | "require" | "side-effect" | "singleline" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
11634
|
+
selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
|
|
11635
|
+
}[];
|
|
11636
|
+
} | {
|
|
11637
|
+
fallbackSort?: {
|
|
11638
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
11639
|
+
order?: ("asc" | "desc");
|
|
11640
|
+
};
|
|
11641
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
11642
|
+
groupName: string;
|
|
11643
|
+
newlinesInside?: ("ignore" | number);
|
|
11644
|
+
order?: ("asc" | "desc");
|
|
11645
|
+
elementNamePattern?: (({
|
|
11487
11646
|
pattern: string;
|
|
11488
11647
|
flags?: string;
|
|
11489
11648
|
} | string)[] | ({
|
|
11490
11649
|
pattern: string;
|
|
11491
11650
|
flags?: string;
|
|
11492
11651
|
} | string));
|
|
11652
|
+
modifiers?: ("default" | "multiline" | "named" | "require" | "side-effect" | "singleline" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
11653
|
+
selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
|
|
11654
|
+
})[];
|
|
11655
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11656
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11657
|
+
newlinesBetween: ("ignore" | number);
|
|
11658
|
+
} | {
|
|
11659
|
+
group: (string | [string, ...(string)[]]);
|
|
11660
|
+
commentAbove?: string;
|
|
11661
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
11662
|
+
newlinesInside?: ("ignore" | number);
|
|
11663
|
+
order?: ("asc" | "desc");
|
|
11664
|
+
})[];
|
|
11665
|
+
newlinesBetween?: ("ignore" | number);
|
|
11666
|
+
tsconfig?: {
|
|
11667
|
+
rootDir: string;
|
|
11668
|
+
filename?: string;
|
|
11493
11669
|
};
|
|
11670
|
+
maxLineLength?: number;
|
|
11671
|
+
sortSideEffects?: boolean;
|
|
11672
|
+
environment?: ("node" | "bun");
|
|
11494
11673
|
partitionByComment?: (boolean | (({
|
|
11495
11674
|
pattern: string;
|
|
11496
11675
|
flags?: string;
|
|
@@ -11514,43 +11693,170 @@ type PerfectionistSortInterfaces = {
|
|
|
11514
11693
|
} | string)));
|
|
11515
11694
|
});
|
|
11516
11695
|
partitionByNewLine?: boolean;
|
|
11517
|
-
|
|
11518
|
-
ignorePattern?: (({
|
|
11696
|
+
internalPattern?: (({
|
|
11519
11697
|
pattern: string;
|
|
11520
11698
|
flags?: string;
|
|
11521
11699
|
} | string)[] | ({
|
|
11522
11700
|
pattern: string;
|
|
11523
11701
|
flags?: string;
|
|
11524
11702
|
} | string));
|
|
11525
|
-
|
|
11526
|
-
|
|
11527
|
-
|
|
11703
|
+
}[];
|
|
11704
|
+
// ----- perfectionist/sort-interfaces -----
|
|
11705
|
+
type PerfectionistSortInterfaces = {
|
|
11706
|
+
fallbackSort?: {
|
|
11707
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11708
|
+
order?: ("asc" | "desc");
|
|
11709
|
+
sortBy?: ("name" | "value");
|
|
11710
|
+
};
|
|
11711
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11712
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11713
|
+
ignoreCase?: boolean;
|
|
11714
|
+
alphabet?: string;
|
|
11715
|
+
locales?: (string | string[]);
|
|
11716
|
+
order?: ("asc" | "desc");
|
|
11717
|
+
customGroups?: ({
|
|
11718
|
+
fallbackSort?: {
|
|
11719
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11720
|
+
order?: ("asc" | "desc");
|
|
11721
|
+
sortBy?: ("name" | "value");
|
|
11722
|
+
};
|
|
11723
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11724
|
+
groupName: string;
|
|
11725
|
+
newlinesInside?: ("ignore" | number);
|
|
11726
|
+
order?: ("asc" | "desc");
|
|
11727
|
+
anyOf: {
|
|
11728
|
+
elementNamePattern?: (({
|
|
11729
|
+
pattern: string;
|
|
11730
|
+
flags?: string;
|
|
11731
|
+
} | string)[] | ({
|
|
11732
|
+
pattern: string;
|
|
11733
|
+
flags?: string;
|
|
11734
|
+
} | string));
|
|
11735
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
11736
|
+
selector?: ("index-signature" | "member" | "method" | "property");
|
|
11737
|
+
elementValuePattern?: (({
|
|
11738
|
+
pattern: string;
|
|
11739
|
+
flags?: string;
|
|
11740
|
+
} | string)[] | ({
|
|
11741
|
+
pattern: string;
|
|
11742
|
+
flags?: string;
|
|
11743
|
+
} | string));
|
|
11744
|
+
sortBy?: ("name" | "value");
|
|
11745
|
+
}[];
|
|
11746
|
+
} | {
|
|
11747
|
+
fallbackSort?: {
|
|
11748
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11749
|
+
order?: ("asc" | "desc");
|
|
11750
|
+
sortBy?: ("name" | "value");
|
|
11751
|
+
};
|
|
11752
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11753
|
+
groupName: string;
|
|
11754
|
+
newlinesInside?: ("ignore" | number);
|
|
11755
|
+
order?: ("asc" | "desc");
|
|
11756
|
+
elementNamePattern?: (({
|
|
11757
|
+
pattern: string;
|
|
11758
|
+
flags?: string;
|
|
11759
|
+
} | string)[] | ({
|
|
11760
|
+
pattern: string;
|
|
11761
|
+
flags?: string;
|
|
11762
|
+
} | string));
|
|
11763
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
11764
|
+
selector?: ("index-signature" | "member" | "method" | "property");
|
|
11765
|
+
elementValuePattern?: (({
|
|
11766
|
+
pattern: string;
|
|
11767
|
+
flags?: string;
|
|
11768
|
+
} | string)[] | ({
|
|
11769
|
+
pattern: string;
|
|
11770
|
+
flags?: string;
|
|
11771
|
+
} | string));
|
|
11772
|
+
sortBy?: ("name" | "value");
|
|
11773
|
+
})[];
|
|
11774
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11775
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11776
|
+
newlinesBetween: ("ignore" | number);
|
|
11777
|
+
} | {
|
|
11778
|
+
group: (string | [string, ...(string)[]]);
|
|
11528
11779
|
commentAbove?: string;
|
|
11780
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11781
|
+
newlinesInside?: ("ignore" | number);
|
|
11782
|
+
order?: ("asc" | "desc");
|
|
11529
11783
|
})[];
|
|
11784
|
+
newlinesBetween?: ("ignore" | number);
|
|
11785
|
+
useConfigurationIf?: {
|
|
11786
|
+
allNamesMatchPattern?: (({
|
|
11787
|
+
pattern: string;
|
|
11788
|
+
flags?: string;
|
|
11789
|
+
} | string)[] | ({
|
|
11790
|
+
pattern: string;
|
|
11791
|
+
flags?: string;
|
|
11792
|
+
} | string));
|
|
11793
|
+
hasNumericKeysOnly?: boolean;
|
|
11794
|
+
declarationCommentMatchesPattern?: (({
|
|
11795
|
+
scope?: ("shallow" | "deep");
|
|
11796
|
+
pattern: string;
|
|
11797
|
+
flags?: string;
|
|
11798
|
+
} | string)[] | ({
|
|
11799
|
+
scope?: ("shallow" | "deep");
|
|
11800
|
+
pattern: string;
|
|
11801
|
+
flags?: string;
|
|
11802
|
+
} | string));
|
|
11803
|
+
declarationMatchesPattern?: (({
|
|
11804
|
+
scope?: ("shallow" | "deep");
|
|
11805
|
+
pattern: string;
|
|
11806
|
+
flags?: string;
|
|
11807
|
+
} | string)[] | ({
|
|
11808
|
+
scope?: ("shallow" | "deep");
|
|
11809
|
+
pattern: string;
|
|
11810
|
+
flags?: string;
|
|
11811
|
+
} | string));
|
|
11812
|
+
};
|
|
11813
|
+
partitionByComment?: (boolean | (({
|
|
11814
|
+
pattern: string;
|
|
11815
|
+
flags?: string;
|
|
11816
|
+
} | string)[] | ({
|
|
11817
|
+
pattern: string;
|
|
11818
|
+
flags?: string;
|
|
11819
|
+
} | string)) | {
|
|
11820
|
+
block?: (boolean | (({
|
|
11821
|
+
pattern: string;
|
|
11822
|
+
flags?: string;
|
|
11823
|
+
} | string)[] | ({
|
|
11824
|
+
pattern: string;
|
|
11825
|
+
flags?: string;
|
|
11826
|
+
} | string)));
|
|
11827
|
+
line?: (boolean | (({
|
|
11828
|
+
pattern: string;
|
|
11829
|
+
flags?: string;
|
|
11830
|
+
} | string)[] | ({
|
|
11831
|
+
pattern: string;
|
|
11832
|
+
flags?: string;
|
|
11833
|
+
} | string)));
|
|
11834
|
+
});
|
|
11835
|
+
partitionByNewLine?: boolean;
|
|
11836
|
+
sortBy?: ("name" | "value");
|
|
11530
11837
|
}[];
|
|
11531
11838
|
// ----- perfectionist/sort-intersection-types -----
|
|
11532
11839
|
type PerfectionistSortIntersectionTypes = {
|
|
11533
11840
|
fallbackSort?: {
|
|
11841
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11534
11842
|
order?: ("asc" | "desc");
|
|
11535
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11536
11843
|
};
|
|
11844
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11537
11845
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11538
11846
|
ignoreCase?: boolean;
|
|
11539
11847
|
alphabet?: string;
|
|
11540
11848
|
locales?: (string | string[]);
|
|
11541
11849
|
order?: ("asc" | "desc");
|
|
11542
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11543
11850
|
customGroups?: ({
|
|
11544
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11545
11851
|
fallbackSort?: {
|
|
11852
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11546
11853
|
order?: ("asc" | "desc");
|
|
11547
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11548
11854
|
};
|
|
11855
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11549
11856
|
groupName: string;
|
|
11857
|
+
newlinesInside?: ("ignore" | number);
|
|
11550
11858
|
order?: ("asc" | "desc");
|
|
11551
|
-
|
|
11552
|
-
anyOf?: {
|
|
11553
|
-
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
11859
|
+
anyOf: {
|
|
11554
11860
|
elementNamePattern?: (({
|
|
11555
11861
|
pattern: string;
|
|
11556
11862
|
flags?: string;
|
|
@@ -11558,17 +11864,17 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
11558
11864
|
pattern: string;
|
|
11559
11865
|
flags?: string;
|
|
11560
11866
|
} | string));
|
|
11867
|
+
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
11561
11868
|
}[];
|
|
11562
11869
|
} | {
|
|
11563
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11564
11870
|
fallbackSort?: {
|
|
11871
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11565
11872
|
order?: ("asc" | "desc");
|
|
11566
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11567
11873
|
};
|
|
11874
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11568
11875
|
groupName: string;
|
|
11876
|
+
newlinesInside?: ("ignore" | number);
|
|
11569
11877
|
order?: ("asc" | "desc");
|
|
11570
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11571
|
-
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
11572
11878
|
elementNamePattern?: (({
|
|
11573
11879
|
pattern: string;
|
|
11574
11880
|
flags?: string;
|
|
@@ -11576,7 +11882,19 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
11576
11882
|
pattern: string;
|
|
11577
11883
|
flags?: string;
|
|
11578
11884
|
} | string));
|
|
11885
|
+
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
11886
|
+
})[];
|
|
11887
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11888
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11889
|
+
newlinesBetween: ("ignore" | number);
|
|
11890
|
+
} | {
|
|
11891
|
+
group: (string | [string, ...(string)[]]);
|
|
11892
|
+
commentAbove?: string;
|
|
11893
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11894
|
+
newlinesInside?: ("ignore" | number);
|
|
11895
|
+
order?: ("asc" | "desc");
|
|
11579
11896
|
})[];
|
|
11897
|
+
newlinesBetween?: ("ignore" | number);
|
|
11580
11898
|
partitionByComment?: (boolean | (({
|
|
11581
11899
|
pattern: string;
|
|
11582
11900
|
flags?: string;
|
|
@@ -11600,46 +11918,39 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
11600
11918
|
} | string)));
|
|
11601
11919
|
});
|
|
11602
11920
|
partitionByNewLine?: boolean;
|
|
11603
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11604
|
-
groups?: (string | string[] | {
|
|
11605
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11606
|
-
commentAbove?: string;
|
|
11607
|
-
})[];
|
|
11608
11921
|
}[];
|
|
11609
11922
|
// ----- perfectionist/sort-jsx-props -----
|
|
11610
11923
|
type PerfectionistSortJsxProps = {
|
|
11611
11924
|
fallbackSort?: {
|
|
11925
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11612
11926
|
order?: ("asc" | "desc");
|
|
11613
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11614
11927
|
};
|
|
11928
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11615
11929
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11616
11930
|
ignoreCase?: boolean;
|
|
11617
11931
|
alphabet?: string;
|
|
11618
11932
|
locales?: (string | string[]);
|
|
11619
11933
|
order?: ("asc" | "desc");
|
|
11620
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11621
11934
|
customGroups?: ({
|
|
11622
|
-
[k: string]: (string | string[]) | undefined;
|
|
11623
|
-
} | ({
|
|
11624
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11625
11935
|
fallbackSort?: {
|
|
11936
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11626
11937
|
order?: ("asc" | "desc");
|
|
11627
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11628
11938
|
};
|
|
11939
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11629
11940
|
groupName: string;
|
|
11941
|
+
newlinesInside?: ("ignore" | number);
|
|
11630
11942
|
order?: ("asc" | "desc");
|
|
11631
|
-
|
|
11632
|
-
|
|
11633
|
-
modifiers?: ("shorthand" | "multiline")[];
|
|
11634
|
-
selector?: ("multiline" | "prop" | "shorthand");
|
|
11635
|
-
elementValuePattern?: (({
|
|
11943
|
+
anyOf: {
|
|
11944
|
+
elementNamePattern?: (({
|
|
11636
11945
|
pattern: string;
|
|
11637
11946
|
flags?: string;
|
|
11638
11947
|
} | string)[] | ({
|
|
11639
11948
|
pattern: string;
|
|
11640
11949
|
flags?: string;
|
|
11641
11950
|
} | string));
|
|
11642
|
-
|
|
11951
|
+
modifiers?: ("shorthand" | "multiline")[];
|
|
11952
|
+
selector?: "prop";
|
|
11953
|
+
elementValuePattern?: (({
|
|
11643
11954
|
pattern: string;
|
|
11644
11955
|
flags?: string;
|
|
11645
11956
|
} | string)[] | ({
|
|
@@ -11648,31 +11959,42 @@ type PerfectionistSortJsxProps = {
|
|
|
11648
11959
|
} | string));
|
|
11649
11960
|
}[];
|
|
11650
11961
|
} | {
|
|
11651
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11652
11962
|
fallbackSort?: {
|
|
11963
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11653
11964
|
order?: ("asc" | "desc");
|
|
11654
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11655
11965
|
};
|
|
11966
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11656
11967
|
groupName: string;
|
|
11968
|
+
newlinesInside?: ("ignore" | number);
|
|
11657
11969
|
order?: ("asc" | "desc");
|
|
11658
|
-
|
|
11659
|
-
modifiers?: ("shorthand" | "multiline")[];
|
|
11660
|
-
selector?: ("multiline" | "prop" | "shorthand");
|
|
11661
|
-
elementValuePattern?: (({
|
|
11970
|
+
elementNamePattern?: (({
|
|
11662
11971
|
pattern: string;
|
|
11663
11972
|
flags?: string;
|
|
11664
11973
|
} | string)[] | ({
|
|
11665
11974
|
pattern: string;
|
|
11666
11975
|
flags?: string;
|
|
11667
11976
|
} | string));
|
|
11668
|
-
|
|
11977
|
+
modifiers?: ("shorthand" | "multiline")[];
|
|
11978
|
+
selector?: "prop";
|
|
11979
|
+
elementValuePattern?: (({
|
|
11669
11980
|
pattern: string;
|
|
11670
11981
|
flags?: string;
|
|
11671
11982
|
} | string)[] | ({
|
|
11672
11983
|
pattern: string;
|
|
11673
11984
|
flags?: string;
|
|
11674
11985
|
} | string));
|
|
11675
|
-
})[]
|
|
11986
|
+
})[];
|
|
11987
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11988
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11989
|
+
newlinesBetween: ("ignore" | number);
|
|
11990
|
+
} | {
|
|
11991
|
+
group: (string | [string, ...(string)[]]);
|
|
11992
|
+
commentAbove?: string;
|
|
11993
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11994
|
+
newlinesInside?: ("ignore" | number);
|
|
11995
|
+
order?: ("asc" | "desc");
|
|
11996
|
+
})[];
|
|
11997
|
+
newlinesBetween?: ("ignore" | number);
|
|
11676
11998
|
useConfigurationIf?: {
|
|
11677
11999
|
allNamesMatchPattern?: (({
|
|
11678
12000
|
pattern: string;
|
|
@@ -11690,41 +12012,29 @@ type PerfectionistSortJsxProps = {
|
|
|
11690
12012
|
} | string));
|
|
11691
12013
|
};
|
|
11692
12014
|
partitionByNewLine?: boolean;
|
|
11693
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11694
|
-
ignorePattern?: (({
|
|
11695
|
-
pattern: string;
|
|
11696
|
-
flags?: string;
|
|
11697
|
-
} | string)[] | ({
|
|
11698
|
-
pattern: string;
|
|
11699
|
-
flags?: string;
|
|
11700
|
-
} | string));
|
|
11701
|
-
groups?: (string | string[] | {
|
|
11702
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11703
|
-
commentAbove?: string;
|
|
11704
|
-
})[];
|
|
11705
12015
|
}[];
|
|
11706
12016
|
// ----- perfectionist/sort-maps -----
|
|
11707
12017
|
type PerfectionistSortMaps = {
|
|
11708
12018
|
fallbackSort?: {
|
|
12019
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11709
12020
|
order?: ("asc" | "desc");
|
|
11710
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11711
12021
|
};
|
|
12022
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11712
12023
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11713
12024
|
ignoreCase?: boolean;
|
|
11714
12025
|
alphabet?: string;
|
|
11715
12026
|
locales?: (string | string[]);
|
|
11716
12027
|
order?: ("asc" | "desc");
|
|
11717
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11718
12028
|
customGroups?: ({
|
|
11719
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11720
12029
|
fallbackSort?: {
|
|
12030
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11721
12031
|
order?: ("asc" | "desc");
|
|
11722
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11723
12032
|
};
|
|
12033
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11724
12034
|
groupName: string;
|
|
12035
|
+
newlinesInside?: ("ignore" | number);
|
|
11725
12036
|
order?: ("asc" | "desc");
|
|
11726
|
-
|
|
11727
|
-
anyOf?: {
|
|
12037
|
+
anyOf: {
|
|
11728
12038
|
elementNamePattern?: (({
|
|
11729
12039
|
pattern: string;
|
|
11730
12040
|
flags?: string;
|
|
@@ -11734,14 +12044,14 @@ type PerfectionistSortMaps = {
|
|
|
11734
12044
|
} | string));
|
|
11735
12045
|
}[];
|
|
11736
12046
|
} | {
|
|
11737
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11738
12047
|
fallbackSort?: {
|
|
12048
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11739
12049
|
order?: ("asc" | "desc");
|
|
11740
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11741
12050
|
};
|
|
12051
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11742
12052
|
groupName: string;
|
|
12053
|
+
newlinesInside?: ("ignore" | number);
|
|
11743
12054
|
order?: ("asc" | "desc");
|
|
11744
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11745
12055
|
elementNamePattern?: (({
|
|
11746
12056
|
pattern: string;
|
|
11747
12057
|
flags?: string;
|
|
@@ -11750,6 +12060,17 @@ type PerfectionistSortMaps = {
|
|
|
11750
12060
|
flags?: string;
|
|
11751
12061
|
} | string));
|
|
11752
12062
|
})[];
|
|
12063
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12064
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
12065
|
+
newlinesBetween: ("ignore" | number);
|
|
12066
|
+
} | {
|
|
12067
|
+
group: (string | [string, ...(string)[]]);
|
|
12068
|
+
commentAbove?: string;
|
|
12069
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12070
|
+
newlinesInside?: ("ignore" | number);
|
|
12071
|
+
order?: ("asc" | "desc");
|
|
12072
|
+
})[];
|
|
12073
|
+
newlinesBetween?: ("ignore" | number);
|
|
11753
12074
|
useConfigurationIf?: {
|
|
11754
12075
|
allNamesMatchPattern?: (({
|
|
11755
12076
|
pattern: string;
|
|
@@ -11782,44 +12103,39 @@ type PerfectionistSortMaps = {
|
|
|
11782
12103
|
} | string)));
|
|
11783
12104
|
});
|
|
11784
12105
|
partitionByNewLine?: boolean;
|
|
11785
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11786
|
-
groups?: (string | string[] | {
|
|
11787
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11788
|
-
commentAbove?: string;
|
|
11789
|
-
})[];
|
|
11790
12106
|
}[];
|
|
11791
12107
|
// ----- perfectionist/sort-modules -----
|
|
11792
12108
|
type PerfectionistSortModules = [] | [{
|
|
11793
12109
|
fallbackSort?: {
|
|
12110
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11794
12111
|
order?: ("asc" | "desc");
|
|
11795
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11796
12112
|
};
|
|
12113
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11797
12114
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11798
12115
|
ignoreCase?: boolean;
|
|
11799
12116
|
alphabet?: string;
|
|
11800
12117
|
locales?: (string | string[]);
|
|
11801
12118
|
order?: ("asc" | "desc");
|
|
11802
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11803
12119
|
customGroups?: ({
|
|
11804
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11805
12120
|
fallbackSort?: {
|
|
12121
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11806
12122
|
order?: ("asc" | "desc");
|
|
11807
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11808
12123
|
};
|
|
12124
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11809
12125
|
groupName: string;
|
|
12126
|
+
newlinesInside?: ("ignore" | number);
|
|
11810
12127
|
order?: ("asc" | "desc");
|
|
11811
|
-
|
|
11812
|
-
|
|
11813
|
-
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
11814
|
-
selector?: ("enum" | "function" | "interface" | "type" | "class");
|
|
11815
|
-
decoratorNamePattern?: (({
|
|
12128
|
+
anyOf: {
|
|
12129
|
+
elementNamePattern?: (({
|
|
11816
12130
|
pattern: string;
|
|
11817
12131
|
flags?: string;
|
|
11818
12132
|
} | string)[] | ({
|
|
11819
12133
|
pattern: string;
|
|
11820
12134
|
flags?: string;
|
|
11821
12135
|
} | string));
|
|
11822
|
-
|
|
12136
|
+
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
12137
|
+
selector?: ("enum" | "function" | "interface" | "type" | "class");
|
|
12138
|
+
decoratorNamePattern?: (({
|
|
11823
12139
|
pattern: string;
|
|
11824
12140
|
flags?: string;
|
|
11825
12141
|
} | string)[] | ({
|
|
@@ -11828,24 +12144,24 @@ type PerfectionistSortModules = [] | [{
|
|
|
11828
12144
|
} | string));
|
|
11829
12145
|
}[];
|
|
11830
12146
|
} | {
|
|
11831
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11832
12147
|
fallbackSort?: {
|
|
12148
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11833
12149
|
order?: ("asc" | "desc");
|
|
11834
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11835
12150
|
};
|
|
12151
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11836
12152
|
groupName: string;
|
|
12153
|
+
newlinesInside?: ("ignore" | number);
|
|
11837
12154
|
order?: ("asc" | "desc");
|
|
11838
|
-
|
|
11839
|
-
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
11840
|
-
selector?: ("enum" | "function" | "interface" | "type" | "class");
|
|
11841
|
-
decoratorNamePattern?: (({
|
|
12155
|
+
elementNamePattern?: (({
|
|
11842
12156
|
pattern: string;
|
|
11843
12157
|
flags?: string;
|
|
11844
12158
|
} | string)[] | ({
|
|
11845
12159
|
pattern: string;
|
|
11846
12160
|
flags?: string;
|
|
11847
12161
|
} | string));
|
|
11848
|
-
|
|
12162
|
+
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
12163
|
+
selector?: ("enum" | "function" | "interface" | "type" | "class");
|
|
12164
|
+
decoratorNamePattern?: (({
|
|
11849
12165
|
pattern: string;
|
|
11850
12166
|
flags?: string;
|
|
11851
12167
|
} | string)[] | ({
|
|
@@ -11853,6 +12169,17 @@ type PerfectionistSortModules = [] | [{
|
|
|
11853
12169
|
flags?: string;
|
|
11854
12170
|
} | string));
|
|
11855
12171
|
})[];
|
|
12172
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12173
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
12174
|
+
newlinesBetween: ("ignore" | number);
|
|
12175
|
+
} | {
|
|
12176
|
+
group: (string | [string, ...(string)[]]);
|
|
12177
|
+
commentAbove?: string;
|
|
12178
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12179
|
+
newlinesInside?: ("ignore" | number);
|
|
12180
|
+
order?: ("asc" | "desc");
|
|
12181
|
+
})[];
|
|
12182
|
+
newlinesBetween?: ("ignore" | number);
|
|
11856
12183
|
partitionByComment?: (boolean | (({
|
|
11857
12184
|
pattern: string;
|
|
11858
12185
|
flags?: string;
|
|
@@ -11876,38 +12203,29 @@ type PerfectionistSortModules = [] | [{
|
|
|
11876
12203
|
} | string)));
|
|
11877
12204
|
});
|
|
11878
12205
|
partitionByNewLine?: boolean;
|
|
11879
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11880
|
-
groups?: (string | string[] | {
|
|
11881
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11882
|
-
commentAbove?: string;
|
|
11883
|
-
})[];
|
|
11884
12206
|
}];
|
|
11885
12207
|
// ----- perfectionist/sort-named-exports -----
|
|
11886
12208
|
type PerfectionistSortNamedExports = {
|
|
11887
12209
|
fallbackSort?: {
|
|
12210
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11888
12211
|
order?: ("asc" | "desc");
|
|
11889
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11890
12212
|
};
|
|
12213
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11891
12214
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11892
12215
|
ignoreCase?: boolean;
|
|
11893
12216
|
alphabet?: string;
|
|
11894
12217
|
locales?: (string | string[]);
|
|
11895
12218
|
order?: ("asc" | "desc");
|
|
11896
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11897
|
-
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
11898
|
-
ignoreAlias?: boolean;
|
|
11899
12219
|
customGroups?: ({
|
|
11900
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11901
12220
|
fallbackSort?: {
|
|
12221
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11902
12222
|
order?: ("asc" | "desc");
|
|
11903
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11904
12223
|
};
|
|
12224
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11905
12225
|
groupName: string;
|
|
12226
|
+
newlinesInside?: ("ignore" | number);
|
|
11906
12227
|
order?: ("asc" | "desc");
|
|
11907
|
-
|
|
11908
|
-
anyOf?: {
|
|
11909
|
-
modifiers?: ("value" | "type")[];
|
|
11910
|
-
selector?: "export";
|
|
12228
|
+
anyOf: {
|
|
11911
12229
|
elementNamePattern?: (({
|
|
11912
12230
|
pattern: string;
|
|
11913
12231
|
flags?: string;
|
|
@@ -11915,18 +12233,18 @@ type PerfectionistSortNamedExports = {
|
|
|
11915
12233
|
pattern: string;
|
|
11916
12234
|
flags?: string;
|
|
11917
12235
|
} | string));
|
|
12236
|
+
modifiers?: ("value" | "type")[];
|
|
12237
|
+
selector?: "export";
|
|
11918
12238
|
}[];
|
|
11919
12239
|
} | {
|
|
11920
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11921
12240
|
fallbackSort?: {
|
|
12241
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11922
12242
|
order?: ("asc" | "desc");
|
|
11923
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11924
12243
|
};
|
|
12244
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11925
12245
|
groupName: string;
|
|
12246
|
+
newlinesInside?: ("ignore" | number);
|
|
11926
12247
|
order?: ("asc" | "desc");
|
|
11927
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11928
|
-
modifiers?: ("value" | "type")[];
|
|
11929
|
-
selector?: "export";
|
|
11930
12248
|
elementNamePattern?: (({
|
|
11931
12249
|
pattern: string;
|
|
11932
12250
|
flags?: string;
|
|
@@ -11934,7 +12252,21 @@ type PerfectionistSortNamedExports = {
|
|
|
11934
12252
|
pattern: string;
|
|
11935
12253
|
flags?: string;
|
|
11936
12254
|
} | string));
|
|
12255
|
+
modifiers?: ("value" | "type")[];
|
|
12256
|
+
selector?: "export";
|
|
12257
|
+
})[];
|
|
12258
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12259
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
12260
|
+
newlinesBetween: ("ignore" | number);
|
|
12261
|
+
} | {
|
|
12262
|
+
group: (string | [string, ...(string)[]]);
|
|
12263
|
+
commentAbove?: string;
|
|
12264
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12265
|
+
newlinesInside?: ("ignore" | number);
|
|
12266
|
+
order?: ("asc" | "desc");
|
|
11937
12267
|
})[];
|
|
12268
|
+
newlinesBetween?: ("ignore" | number);
|
|
12269
|
+
ignoreAlias?: boolean;
|
|
11938
12270
|
partitionByComment?: (boolean | (({
|
|
11939
12271
|
pattern: string;
|
|
11940
12272
|
flags?: string;
|
|
@@ -11958,38 +12290,29 @@ type PerfectionistSortNamedExports = {
|
|
|
11958
12290
|
} | string)));
|
|
11959
12291
|
});
|
|
11960
12292
|
partitionByNewLine?: boolean;
|
|
11961
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11962
|
-
groups?: (string | string[] | {
|
|
11963
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11964
|
-
commentAbove?: string;
|
|
11965
|
-
})[];
|
|
11966
12293
|
}[];
|
|
11967
12294
|
// ----- perfectionist/sort-named-imports -----
|
|
11968
12295
|
type PerfectionistSortNamedImports = {
|
|
11969
12296
|
fallbackSort?: {
|
|
12297
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11970
12298
|
order?: ("asc" | "desc");
|
|
11971
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11972
12299
|
};
|
|
12300
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11973
12301
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11974
12302
|
ignoreCase?: boolean;
|
|
11975
12303
|
alphabet?: string;
|
|
11976
12304
|
locales?: (string | string[]);
|
|
11977
12305
|
order?: ("asc" | "desc");
|
|
11978
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11979
|
-
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
11980
|
-
ignoreAlias?: boolean;
|
|
11981
12306
|
customGroups?: ({
|
|
11982
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11983
12307
|
fallbackSort?: {
|
|
12308
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11984
12309
|
order?: ("asc" | "desc");
|
|
11985
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11986
12310
|
};
|
|
12311
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11987
12312
|
groupName: string;
|
|
12313
|
+
newlinesInside?: ("ignore" | number);
|
|
11988
12314
|
order?: ("asc" | "desc");
|
|
11989
|
-
|
|
11990
|
-
anyOf?: {
|
|
11991
|
-
modifiers?: ("value" | "type")[];
|
|
11992
|
-
selector?: "import";
|
|
12315
|
+
anyOf: {
|
|
11993
12316
|
elementNamePattern?: (({
|
|
11994
12317
|
pattern: string;
|
|
11995
12318
|
flags?: string;
|
|
@@ -11997,18 +12320,18 @@ type PerfectionistSortNamedImports = {
|
|
|
11997
12320
|
pattern: string;
|
|
11998
12321
|
flags?: string;
|
|
11999
12322
|
} | string));
|
|
12323
|
+
modifiers?: ("value" | "type")[];
|
|
12324
|
+
selector?: "import";
|
|
12000
12325
|
}[];
|
|
12001
12326
|
} | {
|
|
12002
|
-
newlinesInside?: (("always" | "never") | number);
|
|
12003
12327
|
fallbackSort?: {
|
|
12328
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12004
12329
|
order?: ("asc" | "desc");
|
|
12005
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12006
12330
|
};
|
|
12331
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12007
12332
|
groupName: string;
|
|
12333
|
+
newlinesInside?: ("ignore" | number);
|
|
12008
12334
|
order?: ("asc" | "desc");
|
|
12009
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12010
|
-
modifiers?: ("value" | "type")[];
|
|
12011
|
-
selector?: "import";
|
|
12012
12335
|
elementNamePattern?: (({
|
|
12013
12336
|
pattern: string;
|
|
12014
12337
|
flags?: string;
|
|
@@ -12016,7 +12339,21 @@ type PerfectionistSortNamedImports = {
|
|
|
12016
12339
|
pattern: string;
|
|
12017
12340
|
flags?: string;
|
|
12018
12341
|
} | string));
|
|
12342
|
+
modifiers?: ("value" | "type")[];
|
|
12343
|
+
selector?: "import";
|
|
12344
|
+
})[];
|
|
12345
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12346
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
12347
|
+
newlinesBetween: ("ignore" | number);
|
|
12348
|
+
} | {
|
|
12349
|
+
group: (string | [string, ...(string)[]]);
|
|
12350
|
+
commentAbove?: string;
|
|
12351
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12352
|
+
newlinesInside?: ("ignore" | number);
|
|
12353
|
+
order?: ("asc" | "desc");
|
|
12019
12354
|
})[];
|
|
12355
|
+
newlinesBetween?: ("ignore" | number);
|
|
12356
|
+
ignoreAlias?: boolean;
|
|
12020
12357
|
partitionByComment?: (boolean | (({
|
|
12021
12358
|
pattern: string;
|
|
12022
12359
|
flags?: string;
|
|
@@ -12040,48 +12377,41 @@ type PerfectionistSortNamedImports = {
|
|
|
12040
12377
|
} | string)));
|
|
12041
12378
|
});
|
|
12042
12379
|
partitionByNewLine?: boolean;
|
|
12043
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12044
|
-
groups?: (string | string[] | {
|
|
12045
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12046
|
-
commentAbove?: string;
|
|
12047
|
-
})[];
|
|
12048
12380
|
}[];
|
|
12049
12381
|
// ----- perfectionist/sort-object-types -----
|
|
12050
12382
|
type PerfectionistSortObjectTypes = {
|
|
12051
12383
|
fallbackSort?: {
|
|
12384
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12052
12385
|
order?: ("asc" | "desc");
|
|
12053
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12054
12386
|
sortBy?: ("name" | "value");
|
|
12055
12387
|
};
|
|
12388
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12056
12389
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12057
12390
|
ignoreCase?: boolean;
|
|
12058
12391
|
alphabet?: string;
|
|
12059
12392
|
locales?: (string | string[]);
|
|
12060
12393
|
order?: ("asc" | "desc");
|
|
12061
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12062
12394
|
customGroups?: ({
|
|
12063
|
-
[k: string]: (string | string[]) | undefined;
|
|
12064
|
-
} | ({
|
|
12065
|
-
newlinesInside?: (("always" | "never") | number);
|
|
12066
12395
|
fallbackSort?: {
|
|
12396
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12067
12397
|
order?: ("asc" | "desc");
|
|
12068
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12069
12398
|
sortBy?: ("name" | "value");
|
|
12070
12399
|
};
|
|
12400
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12071
12401
|
groupName: string;
|
|
12402
|
+
newlinesInside?: ("ignore" | number);
|
|
12072
12403
|
order?: ("asc" | "desc");
|
|
12073
|
-
|
|
12074
|
-
|
|
12075
|
-
modifiers?: ("optional" | "required" | "multiline")[];
|
|
12076
|
-
selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
|
|
12077
|
-
elementValuePattern?: (({
|
|
12404
|
+
anyOf: {
|
|
12405
|
+
elementNamePattern?: (({
|
|
12078
12406
|
pattern: string;
|
|
12079
12407
|
flags?: string;
|
|
12080
12408
|
} | string)[] | ({
|
|
12081
12409
|
pattern: string;
|
|
12082
12410
|
flags?: string;
|
|
12083
12411
|
} | string));
|
|
12084
|
-
|
|
12412
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
12413
|
+
selector?: ("index-signature" | "member" | "method" | "property");
|
|
12414
|
+
elementValuePattern?: (({
|
|
12085
12415
|
pattern: string;
|
|
12086
12416
|
flags?: string;
|
|
12087
12417
|
} | string)[] | ({
|
|
@@ -12091,25 +12421,25 @@ type PerfectionistSortObjectTypes = {
|
|
|
12091
12421
|
sortBy?: ("name" | "value");
|
|
12092
12422
|
}[];
|
|
12093
12423
|
} | {
|
|
12094
|
-
newlinesInside?: (("always" | "never") | number);
|
|
12095
12424
|
fallbackSort?: {
|
|
12425
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12096
12426
|
order?: ("asc" | "desc");
|
|
12097
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12098
12427
|
sortBy?: ("name" | "value");
|
|
12099
12428
|
};
|
|
12429
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12100
12430
|
groupName: string;
|
|
12431
|
+
newlinesInside?: ("ignore" | number);
|
|
12101
12432
|
order?: ("asc" | "desc");
|
|
12102
|
-
|
|
12103
|
-
modifiers?: ("optional" | "required" | "multiline")[];
|
|
12104
|
-
selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
|
|
12105
|
-
elementValuePattern?: (({
|
|
12433
|
+
elementNamePattern?: (({
|
|
12106
12434
|
pattern: string;
|
|
12107
12435
|
flags?: string;
|
|
12108
12436
|
} | string)[] | ({
|
|
12109
12437
|
pattern: string;
|
|
12110
12438
|
flags?: string;
|
|
12111
12439
|
} | string));
|
|
12112
|
-
|
|
12440
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
12441
|
+
selector?: ("index-signature" | "member" | "method" | "property");
|
|
12442
|
+
elementValuePattern?: (({
|
|
12113
12443
|
pattern: string;
|
|
12114
12444
|
flags?: string;
|
|
12115
12445
|
} | string)[] | ({
|
|
@@ -12117,8 +12447,18 @@ type PerfectionistSortObjectTypes = {
|
|
|
12117
12447
|
flags?: string;
|
|
12118
12448
|
} | string));
|
|
12119
12449
|
sortBy?: ("name" | "value");
|
|
12120
|
-
})[]
|
|
12121
|
-
|
|
12450
|
+
})[];
|
|
12451
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12452
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
12453
|
+
newlinesBetween: ("ignore" | number);
|
|
12454
|
+
} | {
|
|
12455
|
+
group: (string | [string, ...(string)[]]);
|
|
12456
|
+
commentAbove?: string;
|
|
12457
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12458
|
+
newlinesInside?: ("ignore" | number);
|
|
12459
|
+
order?: ("asc" | "desc");
|
|
12460
|
+
})[];
|
|
12461
|
+
newlinesBetween?: ("ignore" | number);
|
|
12122
12462
|
useConfigurationIf?: {
|
|
12123
12463
|
allNamesMatchPattern?: (({
|
|
12124
12464
|
pattern: string;
|
|
@@ -12127,10 +12467,22 @@ type PerfectionistSortObjectTypes = {
|
|
|
12127
12467
|
pattern: string;
|
|
12128
12468
|
flags?: string;
|
|
12129
12469
|
} | string));
|
|
12470
|
+
hasNumericKeysOnly?: boolean;
|
|
12471
|
+
declarationCommentMatchesPattern?: (({
|
|
12472
|
+
scope?: ("shallow" | "deep");
|
|
12473
|
+
pattern: string;
|
|
12474
|
+
flags?: string;
|
|
12475
|
+
} | string)[] | ({
|
|
12476
|
+
scope?: ("shallow" | "deep");
|
|
12477
|
+
pattern: string;
|
|
12478
|
+
flags?: string;
|
|
12479
|
+
} | string));
|
|
12130
12480
|
declarationMatchesPattern?: (({
|
|
12481
|
+
scope?: ("shallow" | "deep");
|
|
12131
12482
|
pattern: string;
|
|
12132
12483
|
flags?: string;
|
|
12133
12484
|
} | string)[] | ({
|
|
12485
|
+
scope?: ("shallow" | "deep");
|
|
12134
12486
|
pattern: string;
|
|
12135
12487
|
flags?: string;
|
|
12136
12488
|
} | string));
|
|
@@ -12158,57 +12510,40 @@ type PerfectionistSortObjectTypes = {
|
|
|
12158
12510
|
} | string)));
|
|
12159
12511
|
});
|
|
12160
12512
|
partitionByNewLine?: boolean;
|
|
12161
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12162
|
-
ignorePattern?: (({
|
|
12163
|
-
pattern: string;
|
|
12164
|
-
flags?: string;
|
|
12165
|
-
} | string)[] | ({
|
|
12166
|
-
pattern: string;
|
|
12167
|
-
flags?: string;
|
|
12168
|
-
} | string));
|
|
12169
12513
|
sortBy?: ("name" | "value");
|
|
12170
|
-
groups?: (string | string[] | {
|
|
12171
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12172
|
-
commentAbove?: string;
|
|
12173
|
-
})[];
|
|
12174
12514
|
}[];
|
|
12175
12515
|
// ----- perfectionist/sort-objects -----
|
|
12176
12516
|
type PerfectionistSortObjects = {
|
|
12177
12517
|
fallbackSort?: {
|
|
12518
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12178
12519
|
order?: ("asc" | "desc");
|
|
12179
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12180
12520
|
};
|
|
12521
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12181
12522
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12182
12523
|
ignoreCase?: boolean;
|
|
12183
12524
|
alphabet?: string;
|
|
12184
12525
|
locales?: (string | string[]);
|
|
12185
12526
|
order?: ("asc" | "desc");
|
|
12186
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12187
|
-
destructuredObjects?: (boolean | {
|
|
12188
|
-
groups?: boolean;
|
|
12189
|
-
});
|
|
12190
12527
|
customGroups?: ({
|
|
12191
|
-
[k: string]: (string | string[]) | undefined;
|
|
12192
|
-
} | ({
|
|
12193
|
-
newlinesInside?: (("always" | "never") | number);
|
|
12194
12528
|
fallbackSort?: {
|
|
12529
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12195
12530
|
order?: ("asc" | "desc");
|
|
12196
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12197
12531
|
};
|
|
12532
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12198
12533
|
groupName: string;
|
|
12534
|
+
newlinesInside?: ("ignore" | number);
|
|
12199
12535
|
order?: ("asc" | "desc");
|
|
12200
|
-
|
|
12201
|
-
|
|
12202
|
-
modifiers?: ("optional" | "required" | "multiline")[];
|
|
12203
|
-
selector?: ("member" | "method" | "multiline" | "property");
|
|
12204
|
-
elementValuePattern?: (({
|
|
12536
|
+
anyOf: {
|
|
12537
|
+
elementNamePattern?: (({
|
|
12205
12538
|
pattern: string;
|
|
12206
12539
|
flags?: string;
|
|
12207
12540
|
} | string)[] | ({
|
|
12208
12541
|
pattern: string;
|
|
12209
12542
|
flags?: string;
|
|
12210
12543
|
} | string));
|
|
12211
|
-
|
|
12544
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
12545
|
+
selector?: ("member" | "method" | "property");
|
|
12546
|
+
elementValuePattern?: (({
|
|
12212
12547
|
pattern: string;
|
|
12213
12548
|
flags?: string;
|
|
12214
12549
|
} | string)[] | ({
|
|
@@ -12217,31 +12552,42 @@ type PerfectionistSortObjects = {
|
|
|
12217
12552
|
} | string));
|
|
12218
12553
|
}[];
|
|
12219
12554
|
} | {
|
|
12220
|
-
newlinesInside?: (("always" | "never") | number);
|
|
12221
12555
|
fallbackSort?: {
|
|
12556
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12222
12557
|
order?: ("asc" | "desc");
|
|
12223
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12224
12558
|
};
|
|
12559
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12225
12560
|
groupName: string;
|
|
12561
|
+
newlinesInside?: ("ignore" | number);
|
|
12226
12562
|
order?: ("asc" | "desc");
|
|
12227
|
-
|
|
12228
|
-
modifiers?: ("optional" | "required" | "multiline")[];
|
|
12229
|
-
selector?: ("member" | "method" | "multiline" | "property");
|
|
12230
|
-
elementValuePattern?: (({
|
|
12563
|
+
elementNamePattern?: (({
|
|
12231
12564
|
pattern: string;
|
|
12232
12565
|
flags?: string;
|
|
12233
12566
|
} | string)[] | ({
|
|
12234
12567
|
pattern: string;
|
|
12235
12568
|
flags?: string;
|
|
12236
12569
|
} | string));
|
|
12237
|
-
|
|
12570
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
12571
|
+
selector?: ("member" | "method" | "property");
|
|
12572
|
+
elementValuePattern?: (({
|
|
12238
12573
|
pattern: string;
|
|
12239
12574
|
flags?: string;
|
|
12240
12575
|
} | string)[] | ({
|
|
12241
12576
|
pattern: string;
|
|
12242
12577
|
flags?: string;
|
|
12243
12578
|
} | string));
|
|
12244
|
-
})[]
|
|
12579
|
+
})[];
|
|
12580
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12581
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
12582
|
+
newlinesBetween: ("ignore" | number);
|
|
12583
|
+
} | {
|
|
12584
|
+
group: (string | [string, ...(string)[]]);
|
|
12585
|
+
commentAbove?: string;
|
|
12586
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12587
|
+
newlinesInside?: ("ignore" | number);
|
|
12588
|
+
order?: ("asc" | "desc");
|
|
12589
|
+
})[];
|
|
12590
|
+
newlinesBetween?: ("ignore" | number);
|
|
12245
12591
|
useConfigurationIf?: {
|
|
12246
12592
|
allNamesMatchPattern?: (({
|
|
12247
12593
|
pattern: string;
|
|
@@ -12250,16 +12596,36 @@ type PerfectionistSortObjects = {
|
|
|
12250
12596
|
pattern: string;
|
|
12251
12597
|
flags?: string;
|
|
12252
12598
|
} | string));
|
|
12599
|
+
objectType?: ("destructured" | "non-destructured");
|
|
12600
|
+
hasNumericKeysOnly?: boolean;
|
|
12601
|
+
declarationCommentMatchesPattern?: (({
|
|
12602
|
+
scope?: ("shallow" | "deep");
|
|
12603
|
+
pattern: string;
|
|
12604
|
+
flags?: string;
|
|
12605
|
+
} | string)[] | ({
|
|
12606
|
+
scope?: ("shallow" | "deep");
|
|
12607
|
+
pattern: string;
|
|
12608
|
+
flags?: string;
|
|
12609
|
+
} | string));
|
|
12253
12610
|
callingFunctionNamePattern?: (({
|
|
12611
|
+
scope?: ("shallow" | "deep");
|
|
12612
|
+
pattern: string;
|
|
12613
|
+
flags?: string;
|
|
12614
|
+
} | string)[] | ({
|
|
12615
|
+
scope?: ("shallow" | "deep");
|
|
12616
|
+
pattern: string;
|
|
12617
|
+
flags?: string;
|
|
12618
|
+
} | string));
|
|
12619
|
+
declarationMatchesPattern?: (({
|
|
12620
|
+
scope?: ("shallow" | "deep");
|
|
12254
12621
|
pattern: string;
|
|
12255
12622
|
flags?: string;
|
|
12256
12623
|
} | string)[] | ({
|
|
12624
|
+
scope?: ("shallow" | "deep");
|
|
12257
12625
|
pattern: string;
|
|
12258
12626
|
flags?: string;
|
|
12259
12627
|
} | string));
|
|
12260
12628
|
};
|
|
12261
|
-
destructureOnly?: boolean;
|
|
12262
|
-
objectDeclarations?: boolean;
|
|
12263
12629
|
styledComponents?: boolean;
|
|
12264
12630
|
partitionByComment?: (boolean | (({
|
|
12265
12631
|
pattern: string;
|
|
@@ -12284,43 +12650,29 @@ type PerfectionistSortObjects = {
|
|
|
12284
12650
|
} | string)));
|
|
12285
12651
|
});
|
|
12286
12652
|
partitionByNewLine?: boolean;
|
|
12287
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12288
|
-
ignorePattern?: (({
|
|
12289
|
-
pattern: string;
|
|
12290
|
-
flags?: string;
|
|
12291
|
-
} | string)[] | ({
|
|
12292
|
-
pattern: string;
|
|
12293
|
-
flags?: string;
|
|
12294
|
-
} | string));
|
|
12295
|
-
groups?: (string | string[] | {
|
|
12296
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12297
|
-
commentAbove?: string;
|
|
12298
|
-
})[];
|
|
12299
12653
|
}[];
|
|
12300
12654
|
// ----- perfectionist/sort-sets -----
|
|
12301
12655
|
type PerfectionistSortSets = {
|
|
12302
12656
|
fallbackSort?: {
|
|
12657
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12303
12658
|
order?: ("asc" | "desc");
|
|
12304
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12305
12659
|
};
|
|
12660
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12306
12661
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12307
12662
|
ignoreCase?: boolean;
|
|
12308
12663
|
alphabet?: string;
|
|
12309
12664
|
locales?: (string | string[]);
|
|
12310
12665
|
order?: ("asc" | "desc");
|
|
12311
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12312
|
-
groupKind?: ("mixed" | "literals-first" | "spreads-first");
|
|
12313
12666
|
customGroups?: ({
|
|
12314
|
-
newlinesInside?: (("always" | "never") | number);
|
|
12315
12667
|
fallbackSort?: {
|
|
12668
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12316
12669
|
order?: ("asc" | "desc");
|
|
12317
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12318
12670
|
};
|
|
12671
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12319
12672
|
groupName: string;
|
|
12673
|
+
newlinesInside?: ("ignore" | number);
|
|
12320
12674
|
order?: ("asc" | "desc");
|
|
12321
|
-
|
|
12322
|
-
anyOf?: {
|
|
12323
|
-
selector?: ("literal" | "spread");
|
|
12675
|
+
anyOf: {
|
|
12324
12676
|
elementNamePattern?: (({
|
|
12325
12677
|
pattern: string;
|
|
12326
12678
|
flags?: string;
|
|
@@ -12328,17 +12680,17 @@ type PerfectionistSortSets = {
|
|
|
12328
12680
|
pattern: string;
|
|
12329
12681
|
flags?: string;
|
|
12330
12682
|
} | string));
|
|
12683
|
+
selector?: ("literal" | "spread");
|
|
12331
12684
|
}[];
|
|
12332
12685
|
} | {
|
|
12333
|
-
newlinesInside?: (("always" | "never") | number);
|
|
12334
12686
|
fallbackSort?: {
|
|
12687
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12335
12688
|
order?: ("asc" | "desc");
|
|
12336
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12337
12689
|
};
|
|
12690
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12338
12691
|
groupName: string;
|
|
12692
|
+
newlinesInside?: ("ignore" | number);
|
|
12339
12693
|
order?: ("asc" | "desc");
|
|
12340
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12341
|
-
selector?: ("literal" | "spread");
|
|
12342
12694
|
elementNamePattern?: (({
|
|
12343
12695
|
pattern: string;
|
|
12344
12696
|
flags?: string;
|
|
@@ -12346,7 +12698,19 @@ type PerfectionistSortSets = {
|
|
|
12346
12698
|
pattern: string;
|
|
12347
12699
|
flags?: string;
|
|
12348
12700
|
} | string));
|
|
12701
|
+
selector?: ("literal" | "spread");
|
|
12702
|
+
})[];
|
|
12703
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12704
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
12705
|
+
newlinesBetween: ("ignore" | number);
|
|
12706
|
+
} | {
|
|
12707
|
+
group: (string | [string, ...(string)[]]);
|
|
12708
|
+
commentAbove?: string;
|
|
12709
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12710
|
+
newlinesInside?: ("ignore" | number);
|
|
12711
|
+
order?: ("asc" | "desc");
|
|
12349
12712
|
})[];
|
|
12713
|
+
newlinesBetween?: ("ignore" | number);
|
|
12350
12714
|
useConfigurationIf?: {
|
|
12351
12715
|
allNamesMatchPattern?: (({
|
|
12352
12716
|
pattern: string;
|
|
@@ -12379,48 +12743,42 @@ type PerfectionistSortSets = {
|
|
|
12379
12743
|
} | string)));
|
|
12380
12744
|
});
|
|
12381
12745
|
partitionByNewLine?: boolean;
|
|
12382
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12383
|
-
groups?: (string | string[] | {
|
|
12384
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12385
|
-
commentAbove?: string;
|
|
12386
|
-
})[];
|
|
12387
12746
|
}[];
|
|
12388
12747
|
// ----- perfectionist/sort-switch-case -----
|
|
12389
12748
|
type PerfectionistSortSwitchCase = [] | [{
|
|
12390
12749
|
fallbackSort?: {
|
|
12750
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12391
12751
|
order?: ("asc" | "desc");
|
|
12392
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12393
12752
|
};
|
|
12753
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12394
12754
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12395
12755
|
ignoreCase?: boolean;
|
|
12396
12756
|
alphabet?: string;
|
|
12397
12757
|
locales?: (string | string[]);
|
|
12398
12758
|
order?: ("asc" | "desc");
|
|
12399
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12400
12759
|
}];
|
|
12401
12760
|
// ----- perfectionist/sort-union-types -----
|
|
12402
12761
|
type PerfectionistSortUnionTypes = {
|
|
12403
12762
|
fallbackSort?: {
|
|
12763
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12404
12764
|
order?: ("asc" | "desc");
|
|
12405
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12406
12765
|
};
|
|
12766
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12407
12767
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12408
12768
|
ignoreCase?: boolean;
|
|
12409
12769
|
alphabet?: string;
|
|
12410
12770
|
locales?: (string | string[]);
|
|
12411
12771
|
order?: ("asc" | "desc");
|
|
12412
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12413
12772
|
customGroups?: ({
|
|
12414
|
-
newlinesInside?: (("always" | "never") | number);
|
|
12415
12773
|
fallbackSort?: {
|
|
12774
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12416
12775
|
order?: ("asc" | "desc");
|
|
12417
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12418
12776
|
};
|
|
12777
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12419
12778
|
groupName: string;
|
|
12779
|
+
newlinesInside?: ("ignore" | number);
|
|
12420
12780
|
order?: ("asc" | "desc");
|
|
12421
|
-
|
|
12422
|
-
anyOf?: {
|
|
12423
|
-
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
12781
|
+
anyOf: {
|
|
12424
12782
|
elementNamePattern?: (({
|
|
12425
12783
|
pattern: string;
|
|
12426
12784
|
flags?: string;
|
|
@@ -12428,17 +12786,17 @@ type PerfectionistSortUnionTypes = {
|
|
|
12428
12786
|
pattern: string;
|
|
12429
12787
|
flags?: string;
|
|
12430
12788
|
} | string));
|
|
12789
|
+
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
12431
12790
|
}[];
|
|
12432
12791
|
} | {
|
|
12433
|
-
newlinesInside?: (("always" | "never") | number);
|
|
12434
12792
|
fallbackSort?: {
|
|
12793
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12435
12794
|
order?: ("asc" | "desc");
|
|
12436
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12437
12795
|
};
|
|
12796
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12438
12797
|
groupName: string;
|
|
12798
|
+
newlinesInside?: ("ignore" | number);
|
|
12439
12799
|
order?: ("asc" | "desc");
|
|
12440
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12441
|
-
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
12442
12800
|
elementNamePattern?: (({
|
|
12443
12801
|
pattern: string;
|
|
12444
12802
|
flags?: string;
|
|
@@ -12446,7 +12804,19 @@ type PerfectionistSortUnionTypes = {
|
|
|
12446
12804
|
pattern: string;
|
|
12447
12805
|
flags?: string;
|
|
12448
12806
|
} | string));
|
|
12807
|
+
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
12808
|
+
})[];
|
|
12809
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12810
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
12811
|
+
newlinesBetween: ("ignore" | number);
|
|
12812
|
+
} | {
|
|
12813
|
+
group: (string | [string, ...(string)[]]);
|
|
12814
|
+
commentAbove?: string;
|
|
12815
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12816
|
+
newlinesInside?: ("ignore" | number);
|
|
12817
|
+
order?: ("asc" | "desc");
|
|
12449
12818
|
})[];
|
|
12819
|
+
newlinesBetween?: ("ignore" | number);
|
|
12450
12820
|
partitionByComment?: (boolean | (({
|
|
12451
12821
|
pattern: string;
|
|
12452
12822
|
flags?: string;
|
|
@@ -12470,35 +12840,29 @@ type PerfectionistSortUnionTypes = {
|
|
|
12470
12840
|
} | string)));
|
|
12471
12841
|
});
|
|
12472
12842
|
partitionByNewLine?: boolean;
|
|
12473
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12474
|
-
groups?: (string | string[] | {
|
|
12475
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12476
|
-
commentAbove?: string;
|
|
12477
|
-
})[];
|
|
12478
12843
|
}[];
|
|
12479
12844
|
// ----- perfectionist/sort-variable-declarations -----
|
|
12480
12845
|
type PerfectionistSortVariableDeclarations = [] | [{
|
|
12481
12846
|
fallbackSort?: {
|
|
12847
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12482
12848
|
order?: ("asc" | "desc");
|
|
12483
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12484
12849
|
};
|
|
12850
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12485
12851
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
12486
12852
|
ignoreCase?: boolean;
|
|
12487
12853
|
alphabet?: string;
|
|
12488
12854
|
locales?: (string | string[]);
|
|
12489
12855
|
order?: ("asc" | "desc");
|
|
12490
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12491
12856
|
customGroups?: ({
|
|
12492
|
-
newlinesInside?: (("always" | "never") | number);
|
|
12493
12857
|
fallbackSort?: {
|
|
12858
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12494
12859
|
order?: ("asc" | "desc");
|
|
12495
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12496
12860
|
};
|
|
12861
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12497
12862
|
groupName: string;
|
|
12863
|
+
newlinesInside?: ("ignore" | number);
|
|
12498
12864
|
order?: ("asc" | "desc");
|
|
12499
|
-
|
|
12500
|
-
anyOf?: {
|
|
12501
|
-
selector?: ("initialized" | "uninitialized");
|
|
12865
|
+
anyOf: {
|
|
12502
12866
|
elementNamePattern?: (({
|
|
12503
12867
|
pattern: string;
|
|
12504
12868
|
flags?: string;
|
|
@@ -12506,17 +12870,17 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
12506
12870
|
pattern: string;
|
|
12507
12871
|
flags?: string;
|
|
12508
12872
|
} | string));
|
|
12873
|
+
selector?: ("initialized" | "uninitialized");
|
|
12509
12874
|
}[];
|
|
12510
12875
|
} | {
|
|
12511
|
-
newlinesInside?: (("always" | "never") | number);
|
|
12512
12876
|
fallbackSort?: {
|
|
12877
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12513
12878
|
order?: ("asc" | "desc");
|
|
12514
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12515
12879
|
};
|
|
12880
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12516
12881
|
groupName: string;
|
|
12882
|
+
newlinesInside?: ("ignore" | number);
|
|
12517
12883
|
order?: ("asc" | "desc");
|
|
12518
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12519
|
-
selector?: ("initialized" | "uninitialized");
|
|
12520
12884
|
elementNamePattern?: (({
|
|
12521
12885
|
pattern: string;
|
|
12522
12886
|
flags?: string;
|
|
@@ -12524,7 +12888,19 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
12524
12888
|
pattern: string;
|
|
12525
12889
|
flags?: string;
|
|
12526
12890
|
} | string));
|
|
12891
|
+
selector?: ("initialized" | "uninitialized");
|
|
12892
|
+
})[];
|
|
12893
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
12894
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
12895
|
+
newlinesBetween: ("ignore" | number);
|
|
12896
|
+
} | {
|
|
12897
|
+
group: (string | [string, ...(string)[]]);
|
|
12898
|
+
commentAbove?: string;
|
|
12899
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
12900
|
+
newlinesInside?: ("ignore" | number);
|
|
12901
|
+
order?: ("asc" | "desc");
|
|
12527
12902
|
})[];
|
|
12903
|
+
newlinesBetween?: ("ignore" | number);
|
|
12528
12904
|
partitionByComment?: (boolean | (({
|
|
12529
12905
|
pattern: string;
|
|
12530
12906
|
flags?: string;
|
|
@@ -12548,11 +12924,6 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
12548
12924
|
} | string)));
|
|
12549
12925
|
});
|
|
12550
12926
|
partitionByNewLine?: boolean;
|
|
12551
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12552
|
-
groups?: (string | string[] | {
|
|
12553
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
12554
|
-
commentAbove?: string;
|
|
12555
|
-
})[];
|
|
12556
12927
|
}];
|
|
12557
12928
|
// ----- pnpm/json-enforce-catalog -----
|
|
12558
12929
|
type PnpmJsonEnforceCatalog = [] | [{
|
|
@@ -12584,7 +12955,6 @@ type PnpmYamlEnforceSettings = [] | [{
|
|
|
12584
12955
|
};
|
|
12585
12956
|
requiredFields?: string[];
|
|
12586
12957
|
forbiddenFields?: string[];
|
|
12587
|
-
[k: string]: unknown | undefined;
|
|
12588
12958
|
}];
|
|
12589
12959
|
// ----- pnpm/yaml-no-duplicate-catalog-item -----
|
|
12590
12960
|
type PnpmYamlNoDuplicateCatalogItem = [] | [{
|
|
@@ -12800,6 +13170,11 @@ type ReactNamingConventionFilenameExtension = [] | [(("always" | "as-needed") |
|
|
|
12800
13170
|
extensions?: string[];
|
|
12801
13171
|
ignoreFilesWithoutCode?: boolean;
|
|
12802
13172
|
})];
|
|
13173
|
+
// ----- react-naming-convention/use-state -----
|
|
13174
|
+
type ReactNamingConventionUseState = [] | [{
|
|
13175
|
+
enforceAssignment?: boolean;
|
|
13176
|
+
enforceSetterName?: boolean;
|
|
13177
|
+
}];
|
|
12803
13178
|
// ----- react-native-community/no-raw-text -----
|
|
12804
13179
|
type ReactNativeCommunityNoRawText = [] | [{
|
|
12805
13180
|
skip?: string[];
|
|
@@ -14937,6 +15312,10 @@ type TestPreferExpectAssertions = [] | [{
|
|
|
14937
15312
|
onlyFunctionsWithExpectInLoop?: boolean;
|
|
14938
15313
|
onlyFunctionsWithExpectInCallback?: boolean;
|
|
14939
15314
|
}];
|
|
15315
|
+
// ----- test/prefer-import-in-mock -----
|
|
15316
|
+
type TestPreferImportInMock = [] | [{
|
|
15317
|
+
fixable?: boolean;
|
|
15318
|
+
}];
|
|
14940
15319
|
// ----- test/prefer-lowercase-title -----
|
|
14941
15320
|
type TestPreferLowercaseTitle = [] | [{
|
|
14942
15321
|
ignore?: ("describe" | "test" | "it")[];
|
|
@@ -17798,7 +18177,7 @@ type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
|
|
|
17798
18177
|
onlyEquality?: boolean;
|
|
17799
18178
|
}];
|
|
17800
18179
|
// Names of all the configs
|
|
17801
|
-
type ConfigNames = 'gitignore' | 'ignores' | 'javascript/setup' | 'javascript/rules' | 'eslint-comments/rules' | '
|
|
18180
|
+
type ConfigNames = 'gitignore' | 'ignores' | 'javascript/setup' | 'javascript/rules' | 'eslint-comments/rules' | 'command/rules' | 'perfectionist/setup' | 'node/rules' | 'jsdoc/rules' | 'imports/rules' | 'unicorn/rules' | 'jsx/setup' | 'typescript/setup' | 'typescript/parser' | 'typescript/type-aware-parser' | 'typescript/rules' | 'typescript/rules-type-aware' | 'antfu/typescript/erasable-syntax-only' | 'stylistic/rules' | 'regexp/rules' | 'test/setup' | 'test/rules' | 'vue/setup' | 'vue/rules' | 'react/setup' | 'react/rules' | 'react/type-aware-rules' | 'react-native/setup' | 'react-native/rules' | 'next/setup' | 'next/rules' | 'effector/setup' | 'effector/rules' | 'unocss' | 'tailwindcss' | 'jsonc/setup' | 'jsonc/rules' | 'sort/package-json' | 'sort/tsconfig-json' | 'pnpm/package-json' | 'pnpm/pnpm-workspace-yaml' | 'pnpm/pnpm-workspace-yaml-sort' | 'yaml/setup' | 'yaml/rules' | 'toml/setup' | 'toml/rules' | 'markdown/setup' | 'markdown/processor' | 'markdown/parser' | 'markdown/disables' | 'formatter/setup' | 'formatter/css' | 'formatter/scss' | 'formatter/html' | 'formatter/xml' | 'formatter/svg' | 'formatter/markdown' | 'disables/scripts' | 'disables/dts' | 'disables/cjs';
|
|
17802
18181
|
//#endregion
|
|
17803
18182
|
//#region src/vendor/prettier-types.d.ts
|
|
17804
18183
|
/**
|
|
@@ -18139,6 +18518,32 @@ interface OptionsRegExp {
|
|
|
18139
18518
|
interface OptionsIsInEditor {
|
|
18140
18519
|
isInEditor?: boolean;
|
|
18141
18520
|
}
|
|
18521
|
+
interface OptionsPnpm extends OptionsIsInEditor {
|
|
18522
|
+
/**
|
|
18523
|
+
* Requires catalogs usage
|
|
18524
|
+
*
|
|
18525
|
+
* Detects automatically based if `catalogs` is used in the pnpm-workspace.yaml file
|
|
18526
|
+
*/
|
|
18527
|
+
catalogs?: boolean;
|
|
18528
|
+
/**
|
|
18529
|
+
* Enable linting for package.json, will install the jsonc parser
|
|
18530
|
+
*
|
|
18531
|
+
* @default true
|
|
18532
|
+
*/
|
|
18533
|
+
json?: boolean;
|
|
18534
|
+
/**
|
|
18535
|
+
* Enable linting for pnpm-workspace.yaml, will install the yaml parser
|
|
18536
|
+
*
|
|
18537
|
+
* @default true
|
|
18538
|
+
*/
|
|
18539
|
+
yaml?: boolean;
|
|
18540
|
+
/**
|
|
18541
|
+
* Sort entries in pnpm-workspace.yaml
|
|
18542
|
+
*
|
|
18543
|
+
* @default false
|
|
18544
|
+
*/
|
|
18545
|
+
sort?: boolean;
|
|
18546
|
+
}
|
|
18142
18547
|
interface OptionsUnoCSS extends OptionsOverrides {
|
|
18143
18548
|
/**
|
|
18144
18549
|
* Enable attributify support.
|
|
@@ -18151,6 +18556,9 @@ interface OptionsUnoCSS extends OptionsOverrides {
|
|
|
18151
18556
|
*/
|
|
18152
18557
|
strict?: boolean;
|
|
18153
18558
|
}
|
|
18559
|
+
interface OptionsReact extends OptionsOverrides {
|
|
18560
|
+
reactCompiler?: boolean;
|
|
18561
|
+
}
|
|
18154
18562
|
interface OptionsTailwindCSS extends OptionsOverrides {
|
|
18155
18563
|
/**
|
|
18156
18564
|
* The path to the entry file of the css based tailwind config
|
|
@@ -18183,6 +18591,18 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
|
18183
18591
|
* Core rules. Can't be disabled.
|
|
18184
18592
|
*/
|
|
18185
18593
|
javascript?: OptionsOverrides;
|
|
18594
|
+
/**
|
|
18595
|
+
* Enable Node.js rules
|
|
18596
|
+
*
|
|
18597
|
+
* @default true
|
|
18598
|
+
*/
|
|
18599
|
+
node?: boolean;
|
|
18600
|
+
/**
|
|
18601
|
+
* Enable JSDoc rules
|
|
18602
|
+
*
|
|
18603
|
+
* @default true
|
|
18604
|
+
*/
|
|
18605
|
+
jsdoc?: boolean;
|
|
18186
18606
|
/**
|
|
18187
18607
|
* Enable TypeScript support.
|
|
18188
18608
|
*
|
|
@@ -18278,7 +18698,7 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
|
18278
18698
|
*
|
|
18279
18699
|
* @default auto-detect based on the dependencies
|
|
18280
18700
|
*/
|
|
18281
|
-
react?: boolean |
|
|
18701
|
+
react?: boolean | OptionsReact;
|
|
18282
18702
|
/**
|
|
18283
18703
|
* Enable next rules.
|
|
18284
18704
|
*
|
|
@@ -18335,7 +18755,7 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
|
|
|
18335
18755
|
* @experimental
|
|
18336
18756
|
* @default false
|
|
18337
18757
|
*/
|
|
18338
|
-
pnpm?: boolean;
|
|
18758
|
+
pnpm?: boolean | OptionsPnpm;
|
|
18339
18759
|
/**
|
|
18340
18760
|
* Use external formatters to format files.
|
|
18341
18761
|
*
|
|
@@ -18403,6 +18823,10 @@ declare const defaultPluginRenaming: {
|
|
|
18403
18823
|
*/
|
|
18404
18824
|
declare function config(options?: OptionsConfig & Omit<TypedFlatConfigItem, 'files' | 'ignores'>, ...userConfigs: Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | FlatConfigComposer<any, any> | Linter.Config[]>[]): FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
|
|
18405
18825
|
//#endregion
|
|
18826
|
+
//#region src/config-presets.d.ts
|
|
18827
|
+
declare const CONFIG_PRESET_FULL_ON: OptionsConfig;
|
|
18828
|
+
declare const CONFIG_PRESET_FULL_OFF: OptionsConfig;
|
|
18829
|
+
//#endregion
|
|
18406
18830
|
//#region src/configs/command.d.ts
|
|
18407
18831
|
declare function command(): Promise<TypedFlatConfigItem[]>;
|
|
18408
18832
|
//#endregion
|
|
@@ -18454,10 +18878,10 @@ declare function node(): Promise<TypedFlatConfigItem[]>;
|
|
|
18454
18878
|
declare function perfectionist(): Promise<TypedFlatConfigItem[]>;
|
|
18455
18879
|
//#endregion
|
|
18456
18880
|
//#region src/configs/pnpm.d.ts
|
|
18457
|
-
declare function pnpm(options:
|
|
18881
|
+
declare function pnpm(options: OptionsPnpm): Promise<TypedFlatConfigItem[]>;
|
|
18458
18882
|
//#endregion
|
|
18459
18883
|
//#region src/configs/react.d.ts
|
|
18460
|
-
declare function react(options?: OptionsTypeScriptParserOptions & OptionsTypeScriptWithTypes &
|
|
18884
|
+
declare function react(options?: OptionsTypeScriptParserOptions & OptionsTypeScriptWithTypes & OptionsReact & OptionsFiles): Promise<TypedFlatConfigItem[]>;
|
|
18461
18885
|
//#endregion
|
|
18462
18886
|
//#region src/configs/react-native.d.ts
|
|
18463
18887
|
declare function reactNative(options?: OptionsReactNative & OptionsFiles): Promise<TypedFlatConfigItem[]>;
|
|
@@ -18595,4 +19019,4 @@ type ResolvedOptions<T> = T extends boolean ? never : NonNullable<T>;
|
|
|
18595
19019
|
declare function resolveSubOptions<C extends Record<string, any>, K extends keyof C>(options: C, key: K): ResolvedOptions<C[K]>;
|
|
18596
19020
|
declare function getOverrides<C extends Record<string, any>, K extends keyof C>(options: C, key: K): Partial<Linter.RulesRecord & RuleOptions>;
|
|
18597
19021
|
//#endregion
|
|
18598
|
-
export { Awaitable, type ConfigNames, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, OptionsComponentExts, OptionsConfig, OptionsEffector, OptionsFiles, OptionsFormatters, OptionsHasTypeScript, OptionsIsInEditor, OptionsJSX, OptionsJSXA11y, OptionsOverrides, OptionsProjectType, OptionsReactNative, OptionsRegExp, OptionsStylistic, OptionsTailwindCSS, OptionsTypeScriptErasableOnly, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnicorn, OptionsUnoCSS, OptionsVue, ResolvedOptions, Rules, StylisticConfig, StylisticConfigDefaults, StylisticOptions, TypedFlatConfigItem, combine, command, comments, config, config as default, defaultPluginRenaming, disables, effector, ensurePackages, formatters, getOverrides, ignores, imports, interopDefault, isInEditorEnv, isInGitHooksOrLintStaged, isPackageInScope, javascript, jsdoc, jsonc, jsx, markdown, nextjs, node, parserPlain, perfectionist, pnpm, react, reactNative, regexp, renameRules, resolveSubOptions, sortPackageJson, sortTsconfig, stylistic, tailwindcss, test, toml, typescript, unicorn, unocss, vue, yaml };
|
|
19022
|
+
export { Awaitable, CONFIG_PRESET_FULL_OFF, CONFIG_PRESET_FULL_ON, type ConfigNames, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, OptionsComponentExts, OptionsConfig, OptionsEffector, OptionsFiles, OptionsFormatters, OptionsHasTypeScript, OptionsIsInEditor, OptionsJSX, OptionsJSXA11y, OptionsOverrides, OptionsPnpm, OptionsProjectType, OptionsReact, OptionsReactNative, OptionsRegExp, OptionsStylistic, OptionsTailwindCSS, OptionsTypeScriptErasableOnly, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnicorn, OptionsUnoCSS, OptionsVue, ResolvedOptions, Rules, StylisticConfig, StylisticConfigDefaults, StylisticOptions, TypedFlatConfigItem, combine, command, comments, config, config as default, defaultPluginRenaming, disables, effector, ensurePackages, formatters, getOverrides, ignores, imports, interopDefault, isInEditorEnv, isInGitHooksOrLintStaged, isPackageInScope, javascript, jsdoc, jsonc, jsx, markdown, nextjs, node, parserPlain, perfectionist, pnpm, react, reactNative, regexp, renameRules, resolveSubOptions, sortPackageJson, sortTsconfig, stylistic, tailwindcss, test, toml, typescript, unicorn, unocss, vue, yaml };
|