@ntnyq/eslint-config 3.11.0 → 3.12.1
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/README.md +19 -4
- package/dist/index.cjs +274 -174
- package/dist/index.d.cts +377 -61
- package/dist/index.d.ts +377 -61
- package/dist/index.js +339 -243
- package/package.json +44 -28
package/dist/index.d.cts
CHANGED
|
@@ -10,18 +10,17 @@ import { Linter } from 'eslint';
|
|
|
10
10
|
import { ConfigWithExtends } from 'typescript-eslint';
|
|
11
11
|
export { plugin as pluginTypeScript, configs as typescriptConfigs } from 'typescript-eslint';
|
|
12
12
|
import { RequiredOptions, BuiltInParserName } from 'prettier';
|
|
13
|
+
import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
|
|
13
14
|
import * as eslintPluginRegexp from 'eslint-plugin-regexp';
|
|
14
15
|
export { eslintPluginRegexp as pluginRegexp };
|
|
15
16
|
import * as eslintPluginDepend from 'eslint-plugin-depend';
|
|
16
17
|
export { eslintPluginDepend as pluginDepend };
|
|
17
18
|
export { default as pluginNode } from 'eslint-plugin-n';
|
|
18
19
|
export { default as pluginVue } from 'eslint-plugin-vue';
|
|
19
|
-
export { default as pluginEsX } from 'eslint-plugin-es-x';
|
|
20
20
|
export { default as pluginYaml } from 'eslint-plugin-yml';
|
|
21
21
|
export { default as pluginSvgo } from 'eslint-plugin-svgo';
|
|
22
22
|
export { default as pluginToml } from 'eslint-plugin-toml';
|
|
23
23
|
export { default as pluginPinia } from 'eslint-plugin-pinia';
|
|
24
|
-
export { default as pluginNtnyq } from 'eslint-plugin-ntnyq';
|
|
25
24
|
export { default as pluginMarkdown } from '@eslint/markdown';
|
|
26
25
|
export { default as pluginAntfu } from 'eslint-plugin-antfu';
|
|
27
26
|
export { default as pluginJsdoc } from 'eslint-plugin-jsdoc';
|
|
@@ -32,7 +31,6 @@ export { default as pluginVitest } from '@vitest/eslint-plugin';
|
|
|
32
31
|
export { default as pluginUnicorn } from 'eslint-plugin-unicorn';
|
|
33
32
|
export { default as pluginImportX } from 'eslint-plugin-import-x';
|
|
34
33
|
export { default as pluginPrettier } from 'eslint-plugin-prettier';
|
|
35
|
-
export { default as pluginStylistic } from '@stylistic/eslint-plugin';
|
|
36
34
|
export { default as pluginPerfectionist } from 'eslint-plugin-perfectionist';
|
|
37
35
|
export { default as pluginUnusedImports } from 'eslint-plugin-unused-imports';
|
|
38
36
|
export { default as pluginComments } from '@eslint-community/eslint-plugin-eslint-comments';
|
|
@@ -1446,7 +1444,7 @@ interface RuleOptions {
|
|
|
1446
1444
|
*/
|
|
1447
1445
|
'default-case'?: Linter.RuleEntry<DefaultCase>;
|
|
1448
1446
|
/**
|
|
1449
|
-
* Enforce `default` clauses in switch statements to be last
|
|
1447
|
+
* Enforce `default` clauses in `switch` statements to be last
|
|
1450
1448
|
* @see https://eslint.org/docs/latest/rules/default-case-last
|
|
1451
1449
|
*/
|
|
1452
1450
|
'default-case-last'?: Linter.RuleEntry<[]>;
|
|
@@ -2996,6 +2994,161 @@ interface RuleOptions {
|
|
|
2996
2994
|
* @see http://eslint-community.github.io/eslint-plugin-es-x/rules/no-weakrefs.html
|
|
2997
2995
|
*/
|
|
2998
2996
|
'es-x/no-weakrefs'?: Linter.RuleEntry<[]>;
|
|
2997
|
+
/**
|
|
2998
|
+
* enforce consistent use of `output` assertions in rule tests
|
|
2999
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/consistent-output.md
|
|
3000
|
+
*/
|
|
3001
|
+
'eslint-plugin/consistent-output'?: Linter.RuleEntry<EslintPluginConsistentOutput>;
|
|
3002
|
+
/**
|
|
3003
|
+
* require fixer functions to return a fix
|
|
3004
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/fixer-return.md
|
|
3005
|
+
*/
|
|
3006
|
+
'eslint-plugin/fixer-return'?: Linter.RuleEntry<[]>;
|
|
3007
|
+
/**
|
|
3008
|
+
* enforce the order of meta properties
|
|
3009
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/meta-property-ordering.md
|
|
3010
|
+
*/
|
|
3011
|
+
'eslint-plugin/meta-property-ordering'?: Linter.RuleEntry<EslintPluginMetaPropertyOrdering>;
|
|
3012
|
+
/**
|
|
3013
|
+
* disallow usage of deprecated methods on rule context objects
|
|
3014
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/no-deprecated-context-methods.md
|
|
3015
|
+
*/
|
|
3016
|
+
'eslint-plugin/no-deprecated-context-methods'?: Linter.RuleEntry<[]>;
|
|
3017
|
+
/**
|
|
3018
|
+
* disallow the version of `context.report()` with multiple arguments
|
|
3019
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/no-deprecated-report-api.md
|
|
3020
|
+
*/
|
|
3021
|
+
'eslint-plugin/no-deprecated-report-api'?: Linter.RuleEntry<[]>;
|
|
3022
|
+
/**
|
|
3023
|
+
* disallow identical tests
|
|
3024
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/no-identical-tests.md
|
|
3025
|
+
*/
|
|
3026
|
+
'eslint-plugin/no-identical-tests'?: Linter.RuleEntry<[]>;
|
|
3027
|
+
/**
|
|
3028
|
+
* disallow rules `meta.schema` properties to include defaults
|
|
3029
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/no-meta-schema-default.md
|
|
3030
|
+
*/
|
|
3031
|
+
'eslint-plugin/no-meta-schema-default'?: Linter.RuleEntry<[]>;
|
|
3032
|
+
/**
|
|
3033
|
+
* disallow `messageId`s that are missing from `meta.messages`
|
|
3034
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/no-missing-message-ids.md
|
|
3035
|
+
*/
|
|
3036
|
+
'eslint-plugin/no-missing-message-ids'?: Linter.RuleEntry<[]>;
|
|
3037
|
+
/**
|
|
3038
|
+
* disallow missing placeholders in rule report messages
|
|
3039
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/no-missing-placeholders.md
|
|
3040
|
+
*/
|
|
3041
|
+
'eslint-plugin/no-missing-placeholders'?: Linter.RuleEntry<[]>;
|
|
3042
|
+
/**
|
|
3043
|
+
* disallow the test case property `only`
|
|
3044
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/no-only-tests.md
|
|
3045
|
+
*/
|
|
3046
|
+
'eslint-plugin/no-only-tests'?: Linter.RuleEntry<[]>;
|
|
3047
|
+
/**
|
|
3048
|
+
* disallow using `in` to narrow node types instead of looking at properties
|
|
3049
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/no-property-in-node.md
|
|
3050
|
+
*/
|
|
3051
|
+
'eslint-plugin/no-property-in-node'?: Linter.RuleEntry<EslintPluginNoPropertyInNode>;
|
|
3052
|
+
/**
|
|
3053
|
+
* disallow unused `messageId`s in `meta.messages`
|
|
3054
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/no-unused-message-ids.md
|
|
3055
|
+
*/
|
|
3056
|
+
'eslint-plugin/no-unused-message-ids'?: Linter.RuleEntry<[]>;
|
|
3057
|
+
/**
|
|
3058
|
+
* disallow unused placeholders in rule report messages
|
|
3059
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/no-unused-placeholders.md
|
|
3060
|
+
*/
|
|
3061
|
+
'eslint-plugin/no-unused-placeholders'?: Linter.RuleEntry<[]>;
|
|
3062
|
+
/**
|
|
3063
|
+
* disallow unnecessary calls to `sourceCode.getFirstToken()` and `sourceCode.getLastToken()`
|
|
3064
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/no-useless-token-range.md
|
|
3065
|
+
*/
|
|
3066
|
+
'eslint-plugin/no-useless-token-range'?: Linter.RuleEntry<[]>;
|
|
3067
|
+
/**
|
|
3068
|
+
* require using `messageId` instead of `message` or `desc` to report rule violations
|
|
3069
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/prefer-message-ids.md
|
|
3070
|
+
*/
|
|
3071
|
+
'eslint-plugin/prefer-message-ids'?: Linter.RuleEntry<[]>;
|
|
3072
|
+
/**
|
|
3073
|
+
* disallow function-style rules
|
|
3074
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/prefer-object-rule.md
|
|
3075
|
+
*/
|
|
3076
|
+
'eslint-plugin/prefer-object-rule'?: Linter.RuleEntry<[]>;
|
|
3077
|
+
/**
|
|
3078
|
+
* disallow invalid RuleTester test cases where the `output` matches the `code`
|
|
3079
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/prefer-output-null.md
|
|
3080
|
+
*/
|
|
3081
|
+
'eslint-plugin/prefer-output-null'?: Linter.RuleEntry<[]>;
|
|
3082
|
+
/**
|
|
3083
|
+
* require using placeholders for dynamic report messages
|
|
3084
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/prefer-placeholders.md
|
|
3085
|
+
*/
|
|
3086
|
+
'eslint-plugin/prefer-placeholders'?: Linter.RuleEntry<[]>;
|
|
3087
|
+
/**
|
|
3088
|
+
* require using `replaceText()` instead of `replaceTextRange()`
|
|
3089
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/prefer-replace-text.md
|
|
3090
|
+
*/
|
|
3091
|
+
'eslint-plugin/prefer-replace-text'?: Linter.RuleEntry<[]>;
|
|
3092
|
+
/**
|
|
3093
|
+
* enforce a consistent format for rule report messages
|
|
3094
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/report-message-format.md
|
|
3095
|
+
*/
|
|
3096
|
+
'eslint-plugin/report-message-format'?: Linter.RuleEntry<EslintPluginReportMessageFormat>;
|
|
3097
|
+
/**
|
|
3098
|
+
* require only rules with options to implement a `meta.defaultOptions` property
|
|
3099
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/require-meta-default-options.md
|
|
3100
|
+
*/
|
|
3101
|
+
'eslint-plugin/require-meta-default-options'?: Linter.RuleEntry<[]>;
|
|
3102
|
+
/**
|
|
3103
|
+
* require rules to implement a `meta.docs.description` property with the correct format
|
|
3104
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/require-meta-docs-description.md
|
|
3105
|
+
*/
|
|
3106
|
+
'eslint-plugin/require-meta-docs-description'?: Linter.RuleEntry<EslintPluginRequireMetaDocsDescription>;
|
|
3107
|
+
/**
|
|
3108
|
+
* require rules to implement a `meta.docs.recommended` property
|
|
3109
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/require-meta-docs-recommended.md
|
|
3110
|
+
*/
|
|
3111
|
+
'eslint-plugin/require-meta-docs-recommended'?: Linter.RuleEntry<EslintPluginRequireMetaDocsRecommended>;
|
|
3112
|
+
/**
|
|
3113
|
+
* require rules to implement a `meta.docs.url` property
|
|
3114
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/require-meta-docs-url.md
|
|
3115
|
+
*/
|
|
3116
|
+
'eslint-plugin/require-meta-docs-url'?: Linter.RuleEntry<EslintPluginRequireMetaDocsUrl>;
|
|
3117
|
+
/**
|
|
3118
|
+
* require rules to implement a `meta.fixable` property
|
|
3119
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/require-meta-fixable.md
|
|
3120
|
+
*/
|
|
3121
|
+
'eslint-plugin/require-meta-fixable'?: Linter.RuleEntry<EslintPluginRequireMetaFixable>;
|
|
3122
|
+
/**
|
|
3123
|
+
* require suggestable rules to implement a `meta.hasSuggestions` property
|
|
3124
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/require-meta-has-suggestions.md
|
|
3125
|
+
*/
|
|
3126
|
+
'eslint-plugin/require-meta-has-suggestions'?: Linter.RuleEntry<[]>;
|
|
3127
|
+
/**
|
|
3128
|
+
* require rules to implement a `meta.schema` property
|
|
3129
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/require-meta-schema.md
|
|
3130
|
+
*/
|
|
3131
|
+
'eslint-plugin/require-meta-schema'?: Linter.RuleEntry<EslintPluginRequireMetaSchema>;
|
|
3132
|
+
/**
|
|
3133
|
+
* require rules `meta.schema` properties to include descriptions
|
|
3134
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/require-meta-schema-description.md
|
|
3135
|
+
*/
|
|
3136
|
+
'eslint-plugin/require-meta-schema-description'?: Linter.RuleEntry<[]>;
|
|
3137
|
+
/**
|
|
3138
|
+
* require rules to implement a `meta.type` property
|
|
3139
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/require-meta-type.md
|
|
3140
|
+
*/
|
|
3141
|
+
'eslint-plugin/require-meta-type'?: Linter.RuleEntry<[]>;
|
|
3142
|
+
/**
|
|
3143
|
+
* require the properties of a test case to be placed in a consistent order
|
|
3144
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/test-case-property-ordering.md
|
|
3145
|
+
*/
|
|
3146
|
+
'eslint-plugin/test-case-property-ordering'?: Linter.RuleEntry<EslintPluginTestCasePropertyOrdering>;
|
|
3147
|
+
/**
|
|
3148
|
+
* enforce consistent usage of shorthand strings for test cases with no options
|
|
3149
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/test-case-shorthand-strings.md
|
|
3150
|
+
*/
|
|
3151
|
+
'eslint-plugin/test-case-shorthand-strings'?: Linter.RuleEntry<EslintPluginTestCaseShorthandStrings>;
|
|
2999
3152
|
/**
|
|
3000
3153
|
* Enforce `for` loop update clause moving the counter in the right direction
|
|
3001
3154
|
* @see https://eslint.org/docs/latest/rules/for-direction
|
|
@@ -5108,6 +5261,11 @@ interface RuleOptions {
|
|
|
5108
5261
|
* @see https://eslint-plugin.ntnyq.com/rules/no-member-accessibility.html
|
|
5109
5262
|
*/
|
|
5110
5263
|
'ntnyq/no-member-accessibility'?: Linter.RuleEntry<[]>;
|
|
5264
|
+
/**
|
|
5265
|
+
* require a newline after file header
|
|
5266
|
+
* @see https://eslint-plugin.ntnyq.com/rules/prefer-newline-after-file-header.html
|
|
5267
|
+
*/
|
|
5268
|
+
'ntnyq/prefer-newline-after-file-header'?: Linter.RuleEntry<NtnyqPreferNewlineAfterFileHeader>;
|
|
5111
5269
|
/**
|
|
5112
5270
|
* Enforce consistent line breaks after opening and before closing braces
|
|
5113
5271
|
* @see https://eslint.org/docs/latest/rules/object-curly-newline
|
|
@@ -5847,7 +6005,7 @@ interface RuleOptions {
|
|
|
5847
6005
|
*/
|
|
5848
6006
|
'semi-style'?: Linter.RuleEntry<SemiStyle>;
|
|
5849
6007
|
/**
|
|
5850
|
-
* Enforce sorted import declarations within modules
|
|
6008
|
+
* Enforce sorted `import` declarations within modules
|
|
5851
6009
|
* @see https://eslint.org/docs/latest/rules/sort-imports
|
|
5852
6010
|
*/
|
|
5853
6011
|
'sort-imports'?: Linter.RuleEntry<SortImports>;
|
|
@@ -11644,6 +11802,41 @@ type EsXNoSymbolPrototypeDescription = [] | [
|
|
|
11644
11802
|
aggressive?: boolean;
|
|
11645
11803
|
}
|
|
11646
11804
|
];
|
|
11805
|
+
type EslintPluginConsistentOutput = [] | [("always" | "consistent")];
|
|
11806
|
+
type EslintPluginMetaPropertyOrdering = [] | [unknown[]];
|
|
11807
|
+
type EslintPluginNoPropertyInNode = [] | [
|
|
11808
|
+
{
|
|
11809
|
+
additionalNodeTypeFiles?: unknown[];
|
|
11810
|
+
}
|
|
11811
|
+
];
|
|
11812
|
+
type EslintPluginReportMessageFormat = [] | [string];
|
|
11813
|
+
type EslintPluginRequireMetaDocsDescription = [] | [
|
|
11814
|
+
{
|
|
11815
|
+
pattern?: string;
|
|
11816
|
+
}
|
|
11817
|
+
];
|
|
11818
|
+
type EslintPluginRequireMetaDocsRecommended = [] | [
|
|
11819
|
+
{
|
|
11820
|
+
allowNonBoolean?: boolean;
|
|
11821
|
+
}
|
|
11822
|
+
];
|
|
11823
|
+
type EslintPluginRequireMetaDocsUrl = [] | [
|
|
11824
|
+
{
|
|
11825
|
+
pattern?: string;
|
|
11826
|
+
}
|
|
11827
|
+
];
|
|
11828
|
+
type EslintPluginRequireMetaFixable = [] | [
|
|
11829
|
+
{
|
|
11830
|
+
catchNoFixerButFixableProperty?: boolean;
|
|
11831
|
+
}
|
|
11832
|
+
];
|
|
11833
|
+
type EslintPluginRequireMetaSchema = [] | [
|
|
11834
|
+
{
|
|
11835
|
+
requireSchemaPropertyWhenOptionless?: boolean;
|
|
11836
|
+
}
|
|
11837
|
+
];
|
|
11838
|
+
type EslintPluginTestCasePropertyOrdering = [] | [unknown[]];
|
|
11839
|
+
type EslintPluginTestCaseShorthandStrings = [] | [("as-needed" | "never" | "consistent" | "consistent-as-needed")];
|
|
11647
11840
|
type FormatDprint = [] | [
|
|
11648
11841
|
{
|
|
11649
11842
|
language?: string;
|
|
@@ -14166,6 +14359,11 @@ type NtnyqNoDuplicateExports = [] | [
|
|
|
14166
14359
|
style?: ("inline" | "separate");
|
|
14167
14360
|
}
|
|
14168
14361
|
];
|
|
14362
|
+
type NtnyqPreferNewlineAfterFileHeader = [] | [
|
|
14363
|
+
{
|
|
14364
|
+
tags?: string[];
|
|
14365
|
+
}
|
|
14366
|
+
];
|
|
14169
14367
|
type ObjectCurlyNewline = [] | [
|
|
14170
14368
|
((("always" | "never") | {
|
|
14171
14369
|
multiline?: boolean;
|
|
@@ -14266,12 +14464,17 @@ type PaddingLineBetweenStatements = {
|
|
|
14266
14464
|
next: _PaddingLineBetweenStatementsStatementType;
|
|
14267
14465
|
}[];
|
|
14268
14466
|
type PerfectionistSortArrayIncludes = {
|
|
14269
|
-
partitionByComment?: (string[] | boolean | string
|
|
14467
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
14468
|
+
block?: (string[] | boolean | string);
|
|
14469
|
+
line?: (string[] | boolean | string);
|
|
14470
|
+
[k: string]: unknown | undefined;
|
|
14471
|
+
});
|
|
14270
14472
|
groupKind?: ("mixed" | "literals-first" | "spreads-first");
|
|
14271
14473
|
customGroups?: ({
|
|
14272
14474
|
groupName?: string;
|
|
14273
14475
|
type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
|
|
14274
14476
|
order?: ("desc" | "asc");
|
|
14477
|
+
newlinesInside?: ("always" | "never");
|
|
14275
14478
|
anyOf?: {
|
|
14276
14479
|
selector?: ("literal" | "spread");
|
|
14277
14480
|
elementNamePattern?: string;
|
|
@@ -14280,6 +14483,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
14280
14483
|
groupName?: string;
|
|
14281
14484
|
type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
|
|
14282
14485
|
order?: ("desc" | "asc");
|
|
14486
|
+
newlinesInside?: ("always" | "never");
|
|
14283
14487
|
selector?: ("literal" | "spread");
|
|
14284
14488
|
elementNamePattern?: string;
|
|
14285
14489
|
})[];
|
|
@@ -14292,17 +14496,25 @@ type PerfectionistSortArrayIncludes = {
|
|
|
14292
14496
|
ignoreCase?: boolean;
|
|
14293
14497
|
alphabet?: string;
|
|
14294
14498
|
locales?: (string | string[]);
|
|
14295
|
-
groups?: (string | string[]
|
|
14499
|
+
groups?: (string | string[] | {
|
|
14500
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
14501
|
+
[k: string]: unknown | undefined;
|
|
14502
|
+
})[];
|
|
14296
14503
|
order?: ("asc" | "desc");
|
|
14297
14504
|
}[];
|
|
14298
14505
|
type PerfectionistSortClasses = [] | [
|
|
14299
14506
|
{
|
|
14300
14507
|
ignoreCallbackDependenciesPatterns?: string[];
|
|
14301
|
-
partitionByComment?: (string[] | boolean | string
|
|
14508
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
14509
|
+
block?: (string[] | boolean | string);
|
|
14510
|
+
line?: (string[] | boolean | string);
|
|
14511
|
+
[k: string]: unknown | undefined;
|
|
14512
|
+
});
|
|
14302
14513
|
customGroups?: ({
|
|
14303
14514
|
groupName?: string;
|
|
14304
14515
|
type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
|
|
14305
14516
|
order?: ("desc" | "asc");
|
|
14517
|
+
newlinesInside?: ("always" | "never");
|
|
14306
14518
|
anyOf?: {
|
|
14307
14519
|
elementValuePattern?: string;
|
|
14308
14520
|
decoratorNamePattern?: string;
|
|
@@ -14314,6 +14526,7 @@ type PerfectionistSortClasses = [] | [
|
|
|
14314
14526
|
groupName?: string;
|
|
14315
14527
|
type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
|
|
14316
14528
|
order?: ("desc" | "asc");
|
|
14529
|
+
newlinesInside?: ("always" | "never");
|
|
14317
14530
|
elementValuePattern?: string;
|
|
14318
14531
|
decoratorNamePattern?: string;
|
|
14319
14532
|
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
@@ -14327,13 +14540,20 @@ type PerfectionistSortClasses = [] | [
|
|
|
14327
14540
|
alphabet?: string;
|
|
14328
14541
|
type?: ("alphabetical" | "natural" | "line-length" | "custom");
|
|
14329
14542
|
locales?: (string | string[]);
|
|
14330
|
-
groups?: (string | string[]
|
|
14543
|
+
groups?: (string | string[] | {
|
|
14544
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
14545
|
+
[k: string]: unknown | undefined;
|
|
14546
|
+
})[];
|
|
14331
14547
|
order?: ("asc" | "desc");
|
|
14332
14548
|
}
|
|
14333
14549
|
];
|
|
14334
14550
|
type PerfectionistSortDecorators = [] | [
|
|
14335
14551
|
{
|
|
14336
|
-
partitionByComment?: (string[] | boolean | string
|
|
14552
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
14553
|
+
block?: (string[] | boolean | string);
|
|
14554
|
+
line?: (string[] | boolean | string);
|
|
14555
|
+
[k: string]: unknown | undefined;
|
|
14556
|
+
});
|
|
14337
14557
|
sortOnParameters?: boolean;
|
|
14338
14558
|
sortOnProperties?: boolean;
|
|
14339
14559
|
sortOnAccessors?: boolean;
|
|
@@ -14347,13 +14567,20 @@ type PerfectionistSortDecorators = [] | [
|
|
|
14347
14567
|
alphabet?: string;
|
|
14348
14568
|
type?: ("alphabetical" | "natural" | "line-length" | "custom");
|
|
14349
14569
|
locales?: (string | string[]);
|
|
14350
|
-
groups?: (string | string[]
|
|
14570
|
+
groups?: (string | string[] | {
|
|
14571
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
14572
|
+
[k: string]: unknown | undefined;
|
|
14573
|
+
})[];
|
|
14351
14574
|
order?: ("asc" | "desc");
|
|
14352
14575
|
}
|
|
14353
14576
|
];
|
|
14354
14577
|
type PerfectionistSortEnums = [] | [
|
|
14355
14578
|
{
|
|
14356
|
-
partitionByComment?: (string[] | boolean | string
|
|
14579
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
14580
|
+
block?: (string[] | boolean | string);
|
|
14581
|
+
line?: (string[] | boolean | string);
|
|
14582
|
+
[k: string]: unknown | undefined;
|
|
14583
|
+
});
|
|
14357
14584
|
forceNumericSort?: boolean;
|
|
14358
14585
|
sortByValue?: boolean;
|
|
14359
14586
|
partitionByNewLine?: boolean;
|
|
@@ -14367,7 +14594,11 @@ type PerfectionistSortEnums = [] | [
|
|
|
14367
14594
|
];
|
|
14368
14595
|
type PerfectionistSortExports = [] | [
|
|
14369
14596
|
{
|
|
14370
|
-
partitionByComment?: (string[] | boolean | string
|
|
14597
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
14598
|
+
block?: (string[] | boolean | string);
|
|
14599
|
+
line?: (string[] | boolean | string);
|
|
14600
|
+
[k: string]: unknown | undefined;
|
|
14601
|
+
});
|
|
14371
14602
|
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
14372
14603
|
partitionByNewLine?: boolean;
|
|
14373
14604
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
@@ -14388,7 +14619,10 @@ type PerfectionistSortHeritageClauses = [] | [
|
|
|
14388
14619
|
alphabet?: string;
|
|
14389
14620
|
type?: ("alphabetical" | "natural" | "line-length" | "custom");
|
|
14390
14621
|
locales?: (string | string[]);
|
|
14391
|
-
groups?: (string | string[]
|
|
14622
|
+
groups?: (string | string[] | {
|
|
14623
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
14624
|
+
[k: string]: unknown | undefined;
|
|
14625
|
+
})[];
|
|
14392
14626
|
order?: ("asc" | "desc");
|
|
14393
14627
|
}
|
|
14394
14628
|
];
|
|
@@ -14402,7 +14636,11 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
|
|
|
14402
14636
|
[k: string]: unknown | undefined;
|
|
14403
14637
|
};
|
|
14404
14638
|
};
|
|
14405
|
-
partitionByComment?: (string[] | boolean | string
|
|
14639
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
14640
|
+
block?: (string[] | boolean | string);
|
|
14641
|
+
line?: (string[] | boolean | string);
|
|
14642
|
+
[k: string]: unknown | undefined;
|
|
14643
|
+
});
|
|
14406
14644
|
internalPattern?: string[];
|
|
14407
14645
|
maxLineLength?: number;
|
|
14408
14646
|
sortSideEffects?: boolean;
|
|
@@ -14415,7 +14653,10 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
|
|
|
14415
14653
|
alphabet?: string;
|
|
14416
14654
|
type?: ("alphabetical" | "natural" | "line-length" | "custom");
|
|
14417
14655
|
locales?: (string | string[]);
|
|
14418
|
-
groups?: (string | string[]
|
|
14656
|
+
groups?: (string | string[] | {
|
|
14657
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
14658
|
+
[k: string]: unknown | undefined;
|
|
14659
|
+
})[];
|
|
14419
14660
|
order?: ("asc" | "desc");
|
|
14420
14661
|
});
|
|
14421
14662
|
type _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType = ({
|
|
@@ -14431,13 +14672,18 @@ type PerfectionistSortInterfaces = {
|
|
|
14431
14672
|
allNamesMatchPattern?: string;
|
|
14432
14673
|
declarationMatchesPattern?: string;
|
|
14433
14674
|
};
|
|
14434
|
-
partitionByComment?: (string[] | boolean | string
|
|
14675
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
14676
|
+
block?: (string[] | boolean | string);
|
|
14677
|
+
line?: (string[] | boolean | string);
|
|
14678
|
+
[k: string]: unknown | undefined;
|
|
14679
|
+
});
|
|
14435
14680
|
customGroups?: ({
|
|
14436
14681
|
[k: string]: (string | string[]) | undefined;
|
|
14437
14682
|
} | ({
|
|
14438
14683
|
groupName?: string;
|
|
14439
14684
|
type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
|
|
14440
14685
|
order?: ("desc" | "asc");
|
|
14686
|
+
newlinesInside?: ("always" | "never");
|
|
14441
14687
|
anyOf?: {
|
|
14442
14688
|
modifiers?: ("optional" | "required" | "multiline")[];
|
|
14443
14689
|
selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
|
|
@@ -14447,6 +14693,7 @@ type PerfectionistSortInterfaces = {
|
|
|
14447
14693
|
groupName?: string;
|
|
14448
14694
|
type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
|
|
14449
14695
|
order?: ("desc" | "asc");
|
|
14696
|
+
newlinesInside?: ("always" | "never");
|
|
14450
14697
|
modifiers?: ("optional" | "required" | "multiline")[];
|
|
14451
14698
|
selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
|
|
14452
14699
|
elementNamePattern?: string;
|
|
@@ -14459,12 +14706,19 @@ type PerfectionistSortInterfaces = {
|
|
|
14459
14706
|
ignoreCase?: boolean;
|
|
14460
14707
|
alphabet?: string;
|
|
14461
14708
|
locales?: (string | string[]);
|
|
14462
|
-
groups?: (string | string[]
|
|
14709
|
+
groups?: (string | string[] | {
|
|
14710
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
14711
|
+
[k: string]: unknown | undefined;
|
|
14712
|
+
})[];
|
|
14463
14713
|
order?: ("asc" | "desc");
|
|
14464
14714
|
}[];
|
|
14465
14715
|
type PerfectionistSortIntersectionTypes = [] | [
|
|
14466
14716
|
{
|
|
14467
|
-
partitionByComment?: (string[] | boolean | string
|
|
14717
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
14718
|
+
block?: (string[] | boolean | string);
|
|
14719
|
+
line?: (string[] | boolean | string);
|
|
14720
|
+
[k: string]: unknown | undefined;
|
|
14721
|
+
});
|
|
14468
14722
|
partitionByNewLine?: boolean;
|
|
14469
14723
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
14470
14724
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
@@ -14472,7 +14726,10 @@ type PerfectionistSortIntersectionTypes = [] | [
|
|
|
14472
14726
|
alphabet?: string;
|
|
14473
14727
|
type?: ("alphabetical" | "natural" | "line-length" | "custom");
|
|
14474
14728
|
locales?: (string | string[]);
|
|
14475
|
-
groups?: (string | string[]
|
|
14729
|
+
groups?: (string | string[] | {
|
|
14730
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
14731
|
+
[k: string]: unknown | undefined;
|
|
14732
|
+
})[];
|
|
14476
14733
|
order?: ("asc" | "desc");
|
|
14477
14734
|
}
|
|
14478
14735
|
];
|
|
@@ -14487,13 +14744,20 @@ type PerfectionistSortJsxProps = [] | [
|
|
|
14487
14744
|
alphabet?: string;
|
|
14488
14745
|
type?: ("alphabetical" | "natural" | "line-length" | "custom");
|
|
14489
14746
|
locales?: (string | string[]);
|
|
14490
|
-
groups?: (string | string[]
|
|
14747
|
+
groups?: (string | string[] | {
|
|
14748
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
14749
|
+
[k: string]: unknown | undefined;
|
|
14750
|
+
})[];
|
|
14491
14751
|
order?: ("asc" | "desc");
|
|
14492
14752
|
}
|
|
14493
14753
|
];
|
|
14494
14754
|
type PerfectionistSortMaps = [] | [
|
|
14495
14755
|
{
|
|
14496
|
-
partitionByComment?: (string[] | boolean | string
|
|
14756
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
14757
|
+
block?: (string[] | boolean | string);
|
|
14758
|
+
line?: (string[] | boolean | string);
|
|
14759
|
+
[k: string]: unknown | undefined;
|
|
14760
|
+
});
|
|
14497
14761
|
partitionByNewLine?: boolean;
|
|
14498
14762
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
14499
14763
|
ignoreCase?: boolean;
|
|
@@ -14505,11 +14769,16 @@ type PerfectionistSortMaps = [] | [
|
|
|
14505
14769
|
];
|
|
14506
14770
|
type PerfectionistSortModules = [] | [
|
|
14507
14771
|
{
|
|
14508
|
-
partitionByComment?: (string[] | boolean | string
|
|
14772
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
14773
|
+
block?: (string[] | boolean | string);
|
|
14774
|
+
line?: (string[] | boolean | string);
|
|
14775
|
+
[k: string]: unknown | undefined;
|
|
14776
|
+
});
|
|
14509
14777
|
customGroups?: ({
|
|
14510
14778
|
groupName?: string;
|
|
14511
14779
|
type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
|
|
14512
14780
|
order?: ("desc" | "asc");
|
|
14781
|
+
newlinesInside?: ("always" | "never");
|
|
14513
14782
|
anyOf?: {
|
|
14514
14783
|
decoratorNamePattern?: string;
|
|
14515
14784
|
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
@@ -14520,6 +14789,7 @@ type PerfectionistSortModules = [] | [
|
|
|
14520
14789
|
groupName?: string;
|
|
14521
14790
|
type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
|
|
14522
14791
|
order?: ("desc" | "asc");
|
|
14792
|
+
newlinesInside?: ("always" | "never");
|
|
14523
14793
|
decoratorNamePattern?: string;
|
|
14524
14794
|
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
14525
14795
|
selector?: ("enum" | "function" | "interface" | "type" | "class");
|
|
@@ -14532,13 +14802,20 @@ type PerfectionistSortModules = [] | [
|
|
|
14532
14802
|
alphabet?: string;
|
|
14533
14803
|
type?: ("alphabetical" | "natural" | "line-length" | "custom");
|
|
14534
14804
|
locales?: (string | string[]);
|
|
14535
|
-
groups?: (string | string[]
|
|
14805
|
+
groups?: (string | string[] | {
|
|
14806
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
14807
|
+
[k: string]: unknown | undefined;
|
|
14808
|
+
})[];
|
|
14536
14809
|
order?: ("asc" | "desc");
|
|
14537
14810
|
}
|
|
14538
14811
|
];
|
|
14539
14812
|
type PerfectionistSortNamedExports = [] | [
|
|
14540
14813
|
{
|
|
14541
|
-
partitionByComment?: (string[] | boolean | string
|
|
14814
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
14815
|
+
block?: (string[] | boolean | string);
|
|
14816
|
+
line?: (string[] | boolean | string);
|
|
14817
|
+
[k: string]: unknown | undefined;
|
|
14818
|
+
});
|
|
14542
14819
|
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
14543
14820
|
partitionByNewLine?: boolean;
|
|
14544
14821
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
@@ -14551,7 +14828,11 @@ type PerfectionistSortNamedExports = [] | [
|
|
|
14551
14828
|
];
|
|
14552
14829
|
type PerfectionistSortNamedImports = [] | [
|
|
14553
14830
|
{
|
|
14554
|
-
partitionByComment?: (string[] | boolean | string
|
|
14831
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
14832
|
+
block?: (string[] | boolean | string);
|
|
14833
|
+
line?: (string[] | boolean | string);
|
|
14834
|
+
[k: string]: unknown | undefined;
|
|
14835
|
+
});
|
|
14555
14836
|
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
14556
14837
|
ignoreAlias?: boolean;
|
|
14557
14838
|
partitionByNewLine?: boolean;
|
|
@@ -14569,13 +14850,18 @@ type PerfectionistSortObjectTypes = {
|
|
|
14569
14850
|
allNamesMatchPattern?: string;
|
|
14570
14851
|
declarationMatchesPattern?: string;
|
|
14571
14852
|
};
|
|
14572
|
-
partitionByComment?: (string[] | boolean | string
|
|
14853
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
14854
|
+
block?: (string[] | boolean | string);
|
|
14855
|
+
line?: (string[] | boolean | string);
|
|
14856
|
+
[k: string]: unknown | undefined;
|
|
14857
|
+
});
|
|
14573
14858
|
customGroups?: ({
|
|
14574
14859
|
[k: string]: (string | string[]) | undefined;
|
|
14575
14860
|
} | ({
|
|
14576
14861
|
groupName?: string;
|
|
14577
14862
|
type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
|
|
14578
14863
|
order?: ("desc" | "asc");
|
|
14864
|
+
newlinesInside?: ("always" | "never");
|
|
14579
14865
|
anyOf?: {
|
|
14580
14866
|
modifiers?: ("optional" | "required" | "multiline")[];
|
|
14581
14867
|
selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
|
|
@@ -14585,6 +14871,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
14585
14871
|
groupName?: string;
|
|
14586
14872
|
type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
|
|
14587
14873
|
order?: ("desc" | "asc");
|
|
14874
|
+
newlinesInside?: ("always" | "never");
|
|
14588
14875
|
modifiers?: ("optional" | "required" | "multiline")[];
|
|
14589
14876
|
selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
|
|
14590
14877
|
elementNamePattern?: string;
|
|
@@ -14597,7 +14884,10 @@ type PerfectionistSortObjectTypes = {
|
|
|
14597
14884
|
ignoreCase?: boolean;
|
|
14598
14885
|
alphabet?: string;
|
|
14599
14886
|
locales?: (string | string[]);
|
|
14600
|
-
groups?: (string | string[]
|
|
14887
|
+
groups?: (string | string[] | {
|
|
14888
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
14889
|
+
[k: string]: unknown | undefined;
|
|
14890
|
+
})[];
|
|
14601
14891
|
order?: ("asc" | "desc");
|
|
14602
14892
|
}[];
|
|
14603
14893
|
type PerfectionistSortObjects = {
|
|
@@ -14609,7 +14899,11 @@ type PerfectionistSortObjects = {
|
|
|
14609
14899
|
allNamesMatchPattern?: string;
|
|
14610
14900
|
callingFunctionNamePattern?: string;
|
|
14611
14901
|
};
|
|
14612
|
-
partitionByComment?: (string[] | boolean | string
|
|
14902
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
14903
|
+
block?: (string[] | boolean | string);
|
|
14904
|
+
line?: (string[] | boolean | string);
|
|
14905
|
+
[k: string]: unknown | undefined;
|
|
14906
|
+
});
|
|
14613
14907
|
destructureOnly?: boolean;
|
|
14614
14908
|
objectDeclarations?: boolean;
|
|
14615
14909
|
styledComponents?: boolean;
|
|
@@ -14623,16 +14917,24 @@ type PerfectionistSortObjects = {
|
|
|
14623
14917
|
ignoreCase?: boolean;
|
|
14624
14918
|
alphabet?: string;
|
|
14625
14919
|
locales?: (string | string[]);
|
|
14626
|
-
groups?: (string | string[]
|
|
14920
|
+
groups?: (string | string[] | {
|
|
14921
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
14922
|
+
[k: string]: unknown | undefined;
|
|
14923
|
+
})[];
|
|
14627
14924
|
order?: ("asc" | "desc");
|
|
14628
14925
|
}[];
|
|
14629
14926
|
type PerfectionistSortSets = {
|
|
14630
|
-
partitionByComment?: (string[] | boolean | string
|
|
14927
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
14928
|
+
block?: (string[] | boolean | string);
|
|
14929
|
+
line?: (string[] | boolean | string);
|
|
14930
|
+
[k: string]: unknown | undefined;
|
|
14931
|
+
});
|
|
14631
14932
|
groupKind?: ("mixed" | "literals-first" | "spreads-first");
|
|
14632
14933
|
customGroups?: ({
|
|
14633
14934
|
groupName?: string;
|
|
14634
14935
|
type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
|
|
14635
14936
|
order?: ("desc" | "asc");
|
|
14937
|
+
newlinesInside?: ("always" | "never");
|
|
14636
14938
|
anyOf?: {
|
|
14637
14939
|
selector?: ("literal" | "spread");
|
|
14638
14940
|
elementNamePattern?: string;
|
|
@@ -14641,6 +14943,7 @@ type PerfectionistSortSets = {
|
|
|
14641
14943
|
groupName?: string;
|
|
14642
14944
|
type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
|
|
14643
14945
|
order?: ("desc" | "asc");
|
|
14946
|
+
newlinesInside?: ("always" | "never");
|
|
14644
14947
|
selector?: ("literal" | "spread");
|
|
14645
14948
|
elementNamePattern?: string;
|
|
14646
14949
|
})[];
|
|
@@ -14653,7 +14956,10 @@ type PerfectionistSortSets = {
|
|
|
14653
14956
|
ignoreCase?: boolean;
|
|
14654
14957
|
alphabet?: string;
|
|
14655
14958
|
locales?: (string | string[]);
|
|
14656
|
-
groups?: (string | string[]
|
|
14959
|
+
groups?: (string | string[] | {
|
|
14960
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
14961
|
+
[k: string]: unknown | undefined;
|
|
14962
|
+
})[];
|
|
14657
14963
|
order?: ("asc" | "desc");
|
|
14658
14964
|
}[];
|
|
14659
14965
|
type PerfectionistSortSwitchCase = [] | [
|
|
@@ -14668,7 +14974,11 @@ type PerfectionistSortSwitchCase = [] | [
|
|
|
14668
14974
|
];
|
|
14669
14975
|
type PerfectionistSortUnionTypes = [] | [
|
|
14670
14976
|
{
|
|
14671
|
-
partitionByComment?: (string[] | boolean | string
|
|
14977
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
14978
|
+
block?: (string[] | boolean | string);
|
|
14979
|
+
line?: (string[] | boolean | string);
|
|
14980
|
+
[k: string]: unknown | undefined;
|
|
14981
|
+
});
|
|
14672
14982
|
partitionByNewLine?: boolean;
|
|
14673
14983
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
14674
14984
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
@@ -14676,13 +14986,20 @@ type PerfectionistSortUnionTypes = [] | [
|
|
|
14676
14986
|
alphabet?: string;
|
|
14677
14987
|
type?: ("alphabetical" | "natural" | "line-length" | "custom");
|
|
14678
14988
|
locales?: (string | string[]);
|
|
14679
|
-
groups?: (string | string[]
|
|
14989
|
+
groups?: (string | string[] | {
|
|
14990
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
14991
|
+
[k: string]: unknown | undefined;
|
|
14992
|
+
})[];
|
|
14680
14993
|
order?: ("asc" | "desc");
|
|
14681
14994
|
}
|
|
14682
14995
|
];
|
|
14683
14996
|
type PerfectionistSortVariableDeclarations = [] | [
|
|
14684
14997
|
{
|
|
14685
|
-
partitionByComment?: (string[] | boolean | string
|
|
14998
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
14999
|
+
block?: (string[] | boolean | string);
|
|
15000
|
+
line?: (string[] | boolean | string);
|
|
15001
|
+
[k: string]: unknown | undefined;
|
|
15002
|
+
});
|
|
14686
15003
|
partitionByNewLine?: boolean;
|
|
14687
15004
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
14688
15005
|
ignoreCase?: boolean;
|
|
@@ -17607,7 +17924,7 @@ type Yoda = [] | [("always" | "never")] | [
|
|
|
17607
17924
|
onlyEquality?: boolean;
|
|
17608
17925
|
}
|
|
17609
17926
|
];
|
|
17610
|
-
type ConfigNames = 'ntnyq/antfu' | 'ntnyq/command' | 'ntnyq/eslint-comments' | 'ntnyq/depend' | 'ntnyq/depend/package-json' | 'ntnyq/es-x' | 'ntnyq/format/setup' | 'ntnyq/format/css' | 'ntnyq/format/scss' | 'ntnyq/format/less' | 'ntnyq/format/html' | 'ntnyq/github-action' | 'ntnyq/gitignore' | 'ntnyq/ignores' | 'ntnyq/import-x' | 'ntnyq/js/recommended' | 'ntnyq/js/core' | 'ntnyq/jsdoc' | 'ntnyq/jsonc' | 'ntnyq/jsx' | 'ntnyq/markdown/recommended/plugin' | 'ntnyq/markdown/recommended/processor' | 'ntnyq/markdown/recommended/code-blocks' | 'ntnyq/markdown/processor' | 'ntnyq/markdown/parser' | 'ntnyq/markdown/disabled/code-blocks' | 'ntnyq/node' | 'ntnyq/ntnyq' | 'ntnyq/pinia' | 'ntnyq/prettier' | 'ntnyq/prettier/disabled' | 'ntnyq/perfectionist/common' | 'ntnyq/perfectionist/enums' | 'ntnyq/perfectionist/types' | 'ntnyq/perfectionist/constants' | 'ntnyq/regexp' | 'ntnyq/sort/tsconfig' | 'ntnyq/sort/package-json' | 'ntnyq/sort/i18n-locale/json' | 'ntnyq/sort/i18n-locale/yaml' | 'ntnyq/sort/pnpm-workspace' | 'ntnyq/specials/scripts' | 'ntnyq/specials/cli' | 'ntnyq/specials/userscript' | 'ntnyq/specials/config-file' | 'ntnyq/stylistic' | 'ntnyq/svgo' | 'ntnyq/toml' | 'ntnyq/ts/setup' | 'ntnyq/ts/parser' | 'ntnyq/ts/rules' | 'ntnyq/ts/types' | 'ntnyq/unused-imports' | 'ntnyq/unicorn' | 'ntnyq/unocss' | 'ntnyq/vitest' | 'ntnyq/vue/setup' | 'ntnyq/vue/rules' | 'ntnyq/yaml';
|
|
17927
|
+
type ConfigNames = 'ntnyq/antfu' | 'ntnyq/command' | 'ntnyq/eslint-comments' | 'ntnyq/depend' | 'ntnyq/depend/package-json' | 'ntnyq/eslint-plugin' | 'ntnyq/es-x' | 'ntnyq/format/setup' | 'ntnyq/format/css' | 'ntnyq/format/scss' | 'ntnyq/format/less' | 'ntnyq/format/html' | 'ntnyq/github-action' | 'ntnyq/gitignore' | 'ntnyq/ignores' | 'ntnyq/import-x' | 'ntnyq/js/recommended' | 'ntnyq/js/core' | 'ntnyq/jsdoc' | 'ntnyq/jsonc' | 'ntnyq/jsx' | 'ntnyq/markdown/recommended/plugin' | 'ntnyq/markdown/recommended/processor' | 'ntnyq/markdown/recommended/code-blocks' | 'ntnyq/markdown/processor' | 'ntnyq/markdown/parser' | 'ntnyq/markdown/disabled/code-blocks' | 'ntnyq/node' | 'ntnyq/ntnyq' | 'ntnyq/pinia' | 'ntnyq/prettier' | 'ntnyq/prettier/disabled' | 'ntnyq/perfectionist/common' | 'ntnyq/perfectionist/enums' | 'ntnyq/perfectionist/types' | 'ntnyq/perfectionist/constants' | 'ntnyq/regexp' | 'ntnyq/sort/tsconfig' | 'ntnyq/sort/package-json' | 'ntnyq/sort/i18n-locale/json' | 'ntnyq/sort/i18n-locale/yaml' | 'ntnyq/sort/pnpm-workspace' | 'ntnyq/specials/scripts' | 'ntnyq/specials/cli' | 'ntnyq/specials/userscript' | 'ntnyq/specials/config-file' | 'ntnyq/stylistic' | 'ntnyq/svgo' | 'ntnyq/toml' | 'ntnyq/ts/setup' | 'ntnyq/ts/parser' | 'ntnyq/ts/rules' | 'ntnyq/ts/types' | 'ntnyq/unused-imports' | 'ntnyq/unicorn' | 'ntnyq/unocss' | 'ntnyq/vitest' | 'ntnyq/vue/setup' | 'ntnyq/vue/rules' | 'ntnyq/yaml';
|
|
17611
17928
|
|
|
17612
17929
|
/**
|
|
17613
17930
|
* ESLint rules
|
|
@@ -17666,6 +17983,8 @@ interface ConfigDependOptions extends OptionsFiles, OptionsOverrides {
|
|
|
17666
17983
|
*/
|
|
17667
17984
|
packageJson?: boolean;
|
|
17668
17985
|
}
|
|
17986
|
+
interface ConfigESLintPluginOptions extends OptionsOverrides {
|
|
17987
|
+
}
|
|
17669
17988
|
interface ConfigEsXOptions extends OptionsOverrides {
|
|
17670
17989
|
}
|
|
17671
17990
|
interface ConfigFormatOptions {
|
|
@@ -17950,7 +18269,6 @@ interface OptionsOverrides<Rules extends TypedConfigItem['rules'] = TypedConfigI
|
|
|
17950
18269
|
interface ConfigOptionsInternal {
|
|
17951
18270
|
esX?: boolean | ConfigEsXOptions;
|
|
17952
18271
|
format?: boolean | ConfigFormatOptions;
|
|
17953
|
-
ntnyq?: boolean | ConfigNtnyqOptions;
|
|
17954
18272
|
unusedImports?: boolean | ConfigUnusedImportsOptions;
|
|
17955
18273
|
}
|
|
17956
18274
|
/**
|
|
@@ -17970,10 +18288,12 @@ interface ConfigOptions extends ConfigOptionsInternal, OptionsExtensions {
|
|
|
17970
18288
|
*/
|
|
17971
18289
|
antfu?: boolean | ConfigAntfuOptions;
|
|
17972
18290
|
depend?: boolean | ConfigDependOptions;
|
|
18291
|
+
eslintPlugin?: boolean | ConfigESLintPluginOptions;
|
|
17973
18292
|
githubAction?: boolean | ConfigGitHubActionOptions;
|
|
17974
18293
|
gitignore?: boolean | ConfigGitIgnoreOptions;
|
|
17975
18294
|
jsonc?: boolean | ConfigJsoncOptions;
|
|
17976
18295
|
markdown?: boolean | ConfigMarkdownOptions;
|
|
18296
|
+
ntnyq?: boolean | ConfigNtnyqOptions;
|
|
17977
18297
|
perfectionist?: boolean | ConfigPerfectionistOptions;
|
|
17978
18298
|
pinia?: boolean | ConfigPiniaOptions;
|
|
17979
18299
|
prettier?: boolean | ConfigPrettierOptions;
|
|
@@ -18046,23 +18366,27 @@ declare const GLOB_DIST = "**/dist/**";
|
|
|
18046
18366
|
declare const GLOB_LOCKFILE: string[];
|
|
18047
18367
|
declare const GLOB_EXCLUDE: string[];
|
|
18048
18368
|
|
|
18049
|
-
declare const
|
|
18369
|
+
declare const hasPinia: boolean;
|
|
18050
18370
|
declare const hasVitest: boolean;
|
|
18371
|
+
declare const hasTypeScript: boolean;
|
|
18051
18372
|
declare const hasShadcnVue: boolean;
|
|
18052
|
-
declare const hasVue: boolean;
|
|
18053
|
-
declare const hasPinia: boolean;
|
|
18054
18373
|
declare const hasUnoCSS: boolean;
|
|
18374
|
+
declare const hasVue: boolean;
|
|
18055
18375
|
|
|
18056
18376
|
declare function toArray<T>(val?: Arrayable<T>): T[];
|
|
18057
18377
|
|
|
18378
|
+
declare function getOverrides<K extends keyof ConfigOptions>(options: ConfigOptions, key: K): Partial<TypedConfigItem['rules'] & RuleOptions>;
|
|
18379
|
+
|
|
18058
18380
|
/**
|
|
18059
|
-
*
|
|
18060
|
-
* @param name - The name of the plugin
|
|
18061
|
-
* @returns The plugin module
|
|
18381
|
+
* @copyright {@link https://github.com/antfu/eslint-config}
|
|
18062
18382
|
*/
|
|
18063
|
-
declare function loadPlugin<T = unknown>(name: string): Promise<T>;
|
|
18064
18383
|
|
|
18065
|
-
declare function
|
|
18384
|
+
declare function combineConfigs(...configs: Awaitable<TypedConfigItem | TypedConfigItem[]>[]): Promise<TypedConfigItem[]>;
|
|
18385
|
+
|
|
18386
|
+
/**
|
|
18387
|
+
* @copyright {@link https://github.com/antfu/eslint-config}
|
|
18388
|
+
*/
|
|
18389
|
+
declare function ensurePackages(packages: (string | undefined)[]): Promise<void>;
|
|
18066
18390
|
|
|
18067
18391
|
/**
|
|
18068
18392
|
* Interop default export from a module
|
|
@@ -18079,24 +18403,14 @@ declare function resolveSubOptions<T extends Record<string, any>, K extends keyo
|
|
|
18079
18403
|
|
|
18080
18404
|
declare function mergePrettierOptions(options?: PrettierOptions, overrides?: PrettierOptions): PrettierOptions;
|
|
18081
18405
|
|
|
18082
|
-
|
|
18083
|
-
* @file ESLint parsers
|
|
18084
|
-
*/
|
|
18406
|
+
declare function isInGitHooksOrRunByNanoStagedOrRunByTSX(): boolean;
|
|
18085
18407
|
|
|
18086
18408
|
/**
|
|
18087
18409
|
* With meta
|
|
18088
18410
|
*/
|
|
18089
18411
|
declare const parserTypeScript: {
|
|
18090
|
-
meta?: {
|
|
18091
|
-
|
|
18092
|
-
version?: string | undefined;
|
|
18093
|
-
};
|
|
18094
|
-
parseForESLint(text: string, options?: unknown): {
|
|
18095
|
-
ast: unknown;
|
|
18096
|
-
scopeManager?: unknown;
|
|
18097
|
-
services?: unknown;
|
|
18098
|
-
visitorKeys?: unknown;
|
|
18099
|
-
};
|
|
18412
|
+
meta?: { [K in keyof _typescript_eslint_utils_ts_eslint.Parser.ParserMeta]?: _typescript_eslint_utils_ts_eslint.Parser.ParserMeta[K] | undefined; };
|
|
18413
|
+
parseForESLint(text: string, options?: unknown): { [k in keyof _typescript_eslint_utils_ts_eslint.Parser.ParseResult]: unknown; };
|
|
18100
18414
|
};
|
|
18101
18415
|
|
|
18102
18416
|
/**
|
|
@@ -18110,7 +18424,7 @@ declare const vue: (options?: ConfigVueOptions) => TypedConfigItem[];
|
|
|
18110
18424
|
|
|
18111
18425
|
declare const yml: (options?: ConfigYmlOptions) => TypedConfigItem[];
|
|
18112
18426
|
|
|
18113
|
-
declare const esX: (options?: ConfigEsXOptions) => TypedConfigItem[]
|
|
18427
|
+
declare const esX: (options?: ConfigEsXOptions) => Promise<TypedConfigItem[]>;
|
|
18114
18428
|
|
|
18115
18429
|
declare const node: (options?: ConfigNodeOptions) => TypedConfigItem[];
|
|
18116
18430
|
|
|
@@ -18168,7 +18482,7 @@ declare const markdown: (options?: ConfigMarkdownOptions) => TypedConfigItem[];
|
|
|
18168
18482
|
|
|
18169
18483
|
declare const prettier: (options?: ConfigPrettierOptions) => TypedConfigItem[];
|
|
18170
18484
|
|
|
18171
|
-
declare const stylistic: (options?: ConfigStylisticOptions) => TypedConfigItem[]
|
|
18485
|
+
declare const stylistic: (options?: ConfigStylisticOptions) => Promise<TypedConfigItem[]>;
|
|
18172
18486
|
|
|
18173
18487
|
declare const gitignore: (options?: ConfigGitIgnoreOptions) => TypedConfigItem[];
|
|
18174
18488
|
|
|
@@ -18177,6 +18491,8 @@ declare const jsx: () => TypedConfigItem[];
|
|
|
18177
18491
|
|
|
18178
18492
|
declare const typescript: (options?: ConfigTypeScriptOptions) => TypedConfigItem[];
|
|
18179
18493
|
|
|
18494
|
+
declare const eslintPlugin: (options?: ConfigESLintPluginOptions) => Promise<TypedConfigItem[]>;
|
|
18495
|
+
|
|
18180
18496
|
declare const githubAction: (options?: ConfigGitHubActionOptions) => TypedConfigItem[];
|
|
18181
18497
|
|
|
18182
18498
|
/**
|
|
@@ -18191,4 +18507,4 @@ declare const unusedImports: (options?: ConfigUnusedImportsOptions) => TypedConf
|
|
|
18191
18507
|
*/
|
|
18192
18508
|
declare const DEFAULT_PRETTIER_OPTIONS: PrettierOptions;
|
|
18193
18509
|
|
|
18194
|
-
export { type Arrayable, type Awaitable, type ConfigAntfuOptions, type ConfigCommandOptions, type ConfigCommentsOptions, type ConfigDependOptions, type ConfigEsXOptions, type ConfigFormatOptions, type ConfigGitHubActionOptions, type ConfigGitIgnoreOptions, type ConfigIgnoresOptions, type ConfigImportXOptions, type ConfigJavaScriptOptions, type ConfigJsdocOptions, type ConfigJsoncOptions, type ConfigMarkdownOptions, type ConfigNames, type ConfigNodeOptions, type ConfigNtnyqOptions, type ConfigOptions, type ConfigPerfectionistOptions, type ConfigPiniaOptions, type ConfigPrettierOptions, type ConfigRegexpOptions, type ConfigSVGOOptions, type ConfigSortOptions, type ConfigSpecialsOptions, type ConfigStylisticOptions, type ConfigTestOptions, type ConfigTomlOptions, type ConfigTypeScriptOptions, type ConfigUnicornOptions, type ConfigUnoCSSOptions, type ConfigUnusedImportsOptions, type ConfigVueOptions, type ConfigYmlOptions, DEFAULT_PRETTIER_OPTIONS, type ESLintConfig, type ESLintParser, type ESLintParserOptions, type ESLintProcessor, type ESLintRuleSeverity, type ESLintRulesRecord, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_DIST, GLOB_DTS, GLOB_EXCLUDE, GLOB_GITHUB_ACTION, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_NESTED, GLOB_NODE_MODULES, GLOB_PACKAGE_JSON, GLOB_PINIA_STORE, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TEST, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_TYPES, GLOB_VUE, GLOB_YAML, type InteropModuleDefault, type OptionsExtensions, type OptionsFeatures, type OptionsFiles, type OptionsOverrides, type PrettierOptions, type Pretty, type ResolvedOptions, type RuleOptions, type TSESLintParserOptions, type TypedConfigItem, antfu, command, comments, createNodeResolver, defineESLintConfig, depend, esX, format, getOverrides, githubAction, gitignore, hasPinia, hasShadcnVue, hasTypeScript, hasUnoCSS, hasVitest, hasVue, ignores, importX, interopDefault, javascript, jsdoc, jsonc, jsx,
|
|
18510
|
+
export { type Arrayable, type Awaitable, type ConfigAntfuOptions, type ConfigCommandOptions, type ConfigCommentsOptions, type ConfigDependOptions, type ConfigESLintPluginOptions, type ConfigEsXOptions, type ConfigFormatOptions, type ConfigGitHubActionOptions, type ConfigGitIgnoreOptions, type ConfigIgnoresOptions, type ConfigImportXOptions, type ConfigJavaScriptOptions, type ConfigJsdocOptions, type ConfigJsoncOptions, type ConfigMarkdownOptions, type ConfigNames, type ConfigNodeOptions, type ConfigNtnyqOptions, type ConfigOptions, type ConfigPerfectionistOptions, type ConfigPiniaOptions, type ConfigPrettierOptions, type ConfigRegexpOptions, type ConfigSVGOOptions, type ConfigSortOptions, type ConfigSpecialsOptions, type ConfigStylisticOptions, type ConfigTestOptions, type ConfigTomlOptions, type ConfigTypeScriptOptions, type ConfigUnicornOptions, type ConfigUnoCSSOptions, type ConfigUnusedImportsOptions, type ConfigVueOptions, type ConfigYmlOptions, DEFAULT_PRETTIER_OPTIONS, type ESLintConfig, type ESLintParser, type ESLintParserOptions, type ESLintProcessor, type ESLintRuleSeverity, type ESLintRulesRecord, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_DIST, GLOB_DTS, GLOB_EXCLUDE, GLOB_GITHUB_ACTION, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_NESTED, GLOB_NODE_MODULES, GLOB_PACKAGE_JSON, GLOB_PINIA_STORE, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TEST, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_TYPES, GLOB_VUE, GLOB_YAML, type InteropModuleDefault, type OptionsExtensions, type OptionsFeatures, type OptionsFiles, type OptionsOverrides, type PrettierOptions, type Pretty, type ResolvedOptions, type RuleOptions, type TSESLintParserOptions, type TypedConfigItem, antfu, combineConfigs, command, comments, createNodeResolver, defineESLintConfig, depend, ensurePackages, esX, eslintPlugin, format, getOverrides, githubAction, gitignore, hasPinia, hasShadcnVue, hasTypeScript, hasUnoCSS, hasVitest, hasVue, ignores, importX, interopDefault, isInGitHooksOrRunByNanoStagedOrRunByTSX, javascript, jsdoc, jsonc, jsx, markdown, mergePrettierOptions, node, ntnyq, parserPlain, parserTypeScript, perfectionist, pinia, prettier, regexp, resolveSubOptions, sort, specials, stylistic, svgo, test, toArray, toml, typescript, unicorn, unocss, unusedImports, vitest, vue, yml };
|