@2digits/oxlint-config 0.6.17 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base-Ddkw7kpS.mjs +1 -0
- package/dist/base.d.mts +376 -360
- package/dist/base.mjs +1 -1
- package/dist/index.d.mts +1003 -1004
- package/dist/index.mjs +1 -1
- package/dist/typescript-CDMKHDlD.mjs +1 -0
- package/dist/typescript.d.mts +197 -191
- package/dist/typescript.mjs +1 -1
- package/package.json +6 -6
- package/dist/base-DDWqp-yG.mjs +0 -1
- package/dist/typescript-C5De5VIw.mjs +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,129 +1,81 @@
|
|
|
1
|
-
import { OxlintConfig, OxlintConfig as OxlintConfig$1, OxlintOverride
|
|
1
|
+
import { AllowWarnDeny, DummyRuleMap, DummyRuleMap as DummyRuleMap$1, DummyRuleMap as RuleMap, OxlintConfig, OxlintConfig as OxlintConfig$1, OxlintOverride } from "oxlint";
|
|
2
2
|
//#region src/rule-options.d.ts
|
|
3
|
-
type
|
|
4
|
-
readonly message?: string;
|
|
5
|
-
readonly name: string;
|
|
6
|
-
};
|
|
7
|
-
interface NoUnusedVariablesOptions {
|
|
8
|
-
readonly args?: 'after-used' | 'all' | 'none';
|
|
9
|
-
readonly argsIgnorePattern?: string;
|
|
10
|
-
readonly caughtErrors?: 'all' | 'none';
|
|
11
|
-
readonly caughtErrorsIgnorePattern?: string;
|
|
12
|
-
readonly ignoreRestSiblings?: boolean;
|
|
13
|
-
readonly vars?: 'all' | 'local';
|
|
14
|
-
readonly varsIgnorePattern?: string;
|
|
15
|
-
}
|
|
3
|
+
type RuleWithOptions<T> = AllowWarnDeny | [AllowWarnDeny, T];
|
|
16
4
|
interface NoConflictingChecksOptions {
|
|
17
5
|
readonly checkConfusingCases?: boolean;
|
|
18
6
|
readonly checkImpossibleCases?: boolean;
|
|
19
7
|
readonly checkInapplicableChecks?: boolean;
|
|
20
8
|
}
|
|
21
9
|
/**
|
|
22
|
-
*
|
|
10
|
+
* Register rules provided by external JavaScript plugins.
|
|
23
11
|
*
|
|
24
|
-
* Keep these
|
|
12
|
+
* Keep these declarations synchronized with the configured plugin versions.
|
|
25
13
|
*/
|
|
26
|
-
declare module '
|
|
27
|
-
interface
|
|
28
|
-
'
|
|
29
|
-
'
|
|
30
|
-
'
|
|
31
|
-
'eslint/func-style': 'declaration' | 'expression';
|
|
32
|
-
'eslint/logical-assignment-operators': 'always' | 'never';
|
|
33
|
-
'eslint/no-restricted-globals': RestrictedGlobal;
|
|
34
|
-
'eslint/no-unused-vars': NoUnusedVariablesOptions;
|
|
35
|
-
'eslint/prefer-destructuring': {
|
|
36
|
-
readonly array?: boolean;
|
|
37
|
-
readonly object?: boolean;
|
|
38
|
-
};
|
|
39
|
-
'eslint/yoda': 'always' | 'never';
|
|
40
|
-
'react-compiler/react-compiler': never;
|
|
41
|
-
'react_perf/jsx-no-jsx-as-prop': never;
|
|
42
|
-
'react_perf/jsx-no-new-array-as-prop': never;
|
|
43
|
-
'react_perf/jsx-no-new-function-as-prop': never;
|
|
44
|
-
'react_perf/jsx-no-new-object-as-prop': never;
|
|
45
|
-
'stylistic/jsx-curly-newline': never;
|
|
46
|
-
'stylistic/jsx-newline': {
|
|
14
|
+
declare module 'oxlint' {
|
|
15
|
+
interface DummyRuleMap {
|
|
16
|
+
'react-compiler/react-compiler'?: AllowWarnDeny;
|
|
17
|
+
'stylistic/jsx-curly-newline'?: AllowWarnDeny;
|
|
18
|
+
'stylistic/jsx-newline'?: RuleWithOptions<{
|
|
47
19
|
readonly allowMultilines?: boolean;
|
|
48
20
|
readonly prevent?: boolean;
|
|
49
|
-
}
|
|
50
|
-
'
|
|
51
|
-
readonly 'ts-check'?: 'allow-with-description' | boolean;
|
|
52
|
-
readonly 'ts-expect-error'?: 'allow-with-description' | boolean;
|
|
53
|
-
readonly 'ts-ignore'?: 'allow-with-description' | boolean;
|
|
54
|
-
readonly 'ts-nocheck'?: 'allow-with-description' | boolean;
|
|
55
|
-
readonly minimumDescriptionLength?: number;
|
|
56
|
-
};
|
|
57
|
-
'typescript/consistent-generic-constructors': 'constructor' | 'type-annotation';
|
|
58
|
-
'typescript/no-empty-interface': {
|
|
59
|
-
readonly allowSingleExtends?: boolean;
|
|
60
|
-
};
|
|
61
|
-
'vitest/consistent-each-for': {
|
|
62
|
-
readonly describe?: 'each' | 'for';
|
|
63
|
-
readonly it?: 'each' | 'for';
|
|
64
|
-
readonly suite?: 'each' | 'for';
|
|
65
|
-
readonly test?: 'each' | 'for';
|
|
66
|
-
};
|
|
67
|
-
'vitest/consistent-vitest-vi': {
|
|
68
|
-
readonly fn?: 'vi' | 'vitest';
|
|
69
|
-
};
|
|
70
|
-
'zod/array-style': {
|
|
21
|
+
}>;
|
|
22
|
+
'zod/array-style'?: RuleWithOptions<{
|
|
71
23
|
readonly style: 'function' | 'method';
|
|
72
|
-
}
|
|
73
|
-
'zod/consistent-import'
|
|
24
|
+
}>;
|
|
25
|
+
'zod/consistent-import'?: RuleWithOptions<{
|
|
74
26
|
readonly syntax: 'named' | 'namespace';
|
|
75
|
-
}
|
|
76
|
-
'zod/consistent-import-source'
|
|
27
|
+
}>;
|
|
28
|
+
'zod/consistent-import-source'?: RuleWithOptions<{
|
|
77
29
|
readonly sources: Array<string>;
|
|
78
|
-
}
|
|
79
|
-
'zod/consistent-object-schema-type'
|
|
30
|
+
}>;
|
|
31
|
+
'zod/consistent-object-schema-type'?: RuleWithOptions<{
|
|
80
32
|
readonly allow: Array<'looseObject' | 'object' | 'strictObject'>;
|
|
81
|
-
}
|
|
82
|
-
'zod/consistent-schema-output-type-style'
|
|
33
|
+
}>;
|
|
34
|
+
'zod/consistent-schema-output-type-style'?: RuleWithOptions<{
|
|
83
35
|
readonly style: 'infer' | 'output';
|
|
84
|
-
}
|
|
85
|
-
'zod/consistent-schema-var-name'
|
|
36
|
+
}>;
|
|
37
|
+
'zod/consistent-schema-var-name'?: RuleWithOptions<{
|
|
86
38
|
readonly after?: string;
|
|
87
39
|
readonly before?: string;
|
|
88
|
-
}
|
|
89
|
-
'zod/no-any-schema'
|
|
90
|
-
'zod/no-coerce-boolean'
|
|
91
|
-
'zod/no-conflicting-checks'
|
|
92
|
-
'zod/no-duplicate-schema-methods'
|
|
93
|
-
'zod/no-empty-custom-schema'
|
|
94
|
-
'zod/no-native-enum'
|
|
95
|
-
'zod/no-number-schema-with-finite'
|
|
96
|
-
'zod/no-number-schema-with-int'
|
|
97
|
-
'zod/no-number-schema-with-is-finite'
|
|
98
|
-
'zod/no-number-schema-with-is-int'
|
|
99
|
-
'zod/no-number-schema-with-safe'
|
|
100
|
-
'zod/no-number-schema-with-step'
|
|
101
|
-
'zod/no-optional-and-default-together'
|
|
40
|
+
}>;
|
|
41
|
+
'zod/no-any-schema'?: AllowWarnDeny;
|
|
42
|
+
'zod/no-coerce-boolean'?: AllowWarnDeny;
|
|
43
|
+
'zod/no-conflicting-checks'?: RuleWithOptions<NoConflictingChecksOptions>;
|
|
44
|
+
'zod/no-duplicate-schema-methods'?: AllowWarnDeny;
|
|
45
|
+
'zod/no-empty-custom-schema'?: AllowWarnDeny;
|
|
46
|
+
'zod/no-native-enum'?: AllowWarnDeny;
|
|
47
|
+
'zod/no-number-schema-with-finite'?: AllowWarnDeny;
|
|
48
|
+
'zod/no-number-schema-with-int'?: AllowWarnDeny;
|
|
49
|
+
'zod/no-number-schema-with-is-finite'?: AllowWarnDeny;
|
|
50
|
+
'zod/no-number-schema-with-is-int'?: AllowWarnDeny;
|
|
51
|
+
'zod/no-number-schema-with-safe'?: AllowWarnDeny;
|
|
52
|
+
'zod/no-number-schema-with-step'?: AllowWarnDeny;
|
|
53
|
+
'zod/no-optional-and-default-together'?: RuleWithOptions<{
|
|
102
54
|
readonly preferredMethod: 'default' | 'none' | 'optional';
|
|
103
|
-
}
|
|
104
|
-
'zod/no-promise-schema'
|
|
105
|
-
'zod/no-schema-with-is-nullable'
|
|
106
|
-
'zod/no-schema-with-is-optional'
|
|
107
|
-
'zod/no-string-schema-with-uuid'
|
|
108
|
-
'zod/no-throw-in-refine'
|
|
109
|
-
'zod/no-transform-in-record-key'
|
|
110
|
-
'zod/no-unknown-schema'
|
|
111
|
-
'zod/no-unnecessary-readonly'
|
|
112
|
-
'zod/prefer-enum-over-literal-union'
|
|
113
|
-
'zod/prefer-loose-object'
|
|
114
|
-
'zod/prefer-meta'
|
|
115
|
-
'zod/prefer-meta-last'
|
|
116
|
-
'zod/prefer-strict-object'
|
|
117
|
-
'zod/prefer-string-schema-with-trim'
|
|
118
|
-
'zod/prefer-top-level-string-formats'
|
|
119
|
-
'zod/prefer-trim-before-string-length-checks'
|
|
120
|
-
'zod/prefer-tuple-over-array-length'
|
|
121
|
-
'zod/require-brand-type-parameter'
|
|
122
|
-
'zod/require-error-message'
|
|
123
|
-
'zod/schema-error-property-style'
|
|
55
|
+
}>;
|
|
56
|
+
'zod/no-promise-schema'?: AllowWarnDeny;
|
|
57
|
+
'zod/no-schema-with-is-nullable'?: AllowWarnDeny;
|
|
58
|
+
'zod/no-schema-with-is-optional'?: AllowWarnDeny;
|
|
59
|
+
'zod/no-string-schema-with-uuid'?: AllowWarnDeny;
|
|
60
|
+
'zod/no-throw-in-refine'?: AllowWarnDeny;
|
|
61
|
+
'zod/no-transform-in-record-key'?: AllowWarnDeny;
|
|
62
|
+
'zod/no-unknown-schema'?: AllowWarnDeny;
|
|
63
|
+
'zod/no-unnecessary-readonly'?: AllowWarnDeny;
|
|
64
|
+
'zod/prefer-enum-over-literal-union'?: AllowWarnDeny;
|
|
65
|
+
'zod/prefer-loose-object'?: AllowWarnDeny;
|
|
66
|
+
'zod/prefer-meta'?: AllowWarnDeny;
|
|
67
|
+
'zod/prefer-meta-last'?: AllowWarnDeny;
|
|
68
|
+
'zod/prefer-strict-object'?: AllowWarnDeny;
|
|
69
|
+
'zod/prefer-string-schema-with-trim'?: AllowWarnDeny;
|
|
70
|
+
'zod/prefer-top-level-string-formats'?: AllowWarnDeny;
|
|
71
|
+
'zod/prefer-trim-before-string-length-checks'?: AllowWarnDeny;
|
|
72
|
+
'zod/prefer-tuple-over-array-length'?: AllowWarnDeny;
|
|
73
|
+
'zod/require-brand-type-parameter'?: AllowWarnDeny;
|
|
74
|
+
'zod/require-error-message'?: AllowWarnDeny;
|
|
75
|
+
'zod/schema-error-property-style'?: RuleWithOptions<{
|
|
124
76
|
readonly example: string;
|
|
125
77
|
readonly selector: string;
|
|
126
|
-
}
|
|
78
|
+
}>;
|
|
127
79
|
}
|
|
128
80
|
}
|
|
129
81
|
//#endregion
|
|
@@ -132,209 +84,256 @@ declare module '@oxlint-types/define-config' {
|
|
|
132
84
|
* Complete 2digits Oxlint configuration.
|
|
133
85
|
*/
|
|
134
86
|
declare const twoDigits: Omit<{
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
87
|
+
env: {
|
|
88
|
+
browser: true;
|
|
89
|
+
node: true;
|
|
138
90
|
};
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
91
|
+
options: {
|
|
92
|
+
denyWarnings: true;
|
|
93
|
+
reportUnusedDisableDirectives: "deny";
|
|
142
94
|
};
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
95
|
+
categories: {
|
|
96
|
+
nursery: "off";
|
|
97
|
+
pedantic: "off";
|
|
98
|
+
correctness: "off";
|
|
99
|
+
perf: "off";
|
|
100
|
+
style: "off";
|
|
101
|
+
restriction: "off";
|
|
102
|
+
suspicious: "off";
|
|
151
103
|
};
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
'
|
|
104
|
+
extends: ({
|
|
105
|
+
plugins: "import"[];
|
|
106
|
+
rules: {
|
|
107
|
+
'import/consistent-type-specifier-style': undefined;
|
|
108
|
+
'import/default': "error";
|
|
109
|
+
'import/export': "error";
|
|
110
|
+
'import/exports-last': undefined;
|
|
111
|
+
'import/extensions': undefined;
|
|
112
|
+
'import/first': ["error", "disable-absolute-first"];
|
|
113
|
+
'import/group-exports': undefined;
|
|
114
|
+
'import/max-dependencies': undefined;
|
|
115
|
+
'import/named': undefined;
|
|
116
|
+
'import/namespace': "error";
|
|
117
|
+
'import/no-absolute-path': "error";
|
|
118
|
+
'import/no-amd': "error";
|
|
119
|
+
'import/no-anonymous-default-export': "error";
|
|
120
|
+
'import/no-commonjs': undefined;
|
|
121
|
+
'import/no-cycle': "error";
|
|
122
|
+
'import/no-default-export': undefined;
|
|
123
|
+
'import/no-duplicates': "error";
|
|
124
|
+
'import/no-dynamic-require': "error";
|
|
125
|
+
'import/no-empty-named-blocks': "error";
|
|
126
|
+
'import/no-mutable-exports': undefined;
|
|
127
|
+
'import/no-named-as-default': "error";
|
|
128
|
+
'import/no-named-as-default-member': "error";
|
|
129
|
+
'import/no-named-default': "error";
|
|
130
|
+
'import/no-named-export': undefined;
|
|
131
|
+
'import/no-namespace': undefined;
|
|
132
|
+
'import/no-nodejs-modules': undefined;
|
|
133
|
+
'import/no-relative-parent-imports': undefined;
|
|
134
|
+
'import/no-self-import': "error";
|
|
135
|
+
'import/no-unassigned-import': undefined;
|
|
136
|
+
'import/no-webpack-loader-syntax': "error";
|
|
137
|
+
'import/prefer-default-export': undefined;
|
|
138
|
+
'import/unambiguous': undefined;
|
|
139
|
+
'import/newline-after-import': undefined;
|
|
140
|
+
};
|
|
141
|
+
} | {
|
|
142
|
+
plugins: "eslint"[];
|
|
143
|
+
rules: {
|
|
144
|
+
'accessor-pairs': ["error", {
|
|
156
145
|
enforceForClassMembers: true;
|
|
157
146
|
setWithoutGet: true;
|
|
158
147
|
}];
|
|
159
|
-
'
|
|
160
|
-
'
|
|
161
|
-
requireReturnForObjectLiteral:
|
|
162
|
-
}];
|
|
163
|
-
'
|
|
164
|
-
'
|
|
165
|
-
'
|
|
166
|
-
'
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
'
|
|
171
|
-
'
|
|
172
|
-
'
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
'
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
'
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
'
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
'
|
|
185
|
-
'
|
|
186
|
-
'
|
|
187
|
-
'
|
|
188
|
-
'
|
|
189
|
-
'
|
|
190
|
-
'
|
|
191
|
-
'
|
|
192
|
-
'eslint/max-lines': undefined;
|
|
193
|
-
'eslint/max-lines-per-function': undefined;
|
|
194
|
-
'eslint/max-nested-callbacks': undefined;
|
|
195
|
-
'eslint/max-params': undefined;
|
|
196
|
-
'eslint/max-statements': undefined;
|
|
197
|
-
'eslint/new-cap': ["error", {
|
|
148
|
+
'array-callback-return': "error";
|
|
149
|
+
'arrow-body-style': ["error", "as-needed", {
|
|
150
|
+
requireReturnForObjectLiteral: false;
|
|
151
|
+
}];
|
|
152
|
+
'block-scoped-var': "error";
|
|
153
|
+
'capitalized-comments': "error";
|
|
154
|
+
'class-methods-use-this': undefined;
|
|
155
|
+
'constructor-super': "error";
|
|
156
|
+
'default-case': undefined;
|
|
157
|
+
'default-case-last': "error";
|
|
158
|
+
'default-param-last': "error";
|
|
159
|
+
'for-direction': "error";
|
|
160
|
+
'func-name-matching': undefined;
|
|
161
|
+
'func-names': ["error", "always", {
|
|
162
|
+
generators: "never";
|
|
163
|
+
}];
|
|
164
|
+
'func-style': ["error", "declaration", {
|
|
165
|
+
allowTypeAnnotation: true;
|
|
166
|
+
}];
|
|
167
|
+
'getter-return': "error";
|
|
168
|
+
'grouped-accessor-pairs': "error";
|
|
169
|
+
'guard-for-in': "error";
|
|
170
|
+
'id-length': undefined;
|
|
171
|
+
'init-declarations': undefined;
|
|
172
|
+
'logical-assignment-operators': ["error", "always"];
|
|
173
|
+
'max-classes-per-file': undefined;
|
|
174
|
+
'max-depth': undefined;
|
|
175
|
+
'max-lines': undefined;
|
|
176
|
+
'max-lines-per-function': undefined;
|
|
177
|
+
'max-nested-callbacks': undefined;
|
|
178
|
+
'max-params': undefined;
|
|
179
|
+
'max-statements': undefined;
|
|
180
|
+
'new-cap': ["error", {
|
|
198
181
|
capIsNew: false;
|
|
199
182
|
newIsCap: true;
|
|
200
183
|
properties: true;
|
|
201
184
|
}];
|
|
202
|
-
'
|
|
203
|
-
'
|
|
204
|
-
'
|
|
205
|
-
'
|
|
206
|
-
'
|
|
207
|
-
'
|
|
208
|
-
'
|
|
209
|
-
'
|
|
210
|
-
'
|
|
211
|
-
'
|
|
212
|
-
'
|
|
213
|
-
'
|
|
214
|
-
'
|
|
215
|
-
'
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
'
|
|
219
|
-
'
|
|
220
|
-
'
|
|
221
|
-
'
|
|
222
|
-
'
|
|
223
|
-
'
|
|
224
|
-
'
|
|
225
|
-
'
|
|
226
|
-
'
|
|
227
|
-
'eslint/no-duplicate-case': "error";
|
|
228
|
-
'eslint/no-duplicate-imports': ["error", {
|
|
185
|
+
'no-alert': "error";
|
|
186
|
+
'no-array-constructor': "error";
|
|
187
|
+
'no-async-promise-executor': "error";
|
|
188
|
+
'no-await-in-loop': "error";
|
|
189
|
+
'no-bitwise': undefined;
|
|
190
|
+
'no-caller': "error";
|
|
191
|
+
'no-case-declarations': "error";
|
|
192
|
+
'no-class-assign': "error";
|
|
193
|
+
'no-compare-neg-zero': "error";
|
|
194
|
+
'no-cond-assign': ["error", "always"];
|
|
195
|
+
'no-console': undefined;
|
|
196
|
+
'no-const-assign': "error";
|
|
197
|
+
'no-constant-binary-expression': "error";
|
|
198
|
+
'no-constant-condition': "error";
|
|
199
|
+
'no-constructor-return': "error";
|
|
200
|
+
'no-continue': undefined;
|
|
201
|
+
'no-control-regex': "error";
|
|
202
|
+
'no-debugger': "error";
|
|
203
|
+
'no-delete-var': "error";
|
|
204
|
+
'no-div-regex': "error";
|
|
205
|
+
'no-dupe-class-members': "error";
|
|
206
|
+
'no-dupe-else-if': "error";
|
|
207
|
+
'no-dupe-keys': "error";
|
|
208
|
+
'no-duplicate-case': "error";
|
|
209
|
+
'no-duplicate-imports': ["error", {
|
|
229
210
|
allowSeparateTypeImports: false;
|
|
230
211
|
includeExports: false;
|
|
231
212
|
}];
|
|
232
|
-
'
|
|
213
|
+
'no-else-return': ["error", {
|
|
233
214
|
allowElseIf: false;
|
|
234
215
|
}];
|
|
235
|
-
'
|
|
216
|
+
'no-empty': ["error", {
|
|
236
217
|
allowEmptyCatch: true;
|
|
237
218
|
}];
|
|
238
|
-
'
|
|
239
|
-
'
|
|
240
|
-
'
|
|
241
|
-
'
|
|
242
|
-
'
|
|
243
|
-
'
|
|
244
|
-
'
|
|
245
|
-
'
|
|
246
|
-
'
|
|
247
|
-
'
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
'
|
|
251
|
-
'
|
|
252
|
-
'
|
|
253
|
-
'
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
'
|
|
257
|
-
'
|
|
258
|
-
'
|
|
259
|
-
'
|
|
260
|
-
'
|
|
261
|
-
'
|
|
262
|
-
'
|
|
219
|
+
'no-empty-character-class': "error";
|
|
220
|
+
'no-empty-function': undefined;
|
|
221
|
+
'no-empty-pattern': "error";
|
|
222
|
+
'no-empty-static-block': "error";
|
|
223
|
+
'no-eq-null': undefined;
|
|
224
|
+
'no-eval': "error";
|
|
225
|
+
'no-ex-assign': "error";
|
|
226
|
+
'no-extend-native': "error";
|
|
227
|
+
'no-extra-bind': "error";
|
|
228
|
+
'no-extra-boolean-cast': "error";
|
|
229
|
+
'no-extra-label': "error";
|
|
230
|
+
'no-fallthrough': "error";
|
|
231
|
+
'no-func-assign': "error";
|
|
232
|
+
'no-global-assign': "error";
|
|
233
|
+
'no-implicit-coercion': undefined;
|
|
234
|
+
'no-implicit-globals': ["error", {
|
|
235
|
+
lexicalBindings: true;
|
|
236
|
+
}];
|
|
237
|
+
'no-implied-eval': "error";
|
|
238
|
+
'no-import-assign': "error";
|
|
239
|
+
'no-inline-comments': undefined;
|
|
240
|
+
'no-inner-declarations': undefined;
|
|
241
|
+
'no-invalid-regexp': "error";
|
|
242
|
+
'no-irregular-whitespace': "error";
|
|
243
|
+
'no-iterator': "error";
|
|
244
|
+
'no-label-var': "error";
|
|
245
|
+
'no-labels': ["error", {
|
|
263
246
|
allowLoop: false;
|
|
264
247
|
allowSwitch: false;
|
|
265
248
|
}];
|
|
266
|
-
'
|
|
267
|
-
'
|
|
268
|
-
'
|
|
269
|
-
'
|
|
270
|
-
'
|
|
271
|
-
'
|
|
272
|
-
'
|
|
273
|
-
'
|
|
274
|
-
'
|
|
275
|
-
'
|
|
276
|
-
'
|
|
277
|
-
'
|
|
278
|
-
'
|
|
279
|
-
'
|
|
280
|
-
'
|
|
281
|
-
'
|
|
282
|
-
'
|
|
283
|
-
'
|
|
284
|
-
'
|
|
285
|
-
'
|
|
286
|
-
'
|
|
287
|
-
'
|
|
288
|
-
'
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
'
|
|
249
|
+
'no-lone-blocks': "error";
|
|
250
|
+
'no-lonely-if': "error";
|
|
251
|
+
'no-loop-func': "error";
|
|
252
|
+
'no-loss-of-precision': "error";
|
|
253
|
+
'no-magic-numbers': undefined;
|
|
254
|
+
'no-misleading-character-class': "error";
|
|
255
|
+
'no-multi-assign': "error";
|
|
256
|
+
'no-multi-str': "error";
|
|
257
|
+
'no-negated-condition': "error";
|
|
258
|
+
'no-nested-ternary': undefined;
|
|
259
|
+
'no-new': "error";
|
|
260
|
+
'no-new-func': "error";
|
|
261
|
+
'no-new-native-nonconstructor': "error";
|
|
262
|
+
'no-new-wrappers': "error";
|
|
263
|
+
'no-nonoctal-decimal-escape': "error";
|
|
264
|
+
'no-obj-calls': "error";
|
|
265
|
+
'no-object-constructor': "error";
|
|
266
|
+
'no-param-reassign': undefined;
|
|
267
|
+
'no-plusplus': undefined;
|
|
268
|
+
'no-promise-executor-return': "error";
|
|
269
|
+
'no-proto': "error";
|
|
270
|
+
'no-prototype-builtins': "error";
|
|
271
|
+
'no-redeclare': ["error", {
|
|
272
|
+
builtinGlobals: false;
|
|
273
|
+
}];
|
|
274
|
+
'no-regex-spaces': "error";
|
|
275
|
+
'no-restricted-exports': undefined;
|
|
276
|
+
'no-restricted-globals': ["error", {
|
|
292
277
|
message: string;
|
|
293
278
|
name: string;
|
|
294
279
|
}, {
|
|
295
280
|
message: string;
|
|
296
281
|
name: string;
|
|
297
282
|
}];
|
|
298
|
-
'
|
|
299
|
-
'
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
283
|
+
'no-restricted-imports': undefined;
|
|
284
|
+
'no-restricted-properties': ["error", {
|
|
285
|
+
message: string;
|
|
286
|
+
property: string;
|
|
287
|
+
}, {
|
|
288
|
+
message: string;
|
|
289
|
+
property: string;
|
|
290
|
+
}, {
|
|
291
|
+
message: string;
|
|
292
|
+
property: string;
|
|
293
|
+
}, {
|
|
294
|
+
message: string;
|
|
295
|
+
property: string;
|
|
296
|
+
}, {
|
|
297
|
+
message: string;
|
|
298
|
+
property: string;
|
|
299
|
+
}];
|
|
300
|
+
'no-return-assign': "error";
|
|
301
|
+
'no-script-url': "error";
|
|
302
|
+
'no-self-assign': ["error", {
|
|
303
303
|
props: true;
|
|
304
304
|
}];
|
|
305
|
-
'
|
|
306
|
-
'
|
|
307
|
-
'
|
|
308
|
-
'
|
|
309
|
-
'
|
|
310
|
-
'
|
|
311
|
-
'
|
|
312
|
-
'
|
|
313
|
-
'
|
|
314
|
-
'
|
|
315
|
-
'
|
|
316
|
-
'
|
|
317
|
-
'
|
|
318
|
-
'
|
|
319
|
-
'
|
|
320
|
-
'
|
|
321
|
-
'
|
|
305
|
+
'no-self-compare': "error";
|
|
306
|
+
'no-sequences': "error";
|
|
307
|
+
'no-setter-return': "error";
|
|
308
|
+
'no-shadow': "off";
|
|
309
|
+
'no-shadow-restricted-names': "error";
|
|
310
|
+
'no-sparse-arrays': "error";
|
|
311
|
+
'no-template-curly-in-string': "error";
|
|
312
|
+
'no-ternary': undefined;
|
|
313
|
+
'no-this-before-super': "error";
|
|
314
|
+
'no-throw-literal': "error";
|
|
315
|
+
'no-unassigned-vars': "error";
|
|
316
|
+
'no-undef': "error";
|
|
317
|
+
'no-undefined': undefined;
|
|
318
|
+
'no-underscore-dangle': undefined;
|
|
319
|
+
'no-unexpected-multiline': "error";
|
|
320
|
+
'no-unmodified-loop-condition': "error";
|
|
321
|
+
'no-unneeded-ternary': ["error", {
|
|
322
322
|
defaultAssignment: false;
|
|
323
323
|
}];
|
|
324
|
-
'
|
|
325
|
-
'
|
|
326
|
-
'
|
|
327
|
-
'
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
'eslint/no-unused-expressions': ["error", {
|
|
324
|
+
'no-unreachable': "error";
|
|
325
|
+
'no-unreachable-loop': "error";
|
|
326
|
+
'no-unsafe-finally': "error";
|
|
327
|
+
'no-unsafe-negation': "error";
|
|
328
|
+
'no-unsafe-optional-chaining': "error";
|
|
329
|
+
'no-unused-expressions': ["error", {
|
|
331
330
|
allowShortCircuit: true;
|
|
332
331
|
allowTaggedTemplates: true;
|
|
333
332
|
allowTernary: true;
|
|
334
333
|
}];
|
|
335
|
-
'
|
|
336
|
-
'
|
|
337
|
-
'
|
|
334
|
+
'no-unused-labels': "error";
|
|
335
|
+
'no-unused-private-class-members': "error";
|
|
336
|
+
'no-unused-vars': ["error", {
|
|
338
337
|
args: "none";
|
|
339
338
|
caughtErrors: "none";
|
|
340
339
|
vars: "all";
|
|
@@ -342,71 +341,157 @@ declare const twoDigits: Omit<{
|
|
|
342
341
|
ignoreRestSiblings: true;
|
|
343
342
|
varsIgnorePattern: string;
|
|
344
343
|
}];
|
|
345
|
-
'
|
|
346
|
-
'
|
|
347
|
-
'
|
|
348
|
-
'
|
|
349
|
-
'
|
|
350
|
-
'
|
|
351
|
-
'
|
|
352
|
-
'
|
|
353
|
-
'
|
|
354
|
-
'
|
|
355
|
-
'
|
|
356
|
-
'
|
|
357
|
-
'
|
|
358
|
-
'
|
|
359
|
-
'
|
|
360
|
-
'
|
|
361
|
-
|
|
362
|
-
|
|
344
|
+
'no-use-before-define': undefined;
|
|
345
|
+
'no-useless-assignment': "off";
|
|
346
|
+
'no-useless-backreference': "error";
|
|
347
|
+
'no-useless-call': "error";
|
|
348
|
+
'no-useless-catch': "error";
|
|
349
|
+
'no-useless-computed-key': "error";
|
|
350
|
+
'no-useless-concat': "error";
|
|
351
|
+
'no-useless-constructor': "error";
|
|
352
|
+
'no-useless-escape': "error";
|
|
353
|
+
'no-useless-rename': "error";
|
|
354
|
+
'no-useless-return': "error";
|
|
355
|
+
'no-var': "error";
|
|
356
|
+
'no-void': undefined;
|
|
357
|
+
'no-warning-comments': undefined;
|
|
358
|
+
'no-with': "error";
|
|
359
|
+
'object-shorthand': ["error", "always", {
|
|
360
|
+
avoidQuotes: true;
|
|
361
|
+
ignoreConstructors: false;
|
|
362
|
+
}];
|
|
363
|
+
'one-var': undefined;
|
|
364
|
+
'operator-assignment': ["error", "always"];
|
|
365
|
+
'prefer-arrow-callback': ["error", {
|
|
366
|
+
allowNamedFunctions: true;
|
|
367
|
+
allowUnboundThis: true;
|
|
368
|
+
}];
|
|
369
|
+
'prefer-const': ["error", {
|
|
363
370
|
destructuring: "all";
|
|
364
371
|
ignoreReadBeforeAssign: true;
|
|
365
372
|
}];
|
|
366
|
-
'
|
|
373
|
+
'prefer-destructuring': ["error", {
|
|
367
374
|
array: true;
|
|
368
375
|
object: true;
|
|
369
376
|
}, {
|
|
370
|
-
enforceForRenamedProperties:
|
|
371
|
-
}];
|
|
372
|
-
'
|
|
373
|
-
'
|
|
374
|
-
'
|
|
375
|
-
'
|
|
376
|
-
'
|
|
377
|
-
'
|
|
378
|
-
'
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
'
|
|
382
|
-
'
|
|
383
|
-
'
|
|
384
|
-
'
|
|
385
|
-
'
|
|
386
|
-
'
|
|
387
|
-
'
|
|
388
|
-
'
|
|
389
|
-
'
|
|
390
|
-
'
|
|
391
|
-
'
|
|
377
|
+
enforceForRenamedProperties: true;
|
|
378
|
+
}];
|
|
379
|
+
'prefer-exponentiation-operator': "error";
|
|
380
|
+
'prefer-named-capture-group': undefined;
|
|
381
|
+
'prefer-numeric-literals': "error";
|
|
382
|
+
'prefer-object-has-own': "error";
|
|
383
|
+
'prefer-object-spread': "error";
|
|
384
|
+
'prefer-promise-reject-errors': "error";
|
|
385
|
+
'prefer-regex-literals': ["error", {
|
|
386
|
+
disallowRedundantWrapping: true;
|
|
387
|
+
}];
|
|
388
|
+
'prefer-rest-params': "error";
|
|
389
|
+
'prefer-spread': "error";
|
|
390
|
+
'prefer-template': "error";
|
|
391
|
+
'preserve-caught-error': "error";
|
|
392
|
+
'require-await': undefined;
|
|
393
|
+
'require-unicode-regexp': undefined;
|
|
394
|
+
'require-yield': "error";
|
|
395
|
+
'sort-imports': undefined;
|
|
396
|
+
'sort-keys': undefined;
|
|
397
|
+
'sort-vars': "error";
|
|
398
|
+
'symbol-description': "error";
|
|
399
|
+
'unicode-bom': ["error", "never"];
|
|
400
|
+
'use-isnan': ["error", {
|
|
392
401
|
enforceForIndexOf: true;
|
|
393
402
|
enforceForSwitchCase: true;
|
|
394
403
|
}];
|
|
395
|
-
'
|
|
404
|
+
'valid-typeof': ["error", {
|
|
396
405
|
requireStringLiterals: true;
|
|
397
406
|
}];
|
|
398
|
-
'
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
407
|
+
'vars-on-top': "error";
|
|
408
|
+
complexity: ["error", {
|
|
409
|
+
variant: "modified";
|
|
410
|
+
max: number;
|
|
411
|
+
}];
|
|
412
|
+
curly: "error";
|
|
413
|
+
eqeqeq: ["error", "smart"];
|
|
414
|
+
radix: "error";
|
|
415
|
+
yoda: ["error", "never"];
|
|
416
|
+
};
|
|
417
|
+
} | {
|
|
418
|
+
plugins: "jsdoc"[];
|
|
419
|
+
rules: {
|
|
420
|
+
'jsdoc/check-access': "error";
|
|
421
|
+
'jsdoc/check-property-names': "error";
|
|
422
|
+
'jsdoc/check-tag-names': ["error", {
|
|
423
|
+
typed: true;
|
|
424
|
+
}];
|
|
425
|
+
'jsdoc/empty-tags': "error";
|
|
426
|
+
'jsdoc/implements-on-classes': "error";
|
|
427
|
+
'jsdoc/no-defaults': "error";
|
|
428
|
+
'jsdoc/require-param': "error";
|
|
429
|
+
'jsdoc/require-param-name': "error";
|
|
430
|
+
'jsdoc/require-property': "error";
|
|
431
|
+
'jsdoc/require-property-description': "error";
|
|
432
|
+
'jsdoc/require-property-name': "error";
|
|
433
|
+
'jsdoc/require-returns-description': "error";
|
|
434
|
+
'jsdoc/require-yields': "error";
|
|
435
|
+
'jsdoc/require-param-description': undefined;
|
|
436
|
+
'jsdoc/require-param-type': undefined;
|
|
437
|
+
'jsdoc/require-property-type': undefined;
|
|
438
|
+
'jsdoc/require-returns': undefined;
|
|
439
|
+
'jsdoc/require-returns-type': undefined;
|
|
440
|
+
'jsdoc/require-throws-description': undefined;
|
|
441
|
+
'jsdoc/require-throws-type': undefined;
|
|
442
|
+
'jsdoc/require-yields-description': undefined;
|
|
443
|
+
'jsdoc/require-yields-type': undefined;
|
|
444
|
+
};
|
|
445
|
+
} | {
|
|
446
|
+
plugins: "node"[];
|
|
447
|
+
rules: {
|
|
448
|
+
'node/handle-callback-err': ["error", string];
|
|
449
|
+
'node/no-exports-assign': "error";
|
|
450
|
+
'node/no-new-require': "error";
|
|
451
|
+
'node/no-path-concat': "error";
|
|
452
|
+
'node/callback-return': undefined;
|
|
453
|
+
'node/global-require': undefined;
|
|
454
|
+
'node/no-mixed-requires': undefined;
|
|
455
|
+
'node/no-process-env': undefined;
|
|
456
|
+
'node/no-sync': undefined;
|
|
457
|
+
'node/no-top-level-await': undefined;
|
|
458
|
+
};
|
|
459
|
+
} | {
|
|
460
|
+
plugins: "oxc"[];
|
|
461
|
+
rules: {
|
|
462
|
+
'oxc/approx-constant': "error";
|
|
463
|
+
'oxc/bad-array-method-on-arguments': "error";
|
|
464
|
+
'oxc/bad-bitwise-operator': "error";
|
|
465
|
+
'oxc/bad-char-at-comparison': "error";
|
|
466
|
+
'oxc/bad-comparison-sequence': "error";
|
|
467
|
+
'oxc/bad-match-all-arg': "error";
|
|
468
|
+
'oxc/bad-min-max-func': "error";
|
|
469
|
+
'oxc/bad-object-literal-comparison': "error";
|
|
470
|
+
'oxc/bad-replace-all-arg': "error";
|
|
471
|
+
'oxc/branches-sharing-code': "error";
|
|
472
|
+
'oxc/const-comparisons': "error";
|
|
473
|
+
'oxc/double-comparisons': "error";
|
|
474
|
+
'oxc/erasing-op': "error";
|
|
475
|
+
'oxc/misrefactored-assign-op': "error";
|
|
476
|
+
'oxc/missing-throw': "error";
|
|
477
|
+
'oxc/no-accumulating-spread': "error";
|
|
478
|
+
'oxc/no-async-await': undefined;
|
|
479
|
+
'oxc/no-async-endpoint-handlers': undefined;
|
|
480
|
+
'oxc/no-barrel-file': ["error", {
|
|
481
|
+
threshold: number;
|
|
482
|
+
}];
|
|
483
|
+
'oxc/no-const-enum': "error";
|
|
484
|
+
'oxc/no-map-spread': undefined;
|
|
485
|
+
'oxc/no-optional-chaining': undefined;
|
|
486
|
+
'oxc/no-rest-spread-properties': undefined;
|
|
487
|
+
'oxc/no-this-in-exported-function': "error";
|
|
488
|
+
'oxc/number-arg-out-of-range': "error";
|
|
489
|
+
'oxc/only-used-in-recursion': "error";
|
|
490
|
+
'oxc/uninvoked-array-callback': "error";
|
|
406
491
|
};
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
|
|
492
|
+
} | {
|
|
493
|
+
plugins: "unicorn"[];
|
|
494
|
+
rules: {
|
|
410
495
|
'unicorn/catch-error-name': "error";
|
|
411
496
|
'unicorn/consistent-assert': "error";
|
|
412
497
|
'unicorn/consistent-date-clone': "error";
|
|
@@ -415,16 +500,20 @@ declare const twoDigits: Omit<{
|
|
|
415
500
|
'unicorn/consistent-function-scoping': "error";
|
|
416
501
|
'unicorn/consistent-template-literal-escape': "error";
|
|
417
502
|
'unicorn/custom-error-definition': undefined;
|
|
418
|
-
'unicorn/empty-brace-spaces':
|
|
503
|
+
'unicorn/empty-brace-spaces': "error";
|
|
419
504
|
'unicorn/error-message': "error";
|
|
420
505
|
'unicorn/escape-case': "error";
|
|
421
506
|
'unicorn/explicit-length-check': "error";
|
|
507
|
+
'unicorn/explicit-timer-delay': "error";
|
|
422
508
|
'unicorn/filename-case': undefined;
|
|
509
|
+
'unicorn/import-style': "error";
|
|
510
|
+
'unicorn/max-nested-calls': undefined;
|
|
423
511
|
'unicorn/new-for-builtins': "error";
|
|
424
512
|
'unicorn/no-abusive-eslint-disable': "error";
|
|
425
513
|
'unicorn/no-accessor-recursion': "error";
|
|
426
514
|
'unicorn/no-anonymous-default-export': "error";
|
|
427
515
|
'unicorn/no-array-callback-reference': undefined;
|
|
516
|
+
'unicorn/no-array-fill-with-reference-type': "error";
|
|
428
517
|
'unicorn/no-array-for-each': "error";
|
|
429
518
|
'unicorn/no-array-method-this-argument': "error";
|
|
430
519
|
'unicorn/no-array-reduce': "error";
|
|
@@ -432,6 +521,7 @@ declare const twoDigits: Omit<{
|
|
|
432
521
|
'unicorn/no-array-sort': "error";
|
|
433
522
|
'unicorn/no-await-expression-member': "error";
|
|
434
523
|
'unicorn/no-await-in-promise-methods': "error";
|
|
524
|
+
'unicorn/no-confusing-array-with': "error";
|
|
435
525
|
'unicorn/no-console-spaces': "error";
|
|
436
526
|
'unicorn/no-document-cookie': "error";
|
|
437
527
|
'unicorn/no-empty-file': "error";
|
|
@@ -484,9 +574,7 @@ declare const twoDigits: Omit<{
|
|
|
484
574
|
'unicorn/prefer-array-flat-map': "error";
|
|
485
575
|
'unicorn/prefer-array-index-of': "error";
|
|
486
576
|
'unicorn/prefer-array-some': "error";
|
|
487
|
-
'unicorn/prefer-at':
|
|
488
|
-
checkAllIndexAccess: false;
|
|
489
|
-
}];
|
|
577
|
+
'unicorn/prefer-at': "error";
|
|
490
578
|
'unicorn/prefer-bigint-literals': "error";
|
|
491
579
|
'unicorn/prefer-blob-reading-methods': "error";
|
|
492
580
|
'unicorn/prefer-class-fields': "error";
|
|
@@ -499,6 +587,7 @@ declare const twoDigits: Omit<{
|
|
|
499
587
|
'unicorn/prefer-dom-node-remove': "error";
|
|
500
588
|
'unicorn/prefer-dom-node-text-content': "error";
|
|
501
589
|
'unicorn/prefer-event-target': "error";
|
|
590
|
+
'unicorn/prefer-export-from': "error";
|
|
502
591
|
'unicorn/prefer-global-this': "error";
|
|
503
592
|
'unicorn/prefer-import-meta-properties': undefined;
|
|
504
593
|
'unicorn/prefer-includes': "error";
|
|
@@ -512,10 +601,9 @@ declare const twoDigits: Omit<{
|
|
|
512
601
|
'unicorn/prefer-native-coercion-functions': "error";
|
|
513
602
|
'unicorn/prefer-negative-index': "error";
|
|
514
603
|
'unicorn/prefer-node-protocol': "error";
|
|
604
|
+
'unicorn/prefer-number-coercion': undefined;
|
|
515
605
|
'unicorn/prefer-number-properties': "error";
|
|
516
|
-
'unicorn/prefer-object-from-entries':
|
|
517
|
-
functions: never[];
|
|
518
|
-
}];
|
|
606
|
+
'unicorn/prefer-object-from-entries': "error";
|
|
519
607
|
'unicorn/prefer-optional-catch-binding': "error";
|
|
520
608
|
'unicorn/prefer-prototype-methods': "error";
|
|
521
609
|
'unicorn/prefer-query-selector': "error";
|
|
@@ -524,15 +612,14 @@ declare const twoDigits: Omit<{
|
|
|
524
612
|
'unicorn/prefer-response-static-json': "error";
|
|
525
613
|
'unicorn/prefer-set-has': "error";
|
|
526
614
|
'unicorn/prefer-set-size': "error";
|
|
615
|
+
'unicorn/prefer-single-call': "error";
|
|
527
616
|
'unicorn/prefer-spread': "error";
|
|
528
617
|
'unicorn/prefer-string-raw': "error";
|
|
529
618
|
'unicorn/prefer-string-replace-all': "error";
|
|
530
619
|
'unicorn/prefer-string-slice': "error";
|
|
531
620
|
'unicorn/prefer-string-starts-ends-with': "error";
|
|
532
621
|
'unicorn/prefer-string-trim-start-end': "error";
|
|
533
|
-
'unicorn/prefer-structured-clone':
|
|
534
|
-
functions: never[];
|
|
535
|
-
}];
|
|
622
|
+
'unicorn/prefer-structured-clone': "error";
|
|
536
623
|
'unicorn/prefer-ternary': ["error", "only-single-line"];
|
|
537
624
|
'unicorn/prefer-top-level-await': undefined;
|
|
538
625
|
'unicorn/prefer-type-error': "error";
|
|
@@ -542,136 +629,17 @@ declare const twoDigits: Omit<{
|
|
|
542
629
|
'unicorn/require-module-specifiers': "error";
|
|
543
630
|
'unicorn/require-number-to-fixed-digits-argument': "error";
|
|
544
631
|
'unicorn/require-post-message-target-origin': undefined;
|
|
545
|
-
'unicorn/switch-case-braces':
|
|
632
|
+
'unicorn/switch-case-braces': "error";
|
|
546
633
|
'unicorn/switch-case-break-position': "error";
|
|
547
634
|
'unicorn/text-encoding-identifier-case': "error";
|
|
548
635
|
'unicorn/throw-new-error': "off";
|
|
549
|
-
'unicorn/import-style': undefined;
|
|
550
|
-
'unicorn/max-nested-calls': undefined;
|
|
551
|
-
'unicorn/no-array-fill-with-reference-type': undefined;
|
|
552
|
-
'unicorn/prefer-export-from': undefined;
|
|
553
|
-
'unicorn/prefer-number-coercion': undefined;
|
|
554
|
-
'unicorn/prefer-single-call': undefined;
|
|
555
|
-
'unicorn/explicit-timer-delay': undefined;
|
|
556
|
-
'unicorn/no-confusing-array-with': undefined;
|
|
557
|
-
};
|
|
558
|
-
}, {
|
|
559
|
-
readonly plugins: ["import"];
|
|
560
|
-
readonly rules: {
|
|
561
|
-
'import/consistent-type-specifier-style': undefined;
|
|
562
|
-
'import/default': "error";
|
|
563
|
-
'import/export': "error";
|
|
564
|
-
'import/exports-last': undefined;
|
|
565
|
-
'import/extensions': undefined;
|
|
566
|
-
'import/first': ["error", "disable-absolute-first"];
|
|
567
|
-
'import/group-exports': undefined;
|
|
568
|
-
'import/max-dependencies': undefined;
|
|
569
|
-
'import/named': undefined;
|
|
570
|
-
'import/namespace': "error";
|
|
571
|
-
'import/no-absolute-path': "error";
|
|
572
|
-
'import/no-amd': "error";
|
|
573
|
-
'import/no-anonymous-default-export': "error";
|
|
574
|
-
'import/no-commonjs': undefined;
|
|
575
|
-
'import/no-cycle': "error";
|
|
576
|
-
'import/no-default-export': undefined;
|
|
577
|
-
'import/no-duplicates': "error";
|
|
578
|
-
'import/no-dynamic-require': "error";
|
|
579
|
-
'import/no-empty-named-blocks': "error";
|
|
580
|
-
'import/no-mutable-exports': undefined;
|
|
581
|
-
'import/no-named-as-default': "error";
|
|
582
|
-
'import/no-named-as-default-member': "error";
|
|
583
|
-
'import/no-named-default': "error";
|
|
584
|
-
'import/no-named-export': undefined;
|
|
585
|
-
'import/no-namespace': undefined;
|
|
586
|
-
'import/no-nodejs-modules': undefined;
|
|
587
|
-
'import/no-relative-parent-imports': undefined;
|
|
588
|
-
'import/no-self-import': "error";
|
|
589
|
-
'import/no-unassigned-import': undefined;
|
|
590
|
-
'import/no-webpack-loader-syntax': "error";
|
|
591
|
-
'import/prefer-default-export': undefined;
|
|
592
|
-
'import/unambiguous': undefined;
|
|
593
|
-
'import/newline-after-import': undefined;
|
|
594
|
-
};
|
|
595
|
-
}, {
|
|
596
|
-
readonly plugins: ["node"];
|
|
597
|
-
readonly rules: {
|
|
598
|
-
'node/handle-callback-err': "error";
|
|
599
|
-
'node/no-exports-assign': "error";
|
|
600
|
-
'node/no-new-require': "error";
|
|
601
|
-
'node/no-path-concat': "error";
|
|
602
|
-
'node/callback-return': undefined;
|
|
603
|
-
'node/global-require': undefined;
|
|
604
|
-
'node/no-mixed-requires': undefined;
|
|
605
|
-
'node/no-process-env': undefined;
|
|
606
|
-
'node/no-sync': undefined;
|
|
607
|
-
'node/no-top-level-await': undefined;
|
|
608
|
-
};
|
|
609
|
-
}, {
|
|
610
|
-
readonly plugins: ["oxc"];
|
|
611
|
-
readonly rules: {
|
|
612
|
-
'oxc/approx-constant': "error";
|
|
613
|
-
'oxc/bad-array-method-on-arguments': "error";
|
|
614
|
-
'oxc/bad-bitwise-operator': "error";
|
|
615
|
-
'oxc/bad-char-at-comparison': "error";
|
|
616
|
-
'oxc/bad-comparison-sequence': "error";
|
|
617
|
-
'oxc/bad-min-max-func': "error";
|
|
618
|
-
'oxc/bad-object-literal-comparison': "error";
|
|
619
|
-
'oxc/bad-replace-all-arg': "error";
|
|
620
|
-
'oxc/branches-sharing-code': "error";
|
|
621
|
-
'oxc/const-comparisons': "error";
|
|
622
|
-
'oxc/double-comparisons': "error";
|
|
623
|
-
'oxc/erasing-op': "error";
|
|
624
|
-
'oxc/misrefactored-assign-op': "error";
|
|
625
|
-
'oxc/missing-throw': "error";
|
|
626
|
-
'oxc/no-accumulating-spread': "error";
|
|
627
|
-
'oxc/no-async-await': undefined;
|
|
628
|
-
'oxc/no-async-endpoint-handlers': undefined;
|
|
629
|
-
'oxc/no-barrel-file': ["error", {
|
|
630
|
-
threshold: number;
|
|
631
|
-
}];
|
|
632
|
-
'oxc/no-const-enum': "error";
|
|
633
|
-
'oxc/no-map-spread': undefined;
|
|
634
|
-
'oxc/no-optional-chaining': undefined;
|
|
635
|
-
'oxc/no-rest-spread-properties': undefined;
|
|
636
|
-
'oxc/no-this-in-exported-function': "error";
|
|
637
|
-
'oxc/number-arg-out-of-range': "error";
|
|
638
|
-
'oxc/only-used-in-recursion': "error";
|
|
639
|
-
'oxc/uninvoked-array-callback': "error";
|
|
640
|
-
};
|
|
641
|
-
}, {
|
|
642
|
-
readonly plugins: ["jsdoc"];
|
|
643
|
-
readonly rules: {
|
|
644
|
-
'jsdoc/check-access': "error";
|
|
645
|
-
'jsdoc/check-property-names': "error";
|
|
646
|
-
'jsdoc/check-tag-names': ["error", {
|
|
647
|
-
typed: true;
|
|
648
|
-
}];
|
|
649
|
-
'jsdoc/empty-tags': "error";
|
|
650
|
-
'jsdoc/implements-on-classes': "error";
|
|
651
|
-
'jsdoc/no-defaults': "error";
|
|
652
|
-
'jsdoc/require-param': "error";
|
|
653
|
-
'jsdoc/require-param-name': "error";
|
|
654
|
-
'jsdoc/require-property': "error";
|
|
655
|
-
'jsdoc/require-property-description': "error";
|
|
656
|
-
'jsdoc/require-property-name': "error";
|
|
657
|
-
'jsdoc/require-returns-description': "error";
|
|
658
|
-
'jsdoc/require-yields': "error";
|
|
659
|
-
'jsdoc/require-param-description': undefined;
|
|
660
|
-
'jsdoc/require-param-type': undefined;
|
|
661
|
-
'jsdoc/require-property-type': undefined;
|
|
662
|
-
'jsdoc/require-returns': undefined;
|
|
663
|
-
'jsdoc/require-returns-type': undefined;
|
|
664
|
-
'jsdoc/require-throws-description': undefined;
|
|
665
|
-
'jsdoc/require-throws-type': undefined;
|
|
666
|
-
'jsdoc/require-yields-description': undefined;
|
|
667
|
-
'jsdoc/require-yields-type': undefined;
|
|
668
636
|
};
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
}];
|
|
674
|
-
|
|
637
|
+
} | {
|
|
638
|
+
jsPlugins: {
|
|
639
|
+
name: string;
|
|
640
|
+
specifier: string;
|
|
641
|
+
}[];
|
|
642
|
+
rules: {
|
|
675
643
|
'zod/array-style': ["error", {
|
|
676
644
|
style: "function";
|
|
677
645
|
}];
|
|
@@ -729,28 +697,162 @@ declare const twoDigits: Omit<{
|
|
|
729
697
|
'zod/no-unknown-schema': undefined;
|
|
730
698
|
'zod/require-error-message': undefined;
|
|
731
699
|
};
|
|
732
|
-
}];
|
|
733
|
-
|
|
700
|
+
})[];
|
|
701
|
+
ignorePatterns: string[];
|
|
734
702
|
}, "categories" | "extends" | "ignorePatterns" | "options"> & Omit<{
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
703
|
+
options: {
|
|
704
|
+
denyWarnings: true;
|
|
705
|
+
reportUnusedDisableDirectives: "deny";
|
|
738
706
|
};
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
707
|
+
categories: {
|
|
708
|
+
nursery: "off";
|
|
709
|
+
pedantic: "off";
|
|
710
|
+
correctness: "off";
|
|
711
|
+
perf: "off";
|
|
712
|
+
style: "off";
|
|
713
|
+
restriction: "off";
|
|
714
|
+
suspicious: "off";
|
|
747
715
|
};
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
716
|
+
extends: ({
|
|
717
|
+
overrides: ({
|
|
718
|
+
files: "**/*.d.ts"[];
|
|
719
|
+
rules: {
|
|
720
|
+
'no-duplicate-imports': "off";
|
|
721
|
+
'no-undef': "off";
|
|
722
|
+
'no-unused-vars': "off";
|
|
723
|
+
'import/unambiguous': "off";
|
|
724
|
+
'no-unused-expressions'?: undefined;
|
|
725
|
+
'typescript/no-import-type-side-effects'?: undefined;
|
|
726
|
+
};
|
|
727
|
+
globals?: undefined;
|
|
728
|
+
} | {
|
|
729
|
+
files: "**/*.{test,spec}.ts?(x)"[];
|
|
730
|
+
globals: {
|
|
731
|
+
afterAll: "readonly";
|
|
732
|
+
afterEach: "readonly";
|
|
733
|
+
beforeAll: "readonly";
|
|
734
|
+
beforeEach: "readonly";
|
|
735
|
+
bench: "readonly";
|
|
736
|
+
describe: "readonly";
|
|
737
|
+
expect: "readonly";
|
|
738
|
+
expectTypeOf: "readonly";
|
|
739
|
+
it: "readonly";
|
|
740
|
+
suite: "readonly";
|
|
741
|
+
test: "readonly";
|
|
742
|
+
vi: "readonly";
|
|
743
|
+
};
|
|
744
|
+
rules: {
|
|
745
|
+
'no-duplicate-imports'?: undefined;
|
|
746
|
+
'no-undef'?: undefined;
|
|
747
|
+
'no-unused-vars'?: undefined;
|
|
748
|
+
'import/unambiguous'?: undefined;
|
|
749
|
+
'no-unused-expressions': "off";
|
|
750
|
+
'typescript/no-import-type-side-effects'?: undefined;
|
|
751
|
+
};
|
|
752
|
+
} | {
|
|
753
|
+
globals?: undefined;
|
|
754
|
+
files: ("**/*.cjs" | "**/*.cts" | "**/*.js")[];
|
|
755
|
+
rules: {
|
|
756
|
+
'no-duplicate-imports'?: undefined;
|
|
757
|
+
'no-undef'?: undefined;
|
|
758
|
+
'no-unused-vars'?: undefined;
|
|
759
|
+
'import/unambiguous'?: undefined;
|
|
760
|
+
'no-unused-expressions'?: undefined;
|
|
761
|
+
'typescript/no-import-type-side-effects': "off";
|
|
762
|
+
};
|
|
763
|
+
})[];
|
|
764
|
+
} | {
|
|
765
|
+
options: {
|
|
766
|
+
typeAware: true;
|
|
767
|
+
};
|
|
768
|
+
plugins: ("react" | "react-perf")[];
|
|
769
|
+
jsPlugins: {
|
|
770
|
+
name: string;
|
|
771
|
+
specifier: string;
|
|
772
|
+
}[];
|
|
773
|
+
rules: {
|
|
774
|
+
'react/button-has-type': "error";
|
|
775
|
+
'react/exhaustive-deps': "error";
|
|
776
|
+
'react/function-component-definition': ["error", {
|
|
777
|
+
namedComponents: "function-declaration";
|
|
778
|
+
}];
|
|
779
|
+
'react/iframe-missing-sandbox': "error";
|
|
780
|
+
'react/jsx-key': "error";
|
|
781
|
+
'react/jsx-no-comment-textnodes': "warn";
|
|
782
|
+
'react/jsx-no-constructed-context-values': "error";
|
|
783
|
+
'react/jsx-no-script-url': "warn";
|
|
784
|
+
'react/jsx-no-target-blank': "error";
|
|
785
|
+
'react/jsx-no-useless-fragment': "off";
|
|
786
|
+
'react/no-array-index-key': "warn";
|
|
787
|
+
'react/no-children-prop': "error";
|
|
788
|
+
'react/no-clone-element': "warn";
|
|
789
|
+
'react/no-danger': "warn";
|
|
790
|
+
'react/no-danger-with-children': "error";
|
|
791
|
+
'react/no-did-mount-set-state': "warn";
|
|
792
|
+
'react/no-direct-mutation-state': "error";
|
|
793
|
+
'react/no-find-dom-node': "error";
|
|
794
|
+
'react/no-namespace': "error";
|
|
795
|
+
'react/no-redundant-should-component-update': "error";
|
|
796
|
+
'react/no-render-return-value': "error";
|
|
797
|
+
'react/no-unsafe': "warn";
|
|
798
|
+
'react/no-will-update-set-state': "warn";
|
|
799
|
+
'react/rules-of-hooks': "error";
|
|
800
|
+
'react/self-closing-comp': "error";
|
|
801
|
+
'react/void-dom-elements-no-children': "error";
|
|
802
|
+
'react-perf/jsx-no-jsx-as-prop': "error";
|
|
803
|
+
'react-compiler/react-compiler': "error";
|
|
804
|
+
'stylistic/jsx-curly-newline': "off";
|
|
805
|
+
'stylistic/jsx-newline': ["error", {
|
|
806
|
+
prevent: false;
|
|
807
|
+
}];
|
|
808
|
+
'react/checked-requires-onchange-or-readonly': undefined;
|
|
809
|
+
'react/display-name': "off";
|
|
810
|
+
'react/forbid-component-props': undefined;
|
|
811
|
+
'react/forbid-dom-props': undefined;
|
|
812
|
+
'react/forbid-elements': undefined;
|
|
813
|
+
'react/forward-ref-uses-ref': "off";
|
|
814
|
+
'react/hook-use-state': "error";
|
|
815
|
+
'react/jsx-boolean-value': "off";
|
|
816
|
+
'react/jsx-curly-brace-presence': undefined;
|
|
817
|
+
'react/jsx-filename-extension': "off";
|
|
818
|
+
'react/jsx-fragments': "off";
|
|
819
|
+
'react/jsx-handler-names': undefined;
|
|
820
|
+
'react/jsx-max-depth': undefined;
|
|
821
|
+
'react/jsx-no-duplicate-props': undefined;
|
|
822
|
+
'react/jsx-no-literals': undefined;
|
|
823
|
+
'react/jsx-no-undef': undefined;
|
|
824
|
+
'react/jsx-pascal-case': "off";
|
|
825
|
+
'react/jsx-props-no-spread-multi': undefined;
|
|
826
|
+
'react/jsx-props-no-spreading': undefined;
|
|
827
|
+
'react/no-did-update-set-state': "off";
|
|
828
|
+
'react/no-is-mounted': undefined;
|
|
829
|
+
'react/no-multi-comp': undefined;
|
|
830
|
+
'react/no-object-type-as-default-prop': "off";
|
|
831
|
+
'react/no-react-children': undefined;
|
|
832
|
+
'react/no-set-state': undefined;
|
|
833
|
+
'react/no-string-refs': "off";
|
|
834
|
+
'react/no-this-in-sfc': undefined;
|
|
835
|
+
'react/no-unescaped-entities': undefined;
|
|
836
|
+
'react/no-unknown-property': "off";
|
|
837
|
+
'react/no-unstable-nested-components': "off";
|
|
838
|
+
'react/only-export-components': undefined;
|
|
839
|
+
'react/prefer-es6-class': undefined;
|
|
840
|
+
'react/prefer-function-component': undefined;
|
|
841
|
+
'react/react-compiler': undefined;
|
|
842
|
+
'react/react-in-jsx-scope': undefined;
|
|
843
|
+
'react/require-render-return': undefined;
|
|
844
|
+
'react/state-in-constructor': undefined;
|
|
845
|
+
'react/style-prop-object': undefined;
|
|
846
|
+
'react-perf/jsx-no-new-array-as-prop': undefined;
|
|
847
|
+
'react-perf/jsx-no-new-function-as-prop': undefined;
|
|
848
|
+
'react-perf/jsx-no-new-object-as-prop': undefined;
|
|
849
|
+
};
|
|
850
|
+
} | {
|
|
851
|
+
plugins: "typescript"[];
|
|
852
|
+
options: {
|
|
853
|
+
typeAware: true;
|
|
752
854
|
};
|
|
753
|
-
|
|
855
|
+
rules: {
|
|
754
856
|
'typescript/adjacent-overload-signatures': "error";
|
|
755
857
|
'typescript/array-type': ["error", {
|
|
756
858
|
default: "generic";
|
|
@@ -761,16 +863,16 @@ declare const twoDigits: Omit<{
|
|
|
761
863
|
'ts-ignore': "allow-with-description";
|
|
762
864
|
}];
|
|
763
865
|
'typescript/ban-tslint-comment': "error";
|
|
866
|
+
'typescript/ban-types': undefined;
|
|
764
867
|
'typescript/class-literal-property-style': "error";
|
|
765
868
|
'typescript/consistent-generic-constructors': ["error", "constructor"];
|
|
766
869
|
'typescript/consistent-indexed-object-style': ["error", "record"];
|
|
870
|
+
'typescript/consistent-return': "off";
|
|
767
871
|
'typescript/consistent-type-assertions': ["error", {
|
|
768
872
|
assertionStyle: "as";
|
|
769
873
|
}];
|
|
770
874
|
'typescript/consistent-type-definitions': ["error", "interface"];
|
|
771
|
-
'typescript/consistent-type-exports': ["error"
|
|
772
|
-
fixMixedExportsWithInlineTypeSpecifier: true;
|
|
773
|
-
}];
|
|
875
|
+
'typescript/consistent-type-exports': ["error"];
|
|
774
876
|
'typescript/consistent-type-imports': ["error", {
|
|
775
877
|
fixStyle: "inline-type-imports";
|
|
776
878
|
prefer: "type-imports";
|
|
@@ -779,13 +881,14 @@ declare const twoDigits: Omit<{
|
|
|
779
881
|
'typescript/dot-notation': ["error", {
|
|
780
882
|
allowKeywords: true;
|
|
781
883
|
}];
|
|
884
|
+
'typescript/explicit-function-return-type': undefined;
|
|
885
|
+
'typescript/explicit-member-accessibility': undefined;
|
|
886
|
+
'typescript/explicit-module-boundary-types': undefined;
|
|
887
|
+
'typescript/method-signature-style': ["error", "property"];
|
|
782
888
|
'typescript/no-array-delete': "error";
|
|
783
889
|
'typescript/no-base-to-string': "error";
|
|
784
890
|
'typescript/no-confusing-non-null-assertion': "error";
|
|
785
|
-
'typescript/no-confusing-void-expression':
|
|
786
|
-
ignoreArrowShorthand: true;
|
|
787
|
-
ignoreVoidOperator: true;
|
|
788
|
-
}];
|
|
891
|
+
'typescript/no-confusing-void-expression': "off";
|
|
789
892
|
'typescript/no-deprecated': "error";
|
|
790
893
|
'typescript/no-duplicate-enum-values': "error";
|
|
791
894
|
'typescript/no-duplicate-type-constituents': "error";
|
|
@@ -797,45 +900,35 @@ declare const twoDigits: Omit<{
|
|
|
797
900
|
allowInterfaces: "with-single-extends";
|
|
798
901
|
allowObjectTypes: "never";
|
|
799
902
|
}];
|
|
800
|
-
'typescript/no-explicit-any': ["error"
|
|
801
|
-
fixToUnknown: true;
|
|
802
|
-
ignoreRestArgs: true;
|
|
803
|
-
}];
|
|
903
|
+
'typescript/no-explicit-any': ["error"];
|
|
804
904
|
'typescript/no-extra-non-null-assertion': "error";
|
|
805
|
-
'typescript/no-extraneous-class':
|
|
806
|
-
allowStaticOnly: true;
|
|
807
|
-
}];
|
|
905
|
+
'typescript/no-extraneous-class': "error";
|
|
808
906
|
'typescript/no-floating-promises': "error";
|
|
809
907
|
'typescript/no-for-in-array': "error";
|
|
810
908
|
'typescript/no-implied-eval': "error";
|
|
811
|
-
'typescript/no-import-type-side-effects': "error";
|
|
909
|
+
'typescript/no-import-type-side-effects': ["error"];
|
|
812
910
|
'typescript/no-inferrable-types': "error";
|
|
813
911
|
'typescript/no-invalid-void-type': "error";
|
|
814
912
|
'typescript/no-meaningless-void-operator': "error";
|
|
815
913
|
'typescript/no-misused-new': "error";
|
|
816
|
-
'typescript/no-misused-promises':
|
|
817
|
-
checksVoidReturn: boolean;
|
|
818
|
-
}];
|
|
914
|
+
'typescript/no-misused-promises': "off";
|
|
819
915
|
'typescript/no-misused-spread': "error";
|
|
820
916
|
'typescript/no-mixed-enums': "error";
|
|
821
|
-
'typescript/no-namespace':
|
|
822
|
-
allowDefinitionFiles: true;
|
|
823
|
-
}];
|
|
917
|
+
'typescript/no-namespace': "error";
|
|
824
918
|
'typescript/no-non-null-asserted-nullish-coalescing': "error";
|
|
825
919
|
'typescript/no-non-null-asserted-optional-chain': "error";
|
|
826
920
|
'typescript/no-non-null-assertion': "error";
|
|
827
921
|
'typescript/no-redundant-type-constituents': "error";
|
|
828
922
|
'typescript/no-require-imports': "error";
|
|
923
|
+
'typescript/no-restricted-types': undefined;
|
|
829
924
|
'typescript/no-this-alias': "error";
|
|
830
925
|
'typescript/no-unnecessary-boolean-literal-compare': "error";
|
|
831
|
-
'typescript/no-unnecessary-condition':
|
|
832
|
-
allowConstantLoopConditions: string;
|
|
833
|
-
}];
|
|
926
|
+
'typescript/no-unnecessary-condition': "error";
|
|
834
927
|
'typescript/no-unnecessary-parameter-property-assignment': "error";
|
|
835
928
|
'typescript/no-unnecessary-qualifier': "error";
|
|
836
929
|
'typescript/no-unnecessary-template-expression': "error";
|
|
837
930
|
'typescript/no-unnecessary-type-arguments': "error";
|
|
838
|
-
'typescript/no-unnecessary-type-assertion': "
|
|
931
|
+
'typescript/no-unnecessary-type-assertion': "off";
|
|
839
932
|
'typescript/no-unnecessary-type-constraint': "error";
|
|
840
933
|
'typescript/no-unnecessary-type-conversion': "error";
|
|
841
934
|
'typescript/no-unnecessary-type-parameters': "error";
|
|
@@ -847,6 +940,7 @@ declare const twoDigits: Omit<{
|
|
|
847
940
|
'typescript/no-unsafe-function-type': "error";
|
|
848
941
|
'typescript/no-unsafe-member-access': "error";
|
|
849
942
|
'typescript/no-unsafe-return': "error";
|
|
943
|
+
'typescript/no-unsafe-type-assertion': "off";
|
|
850
944
|
'typescript/no-unsafe-unary-minus': "error";
|
|
851
945
|
'typescript/no-useless-default-assignment': "error";
|
|
852
946
|
'typescript/no-useless-empty-export': "error";
|
|
@@ -869,45 +963,43 @@ declare const twoDigits: Omit<{
|
|
|
869
963
|
'typescript/prefer-optional-chain': "error";
|
|
870
964
|
'typescript/prefer-promise-reject-errors': "error";
|
|
871
965
|
'typescript/prefer-readonly': "error";
|
|
966
|
+
'typescript/prefer-readonly-parameter-types': "off";
|
|
872
967
|
'typescript/prefer-reduce-type-parameter': "error";
|
|
873
968
|
'typescript/prefer-regexp-exec': "error";
|
|
874
969
|
'typescript/prefer-return-this-type': "error";
|
|
875
970
|
'typescript/prefer-string-starts-ends-with': "error";
|
|
971
|
+
'typescript/prefer-ts-expect-error': undefined;
|
|
972
|
+
'typescript/promise-function-async': undefined;
|
|
876
973
|
'typescript/related-getter-setter-pairs': "error";
|
|
877
974
|
'typescript/require-array-sort-compare': "error";
|
|
878
975
|
'typescript/require-await': "error";
|
|
879
|
-
'typescript/restrict-plus-operands': "error"
|
|
976
|
+
'typescript/restrict-plus-operands': ["error", {
|
|
977
|
+
allowAny: false;
|
|
978
|
+
allowBoolean: false;
|
|
979
|
+
allowNullish: false;
|
|
980
|
+
allowNumberAndString: false;
|
|
981
|
+
allowRegExp: false;
|
|
982
|
+
}];
|
|
880
983
|
'typescript/restrict-template-expressions': ["error", {
|
|
881
984
|
allowNumber: true;
|
|
882
985
|
}];
|
|
883
986
|
'typescript/return-await': ["error", "error-handling-correctness-only"];
|
|
987
|
+
'typescript/strict-boolean-expressions': undefined;
|
|
988
|
+
'typescript/strict-void-return': "off";
|
|
989
|
+
'typescript/switch-exhaustiveness-check': "off";
|
|
884
990
|
'typescript/triple-slash-reference': "error";
|
|
991
|
+
'typescript/unbound-method': "off";
|
|
885
992
|
'typescript/unified-signatures': "error";
|
|
886
993
|
'typescript/use-unknown-in-catch-callback-variable': "error";
|
|
887
|
-
'typescript/ban-types': undefined;
|
|
888
|
-
'typescript/consistent-return': undefined;
|
|
889
|
-
'typescript/explicit-function-return-type': undefined;
|
|
890
|
-
'typescript/explicit-member-accessibility': undefined;
|
|
891
|
-
'typescript/explicit-module-boundary-types': undefined;
|
|
892
|
-
'typescript/method-signature-style': undefined;
|
|
893
|
-
'typescript/no-restricted-types': undefined;
|
|
894
|
-
'typescript/no-unsafe-type-assertion': undefined;
|
|
895
|
-
'typescript/prefer-readonly-parameter-types': undefined;
|
|
896
|
-
'typescript/prefer-ts-expect-error': undefined;
|
|
897
|
-
'typescript/promise-function-async': undefined;
|
|
898
|
-
'typescript/strict-boolean-expressions': undefined;
|
|
899
|
-
'typescript/strict-void-return': undefined;
|
|
900
|
-
'typescript/switch-exhaustiveness-check': undefined;
|
|
901
|
-
'typescript/unbound-method': "off";
|
|
902
994
|
};
|
|
903
|
-
}
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
995
|
+
} | {
|
|
996
|
+
plugins: "vitest"[];
|
|
997
|
+
settings: {
|
|
998
|
+
vitest: {
|
|
999
|
+
typecheck: true;
|
|
908
1000
|
};
|
|
909
1001
|
};
|
|
910
|
-
|
|
1002
|
+
rules: {
|
|
911
1003
|
'vitest/consistent-each-for': ["error", {
|
|
912
1004
|
describe: "for";
|
|
913
1005
|
suite: "for";
|
|
@@ -918,7 +1010,10 @@ declare const twoDigits: Omit<{
|
|
|
918
1010
|
pattern: string;
|
|
919
1011
|
allTestPattern: string;
|
|
920
1012
|
}];
|
|
921
|
-
'vitest/consistent-test-it': "error"
|
|
1013
|
+
'vitest/consistent-test-it': ["error", {
|
|
1014
|
+
fn: "it";
|
|
1015
|
+
withinDescribe: "it";
|
|
1016
|
+
}];
|
|
922
1017
|
'vitest/consistent-vitest-vi': ["error", {
|
|
923
1018
|
fn: "vi";
|
|
924
1019
|
}];
|
|
@@ -970,7 +1065,7 @@ declare const twoDigits: Omit<{
|
|
|
970
1065
|
'vitest/prefer-lowercase-title': "error";
|
|
971
1066
|
'vitest/prefer-mock-promise-shorthand': "error";
|
|
972
1067
|
'vitest/prefer-mock-return-shorthand': "error";
|
|
973
|
-
'vitest/prefer-snapshot-hint': ["error",
|
|
1068
|
+
'vitest/prefer-snapshot-hint': ["error", "always"];
|
|
974
1069
|
'vitest/prefer-spy-on': "error";
|
|
975
1070
|
'vitest/prefer-strict-boolean-matchers': undefined;
|
|
976
1071
|
'vitest/prefer-strict-equal': "error";
|
|
@@ -992,149 +1087,28 @@ declare const twoDigits: Omit<{
|
|
|
992
1087
|
'vitest/valid-describe-callback': "error";
|
|
993
1088
|
'vitest/valid-expect': "error";
|
|
994
1089
|
'vitest/valid-expect-in-promise': "error";
|
|
995
|
-
'vitest/valid-title':
|
|
1090
|
+
'vitest/valid-title': ["error", {
|
|
1091
|
+
ignoreTypeOfDescribeName: boolean;
|
|
1092
|
+
}];
|
|
996
1093
|
'vitest/warn-todo': "error";
|
|
997
1094
|
'vitest/padding-around-after-all-blocks': undefined;
|
|
998
1095
|
'vitest/padding-around-test-blocks': undefined;
|
|
999
1096
|
};
|
|
1000
|
-
}
|
|
1001
|
-
|
|
1002
|
-
readonly typeAware: true;
|
|
1003
|
-
};
|
|
1004
|
-
readonly plugins: ["react", "react-perf"];
|
|
1005
|
-
readonly jsPlugins: [{
|
|
1006
|
-
readonly name: "react-compiler";
|
|
1007
|
-
readonly specifier: string;
|
|
1008
|
-
}, {
|
|
1009
|
-
readonly name: "stylistic";
|
|
1010
|
-
readonly specifier: string;
|
|
1011
|
-
}];
|
|
1012
|
-
readonly rules: {
|
|
1013
|
-
'react/button-has-type': "error";
|
|
1014
|
-
'react/exhaustive-deps': "error";
|
|
1015
|
-
'react/function-component-definition': ["error", {
|
|
1016
|
-
namedComponents: string;
|
|
1017
|
-
}];
|
|
1018
|
-
'react/iframe-missing-sandbox': "error";
|
|
1019
|
-
'react/jsx-key': "error";
|
|
1020
|
-
'react/jsx-no-comment-textnodes': "warn";
|
|
1021
|
-
'react/jsx-no-constructed-context-values': "error";
|
|
1022
|
-
'react/jsx-no-script-url': "warn";
|
|
1023
|
-
'react/jsx-no-target-blank': "error";
|
|
1024
|
-
'react/jsx-no-useless-fragment': "off";
|
|
1025
|
-
'react/no-array-index-key': "warn";
|
|
1026
|
-
'react/no-children-prop': "error";
|
|
1027
|
-
'react/no-clone-element': "warn";
|
|
1028
|
-
'react/no-danger': "warn";
|
|
1029
|
-
'react/no-danger-with-children': "error";
|
|
1030
|
-
'react/no-did-mount-set-state': "warn";
|
|
1031
|
-
'react/no-direct-mutation-state': "error";
|
|
1032
|
-
'react/no-find-dom-node': "error";
|
|
1033
|
-
'react/no-namespace': "error";
|
|
1034
|
-
'react/no-redundant-should-component-update': "error";
|
|
1035
|
-
'react/no-render-return-value': "error";
|
|
1036
|
-
'react/no-unsafe': "warn";
|
|
1037
|
-
'react/no-will-update-set-state': "warn";
|
|
1038
|
-
'react/rules-of-hooks': "error";
|
|
1039
|
-
'react/self-closing-comp': "error";
|
|
1040
|
-
'react/void-dom-elements-no-children': "error";
|
|
1041
|
-
'react_perf/jsx-no-jsx-as-prop': "error";
|
|
1042
|
-
'react-compiler/react-compiler': "error";
|
|
1043
|
-
'stylistic/jsx-curly-newline': "off";
|
|
1044
|
-
'stylistic/jsx-newline': ["error", {
|
|
1045
|
-
prevent: false;
|
|
1046
|
-
}];
|
|
1047
|
-
'react/checked-requires-onchange-or-readonly': undefined;
|
|
1048
|
-
'react/display-name': "off";
|
|
1049
|
-
'react/forbid-component-props': undefined;
|
|
1050
|
-
'react/forbid-dom-props': undefined;
|
|
1051
|
-
'react/forbid-elements': undefined;
|
|
1052
|
-
'react/forward-ref-uses-ref': "off";
|
|
1053
|
-
'react/hook-use-state': "off";
|
|
1054
|
-
'react/jsx-boolean-value': "off";
|
|
1055
|
-
'react/jsx-curly-brace-presence': undefined;
|
|
1056
|
-
'react/jsx-filename-extension': "off";
|
|
1057
|
-
'react/jsx-fragments': "off";
|
|
1058
|
-
'react/jsx-handler-names': undefined;
|
|
1059
|
-
'react/jsx-max-depth': undefined;
|
|
1060
|
-
'react/jsx-no-duplicate-props': undefined;
|
|
1061
|
-
'react/jsx-no-literals': undefined;
|
|
1062
|
-
'react/jsx-no-undef': undefined;
|
|
1063
|
-
'react/jsx-pascal-case': "off";
|
|
1064
|
-
'react/jsx-props-no-spread-multi': undefined;
|
|
1065
|
-
'react/jsx-props-no-spreading': undefined;
|
|
1066
|
-
'react/no-did-update-set-state': "off";
|
|
1067
|
-
'react/no-is-mounted': undefined;
|
|
1068
|
-
'react/no-multi-comp': undefined;
|
|
1069
|
-
'react/no-object-type-as-default-prop': "off";
|
|
1070
|
-
'react/no-react-children': undefined;
|
|
1071
|
-
'react/no-set-state': undefined;
|
|
1072
|
-
'react/no-string-refs': "off";
|
|
1073
|
-
'react/no-this-in-sfc': undefined;
|
|
1074
|
-
'react/no-unescaped-entities': undefined;
|
|
1075
|
-
'react/no-unknown-property': "off";
|
|
1076
|
-
'react/no-unstable-nested-components': "off";
|
|
1077
|
-
'react/only-export-components': undefined;
|
|
1078
|
-
'react/prefer-es6-class': undefined;
|
|
1079
|
-
'react/prefer-function-component': undefined;
|
|
1080
|
-
'react/react-compiler': undefined;
|
|
1081
|
-
'react/react-in-jsx-scope': undefined;
|
|
1082
|
-
'react/require-render-return': undefined;
|
|
1083
|
-
'react/state-in-constructor': undefined;
|
|
1084
|
-
'react/style-prop-object': undefined;
|
|
1085
|
-
'react_perf/jsx-no-new-array-as-prop': undefined;
|
|
1086
|
-
'react_perf/jsx-no-new-function-as-prop': undefined;
|
|
1087
|
-
'react_perf/jsx-no-new-object-as-prop': undefined;
|
|
1088
|
-
};
|
|
1089
|
-
}, {
|
|
1090
|
-
readonly overrides: [{
|
|
1091
|
-
readonly files: ["**/*.d.ts"];
|
|
1092
|
-
readonly rules: {
|
|
1093
|
-
readonly 'eslint/no-duplicate-imports': "off";
|
|
1094
|
-
readonly 'eslint/no-undef': "off";
|
|
1095
|
-
readonly 'eslint/no-unused-vars': "off";
|
|
1096
|
-
readonly 'import/unambiguous': "off";
|
|
1097
|
-
};
|
|
1098
|
-
}, {
|
|
1099
|
-
readonly files: ["**/*.{test,spec}.ts?(x)"];
|
|
1100
|
-
readonly globals: {
|
|
1101
|
-
readonly afterAll: "readonly";
|
|
1102
|
-
readonly afterEach: "readonly";
|
|
1103
|
-
readonly beforeAll: "readonly";
|
|
1104
|
-
readonly beforeEach: "readonly";
|
|
1105
|
-
readonly bench: "readonly";
|
|
1106
|
-
readonly describe: "readonly";
|
|
1107
|
-
readonly expect: "readonly";
|
|
1108
|
-
readonly expectTypeOf: "readonly";
|
|
1109
|
-
readonly it: "readonly";
|
|
1110
|
-
readonly suite: "readonly";
|
|
1111
|
-
readonly test: "readonly";
|
|
1112
|
-
readonly vi: "readonly";
|
|
1113
|
-
};
|
|
1114
|
-
readonly rules: {
|
|
1115
|
-
readonly 'eslint/no-unused-expressions': "off";
|
|
1116
|
-
};
|
|
1117
|
-
}, {
|
|
1118
|
-
readonly files: ["**/*.js", "**/*.cjs", "**/*.cts"];
|
|
1119
|
-
readonly rules: {
|
|
1120
|
-
readonly 'typescript/no-import-type-side-effects': "off";
|
|
1121
|
-
};
|
|
1122
|
-
}];
|
|
1123
|
-
}];
|
|
1124
|
-
readonly ignorePatterns: string[];
|
|
1097
|
+
})[];
|
|
1098
|
+
ignorePatterns: string[];
|
|
1125
1099
|
}, "categories" | "extends" | "ignorePatterns" | "options"> & {
|
|
1126
1100
|
categories: {
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1101
|
+
nursery: "off";
|
|
1102
|
+
pedantic: "off";
|
|
1103
|
+
correctness: "off";
|
|
1104
|
+
perf: "off";
|
|
1105
|
+
style: "off";
|
|
1106
|
+
restriction: "off";
|
|
1107
|
+
suspicious: "off";
|
|
1134
1108
|
};
|
|
1135
1109
|
extends: ({
|
|
1136
|
-
|
|
1137
|
-
|
|
1110
|
+
plugins: "import"[];
|
|
1111
|
+
rules: {
|
|
1138
1112
|
'import/consistent-type-specifier-style': undefined;
|
|
1139
1113
|
'import/default': "error";
|
|
1140
1114
|
'import/export': "error";
|
|
@@ -1170,191 +1144,201 @@ declare const twoDigits: Omit<{
|
|
|
1170
1144
|
'import/newline-after-import': undefined;
|
|
1171
1145
|
};
|
|
1172
1146
|
} | {
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
'
|
|
1147
|
+
plugins: "eslint"[];
|
|
1148
|
+
rules: {
|
|
1149
|
+
'accessor-pairs': ["error", {
|
|
1176
1150
|
enforceForClassMembers: true;
|
|
1177
1151
|
setWithoutGet: true;
|
|
1178
1152
|
}];
|
|
1179
|
-
'
|
|
1180
|
-
'
|
|
1181
|
-
requireReturnForObjectLiteral:
|
|
1182
|
-
}];
|
|
1183
|
-
'
|
|
1184
|
-
'
|
|
1185
|
-
'
|
|
1186
|
-
'
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
'
|
|
1191
|
-
'
|
|
1192
|
-
'
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
'
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
'
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
'
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
'
|
|
1205
|
-
'
|
|
1206
|
-
'
|
|
1207
|
-
'
|
|
1208
|
-
'
|
|
1209
|
-
'
|
|
1210
|
-
'
|
|
1211
|
-
'
|
|
1212
|
-
'eslint/max-lines': undefined;
|
|
1213
|
-
'eslint/max-lines-per-function': undefined;
|
|
1214
|
-
'eslint/max-nested-callbacks': undefined;
|
|
1215
|
-
'eslint/max-params': undefined;
|
|
1216
|
-
'eslint/max-statements': undefined;
|
|
1217
|
-
'eslint/new-cap': ["error", {
|
|
1153
|
+
'array-callback-return': "error";
|
|
1154
|
+
'arrow-body-style': ["error", "as-needed", {
|
|
1155
|
+
requireReturnForObjectLiteral: false;
|
|
1156
|
+
}];
|
|
1157
|
+
'block-scoped-var': "error";
|
|
1158
|
+
'capitalized-comments': "error";
|
|
1159
|
+
'class-methods-use-this': undefined;
|
|
1160
|
+
'constructor-super': "error";
|
|
1161
|
+
'default-case': undefined;
|
|
1162
|
+
'default-case-last': "error";
|
|
1163
|
+
'default-param-last': "error";
|
|
1164
|
+
'for-direction': "error";
|
|
1165
|
+
'func-name-matching': undefined;
|
|
1166
|
+
'func-names': ["error", "always", {
|
|
1167
|
+
generators: "never";
|
|
1168
|
+
}];
|
|
1169
|
+
'func-style': ["error", "declaration", {
|
|
1170
|
+
allowTypeAnnotation: true;
|
|
1171
|
+
}];
|
|
1172
|
+
'getter-return': "error";
|
|
1173
|
+
'grouped-accessor-pairs': "error";
|
|
1174
|
+
'guard-for-in': "error";
|
|
1175
|
+
'id-length': undefined;
|
|
1176
|
+
'init-declarations': undefined;
|
|
1177
|
+
'logical-assignment-operators': ["error", "always"];
|
|
1178
|
+
'max-classes-per-file': undefined;
|
|
1179
|
+
'max-depth': undefined;
|
|
1180
|
+
'max-lines': undefined;
|
|
1181
|
+
'max-lines-per-function': undefined;
|
|
1182
|
+
'max-nested-callbacks': undefined;
|
|
1183
|
+
'max-params': undefined;
|
|
1184
|
+
'max-statements': undefined;
|
|
1185
|
+
'new-cap': ["error", {
|
|
1218
1186
|
capIsNew: false;
|
|
1219
1187
|
newIsCap: true;
|
|
1220
1188
|
properties: true;
|
|
1221
1189
|
}];
|
|
1222
|
-
'
|
|
1223
|
-
'
|
|
1224
|
-
'
|
|
1225
|
-
'
|
|
1226
|
-
'
|
|
1227
|
-
'
|
|
1228
|
-
'
|
|
1229
|
-
'
|
|
1230
|
-
'
|
|
1231
|
-
'
|
|
1232
|
-
'
|
|
1233
|
-
'
|
|
1234
|
-
'
|
|
1235
|
-
'
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
'
|
|
1239
|
-
'
|
|
1240
|
-
'
|
|
1241
|
-
'
|
|
1242
|
-
'
|
|
1243
|
-
'
|
|
1244
|
-
'
|
|
1245
|
-
'
|
|
1246
|
-
'
|
|
1247
|
-
'eslint/no-duplicate-case': "error";
|
|
1248
|
-
'eslint/no-duplicate-imports': ["error", {
|
|
1190
|
+
'no-alert': "error";
|
|
1191
|
+
'no-array-constructor': "error";
|
|
1192
|
+
'no-async-promise-executor': "error";
|
|
1193
|
+
'no-await-in-loop': "error";
|
|
1194
|
+
'no-bitwise': undefined;
|
|
1195
|
+
'no-caller': "error";
|
|
1196
|
+
'no-case-declarations': "error";
|
|
1197
|
+
'no-class-assign': "error";
|
|
1198
|
+
'no-compare-neg-zero': "error";
|
|
1199
|
+
'no-cond-assign': ["error", "always"];
|
|
1200
|
+
'no-console': undefined;
|
|
1201
|
+
'no-const-assign': "error";
|
|
1202
|
+
'no-constant-binary-expression': "error";
|
|
1203
|
+
'no-constant-condition': "error";
|
|
1204
|
+
'no-constructor-return': "error";
|
|
1205
|
+
'no-continue': undefined;
|
|
1206
|
+
'no-control-regex': "error";
|
|
1207
|
+
'no-debugger': "error";
|
|
1208
|
+
'no-delete-var': "error";
|
|
1209
|
+
'no-div-regex': "error";
|
|
1210
|
+
'no-dupe-class-members': "error";
|
|
1211
|
+
'no-dupe-else-if': "error";
|
|
1212
|
+
'no-dupe-keys': "error";
|
|
1213
|
+
'no-duplicate-case': "error";
|
|
1214
|
+
'no-duplicate-imports': ["error", {
|
|
1249
1215
|
allowSeparateTypeImports: false;
|
|
1250
1216
|
includeExports: false;
|
|
1251
1217
|
}];
|
|
1252
|
-
'
|
|
1218
|
+
'no-else-return': ["error", {
|
|
1253
1219
|
allowElseIf: false;
|
|
1254
1220
|
}];
|
|
1255
|
-
'
|
|
1221
|
+
'no-empty': ["error", {
|
|
1256
1222
|
allowEmptyCatch: true;
|
|
1257
1223
|
}];
|
|
1258
|
-
'
|
|
1259
|
-
'
|
|
1260
|
-
'
|
|
1261
|
-
'
|
|
1262
|
-
'
|
|
1263
|
-
'
|
|
1264
|
-
'
|
|
1265
|
-
'
|
|
1266
|
-
'
|
|
1267
|
-
'
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
'
|
|
1271
|
-
'
|
|
1272
|
-
'
|
|
1273
|
-
'
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
'
|
|
1277
|
-
'
|
|
1278
|
-
'
|
|
1279
|
-
'
|
|
1280
|
-
'
|
|
1281
|
-
'
|
|
1282
|
-
'
|
|
1224
|
+
'no-empty-character-class': "error";
|
|
1225
|
+
'no-empty-function': undefined;
|
|
1226
|
+
'no-empty-pattern': "error";
|
|
1227
|
+
'no-empty-static-block': "error";
|
|
1228
|
+
'no-eq-null': undefined;
|
|
1229
|
+
'no-eval': "error";
|
|
1230
|
+
'no-ex-assign': "error";
|
|
1231
|
+
'no-extend-native': "error";
|
|
1232
|
+
'no-extra-bind': "error";
|
|
1233
|
+
'no-extra-boolean-cast': "error";
|
|
1234
|
+
'no-extra-label': "error";
|
|
1235
|
+
'no-fallthrough': "error";
|
|
1236
|
+
'no-func-assign': "error";
|
|
1237
|
+
'no-global-assign': "error";
|
|
1238
|
+
'no-implicit-coercion': undefined;
|
|
1239
|
+
'no-implicit-globals': ["error", {
|
|
1240
|
+
lexicalBindings: true;
|
|
1241
|
+
}];
|
|
1242
|
+
'no-implied-eval': "error";
|
|
1243
|
+
'no-import-assign': "error";
|
|
1244
|
+
'no-inline-comments': undefined;
|
|
1245
|
+
'no-inner-declarations': undefined;
|
|
1246
|
+
'no-invalid-regexp': "error";
|
|
1247
|
+
'no-irregular-whitespace': "error";
|
|
1248
|
+
'no-iterator': "error";
|
|
1249
|
+
'no-label-var': "error";
|
|
1250
|
+
'no-labels': ["error", {
|
|
1283
1251
|
allowLoop: false;
|
|
1284
1252
|
allowSwitch: false;
|
|
1285
1253
|
}];
|
|
1286
|
-
'
|
|
1287
|
-
'
|
|
1288
|
-
'
|
|
1289
|
-
'
|
|
1290
|
-
'
|
|
1291
|
-
'
|
|
1292
|
-
'
|
|
1293
|
-
'
|
|
1294
|
-
'
|
|
1295
|
-
'
|
|
1296
|
-
'
|
|
1297
|
-
'
|
|
1298
|
-
'
|
|
1299
|
-
'
|
|
1300
|
-
'
|
|
1301
|
-
'
|
|
1302
|
-
'
|
|
1303
|
-
'
|
|
1304
|
-
'
|
|
1305
|
-
'
|
|
1306
|
-
'
|
|
1307
|
-
'
|
|
1308
|
-
'
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
'
|
|
1254
|
+
'no-lone-blocks': "error";
|
|
1255
|
+
'no-lonely-if': "error";
|
|
1256
|
+
'no-loop-func': "error";
|
|
1257
|
+
'no-loss-of-precision': "error";
|
|
1258
|
+
'no-magic-numbers': undefined;
|
|
1259
|
+
'no-misleading-character-class': "error";
|
|
1260
|
+
'no-multi-assign': "error";
|
|
1261
|
+
'no-multi-str': "error";
|
|
1262
|
+
'no-negated-condition': "error";
|
|
1263
|
+
'no-nested-ternary': undefined;
|
|
1264
|
+
'no-new': "error";
|
|
1265
|
+
'no-new-func': "error";
|
|
1266
|
+
'no-new-native-nonconstructor': "error";
|
|
1267
|
+
'no-new-wrappers': "error";
|
|
1268
|
+
'no-nonoctal-decimal-escape': "error";
|
|
1269
|
+
'no-obj-calls': "error";
|
|
1270
|
+
'no-object-constructor': "error";
|
|
1271
|
+
'no-param-reassign': undefined;
|
|
1272
|
+
'no-plusplus': undefined;
|
|
1273
|
+
'no-promise-executor-return': "error";
|
|
1274
|
+
'no-proto': "error";
|
|
1275
|
+
'no-prototype-builtins': "error";
|
|
1276
|
+
'no-redeclare': ["error", {
|
|
1277
|
+
builtinGlobals: false;
|
|
1278
|
+
}];
|
|
1279
|
+
'no-regex-spaces': "error";
|
|
1280
|
+
'no-restricted-exports': undefined;
|
|
1281
|
+
'no-restricted-globals': ["error", {
|
|
1312
1282
|
message: string;
|
|
1313
1283
|
name: string;
|
|
1314
1284
|
}, {
|
|
1315
1285
|
message: string;
|
|
1316
1286
|
name: string;
|
|
1317
1287
|
}];
|
|
1318
|
-
'
|
|
1319
|
-
'
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1288
|
+
'no-restricted-imports': undefined;
|
|
1289
|
+
'no-restricted-properties': ["error", {
|
|
1290
|
+
message: string;
|
|
1291
|
+
property: string;
|
|
1292
|
+
}, {
|
|
1293
|
+
message: string;
|
|
1294
|
+
property: string;
|
|
1295
|
+
}, {
|
|
1296
|
+
message: string;
|
|
1297
|
+
property: string;
|
|
1298
|
+
}, {
|
|
1299
|
+
message: string;
|
|
1300
|
+
property: string;
|
|
1301
|
+
}, {
|
|
1302
|
+
message: string;
|
|
1303
|
+
property: string;
|
|
1304
|
+
}];
|
|
1305
|
+
'no-return-assign': "error";
|
|
1306
|
+
'no-script-url': "error";
|
|
1307
|
+
'no-self-assign': ["error", {
|
|
1323
1308
|
props: true;
|
|
1324
1309
|
}];
|
|
1325
|
-
'
|
|
1326
|
-
'
|
|
1327
|
-
'
|
|
1328
|
-
'
|
|
1329
|
-
'
|
|
1330
|
-
'
|
|
1331
|
-
'
|
|
1332
|
-
'
|
|
1333
|
-
'
|
|
1334
|
-
'
|
|
1335
|
-
'
|
|
1336
|
-
'
|
|
1337
|
-
'
|
|
1338
|
-
'
|
|
1339
|
-
'
|
|
1340
|
-
'
|
|
1341
|
-
'
|
|
1310
|
+
'no-self-compare': "error";
|
|
1311
|
+
'no-sequences': "error";
|
|
1312
|
+
'no-setter-return': "error";
|
|
1313
|
+
'no-shadow': "off";
|
|
1314
|
+
'no-shadow-restricted-names': "error";
|
|
1315
|
+
'no-sparse-arrays': "error";
|
|
1316
|
+
'no-template-curly-in-string': "error";
|
|
1317
|
+
'no-ternary': undefined;
|
|
1318
|
+
'no-this-before-super': "error";
|
|
1319
|
+
'no-throw-literal': "error";
|
|
1320
|
+
'no-unassigned-vars': "error";
|
|
1321
|
+
'no-undef': "error";
|
|
1322
|
+
'no-undefined': undefined;
|
|
1323
|
+
'no-underscore-dangle': undefined;
|
|
1324
|
+
'no-unexpected-multiline': "error";
|
|
1325
|
+
'no-unmodified-loop-condition': "error";
|
|
1326
|
+
'no-unneeded-ternary': ["error", {
|
|
1342
1327
|
defaultAssignment: false;
|
|
1343
1328
|
}];
|
|
1344
|
-
'
|
|
1345
|
-
'
|
|
1346
|
-
'
|
|
1347
|
-
'
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
'eslint/no-unused-expressions': ["error", {
|
|
1329
|
+
'no-unreachable': "error";
|
|
1330
|
+
'no-unreachable-loop': "error";
|
|
1331
|
+
'no-unsafe-finally': "error";
|
|
1332
|
+
'no-unsafe-negation': "error";
|
|
1333
|
+
'no-unsafe-optional-chaining': "error";
|
|
1334
|
+
'no-unused-expressions': ["error", {
|
|
1351
1335
|
allowShortCircuit: true;
|
|
1352
1336
|
allowTaggedTemplates: true;
|
|
1353
1337
|
allowTernary: true;
|
|
1354
1338
|
}];
|
|
1355
|
-
'
|
|
1356
|
-
'
|
|
1357
|
-
'
|
|
1339
|
+
'no-unused-labels': "error";
|
|
1340
|
+
'no-unused-private-class-members': "error";
|
|
1341
|
+
'no-unused-vars': ["error", {
|
|
1358
1342
|
args: "none";
|
|
1359
1343
|
caughtErrors: "none";
|
|
1360
1344
|
vars: "all";
|
|
@@ -1362,71 +1346,82 @@ declare const twoDigits: Omit<{
|
|
|
1362
1346
|
ignoreRestSiblings: true;
|
|
1363
1347
|
varsIgnorePattern: string;
|
|
1364
1348
|
}];
|
|
1365
|
-
'
|
|
1366
|
-
'
|
|
1367
|
-
'
|
|
1368
|
-
'
|
|
1369
|
-
'
|
|
1370
|
-
'
|
|
1371
|
-
'
|
|
1372
|
-
'
|
|
1373
|
-
'
|
|
1374
|
-
'
|
|
1375
|
-
'
|
|
1376
|
-
'
|
|
1377
|
-
'
|
|
1378
|
-
'
|
|
1379
|
-
'
|
|
1380
|
-
'
|
|
1381
|
-
|
|
1382
|
-
|
|
1349
|
+
'no-use-before-define': undefined;
|
|
1350
|
+
'no-useless-assignment': "off";
|
|
1351
|
+
'no-useless-backreference': "error";
|
|
1352
|
+
'no-useless-call': "error";
|
|
1353
|
+
'no-useless-catch': "error";
|
|
1354
|
+
'no-useless-computed-key': "error";
|
|
1355
|
+
'no-useless-concat': "error";
|
|
1356
|
+
'no-useless-constructor': "error";
|
|
1357
|
+
'no-useless-escape': "error";
|
|
1358
|
+
'no-useless-rename': "error";
|
|
1359
|
+
'no-useless-return': "error";
|
|
1360
|
+
'no-var': "error";
|
|
1361
|
+
'no-void': undefined;
|
|
1362
|
+
'no-warning-comments': undefined;
|
|
1363
|
+
'no-with': "error";
|
|
1364
|
+
'object-shorthand': ["error", "always", {
|
|
1365
|
+
avoidQuotes: true;
|
|
1366
|
+
ignoreConstructors: false;
|
|
1367
|
+
}];
|
|
1368
|
+
'one-var': undefined;
|
|
1369
|
+
'operator-assignment': ["error", "always"];
|
|
1370
|
+
'prefer-arrow-callback': ["error", {
|
|
1371
|
+
allowNamedFunctions: true;
|
|
1372
|
+
allowUnboundThis: true;
|
|
1373
|
+
}];
|
|
1374
|
+
'prefer-const': ["error", {
|
|
1383
1375
|
destructuring: "all";
|
|
1384
1376
|
ignoreReadBeforeAssign: true;
|
|
1385
1377
|
}];
|
|
1386
|
-
'
|
|
1378
|
+
'prefer-destructuring': ["error", {
|
|
1387
1379
|
array: true;
|
|
1388
1380
|
object: true;
|
|
1389
1381
|
}, {
|
|
1390
|
-
enforceForRenamedProperties:
|
|
1391
|
-
}];
|
|
1392
|
-
'
|
|
1393
|
-
'
|
|
1394
|
-
'
|
|
1395
|
-
'
|
|
1396
|
-
'
|
|
1397
|
-
'
|
|
1398
|
-
'
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
'
|
|
1402
|
-
'
|
|
1403
|
-
'
|
|
1404
|
-
'
|
|
1405
|
-
'
|
|
1406
|
-
'
|
|
1407
|
-
'
|
|
1408
|
-
'
|
|
1409
|
-
'
|
|
1410
|
-
'
|
|
1411
|
-
'
|
|
1382
|
+
enforceForRenamedProperties: true;
|
|
1383
|
+
}];
|
|
1384
|
+
'prefer-exponentiation-operator': "error";
|
|
1385
|
+
'prefer-named-capture-group': undefined;
|
|
1386
|
+
'prefer-numeric-literals': "error";
|
|
1387
|
+
'prefer-object-has-own': "error";
|
|
1388
|
+
'prefer-object-spread': "error";
|
|
1389
|
+
'prefer-promise-reject-errors': "error";
|
|
1390
|
+
'prefer-regex-literals': ["error", {
|
|
1391
|
+
disallowRedundantWrapping: true;
|
|
1392
|
+
}];
|
|
1393
|
+
'prefer-rest-params': "error";
|
|
1394
|
+
'prefer-spread': "error";
|
|
1395
|
+
'prefer-template': "error";
|
|
1396
|
+
'preserve-caught-error': "error";
|
|
1397
|
+
'require-await': undefined;
|
|
1398
|
+
'require-unicode-regexp': undefined;
|
|
1399
|
+
'require-yield': "error";
|
|
1400
|
+
'sort-imports': undefined;
|
|
1401
|
+
'sort-keys': undefined;
|
|
1402
|
+
'sort-vars': "error";
|
|
1403
|
+
'symbol-description': "error";
|
|
1404
|
+
'unicode-bom': ["error", "never"];
|
|
1405
|
+
'use-isnan': ["error", {
|
|
1412
1406
|
enforceForIndexOf: true;
|
|
1413
1407
|
enforceForSwitchCase: true;
|
|
1414
1408
|
}];
|
|
1415
|
-
'
|
|
1409
|
+
'valid-typeof': ["error", {
|
|
1416
1410
|
requireStringLiterals: true;
|
|
1417
1411
|
}];
|
|
1418
|
-
'
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1412
|
+
'vars-on-top': "error";
|
|
1413
|
+
complexity: ["error", {
|
|
1414
|
+
variant: "modified";
|
|
1415
|
+
max: number;
|
|
1416
|
+
}];
|
|
1417
|
+
curly: "error";
|
|
1418
|
+
eqeqeq: ["error", "smart"];
|
|
1419
|
+
radix: "error";
|
|
1420
|
+
yoda: ["error", "never"];
|
|
1426
1421
|
};
|
|
1427
1422
|
} | {
|
|
1428
|
-
|
|
1429
|
-
|
|
1423
|
+
plugins: "jsdoc"[];
|
|
1424
|
+
rules: {
|
|
1430
1425
|
'jsdoc/check-access': "error";
|
|
1431
1426
|
'jsdoc/check-property-names': "error";
|
|
1432
1427
|
'jsdoc/check-tag-names': ["error", {
|
|
@@ -1453,9 +1448,9 @@ declare const twoDigits: Omit<{
|
|
|
1453
1448
|
'jsdoc/require-yields-type': undefined;
|
|
1454
1449
|
};
|
|
1455
1450
|
} | {
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
'node/handle-callback-err': "error";
|
|
1451
|
+
plugins: "node"[];
|
|
1452
|
+
rules: {
|
|
1453
|
+
'node/handle-callback-err': ["error", string];
|
|
1459
1454
|
'node/no-exports-assign': "error";
|
|
1460
1455
|
'node/no-new-require': "error";
|
|
1461
1456
|
'node/no-path-concat': "error";
|
|
@@ -1467,13 +1462,14 @@ declare const twoDigits: Omit<{
|
|
|
1467
1462
|
'node/no-top-level-await': undefined;
|
|
1468
1463
|
};
|
|
1469
1464
|
} | {
|
|
1470
|
-
|
|
1471
|
-
|
|
1465
|
+
plugins: "oxc"[];
|
|
1466
|
+
rules: {
|
|
1472
1467
|
'oxc/approx-constant': "error";
|
|
1473
1468
|
'oxc/bad-array-method-on-arguments': "error";
|
|
1474
1469
|
'oxc/bad-bitwise-operator': "error";
|
|
1475
1470
|
'oxc/bad-char-at-comparison': "error";
|
|
1476
1471
|
'oxc/bad-comparison-sequence': "error";
|
|
1472
|
+
'oxc/bad-match-all-arg': "error";
|
|
1477
1473
|
'oxc/bad-min-max-func': "error";
|
|
1478
1474
|
'oxc/bad-object-literal-comparison': "error";
|
|
1479
1475
|
'oxc/bad-replace-all-arg': "error";
|
|
@@ -1499,8 +1495,8 @@ declare const twoDigits: Omit<{
|
|
|
1499
1495
|
'oxc/uninvoked-array-callback': "error";
|
|
1500
1496
|
};
|
|
1501
1497
|
} | {
|
|
1502
|
-
|
|
1503
|
-
|
|
1498
|
+
plugins: "unicorn"[];
|
|
1499
|
+
rules: {
|
|
1504
1500
|
'unicorn/catch-error-name': "error";
|
|
1505
1501
|
'unicorn/consistent-assert': "error";
|
|
1506
1502
|
'unicorn/consistent-date-clone': "error";
|
|
@@ -1509,16 +1505,20 @@ declare const twoDigits: Omit<{
|
|
|
1509
1505
|
'unicorn/consistent-function-scoping': "error";
|
|
1510
1506
|
'unicorn/consistent-template-literal-escape': "error";
|
|
1511
1507
|
'unicorn/custom-error-definition': undefined;
|
|
1512
|
-
'unicorn/empty-brace-spaces':
|
|
1508
|
+
'unicorn/empty-brace-spaces': "error";
|
|
1513
1509
|
'unicorn/error-message': "error";
|
|
1514
1510
|
'unicorn/escape-case': "error";
|
|
1515
1511
|
'unicorn/explicit-length-check': "error";
|
|
1512
|
+
'unicorn/explicit-timer-delay': "error";
|
|
1516
1513
|
'unicorn/filename-case': undefined;
|
|
1514
|
+
'unicorn/import-style': "error";
|
|
1515
|
+
'unicorn/max-nested-calls': undefined;
|
|
1517
1516
|
'unicorn/new-for-builtins': "error";
|
|
1518
1517
|
'unicorn/no-abusive-eslint-disable': "error";
|
|
1519
1518
|
'unicorn/no-accessor-recursion': "error";
|
|
1520
1519
|
'unicorn/no-anonymous-default-export': "error";
|
|
1521
1520
|
'unicorn/no-array-callback-reference': undefined;
|
|
1521
|
+
'unicorn/no-array-fill-with-reference-type': "error";
|
|
1522
1522
|
'unicorn/no-array-for-each': "error";
|
|
1523
1523
|
'unicorn/no-array-method-this-argument': "error";
|
|
1524
1524
|
'unicorn/no-array-reduce': "error";
|
|
@@ -1526,6 +1526,7 @@ declare const twoDigits: Omit<{
|
|
|
1526
1526
|
'unicorn/no-array-sort': "error";
|
|
1527
1527
|
'unicorn/no-await-expression-member': "error";
|
|
1528
1528
|
'unicorn/no-await-in-promise-methods': "error";
|
|
1529
|
+
'unicorn/no-confusing-array-with': "error";
|
|
1529
1530
|
'unicorn/no-console-spaces': "error";
|
|
1530
1531
|
'unicorn/no-document-cookie': "error";
|
|
1531
1532
|
'unicorn/no-empty-file': "error";
|
|
@@ -1578,9 +1579,7 @@ declare const twoDigits: Omit<{
|
|
|
1578
1579
|
'unicorn/prefer-array-flat-map': "error";
|
|
1579
1580
|
'unicorn/prefer-array-index-of': "error";
|
|
1580
1581
|
'unicorn/prefer-array-some': "error";
|
|
1581
|
-
'unicorn/prefer-at':
|
|
1582
|
-
checkAllIndexAccess: false;
|
|
1583
|
-
}];
|
|
1582
|
+
'unicorn/prefer-at': "error";
|
|
1584
1583
|
'unicorn/prefer-bigint-literals': "error";
|
|
1585
1584
|
'unicorn/prefer-blob-reading-methods': "error";
|
|
1586
1585
|
'unicorn/prefer-class-fields': "error";
|
|
@@ -1593,6 +1592,7 @@ declare const twoDigits: Omit<{
|
|
|
1593
1592
|
'unicorn/prefer-dom-node-remove': "error";
|
|
1594
1593
|
'unicorn/prefer-dom-node-text-content': "error";
|
|
1595
1594
|
'unicorn/prefer-event-target': "error";
|
|
1595
|
+
'unicorn/prefer-export-from': "error";
|
|
1596
1596
|
'unicorn/prefer-global-this': "error";
|
|
1597
1597
|
'unicorn/prefer-import-meta-properties': undefined;
|
|
1598
1598
|
'unicorn/prefer-includes': "error";
|
|
@@ -1606,10 +1606,9 @@ declare const twoDigits: Omit<{
|
|
|
1606
1606
|
'unicorn/prefer-native-coercion-functions': "error";
|
|
1607
1607
|
'unicorn/prefer-negative-index': "error";
|
|
1608
1608
|
'unicorn/prefer-node-protocol': "error";
|
|
1609
|
+
'unicorn/prefer-number-coercion': undefined;
|
|
1609
1610
|
'unicorn/prefer-number-properties': "error";
|
|
1610
|
-
'unicorn/prefer-object-from-entries':
|
|
1611
|
-
functions: never[];
|
|
1612
|
-
}];
|
|
1611
|
+
'unicorn/prefer-object-from-entries': "error";
|
|
1613
1612
|
'unicorn/prefer-optional-catch-binding': "error";
|
|
1614
1613
|
'unicorn/prefer-prototype-methods': "error";
|
|
1615
1614
|
'unicorn/prefer-query-selector': "error";
|
|
@@ -1618,15 +1617,14 @@ declare const twoDigits: Omit<{
|
|
|
1618
1617
|
'unicorn/prefer-response-static-json': "error";
|
|
1619
1618
|
'unicorn/prefer-set-has': "error";
|
|
1620
1619
|
'unicorn/prefer-set-size': "error";
|
|
1620
|
+
'unicorn/prefer-single-call': "error";
|
|
1621
1621
|
'unicorn/prefer-spread': "error";
|
|
1622
1622
|
'unicorn/prefer-string-raw': "error";
|
|
1623
1623
|
'unicorn/prefer-string-replace-all': "error";
|
|
1624
1624
|
'unicorn/prefer-string-slice': "error";
|
|
1625
1625
|
'unicorn/prefer-string-starts-ends-with': "error";
|
|
1626
1626
|
'unicorn/prefer-string-trim-start-end': "error";
|
|
1627
|
-
'unicorn/prefer-structured-clone':
|
|
1628
|
-
functions: never[];
|
|
1629
|
-
}];
|
|
1627
|
+
'unicorn/prefer-structured-clone': "error";
|
|
1630
1628
|
'unicorn/prefer-ternary': ["error", "only-single-line"];
|
|
1631
1629
|
'unicorn/prefer-top-level-await': undefined;
|
|
1632
1630
|
'unicorn/prefer-type-error': "error";
|
|
@@ -1636,25 +1634,17 @@ declare const twoDigits: Omit<{
|
|
|
1636
1634
|
'unicorn/require-module-specifiers': "error";
|
|
1637
1635
|
'unicorn/require-number-to-fixed-digits-argument': "error";
|
|
1638
1636
|
'unicorn/require-post-message-target-origin': undefined;
|
|
1639
|
-
'unicorn/switch-case-braces':
|
|
1637
|
+
'unicorn/switch-case-braces': "error";
|
|
1640
1638
|
'unicorn/switch-case-break-position': "error";
|
|
1641
1639
|
'unicorn/text-encoding-identifier-case': "error";
|
|
1642
1640
|
'unicorn/throw-new-error': "off";
|
|
1643
|
-
'unicorn/import-style': undefined;
|
|
1644
|
-
'unicorn/max-nested-calls': undefined;
|
|
1645
|
-
'unicorn/no-array-fill-with-reference-type': undefined;
|
|
1646
|
-
'unicorn/prefer-export-from': undefined;
|
|
1647
|
-
'unicorn/prefer-number-coercion': undefined;
|
|
1648
|
-
'unicorn/prefer-single-call': undefined;
|
|
1649
|
-
'unicorn/explicit-timer-delay': undefined;
|
|
1650
|
-
'unicorn/no-confusing-array-with': undefined;
|
|
1651
1641
|
};
|
|
1652
1642
|
} | {
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
}];
|
|
1657
|
-
|
|
1643
|
+
jsPlugins: {
|
|
1644
|
+
name: string;
|
|
1645
|
+
specifier: string;
|
|
1646
|
+
}[];
|
|
1647
|
+
rules: {
|
|
1658
1648
|
'zod/array-style': ["error", {
|
|
1659
1649
|
style: "function";
|
|
1660
1650
|
}];
|
|
@@ -1713,56 +1703,67 @@ declare const twoDigits: Omit<{
|
|
|
1713
1703
|
'zod/require-error-message': undefined;
|
|
1714
1704
|
};
|
|
1715
1705
|
} | {
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1706
|
+
overrides: ({
|
|
1707
|
+
files: "**/*.d.ts"[];
|
|
1708
|
+
rules: {
|
|
1709
|
+
'no-duplicate-imports': "off";
|
|
1710
|
+
'no-undef': "off";
|
|
1711
|
+
'no-unused-vars': "off";
|
|
1712
|
+
'import/unambiguous': "off";
|
|
1713
|
+
'no-unused-expressions'?: undefined;
|
|
1714
|
+
'typescript/no-import-type-side-effects'?: undefined;
|
|
1723
1715
|
};
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1716
|
+
globals?: undefined;
|
|
1717
|
+
} | {
|
|
1718
|
+
files: "**/*.{test,spec}.ts?(x)"[];
|
|
1719
|
+
globals: {
|
|
1720
|
+
afterAll: "readonly";
|
|
1721
|
+
afterEach: "readonly";
|
|
1722
|
+
beforeAll: "readonly";
|
|
1723
|
+
beforeEach: "readonly";
|
|
1724
|
+
bench: "readonly";
|
|
1725
|
+
describe: "readonly";
|
|
1726
|
+
expect: "readonly";
|
|
1727
|
+
expectTypeOf: "readonly";
|
|
1728
|
+
it: "readonly";
|
|
1729
|
+
suite: "readonly";
|
|
1730
|
+
test: "readonly";
|
|
1731
|
+
vi: "readonly";
|
|
1739
1732
|
};
|
|
1740
|
-
|
|
1741
|
-
|
|
1733
|
+
rules: {
|
|
1734
|
+
'no-duplicate-imports'?: undefined;
|
|
1735
|
+
'no-undef'?: undefined;
|
|
1736
|
+
'no-unused-vars'?: undefined;
|
|
1737
|
+
'import/unambiguous'?: undefined;
|
|
1738
|
+
'no-unused-expressions': "off";
|
|
1739
|
+
'typescript/no-import-type-side-effects'?: undefined;
|
|
1742
1740
|
};
|
|
1743
|
-
}
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1741
|
+
} | {
|
|
1742
|
+
globals?: undefined;
|
|
1743
|
+
files: ("**/*.cjs" | "**/*.cts" | "**/*.js")[];
|
|
1744
|
+
rules: {
|
|
1745
|
+
'no-duplicate-imports'?: undefined;
|
|
1746
|
+
'no-undef'?: undefined;
|
|
1747
|
+
'no-unused-vars'?: undefined;
|
|
1748
|
+
'import/unambiguous'?: undefined;
|
|
1749
|
+
'no-unused-expressions'?: undefined;
|
|
1750
|
+
'typescript/no-import-type-side-effects': "off";
|
|
1747
1751
|
};
|
|
1748
|
-
}];
|
|
1752
|
+
})[];
|
|
1749
1753
|
} | {
|
|
1750
|
-
|
|
1751
|
-
|
|
1754
|
+
options: {
|
|
1755
|
+
typeAware: true;
|
|
1752
1756
|
};
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
}
|
|
1758
|
-
|
|
1759
|
-
readonly specifier: string;
|
|
1760
|
-
}];
|
|
1761
|
-
readonly rules: {
|
|
1757
|
+
plugins: ("react" | "react-perf")[];
|
|
1758
|
+
jsPlugins: {
|
|
1759
|
+
name: string;
|
|
1760
|
+
specifier: string;
|
|
1761
|
+
}[];
|
|
1762
|
+
rules: {
|
|
1762
1763
|
'react/button-has-type': "error";
|
|
1763
1764
|
'react/exhaustive-deps': "error";
|
|
1764
1765
|
'react/function-component-definition': ["error", {
|
|
1765
|
-
namedComponents:
|
|
1766
|
+
namedComponents: "function-declaration";
|
|
1766
1767
|
}];
|
|
1767
1768
|
'react/iframe-missing-sandbox': "error";
|
|
1768
1769
|
'react/jsx-key': "error";
|
|
@@ -1787,7 +1788,7 @@ declare const twoDigits: Omit<{
|
|
|
1787
1788
|
'react/rules-of-hooks': "error";
|
|
1788
1789
|
'react/self-closing-comp': "error";
|
|
1789
1790
|
'react/void-dom-elements-no-children': "error";
|
|
1790
|
-
'
|
|
1791
|
+
'react-perf/jsx-no-jsx-as-prop': "error";
|
|
1791
1792
|
'react-compiler/react-compiler': "error";
|
|
1792
1793
|
'stylistic/jsx-curly-newline': "off";
|
|
1793
1794
|
'stylistic/jsx-newline': ["error", {
|
|
@@ -1799,7 +1800,7 @@ declare const twoDigits: Omit<{
|
|
|
1799
1800
|
'react/forbid-dom-props': undefined;
|
|
1800
1801
|
'react/forbid-elements': undefined;
|
|
1801
1802
|
'react/forward-ref-uses-ref': "off";
|
|
1802
|
-
'react/hook-use-state': "
|
|
1803
|
+
'react/hook-use-state': "error";
|
|
1803
1804
|
'react/jsx-boolean-value': "off";
|
|
1804
1805
|
'react/jsx-curly-brace-presence': undefined;
|
|
1805
1806
|
'react/jsx-filename-extension': "off";
|
|
@@ -1831,16 +1832,16 @@ declare const twoDigits: Omit<{
|
|
|
1831
1832
|
'react/require-render-return': undefined;
|
|
1832
1833
|
'react/state-in-constructor': undefined;
|
|
1833
1834
|
'react/style-prop-object': undefined;
|
|
1834
|
-
'
|
|
1835
|
-
'
|
|
1836
|
-
'
|
|
1835
|
+
'react-perf/jsx-no-new-array-as-prop': undefined;
|
|
1836
|
+
'react-perf/jsx-no-new-function-as-prop': undefined;
|
|
1837
|
+
'react-perf/jsx-no-new-object-as-prop': undefined;
|
|
1837
1838
|
};
|
|
1838
1839
|
} | {
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1840
|
+
plugins: "typescript"[];
|
|
1841
|
+
options: {
|
|
1842
|
+
typeAware: true;
|
|
1842
1843
|
};
|
|
1843
|
-
|
|
1844
|
+
rules: {
|
|
1844
1845
|
'typescript/adjacent-overload-signatures': "error";
|
|
1845
1846
|
'typescript/array-type': ["error", {
|
|
1846
1847
|
default: "generic";
|
|
@@ -1851,16 +1852,16 @@ declare const twoDigits: Omit<{
|
|
|
1851
1852
|
'ts-ignore': "allow-with-description";
|
|
1852
1853
|
}];
|
|
1853
1854
|
'typescript/ban-tslint-comment': "error";
|
|
1855
|
+
'typescript/ban-types': undefined;
|
|
1854
1856
|
'typescript/class-literal-property-style': "error";
|
|
1855
1857
|
'typescript/consistent-generic-constructors': ["error", "constructor"];
|
|
1856
1858
|
'typescript/consistent-indexed-object-style': ["error", "record"];
|
|
1859
|
+
'typescript/consistent-return': "off";
|
|
1857
1860
|
'typescript/consistent-type-assertions': ["error", {
|
|
1858
1861
|
assertionStyle: "as";
|
|
1859
1862
|
}];
|
|
1860
1863
|
'typescript/consistent-type-definitions': ["error", "interface"];
|
|
1861
|
-
'typescript/consistent-type-exports': ["error"
|
|
1862
|
-
fixMixedExportsWithInlineTypeSpecifier: true;
|
|
1863
|
-
}];
|
|
1864
|
+
'typescript/consistent-type-exports': ["error"];
|
|
1864
1865
|
'typescript/consistent-type-imports': ["error", {
|
|
1865
1866
|
fixStyle: "inline-type-imports";
|
|
1866
1867
|
prefer: "type-imports";
|
|
@@ -1869,13 +1870,14 @@ declare const twoDigits: Omit<{
|
|
|
1869
1870
|
'typescript/dot-notation': ["error", {
|
|
1870
1871
|
allowKeywords: true;
|
|
1871
1872
|
}];
|
|
1873
|
+
'typescript/explicit-function-return-type': undefined;
|
|
1874
|
+
'typescript/explicit-member-accessibility': undefined;
|
|
1875
|
+
'typescript/explicit-module-boundary-types': undefined;
|
|
1876
|
+
'typescript/method-signature-style': ["error", "property"];
|
|
1872
1877
|
'typescript/no-array-delete': "error";
|
|
1873
1878
|
'typescript/no-base-to-string': "error";
|
|
1874
1879
|
'typescript/no-confusing-non-null-assertion': "error";
|
|
1875
|
-
'typescript/no-confusing-void-expression':
|
|
1876
|
-
ignoreArrowShorthand: true;
|
|
1877
|
-
ignoreVoidOperator: true;
|
|
1878
|
-
}];
|
|
1880
|
+
'typescript/no-confusing-void-expression': "off";
|
|
1879
1881
|
'typescript/no-deprecated': "error";
|
|
1880
1882
|
'typescript/no-duplicate-enum-values': "error";
|
|
1881
1883
|
'typescript/no-duplicate-type-constituents': "error";
|
|
@@ -1887,45 +1889,35 @@ declare const twoDigits: Omit<{
|
|
|
1887
1889
|
allowInterfaces: "with-single-extends";
|
|
1888
1890
|
allowObjectTypes: "never";
|
|
1889
1891
|
}];
|
|
1890
|
-
'typescript/no-explicit-any': ["error"
|
|
1891
|
-
fixToUnknown: true;
|
|
1892
|
-
ignoreRestArgs: true;
|
|
1893
|
-
}];
|
|
1892
|
+
'typescript/no-explicit-any': ["error"];
|
|
1894
1893
|
'typescript/no-extra-non-null-assertion': "error";
|
|
1895
|
-
'typescript/no-extraneous-class':
|
|
1896
|
-
allowStaticOnly: true;
|
|
1897
|
-
}];
|
|
1894
|
+
'typescript/no-extraneous-class': "error";
|
|
1898
1895
|
'typescript/no-floating-promises': "error";
|
|
1899
1896
|
'typescript/no-for-in-array': "error";
|
|
1900
1897
|
'typescript/no-implied-eval': "error";
|
|
1901
|
-
'typescript/no-import-type-side-effects': "error";
|
|
1898
|
+
'typescript/no-import-type-side-effects': ["error"];
|
|
1902
1899
|
'typescript/no-inferrable-types': "error";
|
|
1903
1900
|
'typescript/no-invalid-void-type': "error";
|
|
1904
1901
|
'typescript/no-meaningless-void-operator': "error";
|
|
1905
1902
|
'typescript/no-misused-new': "error";
|
|
1906
|
-
'typescript/no-misused-promises':
|
|
1907
|
-
checksVoidReturn: boolean;
|
|
1908
|
-
}];
|
|
1903
|
+
'typescript/no-misused-promises': "off";
|
|
1909
1904
|
'typescript/no-misused-spread': "error";
|
|
1910
1905
|
'typescript/no-mixed-enums': "error";
|
|
1911
|
-
'typescript/no-namespace':
|
|
1912
|
-
allowDefinitionFiles: true;
|
|
1913
|
-
}];
|
|
1906
|
+
'typescript/no-namespace': "error";
|
|
1914
1907
|
'typescript/no-non-null-asserted-nullish-coalescing': "error";
|
|
1915
1908
|
'typescript/no-non-null-asserted-optional-chain': "error";
|
|
1916
1909
|
'typescript/no-non-null-assertion': "error";
|
|
1917
1910
|
'typescript/no-redundant-type-constituents': "error";
|
|
1918
1911
|
'typescript/no-require-imports': "error";
|
|
1912
|
+
'typescript/no-restricted-types': undefined;
|
|
1919
1913
|
'typescript/no-this-alias': "error";
|
|
1920
1914
|
'typescript/no-unnecessary-boolean-literal-compare': "error";
|
|
1921
|
-
'typescript/no-unnecessary-condition':
|
|
1922
|
-
allowConstantLoopConditions: string;
|
|
1923
|
-
}];
|
|
1915
|
+
'typescript/no-unnecessary-condition': "error";
|
|
1924
1916
|
'typescript/no-unnecessary-parameter-property-assignment': "error";
|
|
1925
1917
|
'typescript/no-unnecessary-qualifier': "error";
|
|
1926
1918
|
'typescript/no-unnecessary-template-expression': "error";
|
|
1927
1919
|
'typescript/no-unnecessary-type-arguments': "error";
|
|
1928
|
-
'typescript/no-unnecessary-type-assertion': "
|
|
1920
|
+
'typescript/no-unnecessary-type-assertion': "off";
|
|
1929
1921
|
'typescript/no-unnecessary-type-constraint': "error";
|
|
1930
1922
|
'typescript/no-unnecessary-type-conversion': "error";
|
|
1931
1923
|
'typescript/no-unnecessary-type-parameters': "error";
|
|
@@ -1937,6 +1929,7 @@ declare const twoDigits: Omit<{
|
|
|
1937
1929
|
'typescript/no-unsafe-function-type': "error";
|
|
1938
1930
|
'typescript/no-unsafe-member-access': "error";
|
|
1939
1931
|
'typescript/no-unsafe-return': "error";
|
|
1932
|
+
'typescript/no-unsafe-type-assertion': "off";
|
|
1940
1933
|
'typescript/no-unsafe-unary-minus': "error";
|
|
1941
1934
|
'typescript/no-useless-default-assignment': "error";
|
|
1942
1935
|
'typescript/no-useless-empty-export': "error";
|
|
@@ -1959,45 +1952,43 @@ declare const twoDigits: Omit<{
|
|
|
1959
1952
|
'typescript/prefer-optional-chain': "error";
|
|
1960
1953
|
'typescript/prefer-promise-reject-errors': "error";
|
|
1961
1954
|
'typescript/prefer-readonly': "error";
|
|
1955
|
+
'typescript/prefer-readonly-parameter-types': "off";
|
|
1962
1956
|
'typescript/prefer-reduce-type-parameter': "error";
|
|
1963
1957
|
'typescript/prefer-regexp-exec': "error";
|
|
1964
1958
|
'typescript/prefer-return-this-type': "error";
|
|
1965
1959
|
'typescript/prefer-string-starts-ends-with': "error";
|
|
1960
|
+
'typescript/prefer-ts-expect-error': undefined;
|
|
1961
|
+
'typescript/promise-function-async': undefined;
|
|
1966
1962
|
'typescript/related-getter-setter-pairs': "error";
|
|
1967
1963
|
'typescript/require-array-sort-compare': "error";
|
|
1968
1964
|
'typescript/require-await': "error";
|
|
1969
|
-
'typescript/restrict-plus-operands': "error"
|
|
1965
|
+
'typescript/restrict-plus-operands': ["error", {
|
|
1966
|
+
allowAny: false;
|
|
1967
|
+
allowBoolean: false;
|
|
1968
|
+
allowNullish: false;
|
|
1969
|
+
allowNumberAndString: false;
|
|
1970
|
+
allowRegExp: false;
|
|
1971
|
+
}];
|
|
1970
1972
|
'typescript/restrict-template-expressions': ["error", {
|
|
1971
1973
|
allowNumber: true;
|
|
1972
1974
|
}];
|
|
1973
1975
|
'typescript/return-await': ["error", "error-handling-correctness-only"];
|
|
1976
|
+
'typescript/strict-boolean-expressions': undefined;
|
|
1977
|
+
'typescript/strict-void-return': "off";
|
|
1978
|
+
'typescript/switch-exhaustiveness-check': "off";
|
|
1974
1979
|
'typescript/triple-slash-reference': "error";
|
|
1980
|
+
'typescript/unbound-method': "off";
|
|
1975
1981
|
'typescript/unified-signatures': "error";
|
|
1976
1982
|
'typescript/use-unknown-in-catch-callback-variable': "error";
|
|
1977
|
-
'typescript/ban-types': undefined;
|
|
1978
|
-
'typescript/consistent-return': undefined;
|
|
1979
|
-
'typescript/explicit-function-return-type': undefined;
|
|
1980
|
-
'typescript/explicit-member-accessibility': undefined;
|
|
1981
|
-
'typescript/explicit-module-boundary-types': undefined;
|
|
1982
|
-
'typescript/method-signature-style': undefined;
|
|
1983
|
-
'typescript/no-restricted-types': undefined;
|
|
1984
|
-
'typescript/no-unsafe-type-assertion': undefined;
|
|
1985
|
-
'typescript/prefer-readonly-parameter-types': undefined;
|
|
1986
|
-
'typescript/prefer-ts-expect-error': undefined;
|
|
1987
|
-
'typescript/promise-function-async': undefined;
|
|
1988
|
-
'typescript/strict-boolean-expressions': undefined;
|
|
1989
|
-
'typescript/strict-void-return': undefined;
|
|
1990
|
-
'typescript/switch-exhaustiveness-check': undefined;
|
|
1991
|
-
'typescript/unbound-method': "off";
|
|
1992
1983
|
};
|
|
1993
1984
|
} | {
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1985
|
+
plugins: "vitest"[];
|
|
1986
|
+
settings: {
|
|
1987
|
+
vitest: {
|
|
1988
|
+
typecheck: true;
|
|
1998
1989
|
};
|
|
1999
1990
|
};
|
|
2000
|
-
|
|
1991
|
+
rules: {
|
|
2001
1992
|
'vitest/consistent-each-for': ["error", {
|
|
2002
1993
|
describe: "for";
|
|
2003
1994
|
suite: "for";
|
|
@@ -2008,7 +1999,10 @@ declare const twoDigits: Omit<{
|
|
|
2008
1999
|
pattern: string;
|
|
2009
2000
|
allTestPattern: string;
|
|
2010
2001
|
}];
|
|
2011
|
-
'vitest/consistent-test-it': "error"
|
|
2002
|
+
'vitest/consistent-test-it': ["error", {
|
|
2003
|
+
fn: "it";
|
|
2004
|
+
withinDescribe: "it";
|
|
2005
|
+
}];
|
|
2012
2006
|
'vitest/consistent-vitest-vi': ["error", {
|
|
2013
2007
|
fn: "vi";
|
|
2014
2008
|
}];
|
|
@@ -2060,7 +2054,7 @@ declare const twoDigits: Omit<{
|
|
|
2060
2054
|
'vitest/prefer-lowercase-title': "error";
|
|
2061
2055
|
'vitest/prefer-mock-promise-shorthand': "error";
|
|
2062
2056
|
'vitest/prefer-mock-return-shorthand': "error";
|
|
2063
|
-
'vitest/prefer-snapshot-hint': ["error",
|
|
2057
|
+
'vitest/prefer-snapshot-hint': ["error", "always"];
|
|
2064
2058
|
'vitest/prefer-spy-on': "error";
|
|
2065
2059
|
'vitest/prefer-strict-boolean-matchers': undefined;
|
|
2066
2060
|
'vitest/prefer-strict-equal': "error";
|
|
@@ -2082,7 +2076,9 @@ declare const twoDigits: Omit<{
|
|
|
2082
2076
|
'vitest/valid-describe-callback': "error";
|
|
2083
2077
|
'vitest/valid-expect': "error";
|
|
2084
2078
|
'vitest/valid-expect-in-promise': "error";
|
|
2085
|
-
'vitest/valid-title':
|
|
2079
|
+
'vitest/valid-title': ["error", {
|
|
2080
|
+
ignoreTypeOfDescribeName: boolean;
|
|
2081
|
+
}];
|
|
2086
2082
|
'vitest/warn-todo': "error";
|
|
2087
2083
|
'vitest/padding-around-after-all-blocks': undefined;
|
|
2088
2084
|
'vitest/padding-around-test-blocks': undefined;
|
|
@@ -2090,8 +2086,8 @@ declare const twoDigits: Omit<{
|
|
|
2090
2086
|
})[];
|
|
2091
2087
|
ignorePatterns: string[];
|
|
2092
2088
|
options: {
|
|
2093
|
-
|
|
2094
|
-
|
|
2089
|
+
denyWarnings: true;
|
|
2090
|
+
reportUnusedDisableDirectives: "deny";
|
|
2095
2091
|
};
|
|
2096
2092
|
};
|
|
2097
2093
|
/**
|
|
@@ -2103,4 +2099,7 @@ declare const twoDigits: Omit<{
|
|
|
2103
2099
|
*/
|
|
2104
2100
|
declare function withTwoDigits(...configs: Array<OxlintConfig$1>): OxlintConfig$1;
|
|
2105
2101
|
//#endregion
|
|
2106
|
-
|
|
2102
|
+
//#region src/index.d.ts
|
|
2103
|
+
type RuleName = keyof DummyRuleMap$1;
|
|
2104
|
+
//#endregion
|
|
2105
|
+
export { type DummyRuleMap, type OxlintConfig, type OxlintOverride, type RuleMap, RuleName, withTwoDigits as default, withTwoDigits, twoDigits };
|