@jsse/eslint-config 0.9.2 → 0.9.3
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/CHANGELOG.md +11 -0
- package/dist/cli.js +1 -1
- package/dist/fixable-rules-map-Cdv6wg6P.d.ts +488 -0
- package/dist/fixable.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +417 -374
- package/dist/{fixable-rules-map-CCZ-PRHv.d.ts → rule-types-DKF8Uy8X.d.ts} +188 -621
- package/dist/rule-types.d.ts +2 -0
- package/dist/rule-types.js +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +8 -4
|
@@ -1,61 +1,98 @@
|
|
|
1
|
-
import { ParserOptions } from "@typescript-eslint/parser";
|
|
2
1
|
import { Linter } from "eslint";
|
|
3
2
|
|
|
4
|
-
//#region
|
|
5
|
-
interface
|
|
3
|
+
//#region src/_generated/dts/antfu.d.ts
|
|
4
|
+
interface AntfuRules {
|
|
6
5
|
/**
|
|
7
|
-
*
|
|
8
|
-
* @
|
|
6
|
+
* Enforce consistent line breaks for chaining member access
|
|
7
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/consistent-chaining.md
|
|
9
8
|
*/
|
|
10
|
-
|
|
9
|
+
"antfu/consistent-chaining"?: Linter.RuleEntry<AntfuConsistentChaining>;
|
|
11
10
|
/**
|
|
12
|
-
*
|
|
13
|
-
* @
|
|
11
|
+
* Enforce consistent line breaks inside braces and parentheses
|
|
12
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/consistent-list-newline.md
|
|
14
13
|
*/
|
|
15
|
-
|
|
14
|
+
"antfu/consistent-list-newline"?: Linter.RuleEntry<AntfuConsistentListNewline>;
|
|
16
15
|
/**
|
|
17
|
-
*
|
|
18
|
-
* @
|
|
16
|
+
* Enforce Anthony's style of curly bracket
|
|
17
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/curly.md
|
|
19
18
|
*/
|
|
20
|
-
|
|
19
|
+
"antfu/curly"?: Linter.RuleEntry<[]>;
|
|
21
20
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @
|
|
21
|
+
* Newline after if
|
|
22
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/if-newline.md
|
|
24
23
|
*/
|
|
25
|
-
|
|
24
|
+
"antfu/if-newline"?: Linter.RuleEntry<[]>;
|
|
26
25
|
/**
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* This option is not effective when `files` is explicitly specified.
|
|
31
|
-
* @default false
|
|
26
|
+
* Fix duplication in imports
|
|
27
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/import-dedupe.md
|
|
32
28
|
*/
|
|
33
|
-
|
|
29
|
+
"antfu/import-dedupe"?: Linter.RuleEntry<[]>;
|
|
34
30
|
/**
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* @default process.cwd()
|
|
31
|
+
* Enforce consistent indentation in `unindent` template tag
|
|
32
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/indent-unindent.md
|
|
38
33
|
*/
|
|
39
|
-
|
|
34
|
+
"antfu/indent-unindent"?: Linter.RuleEntry<AntfuIndentUnindent>;
|
|
40
35
|
/**
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
* This option is useful for monorepos or projects that keep
|
|
44
|
-
* per-folder `.gitignore` files.
|
|
45
|
-
*
|
|
46
|
-
* Pass `{ skipDirs: ['name'] }` to skip directory names while
|
|
47
|
-
* scanning recursively. `skipDirs` matches by directory name at
|
|
48
|
-
* any depth (not by path), and is applied in addition to `.git`
|
|
49
|
-
* and `node_modules`.
|
|
50
|
-
* @default false
|
|
36
|
+
* Prevent importing modules in `dist` folder
|
|
37
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-import-dist.md
|
|
51
38
|
*/
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
39
|
+
"antfu/no-import-dist"?: Linter.RuleEntry<[]>;
|
|
40
|
+
/**
|
|
41
|
+
* Prevent importing modules in `node_modules` folder by relative or absolute path
|
|
42
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-import-node-modules-by-path.md
|
|
43
|
+
*/
|
|
44
|
+
"antfu/no-import-node-modules-by-path"?: Linter.RuleEntry<[]>;
|
|
45
|
+
/**
|
|
46
|
+
* Prevent using top-level await
|
|
47
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-top-level-await.md
|
|
48
|
+
*/
|
|
49
|
+
"antfu/no-top-level-await"?: Linter.RuleEntry<[]>;
|
|
50
|
+
/**
|
|
51
|
+
* Do not use `exports =`
|
|
52
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-ts-export-equal.md
|
|
53
|
+
*/
|
|
54
|
+
"antfu/no-ts-export-equal"?: Linter.RuleEntry<[]>;
|
|
55
|
+
/**
|
|
56
|
+
* Enforce top-level functions to be declared with function keyword
|
|
57
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/top-level-function.md
|
|
58
|
+
*/
|
|
59
|
+
"antfu/top-level-function"?: Linter.RuleEntry<[]>;
|
|
55
60
|
}
|
|
61
|
+
/* ======= Declarations ======= */
|
|
62
|
+
// ----- antfu/consistent-chaining -----
|
|
63
|
+
type AntfuConsistentChaining = [] | [{
|
|
64
|
+
allowLeadingPropertyAccess?: boolean;
|
|
65
|
+
}]; // ----- antfu/consistent-list-newline -----
|
|
66
|
+
type AntfuConsistentListNewline = [] | [{
|
|
67
|
+
ArrayExpression?: boolean;
|
|
68
|
+
ArrayPattern?: boolean;
|
|
69
|
+
ArrowFunctionExpression?: boolean;
|
|
70
|
+
CallExpression?: boolean;
|
|
71
|
+
ExportNamedDeclaration?: boolean;
|
|
72
|
+
FunctionDeclaration?: boolean;
|
|
73
|
+
FunctionExpression?: boolean;
|
|
74
|
+
IfStatement?: boolean;
|
|
75
|
+
ImportDeclaration?: boolean;
|
|
76
|
+
JSONArrayExpression?: boolean;
|
|
77
|
+
JSONObjectExpression?: boolean;
|
|
78
|
+
JSXOpeningElement?: boolean;
|
|
79
|
+
NewExpression?: boolean;
|
|
80
|
+
ObjectExpression?: boolean;
|
|
81
|
+
ObjectPattern?: boolean;
|
|
82
|
+
TSFunctionType?: boolean;
|
|
83
|
+
TSInterfaceDeclaration?: boolean;
|
|
84
|
+
TSTupleType?: boolean;
|
|
85
|
+
TSTypeLiteral?: boolean;
|
|
86
|
+
TSTypeParameterDeclaration?: boolean;
|
|
87
|
+
TSTypeParameterInstantiation?: boolean;
|
|
88
|
+
}]; // ----- antfu/indent-unindent -----
|
|
89
|
+
type AntfuIndentUnindent = [] | [{
|
|
90
|
+
indent?: number;
|
|
91
|
+
tags?: string[];
|
|
92
|
+
}];
|
|
56
93
|
//#endregion
|
|
57
|
-
//#region src/_generated/dts/
|
|
58
|
-
interface
|
|
94
|
+
//#region src/_generated/dts/builtin.d.ts
|
|
95
|
+
interface BuiltinRules {
|
|
59
96
|
/**
|
|
60
97
|
* Enforce getter and setter pairs in objects and classes
|
|
61
98
|
* @see https://eslint.org/docs/latest/rules/accessor-pairs
|
|
@@ -2919,99 +2956,8 @@ type Yoda = [] | ["always" | "never"] | ["always" | "never", {
|
|
|
2919
2956
|
onlyEquality?: boolean;
|
|
2920
2957
|
}];
|
|
2921
2958
|
//#endregion
|
|
2922
|
-
//#region src/_generated/dts/antfu.d.ts
|
|
2923
|
-
interface AntfuRuleOptions {
|
|
2924
|
-
/**
|
|
2925
|
-
* Enforce consistent line breaks for chaining member access
|
|
2926
|
-
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/consistent-chaining.md
|
|
2927
|
-
*/
|
|
2928
|
-
"antfu/consistent-chaining"?: Linter.RuleEntry<AntfuConsistentChaining>;
|
|
2929
|
-
/**
|
|
2930
|
-
* Enforce consistent line breaks inside braces and parentheses
|
|
2931
|
-
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/consistent-list-newline.md
|
|
2932
|
-
*/
|
|
2933
|
-
"antfu/consistent-list-newline"?: Linter.RuleEntry<AntfuConsistentListNewline>;
|
|
2934
|
-
/**
|
|
2935
|
-
* Enforce Anthony's style of curly bracket
|
|
2936
|
-
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/curly.md
|
|
2937
|
-
*/
|
|
2938
|
-
"antfu/curly"?: Linter.RuleEntry<[]>;
|
|
2939
|
-
/**
|
|
2940
|
-
* Newline after if
|
|
2941
|
-
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/if-newline.md
|
|
2942
|
-
*/
|
|
2943
|
-
"antfu/if-newline"?: Linter.RuleEntry<[]>;
|
|
2944
|
-
/**
|
|
2945
|
-
* Fix duplication in imports
|
|
2946
|
-
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/import-dedupe.md
|
|
2947
|
-
*/
|
|
2948
|
-
"antfu/import-dedupe"?: Linter.RuleEntry<[]>;
|
|
2949
|
-
/**
|
|
2950
|
-
* Enforce consistent indentation in `unindent` template tag
|
|
2951
|
-
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/indent-unindent.md
|
|
2952
|
-
*/
|
|
2953
|
-
"antfu/indent-unindent"?: Linter.RuleEntry<AntfuIndentUnindent>;
|
|
2954
|
-
/**
|
|
2955
|
-
* Prevent importing modules in `dist` folder
|
|
2956
|
-
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-import-dist.md
|
|
2957
|
-
*/
|
|
2958
|
-
"antfu/no-import-dist"?: Linter.RuleEntry<[]>;
|
|
2959
|
-
/**
|
|
2960
|
-
* Prevent importing modules in `node_modules` folder by relative or absolute path
|
|
2961
|
-
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-import-node-modules-by-path.md
|
|
2962
|
-
*/
|
|
2963
|
-
"antfu/no-import-node-modules-by-path"?: Linter.RuleEntry<[]>;
|
|
2964
|
-
/**
|
|
2965
|
-
* Prevent using top-level await
|
|
2966
|
-
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-top-level-await.md
|
|
2967
|
-
*/
|
|
2968
|
-
"antfu/no-top-level-await"?: Linter.RuleEntry<[]>;
|
|
2969
|
-
/**
|
|
2970
|
-
* Do not use `exports =`
|
|
2971
|
-
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-ts-export-equal.md
|
|
2972
|
-
*/
|
|
2973
|
-
"antfu/no-ts-export-equal"?: Linter.RuleEntry<[]>;
|
|
2974
|
-
/**
|
|
2975
|
-
* Enforce top-level functions to be declared with function keyword
|
|
2976
|
-
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/top-level-function.md
|
|
2977
|
-
*/
|
|
2978
|
-
"antfu/top-level-function"?: Linter.RuleEntry<[]>;
|
|
2979
|
-
}
|
|
2980
|
-
/* ======= Declarations ======= */
|
|
2981
|
-
// ----- antfu/consistent-chaining -----
|
|
2982
|
-
type AntfuConsistentChaining = [] | [{
|
|
2983
|
-
allowLeadingPropertyAccess?: boolean;
|
|
2984
|
-
}]; // ----- antfu/consistent-list-newline -----
|
|
2985
|
-
type AntfuConsistentListNewline = [] | [{
|
|
2986
|
-
ArrayExpression?: boolean;
|
|
2987
|
-
ArrayPattern?: boolean;
|
|
2988
|
-
ArrowFunctionExpression?: boolean;
|
|
2989
|
-
CallExpression?: boolean;
|
|
2990
|
-
ExportNamedDeclaration?: boolean;
|
|
2991
|
-
FunctionDeclaration?: boolean;
|
|
2992
|
-
FunctionExpression?: boolean;
|
|
2993
|
-
IfStatement?: boolean;
|
|
2994
|
-
ImportDeclaration?: boolean;
|
|
2995
|
-
JSONArrayExpression?: boolean;
|
|
2996
|
-
JSONObjectExpression?: boolean;
|
|
2997
|
-
JSXOpeningElement?: boolean;
|
|
2998
|
-
NewExpression?: boolean;
|
|
2999
|
-
ObjectExpression?: boolean;
|
|
3000
|
-
ObjectPattern?: boolean;
|
|
3001
|
-
TSFunctionType?: boolean;
|
|
3002
|
-
TSInterfaceDeclaration?: boolean;
|
|
3003
|
-
TSTupleType?: boolean;
|
|
3004
|
-
TSTypeLiteral?: boolean;
|
|
3005
|
-
TSTypeParameterDeclaration?: boolean;
|
|
3006
|
-
TSTypeParameterInstantiation?: boolean;
|
|
3007
|
-
}]; // ----- antfu/indent-unindent -----
|
|
3008
|
-
type AntfuIndentUnindent = [] | [{
|
|
3009
|
-
indent?: number;
|
|
3010
|
-
tags?: string[];
|
|
3011
|
-
}];
|
|
3012
|
-
//#endregion
|
|
3013
2959
|
//#region src/_generated/dts/command.d.ts
|
|
3014
|
-
interface
|
|
2960
|
+
interface CommandRules {
|
|
3015
2961
|
/**
|
|
3016
2962
|
* Comment-as-command for one-off codemod with ESLint
|
|
3017
2963
|
* @see https://github.com/antfu/eslint-plugin-command
|
|
@@ -3020,7 +2966,7 @@ interface CommandRuleOptions {
|
|
|
3020
2966
|
}
|
|
3021
2967
|
//#endregion
|
|
3022
2968
|
//#region src/_generated/dts/de-morgan.d.ts
|
|
3023
|
-
interface
|
|
2969
|
+
interface DeMorganRules {
|
|
3024
2970
|
/**
|
|
3025
2971
|
* Transforms the negation of a conjunction !(A && B) into the equivalent !A || !B according to De Morgan’s law
|
|
3026
2972
|
* @see https://github.com/azat-io/eslint-plugin-de-morgan/blob/main/docs/no-negated-conjunction.md
|
|
@@ -3034,7 +2980,7 @@ interface DeMorganRuleOptions {
|
|
|
3034
2980
|
}
|
|
3035
2981
|
//#endregion
|
|
3036
2982
|
//#region src/_generated/dts/e18e.d.ts
|
|
3037
|
-
interface
|
|
2983
|
+
interface E18eRules {
|
|
3038
2984
|
/**
|
|
3039
2985
|
* Disallow dependencies in favor of more performant or secure alternatives
|
|
3040
2986
|
*/
|
|
@@ -3153,7 +3099,7 @@ type E18EBanDependencies = [] | [{
|
|
|
3153
3099
|
}];
|
|
3154
3100
|
//#endregion
|
|
3155
3101
|
//#region src/_generated/dts/eslint-comments.d.ts
|
|
3156
|
-
interface
|
|
3102
|
+
interface EslintCommentsRules {
|
|
3157
3103
|
/**
|
|
3158
3104
|
* require a `eslint-enable` comment for every `eslint-disable` comment
|
|
3159
3105
|
* @see https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/disable-enable-pair.html
|
|
@@ -3215,7 +3161,7 @@ type EslintCommentsRequireDescription = [] | [{
|
|
|
3215
3161
|
}];
|
|
3216
3162
|
//#endregion
|
|
3217
3163
|
//#region src/_generated/dts/eslint-react.d.ts
|
|
3218
|
-
interface
|
|
3164
|
+
interface EslintReactRules {
|
|
3219
3165
|
/**
|
|
3220
3166
|
* Disallows DOM elements from using 'dangerouslySetInnerHTML'.
|
|
3221
3167
|
* @see https://eslint-react.xyz/docs/rules/dom-no-dangerously-set-innerhtml
|
|
@@ -3963,10 +3909,10 @@ type EslintReactXUseState = [] | [{
|
|
|
3963
3909
|
}];
|
|
3964
3910
|
//#endregion
|
|
3965
3911
|
//#region src/_generated/dts/ignores.d.ts
|
|
3966
|
-
interface
|
|
3912
|
+
interface IgnoresRules {}
|
|
3967
3913
|
//#endregion
|
|
3968
3914
|
//#region src/_generated/dts/imports.d.ts
|
|
3969
|
-
interface
|
|
3915
|
+
interface ImportsRules {
|
|
3970
3916
|
/**
|
|
3971
3917
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
3972
3918
|
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/consistent-type-specifier-style/README.md
|
|
@@ -4030,55 +3976,10 @@ type ImportPreferDefaultExport$1 = [] | [{
|
|
|
4030
3976
|
}];
|
|
4031
3977
|
//#endregion
|
|
4032
3978
|
//#region src/_generated/dts/javascript.d.ts
|
|
4033
|
-
interface
|
|
4034
|
-
/**
|
|
4035
|
-
* Disallow unused variables
|
|
4036
|
-
* @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-imports.md
|
|
4037
|
-
*/
|
|
4038
|
-
"unused-imports/no-unused-imports"?: Linter.RuleEntry<UnusedImportsNoUnusedImports>;
|
|
4039
|
-
/**
|
|
4040
|
-
* Disallow unused variables
|
|
4041
|
-
* @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-vars.md
|
|
4042
|
-
*/
|
|
4043
|
-
"unused-imports/no-unused-vars"?: Linter.RuleEntry<UnusedImportsNoUnusedVars>;
|
|
4044
|
-
}
|
|
4045
|
-
/* ======= Declarations ======= */
|
|
4046
|
-
// ----- unused-imports/no-unused-imports -----
|
|
4047
|
-
type UnusedImportsNoUnusedImports = [] | [("all" | "local") | {
|
|
4048
|
-
args?: "all" | "after-used" | "none";
|
|
4049
|
-
argsIgnorePattern?: string;
|
|
4050
|
-
caughtErrors?: "all" | "none";
|
|
4051
|
-
caughtErrorsIgnorePattern?: string;
|
|
4052
|
-
destructuredArrayIgnorePattern?: string;
|
|
4053
|
-
enableAutofixRemoval?: {
|
|
4054
|
-
imports?: boolean;
|
|
4055
|
-
};
|
|
4056
|
-
ignoreClassWithStaticInitBlock?: boolean;
|
|
4057
|
-
ignoreRestSiblings?: boolean;
|
|
4058
|
-
ignoreUsingDeclarations?: boolean;
|
|
4059
|
-
reportUsedIgnorePattern?: boolean;
|
|
4060
|
-
vars?: "all" | "local";
|
|
4061
|
-
varsIgnorePattern?: string;
|
|
4062
|
-
}]; // ----- unused-imports/no-unused-vars -----
|
|
4063
|
-
type UnusedImportsNoUnusedVars = [] | [("all" | "local") | {
|
|
4064
|
-
args?: "all" | "after-used" | "none";
|
|
4065
|
-
argsIgnorePattern?: string;
|
|
4066
|
-
caughtErrors?: "all" | "none";
|
|
4067
|
-
caughtErrorsIgnorePattern?: string;
|
|
4068
|
-
destructuredArrayIgnorePattern?: string;
|
|
4069
|
-
enableAutofixRemoval?: {
|
|
4070
|
-
imports?: boolean;
|
|
4071
|
-
};
|
|
4072
|
-
ignoreClassWithStaticInitBlock?: boolean;
|
|
4073
|
-
ignoreRestSiblings?: boolean;
|
|
4074
|
-
ignoreUsingDeclarations?: boolean;
|
|
4075
|
-
reportUsedIgnorePattern?: boolean;
|
|
4076
|
-
vars?: "all" | "local";
|
|
4077
|
-
varsIgnorePattern?: string;
|
|
4078
|
-
}];
|
|
3979
|
+
interface JavascriptRules {}
|
|
4079
3980
|
//#endregion
|
|
4080
3981
|
//#region src/_generated/dts/jsdoc.d.ts
|
|
4081
|
-
interface
|
|
3982
|
+
interface JsdocRules {
|
|
4082
3983
|
/**
|
|
4083
3984
|
* Checks that `@access` tags have a valid value.
|
|
4084
3985
|
* @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-access.md#repos-sticky-header
|
|
@@ -4953,7 +4854,7 @@ type JsdocValidTypes = [] | [{
|
|
|
4953
4854
|
}];
|
|
4954
4855
|
//#endregion
|
|
4955
4856
|
//#region src/_generated/dts/jsonc.d.ts
|
|
4956
|
-
interface
|
|
4857
|
+
interface JsoncRules {
|
|
4957
4858
|
/**
|
|
4958
4859
|
* enforce line breaks after opening and before closing array brackets
|
|
4959
4860
|
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/array-bracket-newline.html
|
|
@@ -5431,7 +5332,7 @@ type JsoncSpaceUnaryOps = [] | [{
|
|
|
5431
5332
|
}];
|
|
5432
5333
|
//#endregion
|
|
5433
5334
|
//#region src/_generated/dts/markdown.d.ts
|
|
5434
|
-
interface
|
|
5335
|
+
interface MarkdownRules {
|
|
5435
5336
|
/**
|
|
5436
5337
|
* Require languages for fenced code blocks
|
|
5437
5338
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/fenced-code-language.md
|
|
@@ -5590,7 +5491,7 @@ type MarkdownTableColumnCount = [] | [{
|
|
|
5590
5491
|
}];
|
|
5591
5492
|
//#endregion
|
|
5592
5493
|
//#region src/_generated/dts/n.d.ts
|
|
5593
|
-
interface
|
|
5494
|
+
interface NRules {
|
|
5594
5495
|
/**
|
|
5595
5496
|
* require `return` statements after callbacks
|
|
5596
5497
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/callback-return.md
|
|
@@ -6049,7 +5950,7 @@ type NShebang = [] | [{
|
|
|
6049
5950
|
}];
|
|
6050
5951
|
//#endregion
|
|
6051
5952
|
//#region src/_generated/dts/no-only-tests.d.ts
|
|
6052
|
-
interface
|
|
5953
|
+
interface NoOnlyTestsRules {
|
|
6053
5954
|
/**
|
|
6054
5955
|
* disallow focused/only tests
|
|
6055
5956
|
* @see https://github.com/levibuzolic/eslint-plugin-no-only-tests
|
|
@@ -6066,7 +5967,7 @@ type NoOnlyTestsNoOnlyTests = [] | [{
|
|
|
6066
5967
|
}];
|
|
6067
5968
|
//#endregion
|
|
6068
5969
|
//#region src/_generated/dts/node-test.d.ts
|
|
6069
|
-
interface
|
|
5970
|
+
interface NodeTestRules {
|
|
6070
5971
|
/**
|
|
6071
5972
|
* Enforce the correct number of arguments for `node:assert` assertions.
|
|
6072
5973
|
* @see https://github.com/sindresorhus/eslint-node-test/blob/v0.2.0/docs/rules/assertion-arguments.md
|
|
@@ -6520,7 +6421,7 @@ type NodeTestTestTitleFormat = [] | [{
|
|
|
6520
6421
|
}];
|
|
6521
6422
|
//#endregion
|
|
6522
6423
|
//#region src/_generated/dts/perfectionist.d.ts
|
|
6523
|
-
interface
|
|
6424
|
+
interface PerfectionistRules {
|
|
6524
6425
|
/**
|
|
6525
6426
|
* Enforce sorted arrays before include method.
|
|
6526
6427
|
* @see https://perfectionist.dev/rules/sort-array-includes
|
|
@@ -9354,7 +9255,7 @@ type PerfectionistSortVariableDeclarations = {
|
|
|
9354
9255
|
}[];
|
|
9355
9256
|
//#endregion
|
|
9356
9257
|
//#region src/_generated/dts/pnpm.d.ts
|
|
9357
|
-
interface
|
|
9258
|
+
interface PnpmRules {
|
|
9358
9259
|
/**
|
|
9359
9260
|
* Enforce using "catalog:" in `package.json`
|
|
9360
9261
|
* @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/json/json-enforce-catalog.test.ts
|
|
@@ -9426,10 +9327,10 @@ type PnpmYamlNoDuplicateCatalogItem = [] | [{
|
|
|
9426
9327
|
}];
|
|
9427
9328
|
//#endregion
|
|
9428
9329
|
//#region src/_generated/dts/prettier.d.ts
|
|
9429
|
-
interface
|
|
9330
|
+
interface PrettierRules {}
|
|
9430
9331
|
//#endregion
|
|
9431
9332
|
//#region src/_generated/dts/react-hooks.d.ts
|
|
9432
|
-
interface
|
|
9333
|
+
interface ReactHooksRules {
|
|
9433
9334
|
/**
|
|
9434
9335
|
* Validates against calling capitalized functions/methods instead of using JSX
|
|
9435
9336
|
* @see https://react.dev/reference/eslint-plugin-react-hooks/lints/capitalized-calls
|
|
@@ -9667,7 +9568,7 @@ type ReactHooksVoidUseMemo = [] | [{
|
|
|
9667
9568
|
}];
|
|
9668
9569
|
//#endregion
|
|
9669
9570
|
//#region src/_generated/dts/react-refresh.d.ts
|
|
9670
|
-
interface
|
|
9571
|
+
interface ReactRefreshRules {
|
|
9671
9572
|
"react-refresh/only-export-components"?: Linter.RuleEntry<ReactRefreshOnlyExportComponents>;
|
|
9672
9573
|
}
|
|
9673
9574
|
/* ======= Declarations ======= */
|
|
@@ -9680,7 +9581,7 @@ type ReactRefreshOnlyExportComponents = [] | [{
|
|
|
9680
9581
|
}];
|
|
9681
9582
|
//#endregion
|
|
9682
9583
|
//#region src/_generated/dts/regexp.d.ts
|
|
9683
|
-
interface
|
|
9584
|
+
interface RegexpRules {
|
|
9684
9585
|
/**
|
|
9685
9586
|
* disallow confusing quantifiers
|
|
9686
9587
|
* @see https://ota-meshi.github.io/eslint-plugin-regexp/rules/confusing-quantifier.html
|
|
@@ -10190,13 +10091,13 @@ type RegexpUnicodeProperty = [] | [{
|
|
|
10190
10091
|
}];
|
|
10191
10092
|
//#endregion
|
|
10192
10093
|
//#region src/_generated/dts/sort-package-json.d.ts
|
|
10193
|
-
interface
|
|
10094
|
+
interface SortPackageJsonRules {}
|
|
10194
10095
|
//#endregion
|
|
10195
10096
|
//#region src/_generated/dts/sort-tsconfig.d.ts
|
|
10196
|
-
interface
|
|
10097
|
+
interface SortTsconfigRules {}
|
|
10197
10098
|
//#endregion
|
|
10198
10099
|
//#region src/_generated/dts/stylistic.d.ts
|
|
10199
|
-
interface
|
|
10100
|
+
interface StylisticRules {
|
|
10200
10101
|
/**
|
|
10201
10102
|
* Enforce linebreaks after opening and before closing array brackets
|
|
10202
10103
|
* @see https://eslint.style/rules/array-bracket-newline
|
|
@@ -11859,7 +11760,7 @@ type StylisticYieldStarSpacing = [] | [("before" | "after" | "both" | "neither")
|
|
|
11859
11760
|
}];
|
|
11860
11761
|
//#endregion
|
|
11861
11762
|
//#region src/_generated/dts/toml.d.ts
|
|
11862
|
-
interface
|
|
11763
|
+
interface TomlRules {
|
|
11863
11764
|
/**
|
|
11864
11765
|
* enforce linebreaks after opening and before closing array brackets
|
|
11865
11766
|
* @see https://ota-meshi.github.io/eslint-plugin-toml/rules/array-bracket-newline.html
|
|
@@ -12105,7 +12006,7 @@ type TomlSpacedComment = [] | ["always" | "never"] | ["always" | "never", {
|
|
|
12105
12006
|
type TomlTableBracketSpacing = [] | ["always" | "never"];
|
|
12106
12007
|
//#endregion
|
|
12107
12008
|
//#region src/_generated/dts/typescript.d.ts
|
|
12108
|
-
interface
|
|
12009
|
+
interface TypescriptRules {
|
|
12109
12010
|
/**
|
|
12110
12011
|
* Require that function overload signatures be consecutive
|
|
12111
12012
|
* @see https://typescript-eslint.io/rules/adjacent-overload-signatures
|
|
@@ -13741,7 +13642,7 @@ type ImportPreferDefaultExport = [] | [{
|
|
|
13741
13642
|
}];
|
|
13742
13643
|
//#endregion
|
|
13743
13644
|
//#region src/_generated/dts/unicorn.d.ts
|
|
13744
|
-
interface
|
|
13645
|
+
interface UnicornRules {
|
|
13745
13646
|
/**
|
|
13746
13647
|
* Prefer better DOM traversal APIs.
|
|
13747
13648
|
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/better-dom-traversing.md
|
|
@@ -15749,8 +15650,56 @@ type UnicornTryComplexity = [] | [{
|
|
|
15749
15650
|
max?: number;
|
|
15750
15651
|
}];
|
|
15751
15652
|
//#endregion
|
|
15653
|
+
//#region src/_generated/dts/unused-imports.d.ts
|
|
15654
|
+
interface UnusedImportsRules {
|
|
15655
|
+
/**
|
|
15656
|
+
* Disallow unused variables
|
|
15657
|
+
* @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-imports.md
|
|
15658
|
+
*/
|
|
15659
|
+
"unused-imports/no-unused-imports"?: Linter.RuleEntry<UnusedImportsNoUnusedImports>;
|
|
15660
|
+
/**
|
|
15661
|
+
* Disallow unused variables
|
|
15662
|
+
* @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-vars.md
|
|
15663
|
+
*/
|
|
15664
|
+
"unused-imports/no-unused-vars"?: Linter.RuleEntry<UnusedImportsNoUnusedVars>;
|
|
15665
|
+
}
|
|
15666
|
+
/* ======= Declarations ======= */
|
|
15667
|
+
// ----- unused-imports/no-unused-imports -----
|
|
15668
|
+
type UnusedImportsNoUnusedImports = [] | [("all" | "local") | {
|
|
15669
|
+
args?: "all" | "after-used" | "none";
|
|
15670
|
+
argsIgnorePattern?: string;
|
|
15671
|
+
caughtErrors?: "all" | "none";
|
|
15672
|
+
caughtErrorsIgnorePattern?: string;
|
|
15673
|
+
destructuredArrayIgnorePattern?: string;
|
|
15674
|
+
enableAutofixRemoval?: {
|
|
15675
|
+
imports?: boolean;
|
|
15676
|
+
};
|
|
15677
|
+
ignoreClassWithStaticInitBlock?: boolean;
|
|
15678
|
+
ignoreRestSiblings?: boolean;
|
|
15679
|
+
ignoreUsingDeclarations?: boolean;
|
|
15680
|
+
reportUsedIgnorePattern?: boolean;
|
|
15681
|
+
vars?: "all" | "local";
|
|
15682
|
+
varsIgnorePattern?: string;
|
|
15683
|
+
}]; // ----- unused-imports/no-unused-vars -----
|
|
15684
|
+
type UnusedImportsNoUnusedVars = [] | [("all" | "local") | {
|
|
15685
|
+
args?: "all" | "after-used" | "none";
|
|
15686
|
+
argsIgnorePattern?: string;
|
|
15687
|
+
caughtErrors?: "all" | "none";
|
|
15688
|
+
caughtErrorsIgnorePattern?: string;
|
|
15689
|
+
destructuredArrayIgnorePattern?: string;
|
|
15690
|
+
enableAutofixRemoval?: {
|
|
15691
|
+
imports?: boolean;
|
|
15692
|
+
};
|
|
15693
|
+
ignoreClassWithStaticInitBlock?: boolean;
|
|
15694
|
+
ignoreRestSiblings?: boolean;
|
|
15695
|
+
ignoreUsingDeclarations?: boolean;
|
|
15696
|
+
reportUsedIgnorePattern?: boolean;
|
|
15697
|
+
vars?: "all" | "local";
|
|
15698
|
+
varsIgnorePattern?: string;
|
|
15699
|
+
}];
|
|
15700
|
+
//#endregion
|
|
15752
15701
|
//#region src/_generated/dts/vitest.d.ts
|
|
15753
|
-
interface
|
|
15702
|
+
interface VitestRules {
|
|
15754
15703
|
/**
|
|
15755
15704
|
* enforce using `.each` or `.for` consistently
|
|
15756
15705
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-each-for.md
|
|
@@ -16260,7 +16209,7 @@ type VitestValidTitle = [] | [{
|
|
|
16260
16209
|
}];
|
|
16261
16210
|
//#endregion
|
|
16262
16211
|
//#region src/_generated/dts/yml.d.ts
|
|
16263
|
-
interface
|
|
16212
|
+
interface YmlRules {
|
|
16264
16213
|
/**
|
|
16265
16214
|
* require or disallow block style mappings.
|
|
16266
16215
|
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/block-mapping.html
|
|
@@ -16608,422 +16557,40 @@ type YamlSpacedComment = [] | ["always" | "never"] | ["always" | "never", {
|
|
|
16608
16557
|
}];
|
|
16609
16558
|
//#endregion
|
|
16610
16559
|
//#region src/_generated/rule-options.d.ts
|
|
16611
|
-
type
|
|
16612
|
-
|
|
16613
|
-
|
|
16614
|
-
|
|
16615
|
-
|
|
16616
|
-
|
|
16617
|
-
|
|
16618
|
-
|
|
16619
|
-
|
|
16620
|
-
|
|
16621
|
-
|
|
16622
|
-
|
|
16623
|
-
|
|
16624
|
-
|
|
16625
|
-
|
|
16626
|
-
|
|
16627
|
-
|
|
16628
|
-
|
|
16629
|
-
|
|
16630
|
-
|
|
16631
|
-
|
|
16632
|
-
|
|
16633
|
-
|
|
16634
|
-
|
|
16635
|
-
|
|
16636
|
-
|
|
16637
|
-
|
|
16638
|
-
|
|
16639
|
-
|
|
16640
|
-
|
|
16641
|
-
|
|
16642
|
-
|
|
16643
|
-
|
|
16644
|
-
|
|
16645
|
-
};
|
|
16646
|
-
type OptionsTypeScriptParserOptions = {
|
|
16647
|
-
/**
|
|
16648
|
-
* Additional parser options for TypeScript.
|
|
16649
|
-
*/
|
|
16650
|
-
parserOptions?: Partial<ParserOptions>;
|
|
16651
|
-
/**
|
|
16652
|
-
* Flag to use `projectService` for type-aware linting.
|
|
16653
|
-
*
|
|
16654
|
-
* If `true` use fancy new `projectService` for type-aware linting.
|
|
16655
|
-
* If `false` use classic `project` configuration.
|
|
16656
|
-
*
|
|
16657
|
-
* When omitted, this is auto-detected: `projectService` is used only
|
|
16658
|
-
* when `tsconfig` is exactly `"tsconfig.json"` (or `["tsconfig.json"]`);
|
|
16659
|
-
* any other `tsconfig` value falls back to classic `project` mode.
|
|
16660
|
-
* @default auto-detected from `tsconfig`
|
|
16661
|
-
*/
|
|
16662
|
-
useProjectService?: boolean;
|
|
16663
|
-
/**
|
|
16664
|
-
* Glob patterns for files that should be type aware.
|
|
16665
|
-
* @default ['**\/*.{ts,tsx}']
|
|
16666
|
-
*/
|
|
16667
|
-
filesTypeAware?: string[];
|
|
16668
|
-
/**
|
|
16669
|
-
* Glob patterns for files that should not be type aware.
|
|
16670
|
-
* @default ['**\/*.md\/**']
|
|
16671
|
-
*/
|
|
16672
|
-
ignoresTypeAware?: string[];
|
|
16673
|
-
};
|
|
16674
|
-
type TypescriptPreset = "all" | "base" | "disable-type-checked" | "eslint-recommended" | "recommended" | "recommended-type-checked" | "recommended-type-checked-only" | "strict" | "strict-type-checked" | "strict-type-checked-only" | "stylistic" | "stylistic-type-checked" | "stylistic-type-checked-only";
|
|
16675
|
-
type OptionsTypeScriptWithTypes = {
|
|
16676
|
-
/**
|
|
16677
|
-
* When this options is provided, type aware rules will be enabled.
|
|
16678
|
-
* @see https://typescript-eslint.io/linting/typed-linting/
|
|
16679
|
-
*/
|
|
16680
|
-
tsconfig?: string | string[];
|
|
16681
|
-
/**
|
|
16682
|
-
* Override only type-aware rules.
|
|
16683
|
-
*/
|
|
16684
|
-
overridesTypeAware?: Config["rules"];
|
|
16685
|
-
/**
|
|
16686
|
-
* Override TypeScript rules.
|
|
16687
|
-
*/
|
|
16688
|
-
overrides?: TypescriptConfigRules;
|
|
16689
|
-
/**
|
|
16690
|
-
* TypeScript ESLint preset or presets to use as the base ruleset.
|
|
16691
|
-
*
|
|
16692
|
-
* Preset names match the kebab-case TypeScript ESLint config names.
|
|
16693
|
-
* @default "recommended-type-checked" when type-aware, otherwise "recommended"
|
|
16694
|
-
*/
|
|
16695
|
-
presets?: TypescriptPreset | TypescriptPreset[];
|
|
16696
|
-
/**
|
|
16697
|
-
* strict vs recommended configs, cannot be used with presets
|
|
16698
|
-
* @default false
|
|
16699
|
-
*/
|
|
16700
|
-
strict?: boolean;
|
|
16701
|
-
/**
|
|
16702
|
-
* typeAware
|
|
16703
|
-
*/
|
|
16704
|
-
typeAware?: boolean;
|
|
16705
|
-
};
|
|
16706
|
-
type OptionsTypescript = OptionsTypeScriptWithTypes & OptionsTypeScriptParserOptions & {
|
|
16707
|
-
typedefs?: "type" | "interface";
|
|
16708
|
-
};
|
|
16709
|
-
type OptionsStylistic = {
|
|
16710
|
-
stylistic?: boolean | StylisticConfig;
|
|
16711
|
-
};
|
|
16712
|
-
type StylisticConfig = {
|
|
16713
|
-
indent?: number | "tab";
|
|
16714
|
-
quotes?: "single" | "double";
|
|
16715
|
-
jsx?: boolean;
|
|
16716
|
-
};
|
|
16717
|
-
type OptionsAntfu = {
|
|
16718
|
-
topLevelFunction?: "error" | "off";
|
|
16719
|
-
overrides?: AntfuRuleOptions;
|
|
16720
|
-
};
|
|
16721
|
-
type OptionsCommand = {
|
|
16722
|
-
overrides?: CommandRuleOptions;
|
|
16723
|
-
};
|
|
16724
|
-
type OptionsDeMorgan = {
|
|
16725
|
-
overrides?: DeMorganRuleOptions;
|
|
16726
|
-
};
|
|
16727
|
-
type OptionsE18e = {
|
|
16728
|
-
modernization?: boolean;
|
|
16729
|
-
moduleReplacements?: boolean;
|
|
16730
|
-
performanceImprovements?: boolean;
|
|
16731
|
-
overrides?: E18eRuleOptions;
|
|
16732
|
-
};
|
|
16733
|
-
type OptionsJavascript = {
|
|
16734
|
-
overrides?: JavascriptRuleOptions;
|
|
16735
|
-
};
|
|
16736
|
-
type OptionsJsdoc = {
|
|
16737
|
-
overrides?: JsdocRuleOptions;
|
|
16738
|
-
};
|
|
16739
|
-
type OptionsJsonc = OptionsStylistic & {
|
|
16740
|
-
overrides?: JsoncRuleOptions;
|
|
16741
|
-
};
|
|
16742
|
-
type OptionsMarkdown = OptionsComponentExts & {
|
|
16743
|
-
overrides?: MarkdownRuleOptions;
|
|
16744
|
-
};
|
|
16745
|
-
type OptionsN = {
|
|
16746
|
-
overrides?: NRuleOptions;
|
|
16747
|
-
};
|
|
16748
|
-
type OptionsNodeTest = {
|
|
16749
|
-
/**
|
|
16750
|
-
* Files to include for node-test rules.
|
|
16751
|
-
*
|
|
16752
|
-
* Defaults to `GLOB_TESTS`
|
|
16753
|
-
*/
|
|
16754
|
-
files?: string[];
|
|
16755
|
-
/**
|
|
16756
|
-
* eslint-node-test preset to use as the base ruleset.
|
|
16757
|
-
* @default "recommended"
|
|
16758
|
-
*/
|
|
16759
|
-
preset?: "recommended" | "unopinionated" | "all";
|
|
16760
|
-
/**
|
|
16761
|
-
* Override eslint-node-test rules after applying the preset.
|
|
16762
|
-
*/
|
|
16763
|
-
overrides?: NodeTestRuleOptions;
|
|
16764
|
-
};
|
|
16765
|
-
type OptionsPnpm = {
|
|
16766
|
-
overrides?: PnpmRuleOptions;
|
|
16767
|
-
};
|
|
16768
|
-
type ReactHooksPreset = "recommended" | "recommended-latest";
|
|
16769
|
-
type ReactPreset = "recommended" | "recommended-type-checked" | "recommended-typescript" | "strict" | "strict-type-checked" | "strict-typescript";
|
|
16770
|
-
type OptionsReactConfig = {
|
|
16771
|
-
/**
|
|
16772
|
-
* Enable eslint-plugin-react-hooks rules or select its preset.
|
|
16773
|
-
* @default "recommended"
|
|
16774
|
-
*/
|
|
16775
|
-
hooks?: boolean | ReactHooksPreset;
|
|
16776
|
-
/**
|
|
16777
|
-
* Enable eslint-plugin-react-refresh rules.
|
|
16778
|
-
* @default true
|
|
16779
|
-
*/
|
|
16780
|
-
refresh?: boolean;
|
|
16781
|
-
/**
|
|
16782
|
-
* Use `refresh` instead.
|
|
16783
|
-
* @deprecated
|
|
16784
|
-
*/
|
|
16785
|
-
reactRefresh?: boolean;
|
|
16786
|
-
overrides?: EslintReactRuleOptions & ReactHooksRuleOptions & ReactRefreshRuleOptions;
|
|
16787
|
-
/**
|
|
16788
|
-
* `@eslint-react/eslint-plugin` preset to use as the base ruleset.
|
|
16789
|
-
*
|
|
16790
|
-
* Preset names match the kebab-case `@eslint-react` config names.
|
|
16791
|
-
* @default "recommended"
|
|
16792
|
-
*/
|
|
16793
|
-
preset?: ReactPreset;
|
|
16794
|
-
};
|
|
16795
|
-
type OptionsSortTsconfig = {
|
|
16796
|
-
extendTsconfigGlobs?: string[];
|
|
16797
|
-
};
|
|
16798
|
-
type OptionsUnicorn = {
|
|
16799
|
-
/**
|
|
16800
|
-
* Unicorn preset to use as the base ruleset.
|
|
16801
|
-
* @default "recommended"
|
|
16802
|
-
*/
|
|
16803
|
-
preset?: "recommended" | "unopinionated" | "all";
|
|
16804
|
-
/**
|
|
16805
|
-
* Override Unicorn rules after applying the preset and built-in rules.
|
|
16806
|
-
*/
|
|
16807
|
-
overrides?: UnicornRuleOptions;
|
|
16808
|
-
};
|
|
16809
|
-
type OptionsVitest = {
|
|
16810
|
-
overrides?: VitestRuleOptions;
|
|
16811
|
-
};
|
|
16812
|
-
type OptionsYaml = OptionsFiles & OptionsStylistic & {
|
|
16813
|
-
overrides?: YmlRuleOptions;
|
|
16814
|
-
};
|
|
16815
|
-
type OptionsConfigs = {
|
|
16816
|
-
/**
|
|
16817
|
-
* Enable eslint-plugin-antfu.
|
|
16818
|
-
* @default true
|
|
16819
|
-
*/
|
|
16820
|
-
antfu?: boolean | OptionsAntfu;
|
|
16821
|
-
/**
|
|
16822
|
-
* Enable `eslint-plugin-command`
|
|
16823
|
-
* @default true
|
|
16824
|
-
*/
|
|
16825
|
-
command?: boolean | OptionsCommand;
|
|
16826
|
-
/**
|
|
16827
|
-
* Enable eslint-plugin-de-morgan.
|
|
16828
|
-
* @default true
|
|
16829
|
-
*/
|
|
16830
|
-
demorgan?: boolean | OptionsDeMorgan;
|
|
16831
|
-
/**
|
|
16832
|
-
* Enable @e18e/eslint-plugin.
|
|
16833
|
-
* @default true
|
|
16834
|
-
*/
|
|
16835
|
-
e18e?: boolean | OptionsE18e;
|
|
16836
|
-
/**
|
|
16837
|
-
* Configure JavaScript rules.
|
|
16838
|
-
*/
|
|
16839
|
-
javascript?: OptionsJavascript;
|
|
16840
|
-
/**
|
|
16841
|
-
* Enable eslint-plugin-jsdoc.
|
|
16842
|
-
* @default true
|
|
16843
|
-
*/
|
|
16844
|
-
jsdoc?: boolean | OptionsJsdoc;
|
|
16845
|
-
/**
|
|
16846
|
-
* Enable eslint-plugin-n (Node.js rules).
|
|
16847
|
-
* @default true
|
|
16848
|
-
*/
|
|
16849
|
-
n?: boolean | OptionsN;
|
|
16850
|
-
/**
|
|
16851
|
-
* Enable `eslint-node-test` (Node.js built-in test runner rules).
|
|
16852
|
-
* @default false
|
|
16853
|
-
*/
|
|
16854
|
-
nodeTest?: boolean | OptionsNodeTest;
|
|
16855
|
-
/**
|
|
16856
|
-
* Enable eslint-plugin-pnpm.
|
|
16857
|
-
* @default false
|
|
16858
|
-
*/
|
|
16859
|
-
pnpm?: boolean | OptionsPnpm;
|
|
16860
|
-
/**
|
|
16861
|
-
* Enable TypeScript support.
|
|
16862
|
-
*
|
|
16863
|
-
* Passing an object to enable TypeScript Language Server support.
|
|
16864
|
-
* @default auto-detect based on the dependencies
|
|
16865
|
-
*/
|
|
16866
|
-
typescript?: boolean | OptionsTypescript;
|
|
16867
|
-
/**
|
|
16868
|
-
* Enable eslint-plugin-unicorn.
|
|
16869
|
-
* @default true
|
|
16870
|
-
*/
|
|
16871
|
-
unicorn?: boolean | OptionsUnicorn;
|
|
16872
|
-
react?: boolean | OptionsReactConfig;
|
|
16873
|
-
/**
|
|
16874
|
-
* Enable regexp plugin
|
|
16875
|
-
* @default true
|
|
16876
|
-
*/
|
|
16877
|
-
regexp?: boolean;
|
|
16878
|
-
/**
|
|
16879
|
-
* Enable `@vitest/eslint-plugin` (Vitest rules).
|
|
16880
|
-
* @default auto-detect based on the dependencies
|
|
16881
|
-
*/
|
|
16882
|
-
vitest?: boolean | OptionsVitest;
|
|
16883
|
-
/**
|
|
16884
|
-
* Enable JSONC support.
|
|
16885
|
-
* @default true
|
|
16886
|
-
*/
|
|
16887
|
-
jsonc?: boolean | OptionsJsonc;
|
|
16888
|
-
/**
|
|
16889
|
-
* Enable YAML support.
|
|
16890
|
-
* @default false
|
|
16891
|
-
*/
|
|
16892
|
-
yaml?: boolean | OptionsYaml;
|
|
16893
|
-
/**
|
|
16894
|
-
* Enable Markdown support.
|
|
16895
|
-
* @default false
|
|
16896
|
-
*/
|
|
16897
|
-
markdown?: boolean | OptionsMarkdown;
|
|
16898
|
-
/**
|
|
16899
|
-
* Enable stylistic rules.
|
|
16900
|
-
* @default true
|
|
16901
|
-
*/
|
|
16902
|
-
stylistic?: boolean | StylisticConfig;
|
|
16560
|
+
type AllRulesIntersection = BuiltinRules | AntfuRules | CommandRules | DeMorganRules | E18eRules | EslintCommentsRules | EslintReactRules | IgnoresRules | ImportsRules | JavascriptRules | JsdocRules | JsoncRules | MarkdownRules | NRules | NoOnlyTestsRules | NodeTestRules | PerfectionistRules | PnpmRules | PrettierRules | ReactHooksRules | ReactRefreshRules | RegexpRules | SortPackageJsonRules | SortTsconfigRules | StylisticRules | TomlRules | TypescriptRules | UnicornRules | UnusedImportsRules | VitestRules | YmlRules;
|
|
16561
|
+
type AllRules = BuiltinRules & AntfuRules & CommandRules & DeMorganRules & E18eRules & EslintCommentsRules & EslintReactRules & IgnoresRules & ImportsRules & JavascriptRules & JsdocRules & JsoncRules & MarkdownRules & NRules & NoOnlyTestsRules & NodeTestRules & PerfectionistRules & PnpmRules & PrettierRules & ReactHooksRules & ReactRefreshRules & RegexpRules & SortPackageJsonRules & SortTsconfigRules & StylisticRules & TomlRules & TypescriptRules & UnicornRules & UnusedImportsRules & VitestRules & YmlRules;
|
|
16562
|
+
type AllRulesMap = {
|
|
16563
|
+
BuiltinRules: BuiltinRules;
|
|
16564
|
+
AntfuRules: AntfuRules;
|
|
16565
|
+
CommandRules: CommandRules;
|
|
16566
|
+
DeMorganRules: DeMorganRules;
|
|
16567
|
+
E18eRules: E18eRules;
|
|
16568
|
+
EslintCommentsRules: EslintCommentsRules;
|
|
16569
|
+
EslintReactRules: EslintReactRules;
|
|
16570
|
+
IgnoresRules: IgnoresRules;
|
|
16571
|
+
ImportsRules: ImportsRules;
|
|
16572
|
+
JavascriptRules: JavascriptRules;
|
|
16573
|
+
JsdocRules: JsdocRules;
|
|
16574
|
+
JsoncRules: JsoncRules;
|
|
16575
|
+
MarkdownRules: MarkdownRules;
|
|
16576
|
+
NRules: NRules;
|
|
16577
|
+
NoOnlyTestsRules: NoOnlyTestsRules;
|
|
16578
|
+
NodeTestRules: NodeTestRules;
|
|
16579
|
+
PerfectionistRules: PerfectionistRules;
|
|
16580
|
+
PnpmRules: PnpmRules;
|
|
16581
|
+
PrettierRules: PrettierRules;
|
|
16582
|
+
ReactHooksRules: ReactHooksRules;
|
|
16583
|
+
ReactRefreshRules: ReactRefreshRules;
|
|
16584
|
+
RegexpRules: RegexpRules;
|
|
16585
|
+
SortPackageJsonRules: SortPackageJsonRules;
|
|
16586
|
+
SortTsconfigRules: SortTsconfigRules;
|
|
16587
|
+
StylisticRules: StylisticRules;
|
|
16588
|
+
TomlRules: TomlRules;
|
|
16589
|
+
TypescriptRules: TypescriptRules;
|
|
16590
|
+
UnicornRules: UnicornRules;
|
|
16591
|
+
UnusedImportsRules: UnusedImportsRules;
|
|
16592
|
+
VitestRules: VitestRules;
|
|
16593
|
+
YmlRules: YmlRules;
|
|
16903
16594
|
};
|
|
16904
|
-
/**
|
|
16905
|
-
* Deprecated options that are still supported
|
|
16906
|
-
*/
|
|
16907
|
-
type OptionsDeprecated = {
|
|
16908
|
-
/**
|
|
16909
|
-
* Enable `eslint-plugin-react-refresh` rules.
|
|
16910
|
-
* @default true
|
|
16911
|
-
* @deprecated use `react.refresh` instead
|
|
16912
|
-
*/
|
|
16913
|
-
reactRefresh?: boolean;
|
|
16914
|
-
/**
|
|
16915
|
-
* Enable Tailwind CSS support.
|
|
16916
|
-
*
|
|
16917
|
-
* Passing an object to configure the options.
|
|
16918
|
-
* Tailwind support is currently disabled; passing this option only logs a warning.
|
|
16919
|
-
* @deprecated deprecated tw support
|
|
16920
|
-
* @default false
|
|
16921
|
-
*/
|
|
16922
|
-
tailwind?: boolean | {
|
|
16923
|
-
overrides?: Record<string, unknown>;
|
|
16924
|
-
};
|
|
16925
|
-
};
|
|
16926
|
-
type OptionsConfig = OptionsComponentExts & OptionsTypeScriptParserOptions & OptionsConfigs & OptionsDeprecated & {
|
|
16927
|
-
/**
|
|
16928
|
-
* Enable debug mode.
|
|
16929
|
-
*/
|
|
16930
|
-
debug?: boolean;
|
|
16931
|
-
/**
|
|
16932
|
-
* Enable configuration diagnostics.
|
|
16933
|
-
* @default true
|
|
16934
|
-
*/
|
|
16935
|
-
diagnostics?: boolean;
|
|
16936
|
-
/**
|
|
16937
|
-
* Enable reporting of unused disable directives.
|
|
16938
|
-
* @default true
|
|
16939
|
-
*/
|
|
16940
|
-
reportUnusedDisableDirectives?: boolean;
|
|
16941
|
-
/**
|
|
16942
|
-
* Array of rules to turn off.
|
|
16943
|
-
*/
|
|
16944
|
-
off?: RuleName[] | Set<RuleName>;
|
|
16945
|
-
/**
|
|
16946
|
-
* Enable fast mode.
|
|
16947
|
-
*
|
|
16948
|
-
* This will disable some rules to speed up linting.
|
|
16949
|
-
*/
|
|
16950
|
-
fast?: boolean;
|
|
16951
|
-
/**
|
|
16952
|
-
* Enable Prettier config rules to disable conflicting ESLint rules
|
|
16953
|
-
*
|
|
16954
|
-
* THIS DOES NOT ENABLE PRETTIER FORMATTING. YOU DO THAT, BUT I
|
|
16955
|
-
* RECOMMEND USING PRETTIER TO FORMAT AND NOT THE ESLint PRETTIER
|
|
16956
|
-
* PLUGIN!.
|
|
16957
|
-
*/
|
|
16958
|
-
prettier?: boolean;
|
|
16959
|
-
/**
|
|
16960
|
-
* The prefix for the name of the config item.
|
|
16961
|
-
* @default "jsse"
|
|
16962
|
-
*/
|
|
16963
|
-
rootId?: string;
|
|
16964
|
-
/**
|
|
16965
|
-
* Optional function to run before the final config is returned.
|
|
16966
|
-
*/
|
|
16967
|
-
preReturn?: (configs: Config[]) => Config[] | Awaitable<Config[]>;
|
|
16968
|
-
/**
|
|
16969
|
-
* Enable gitignore support.
|
|
16970
|
-
*
|
|
16971
|
-
* Passing an object to configure the options.
|
|
16972
|
-
* @see https://github.com/antfu/eslint-config-flat-gitignore
|
|
16973
|
-
* @default true
|
|
16974
|
-
*/
|
|
16975
|
-
gitignore?: boolean | FlatGitignoreOptions;
|
|
16976
|
-
/**
|
|
16977
|
-
* Enable sorting of package.json files.
|
|
16978
|
-
* @default true
|
|
16979
|
-
*/
|
|
16980
|
-
sortPackageJson?: boolean;
|
|
16981
|
-
/**
|
|
16982
|
-
* Enable sorting of tsconfig.json files.
|
|
16983
|
-
* @default true
|
|
16984
|
-
*/
|
|
16985
|
-
sortTsconfig?: boolean | OptionsSortTsconfig;
|
|
16986
|
-
/**
|
|
16987
|
-
* Enable sorting of geojson files.
|
|
16988
|
-
* @default false
|
|
16989
|
-
*/
|
|
16990
|
-
sortGeojson?: boolean;
|
|
16991
|
-
/**
|
|
16992
|
-
* Enable import/export sorting via perfectionist.
|
|
16993
|
-
* @default false
|
|
16994
|
-
*/
|
|
16995
|
-
sortImports?: boolean;
|
|
16996
|
-
/**
|
|
16997
|
-
* The prefix for the name of the config item
|
|
16998
|
-
* @default "@typescript-eslint"
|
|
16999
|
-
*/
|
|
17000
|
-
tsPrefix?: string;
|
|
17001
|
-
/**
|
|
17002
|
-
* Glob patterns for ADDITIONAL tsconfig files to lint (aka sort)
|
|
17003
|
-
*
|
|
17004
|
-
* Has nothing to do with `@typescript-eslint/parser` or `typescript-eslint/eslint-plugin`
|
|
17005
|
-
* @default ['tsconfig.json', 'tsconfig.*.json']
|
|
17006
|
-
*/
|
|
17007
|
-
extendTsconfigLintGlobs?: string[];
|
|
17008
|
-
/**
|
|
17009
|
-
* Forcibly disable type aware rules
|
|
17010
|
-
*/
|
|
17011
|
-
typeAware?: boolean;
|
|
17012
|
-
/**
|
|
17013
|
-
* Enable JSX related rules.
|
|
17014
|
-
*
|
|
17015
|
-
* Currently only stylistic rules are included.
|
|
17016
|
-
* @default true
|
|
17017
|
-
*/
|
|
17018
|
-
jsx?: boolean;
|
|
17019
|
-
/**
|
|
17020
|
-
* Control to disable some rules in editors.
|
|
17021
|
-
* @default auto-detect based on the process.env
|
|
17022
|
-
*/
|
|
17023
|
-
isInEditor?: boolean;
|
|
17024
|
-
};
|
|
17025
|
-
//#endregion
|
|
17026
|
-
//#region src/_generated/fixable-rules-map.d.ts
|
|
17027
|
-
declare const FIXABLE_RULES_MAP: Record<string, RuleName[]>;
|
|
17028
16595
|
//#endregion
|
|
17029
|
-
export {
|
|
16596
|
+
export { E18eRules as A, JsoncRules as C, IgnoresRules as D, ImportsRules as E, CommandRules as M, BuiltinRules as N, EslintReactRules as O, AntfuRules as P, MarkdownRules as S, JavascriptRules as T, PnpmRules as _, VitestRules as a, NoOnlyTestsRules as b, TypescriptRules as c, SortTsconfigRules as d, SortPackageJsonRules as f, PrettierRules as g, ReactHooksRules as h, YmlRules as i, DeMorganRules as j, EslintCommentsRules as k, TomlRules as l, ReactRefreshRules as m, AllRulesIntersection as n, UnusedImportsRules as o, RegexpRules as p, AllRulesMap as r, UnicornRules as s, AllRules as t, StylisticRules as u, PerfectionistRules as v, JsdocRules as w, NRules as x, NodeTestRules as y };
|