@nicksp/eslint-config 1.5.3 → 1.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +878 -462
- package/dist/index.mjs +1 -1
- package/package.json +33 -33
package/dist/index.d.mts
CHANGED
|
@@ -66,7 +66,7 @@ interface RuleOptions {
|
|
|
66
66
|
*/
|
|
67
67
|
'@next/next/inline-script-id'?: Linter.RuleEntry<[]>;
|
|
68
68
|
/**
|
|
69
|
-
* Prefer
|
|
69
|
+
* Prefer `@next/third-parties/google` when using the inline script for Google Analytics and Tag Manager.
|
|
70
70
|
* @see https://nextjs.org/docs/messages/next-script-for-ga
|
|
71
71
|
*/
|
|
72
72
|
'@next/next/next-script-for-ga'?: Linter.RuleEntry<[]>;
|
|
@@ -597,6 +597,11 @@ interface RuleOptions {
|
|
|
597
597
|
* @see https://typescript-eslint.io/rules/no-unused-expressions
|
|
598
598
|
*/
|
|
599
599
|
'@typescript-eslint/no-unused-expressions'?: Linter.RuleEntry<TypescriptEslintNoUnusedExpressions>;
|
|
600
|
+
/**
|
|
601
|
+
* Disallow unused private class members
|
|
602
|
+
* @see https://typescript-eslint.io/rules/no-unused-private-class-members
|
|
603
|
+
*/
|
|
604
|
+
'@typescript-eslint/no-unused-private-class-members'?: Linter.RuleEntry<[]>;
|
|
600
605
|
/**
|
|
601
606
|
* Disallow unused variables
|
|
602
607
|
* @see https://typescript-eslint.io/rules/no-unused-vars
|
|
@@ -612,6 +617,11 @@ interface RuleOptions {
|
|
|
612
617
|
* @see https://typescript-eslint.io/rules/no-useless-constructor
|
|
613
618
|
*/
|
|
614
619
|
'@typescript-eslint/no-useless-constructor'?: Linter.RuleEntry<[]>;
|
|
620
|
+
/**
|
|
621
|
+
* Disallow default values that will never be used
|
|
622
|
+
* @see https://typescript-eslint.io/rules/no-useless-default-assignment
|
|
623
|
+
*/
|
|
624
|
+
'@typescript-eslint/no-useless-default-assignment'?: Linter.RuleEntry<[]>;
|
|
615
625
|
/**
|
|
616
626
|
* Disallow empty exports that don't change anything in a module file
|
|
617
627
|
* @see https://typescript-eslint.io/rules/no-useless-empty-export
|
|
@@ -1443,6 +1453,11 @@ interface RuleOptions {
|
|
|
1443
1453
|
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/consistent-type-specifier-style/README.md
|
|
1444
1454
|
*/
|
|
1445
1455
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
|
|
1456
|
+
/**
|
|
1457
|
+
* Ensure all exports appear after other statements.
|
|
1458
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/exports-last/README.md
|
|
1459
|
+
*/
|
|
1460
|
+
'import/exports-last'?: Linter.RuleEntry<[]>;
|
|
1446
1461
|
/**
|
|
1447
1462
|
* Ensure all imports appear before other statements.
|
|
1448
1463
|
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/first/README.md
|
|
@@ -1745,6 +1760,11 @@ interface RuleOptions {
|
|
|
1745
1760
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-property-type.md#repos-sticky-header
|
|
1746
1761
|
*/
|
|
1747
1762
|
'jsdoc/require-property-type'?: Linter.RuleEntry<[]>;
|
|
1763
|
+
/**
|
|
1764
|
+
* Requires that Promise rejections are documented with `@rejects` tags.
|
|
1765
|
+
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-rejects.md#repos-sticky-header
|
|
1766
|
+
*/
|
|
1767
|
+
'jsdoc/require-rejects'?: Linter.RuleEntry<JsdocRequireRejects>;
|
|
1748
1768
|
/**
|
|
1749
1769
|
* Requires that returns are documented with `@returns`.
|
|
1750
1770
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-returns.md#repos-sticky-header
|
|
@@ -3515,6 +3535,11 @@ interface RuleOptions {
|
|
|
3515
3535
|
* @see https://perfectionist.dev/rules/sort-enums
|
|
3516
3536
|
*/
|
|
3517
3537
|
'perfectionist/sort-enums'?: Linter.RuleEntry<PerfectionistSortEnums>;
|
|
3538
|
+
/**
|
|
3539
|
+
* Enforce sorted export attributes.
|
|
3540
|
+
* @see https://perfectionist.dev/rules/sort-export-attributes
|
|
3541
|
+
*/
|
|
3542
|
+
'perfectionist/sort-export-attributes'?: Linter.RuleEntry<PerfectionistSortExportAttributes>;
|
|
3518
3543
|
/**
|
|
3519
3544
|
* Enforce sorted exports.
|
|
3520
3545
|
* @see https://perfectionist.dev/rules/sort-exports
|
|
@@ -3525,6 +3550,11 @@ interface RuleOptions {
|
|
|
3525
3550
|
* @see https://perfectionist.dev/rules/sort-heritage-clauses
|
|
3526
3551
|
*/
|
|
3527
3552
|
'perfectionist/sort-heritage-clauses'?: Linter.RuleEntry<PerfectionistSortHeritageClauses>;
|
|
3553
|
+
/**
|
|
3554
|
+
* Enforce sorted import attributes.
|
|
3555
|
+
* @see https://perfectionist.dev/rules/sort-import-attributes
|
|
3556
|
+
*/
|
|
3557
|
+
'perfectionist/sort-import-attributes'?: Linter.RuleEntry<PerfectionistSortImportAttributes>;
|
|
3528
3558
|
/**
|
|
3529
3559
|
* Enforce sorted imports.
|
|
3530
3560
|
* @see https://perfectionist.dev/rules/sort-imports
|
|
@@ -4094,6 +4124,7 @@ interface RuleOptions {
|
|
|
4094
4124
|
/**
|
|
4095
4125
|
* Disallow certain props on components.
|
|
4096
4126
|
* @see https://eslint-react.xyz/docs/rules/no-forbidden-props
|
|
4127
|
+
* @deprecated
|
|
4097
4128
|
*/
|
|
4098
4129
|
'react-x/no-forbidden-props'?: Linter.RuleEntry<ReactXNoForbiddenProps>;
|
|
4099
4130
|
/**
|
|
@@ -4215,7 +4246,7 @@ interface RuleOptions {
|
|
|
4215
4246
|
* Prevents using referential-type values as default props in object destructuring.
|
|
4216
4247
|
* @see https://eslint-react.xyz/docs/rules/no-unstable-default-props
|
|
4217
4248
|
*/
|
|
4218
|
-
'react-x/no-unstable-default-props'?: Linter.RuleEntry<
|
|
4249
|
+
'react-x/no-unstable-default-props'?: Linter.RuleEntry<ReactXNoUnstableDefaultProps>;
|
|
4219
4250
|
/**
|
|
4220
4251
|
* Warns unused class component methods and properties.
|
|
4221
4252
|
* @see https://eslint-react.xyz/docs/rules/no-unused-class-component-members
|
|
@@ -4799,6 +4830,11 @@ interface RuleOptions {
|
|
|
4799
4830
|
* @deprecated
|
|
4800
4831
|
*/
|
|
4801
4832
|
'template-tag-spacing'?: Linter.RuleEntry<TemplateTagSpacing>;
|
|
4833
|
+
/**
|
|
4834
|
+
* enforce using `.each` or `.for` consistently
|
|
4835
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-each-for.md
|
|
4836
|
+
*/
|
|
4837
|
+
'test/consistent-each-for'?: Linter.RuleEntry<TestConsistentEachFor>;
|
|
4802
4838
|
/**
|
|
4803
4839
|
* require test file pattern
|
|
4804
4840
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-filename.md
|
|
@@ -4945,6 +4981,11 @@ interface RuleOptions {
|
|
|
4945
4981
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-return-statement.md
|
|
4946
4982
|
*/
|
|
4947
4983
|
'test/no-test-return-statement'?: Linter.RuleEntry<[]>;
|
|
4984
|
+
/**
|
|
4985
|
+
* Disallow unnecessary async function wrapper for expected promises
|
|
4986
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-unneeded-async-expect-function.md
|
|
4987
|
+
*/
|
|
4988
|
+
'test/no-unneeded-async-expect-function'?: Linter.RuleEntry<[]>;
|
|
4948
4989
|
/**
|
|
4949
4990
|
* Enforce padding around `afterAll` blocks
|
|
4950
4991
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-after-all-blocks.md
|
|
@@ -5021,7 +5062,7 @@ interface RuleOptions {
|
|
|
5021
5062
|
*/
|
|
5022
5063
|
'test/prefer-each'?: Linter.RuleEntry<[]>;
|
|
5023
5064
|
/**
|
|
5024
|
-
* enforce using the built-in
|
|
5065
|
+
* enforce using the built-in equality matchers
|
|
5025
5066
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-equality-matcher.md
|
|
5026
5067
|
*/
|
|
5027
5068
|
'test/prefer-equality-matcher'?: Linter.RuleEntry<[]>;
|
|
@@ -5115,6 +5156,11 @@ interface RuleOptions {
|
|
|
5115
5156
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-contain.md
|
|
5116
5157
|
*/
|
|
5117
5158
|
'test/prefer-to-contain'?: Linter.RuleEntry<[]>;
|
|
5159
|
+
/**
|
|
5160
|
+
* Suggest using `toHaveBeenCalledTimes()`
|
|
5161
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-been-called-times.md
|
|
5162
|
+
*/
|
|
5163
|
+
'test/prefer-to-have-been-called-times'?: Linter.RuleEntry<[]>;
|
|
5118
5164
|
/**
|
|
5119
5165
|
* enforce using toHaveLength()
|
|
5120
5166
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-length.md
|
|
@@ -5130,6 +5176,11 @@ interface RuleOptions {
|
|
|
5130
5176
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-vi-mocked.md
|
|
5131
5177
|
*/
|
|
5132
5178
|
'test/prefer-vi-mocked'?: Linter.RuleEntry<[]>;
|
|
5179
|
+
/**
|
|
5180
|
+
* ensure that every `expect.poll` call is awaited
|
|
5181
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-awaited-expect-poll.md
|
|
5182
|
+
*/
|
|
5183
|
+
'test/require-awaited-expect-poll'?: Linter.RuleEntry<[]>;
|
|
5133
5184
|
/**
|
|
5134
5185
|
* require setup and teardown to be within a hook
|
|
5135
5186
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
|
|
@@ -7628,6 +7679,7 @@ type JsdocCheckExamples = [] | [{
|
|
|
7628
7679
|
}];
|
|
7629
7680
|
// ----- jsdoc/check-indentation -----
|
|
7630
7681
|
type JsdocCheckIndentation = [] | [{
|
|
7682
|
+
allowIndentedSections?: boolean;
|
|
7631
7683
|
excludeTags?: string[];
|
|
7632
7684
|
}];
|
|
7633
7685
|
// ----- jsdoc/check-line-alignment -----
|
|
@@ -7974,6 +8026,14 @@ type JsdocRequireParamType = [] | [{
|
|
|
7974
8026
|
defaultDestructuredRootType?: string;
|
|
7975
8027
|
setDefaultDestructuredRootType?: boolean;
|
|
7976
8028
|
}];
|
|
8029
|
+
// ----- jsdoc/require-rejects -----
|
|
8030
|
+
type JsdocRequireRejects = [] | [{
|
|
8031
|
+
contexts?: (string | {
|
|
8032
|
+
comment?: string;
|
|
8033
|
+
context?: string;
|
|
8034
|
+
})[];
|
|
8035
|
+
exemptedBy?: string[];
|
|
8036
|
+
}];
|
|
7977
8037
|
// ----- jsdoc/require-returns -----
|
|
7978
8038
|
type JsdocRequireReturns = [] | [{
|
|
7979
8039
|
checkConstructors?: boolean;
|
|
@@ -8064,6 +8124,9 @@ type JsdocSortTags = [] | [{
|
|
|
8064
8124
|
linesBetween?: number;
|
|
8065
8125
|
reportIntraTagGroupSpacing?: boolean;
|
|
8066
8126
|
reportTagGroupSpacing?: boolean;
|
|
8127
|
+
tagExceptions?: {
|
|
8128
|
+
[k: string]: number;
|
|
8129
|
+
};
|
|
8067
8130
|
tagSequence?: {
|
|
8068
8131
|
tags?: string[];
|
|
8069
8132
|
}[];
|
|
@@ -9880,27 +9943,25 @@ type PaddingLineBetweenStatements = {
|
|
|
9880
9943
|
// ----- perfectionist/sort-array-includes -----
|
|
9881
9944
|
type PerfectionistSortArrayIncludes = {
|
|
9882
9945
|
fallbackSort?: {
|
|
9946
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9883
9947
|
order?: ("asc" | "desc");
|
|
9884
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9885
9948
|
};
|
|
9949
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9886
9950
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
9887
9951
|
ignoreCase?: boolean;
|
|
9888
9952
|
alphabet?: string;
|
|
9889
9953
|
locales?: (string | string[]);
|
|
9890
9954
|
order?: ("asc" | "desc");
|
|
9891
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9892
|
-
groupKind?: ("mixed" | "literals-first" | "spreads-first");
|
|
9893
9955
|
customGroups?: ({
|
|
9894
|
-
newlinesInside?: (("always" | "never") | number);
|
|
9895
9956
|
fallbackSort?: {
|
|
9957
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9896
9958
|
order?: ("asc" | "desc");
|
|
9897
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9898
9959
|
};
|
|
9960
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9899
9961
|
groupName: string;
|
|
9962
|
+
newlinesInside?: ("ignore" | number);
|
|
9900
9963
|
order?: ("asc" | "desc");
|
|
9901
|
-
|
|
9902
|
-
anyOf?: {
|
|
9903
|
-
selector?: ("literal" | "spread");
|
|
9964
|
+
anyOf: {
|
|
9904
9965
|
elementNamePattern?: (({
|
|
9905
9966
|
pattern: string;
|
|
9906
9967
|
flags?: string;
|
|
@@ -9908,17 +9969,17 @@ type PerfectionistSortArrayIncludes = {
|
|
|
9908
9969
|
pattern: string;
|
|
9909
9970
|
flags?: string;
|
|
9910
9971
|
} | string));
|
|
9972
|
+
selector?: ("literal" | "spread");
|
|
9911
9973
|
}[];
|
|
9912
9974
|
} | {
|
|
9913
|
-
newlinesInside?: (("always" | "never") | number);
|
|
9914
9975
|
fallbackSort?: {
|
|
9976
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9915
9977
|
order?: ("asc" | "desc");
|
|
9916
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9917
9978
|
};
|
|
9979
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9918
9980
|
groupName: string;
|
|
9981
|
+
newlinesInside?: ("ignore" | number);
|
|
9919
9982
|
order?: ("asc" | "desc");
|
|
9920
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9921
|
-
selector?: ("literal" | "spread");
|
|
9922
9983
|
elementNamePattern?: (({
|
|
9923
9984
|
pattern: string;
|
|
9924
9985
|
flags?: string;
|
|
@@ -9926,7 +9987,19 @@ type PerfectionistSortArrayIncludes = {
|
|
|
9926
9987
|
pattern: string;
|
|
9927
9988
|
flags?: string;
|
|
9928
9989
|
} | string));
|
|
9990
|
+
selector?: ("literal" | "spread");
|
|
9929
9991
|
})[];
|
|
9992
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
9993
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
9994
|
+
newlinesBetween: ("ignore" | number);
|
|
9995
|
+
} | {
|
|
9996
|
+
group: (string | [string, ...(string)[]]);
|
|
9997
|
+
commentAbove?: string;
|
|
9998
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9999
|
+
newlinesInside?: ("ignore" | number);
|
|
10000
|
+
order?: ("asc" | "desc");
|
|
10001
|
+
})[];
|
|
10002
|
+
newlinesBetween?: ("ignore" | number);
|
|
9930
10003
|
useConfigurationIf?: {
|
|
9931
10004
|
allNamesMatchPattern?: (({
|
|
9932
10005
|
pattern: string;
|
|
@@ -9959,51 +10032,46 @@ type PerfectionistSortArrayIncludes = {
|
|
|
9959
10032
|
} | string)));
|
|
9960
10033
|
});
|
|
9961
10034
|
partitionByNewLine?: boolean;
|
|
9962
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9963
|
-
groups?: (string | string[] | {
|
|
9964
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
9965
|
-
commentAbove?: string;
|
|
9966
|
-
})[];
|
|
9967
10035
|
}[];
|
|
9968
10036
|
// ----- perfectionist/sort-classes -----
|
|
9969
10037
|
type PerfectionistSortClasses = [] | [{
|
|
9970
10038
|
fallbackSort?: {
|
|
10039
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9971
10040
|
order?: ("asc" | "desc");
|
|
9972
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9973
10041
|
};
|
|
10042
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9974
10043
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
9975
10044
|
ignoreCase?: boolean;
|
|
9976
10045
|
alphabet?: string;
|
|
9977
10046
|
locales?: (string | string[]);
|
|
9978
10047
|
order?: ("asc" | "desc");
|
|
9979
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9980
10048
|
customGroups?: ({
|
|
9981
|
-
newlinesInside?: (("always" | "never") | number);
|
|
9982
10049
|
fallbackSort?: {
|
|
10050
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9983
10051
|
order?: ("asc" | "desc");
|
|
9984
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9985
10052
|
};
|
|
10053
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
9986
10054
|
groupName: string;
|
|
10055
|
+
newlinesInside?: ("ignore" | number);
|
|
9987
10056
|
order?: ("asc" | "desc");
|
|
9988
|
-
|
|
9989
|
-
|
|
9990
|
-
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
9991
|
-
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
9992
|
-
decoratorNamePattern?: (({
|
|
10057
|
+
anyOf: {
|
|
10058
|
+
elementNamePattern?: (({
|
|
9993
10059
|
pattern: string;
|
|
9994
10060
|
flags?: string;
|
|
9995
10061
|
} | string)[] | ({
|
|
9996
10062
|
pattern: string;
|
|
9997
10063
|
flags?: string;
|
|
9998
10064
|
} | string));
|
|
9999
|
-
|
|
10065
|
+
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
10066
|
+
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
10067
|
+
decoratorNamePattern?: (({
|
|
10000
10068
|
pattern: string;
|
|
10001
10069
|
flags?: string;
|
|
10002
10070
|
} | string)[] | ({
|
|
10003
10071
|
pattern: string;
|
|
10004
10072
|
flags?: string;
|
|
10005
10073
|
} | string));
|
|
10006
|
-
|
|
10074
|
+
elementValuePattern?: (({
|
|
10007
10075
|
pattern: string;
|
|
10008
10076
|
flags?: string;
|
|
10009
10077
|
} | string)[] | ({
|
|
@@ -10012,31 +10080,31 @@ type PerfectionistSortClasses = [] | [{
|
|
|
10012
10080
|
} | string));
|
|
10013
10081
|
}[];
|
|
10014
10082
|
} | {
|
|
10015
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10016
10083
|
fallbackSort?: {
|
|
10084
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10017
10085
|
order?: ("asc" | "desc");
|
|
10018
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10019
10086
|
};
|
|
10087
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10020
10088
|
groupName: string;
|
|
10089
|
+
newlinesInside?: ("ignore" | number);
|
|
10021
10090
|
order?: ("asc" | "desc");
|
|
10022
|
-
|
|
10023
|
-
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
10024
|
-
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
10025
|
-
decoratorNamePattern?: (({
|
|
10091
|
+
elementNamePattern?: (({
|
|
10026
10092
|
pattern: string;
|
|
10027
10093
|
flags?: string;
|
|
10028
10094
|
} | string)[] | ({
|
|
10029
10095
|
pattern: string;
|
|
10030
10096
|
flags?: string;
|
|
10031
10097
|
} | string));
|
|
10032
|
-
|
|
10098
|
+
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
10099
|
+
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method");
|
|
10100
|
+
decoratorNamePattern?: (({
|
|
10033
10101
|
pattern: string;
|
|
10034
10102
|
flags?: string;
|
|
10035
10103
|
} | string)[] | ({
|
|
10036
10104
|
pattern: string;
|
|
10037
10105
|
flags?: string;
|
|
10038
10106
|
} | string));
|
|
10039
|
-
|
|
10107
|
+
elementValuePattern?: (({
|
|
10040
10108
|
pattern: string;
|
|
10041
10109
|
flags?: string;
|
|
10042
10110
|
} | string)[] | ({
|
|
@@ -10044,6 +10112,17 @@ type PerfectionistSortClasses = [] | [{
|
|
|
10044
10112
|
flags?: string;
|
|
10045
10113
|
} | string));
|
|
10046
10114
|
})[];
|
|
10115
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
10116
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
10117
|
+
newlinesBetween: ("ignore" | number);
|
|
10118
|
+
} | {
|
|
10119
|
+
group: (string | [string, ...(string)[]]);
|
|
10120
|
+
commentAbove?: string;
|
|
10121
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10122
|
+
newlinesInside?: ("ignore" | number);
|
|
10123
|
+
order?: ("asc" | "desc");
|
|
10124
|
+
})[];
|
|
10125
|
+
newlinesBetween?: ("ignore" | number);
|
|
10047
10126
|
ignoreCallbackDependenciesPatterns?: (({
|
|
10048
10127
|
pattern: string;
|
|
10049
10128
|
flags?: string;
|
|
@@ -10074,24 +10153,65 @@ type PerfectionistSortClasses = [] | [{
|
|
|
10074
10153
|
} | string)));
|
|
10075
10154
|
});
|
|
10076
10155
|
partitionByNewLine?: boolean;
|
|
10077
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10078
|
-
groups?: (string | string[] | {
|
|
10079
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10080
|
-
commentAbove?: string;
|
|
10081
|
-
})[];
|
|
10082
10156
|
}];
|
|
10083
10157
|
// ----- perfectionist/sort-decorators -----
|
|
10084
|
-
type PerfectionistSortDecorators =
|
|
10158
|
+
type PerfectionistSortDecorators = {
|
|
10085
10159
|
fallbackSort?: {
|
|
10160
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10086
10161
|
order?: ("asc" | "desc");
|
|
10087
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10088
10162
|
};
|
|
10163
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10089
10164
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10090
10165
|
ignoreCase?: boolean;
|
|
10091
10166
|
alphabet?: string;
|
|
10092
10167
|
locales?: (string | string[]);
|
|
10093
10168
|
order?: ("asc" | "desc");
|
|
10094
|
-
|
|
10169
|
+
customGroups?: ({
|
|
10170
|
+
fallbackSort?: {
|
|
10171
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10172
|
+
order?: ("asc" | "desc");
|
|
10173
|
+
};
|
|
10174
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10175
|
+
groupName: string;
|
|
10176
|
+
newlinesInside?: ("ignore" | number);
|
|
10177
|
+
order?: ("asc" | "desc");
|
|
10178
|
+
anyOf: {
|
|
10179
|
+
elementNamePattern?: (({
|
|
10180
|
+
pattern: string;
|
|
10181
|
+
flags?: string;
|
|
10182
|
+
} | string)[] | ({
|
|
10183
|
+
pattern: string;
|
|
10184
|
+
flags?: string;
|
|
10185
|
+
} | string));
|
|
10186
|
+
}[];
|
|
10187
|
+
} | {
|
|
10188
|
+
fallbackSort?: {
|
|
10189
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10190
|
+
order?: ("asc" | "desc");
|
|
10191
|
+
};
|
|
10192
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10193
|
+
groupName: string;
|
|
10194
|
+
newlinesInside?: ("ignore" | number);
|
|
10195
|
+
order?: ("asc" | "desc");
|
|
10196
|
+
elementNamePattern?: (({
|
|
10197
|
+
pattern: string;
|
|
10198
|
+
flags?: string;
|
|
10199
|
+
} | string)[] | ({
|
|
10200
|
+
pattern: string;
|
|
10201
|
+
flags?: string;
|
|
10202
|
+
} | string));
|
|
10203
|
+
})[];
|
|
10204
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
10205
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
10206
|
+
newlinesBetween: ("ignore" | number);
|
|
10207
|
+
} | {
|
|
10208
|
+
group: (string | [string, ...(string)[]]);
|
|
10209
|
+
commentAbove?: string;
|
|
10210
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10211
|
+
newlinesInside?: ("ignore" | number);
|
|
10212
|
+
order?: ("asc" | "desc");
|
|
10213
|
+
})[];
|
|
10214
|
+
newlinesBetween?: ("ignore" | number);
|
|
10095
10215
|
sortOnParameters?: boolean;
|
|
10096
10216
|
sortOnProperties?: boolean;
|
|
10097
10217
|
sortOnAccessors?: boolean;
|
|
@@ -10119,46 +10239,38 @@ type PerfectionistSortDecorators = [] | [{
|
|
|
10119
10239
|
flags?: string;
|
|
10120
10240
|
} | string)));
|
|
10121
10241
|
});
|
|
10122
|
-
|
|
10123
|
-
|
|
10124
|
-
};
|
|
10125
|
-
groups?: (string | string[] | {
|
|
10126
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10127
|
-
commentAbove?: string;
|
|
10128
|
-
})[];
|
|
10129
|
-
}];
|
|
10242
|
+
partitionByNewLine?: boolean;
|
|
10243
|
+
}[];
|
|
10130
10244
|
// ----- perfectionist/sort-enums -----
|
|
10131
10245
|
type PerfectionistSortEnums = [] | [{
|
|
10132
10246
|
fallbackSort?: {
|
|
10247
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10133
10248
|
order?: ("asc" | "desc");
|
|
10134
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10135
10249
|
};
|
|
10250
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10136
10251
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10137
10252
|
ignoreCase?: boolean;
|
|
10138
10253
|
alphabet?: string;
|
|
10139
10254
|
locales?: (string | string[]);
|
|
10140
10255
|
order?: ("asc" | "desc");
|
|
10141
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10142
10256
|
customGroups?: ({
|
|
10143
|
-
[k: string]: (string | string[]) | undefined;
|
|
10144
|
-
} | ({
|
|
10145
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10146
10257
|
fallbackSort?: {
|
|
10258
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10147
10259
|
order?: ("asc" | "desc");
|
|
10148
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10149
10260
|
};
|
|
10261
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10150
10262
|
groupName: string;
|
|
10263
|
+
newlinesInside?: ("ignore" | number);
|
|
10151
10264
|
order?: ("asc" | "desc");
|
|
10152
|
-
|
|
10153
|
-
|
|
10154
|
-
elementValuePattern?: (({
|
|
10265
|
+
anyOf: {
|
|
10266
|
+
elementNamePattern?: (({
|
|
10155
10267
|
pattern: string;
|
|
10156
10268
|
flags?: string;
|
|
10157
10269
|
} | string)[] | ({
|
|
10158
10270
|
pattern: string;
|
|
10159
10271
|
flags?: string;
|
|
10160
10272
|
} | string));
|
|
10161
|
-
|
|
10273
|
+
elementValuePattern?: (({
|
|
10162
10274
|
pattern: string;
|
|
10163
10275
|
flags?: string;
|
|
10164
10276
|
} | string)[] | ({
|
|
@@ -10167,31 +10279,41 @@ type PerfectionistSortEnums = [] | [{
|
|
|
10167
10279
|
} | string));
|
|
10168
10280
|
}[];
|
|
10169
10281
|
} | {
|
|
10170
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10171
10282
|
fallbackSort?: {
|
|
10283
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10172
10284
|
order?: ("asc" | "desc");
|
|
10173
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10174
10285
|
};
|
|
10286
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10175
10287
|
groupName: string;
|
|
10288
|
+
newlinesInside?: ("ignore" | number);
|
|
10176
10289
|
order?: ("asc" | "desc");
|
|
10177
|
-
|
|
10178
|
-
elementValuePattern?: (({
|
|
10290
|
+
elementNamePattern?: (({
|
|
10179
10291
|
pattern: string;
|
|
10180
10292
|
flags?: string;
|
|
10181
10293
|
} | string)[] | ({
|
|
10182
10294
|
pattern: string;
|
|
10183
10295
|
flags?: string;
|
|
10184
10296
|
} | string));
|
|
10185
|
-
|
|
10297
|
+
elementValuePattern?: (({
|
|
10186
10298
|
pattern: string;
|
|
10187
10299
|
flags?: string;
|
|
10188
10300
|
} | string)[] | ({
|
|
10189
10301
|
pattern: string;
|
|
10190
10302
|
flags?: string;
|
|
10191
10303
|
} | string));
|
|
10192
|
-
})[]
|
|
10193
|
-
|
|
10194
|
-
|
|
10304
|
+
})[];
|
|
10305
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
10306
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
10307
|
+
newlinesBetween: ("ignore" | number);
|
|
10308
|
+
} | {
|
|
10309
|
+
group: (string | [string, ...(string)[]]);
|
|
10310
|
+
commentAbove?: string;
|
|
10311
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10312
|
+
newlinesInside?: ("ignore" | number);
|
|
10313
|
+
order?: ("asc" | "desc");
|
|
10314
|
+
})[];
|
|
10315
|
+
newlinesBetween?: ("ignore" | number);
|
|
10316
|
+
sortByValue?: ("always" | "ifNumericEnum" | "never");
|
|
10195
10317
|
partitionByComment?: (boolean | (({
|
|
10196
10318
|
pattern: string;
|
|
10197
10319
|
flags?: string;
|
|
@@ -10215,37 +10337,29 @@ type PerfectionistSortEnums = [] | [{
|
|
|
10215
10337
|
} | string)));
|
|
10216
10338
|
});
|
|
10217
10339
|
partitionByNewLine?: boolean;
|
|
10218
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10219
|
-
groups?: (string | string[] | {
|
|
10220
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10221
|
-
commentAbove?: string;
|
|
10222
|
-
})[];
|
|
10223
10340
|
}];
|
|
10224
|
-
// ----- perfectionist/sort-
|
|
10225
|
-
type
|
|
10341
|
+
// ----- perfectionist/sort-export-attributes -----
|
|
10342
|
+
type PerfectionistSortExportAttributes = {
|
|
10226
10343
|
fallbackSort?: {
|
|
10344
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10227
10345
|
order?: ("asc" | "desc");
|
|
10228
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10229
10346
|
};
|
|
10347
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10230
10348
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10231
10349
|
ignoreCase?: boolean;
|
|
10232
10350
|
alphabet?: string;
|
|
10233
10351
|
locales?: (string | string[]);
|
|
10234
10352
|
order?: ("asc" | "desc");
|
|
10235
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10236
|
-
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
10237
10353
|
customGroups?: ({
|
|
10238
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10239
10354
|
fallbackSort?: {
|
|
10355
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10240
10356
|
order?: ("asc" | "desc");
|
|
10241
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10242
10357
|
};
|
|
10358
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10243
10359
|
groupName: string;
|
|
10360
|
+
newlinesInside?: ("ignore" | number);
|
|
10244
10361
|
order?: ("asc" | "desc");
|
|
10245
|
-
|
|
10246
|
-
anyOf?: {
|
|
10247
|
-
modifiers?: ("value" | "type")[];
|
|
10248
|
-
selector?: "export";
|
|
10362
|
+
anyOf: {
|
|
10249
10363
|
elementNamePattern?: (({
|
|
10250
10364
|
pattern: string;
|
|
10251
10365
|
flags?: string;
|
|
@@ -10255,16 +10369,14 @@ type PerfectionistSortExports = {
|
|
|
10255
10369
|
} | string));
|
|
10256
10370
|
}[];
|
|
10257
10371
|
} | {
|
|
10258
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10259
10372
|
fallbackSort?: {
|
|
10373
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10260
10374
|
order?: ("asc" | "desc");
|
|
10261
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10262
10375
|
};
|
|
10376
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10263
10377
|
groupName: string;
|
|
10378
|
+
newlinesInside?: ("ignore" | number);
|
|
10264
10379
|
order?: ("asc" | "desc");
|
|
10265
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10266
|
-
modifiers?: ("value" | "type")[];
|
|
10267
|
-
selector?: "export";
|
|
10268
10380
|
elementNamePattern?: (({
|
|
10269
10381
|
pattern: string;
|
|
10270
10382
|
flags?: string;
|
|
@@ -10273,6 +10385,17 @@ type PerfectionistSortExports = {
|
|
|
10273
10385
|
flags?: string;
|
|
10274
10386
|
} | string));
|
|
10275
10387
|
})[];
|
|
10388
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
10389
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
10390
|
+
newlinesBetween: ("ignore" | number);
|
|
10391
|
+
} | {
|
|
10392
|
+
group: (string | [string, ...(string)[]]);
|
|
10393
|
+
commentAbove?: string;
|
|
10394
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10395
|
+
newlinesInside?: ("ignore" | number);
|
|
10396
|
+
order?: ("asc" | "desc");
|
|
10397
|
+
})[];
|
|
10398
|
+
newlinesBetween?: ("ignore" | number);
|
|
10276
10399
|
partitionByComment?: (boolean | (({
|
|
10277
10400
|
pattern: string;
|
|
10278
10401
|
flags?: string;
|
|
@@ -10296,70 +10419,29 @@ type PerfectionistSortExports = {
|
|
|
10296
10419
|
} | string)));
|
|
10297
10420
|
});
|
|
10298
10421
|
partitionByNewLine?: boolean;
|
|
10299
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10300
|
-
groups?: (string | string[] | {
|
|
10301
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10302
|
-
commentAbove?: string;
|
|
10303
|
-
})[];
|
|
10304
10422
|
}[];
|
|
10305
|
-
// ----- perfectionist/sort-
|
|
10306
|
-
type
|
|
10423
|
+
// ----- perfectionist/sort-exports -----
|
|
10424
|
+
type PerfectionistSortExports = {
|
|
10307
10425
|
fallbackSort?: {
|
|
10426
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10308
10427
|
order?: ("asc" | "desc");
|
|
10309
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10310
10428
|
};
|
|
10311
|
-
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10312
|
-
ignoreCase?: boolean;
|
|
10313
|
-
alphabet?: string;
|
|
10314
|
-
locales?: (string | string[]);
|
|
10315
|
-
order?: ("asc" | "desc");
|
|
10316
10429
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10317
|
-
customGroups?: {
|
|
10318
|
-
[k: string]: (string | string[]) | undefined;
|
|
10319
|
-
};
|
|
10320
|
-
groups?: (string | string[] | {
|
|
10321
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10322
|
-
commentAbove?: string;
|
|
10323
|
-
})[];
|
|
10324
|
-
}];
|
|
10325
|
-
// ----- perfectionist/sort-imports -----
|
|
10326
|
-
type PerfectionistSortImports = {
|
|
10327
|
-
fallbackSort?: {
|
|
10328
|
-
order?: ("asc" | "desc");
|
|
10329
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10330
|
-
};
|
|
10331
10430
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10332
10431
|
ignoreCase?: boolean;
|
|
10333
10432
|
alphabet?: string;
|
|
10334
10433
|
locales?: (string | string[]);
|
|
10335
10434
|
order?: ("asc" | "desc");
|
|
10336
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10337
10435
|
customGroups?: ({
|
|
10338
|
-
value?: {
|
|
10339
|
-
[k: string]: (string | string[]) | undefined;
|
|
10340
|
-
};
|
|
10341
|
-
type?: {
|
|
10342
|
-
[k: string]: (string | string[]) | undefined;
|
|
10343
|
-
};
|
|
10344
|
-
} | ({
|
|
10345
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10346
10436
|
fallbackSort?: {
|
|
10437
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10347
10438
|
order?: ("asc" | "desc");
|
|
10348
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10349
10439
|
};
|
|
10440
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10350
10441
|
groupName: string;
|
|
10442
|
+
newlinesInside?: ("ignore" | number);
|
|
10351
10443
|
order?: ("asc" | "desc");
|
|
10352
|
-
|
|
10353
|
-
anyOf?: {
|
|
10354
|
-
modifiers?: ("default" | "named" | "require" | "side-effect" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
10355
|
-
selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
|
|
10356
|
-
elementValuePattern?: (({
|
|
10357
|
-
pattern: string;
|
|
10358
|
-
flags?: string;
|
|
10359
|
-
} | string)[] | ({
|
|
10360
|
-
pattern: string;
|
|
10361
|
-
flags?: string;
|
|
10362
|
-
} | string));
|
|
10444
|
+
anyOf: {
|
|
10363
10445
|
elementNamePattern?: (({
|
|
10364
10446
|
pattern: string;
|
|
10365
10447
|
flags?: string;
|
|
@@ -10367,25 +10449,18 @@ type PerfectionistSortImports = {
|
|
|
10367
10449
|
pattern: string;
|
|
10368
10450
|
flags?: string;
|
|
10369
10451
|
} | string));
|
|
10452
|
+
modifiers?: ("value" | "type" | "named" | "wildcard" | "multiline" | "singleline")[];
|
|
10453
|
+
selector?: "export";
|
|
10370
10454
|
}[];
|
|
10371
10455
|
} | {
|
|
10372
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10373
10456
|
fallbackSort?: {
|
|
10457
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10374
10458
|
order?: ("asc" | "desc");
|
|
10375
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10376
10459
|
};
|
|
10460
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10377
10461
|
groupName: string;
|
|
10462
|
+
newlinesInside?: ("ignore" | number);
|
|
10378
10463
|
order?: ("asc" | "desc");
|
|
10379
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10380
|
-
modifiers?: ("default" | "named" | "require" | "side-effect" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
10381
|
-
selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
|
|
10382
|
-
elementValuePattern?: (({
|
|
10383
|
-
pattern: string;
|
|
10384
|
-
flags?: string;
|
|
10385
|
-
} | string)[] | ({
|
|
10386
|
-
pattern: string;
|
|
10387
|
-
flags?: string;
|
|
10388
|
-
} | string));
|
|
10389
10464
|
elementNamePattern?: (({
|
|
10390
10465
|
pattern: string;
|
|
10391
10466
|
flags?: string;
|
|
@@ -10393,15 +10468,20 @@ type PerfectionistSortImports = {
|
|
|
10393
10468
|
pattern: string;
|
|
10394
10469
|
flags?: string;
|
|
10395
10470
|
} | string));
|
|
10396
|
-
|
|
10397
|
-
|
|
10398
|
-
|
|
10399
|
-
|
|
10400
|
-
|
|
10401
|
-
|
|
10402
|
-
|
|
10403
|
-
|
|
10404
|
-
|
|
10471
|
+
modifiers?: ("value" | "type" | "named" | "wildcard" | "multiline" | "singleline")[];
|
|
10472
|
+
selector?: "export";
|
|
10473
|
+
})[];
|
|
10474
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
10475
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
10476
|
+
newlinesBetween: ("ignore" | number);
|
|
10477
|
+
} | {
|
|
10478
|
+
group: (string | [string, ...(string)[]]);
|
|
10479
|
+
commentAbove?: string;
|
|
10480
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10481
|
+
newlinesInside?: ("ignore" | number);
|
|
10482
|
+
order?: ("asc" | "desc");
|
|
10483
|
+
})[];
|
|
10484
|
+
newlinesBetween?: ("ignore" | number);
|
|
10405
10485
|
partitionByComment?: (boolean | (({
|
|
10406
10486
|
pattern: string;
|
|
10407
10487
|
flags?: string;
|
|
@@ -10425,54 +10505,29 @@ type PerfectionistSortImports = {
|
|
|
10425
10505
|
} | string)));
|
|
10426
10506
|
});
|
|
10427
10507
|
partitionByNewLine?: boolean;
|
|
10428
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10429
|
-
internalPattern?: (({
|
|
10430
|
-
pattern: string;
|
|
10431
|
-
flags?: string;
|
|
10432
|
-
} | string)[] | ({
|
|
10433
|
-
pattern: string;
|
|
10434
|
-
flags?: string;
|
|
10435
|
-
} | string));
|
|
10436
|
-
groups?: (string | string[] | {
|
|
10437
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10438
|
-
commentAbove?: string;
|
|
10439
|
-
})[];
|
|
10440
10508
|
}[];
|
|
10441
|
-
// ----- perfectionist/sort-
|
|
10442
|
-
type
|
|
10509
|
+
// ----- perfectionist/sort-heritage-clauses -----
|
|
10510
|
+
type PerfectionistSortHeritageClauses = {
|
|
10443
10511
|
fallbackSort?: {
|
|
10512
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10444
10513
|
order?: ("asc" | "desc");
|
|
10445
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10446
|
-
sortBy?: ("name" | "value");
|
|
10447
10514
|
};
|
|
10515
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10448
10516
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10449
10517
|
ignoreCase?: boolean;
|
|
10450
10518
|
alphabet?: string;
|
|
10451
10519
|
locales?: (string | string[]);
|
|
10452
10520
|
order?: ("asc" | "desc");
|
|
10453
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10454
10521
|
customGroups?: ({
|
|
10455
|
-
[k: string]: (string | string[]) | undefined;
|
|
10456
|
-
} | ({
|
|
10457
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10458
10522
|
fallbackSort?: {
|
|
10523
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10459
10524
|
order?: ("asc" | "desc");
|
|
10460
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10461
|
-
sortBy?: ("name" | "value");
|
|
10462
10525
|
};
|
|
10526
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10463
10527
|
groupName: string;
|
|
10528
|
+
newlinesInside?: ("ignore" | number);
|
|
10464
10529
|
order?: ("asc" | "desc");
|
|
10465
|
-
|
|
10466
|
-
anyOf?: {
|
|
10467
|
-
modifiers?: ("optional" | "required" | "multiline")[];
|
|
10468
|
-
selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
|
|
10469
|
-
elementValuePattern?: (({
|
|
10470
|
-
pattern: string;
|
|
10471
|
-
flags?: string;
|
|
10472
|
-
} | string)[] | ({
|
|
10473
|
-
pattern: string;
|
|
10474
|
-
flags?: string;
|
|
10475
|
-
} | string));
|
|
10530
|
+
anyOf: {
|
|
10476
10531
|
elementNamePattern?: (({
|
|
10477
10532
|
pattern: string;
|
|
10478
10533
|
flags?: string;
|
|
@@ -10480,27 +10535,98 @@ type PerfectionistSortInterfaces = {
|
|
|
10480
10535
|
pattern: string;
|
|
10481
10536
|
flags?: string;
|
|
10482
10537
|
} | string));
|
|
10483
|
-
sortBy?: ("name" | "value");
|
|
10484
10538
|
}[];
|
|
10485
10539
|
} | {
|
|
10486
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10487
10540
|
fallbackSort?: {
|
|
10541
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10488
10542
|
order?: ("asc" | "desc");
|
|
10489
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10490
|
-
sortBy?: ("name" | "value");
|
|
10491
10543
|
};
|
|
10544
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10492
10545
|
groupName: string;
|
|
10546
|
+
newlinesInside?: ("ignore" | number);
|
|
10493
10547
|
order?: ("asc" | "desc");
|
|
10494
|
-
|
|
10495
|
-
modifiers?: ("optional" | "required" | "multiline")[];
|
|
10496
|
-
selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
|
|
10497
|
-
elementValuePattern?: (({
|
|
10548
|
+
elementNamePattern?: (({
|
|
10498
10549
|
pattern: string;
|
|
10499
10550
|
flags?: string;
|
|
10500
10551
|
} | string)[] | ({
|
|
10501
10552
|
pattern: string;
|
|
10502
10553
|
flags?: string;
|
|
10503
10554
|
} | string));
|
|
10555
|
+
})[];
|
|
10556
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
10557
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
10558
|
+
newlinesBetween: ("ignore" | number);
|
|
10559
|
+
} | {
|
|
10560
|
+
group: (string | [string, ...(string)[]]);
|
|
10561
|
+
commentAbove?: string;
|
|
10562
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10563
|
+
newlinesInside?: ("ignore" | number);
|
|
10564
|
+
order?: ("asc" | "desc");
|
|
10565
|
+
})[];
|
|
10566
|
+
newlinesBetween?: ("ignore" | number);
|
|
10567
|
+
partitionByNewLine?: boolean;
|
|
10568
|
+
partitionByComment?: (boolean | (({
|
|
10569
|
+
pattern: string;
|
|
10570
|
+
flags?: string;
|
|
10571
|
+
} | string)[] | ({
|
|
10572
|
+
pattern: string;
|
|
10573
|
+
flags?: string;
|
|
10574
|
+
} | string)) | {
|
|
10575
|
+
block?: (boolean | (({
|
|
10576
|
+
pattern: string;
|
|
10577
|
+
flags?: string;
|
|
10578
|
+
} | string)[] | ({
|
|
10579
|
+
pattern: string;
|
|
10580
|
+
flags?: string;
|
|
10581
|
+
} | string)));
|
|
10582
|
+
line?: (boolean | (({
|
|
10583
|
+
pattern: string;
|
|
10584
|
+
flags?: string;
|
|
10585
|
+
} | string)[] | ({
|
|
10586
|
+
pattern: string;
|
|
10587
|
+
flags?: string;
|
|
10588
|
+
} | string)));
|
|
10589
|
+
});
|
|
10590
|
+
}[];
|
|
10591
|
+
// ----- perfectionist/sort-import-attributes -----
|
|
10592
|
+
type PerfectionistSortImportAttributes = {
|
|
10593
|
+
fallbackSort?: {
|
|
10594
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10595
|
+
order?: ("asc" | "desc");
|
|
10596
|
+
};
|
|
10597
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10598
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10599
|
+
ignoreCase?: boolean;
|
|
10600
|
+
alphabet?: string;
|
|
10601
|
+
locales?: (string | string[]);
|
|
10602
|
+
order?: ("asc" | "desc");
|
|
10603
|
+
customGroups?: ({
|
|
10604
|
+
fallbackSort?: {
|
|
10605
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10606
|
+
order?: ("asc" | "desc");
|
|
10607
|
+
};
|
|
10608
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10609
|
+
groupName: string;
|
|
10610
|
+
newlinesInside?: ("ignore" | number);
|
|
10611
|
+
order?: ("asc" | "desc");
|
|
10612
|
+
anyOf: {
|
|
10613
|
+
elementNamePattern?: (({
|
|
10614
|
+
pattern: string;
|
|
10615
|
+
flags?: string;
|
|
10616
|
+
} | string)[] | ({
|
|
10617
|
+
pattern: string;
|
|
10618
|
+
flags?: string;
|
|
10619
|
+
} | string));
|
|
10620
|
+
}[];
|
|
10621
|
+
} | {
|
|
10622
|
+
fallbackSort?: {
|
|
10623
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10624
|
+
order?: ("asc" | "desc");
|
|
10625
|
+
};
|
|
10626
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10627
|
+
groupName: string;
|
|
10628
|
+
newlinesInside?: ("ignore" | number);
|
|
10629
|
+
order?: ("asc" | "desc");
|
|
10504
10630
|
elementNamePattern?: (({
|
|
10505
10631
|
pattern: string;
|
|
10506
10632
|
flags?: string;
|
|
@@ -10508,25 +10634,111 @@ type PerfectionistSortInterfaces = {
|
|
|
10508
10634
|
pattern: string;
|
|
10509
10635
|
flags?: string;
|
|
10510
10636
|
} | string));
|
|
10511
|
-
|
|
10512
|
-
|
|
10513
|
-
|
|
10514
|
-
|
|
10515
|
-
|
|
10637
|
+
})[];
|
|
10638
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
10639
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
10640
|
+
newlinesBetween: ("ignore" | number);
|
|
10641
|
+
} | {
|
|
10642
|
+
group: (string | [string, ...(string)[]]);
|
|
10643
|
+
commentAbove?: string;
|
|
10644
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10645
|
+
newlinesInside?: ("ignore" | number);
|
|
10646
|
+
order?: ("asc" | "desc");
|
|
10647
|
+
})[];
|
|
10648
|
+
newlinesBetween?: ("ignore" | number);
|
|
10649
|
+
partitionByComment?: (boolean | (({
|
|
10650
|
+
pattern: string;
|
|
10651
|
+
flags?: string;
|
|
10652
|
+
} | string)[] | ({
|
|
10653
|
+
pattern: string;
|
|
10654
|
+
flags?: string;
|
|
10655
|
+
} | string)) | {
|
|
10656
|
+
block?: (boolean | (({
|
|
10516
10657
|
pattern: string;
|
|
10517
10658
|
flags?: string;
|
|
10518
10659
|
} | string)[] | ({
|
|
10519
10660
|
pattern: string;
|
|
10520
10661
|
flags?: string;
|
|
10521
|
-
} | string));
|
|
10522
|
-
|
|
10662
|
+
} | string)));
|
|
10663
|
+
line?: (boolean | (({
|
|
10664
|
+
pattern: string;
|
|
10665
|
+
flags?: string;
|
|
10666
|
+
} | string)[] | ({
|
|
10667
|
+
pattern: string;
|
|
10668
|
+
flags?: string;
|
|
10669
|
+
} | string)));
|
|
10670
|
+
});
|
|
10671
|
+
partitionByNewLine?: boolean;
|
|
10672
|
+
}[];
|
|
10673
|
+
// ----- perfectionist/sort-imports -----
|
|
10674
|
+
type PerfectionistSortImports = {
|
|
10675
|
+
fallbackSort?: {
|
|
10676
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
10677
|
+
order?: ("asc" | "desc");
|
|
10678
|
+
};
|
|
10679
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
10680
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10681
|
+
ignoreCase?: boolean;
|
|
10682
|
+
alphabet?: string;
|
|
10683
|
+
locales?: (string | string[]);
|
|
10684
|
+
order?: ("asc" | "desc");
|
|
10685
|
+
customGroups?: ({
|
|
10686
|
+
fallbackSort?: {
|
|
10687
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
10688
|
+
order?: ("asc" | "desc");
|
|
10689
|
+
};
|
|
10690
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
10691
|
+
groupName: string;
|
|
10692
|
+
newlinesInside?: ("ignore" | number);
|
|
10693
|
+
order?: ("asc" | "desc");
|
|
10694
|
+
anyOf: {
|
|
10695
|
+
elementNamePattern?: (({
|
|
10696
|
+
pattern: string;
|
|
10697
|
+
flags?: string;
|
|
10698
|
+
} | string)[] | ({
|
|
10699
|
+
pattern: string;
|
|
10700
|
+
flags?: string;
|
|
10701
|
+
} | string));
|
|
10702
|
+
modifiers?: ("default" | "multiline" | "named" | "require" | "side-effect" | "singleline" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
10703
|
+
selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
|
|
10704
|
+
}[];
|
|
10705
|
+
} | {
|
|
10706
|
+
fallbackSort?: {
|
|
10707
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
10708
|
+
order?: ("asc" | "desc");
|
|
10709
|
+
};
|
|
10710
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
10711
|
+
groupName: string;
|
|
10712
|
+
newlinesInside?: ("ignore" | number);
|
|
10713
|
+
order?: ("asc" | "desc");
|
|
10714
|
+
elementNamePattern?: (({
|
|
10523
10715
|
pattern: string;
|
|
10524
10716
|
flags?: string;
|
|
10525
10717
|
} | string)[] | ({
|
|
10526
10718
|
pattern: string;
|
|
10527
10719
|
flags?: string;
|
|
10528
10720
|
} | string));
|
|
10721
|
+
modifiers?: ("default" | "multiline" | "named" | "require" | "side-effect" | "singleline" | "ts-equals" | "type" | "value" | "wildcard")[];
|
|
10722
|
+
selector?: ("side-effect-style" | "tsconfig-path" | "side-effect" | "external" | "internal" | "builtin" | "sibling" | "subpath" | "import" | "parent" | "index" | "style" | "type");
|
|
10723
|
+
})[];
|
|
10724
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
10725
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
10726
|
+
newlinesBetween: ("ignore" | number);
|
|
10727
|
+
} | {
|
|
10728
|
+
group: (string | [string, ...(string)[]]);
|
|
10729
|
+
commentAbove?: string;
|
|
10730
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted" | "type-import-first");
|
|
10731
|
+
newlinesInside?: ("ignore" | number);
|
|
10732
|
+
order?: ("asc" | "desc");
|
|
10733
|
+
})[];
|
|
10734
|
+
newlinesBetween?: ("ignore" | number);
|
|
10735
|
+
tsconfig?: {
|
|
10736
|
+
rootDir: string;
|
|
10737
|
+
filename?: string;
|
|
10529
10738
|
};
|
|
10739
|
+
maxLineLength?: number;
|
|
10740
|
+
sortSideEffects?: boolean;
|
|
10741
|
+
environment?: ("node" | "bun");
|
|
10530
10742
|
partitionByComment?: (boolean | (({
|
|
10531
10743
|
pattern: string;
|
|
10532
10744
|
flags?: string;
|
|
@@ -10550,43 +10762,170 @@ type PerfectionistSortInterfaces = {
|
|
|
10550
10762
|
} | string)));
|
|
10551
10763
|
});
|
|
10552
10764
|
partitionByNewLine?: boolean;
|
|
10553
|
-
|
|
10554
|
-
ignorePattern?: (({
|
|
10765
|
+
internalPattern?: (({
|
|
10555
10766
|
pattern: string;
|
|
10556
10767
|
flags?: string;
|
|
10557
10768
|
} | string)[] | ({
|
|
10558
10769
|
pattern: string;
|
|
10559
10770
|
flags?: string;
|
|
10560
10771
|
} | string));
|
|
10561
|
-
|
|
10562
|
-
|
|
10563
|
-
|
|
10772
|
+
}[];
|
|
10773
|
+
// ----- perfectionist/sort-interfaces -----
|
|
10774
|
+
type PerfectionistSortInterfaces = {
|
|
10775
|
+
fallbackSort?: {
|
|
10776
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10777
|
+
order?: ("asc" | "desc");
|
|
10778
|
+
sortBy?: ("name" | "value");
|
|
10779
|
+
};
|
|
10780
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10781
|
+
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10782
|
+
ignoreCase?: boolean;
|
|
10783
|
+
alphabet?: string;
|
|
10784
|
+
locales?: (string | string[]);
|
|
10785
|
+
order?: ("asc" | "desc");
|
|
10786
|
+
customGroups?: ({
|
|
10787
|
+
fallbackSort?: {
|
|
10788
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10789
|
+
order?: ("asc" | "desc");
|
|
10790
|
+
sortBy?: ("name" | "value");
|
|
10791
|
+
};
|
|
10792
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10793
|
+
groupName: string;
|
|
10794
|
+
newlinesInside?: ("ignore" | number);
|
|
10795
|
+
order?: ("asc" | "desc");
|
|
10796
|
+
anyOf: {
|
|
10797
|
+
elementNamePattern?: (({
|
|
10798
|
+
pattern: string;
|
|
10799
|
+
flags?: string;
|
|
10800
|
+
} | string)[] | ({
|
|
10801
|
+
pattern: string;
|
|
10802
|
+
flags?: string;
|
|
10803
|
+
} | string));
|
|
10804
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
10805
|
+
selector?: ("index-signature" | "member" | "method" | "property");
|
|
10806
|
+
elementValuePattern?: (({
|
|
10807
|
+
pattern: string;
|
|
10808
|
+
flags?: string;
|
|
10809
|
+
} | string)[] | ({
|
|
10810
|
+
pattern: string;
|
|
10811
|
+
flags?: string;
|
|
10812
|
+
} | string));
|
|
10813
|
+
sortBy?: ("name" | "value");
|
|
10814
|
+
}[];
|
|
10815
|
+
} | {
|
|
10816
|
+
fallbackSort?: {
|
|
10817
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10818
|
+
order?: ("asc" | "desc");
|
|
10819
|
+
sortBy?: ("name" | "value");
|
|
10820
|
+
};
|
|
10821
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10822
|
+
groupName: string;
|
|
10823
|
+
newlinesInside?: ("ignore" | number);
|
|
10824
|
+
order?: ("asc" | "desc");
|
|
10825
|
+
elementNamePattern?: (({
|
|
10826
|
+
pattern: string;
|
|
10827
|
+
flags?: string;
|
|
10828
|
+
} | string)[] | ({
|
|
10829
|
+
pattern: string;
|
|
10830
|
+
flags?: string;
|
|
10831
|
+
} | string));
|
|
10832
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
10833
|
+
selector?: ("index-signature" | "member" | "method" | "property");
|
|
10834
|
+
elementValuePattern?: (({
|
|
10835
|
+
pattern: string;
|
|
10836
|
+
flags?: string;
|
|
10837
|
+
} | string)[] | ({
|
|
10838
|
+
pattern: string;
|
|
10839
|
+
flags?: string;
|
|
10840
|
+
} | string));
|
|
10841
|
+
sortBy?: ("name" | "value");
|
|
10842
|
+
})[];
|
|
10843
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
10844
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
10845
|
+
newlinesBetween: ("ignore" | number);
|
|
10846
|
+
} | {
|
|
10847
|
+
group: (string | [string, ...(string)[]]);
|
|
10564
10848
|
commentAbove?: string;
|
|
10849
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10850
|
+
newlinesInside?: ("ignore" | number);
|
|
10851
|
+
order?: ("asc" | "desc");
|
|
10565
10852
|
})[];
|
|
10853
|
+
newlinesBetween?: ("ignore" | number);
|
|
10854
|
+
useConfigurationIf?: {
|
|
10855
|
+
allNamesMatchPattern?: (({
|
|
10856
|
+
pattern: string;
|
|
10857
|
+
flags?: string;
|
|
10858
|
+
} | string)[] | ({
|
|
10859
|
+
pattern: string;
|
|
10860
|
+
flags?: string;
|
|
10861
|
+
} | string));
|
|
10862
|
+
hasNumericKeysOnly?: boolean;
|
|
10863
|
+
declarationCommentMatchesPattern?: (({
|
|
10864
|
+
scope?: ("shallow" | "deep");
|
|
10865
|
+
pattern: string;
|
|
10866
|
+
flags?: string;
|
|
10867
|
+
} | string)[] | ({
|
|
10868
|
+
scope?: ("shallow" | "deep");
|
|
10869
|
+
pattern: string;
|
|
10870
|
+
flags?: string;
|
|
10871
|
+
} | string));
|
|
10872
|
+
declarationMatchesPattern?: (({
|
|
10873
|
+
scope?: ("shallow" | "deep");
|
|
10874
|
+
pattern: string;
|
|
10875
|
+
flags?: string;
|
|
10876
|
+
} | string)[] | ({
|
|
10877
|
+
scope?: ("shallow" | "deep");
|
|
10878
|
+
pattern: string;
|
|
10879
|
+
flags?: string;
|
|
10880
|
+
} | string));
|
|
10881
|
+
};
|
|
10882
|
+
partitionByComment?: (boolean | (({
|
|
10883
|
+
pattern: string;
|
|
10884
|
+
flags?: string;
|
|
10885
|
+
} | string)[] | ({
|
|
10886
|
+
pattern: string;
|
|
10887
|
+
flags?: string;
|
|
10888
|
+
} | string)) | {
|
|
10889
|
+
block?: (boolean | (({
|
|
10890
|
+
pattern: string;
|
|
10891
|
+
flags?: string;
|
|
10892
|
+
} | string)[] | ({
|
|
10893
|
+
pattern: string;
|
|
10894
|
+
flags?: string;
|
|
10895
|
+
} | string)));
|
|
10896
|
+
line?: (boolean | (({
|
|
10897
|
+
pattern: string;
|
|
10898
|
+
flags?: string;
|
|
10899
|
+
} | string)[] | ({
|
|
10900
|
+
pattern: string;
|
|
10901
|
+
flags?: string;
|
|
10902
|
+
} | string)));
|
|
10903
|
+
});
|
|
10904
|
+
partitionByNewLine?: boolean;
|
|
10905
|
+
sortBy?: ("name" | "value");
|
|
10566
10906
|
}[];
|
|
10567
10907
|
// ----- perfectionist/sort-intersection-types -----
|
|
10568
10908
|
type PerfectionistSortIntersectionTypes = {
|
|
10569
10909
|
fallbackSort?: {
|
|
10910
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10570
10911
|
order?: ("asc" | "desc");
|
|
10571
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10572
10912
|
};
|
|
10913
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10573
10914
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10574
10915
|
ignoreCase?: boolean;
|
|
10575
10916
|
alphabet?: string;
|
|
10576
10917
|
locales?: (string | string[]);
|
|
10577
10918
|
order?: ("asc" | "desc");
|
|
10578
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10579
10919
|
customGroups?: ({
|
|
10580
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10581
10920
|
fallbackSort?: {
|
|
10921
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10582
10922
|
order?: ("asc" | "desc");
|
|
10583
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10584
10923
|
};
|
|
10924
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10585
10925
|
groupName: string;
|
|
10926
|
+
newlinesInside?: ("ignore" | number);
|
|
10586
10927
|
order?: ("asc" | "desc");
|
|
10587
|
-
|
|
10588
|
-
anyOf?: {
|
|
10589
|
-
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
10928
|
+
anyOf: {
|
|
10590
10929
|
elementNamePattern?: (({
|
|
10591
10930
|
pattern: string;
|
|
10592
10931
|
flags?: string;
|
|
@@ -10594,17 +10933,17 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
10594
10933
|
pattern: string;
|
|
10595
10934
|
flags?: string;
|
|
10596
10935
|
} | string));
|
|
10936
|
+
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
10597
10937
|
}[];
|
|
10598
10938
|
} | {
|
|
10599
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10600
10939
|
fallbackSort?: {
|
|
10940
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10601
10941
|
order?: ("asc" | "desc");
|
|
10602
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10603
10942
|
};
|
|
10943
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10604
10944
|
groupName: string;
|
|
10945
|
+
newlinesInside?: ("ignore" | number);
|
|
10605
10946
|
order?: ("asc" | "desc");
|
|
10606
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10607
|
-
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
10608
10947
|
elementNamePattern?: (({
|
|
10609
10948
|
pattern: string;
|
|
10610
10949
|
flags?: string;
|
|
@@ -10612,7 +10951,19 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
10612
10951
|
pattern: string;
|
|
10613
10952
|
flags?: string;
|
|
10614
10953
|
} | string));
|
|
10954
|
+
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
10615
10955
|
})[];
|
|
10956
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
10957
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
10958
|
+
newlinesBetween: ("ignore" | number);
|
|
10959
|
+
} | {
|
|
10960
|
+
group: (string | [string, ...(string)[]]);
|
|
10961
|
+
commentAbove?: string;
|
|
10962
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10963
|
+
newlinesInside?: ("ignore" | number);
|
|
10964
|
+
order?: ("asc" | "desc");
|
|
10965
|
+
})[];
|
|
10966
|
+
newlinesBetween?: ("ignore" | number);
|
|
10616
10967
|
partitionByComment?: (boolean | (({
|
|
10617
10968
|
pattern: string;
|
|
10618
10969
|
flags?: string;
|
|
@@ -10636,46 +10987,39 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
10636
10987
|
} | string)));
|
|
10637
10988
|
});
|
|
10638
10989
|
partitionByNewLine?: boolean;
|
|
10639
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10640
|
-
groups?: (string | string[] | {
|
|
10641
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10642
|
-
commentAbove?: string;
|
|
10643
|
-
})[];
|
|
10644
10990
|
}[];
|
|
10645
10991
|
// ----- perfectionist/sort-jsx-props -----
|
|
10646
10992
|
type PerfectionistSortJsxProps = {
|
|
10647
10993
|
fallbackSort?: {
|
|
10994
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10648
10995
|
order?: ("asc" | "desc");
|
|
10649
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10650
10996
|
};
|
|
10997
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10651
10998
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10652
10999
|
ignoreCase?: boolean;
|
|
10653
11000
|
alphabet?: string;
|
|
10654
11001
|
locales?: (string | string[]);
|
|
10655
11002
|
order?: ("asc" | "desc");
|
|
10656
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10657
11003
|
customGroups?: ({
|
|
10658
|
-
[k: string]: (string | string[]) | undefined;
|
|
10659
|
-
} | ({
|
|
10660
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10661
11004
|
fallbackSort?: {
|
|
11005
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10662
11006
|
order?: ("asc" | "desc");
|
|
10663
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10664
11007
|
};
|
|
11008
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10665
11009
|
groupName: string;
|
|
11010
|
+
newlinesInside?: ("ignore" | number);
|
|
10666
11011
|
order?: ("asc" | "desc");
|
|
10667
|
-
|
|
10668
|
-
|
|
10669
|
-
modifiers?: ("shorthand" | "multiline")[];
|
|
10670
|
-
selector?: ("multiline" | "prop" | "shorthand");
|
|
10671
|
-
elementValuePattern?: (({
|
|
11012
|
+
anyOf: {
|
|
11013
|
+
elementNamePattern?: (({
|
|
10672
11014
|
pattern: string;
|
|
10673
11015
|
flags?: string;
|
|
10674
11016
|
} | string)[] | ({
|
|
10675
11017
|
pattern: string;
|
|
10676
11018
|
flags?: string;
|
|
10677
11019
|
} | string));
|
|
10678
|
-
|
|
11020
|
+
modifiers?: ("shorthand" | "multiline")[];
|
|
11021
|
+
selector?: "prop";
|
|
11022
|
+
elementValuePattern?: (({
|
|
10679
11023
|
pattern: string;
|
|
10680
11024
|
flags?: string;
|
|
10681
11025
|
} | string)[] | ({
|
|
@@ -10684,31 +11028,42 @@ type PerfectionistSortJsxProps = {
|
|
|
10684
11028
|
} | string));
|
|
10685
11029
|
}[];
|
|
10686
11030
|
} | {
|
|
10687
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10688
11031
|
fallbackSort?: {
|
|
11032
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10689
11033
|
order?: ("asc" | "desc");
|
|
10690
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10691
11034
|
};
|
|
11035
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10692
11036
|
groupName: string;
|
|
11037
|
+
newlinesInside?: ("ignore" | number);
|
|
10693
11038
|
order?: ("asc" | "desc");
|
|
10694
|
-
|
|
10695
|
-
modifiers?: ("shorthand" | "multiline")[];
|
|
10696
|
-
selector?: ("multiline" | "prop" | "shorthand");
|
|
10697
|
-
elementValuePattern?: (({
|
|
11039
|
+
elementNamePattern?: (({
|
|
10698
11040
|
pattern: string;
|
|
10699
11041
|
flags?: string;
|
|
10700
11042
|
} | string)[] | ({
|
|
10701
11043
|
pattern: string;
|
|
10702
11044
|
flags?: string;
|
|
10703
11045
|
} | string));
|
|
10704
|
-
|
|
11046
|
+
modifiers?: ("shorthand" | "multiline")[];
|
|
11047
|
+
selector?: "prop";
|
|
11048
|
+
elementValuePattern?: (({
|
|
10705
11049
|
pattern: string;
|
|
10706
11050
|
flags?: string;
|
|
10707
11051
|
} | string)[] | ({
|
|
10708
11052
|
pattern: string;
|
|
10709
11053
|
flags?: string;
|
|
10710
11054
|
} | string));
|
|
10711
|
-
})[]
|
|
11055
|
+
})[];
|
|
11056
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11057
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11058
|
+
newlinesBetween: ("ignore" | number);
|
|
11059
|
+
} | {
|
|
11060
|
+
group: (string | [string, ...(string)[]]);
|
|
11061
|
+
commentAbove?: string;
|
|
11062
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11063
|
+
newlinesInside?: ("ignore" | number);
|
|
11064
|
+
order?: ("asc" | "desc");
|
|
11065
|
+
})[];
|
|
11066
|
+
newlinesBetween?: ("ignore" | number);
|
|
10712
11067
|
useConfigurationIf?: {
|
|
10713
11068
|
allNamesMatchPattern?: (({
|
|
10714
11069
|
pattern: string;
|
|
@@ -10726,41 +11081,29 @@ type PerfectionistSortJsxProps = {
|
|
|
10726
11081
|
} | string));
|
|
10727
11082
|
};
|
|
10728
11083
|
partitionByNewLine?: boolean;
|
|
10729
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10730
|
-
ignorePattern?: (({
|
|
10731
|
-
pattern: string;
|
|
10732
|
-
flags?: string;
|
|
10733
|
-
} | string)[] | ({
|
|
10734
|
-
pattern: string;
|
|
10735
|
-
flags?: string;
|
|
10736
|
-
} | string));
|
|
10737
|
-
groups?: (string | string[] | {
|
|
10738
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10739
|
-
commentAbove?: string;
|
|
10740
|
-
})[];
|
|
10741
11084
|
}[];
|
|
10742
11085
|
// ----- perfectionist/sort-maps -----
|
|
10743
11086
|
type PerfectionistSortMaps = {
|
|
10744
11087
|
fallbackSort?: {
|
|
11088
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10745
11089
|
order?: ("asc" | "desc");
|
|
10746
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10747
11090
|
};
|
|
11091
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10748
11092
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10749
11093
|
ignoreCase?: boolean;
|
|
10750
11094
|
alphabet?: string;
|
|
10751
11095
|
locales?: (string | string[]);
|
|
10752
11096
|
order?: ("asc" | "desc");
|
|
10753
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10754
11097
|
customGroups?: ({
|
|
10755
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10756
11098
|
fallbackSort?: {
|
|
11099
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10757
11100
|
order?: ("asc" | "desc");
|
|
10758
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10759
11101
|
};
|
|
11102
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10760
11103
|
groupName: string;
|
|
11104
|
+
newlinesInside?: ("ignore" | number);
|
|
10761
11105
|
order?: ("asc" | "desc");
|
|
10762
|
-
|
|
10763
|
-
anyOf?: {
|
|
11106
|
+
anyOf: {
|
|
10764
11107
|
elementNamePattern?: (({
|
|
10765
11108
|
pattern: string;
|
|
10766
11109
|
flags?: string;
|
|
@@ -10770,14 +11113,14 @@ type PerfectionistSortMaps = {
|
|
|
10770
11113
|
} | string));
|
|
10771
11114
|
}[];
|
|
10772
11115
|
} | {
|
|
10773
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10774
11116
|
fallbackSort?: {
|
|
11117
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10775
11118
|
order?: ("asc" | "desc");
|
|
10776
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10777
11119
|
};
|
|
11120
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10778
11121
|
groupName: string;
|
|
11122
|
+
newlinesInside?: ("ignore" | number);
|
|
10779
11123
|
order?: ("asc" | "desc");
|
|
10780
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10781
11124
|
elementNamePattern?: (({
|
|
10782
11125
|
pattern: string;
|
|
10783
11126
|
flags?: string;
|
|
@@ -10786,6 +11129,17 @@ type PerfectionistSortMaps = {
|
|
|
10786
11129
|
flags?: string;
|
|
10787
11130
|
} | string));
|
|
10788
11131
|
})[];
|
|
11132
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11133
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11134
|
+
newlinesBetween: ("ignore" | number);
|
|
11135
|
+
} | {
|
|
11136
|
+
group: (string | [string, ...(string)[]]);
|
|
11137
|
+
commentAbove?: string;
|
|
11138
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11139
|
+
newlinesInside?: ("ignore" | number);
|
|
11140
|
+
order?: ("asc" | "desc");
|
|
11141
|
+
})[];
|
|
11142
|
+
newlinesBetween?: ("ignore" | number);
|
|
10789
11143
|
useConfigurationIf?: {
|
|
10790
11144
|
allNamesMatchPattern?: (({
|
|
10791
11145
|
pattern: string;
|
|
@@ -10818,44 +11172,39 @@ type PerfectionistSortMaps = {
|
|
|
10818
11172
|
} | string)));
|
|
10819
11173
|
});
|
|
10820
11174
|
partitionByNewLine?: boolean;
|
|
10821
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10822
|
-
groups?: (string | string[] | {
|
|
10823
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10824
|
-
commentAbove?: string;
|
|
10825
|
-
})[];
|
|
10826
11175
|
}[];
|
|
10827
11176
|
// ----- perfectionist/sort-modules -----
|
|
10828
11177
|
type PerfectionistSortModules = [] | [{
|
|
10829
11178
|
fallbackSort?: {
|
|
11179
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10830
11180
|
order?: ("asc" | "desc");
|
|
10831
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10832
11181
|
};
|
|
11182
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10833
11183
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10834
11184
|
ignoreCase?: boolean;
|
|
10835
11185
|
alphabet?: string;
|
|
10836
11186
|
locales?: (string | string[]);
|
|
10837
11187
|
order?: ("asc" | "desc");
|
|
10838
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10839
11188
|
customGroups?: ({
|
|
10840
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10841
11189
|
fallbackSort?: {
|
|
11190
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10842
11191
|
order?: ("asc" | "desc");
|
|
10843
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10844
11192
|
};
|
|
11193
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10845
11194
|
groupName: string;
|
|
11195
|
+
newlinesInside?: ("ignore" | number);
|
|
10846
11196
|
order?: ("asc" | "desc");
|
|
10847
|
-
|
|
10848
|
-
|
|
10849
|
-
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
10850
|
-
selector?: ("enum" | "function" | "interface" | "type" | "class");
|
|
10851
|
-
decoratorNamePattern?: (({
|
|
11197
|
+
anyOf: {
|
|
11198
|
+
elementNamePattern?: (({
|
|
10852
11199
|
pattern: string;
|
|
10853
11200
|
flags?: string;
|
|
10854
11201
|
} | string)[] | ({
|
|
10855
11202
|
pattern: string;
|
|
10856
11203
|
flags?: string;
|
|
10857
11204
|
} | string));
|
|
10858
|
-
|
|
11205
|
+
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
11206
|
+
selector?: ("enum" | "function" | "interface" | "type" | "class");
|
|
11207
|
+
decoratorNamePattern?: (({
|
|
10859
11208
|
pattern: string;
|
|
10860
11209
|
flags?: string;
|
|
10861
11210
|
} | string)[] | ({
|
|
@@ -10864,24 +11213,24 @@ type PerfectionistSortModules = [] | [{
|
|
|
10864
11213
|
} | string));
|
|
10865
11214
|
}[];
|
|
10866
11215
|
} | {
|
|
10867
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10868
11216
|
fallbackSort?: {
|
|
11217
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10869
11218
|
order?: ("asc" | "desc");
|
|
10870
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10871
11219
|
};
|
|
11220
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10872
11221
|
groupName: string;
|
|
11222
|
+
newlinesInside?: ("ignore" | number);
|
|
10873
11223
|
order?: ("asc" | "desc");
|
|
10874
|
-
|
|
10875
|
-
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
10876
|
-
selector?: ("enum" | "function" | "interface" | "type" | "class");
|
|
10877
|
-
decoratorNamePattern?: (({
|
|
11224
|
+
elementNamePattern?: (({
|
|
10878
11225
|
pattern: string;
|
|
10879
11226
|
flags?: string;
|
|
10880
11227
|
} | string)[] | ({
|
|
10881
11228
|
pattern: string;
|
|
10882
11229
|
flags?: string;
|
|
10883
11230
|
} | string));
|
|
10884
|
-
|
|
11231
|
+
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
11232
|
+
selector?: ("enum" | "function" | "interface" | "type" | "class");
|
|
11233
|
+
decoratorNamePattern?: (({
|
|
10885
11234
|
pattern: string;
|
|
10886
11235
|
flags?: string;
|
|
10887
11236
|
} | string)[] | ({
|
|
@@ -10889,6 +11238,17 @@ type PerfectionistSortModules = [] | [{
|
|
|
10889
11238
|
flags?: string;
|
|
10890
11239
|
} | string));
|
|
10891
11240
|
})[];
|
|
11241
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11242
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11243
|
+
newlinesBetween: ("ignore" | number);
|
|
11244
|
+
} | {
|
|
11245
|
+
group: (string | [string, ...(string)[]]);
|
|
11246
|
+
commentAbove?: string;
|
|
11247
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11248
|
+
newlinesInside?: ("ignore" | number);
|
|
11249
|
+
order?: ("asc" | "desc");
|
|
11250
|
+
})[];
|
|
11251
|
+
newlinesBetween?: ("ignore" | number);
|
|
10892
11252
|
partitionByComment?: (boolean | (({
|
|
10893
11253
|
pattern: string;
|
|
10894
11254
|
flags?: string;
|
|
@@ -10912,38 +11272,29 @@ type PerfectionistSortModules = [] | [{
|
|
|
10912
11272
|
} | string)));
|
|
10913
11273
|
});
|
|
10914
11274
|
partitionByNewLine?: boolean;
|
|
10915
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10916
|
-
groups?: (string | string[] | {
|
|
10917
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10918
|
-
commentAbove?: string;
|
|
10919
|
-
})[];
|
|
10920
11275
|
}];
|
|
10921
11276
|
// ----- perfectionist/sort-named-exports -----
|
|
10922
11277
|
type PerfectionistSortNamedExports = {
|
|
10923
11278
|
fallbackSort?: {
|
|
11279
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10924
11280
|
order?: ("asc" | "desc");
|
|
10925
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10926
11281
|
};
|
|
11282
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10927
11283
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
10928
11284
|
ignoreCase?: boolean;
|
|
10929
11285
|
alphabet?: string;
|
|
10930
11286
|
locales?: (string | string[]);
|
|
10931
11287
|
order?: ("asc" | "desc");
|
|
10932
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10933
|
-
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
10934
|
-
ignoreAlias?: boolean;
|
|
10935
11288
|
customGroups?: ({
|
|
10936
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10937
11289
|
fallbackSort?: {
|
|
11290
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10938
11291
|
order?: ("asc" | "desc");
|
|
10939
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10940
11292
|
};
|
|
11293
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10941
11294
|
groupName: string;
|
|
11295
|
+
newlinesInside?: ("ignore" | number);
|
|
10942
11296
|
order?: ("asc" | "desc");
|
|
10943
|
-
|
|
10944
|
-
anyOf?: {
|
|
10945
|
-
modifiers?: ("value" | "type")[];
|
|
10946
|
-
selector?: "export";
|
|
11297
|
+
anyOf: {
|
|
10947
11298
|
elementNamePattern?: (({
|
|
10948
11299
|
pattern: string;
|
|
10949
11300
|
flags?: string;
|
|
@@ -10951,18 +11302,18 @@ type PerfectionistSortNamedExports = {
|
|
|
10951
11302
|
pattern: string;
|
|
10952
11303
|
flags?: string;
|
|
10953
11304
|
} | string));
|
|
11305
|
+
modifiers?: ("value" | "type")[];
|
|
11306
|
+
selector?: "export";
|
|
10954
11307
|
}[];
|
|
10955
11308
|
} | {
|
|
10956
|
-
newlinesInside?: (("always" | "never") | number);
|
|
10957
11309
|
fallbackSort?: {
|
|
11310
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10958
11311
|
order?: ("asc" | "desc");
|
|
10959
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10960
11312
|
};
|
|
11313
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10961
11314
|
groupName: string;
|
|
11315
|
+
newlinesInside?: ("ignore" | number);
|
|
10962
11316
|
order?: ("asc" | "desc");
|
|
10963
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
10964
|
-
modifiers?: ("value" | "type")[];
|
|
10965
|
-
selector?: "export";
|
|
10966
11317
|
elementNamePattern?: (({
|
|
10967
11318
|
pattern: string;
|
|
10968
11319
|
flags?: string;
|
|
@@ -10970,7 +11321,21 @@ type PerfectionistSortNamedExports = {
|
|
|
10970
11321
|
pattern: string;
|
|
10971
11322
|
flags?: string;
|
|
10972
11323
|
} | string));
|
|
11324
|
+
modifiers?: ("value" | "type")[];
|
|
11325
|
+
selector?: "export";
|
|
11326
|
+
})[];
|
|
11327
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11328
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11329
|
+
newlinesBetween: ("ignore" | number);
|
|
11330
|
+
} | {
|
|
11331
|
+
group: (string | [string, ...(string)[]]);
|
|
11332
|
+
commentAbove?: string;
|
|
11333
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11334
|
+
newlinesInside?: ("ignore" | number);
|
|
11335
|
+
order?: ("asc" | "desc");
|
|
10973
11336
|
})[];
|
|
11337
|
+
newlinesBetween?: ("ignore" | number);
|
|
11338
|
+
ignoreAlias?: boolean;
|
|
10974
11339
|
partitionByComment?: (boolean | (({
|
|
10975
11340
|
pattern: string;
|
|
10976
11341
|
flags?: string;
|
|
@@ -10994,38 +11359,29 @@ type PerfectionistSortNamedExports = {
|
|
|
10994
11359
|
} | string)));
|
|
10995
11360
|
});
|
|
10996
11361
|
partitionByNewLine?: boolean;
|
|
10997
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
10998
|
-
groups?: (string | string[] | {
|
|
10999
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11000
|
-
commentAbove?: string;
|
|
11001
|
-
})[];
|
|
11002
11362
|
}[];
|
|
11003
11363
|
// ----- perfectionist/sort-named-imports -----
|
|
11004
11364
|
type PerfectionistSortNamedImports = {
|
|
11005
11365
|
fallbackSort?: {
|
|
11366
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11006
11367
|
order?: ("asc" | "desc");
|
|
11007
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11008
11368
|
};
|
|
11369
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11009
11370
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11010
11371
|
ignoreCase?: boolean;
|
|
11011
11372
|
alphabet?: string;
|
|
11012
11373
|
locales?: (string | string[]);
|
|
11013
11374
|
order?: ("asc" | "desc");
|
|
11014
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11015
|
-
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
11016
|
-
ignoreAlias?: boolean;
|
|
11017
11375
|
customGroups?: ({
|
|
11018
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11019
11376
|
fallbackSort?: {
|
|
11377
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11020
11378
|
order?: ("asc" | "desc");
|
|
11021
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11022
11379
|
};
|
|
11380
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11023
11381
|
groupName: string;
|
|
11382
|
+
newlinesInside?: ("ignore" | number);
|
|
11024
11383
|
order?: ("asc" | "desc");
|
|
11025
|
-
|
|
11026
|
-
anyOf?: {
|
|
11027
|
-
modifiers?: ("value" | "type")[];
|
|
11028
|
-
selector?: "import";
|
|
11384
|
+
anyOf: {
|
|
11029
11385
|
elementNamePattern?: (({
|
|
11030
11386
|
pattern: string;
|
|
11031
11387
|
flags?: string;
|
|
@@ -11033,18 +11389,18 @@ type PerfectionistSortNamedImports = {
|
|
|
11033
11389
|
pattern: string;
|
|
11034
11390
|
flags?: string;
|
|
11035
11391
|
} | string));
|
|
11392
|
+
modifiers?: ("value" | "type")[];
|
|
11393
|
+
selector?: "import";
|
|
11036
11394
|
}[];
|
|
11037
11395
|
} | {
|
|
11038
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11039
11396
|
fallbackSort?: {
|
|
11397
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11040
11398
|
order?: ("asc" | "desc");
|
|
11041
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11042
11399
|
};
|
|
11400
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11043
11401
|
groupName: string;
|
|
11402
|
+
newlinesInside?: ("ignore" | number);
|
|
11044
11403
|
order?: ("asc" | "desc");
|
|
11045
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11046
|
-
modifiers?: ("value" | "type")[];
|
|
11047
|
-
selector?: "import";
|
|
11048
11404
|
elementNamePattern?: (({
|
|
11049
11405
|
pattern: string;
|
|
11050
11406
|
flags?: string;
|
|
@@ -11052,7 +11408,21 @@ type PerfectionistSortNamedImports = {
|
|
|
11052
11408
|
pattern: string;
|
|
11053
11409
|
flags?: string;
|
|
11054
11410
|
} | string));
|
|
11411
|
+
modifiers?: ("value" | "type")[];
|
|
11412
|
+
selector?: "import";
|
|
11413
|
+
})[];
|
|
11414
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11415
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11416
|
+
newlinesBetween: ("ignore" | number);
|
|
11417
|
+
} | {
|
|
11418
|
+
group: (string | [string, ...(string)[]]);
|
|
11419
|
+
commentAbove?: string;
|
|
11420
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11421
|
+
newlinesInside?: ("ignore" | number);
|
|
11422
|
+
order?: ("asc" | "desc");
|
|
11055
11423
|
})[];
|
|
11424
|
+
newlinesBetween?: ("ignore" | number);
|
|
11425
|
+
ignoreAlias?: boolean;
|
|
11056
11426
|
partitionByComment?: (boolean | (({
|
|
11057
11427
|
pattern: string;
|
|
11058
11428
|
flags?: string;
|
|
@@ -11076,48 +11446,41 @@ type PerfectionistSortNamedImports = {
|
|
|
11076
11446
|
} | string)));
|
|
11077
11447
|
});
|
|
11078
11448
|
partitionByNewLine?: boolean;
|
|
11079
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11080
|
-
groups?: (string | string[] | {
|
|
11081
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11082
|
-
commentAbove?: string;
|
|
11083
|
-
})[];
|
|
11084
11449
|
}[];
|
|
11085
11450
|
// ----- perfectionist/sort-object-types -----
|
|
11086
11451
|
type PerfectionistSortObjectTypes = {
|
|
11087
11452
|
fallbackSort?: {
|
|
11453
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11088
11454
|
order?: ("asc" | "desc");
|
|
11089
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11090
11455
|
sortBy?: ("name" | "value");
|
|
11091
11456
|
};
|
|
11457
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11092
11458
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11093
11459
|
ignoreCase?: boolean;
|
|
11094
11460
|
alphabet?: string;
|
|
11095
11461
|
locales?: (string | string[]);
|
|
11096
11462
|
order?: ("asc" | "desc");
|
|
11097
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11098
11463
|
customGroups?: ({
|
|
11099
|
-
[k: string]: (string | string[]) | undefined;
|
|
11100
|
-
} | ({
|
|
11101
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11102
11464
|
fallbackSort?: {
|
|
11465
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11103
11466
|
order?: ("asc" | "desc");
|
|
11104
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11105
11467
|
sortBy?: ("name" | "value");
|
|
11106
11468
|
};
|
|
11469
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11107
11470
|
groupName: string;
|
|
11471
|
+
newlinesInside?: ("ignore" | number);
|
|
11108
11472
|
order?: ("asc" | "desc");
|
|
11109
|
-
|
|
11110
|
-
|
|
11111
|
-
modifiers?: ("optional" | "required" | "multiline")[];
|
|
11112
|
-
selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
|
|
11113
|
-
elementValuePattern?: (({
|
|
11473
|
+
anyOf: {
|
|
11474
|
+
elementNamePattern?: (({
|
|
11114
11475
|
pattern: string;
|
|
11115
11476
|
flags?: string;
|
|
11116
11477
|
} | string)[] | ({
|
|
11117
11478
|
pattern: string;
|
|
11118
11479
|
flags?: string;
|
|
11119
11480
|
} | string));
|
|
11120
|
-
|
|
11481
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
11482
|
+
selector?: ("index-signature" | "member" | "method" | "property");
|
|
11483
|
+
elementValuePattern?: (({
|
|
11121
11484
|
pattern: string;
|
|
11122
11485
|
flags?: string;
|
|
11123
11486
|
} | string)[] | ({
|
|
@@ -11127,25 +11490,25 @@ type PerfectionistSortObjectTypes = {
|
|
|
11127
11490
|
sortBy?: ("name" | "value");
|
|
11128
11491
|
}[];
|
|
11129
11492
|
} | {
|
|
11130
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11131
11493
|
fallbackSort?: {
|
|
11494
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11132
11495
|
order?: ("asc" | "desc");
|
|
11133
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11134
11496
|
sortBy?: ("name" | "value");
|
|
11135
11497
|
};
|
|
11498
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11136
11499
|
groupName: string;
|
|
11500
|
+
newlinesInside?: ("ignore" | number);
|
|
11137
11501
|
order?: ("asc" | "desc");
|
|
11138
|
-
|
|
11139
|
-
modifiers?: ("optional" | "required" | "multiline")[];
|
|
11140
|
-
selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
|
|
11141
|
-
elementValuePattern?: (({
|
|
11502
|
+
elementNamePattern?: (({
|
|
11142
11503
|
pattern: string;
|
|
11143
11504
|
flags?: string;
|
|
11144
11505
|
} | string)[] | ({
|
|
11145
11506
|
pattern: string;
|
|
11146
11507
|
flags?: string;
|
|
11147
11508
|
} | string));
|
|
11148
|
-
|
|
11509
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
11510
|
+
selector?: ("index-signature" | "member" | "method" | "property");
|
|
11511
|
+
elementValuePattern?: (({
|
|
11149
11512
|
pattern: string;
|
|
11150
11513
|
flags?: string;
|
|
11151
11514
|
} | string)[] | ({
|
|
@@ -11153,8 +11516,18 @@ type PerfectionistSortObjectTypes = {
|
|
|
11153
11516
|
flags?: string;
|
|
11154
11517
|
} | string));
|
|
11155
11518
|
sortBy?: ("name" | "value");
|
|
11156
|
-
})[]
|
|
11157
|
-
|
|
11519
|
+
})[];
|
|
11520
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11521
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11522
|
+
newlinesBetween: ("ignore" | number);
|
|
11523
|
+
} | {
|
|
11524
|
+
group: (string | [string, ...(string)[]]);
|
|
11525
|
+
commentAbove?: string;
|
|
11526
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11527
|
+
newlinesInside?: ("ignore" | number);
|
|
11528
|
+
order?: ("asc" | "desc");
|
|
11529
|
+
})[];
|
|
11530
|
+
newlinesBetween?: ("ignore" | number);
|
|
11158
11531
|
useConfigurationIf?: {
|
|
11159
11532
|
allNamesMatchPattern?: (({
|
|
11160
11533
|
pattern: string;
|
|
@@ -11163,10 +11536,22 @@ type PerfectionistSortObjectTypes = {
|
|
|
11163
11536
|
pattern: string;
|
|
11164
11537
|
flags?: string;
|
|
11165
11538
|
} | string));
|
|
11539
|
+
hasNumericKeysOnly?: boolean;
|
|
11540
|
+
declarationCommentMatchesPattern?: (({
|
|
11541
|
+
scope?: ("shallow" | "deep");
|
|
11542
|
+
pattern: string;
|
|
11543
|
+
flags?: string;
|
|
11544
|
+
} | string)[] | ({
|
|
11545
|
+
scope?: ("shallow" | "deep");
|
|
11546
|
+
pattern: string;
|
|
11547
|
+
flags?: string;
|
|
11548
|
+
} | string));
|
|
11166
11549
|
declarationMatchesPattern?: (({
|
|
11550
|
+
scope?: ("shallow" | "deep");
|
|
11167
11551
|
pattern: string;
|
|
11168
11552
|
flags?: string;
|
|
11169
11553
|
} | string)[] | ({
|
|
11554
|
+
scope?: ("shallow" | "deep");
|
|
11170
11555
|
pattern: string;
|
|
11171
11556
|
flags?: string;
|
|
11172
11557
|
} | string));
|
|
@@ -11194,57 +11579,40 @@ type PerfectionistSortObjectTypes = {
|
|
|
11194
11579
|
} | string)));
|
|
11195
11580
|
});
|
|
11196
11581
|
partitionByNewLine?: boolean;
|
|
11197
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11198
|
-
ignorePattern?: (({
|
|
11199
|
-
pattern: string;
|
|
11200
|
-
flags?: string;
|
|
11201
|
-
} | string)[] | ({
|
|
11202
|
-
pattern: string;
|
|
11203
|
-
flags?: string;
|
|
11204
|
-
} | string));
|
|
11205
11582
|
sortBy?: ("name" | "value");
|
|
11206
|
-
groups?: (string | string[] | {
|
|
11207
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11208
|
-
commentAbove?: string;
|
|
11209
|
-
})[];
|
|
11210
11583
|
}[];
|
|
11211
11584
|
// ----- perfectionist/sort-objects -----
|
|
11212
11585
|
type PerfectionistSortObjects = {
|
|
11213
11586
|
fallbackSort?: {
|
|
11587
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11214
11588
|
order?: ("asc" | "desc");
|
|
11215
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11216
11589
|
};
|
|
11590
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11217
11591
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11218
11592
|
ignoreCase?: boolean;
|
|
11219
11593
|
alphabet?: string;
|
|
11220
11594
|
locales?: (string | string[]);
|
|
11221
11595
|
order?: ("asc" | "desc");
|
|
11222
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11223
|
-
destructuredObjects?: (boolean | {
|
|
11224
|
-
groups?: boolean;
|
|
11225
|
-
});
|
|
11226
11596
|
customGroups?: ({
|
|
11227
|
-
[k: string]: (string | string[]) | undefined;
|
|
11228
|
-
} | ({
|
|
11229
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11230
11597
|
fallbackSort?: {
|
|
11598
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11231
11599
|
order?: ("asc" | "desc");
|
|
11232
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11233
11600
|
};
|
|
11601
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11234
11602
|
groupName: string;
|
|
11603
|
+
newlinesInside?: ("ignore" | number);
|
|
11235
11604
|
order?: ("asc" | "desc");
|
|
11236
|
-
|
|
11237
|
-
|
|
11238
|
-
modifiers?: ("optional" | "required" | "multiline")[];
|
|
11239
|
-
selector?: ("member" | "method" | "multiline" | "property");
|
|
11240
|
-
elementValuePattern?: (({
|
|
11605
|
+
anyOf: {
|
|
11606
|
+
elementNamePattern?: (({
|
|
11241
11607
|
pattern: string;
|
|
11242
11608
|
flags?: string;
|
|
11243
11609
|
} | string)[] | ({
|
|
11244
11610
|
pattern: string;
|
|
11245
11611
|
flags?: string;
|
|
11246
11612
|
} | string));
|
|
11247
|
-
|
|
11613
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
11614
|
+
selector?: ("member" | "method" | "property");
|
|
11615
|
+
elementValuePattern?: (({
|
|
11248
11616
|
pattern: string;
|
|
11249
11617
|
flags?: string;
|
|
11250
11618
|
} | string)[] | ({
|
|
@@ -11253,31 +11621,42 @@ type PerfectionistSortObjects = {
|
|
|
11253
11621
|
} | string));
|
|
11254
11622
|
}[];
|
|
11255
11623
|
} | {
|
|
11256
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11257
11624
|
fallbackSort?: {
|
|
11625
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11258
11626
|
order?: ("asc" | "desc");
|
|
11259
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11260
11627
|
};
|
|
11628
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11261
11629
|
groupName: string;
|
|
11630
|
+
newlinesInside?: ("ignore" | number);
|
|
11262
11631
|
order?: ("asc" | "desc");
|
|
11263
|
-
|
|
11264
|
-
modifiers?: ("optional" | "required" | "multiline")[];
|
|
11265
|
-
selector?: ("member" | "method" | "multiline" | "property");
|
|
11266
|
-
elementValuePattern?: (({
|
|
11632
|
+
elementNamePattern?: (({
|
|
11267
11633
|
pattern: string;
|
|
11268
11634
|
flags?: string;
|
|
11269
11635
|
} | string)[] | ({
|
|
11270
11636
|
pattern: string;
|
|
11271
11637
|
flags?: string;
|
|
11272
11638
|
} | string));
|
|
11273
|
-
|
|
11639
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
11640
|
+
selector?: ("member" | "method" | "property");
|
|
11641
|
+
elementValuePattern?: (({
|
|
11274
11642
|
pattern: string;
|
|
11275
11643
|
flags?: string;
|
|
11276
11644
|
} | string)[] | ({
|
|
11277
11645
|
pattern: string;
|
|
11278
11646
|
flags?: string;
|
|
11279
11647
|
} | string));
|
|
11280
|
-
})[]
|
|
11648
|
+
})[];
|
|
11649
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11650
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11651
|
+
newlinesBetween: ("ignore" | number);
|
|
11652
|
+
} | {
|
|
11653
|
+
group: (string | [string, ...(string)[]]);
|
|
11654
|
+
commentAbove?: string;
|
|
11655
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11656
|
+
newlinesInside?: ("ignore" | number);
|
|
11657
|
+
order?: ("asc" | "desc");
|
|
11658
|
+
})[];
|
|
11659
|
+
newlinesBetween?: ("ignore" | number);
|
|
11281
11660
|
useConfigurationIf?: {
|
|
11282
11661
|
allNamesMatchPattern?: (({
|
|
11283
11662
|
pattern: string;
|
|
@@ -11286,16 +11665,36 @@ type PerfectionistSortObjects = {
|
|
|
11286
11665
|
pattern: string;
|
|
11287
11666
|
flags?: string;
|
|
11288
11667
|
} | string));
|
|
11668
|
+
objectType?: ("destructured" | "non-destructured");
|
|
11669
|
+
hasNumericKeysOnly?: boolean;
|
|
11670
|
+
declarationCommentMatchesPattern?: (({
|
|
11671
|
+
scope?: ("shallow" | "deep");
|
|
11672
|
+
pattern: string;
|
|
11673
|
+
flags?: string;
|
|
11674
|
+
} | string)[] | ({
|
|
11675
|
+
scope?: ("shallow" | "deep");
|
|
11676
|
+
pattern: string;
|
|
11677
|
+
flags?: string;
|
|
11678
|
+
} | string));
|
|
11289
11679
|
callingFunctionNamePattern?: (({
|
|
11680
|
+
scope?: ("shallow" | "deep");
|
|
11681
|
+
pattern: string;
|
|
11682
|
+
flags?: string;
|
|
11683
|
+
} | string)[] | ({
|
|
11684
|
+
scope?: ("shallow" | "deep");
|
|
11685
|
+
pattern: string;
|
|
11686
|
+
flags?: string;
|
|
11687
|
+
} | string));
|
|
11688
|
+
declarationMatchesPattern?: (({
|
|
11689
|
+
scope?: ("shallow" | "deep");
|
|
11290
11690
|
pattern: string;
|
|
11291
11691
|
flags?: string;
|
|
11292
11692
|
} | string)[] | ({
|
|
11693
|
+
scope?: ("shallow" | "deep");
|
|
11293
11694
|
pattern: string;
|
|
11294
11695
|
flags?: string;
|
|
11295
11696
|
} | string));
|
|
11296
11697
|
};
|
|
11297
|
-
destructureOnly?: boolean;
|
|
11298
|
-
objectDeclarations?: boolean;
|
|
11299
11698
|
styledComponents?: boolean;
|
|
11300
11699
|
partitionByComment?: (boolean | (({
|
|
11301
11700
|
pattern: string;
|
|
@@ -11320,43 +11719,29 @@ type PerfectionistSortObjects = {
|
|
|
11320
11719
|
} | string)));
|
|
11321
11720
|
});
|
|
11322
11721
|
partitionByNewLine?: boolean;
|
|
11323
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11324
|
-
ignorePattern?: (({
|
|
11325
|
-
pattern: string;
|
|
11326
|
-
flags?: string;
|
|
11327
|
-
} | string)[] | ({
|
|
11328
|
-
pattern: string;
|
|
11329
|
-
flags?: string;
|
|
11330
|
-
} | string));
|
|
11331
|
-
groups?: (string | string[] | {
|
|
11332
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11333
|
-
commentAbove?: string;
|
|
11334
|
-
})[];
|
|
11335
11722
|
}[];
|
|
11336
11723
|
// ----- perfectionist/sort-sets -----
|
|
11337
11724
|
type PerfectionistSortSets = {
|
|
11338
11725
|
fallbackSort?: {
|
|
11726
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11339
11727
|
order?: ("asc" | "desc");
|
|
11340
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11341
11728
|
};
|
|
11729
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11342
11730
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11343
11731
|
ignoreCase?: boolean;
|
|
11344
11732
|
alphabet?: string;
|
|
11345
11733
|
locales?: (string | string[]);
|
|
11346
11734
|
order?: ("asc" | "desc");
|
|
11347
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11348
|
-
groupKind?: ("mixed" | "literals-first" | "spreads-first");
|
|
11349
11735
|
customGroups?: ({
|
|
11350
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11351
11736
|
fallbackSort?: {
|
|
11737
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11352
11738
|
order?: ("asc" | "desc");
|
|
11353
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11354
11739
|
};
|
|
11740
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11355
11741
|
groupName: string;
|
|
11742
|
+
newlinesInside?: ("ignore" | number);
|
|
11356
11743
|
order?: ("asc" | "desc");
|
|
11357
|
-
|
|
11358
|
-
anyOf?: {
|
|
11359
|
-
selector?: ("literal" | "spread");
|
|
11744
|
+
anyOf: {
|
|
11360
11745
|
elementNamePattern?: (({
|
|
11361
11746
|
pattern: string;
|
|
11362
11747
|
flags?: string;
|
|
@@ -11364,17 +11749,17 @@ type PerfectionistSortSets = {
|
|
|
11364
11749
|
pattern: string;
|
|
11365
11750
|
flags?: string;
|
|
11366
11751
|
} | string));
|
|
11752
|
+
selector?: ("literal" | "spread");
|
|
11367
11753
|
}[];
|
|
11368
11754
|
} | {
|
|
11369
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11370
11755
|
fallbackSort?: {
|
|
11756
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11371
11757
|
order?: ("asc" | "desc");
|
|
11372
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11373
11758
|
};
|
|
11759
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11374
11760
|
groupName: string;
|
|
11761
|
+
newlinesInside?: ("ignore" | number);
|
|
11375
11762
|
order?: ("asc" | "desc");
|
|
11376
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11377
|
-
selector?: ("literal" | "spread");
|
|
11378
11763
|
elementNamePattern?: (({
|
|
11379
11764
|
pattern: string;
|
|
11380
11765
|
flags?: string;
|
|
@@ -11382,7 +11767,19 @@ type PerfectionistSortSets = {
|
|
|
11382
11767
|
pattern: string;
|
|
11383
11768
|
flags?: string;
|
|
11384
11769
|
} | string));
|
|
11770
|
+
selector?: ("literal" | "spread");
|
|
11385
11771
|
})[];
|
|
11772
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11773
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11774
|
+
newlinesBetween: ("ignore" | number);
|
|
11775
|
+
} | {
|
|
11776
|
+
group: (string | [string, ...(string)[]]);
|
|
11777
|
+
commentAbove?: string;
|
|
11778
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11779
|
+
newlinesInside?: ("ignore" | number);
|
|
11780
|
+
order?: ("asc" | "desc");
|
|
11781
|
+
})[];
|
|
11782
|
+
newlinesBetween?: ("ignore" | number);
|
|
11386
11783
|
useConfigurationIf?: {
|
|
11387
11784
|
allNamesMatchPattern?: (({
|
|
11388
11785
|
pattern: string;
|
|
@@ -11415,48 +11812,42 @@ type PerfectionistSortSets = {
|
|
|
11415
11812
|
} | string)));
|
|
11416
11813
|
});
|
|
11417
11814
|
partitionByNewLine?: boolean;
|
|
11418
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11419
|
-
groups?: (string | string[] | {
|
|
11420
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11421
|
-
commentAbove?: string;
|
|
11422
|
-
})[];
|
|
11423
11815
|
}[];
|
|
11424
11816
|
// ----- perfectionist/sort-switch-case -----
|
|
11425
11817
|
type PerfectionistSortSwitchCase = [] | [{
|
|
11426
11818
|
fallbackSort?: {
|
|
11819
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11427
11820
|
order?: ("asc" | "desc");
|
|
11428
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11429
11821
|
};
|
|
11822
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11430
11823
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11431
11824
|
ignoreCase?: boolean;
|
|
11432
11825
|
alphabet?: string;
|
|
11433
11826
|
locales?: (string | string[]);
|
|
11434
11827
|
order?: ("asc" | "desc");
|
|
11435
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11436
11828
|
}];
|
|
11437
11829
|
// ----- perfectionist/sort-union-types -----
|
|
11438
11830
|
type PerfectionistSortUnionTypes = {
|
|
11439
11831
|
fallbackSort?: {
|
|
11832
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11440
11833
|
order?: ("asc" | "desc");
|
|
11441
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11442
11834
|
};
|
|
11835
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11443
11836
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11444
11837
|
ignoreCase?: boolean;
|
|
11445
11838
|
alphabet?: string;
|
|
11446
11839
|
locales?: (string | string[]);
|
|
11447
11840
|
order?: ("asc" | "desc");
|
|
11448
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11449
11841
|
customGroups?: ({
|
|
11450
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11451
11842
|
fallbackSort?: {
|
|
11843
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11452
11844
|
order?: ("asc" | "desc");
|
|
11453
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11454
11845
|
};
|
|
11846
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11455
11847
|
groupName: string;
|
|
11848
|
+
newlinesInside?: ("ignore" | number);
|
|
11456
11849
|
order?: ("asc" | "desc");
|
|
11457
|
-
|
|
11458
|
-
anyOf?: {
|
|
11459
|
-
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
11850
|
+
anyOf: {
|
|
11460
11851
|
elementNamePattern?: (({
|
|
11461
11852
|
pattern: string;
|
|
11462
11853
|
flags?: string;
|
|
@@ -11464,17 +11855,17 @@ type PerfectionistSortUnionTypes = {
|
|
|
11464
11855
|
pattern: string;
|
|
11465
11856
|
flags?: string;
|
|
11466
11857
|
} | string));
|
|
11858
|
+
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
11467
11859
|
}[];
|
|
11468
11860
|
} | {
|
|
11469
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11470
11861
|
fallbackSort?: {
|
|
11862
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11471
11863
|
order?: ("asc" | "desc");
|
|
11472
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11473
11864
|
};
|
|
11865
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11474
11866
|
groupName: string;
|
|
11867
|
+
newlinesInside?: ("ignore" | number);
|
|
11475
11868
|
order?: ("asc" | "desc");
|
|
11476
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11477
|
-
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
11478
11869
|
elementNamePattern?: (({
|
|
11479
11870
|
pattern: string;
|
|
11480
11871
|
flags?: string;
|
|
@@ -11482,7 +11873,19 @@ type PerfectionistSortUnionTypes = {
|
|
|
11482
11873
|
pattern: string;
|
|
11483
11874
|
flags?: string;
|
|
11484
11875
|
} | string));
|
|
11876
|
+
selector?: ("intersection" | "conditional" | "function" | "operator" | "keyword" | "literal" | "nullish" | "import" | "object" | "named" | "tuple" | "union");
|
|
11877
|
+
})[];
|
|
11878
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11879
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11880
|
+
newlinesBetween: ("ignore" | number);
|
|
11881
|
+
} | {
|
|
11882
|
+
group: (string | [string, ...(string)[]]);
|
|
11883
|
+
commentAbove?: string;
|
|
11884
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11885
|
+
newlinesInside?: ("ignore" | number);
|
|
11886
|
+
order?: ("asc" | "desc");
|
|
11485
11887
|
})[];
|
|
11888
|
+
newlinesBetween?: ("ignore" | number);
|
|
11486
11889
|
partitionByComment?: (boolean | (({
|
|
11487
11890
|
pattern: string;
|
|
11488
11891
|
flags?: string;
|
|
@@ -11506,35 +11909,29 @@ type PerfectionistSortUnionTypes = {
|
|
|
11506
11909
|
} | string)));
|
|
11507
11910
|
});
|
|
11508
11911
|
partitionByNewLine?: boolean;
|
|
11509
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11510
|
-
groups?: (string | string[] | {
|
|
11511
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11512
|
-
commentAbove?: string;
|
|
11513
|
-
})[];
|
|
11514
11912
|
}[];
|
|
11515
11913
|
// ----- perfectionist/sort-variable-declarations -----
|
|
11516
11914
|
type PerfectionistSortVariableDeclarations = [] | [{
|
|
11517
11915
|
fallbackSort?: {
|
|
11916
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11518
11917
|
order?: ("asc" | "desc");
|
|
11519
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11520
11918
|
};
|
|
11919
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11521
11920
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
11522
11921
|
ignoreCase?: boolean;
|
|
11523
11922
|
alphabet?: string;
|
|
11524
11923
|
locales?: (string | string[]);
|
|
11525
11924
|
order?: ("asc" | "desc");
|
|
11526
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11527
11925
|
customGroups?: ({
|
|
11528
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11529
11926
|
fallbackSort?: {
|
|
11927
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11530
11928
|
order?: ("asc" | "desc");
|
|
11531
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11532
11929
|
};
|
|
11930
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11533
11931
|
groupName: string;
|
|
11932
|
+
newlinesInside?: ("ignore" | number);
|
|
11534
11933
|
order?: ("asc" | "desc");
|
|
11535
|
-
|
|
11536
|
-
anyOf?: {
|
|
11537
|
-
selector?: ("initialized" | "uninitialized");
|
|
11934
|
+
anyOf: {
|
|
11538
11935
|
elementNamePattern?: (({
|
|
11539
11936
|
pattern: string;
|
|
11540
11937
|
flags?: string;
|
|
@@ -11542,17 +11939,17 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
11542
11939
|
pattern: string;
|
|
11543
11940
|
flags?: string;
|
|
11544
11941
|
} | string));
|
|
11942
|
+
selector?: ("initialized" | "uninitialized");
|
|
11545
11943
|
}[];
|
|
11546
11944
|
} | {
|
|
11547
|
-
newlinesInside?: (("always" | "never") | number);
|
|
11548
11945
|
fallbackSort?: {
|
|
11946
|
+
type: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11549
11947
|
order?: ("asc" | "desc");
|
|
11550
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11551
11948
|
};
|
|
11949
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11552
11950
|
groupName: string;
|
|
11951
|
+
newlinesInside?: ("ignore" | number);
|
|
11553
11952
|
order?: ("asc" | "desc");
|
|
11554
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11555
|
-
selector?: ("initialized" | "uninitialized");
|
|
11556
11953
|
elementNamePattern?: (({
|
|
11557
11954
|
pattern: string;
|
|
11558
11955
|
flags?: string;
|
|
@@ -11560,7 +11957,19 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
11560
11957
|
pattern: string;
|
|
11561
11958
|
flags?: string;
|
|
11562
11959
|
} | string));
|
|
11960
|
+
selector?: ("initialized" | "uninitialized");
|
|
11961
|
+
})[];
|
|
11962
|
+
newlinesInside?: (("ignore" | number) | "newlinesBetween");
|
|
11963
|
+
groups?: (string | [string, ...(string)[]] | {
|
|
11964
|
+
newlinesBetween: ("ignore" | number);
|
|
11965
|
+
} | {
|
|
11966
|
+
group: (string | [string, ...(string)[]]);
|
|
11967
|
+
commentAbove?: string;
|
|
11968
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted");
|
|
11969
|
+
newlinesInside?: ("ignore" | number);
|
|
11970
|
+
order?: ("asc" | "desc");
|
|
11563
11971
|
})[];
|
|
11972
|
+
newlinesBetween?: ("ignore" | number);
|
|
11564
11973
|
partitionByComment?: (boolean | (({
|
|
11565
11974
|
pattern: string;
|
|
11566
11975
|
flags?: string;
|
|
@@ -11584,11 +11993,6 @@ type PerfectionistSortVariableDeclarations = [] | [{
|
|
|
11584
11993
|
} | string)));
|
|
11585
11994
|
});
|
|
11586
11995
|
partitionByNewLine?: boolean;
|
|
11587
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11588
|
-
groups?: (string | string[] | {
|
|
11589
|
-
newlinesBetween?: (("ignore" | "always" | "never") | number);
|
|
11590
|
-
commentAbove?: string;
|
|
11591
|
-
})[];
|
|
11592
11996
|
}];
|
|
11593
11997
|
// ----- prefer-arrow-callback -----
|
|
11594
11998
|
type PreferArrowCallback = [] | [{
|
|
@@ -11831,8 +12235,13 @@ type ReactXNoForbiddenProps = [] | [{
|
|
|
11831
12235
|
prop: string;
|
|
11832
12236
|
})[];
|
|
11833
12237
|
}];
|
|
12238
|
+
// ----- react-x/no-unstable-default-props -----
|
|
12239
|
+
type ReactXNoUnstableDefaultProps = [] | [{
|
|
12240
|
+
safeDefaultProps?: string[];
|
|
12241
|
+
}];
|
|
11834
12242
|
// ----- react-x/no-useless-fragment -----
|
|
11835
12243
|
type ReactXNoUselessFragment = [] | [{
|
|
12244
|
+
allowEmptyFragment?: boolean;
|
|
11836
12245
|
allowExpressions?: boolean;
|
|
11837
12246
|
}];
|
|
11838
12247
|
// ----- regexp/hexadecimal-escape -----
|
|
@@ -12053,6 +12462,13 @@ type SwitchColonSpacing = [] | [{
|
|
|
12053
12462
|
type TemplateCurlySpacing = [] | [("always" | "never")];
|
|
12054
12463
|
// ----- template-tag-spacing -----
|
|
12055
12464
|
type TemplateTagSpacing = [] | [("always" | "never")];
|
|
12465
|
+
// ----- test/consistent-each-for -----
|
|
12466
|
+
type TestConsistentEachFor = [] | [{
|
|
12467
|
+
test?: ("each" | "for");
|
|
12468
|
+
it?: ("each" | "for");
|
|
12469
|
+
describe?: ("each" | "for");
|
|
12470
|
+
suite?: ("each" | "for");
|
|
12471
|
+
}];
|
|
12056
12472
|
// ----- test/consistent-test-filename -----
|
|
12057
12473
|
type TestConsistentTestFilename = [] | [{
|
|
12058
12474
|
pattern?: string;
|
|
@@ -12086,7 +12502,7 @@ type TestNoFocusedTests = [] | [{
|
|
|
12086
12502
|
}];
|
|
12087
12503
|
// ----- test/no-hooks -----
|
|
12088
12504
|
type TestNoHooks = [] | [{
|
|
12089
|
-
allow?:
|
|
12505
|
+
allow?: ("beforeAll" | "beforeEach" | "afterAll" | "afterEach")[];
|
|
12090
12506
|
}];
|
|
12091
12507
|
// ----- test/no-large-snapshots -----
|
|
12092
12508
|
type TestNoLargeSnapshots = [] | [{
|