@ntnyq/eslint-config 3.10.4 → 3.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -4
- package/dist/index.cjs +338 -200
- package/dist/index.d.cts +398 -53
- package/dist/index.d.ts +398 -53
- package/dist/index.js +399 -266
- package/package.json +37 -23
package/dist/index.d.ts
CHANGED
|
@@ -10,19 +10,16 @@ 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';
|
|
14
13
|
import * as eslintPluginRegexp from 'eslint-plugin-regexp';
|
|
15
14
|
export { eslintPluginRegexp as pluginRegexp };
|
|
16
15
|
import * as eslintPluginDepend from 'eslint-plugin-depend';
|
|
17
16
|
export { eslintPluginDepend as pluginDepend };
|
|
18
17
|
export { default as pluginNode } from 'eslint-plugin-n';
|
|
19
18
|
export { default as pluginVue } from 'eslint-plugin-vue';
|
|
20
|
-
export { default as pluginEsX } from 'eslint-plugin-es-x';
|
|
21
19
|
export { default as pluginYaml } from 'eslint-plugin-yml';
|
|
22
20
|
export { default as pluginSvgo } from 'eslint-plugin-svgo';
|
|
23
21
|
export { default as pluginToml } from 'eslint-plugin-toml';
|
|
24
22
|
export { default as pluginPinia } from 'eslint-plugin-pinia';
|
|
25
|
-
export { default as pluginNtnyq } from 'eslint-plugin-ntnyq';
|
|
26
23
|
export { default as pluginMarkdown } from '@eslint/markdown';
|
|
27
24
|
export { default as pluginAntfu } from 'eslint-plugin-antfu';
|
|
28
25
|
export { default as pluginJsdoc } from 'eslint-plugin-jsdoc';
|
|
@@ -33,7 +30,6 @@ export { default as pluginVitest } from '@vitest/eslint-plugin';
|
|
|
33
30
|
export { default as pluginUnicorn } from 'eslint-plugin-unicorn';
|
|
34
31
|
export { default as pluginImportX } from 'eslint-plugin-import-x';
|
|
35
32
|
export { default as pluginPrettier } from 'eslint-plugin-prettier';
|
|
36
|
-
export { default as pluginStylistic } from '@stylistic/eslint-plugin';
|
|
37
33
|
export { default as pluginPerfectionist } from 'eslint-plugin-perfectionist';
|
|
38
34
|
export { default as pluginUnusedImports } from 'eslint-plugin-unused-imports';
|
|
39
35
|
export { default as pluginComments } from '@eslint-community/eslint-plugin-eslint-comments';
|
|
@@ -2997,6 +2993,161 @@ interface RuleOptions {
|
|
|
2997
2993
|
* @see http://eslint-community.github.io/eslint-plugin-es-x/rules/no-weakrefs.html
|
|
2998
2994
|
*/
|
|
2999
2995
|
'es-x/no-weakrefs'?: Linter.RuleEntry<[]>;
|
|
2996
|
+
/**
|
|
2997
|
+
* enforce consistent use of `output` assertions in rule tests
|
|
2998
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/consistent-output.md
|
|
2999
|
+
*/
|
|
3000
|
+
'eslint-plugin/consistent-output'?: Linter.RuleEntry<EslintPluginConsistentOutput>;
|
|
3001
|
+
/**
|
|
3002
|
+
* require fixer functions to return a fix
|
|
3003
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/fixer-return.md
|
|
3004
|
+
*/
|
|
3005
|
+
'eslint-plugin/fixer-return'?: Linter.RuleEntry<[]>;
|
|
3006
|
+
/**
|
|
3007
|
+
* enforce the order of meta properties
|
|
3008
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/meta-property-ordering.md
|
|
3009
|
+
*/
|
|
3010
|
+
'eslint-plugin/meta-property-ordering'?: Linter.RuleEntry<EslintPluginMetaPropertyOrdering>;
|
|
3011
|
+
/**
|
|
3012
|
+
* disallow usage of deprecated methods on rule context objects
|
|
3013
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/no-deprecated-context-methods.md
|
|
3014
|
+
*/
|
|
3015
|
+
'eslint-plugin/no-deprecated-context-methods'?: Linter.RuleEntry<[]>;
|
|
3016
|
+
/**
|
|
3017
|
+
* disallow the version of `context.report()` with multiple arguments
|
|
3018
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/no-deprecated-report-api.md
|
|
3019
|
+
*/
|
|
3020
|
+
'eslint-plugin/no-deprecated-report-api'?: Linter.RuleEntry<[]>;
|
|
3021
|
+
/**
|
|
3022
|
+
* disallow identical tests
|
|
3023
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/no-identical-tests.md
|
|
3024
|
+
*/
|
|
3025
|
+
'eslint-plugin/no-identical-tests'?: Linter.RuleEntry<[]>;
|
|
3026
|
+
/**
|
|
3027
|
+
* disallow rules `meta.schema` properties to include defaults
|
|
3028
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/no-meta-schema-default.md
|
|
3029
|
+
*/
|
|
3030
|
+
'eslint-plugin/no-meta-schema-default'?: Linter.RuleEntry<[]>;
|
|
3031
|
+
/**
|
|
3032
|
+
* disallow `messageId`s that are missing from `meta.messages`
|
|
3033
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/no-missing-message-ids.md
|
|
3034
|
+
*/
|
|
3035
|
+
'eslint-plugin/no-missing-message-ids'?: Linter.RuleEntry<[]>;
|
|
3036
|
+
/**
|
|
3037
|
+
* disallow missing placeholders in rule report messages
|
|
3038
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/no-missing-placeholders.md
|
|
3039
|
+
*/
|
|
3040
|
+
'eslint-plugin/no-missing-placeholders'?: Linter.RuleEntry<[]>;
|
|
3041
|
+
/**
|
|
3042
|
+
* disallow the test case property `only`
|
|
3043
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/no-only-tests.md
|
|
3044
|
+
*/
|
|
3045
|
+
'eslint-plugin/no-only-tests'?: Linter.RuleEntry<[]>;
|
|
3046
|
+
/**
|
|
3047
|
+
* disallow using `in` to narrow node types instead of looking at properties
|
|
3048
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/no-property-in-node.md
|
|
3049
|
+
*/
|
|
3050
|
+
'eslint-plugin/no-property-in-node'?: Linter.RuleEntry<EslintPluginNoPropertyInNode>;
|
|
3051
|
+
/**
|
|
3052
|
+
* disallow unused `messageId`s in `meta.messages`
|
|
3053
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/no-unused-message-ids.md
|
|
3054
|
+
*/
|
|
3055
|
+
'eslint-plugin/no-unused-message-ids'?: Linter.RuleEntry<[]>;
|
|
3056
|
+
/**
|
|
3057
|
+
* disallow unused placeholders in rule report messages
|
|
3058
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/no-unused-placeholders.md
|
|
3059
|
+
*/
|
|
3060
|
+
'eslint-plugin/no-unused-placeholders'?: Linter.RuleEntry<[]>;
|
|
3061
|
+
/**
|
|
3062
|
+
* disallow unnecessary calls to `sourceCode.getFirstToken()` and `sourceCode.getLastToken()`
|
|
3063
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/no-useless-token-range.md
|
|
3064
|
+
*/
|
|
3065
|
+
'eslint-plugin/no-useless-token-range'?: Linter.RuleEntry<[]>;
|
|
3066
|
+
/**
|
|
3067
|
+
* require using `messageId` instead of `message` or `desc` to report rule violations
|
|
3068
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/prefer-message-ids.md
|
|
3069
|
+
*/
|
|
3070
|
+
'eslint-plugin/prefer-message-ids'?: Linter.RuleEntry<[]>;
|
|
3071
|
+
/**
|
|
3072
|
+
* disallow function-style rules
|
|
3073
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/prefer-object-rule.md
|
|
3074
|
+
*/
|
|
3075
|
+
'eslint-plugin/prefer-object-rule'?: Linter.RuleEntry<[]>;
|
|
3076
|
+
/**
|
|
3077
|
+
* disallow invalid RuleTester test cases where the `output` matches the `code`
|
|
3078
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/prefer-output-null.md
|
|
3079
|
+
*/
|
|
3080
|
+
'eslint-plugin/prefer-output-null'?: Linter.RuleEntry<[]>;
|
|
3081
|
+
/**
|
|
3082
|
+
* require using placeholders for dynamic report messages
|
|
3083
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/prefer-placeholders.md
|
|
3084
|
+
*/
|
|
3085
|
+
'eslint-plugin/prefer-placeholders'?: Linter.RuleEntry<[]>;
|
|
3086
|
+
/**
|
|
3087
|
+
* require using `replaceText()` instead of `replaceTextRange()`
|
|
3088
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/prefer-replace-text.md
|
|
3089
|
+
*/
|
|
3090
|
+
'eslint-plugin/prefer-replace-text'?: Linter.RuleEntry<[]>;
|
|
3091
|
+
/**
|
|
3092
|
+
* enforce a consistent format for rule report messages
|
|
3093
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/report-message-format.md
|
|
3094
|
+
*/
|
|
3095
|
+
'eslint-plugin/report-message-format'?: Linter.RuleEntry<EslintPluginReportMessageFormat>;
|
|
3096
|
+
/**
|
|
3097
|
+
* require only rules with options to implement a `meta.defaultOptions` property
|
|
3098
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/require-meta-default-options.md
|
|
3099
|
+
*/
|
|
3100
|
+
'eslint-plugin/require-meta-default-options'?: Linter.RuleEntry<[]>;
|
|
3101
|
+
/**
|
|
3102
|
+
* require rules to implement a `meta.docs.description` property with the correct format
|
|
3103
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/require-meta-docs-description.md
|
|
3104
|
+
*/
|
|
3105
|
+
'eslint-plugin/require-meta-docs-description'?: Linter.RuleEntry<EslintPluginRequireMetaDocsDescription>;
|
|
3106
|
+
/**
|
|
3107
|
+
* require rules to implement a `meta.docs.recommended` property
|
|
3108
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/require-meta-docs-recommended.md
|
|
3109
|
+
*/
|
|
3110
|
+
'eslint-plugin/require-meta-docs-recommended'?: Linter.RuleEntry<EslintPluginRequireMetaDocsRecommended>;
|
|
3111
|
+
/**
|
|
3112
|
+
* require rules to implement a `meta.docs.url` property
|
|
3113
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/require-meta-docs-url.md
|
|
3114
|
+
*/
|
|
3115
|
+
'eslint-plugin/require-meta-docs-url'?: Linter.RuleEntry<EslintPluginRequireMetaDocsUrl>;
|
|
3116
|
+
/**
|
|
3117
|
+
* require rules to implement a `meta.fixable` property
|
|
3118
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/require-meta-fixable.md
|
|
3119
|
+
*/
|
|
3120
|
+
'eslint-plugin/require-meta-fixable'?: Linter.RuleEntry<EslintPluginRequireMetaFixable>;
|
|
3121
|
+
/**
|
|
3122
|
+
* require suggestable rules to implement a `meta.hasSuggestions` property
|
|
3123
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/require-meta-has-suggestions.md
|
|
3124
|
+
*/
|
|
3125
|
+
'eslint-plugin/require-meta-has-suggestions'?: Linter.RuleEntry<[]>;
|
|
3126
|
+
/**
|
|
3127
|
+
* require rules to implement a `meta.schema` property
|
|
3128
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/require-meta-schema.md
|
|
3129
|
+
*/
|
|
3130
|
+
'eslint-plugin/require-meta-schema'?: Linter.RuleEntry<EslintPluginRequireMetaSchema>;
|
|
3131
|
+
/**
|
|
3132
|
+
* require rules `meta.schema` properties to include descriptions
|
|
3133
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/require-meta-schema-description.md
|
|
3134
|
+
*/
|
|
3135
|
+
'eslint-plugin/require-meta-schema-description'?: Linter.RuleEntry<[]>;
|
|
3136
|
+
/**
|
|
3137
|
+
* require rules to implement a `meta.type` property
|
|
3138
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/require-meta-type.md
|
|
3139
|
+
*/
|
|
3140
|
+
'eslint-plugin/require-meta-type'?: Linter.RuleEntry<[]>;
|
|
3141
|
+
/**
|
|
3142
|
+
* require the properties of a test case to be placed in a consistent order
|
|
3143
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/test-case-property-ordering.md
|
|
3144
|
+
*/
|
|
3145
|
+
'eslint-plugin/test-case-property-ordering'?: Linter.RuleEntry<EslintPluginTestCasePropertyOrdering>;
|
|
3146
|
+
/**
|
|
3147
|
+
* enforce consistent usage of shorthand strings for test cases with no options
|
|
3148
|
+
* @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/test-case-shorthand-strings.md
|
|
3149
|
+
*/
|
|
3150
|
+
'eslint-plugin/test-case-shorthand-strings'?: Linter.RuleEntry<EslintPluginTestCaseShorthandStrings>;
|
|
3000
3151
|
/**
|
|
3001
3152
|
* Enforce `for` loop update clause moving the counter in the right direction
|
|
3002
3153
|
* @see https://eslint.org/docs/latest/rules/for-direction
|
|
@@ -5109,6 +5260,11 @@ interface RuleOptions {
|
|
|
5109
5260
|
* @see https://eslint-plugin.ntnyq.com/rules/no-member-accessibility.html
|
|
5110
5261
|
*/
|
|
5111
5262
|
'ntnyq/no-member-accessibility'?: Linter.RuleEntry<[]>;
|
|
5263
|
+
/**
|
|
5264
|
+
* require a newline after file header
|
|
5265
|
+
* @see https://eslint-plugin.ntnyq.com/rules/prefer-newline-after-file-header.html
|
|
5266
|
+
*/
|
|
5267
|
+
'ntnyq/prefer-newline-after-file-header'?: Linter.RuleEntry<NtnyqPreferNewlineAfterFileHeader>;
|
|
5112
5268
|
/**
|
|
5113
5269
|
* Enforce consistent line breaks after opening and before closing braces
|
|
5114
5270
|
* @see https://eslint.org/docs/latest/rules/object-curly-newline
|
|
@@ -6954,7 +7110,7 @@ interface RuleOptions {
|
|
|
6954
7110
|
*/
|
|
6955
7111
|
'vitest/padding-around-expect-groups'?: Linter.RuleEntry<[]>;
|
|
6956
7112
|
/**
|
|
6957
|
-
* Enforce padding around
|
|
7113
|
+
* Enforce padding around `test` blocks
|
|
6958
7114
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-test-blocks.md
|
|
6959
7115
|
*/
|
|
6960
7116
|
'vitest/padding-around-test-blocks'?: Linter.RuleEntry<[]>;
|
|
@@ -11645,6 +11801,41 @@ type EsXNoSymbolPrototypeDescription = [] | [
|
|
|
11645
11801
|
aggressive?: boolean;
|
|
11646
11802
|
}
|
|
11647
11803
|
];
|
|
11804
|
+
type EslintPluginConsistentOutput = [] | [("always" | "consistent")];
|
|
11805
|
+
type EslintPluginMetaPropertyOrdering = [] | [unknown[]];
|
|
11806
|
+
type EslintPluginNoPropertyInNode = [] | [
|
|
11807
|
+
{
|
|
11808
|
+
additionalNodeTypeFiles?: unknown[];
|
|
11809
|
+
}
|
|
11810
|
+
];
|
|
11811
|
+
type EslintPluginReportMessageFormat = [] | [string];
|
|
11812
|
+
type EslintPluginRequireMetaDocsDescription = [] | [
|
|
11813
|
+
{
|
|
11814
|
+
pattern?: string;
|
|
11815
|
+
}
|
|
11816
|
+
];
|
|
11817
|
+
type EslintPluginRequireMetaDocsRecommended = [] | [
|
|
11818
|
+
{
|
|
11819
|
+
allowNonBoolean?: boolean;
|
|
11820
|
+
}
|
|
11821
|
+
];
|
|
11822
|
+
type EslintPluginRequireMetaDocsUrl = [] | [
|
|
11823
|
+
{
|
|
11824
|
+
pattern?: string;
|
|
11825
|
+
}
|
|
11826
|
+
];
|
|
11827
|
+
type EslintPluginRequireMetaFixable = [] | [
|
|
11828
|
+
{
|
|
11829
|
+
catchNoFixerButFixableProperty?: boolean;
|
|
11830
|
+
}
|
|
11831
|
+
];
|
|
11832
|
+
type EslintPluginRequireMetaSchema = [] | [
|
|
11833
|
+
{
|
|
11834
|
+
requireSchemaPropertyWhenOptionless?: boolean;
|
|
11835
|
+
}
|
|
11836
|
+
];
|
|
11837
|
+
type EslintPluginTestCasePropertyOrdering = [] | [unknown[]];
|
|
11838
|
+
type EslintPluginTestCaseShorthandStrings = [] | [("as-needed" | "never" | "consistent" | "consistent-as-needed")];
|
|
11648
11839
|
type FormatDprint = [] | [
|
|
11649
11840
|
{
|
|
11650
11841
|
language?: string;
|
|
@@ -14167,6 +14358,11 @@ type NtnyqNoDuplicateExports = [] | [
|
|
|
14167
14358
|
style?: ("inline" | "separate");
|
|
14168
14359
|
}
|
|
14169
14360
|
];
|
|
14361
|
+
type NtnyqPreferNewlineAfterFileHeader = [] | [
|
|
14362
|
+
{
|
|
14363
|
+
tags?: string[];
|
|
14364
|
+
}
|
|
14365
|
+
];
|
|
14170
14366
|
type ObjectCurlyNewline = [] | [
|
|
14171
14367
|
((("always" | "never") | {
|
|
14172
14368
|
multiline?: boolean;
|
|
@@ -14267,12 +14463,17 @@ type PaddingLineBetweenStatements = {
|
|
|
14267
14463
|
next: _PaddingLineBetweenStatementsStatementType;
|
|
14268
14464
|
}[];
|
|
14269
14465
|
type PerfectionistSortArrayIncludes = {
|
|
14270
|
-
partitionByComment?: (string[] | boolean | string
|
|
14466
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
14467
|
+
block?: (string[] | boolean | string);
|
|
14468
|
+
line?: (string[] | boolean | string);
|
|
14469
|
+
[k: string]: unknown | undefined;
|
|
14470
|
+
});
|
|
14271
14471
|
groupKind?: ("mixed" | "literals-first" | "spreads-first");
|
|
14272
14472
|
customGroups?: ({
|
|
14273
14473
|
groupName?: string;
|
|
14274
14474
|
type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
|
|
14275
14475
|
order?: ("desc" | "asc");
|
|
14476
|
+
newlinesInside?: ("always" | "never");
|
|
14276
14477
|
anyOf?: {
|
|
14277
14478
|
selector?: ("literal" | "spread");
|
|
14278
14479
|
elementNamePattern?: string;
|
|
@@ -14281,6 +14482,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
14281
14482
|
groupName?: string;
|
|
14282
14483
|
type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
|
|
14283
14484
|
order?: ("desc" | "asc");
|
|
14485
|
+
newlinesInside?: ("always" | "never");
|
|
14284
14486
|
selector?: ("literal" | "spread");
|
|
14285
14487
|
elementNamePattern?: string;
|
|
14286
14488
|
})[];
|
|
@@ -14293,17 +14495,25 @@ type PerfectionistSortArrayIncludes = {
|
|
|
14293
14495
|
ignoreCase?: boolean;
|
|
14294
14496
|
alphabet?: string;
|
|
14295
14497
|
locales?: (string | string[]);
|
|
14296
|
-
groups?: (string | string[]
|
|
14498
|
+
groups?: (string | string[] | {
|
|
14499
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
14500
|
+
[k: string]: unknown | undefined;
|
|
14501
|
+
})[];
|
|
14297
14502
|
order?: ("asc" | "desc");
|
|
14298
14503
|
}[];
|
|
14299
14504
|
type PerfectionistSortClasses = [] | [
|
|
14300
14505
|
{
|
|
14301
14506
|
ignoreCallbackDependenciesPatterns?: string[];
|
|
14302
|
-
partitionByComment?: (string[] | boolean | string
|
|
14507
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
14508
|
+
block?: (string[] | boolean | string);
|
|
14509
|
+
line?: (string[] | boolean | string);
|
|
14510
|
+
[k: string]: unknown | undefined;
|
|
14511
|
+
});
|
|
14303
14512
|
customGroups?: ({
|
|
14304
14513
|
groupName?: string;
|
|
14305
14514
|
type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
|
|
14306
14515
|
order?: ("desc" | "asc");
|
|
14516
|
+
newlinesInside?: ("always" | "never");
|
|
14307
14517
|
anyOf?: {
|
|
14308
14518
|
elementValuePattern?: string;
|
|
14309
14519
|
decoratorNamePattern?: string;
|
|
@@ -14315,6 +14525,7 @@ type PerfectionistSortClasses = [] | [
|
|
|
14315
14525
|
groupName?: string;
|
|
14316
14526
|
type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
|
|
14317
14527
|
order?: ("desc" | "asc");
|
|
14528
|
+
newlinesInside?: ("always" | "never");
|
|
14318
14529
|
elementValuePattern?: string;
|
|
14319
14530
|
decoratorNamePattern?: string;
|
|
14320
14531
|
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[];
|
|
@@ -14328,13 +14539,20 @@ type PerfectionistSortClasses = [] | [
|
|
|
14328
14539
|
alphabet?: string;
|
|
14329
14540
|
type?: ("alphabetical" | "natural" | "line-length" | "custom");
|
|
14330
14541
|
locales?: (string | string[]);
|
|
14331
|
-
groups?: (string | string[]
|
|
14542
|
+
groups?: (string | string[] | {
|
|
14543
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
14544
|
+
[k: string]: unknown | undefined;
|
|
14545
|
+
})[];
|
|
14332
14546
|
order?: ("asc" | "desc");
|
|
14333
14547
|
}
|
|
14334
14548
|
];
|
|
14335
14549
|
type PerfectionistSortDecorators = [] | [
|
|
14336
14550
|
{
|
|
14337
|
-
partitionByComment?: (string[] | boolean | string
|
|
14551
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
14552
|
+
block?: (string[] | boolean | string);
|
|
14553
|
+
line?: (string[] | boolean | string);
|
|
14554
|
+
[k: string]: unknown | undefined;
|
|
14555
|
+
});
|
|
14338
14556
|
sortOnParameters?: boolean;
|
|
14339
14557
|
sortOnProperties?: boolean;
|
|
14340
14558
|
sortOnAccessors?: boolean;
|
|
@@ -14348,13 +14566,20 @@ type PerfectionistSortDecorators = [] | [
|
|
|
14348
14566
|
alphabet?: string;
|
|
14349
14567
|
type?: ("alphabetical" | "natural" | "line-length" | "custom");
|
|
14350
14568
|
locales?: (string | string[]);
|
|
14351
|
-
groups?: (string | string[]
|
|
14569
|
+
groups?: (string | string[] | {
|
|
14570
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
14571
|
+
[k: string]: unknown | undefined;
|
|
14572
|
+
})[];
|
|
14352
14573
|
order?: ("asc" | "desc");
|
|
14353
14574
|
}
|
|
14354
14575
|
];
|
|
14355
14576
|
type PerfectionistSortEnums = [] | [
|
|
14356
14577
|
{
|
|
14357
|
-
partitionByComment?: (string[] | boolean | string
|
|
14578
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
14579
|
+
block?: (string[] | boolean | string);
|
|
14580
|
+
line?: (string[] | boolean | string);
|
|
14581
|
+
[k: string]: unknown | undefined;
|
|
14582
|
+
});
|
|
14358
14583
|
forceNumericSort?: boolean;
|
|
14359
14584
|
sortByValue?: boolean;
|
|
14360
14585
|
partitionByNewLine?: boolean;
|
|
@@ -14368,7 +14593,11 @@ type PerfectionistSortEnums = [] | [
|
|
|
14368
14593
|
];
|
|
14369
14594
|
type PerfectionistSortExports = [] | [
|
|
14370
14595
|
{
|
|
14371
|
-
partitionByComment?: (string[] | boolean | string
|
|
14596
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
14597
|
+
block?: (string[] | boolean | string);
|
|
14598
|
+
line?: (string[] | boolean | string);
|
|
14599
|
+
[k: string]: unknown | undefined;
|
|
14600
|
+
});
|
|
14372
14601
|
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
14373
14602
|
partitionByNewLine?: boolean;
|
|
14374
14603
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
@@ -14389,7 +14618,10 @@ type PerfectionistSortHeritageClauses = [] | [
|
|
|
14389
14618
|
alphabet?: string;
|
|
14390
14619
|
type?: ("alphabetical" | "natural" | "line-length" | "custom");
|
|
14391
14620
|
locales?: (string | string[]);
|
|
14392
|
-
groups?: (string | string[]
|
|
14621
|
+
groups?: (string | string[] | {
|
|
14622
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
14623
|
+
[k: string]: unknown | undefined;
|
|
14624
|
+
})[];
|
|
14393
14625
|
order?: ("asc" | "desc");
|
|
14394
14626
|
}
|
|
14395
14627
|
];
|
|
@@ -14403,7 +14635,11 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
|
|
|
14403
14635
|
[k: string]: unknown | undefined;
|
|
14404
14636
|
};
|
|
14405
14637
|
};
|
|
14406
|
-
partitionByComment?: (string[] | boolean | string
|
|
14638
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
14639
|
+
block?: (string[] | boolean | string);
|
|
14640
|
+
line?: (string[] | boolean | string);
|
|
14641
|
+
[k: string]: unknown | undefined;
|
|
14642
|
+
});
|
|
14407
14643
|
internalPattern?: string[];
|
|
14408
14644
|
maxLineLength?: number;
|
|
14409
14645
|
sortSideEffects?: boolean;
|
|
@@ -14416,7 +14652,10 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
|
|
|
14416
14652
|
alphabet?: string;
|
|
14417
14653
|
type?: ("alphabetical" | "natural" | "line-length" | "custom");
|
|
14418
14654
|
locales?: (string | string[]);
|
|
14419
|
-
groups?: (string | string[]
|
|
14655
|
+
groups?: (string | string[] | {
|
|
14656
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
14657
|
+
[k: string]: unknown | undefined;
|
|
14658
|
+
})[];
|
|
14420
14659
|
order?: ("asc" | "desc");
|
|
14421
14660
|
});
|
|
14422
14661
|
type _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType = ({
|
|
@@ -14432,13 +14671,18 @@ type PerfectionistSortInterfaces = {
|
|
|
14432
14671
|
allNamesMatchPattern?: string;
|
|
14433
14672
|
declarationMatchesPattern?: string;
|
|
14434
14673
|
};
|
|
14435
|
-
partitionByComment?: (string[] | boolean | string
|
|
14674
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
14675
|
+
block?: (string[] | boolean | string);
|
|
14676
|
+
line?: (string[] | boolean | string);
|
|
14677
|
+
[k: string]: unknown | undefined;
|
|
14678
|
+
});
|
|
14436
14679
|
customGroups?: ({
|
|
14437
14680
|
[k: string]: (string | string[]) | undefined;
|
|
14438
14681
|
} | ({
|
|
14439
14682
|
groupName?: string;
|
|
14440
14683
|
type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
|
|
14441
14684
|
order?: ("desc" | "asc");
|
|
14685
|
+
newlinesInside?: ("always" | "never");
|
|
14442
14686
|
anyOf?: {
|
|
14443
14687
|
modifiers?: ("optional" | "required" | "multiline")[];
|
|
14444
14688
|
selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
|
|
@@ -14448,6 +14692,7 @@ type PerfectionistSortInterfaces = {
|
|
|
14448
14692
|
groupName?: string;
|
|
14449
14693
|
type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
|
|
14450
14694
|
order?: ("desc" | "asc");
|
|
14695
|
+
newlinesInside?: ("always" | "never");
|
|
14451
14696
|
modifiers?: ("optional" | "required" | "multiline")[];
|
|
14452
14697
|
selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
|
|
14453
14698
|
elementNamePattern?: string;
|
|
@@ -14460,12 +14705,19 @@ type PerfectionistSortInterfaces = {
|
|
|
14460
14705
|
ignoreCase?: boolean;
|
|
14461
14706
|
alphabet?: string;
|
|
14462
14707
|
locales?: (string | string[]);
|
|
14463
|
-
groups?: (string | string[]
|
|
14708
|
+
groups?: (string | string[] | {
|
|
14709
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
14710
|
+
[k: string]: unknown | undefined;
|
|
14711
|
+
})[];
|
|
14464
14712
|
order?: ("asc" | "desc");
|
|
14465
14713
|
}[];
|
|
14466
14714
|
type PerfectionistSortIntersectionTypes = [] | [
|
|
14467
14715
|
{
|
|
14468
|
-
partitionByComment?: (string[] | boolean | string
|
|
14716
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
14717
|
+
block?: (string[] | boolean | string);
|
|
14718
|
+
line?: (string[] | boolean | string);
|
|
14719
|
+
[k: string]: unknown | undefined;
|
|
14720
|
+
});
|
|
14469
14721
|
partitionByNewLine?: boolean;
|
|
14470
14722
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
14471
14723
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
@@ -14473,7 +14725,10 @@ type PerfectionistSortIntersectionTypes = [] | [
|
|
|
14473
14725
|
alphabet?: string;
|
|
14474
14726
|
type?: ("alphabetical" | "natural" | "line-length" | "custom");
|
|
14475
14727
|
locales?: (string | string[]);
|
|
14476
|
-
groups?: (string | string[]
|
|
14728
|
+
groups?: (string | string[] | {
|
|
14729
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
14730
|
+
[k: string]: unknown | undefined;
|
|
14731
|
+
})[];
|
|
14477
14732
|
order?: ("asc" | "desc");
|
|
14478
14733
|
}
|
|
14479
14734
|
];
|
|
@@ -14488,13 +14743,20 @@ type PerfectionistSortJsxProps = [] | [
|
|
|
14488
14743
|
alphabet?: string;
|
|
14489
14744
|
type?: ("alphabetical" | "natural" | "line-length" | "custom");
|
|
14490
14745
|
locales?: (string | string[]);
|
|
14491
|
-
groups?: (string | string[]
|
|
14746
|
+
groups?: (string | string[] | {
|
|
14747
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
14748
|
+
[k: string]: unknown | undefined;
|
|
14749
|
+
})[];
|
|
14492
14750
|
order?: ("asc" | "desc");
|
|
14493
14751
|
}
|
|
14494
14752
|
];
|
|
14495
14753
|
type PerfectionistSortMaps = [] | [
|
|
14496
14754
|
{
|
|
14497
|
-
partitionByComment?: (string[] | boolean | string
|
|
14755
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
14756
|
+
block?: (string[] | boolean | string);
|
|
14757
|
+
line?: (string[] | boolean | string);
|
|
14758
|
+
[k: string]: unknown | undefined;
|
|
14759
|
+
});
|
|
14498
14760
|
partitionByNewLine?: boolean;
|
|
14499
14761
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
14500
14762
|
ignoreCase?: boolean;
|
|
@@ -14506,11 +14768,16 @@ type PerfectionistSortMaps = [] | [
|
|
|
14506
14768
|
];
|
|
14507
14769
|
type PerfectionistSortModules = [] | [
|
|
14508
14770
|
{
|
|
14509
|
-
partitionByComment?: (string[] | boolean | string
|
|
14771
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
14772
|
+
block?: (string[] | boolean | string);
|
|
14773
|
+
line?: (string[] | boolean | string);
|
|
14774
|
+
[k: string]: unknown | undefined;
|
|
14775
|
+
});
|
|
14510
14776
|
customGroups?: ({
|
|
14511
14777
|
groupName?: string;
|
|
14512
14778
|
type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
|
|
14513
14779
|
order?: ("desc" | "asc");
|
|
14780
|
+
newlinesInside?: ("always" | "never");
|
|
14514
14781
|
anyOf?: {
|
|
14515
14782
|
decoratorNamePattern?: string;
|
|
14516
14783
|
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
@@ -14521,6 +14788,7 @@ type PerfectionistSortModules = [] | [
|
|
|
14521
14788
|
groupName?: string;
|
|
14522
14789
|
type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
|
|
14523
14790
|
order?: ("desc" | "asc");
|
|
14791
|
+
newlinesInside?: ("always" | "never");
|
|
14524
14792
|
decoratorNamePattern?: string;
|
|
14525
14793
|
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[];
|
|
14526
14794
|
selector?: ("enum" | "function" | "interface" | "type" | "class");
|
|
@@ -14533,13 +14801,20 @@ type PerfectionistSortModules = [] | [
|
|
|
14533
14801
|
alphabet?: string;
|
|
14534
14802
|
type?: ("alphabetical" | "natural" | "line-length" | "custom");
|
|
14535
14803
|
locales?: (string | string[]);
|
|
14536
|
-
groups?: (string | string[]
|
|
14804
|
+
groups?: (string | string[] | {
|
|
14805
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
14806
|
+
[k: string]: unknown | undefined;
|
|
14807
|
+
})[];
|
|
14537
14808
|
order?: ("asc" | "desc");
|
|
14538
14809
|
}
|
|
14539
14810
|
];
|
|
14540
14811
|
type PerfectionistSortNamedExports = [] | [
|
|
14541
14812
|
{
|
|
14542
|
-
partitionByComment?: (string[] | boolean | string
|
|
14813
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
14814
|
+
block?: (string[] | boolean | string);
|
|
14815
|
+
line?: (string[] | boolean | string);
|
|
14816
|
+
[k: string]: unknown | undefined;
|
|
14817
|
+
});
|
|
14543
14818
|
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
14544
14819
|
partitionByNewLine?: boolean;
|
|
14545
14820
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
@@ -14552,7 +14827,11 @@ type PerfectionistSortNamedExports = [] | [
|
|
|
14552
14827
|
];
|
|
14553
14828
|
type PerfectionistSortNamedImports = [] | [
|
|
14554
14829
|
{
|
|
14555
|
-
partitionByComment?: (string[] | boolean | string
|
|
14830
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
14831
|
+
block?: (string[] | boolean | string);
|
|
14832
|
+
line?: (string[] | boolean | string);
|
|
14833
|
+
[k: string]: unknown | undefined;
|
|
14834
|
+
});
|
|
14556
14835
|
groupKind?: ("mixed" | "values-first" | "types-first");
|
|
14557
14836
|
ignoreAlias?: boolean;
|
|
14558
14837
|
partitionByNewLine?: boolean;
|
|
@@ -14570,13 +14849,18 @@ type PerfectionistSortObjectTypes = {
|
|
|
14570
14849
|
allNamesMatchPattern?: string;
|
|
14571
14850
|
declarationMatchesPattern?: string;
|
|
14572
14851
|
};
|
|
14573
|
-
partitionByComment?: (string[] | boolean | string
|
|
14852
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
14853
|
+
block?: (string[] | boolean | string);
|
|
14854
|
+
line?: (string[] | boolean | string);
|
|
14855
|
+
[k: string]: unknown | undefined;
|
|
14856
|
+
});
|
|
14574
14857
|
customGroups?: ({
|
|
14575
14858
|
[k: string]: (string | string[]) | undefined;
|
|
14576
14859
|
} | ({
|
|
14577
14860
|
groupName?: string;
|
|
14578
14861
|
type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
|
|
14579
14862
|
order?: ("desc" | "asc");
|
|
14863
|
+
newlinesInside?: ("always" | "never");
|
|
14580
14864
|
anyOf?: {
|
|
14581
14865
|
modifiers?: ("optional" | "required" | "multiline")[];
|
|
14582
14866
|
selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
|
|
@@ -14586,6 +14870,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
14586
14870
|
groupName?: string;
|
|
14587
14871
|
type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
|
|
14588
14872
|
order?: ("desc" | "asc");
|
|
14873
|
+
newlinesInside?: ("always" | "never");
|
|
14589
14874
|
modifiers?: ("optional" | "required" | "multiline")[];
|
|
14590
14875
|
selector?: ("index-signature" | "member" | "method" | "multiline" | "property");
|
|
14591
14876
|
elementNamePattern?: string;
|
|
@@ -14598,7 +14883,10 @@ type PerfectionistSortObjectTypes = {
|
|
|
14598
14883
|
ignoreCase?: boolean;
|
|
14599
14884
|
alphabet?: string;
|
|
14600
14885
|
locales?: (string | string[]);
|
|
14601
|
-
groups?: (string | string[]
|
|
14886
|
+
groups?: (string | string[] | {
|
|
14887
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
14888
|
+
[k: string]: unknown | undefined;
|
|
14889
|
+
})[];
|
|
14602
14890
|
order?: ("asc" | "desc");
|
|
14603
14891
|
}[];
|
|
14604
14892
|
type PerfectionistSortObjects = {
|
|
@@ -14610,7 +14898,11 @@ type PerfectionistSortObjects = {
|
|
|
14610
14898
|
allNamesMatchPattern?: string;
|
|
14611
14899
|
callingFunctionNamePattern?: string;
|
|
14612
14900
|
};
|
|
14613
|
-
partitionByComment?: (string[] | boolean | string
|
|
14901
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
14902
|
+
block?: (string[] | boolean | string);
|
|
14903
|
+
line?: (string[] | boolean | string);
|
|
14904
|
+
[k: string]: unknown | undefined;
|
|
14905
|
+
});
|
|
14614
14906
|
destructureOnly?: boolean;
|
|
14615
14907
|
objectDeclarations?: boolean;
|
|
14616
14908
|
styledComponents?: boolean;
|
|
@@ -14624,16 +14916,24 @@ type PerfectionistSortObjects = {
|
|
|
14624
14916
|
ignoreCase?: boolean;
|
|
14625
14917
|
alphabet?: string;
|
|
14626
14918
|
locales?: (string | string[]);
|
|
14627
|
-
groups?: (string | string[]
|
|
14919
|
+
groups?: (string | string[] | {
|
|
14920
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
14921
|
+
[k: string]: unknown | undefined;
|
|
14922
|
+
})[];
|
|
14628
14923
|
order?: ("asc" | "desc");
|
|
14629
14924
|
}[];
|
|
14630
14925
|
type PerfectionistSortSets = {
|
|
14631
|
-
partitionByComment?: (string[] | boolean | string
|
|
14926
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
14927
|
+
block?: (string[] | boolean | string);
|
|
14928
|
+
line?: (string[] | boolean | string);
|
|
14929
|
+
[k: string]: unknown | undefined;
|
|
14930
|
+
});
|
|
14632
14931
|
groupKind?: ("mixed" | "literals-first" | "spreads-first");
|
|
14633
14932
|
customGroups?: ({
|
|
14634
14933
|
groupName?: string;
|
|
14635
14934
|
type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
|
|
14636
14935
|
order?: ("desc" | "asc");
|
|
14936
|
+
newlinesInside?: ("always" | "never");
|
|
14637
14937
|
anyOf?: {
|
|
14638
14938
|
selector?: ("literal" | "spread");
|
|
14639
14939
|
elementNamePattern?: string;
|
|
@@ -14642,6 +14942,7 @@ type PerfectionistSortSets = {
|
|
|
14642
14942
|
groupName?: string;
|
|
14643
14943
|
type?: ("alphabetical" | "line-length" | "natural" | "unsorted");
|
|
14644
14944
|
order?: ("desc" | "asc");
|
|
14945
|
+
newlinesInside?: ("always" | "never");
|
|
14645
14946
|
selector?: ("literal" | "spread");
|
|
14646
14947
|
elementNamePattern?: string;
|
|
14647
14948
|
})[];
|
|
@@ -14654,7 +14955,10 @@ type PerfectionistSortSets = {
|
|
|
14654
14955
|
ignoreCase?: boolean;
|
|
14655
14956
|
alphabet?: string;
|
|
14656
14957
|
locales?: (string | string[]);
|
|
14657
|
-
groups?: (string | string[]
|
|
14958
|
+
groups?: (string | string[] | {
|
|
14959
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
14960
|
+
[k: string]: unknown | undefined;
|
|
14961
|
+
})[];
|
|
14658
14962
|
order?: ("asc" | "desc");
|
|
14659
14963
|
}[];
|
|
14660
14964
|
type PerfectionistSortSwitchCase = [] | [
|
|
@@ -14669,7 +14973,11 @@ type PerfectionistSortSwitchCase = [] | [
|
|
|
14669
14973
|
];
|
|
14670
14974
|
type PerfectionistSortUnionTypes = [] | [
|
|
14671
14975
|
{
|
|
14672
|
-
partitionByComment?: (string[] | boolean | string
|
|
14976
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
14977
|
+
block?: (string[] | boolean | string);
|
|
14978
|
+
line?: (string[] | boolean | string);
|
|
14979
|
+
[k: string]: unknown | undefined;
|
|
14980
|
+
});
|
|
14673
14981
|
partitionByNewLine?: boolean;
|
|
14674
14982
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
14675
14983
|
newlinesBetween?: ("ignore" | "always" | "never");
|
|
@@ -14677,13 +14985,20 @@ type PerfectionistSortUnionTypes = [] | [
|
|
|
14677
14985
|
alphabet?: string;
|
|
14678
14986
|
type?: ("alphabetical" | "natural" | "line-length" | "custom");
|
|
14679
14987
|
locales?: (string | string[]);
|
|
14680
|
-
groups?: (string | string[]
|
|
14988
|
+
groups?: (string | string[] | {
|
|
14989
|
+
newlinesBetween?: ("ignore" | "always" | "never");
|
|
14990
|
+
[k: string]: unknown | undefined;
|
|
14991
|
+
})[];
|
|
14681
14992
|
order?: ("asc" | "desc");
|
|
14682
14993
|
}
|
|
14683
14994
|
];
|
|
14684
14995
|
type PerfectionistSortVariableDeclarations = [] | [
|
|
14685
14996
|
{
|
|
14686
|
-
partitionByComment?: (string[] | boolean | string
|
|
14997
|
+
partitionByComment?: (string[] | boolean | string | {
|
|
14998
|
+
block?: (string[] | boolean | string);
|
|
14999
|
+
line?: (string[] | boolean | string);
|
|
15000
|
+
[k: string]: unknown | undefined;
|
|
15001
|
+
});
|
|
14687
15002
|
partitionByNewLine?: boolean;
|
|
14688
15003
|
specialCharacters?: ("remove" | "trim" | "keep");
|
|
14689
15004
|
ignoreCase?: boolean;
|
|
@@ -15997,8 +16312,7 @@ type VitestNoRestrictedViMethods = [] | [
|
|
|
15997
16312
|
];
|
|
15998
16313
|
type VitestNoStandaloneExpect = [] | [
|
|
15999
16314
|
{
|
|
16000
|
-
|
|
16001
|
-
[k: string]: unknown | undefined;
|
|
16315
|
+
additionalTestBlockFunctions?: string[];
|
|
16002
16316
|
}
|
|
16003
16317
|
];
|
|
16004
16318
|
type VitestPreferExpectAssertions = [] | [
|
|
@@ -17609,7 +17923,7 @@ type Yoda = [] | [("always" | "never")] | [
|
|
|
17609
17923
|
onlyEquality?: boolean;
|
|
17610
17924
|
}
|
|
17611
17925
|
];
|
|
17612
|
-
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';
|
|
17926
|
+
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';
|
|
17613
17927
|
|
|
17614
17928
|
/**
|
|
17615
17929
|
* ESLint rules
|
|
@@ -17668,6 +17982,8 @@ interface ConfigDependOptions extends OptionsFiles, OptionsOverrides {
|
|
|
17668
17982
|
*/
|
|
17669
17983
|
packageJson?: boolean;
|
|
17670
17984
|
}
|
|
17985
|
+
interface ConfigESLintPluginOptions extends OptionsOverrides {
|
|
17986
|
+
}
|
|
17671
17987
|
interface ConfigEsXOptions extends OptionsOverrides {
|
|
17672
17988
|
}
|
|
17673
17989
|
interface ConfigFormatOptions {
|
|
@@ -17846,6 +18162,13 @@ interface ConfigSpecialsOptions {
|
|
|
17846
18162
|
* More special case configs
|
|
17847
18163
|
*/
|
|
17848
18164
|
specialCaseConfigs?: TypedConfigItem[];
|
|
18165
|
+
/**
|
|
18166
|
+
* ShadcnVue config
|
|
18167
|
+
*/
|
|
18168
|
+
shadcnVue?: boolean | {
|
|
18169
|
+
files?: TypedConfigItem['files'];
|
|
18170
|
+
overridesRules?: TypedConfigItem['rules'];
|
|
18171
|
+
};
|
|
17849
18172
|
}
|
|
17850
18173
|
interface ConfigStylisticOptions extends OptionsOverrides {
|
|
17851
18174
|
}
|
|
@@ -17945,7 +18268,6 @@ interface OptionsOverrides<Rules extends TypedConfigItem['rules'] = TypedConfigI
|
|
|
17945
18268
|
interface ConfigOptionsInternal {
|
|
17946
18269
|
esX?: boolean | ConfigEsXOptions;
|
|
17947
18270
|
format?: boolean | ConfigFormatOptions;
|
|
17948
|
-
ntnyq?: boolean | ConfigNtnyqOptions;
|
|
17949
18271
|
unusedImports?: boolean | ConfigUnusedImportsOptions;
|
|
17950
18272
|
}
|
|
17951
18273
|
/**
|
|
@@ -17965,10 +18287,12 @@ interface ConfigOptions extends ConfigOptionsInternal, OptionsExtensions {
|
|
|
17965
18287
|
*/
|
|
17966
18288
|
antfu?: boolean | ConfigAntfuOptions;
|
|
17967
18289
|
depend?: boolean | ConfigDependOptions;
|
|
18290
|
+
eslintPlugin?: boolean | ConfigESLintPluginOptions;
|
|
17968
18291
|
githubAction?: boolean | ConfigGitHubActionOptions;
|
|
17969
18292
|
gitignore?: boolean | ConfigGitIgnoreOptions;
|
|
17970
18293
|
jsonc?: boolean | ConfigJsoncOptions;
|
|
17971
18294
|
markdown?: boolean | ConfigMarkdownOptions;
|
|
18295
|
+
ntnyq?: boolean | ConfigNtnyqOptions;
|
|
17972
18296
|
perfectionist?: boolean | ConfigPerfectionistOptions;
|
|
17973
18297
|
pinia?: boolean | ConfigPiniaOptions;
|
|
17974
18298
|
prettier?: boolean | ConfigPrettierOptions;
|
|
@@ -18041,22 +18365,27 @@ declare const GLOB_DIST = "**/dist/**";
|
|
|
18041
18365
|
declare const GLOB_LOCKFILE: string[];
|
|
18042
18366
|
declare const GLOB_EXCLUDE: string[];
|
|
18043
18367
|
|
|
18044
|
-
declare const hasTypeScript: boolean;
|
|
18045
|
-
declare const hasVitest: boolean;
|
|
18046
|
-
declare const hasVue: boolean;
|
|
18047
18368
|
declare const hasPinia: boolean;
|
|
18369
|
+
declare const hasVitest: boolean;
|
|
18370
|
+
declare const hasTypeScript: boolean;
|
|
18371
|
+
declare const hasShadcnVue: boolean;
|
|
18048
18372
|
declare const hasUnoCSS: boolean;
|
|
18373
|
+
declare const hasVue: boolean;
|
|
18049
18374
|
|
|
18050
18375
|
declare function toArray<T>(val?: Arrayable<T>): T[];
|
|
18051
18376
|
|
|
18377
|
+
declare function getOverrides<K extends keyof ConfigOptions>(options: ConfigOptions, key: K): Partial<TypedConfigItem['rules'] & RuleOptions>;
|
|
18378
|
+
|
|
18052
18379
|
/**
|
|
18053
|
-
*
|
|
18054
|
-
* @param name - The name of the plugin
|
|
18055
|
-
* @returns The plugin module
|
|
18380
|
+
* @copyright {@link https://github.com/antfu/eslint-config}
|
|
18056
18381
|
*/
|
|
18057
|
-
declare function loadPlugin<T = unknown>(name: string): Promise<T>;
|
|
18058
18382
|
|
|
18059
|
-
declare function
|
|
18383
|
+
declare function combineConfigs(...configs: Awaitable<TypedConfigItem | TypedConfigItem[]>[]): Promise<TypedConfigItem[]>;
|
|
18384
|
+
|
|
18385
|
+
/**
|
|
18386
|
+
* @copyright {@link https://github.com/antfu/eslint-config}
|
|
18387
|
+
*/
|
|
18388
|
+
declare function ensurePackages(packages: (string | undefined)[]): Promise<void>;
|
|
18060
18389
|
|
|
18061
18390
|
/**
|
|
18062
18391
|
* Interop default export from a module
|
|
@@ -18065,7 +18394,7 @@ declare function getOverrides<K extends keyof ConfigOptions>(options: ConfigOpti
|
|
|
18065
18394
|
*/
|
|
18066
18395
|
declare function interopDefault<T>(mod: Awaitable<T>): Promise<InteropModuleDefault<T>>;
|
|
18067
18396
|
|
|
18068
|
-
declare function resolveSubOptions<K extends keyof
|
|
18397
|
+
declare function resolveSubOptions<T extends Record<string, any>, K extends keyof T>(options: T, key: K): Partial<ResolvedOptions<T[K]>>;
|
|
18069
18398
|
|
|
18070
18399
|
/**
|
|
18071
18400
|
* @file Merge prettier options
|
|
@@ -18073,12 +18402,26 @@ declare function resolveSubOptions<K extends keyof ConfigOptions>(options: Confi
|
|
|
18073
18402
|
|
|
18074
18403
|
declare function mergePrettierOptions(options?: PrettierOptions, overrides?: PrettierOptions): PrettierOptions;
|
|
18075
18404
|
|
|
18405
|
+
declare function isInGitHooksOrRunByNanoStagedOrRunByTSX(): boolean;
|
|
18406
|
+
|
|
18407
|
+
/**
|
|
18408
|
+
* @file ESLint parsers
|
|
18409
|
+
*/
|
|
18410
|
+
|
|
18076
18411
|
/**
|
|
18077
18412
|
* With meta
|
|
18078
18413
|
*/
|
|
18079
18414
|
declare const parserTypeScript: {
|
|
18080
|
-
meta?: {
|
|
18081
|
-
|
|
18415
|
+
meta?: {
|
|
18416
|
+
name?: string | undefined;
|
|
18417
|
+
version?: string | undefined;
|
|
18418
|
+
};
|
|
18419
|
+
parseForESLint(text: string, options?: unknown): {
|
|
18420
|
+
ast: unknown;
|
|
18421
|
+
scopeManager?: unknown;
|
|
18422
|
+
services?: unknown;
|
|
18423
|
+
visitorKeys?: unknown;
|
|
18424
|
+
};
|
|
18082
18425
|
};
|
|
18083
18426
|
|
|
18084
18427
|
/**
|
|
@@ -18092,7 +18435,7 @@ declare const vue: (options?: ConfigVueOptions) => TypedConfigItem[];
|
|
|
18092
18435
|
|
|
18093
18436
|
declare const yml: (options?: ConfigYmlOptions) => TypedConfigItem[];
|
|
18094
18437
|
|
|
18095
|
-
declare const esX: (options?: ConfigEsXOptions) => TypedConfigItem[]
|
|
18438
|
+
declare const esX: (options?: ConfigEsXOptions) => Promise<TypedConfigItem[]>;
|
|
18096
18439
|
|
|
18097
18440
|
declare const node: (options?: ConfigNodeOptions) => TypedConfigItem[];
|
|
18098
18441
|
|
|
@@ -18150,7 +18493,7 @@ declare const markdown: (options?: ConfigMarkdownOptions) => TypedConfigItem[];
|
|
|
18150
18493
|
|
|
18151
18494
|
declare const prettier: (options?: ConfigPrettierOptions) => TypedConfigItem[];
|
|
18152
18495
|
|
|
18153
|
-
declare const stylistic: (options?: ConfigStylisticOptions) => TypedConfigItem[]
|
|
18496
|
+
declare const stylistic: (options?: ConfigStylisticOptions) => Promise<TypedConfigItem[]>;
|
|
18154
18497
|
|
|
18155
18498
|
declare const gitignore: (options?: ConfigGitIgnoreOptions) => TypedConfigItem[];
|
|
18156
18499
|
|
|
@@ -18159,6 +18502,8 @@ declare const jsx: () => TypedConfigItem[];
|
|
|
18159
18502
|
|
|
18160
18503
|
declare const typescript: (options?: ConfigTypeScriptOptions) => TypedConfigItem[];
|
|
18161
18504
|
|
|
18505
|
+
declare const eslintPlugin: (options?: ConfigESLintPluginOptions) => Promise<TypedConfigItem[]>;
|
|
18506
|
+
|
|
18162
18507
|
declare const githubAction: (options?: ConfigGitHubActionOptions) => TypedConfigItem[];
|
|
18163
18508
|
|
|
18164
18509
|
/**
|
|
@@ -18173,4 +18518,4 @@ declare const unusedImports: (options?: ConfigUnusedImportsOptions) => TypedConf
|
|
|
18173
18518
|
*/
|
|
18174
18519
|
declare const DEFAULT_PRETTIER_OPTIONS: PrettierOptions;
|
|
18175
18520
|
|
|
18176
|
-
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, hasTypeScript, hasUnoCSS, hasVitest, hasVue, ignores, importX, interopDefault, javascript, jsdoc, jsonc, jsx,
|
|
18521
|
+
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 };
|