@2digits/oxlint-config 0.6.16 → 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 -359
- package/dist/base.mjs +1 -1
- package/dist/index.d.mts +1008 -999
- package/dist/index.mjs +1 -1
- package/dist/typescript-CDMKHDlD.mjs +1 -0
- package/dist/typescript.d.mts +198 -188
- package/dist/typescript.mjs +1 -1
- package/package.json +7 -7
- package/dist/base-BcgSuGNh.mjs +0 -1
- package/dist/typescript-ChAHtxWD.mjs +0 -1
package/dist/base.d.mts
CHANGED
|
@@ -1,208 +1,255 @@
|
|
|
1
1
|
//#region src/base.d.ts
|
|
2
2
|
declare const baseConfig: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
env: {
|
|
4
|
+
browser: true;
|
|
5
|
+
node: true;
|
|
6
6
|
};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
options: {
|
|
8
|
+
denyWarnings: true;
|
|
9
|
+
reportUnusedDisableDirectives: "deny";
|
|
10
10
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
categories: {
|
|
12
|
+
nursery: "off";
|
|
13
|
+
pedantic: "off";
|
|
14
|
+
correctness: "off";
|
|
15
|
+
perf: "off";
|
|
16
|
+
style: "off";
|
|
17
|
+
restriction: "off";
|
|
18
|
+
suspicious: "off";
|
|
19
19
|
};
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
'
|
|
20
|
+
extends: ({
|
|
21
|
+
plugins: "import"[];
|
|
22
|
+
rules: {
|
|
23
|
+
'import/consistent-type-specifier-style': undefined;
|
|
24
|
+
'import/default': "error";
|
|
25
|
+
'import/export': "error";
|
|
26
|
+
'import/exports-last': undefined;
|
|
27
|
+
'import/extensions': undefined;
|
|
28
|
+
'import/first': ["error", "disable-absolute-first"];
|
|
29
|
+
'import/group-exports': undefined;
|
|
30
|
+
'import/max-dependencies': undefined;
|
|
31
|
+
'import/named': undefined;
|
|
32
|
+
'import/namespace': "error";
|
|
33
|
+
'import/no-absolute-path': "error";
|
|
34
|
+
'import/no-amd': "error";
|
|
35
|
+
'import/no-anonymous-default-export': "error";
|
|
36
|
+
'import/no-commonjs': undefined;
|
|
37
|
+
'import/no-cycle': "error";
|
|
38
|
+
'import/no-default-export': undefined;
|
|
39
|
+
'import/no-duplicates': "error";
|
|
40
|
+
'import/no-dynamic-require': "error";
|
|
41
|
+
'import/no-empty-named-blocks': "error";
|
|
42
|
+
'import/no-mutable-exports': undefined;
|
|
43
|
+
'import/no-named-as-default': "error";
|
|
44
|
+
'import/no-named-as-default-member': "error";
|
|
45
|
+
'import/no-named-default': "error";
|
|
46
|
+
'import/no-named-export': undefined;
|
|
47
|
+
'import/no-namespace': undefined;
|
|
48
|
+
'import/no-nodejs-modules': undefined;
|
|
49
|
+
'import/no-relative-parent-imports': undefined;
|
|
50
|
+
'import/no-self-import': "error";
|
|
51
|
+
'import/no-unassigned-import': undefined;
|
|
52
|
+
'import/no-webpack-loader-syntax': "error";
|
|
53
|
+
'import/prefer-default-export': undefined;
|
|
54
|
+
'import/unambiguous': undefined;
|
|
55
|
+
'import/newline-after-import': undefined;
|
|
56
|
+
};
|
|
57
|
+
} | {
|
|
58
|
+
plugins: "eslint"[];
|
|
59
|
+
rules: {
|
|
60
|
+
'accessor-pairs': ["error", {
|
|
24
61
|
enforceForClassMembers: true;
|
|
25
62
|
setWithoutGet: true;
|
|
26
63
|
}];
|
|
27
|
-
'
|
|
28
|
-
'
|
|
29
|
-
requireReturnForObjectLiteral:
|
|
30
|
-
}];
|
|
31
|
-
'
|
|
32
|
-
'
|
|
33
|
-
'
|
|
34
|
-
'
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
'
|
|
39
|
-
'
|
|
40
|
-
'
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
'
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
'
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
'
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
'
|
|
53
|
-
'
|
|
54
|
-
'
|
|
55
|
-
'
|
|
56
|
-
'
|
|
57
|
-
'
|
|
58
|
-
'
|
|
59
|
-
'
|
|
60
|
-
'eslint/max-lines': undefined;
|
|
61
|
-
'eslint/max-lines-per-function': undefined;
|
|
62
|
-
'eslint/max-nested-callbacks': undefined;
|
|
63
|
-
'eslint/max-params': undefined;
|
|
64
|
-
'eslint/max-statements': undefined;
|
|
65
|
-
'eslint/new-cap': ["error", {
|
|
64
|
+
'array-callback-return': "error";
|
|
65
|
+
'arrow-body-style': ["error", "as-needed", {
|
|
66
|
+
requireReturnForObjectLiteral: false;
|
|
67
|
+
}];
|
|
68
|
+
'block-scoped-var': "error";
|
|
69
|
+
'capitalized-comments': "error";
|
|
70
|
+
'class-methods-use-this': undefined;
|
|
71
|
+
'constructor-super': "error";
|
|
72
|
+
'default-case': undefined;
|
|
73
|
+
'default-case-last': "error";
|
|
74
|
+
'default-param-last': "error";
|
|
75
|
+
'for-direction': "error";
|
|
76
|
+
'func-name-matching': undefined;
|
|
77
|
+
'func-names': ["error", "always", {
|
|
78
|
+
generators: "never";
|
|
79
|
+
}];
|
|
80
|
+
'func-style': ["error", "declaration", {
|
|
81
|
+
allowTypeAnnotation: true;
|
|
82
|
+
}];
|
|
83
|
+
'getter-return': "error";
|
|
84
|
+
'grouped-accessor-pairs': "error";
|
|
85
|
+
'guard-for-in': "error";
|
|
86
|
+
'id-length': undefined;
|
|
87
|
+
'init-declarations': undefined;
|
|
88
|
+
'logical-assignment-operators': ["error", "always"];
|
|
89
|
+
'max-classes-per-file': undefined;
|
|
90
|
+
'max-depth': undefined;
|
|
91
|
+
'max-lines': undefined;
|
|
92
|
+
'max-lines-per-function': undefined;
|
|
93
|
+
'max-nested-callbacks': undefined;
|
|
94
|
+
'max-params': undefined;
|
|
95
|
+
'max-statements': undefined;
|
|
96
|
+
'new-cap': ["error", {
|
|
66
97
|
capIsNew: false;
|
|
67
98
|
newIsCap: true;
|
|
68
99
|
properties: true;
|
|
69
100
|
}];
|
|
70
|
-
'
|
|
71
|
-
'
|
|
72
|
-
'
|
|
73
|
-
'
|
|
74
|
-
'
|
|
75
|
-
'
|
|
76
|
-
'
|
|
77
|
-
'
|
|
78
|
-
'
|
|
79
|
-
'
|
|
80
|
-
'
|
|
81
|
-
'
|
|
82
|
-
'
|
|
83
|
-
'
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
'
|
|
87
|
-
'
|
|
88
|
-
'
|
|
89
|
-
'
|
|
90
|
-
'
|
|
91
|
-
'
|
|
92
|
-
'
|
|
93
|
-
'
|
|
94
|
-
'
|
|
95
|
-
'eslint/no-duplicate-case': "error";
|
|
96
|
-
'eslint/no-duplicate-imports': ["error", {
|
|
101
|
+
'no-alert': "error";
|
|
102
|
+
'no-array-constructor': "error";
|
|
103
|
+
'no-async-promise-executor': "error";
|
|
104
|
+
'no-await-in-loop': "error";
|
|
105
|
+
'no-bitwise': undefined;
|
|
106
|
+
'no-caller': "error";
|
|
107
|
+
'no-case-declarations': "error";
|
|
108
|
+
'no-class-assign': "error";
|
|
109
|
+
'no-compare-neg-zero': "error";
|
|
110
|
+
'no-cond-assign': ["error", "always"];
|
|
111
|
+
'no-console': undefined;
|
|
112
|
+
'no-const-assign': "error";
|
|
113
|
+
'no-constant-binary-expression': "error";
|
|
114
|
+
'no-constant-condition': "error";
|
|
115
|
+
'no-constructor-return': "error";
|
|
116
|
+
'no-continue': undefined;
|
|
117
|
+
'no-control-regex': "error";
|
|
118
|
+
'no-debugger': "error";
|
|
119
|
+
'no-delete-var': "error";
|
|
120
|
+
'no-div-regex': "error";
|
|
121
|
+
'no-dupe-class-members': "error";
|
|
122
|
+
'no-dupe-else-if': "error";
|
|
123
|
+
'no-dupe-keys': "error";
|
|
124
|
+
'no-duplicate-case': "error";
|
|
125
|
+
'no-duplicate-imports': ["error", {
|
|
97
126
|
allowSeparateTypeImports: false;
|
|
98
127
|
includeExports: false;
|
|
99
128
|
}];
|
|
100
|
-
'
|
|
129
|
+
'no-else-return': ["error", {
|
|
101
130
|
allowElseIf: false;
|
|
102
131
|
}];
|
|
103
|
-
'
|
|
132
|
+
'no-empty': ["error", {
|
|
104
133
|
allowEmptyCatch: true;
|
|
105
134
|
}];
|
|
106
|
-
'
|
|
107
|
-
'
|
|
108
|
-
'
|
|
109
|
-
'
|
|
110
|
-
'
|
|
111
|
-
'
|
|
112
|
-
'
|
|
113
|
-
'
|
|
114
|
-
'
|
|
115
|
-
'
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
'
|
|
119
|
-
'
|
|
120
|
-
'
|
|
121
|
-
'
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
'
|
|
125
|
-
'
|
|
126
|
-
'
|
|
127
|
-
'
|
|
128
|
-
'
|
|
129
|
-
'
|
|
130
|
-
'
|
|
135
|
+
'no-empty-character-class': "error";
|
|
136
|
+
'no-empty-function': undefined;
|
|
137
|
+
'no-empty-pattern': "error";
|
|
138
|
+
'no-empty-static-block': "error";
|
|
139
|
+
'no-eq-null': undefined;
|
|
140
|
+
'no-eval': "error";
|
|
141
|
+
'no-ex-assign': "error";
|
|
142
|
+
'no-extend-native': "error";
|
|
143
|
+
'no-extra-bind': "error";
|
|
144
|
+
'no-extra-boolean-cast': "error";
|
|
145
|
+
'no-extra-label': "error";
|
|
146
|
+
'no-fallthrough': "error";
|
|
147
|
+
'no-func-assign': "error";
|
|
148
|
+
'no-global-assign': "error";
|
|
149
|
+
'no-implicit-coercion': undefined;
|
|
150
|
+
'no-implicit-globals': ["error", {
|
|
151
|
+
lexicalBindings: true;
|
|
152
|
+
}];
|
|
153
|
+
'no-implied-eval': "error";
|
|
154
|
+
'no-import-assign': "error";
|
|
155
|
+
'no-inline-comments': undefined;
|
|
156
|
+
'no-inner-declarations': undefined;
|
|
157
|
+
'no-invalid-regexp': "error";
|
|
158
|
+
'no-irregular-whitespace': "error";
|
|
159
|
+
'no-iterator': "error";
|
|
160
|
+
'no-label-var': "error";
|
|
161
|
+
'no-labels': ["error", {
|
|
131
162
|
allowLoop: false;
|
|
132
163
|
allowSwitch: false;
|
|
133
164
|
}];
|
|
134
|
-
'
|
|
135
|
-
'
|
|
136
|
-
'
|
|
137
|
-
'
|
|
138
|
-
'
|
|
139
|
-
'
|
|
140
|
-
'
|
|
141
|
-
'
|
|
142
|
-
'
|
|
143
|
-
'
|
|
144
|
-
'
|
|
145
|
-
'
|
|
146
|
-
'
|
|
147
|
-
'
|
|
148
|
-
'
|
|
149
|
-
'
|
|
150
|
-
'
|
|
151
|
-
'
|
|
152
|
-
'
|
|
153
|
-
'
|
|
154
|
-
'
|
|
155
|
-
'
|
|
156
|
-
'
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
'
|
|
165
|
+
'no-lone-blocks': "error";
|
|
166
|
+
'no-lonely-if': "error";
|
|
167
|
+
'no-loop-func': "error";
|
|
168
|
+
'no-loss-of-precision': "error";
|
|
169
|
+
'no-magic-numbers': undefined;
|
|
170
|
+
'no-misleading-character-class': "error";
|
|
171
|
+
'no-multi-assign': "error";
|
|
172
|
+
'no-multi-str': "error";
|
|
173
|
+
'no-negated-condition': "error";
|
|
174
|
+
'no-nested-ternary': undefined;
|
|
175
|
+
'no-new': "error";
|
|
176
|
+
'no-new-func': "error";
|
|
177
|
+
'no-new-native-nonconstructor': "error";
|
|
178
|
+
'no-new-wrappers': "error";
|
|
179
|
+
'no-nonoctal-decimal-escape': "error";
|
|
180
|
+
'no-obj-calls': "error";
|
|
181
|
+
'no-object-constructor': "error";
|
|
182
|
+
'no-param-reassign': undefined;
|
|
183
|
+
'no-plusplus': undefined;
|
|
184
|
+
'no-promise-executor-return': "error";
|
|
185
|
+
'no-proto': "error";
|
|
186
|
+
'no-prototype-builtins': "error";
|
|
187
|
+
'no-redeclare': ["error", {
|
|
188
|
+
builtinGlobals: false;
|
|
189
|
+
}];
|
|
190
|
+
'no-regex-spaces': "error";
|
|
191
|
+
'no-restricted-exports': undefined;
|
|
192
|
+
'no-restricted-globals': ["error", {
|
|
160
193
|
message: string;
|
|
161
194
|
name: string;
|
|
162
195
|
}, {
|
|
163
196
|
message: string;
|
|
164
197
|
name: string;
|
|
165
198
|
}];
|
|
166
|
-
'
|
|
167
|
-
'
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
199
|
+
'no-restricted-imports': undefined;
|
|
200
|
+
'no-restricted-properties': ["error", {
|
|
201
|
+
message: string;
|
|
202
|
+
property: string;
|
|
203
|
+
}, {
|
|
204
|
+
message: string;
|
|
205
|
+
property: string;
|
|
206
|
+
}, {
|
|
207
|
+
message: string;
|
|
208
|
+
property: string;
|
|
209
|
+
}, {
|
|
210
|
+
message: string;
|
|
211
|
+
property: string;
|
|
212
|
+
}, {
|
|
213
|
+
message: string;
|
|
214
|
+
property: string;
|
|
215
|
+
}];
|
|
216
|
+
'no-return-assign': "error";
|
|
217
|
+
'no-script-url': "error";
|
|
218
|
+
'no-self-assign': ["error", {
|
|
171
219
|
props: true;
|
|
172
220
|
}];
|
|
173
|
-
'
|
|
174
|
-
'
|
|
175
|
-
'
|
|
176
|
-
'
|
|
177
|
-
'
|
|
178
|
-
'
|
|
179
|
-
'
|
|
180
|
-
'
|
|
181
|
-
'
|
|
182
|
-
'
|
|
183
|
-
'
|
|
184
|
-
'
|
|
185
|
-
'
|
|
186
|
-
'
|
|
187
|
-
'
|
|
188
|
-
'
|
|
189
|
-
'
|
|
221
|
+
'no-self-compare': "error";
|
|
222
|
+
'no-sequences': "error";
|
|
223
|
+
'no-setter-return': "error";
|
|
224
|
+
'no-shadow': "off";
|
|
225
|
+
'no-shadow-restricted-names': "error";
|
|
226
|
+
'no-sparse-arrays': "error";
|
|
227
|
+
'no-template-curly-in-string': "error";
|
|
228
|
+
'no-ternary': undefined;
|
|
229
|
+
'no-this-before-super': "error";
|
|
230
|
+
'no-throw-literal': "error";
|
|
231
|
+
'no-unassigned-vars': "error";
|
|
232
|
+
'no-undef': "error";
|
|
233
|
+
'no-undefined': undefined;
|
|
234
|
+
'no-underscore-dangle': undefined;
|
|
235
|
+
'no-unexpected-multiline': "error";
|
|
236
|
+
'no-unmodified-loop-condition': "error";
|
|
237
|
+
'no-unneeded-ternary': ["error", {
|
|
190
238
|
defaultAssignment: false;
|
|
191
239
|
}];
|
|
192
|
-
'
|
|
193
|
-
'
|
|
194
|
-
'
|
|
195
|
-
'
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
'eslint/no-unused-expressions': ["error", {
|
|
240
|
+
'no-unreachable': "error";
|
|
241
|
+
'no-unreachable-loop': "error";
|
|
242
|
+
'no-unsafe-finally': "error";
|
|
243
|
+
'no-unsafe-negation': "error";
|
|
244
|
+
'no-unsafe-optional-chaining': "error";
|
|
245
|
+
'no-unused-expressions': ["error", {
|
|
199
246
|
allowShortCircuit: true;
|
|
200
247
|
allowTaggedTemplates: true;
|
|
201
248
|
allowTernary: true;
|
|
202
249
|
}];
|
|
203
|
-
'
|
|
204
|
-
'
|
|
205
|
-
'
|
|
250
|
+
'no-unused-labels': "error";
|
|
251
|
+
'no-unused-private-class-members': "error";
|
|
252
|
+
'no-unused-vars': ["error", {
|
|
206
253
|
args: "none";
|
|
207
254
|
caughtErrors: "none";
|
|
208
255
|
vars: "all";
|
|
@@ -210,71 +257,157 @@ declare const baseConfig: {
|
|
|
210
257
|
ignoreRestSiblings: true;
|
|
211
258
|
varsIgnorePattern: string;
|
|
212
259
|
}];
|
|
213
|
-
'
|
|
214
|
-
'
|
|
215
|
-
'
|
|
216
|
-
'
|
|
217
|
-
'
|
|
218
|
-
'
|
|
219
|
-
'
|
|
220
|
-
'
|
|
221
|
-
'
|
|
222
|
-
'
|
|
223
|
-
'
|
|
224
|
-
'
|
|
225
|
-
'
|
|
226
|
-
'
|
|
227
|
-
'
|
|
228
|
-
'
|
|
229
|
-
|
|
230
|
-
|
|
260
|
+
'no-use-before-define': undefined;
|
|
261
|
+
'no-useless-assignment': "off";
|
|
262
|
+
'no-useless-backreference': "error";
|
|
263
|
+
'no-useless-call': "error";
|
|
264
|
+
'no-useless-catch': "error";
|
|
265
|
+
'no-useless-computed-key': "error";
|
|
266
|
+
'no-useless-concat': "error";
|
|
267
|
+
'no-useless-constructor': "error";
|
|
268
|
+
'no-useless-escape': "error";
|
|
269
|
+
'no-useless-rename': "error";
|
|
270
|
+
'no-useless-return': "error";
|
|
271
|
+
'no-var': "error";
|
|
272
|
+
'no-void': undefined;
|
|
273
|
+
'no-warning-comments': undefined;
|
|
274
|
+
'no-with': "error";
|
|
275
|
+
'object-shorthand': ["error", "always", {
|
|
276
|
+
avoidQuotes: true;
|
|
277
|
+
ignoreConstructors: false;
|
|
278
|
+
}];
|
|
279
|
+
'one-var': undefined;
|
|
280
|
+
'operator-assignment': ["error", "always"];
|
|
281
|
+
'prefer-arrow-callback': ["error", {
|
|
282
|
+
allowNamedFunctions: true;
|
|
283
|
+
allowUnboundThis: true;
|
|
284
|
+
}];
|
|
285
|
+
'prefer-const': ["error", {
|
|
231
286
|
destructuring: "all";
|
|
232
287
|
ignoreReadBeforeAssign: true;
|
|
233
288
|
}];
|
|
234
|
-
'
|
|
289
|
+
'prefer-destructuring': ["error", {
|
|
235
290
|
array: true;
|
|
236
291
|
object: true;
|
|
237
292
|
}, {
|
|
238
|
-
enforceForRenamedProperties:
|
|
239
|
-
}];
|
|
240
|
-
'
|
|
241
|
-
'
|
|
242
|
-
'
|
|
243
|
-
'
|
|
244
|
-
'
|
|
245
|
-
'
|
|
246
|
-
'
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
'
|
|
250
|
-
'
|
|
251
|
-
'
|
|
252
|
-
'
|
|
253
|
-
'
|
|
254
|
-
'
|
|
255
|
-
'
|
|
256
|
-
'
|
|
257
|
-
'
|
|
258
|
-
'
|
|
259
|
-
'
|
|
293
|
+
enforceForRenamedProperties: true;
|
|
294
|
+
}];
|
|
295
|
+
'prefer-exponentiation-operator': "error";
|
|
296
|
+
'prefer-named-capture-group': undefined;
|
|
297
|
+
'prefer-numeric-literals': "error";
|
|
298
|
+
'prefer-object-has-own': "error";
|
|
299
|
+
'prefer-object-spread': "error";
|
|
300
|
+
'prefer-promise-reject-errors': "error";
|
|
301
|
+
'prefer-regex-literals': ["error", {
|
|
302
|
+
disallowRedundantWrapping: true;
|
|
303
|
+
}];
|
|
304
|
+
'prefer-rest-params': "error";
|
|
305
|
+
'prefer-spread': "error";
|
|
306
|
+
'prefer-template': "error";
|
|
307
|
+
'preserve-caught-error': "error";
|
|
308
|
+
'require-await': undefined;
|
|
309
|
+
'require-unicode-regexp': undefined;
|
|
310
|
+
'require-yield': "error";
|
|
311
|
+
'sort-imports': undefined;
|
|
312
|
+
'sort-keys': undefined;
|
|
313
|
+
'sort-vars': "error";
|
|
314
|
+
'symbol-description': "error";
|
|
315
|
+
'unicode-bom': ["error", "never"];
|
|
316
|
+
'use-isnan': ["error", {
|
|
260
317
|
enforceForIndexOf: true;
|
|
261
318
|
enforceForSwitchCase: true;
|
|
262
319
|
}];
|
|
263
|
-
'
|
|
320
|
+
'valid-typeof': ["error", {
|
|
264
321
|
requireStringLiterals: true;
|
|
265
322
|
}];
|
|
266
|
-
'
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
323
|
+
'vars-on-top': "error";
|
|
324
|
+
complexity: ["error", {
|
|
325
|
+
variant: "modified";
|
|
326
|
+
max: number;
|
|
327
|
+
}];
|
|
328
|
+
curly: "error";
|
|
329
|
+
eqeqeq: ["error", "smart"];
|
|
330
|
+
radix: "error";
|
|
331
|
+
yoda: ["error", "never"];
|
|
332
|
+
};
|
|
333
|
+
} | {
|
|
334
|
+
plugins: "jsdoc"[];
|
|
335
|
+
rules: {
|
|
336
|
+
'jsdoc/check-access': "error";
|
|
337
|
+
'jsdoc/check-property-names': "error";
|
|
338
|
+
'jsdoc/check-tag-names': ["error", {
|
|
339
|
+
typed: true;
|
|
340
|
+
}];
|
|
341
|
+
'jsdoc/empty-tags': "error";
|
|
342
|
+
'jsdoc/implements-on-classes': "error";
|
|
343
|
+
'jsdoc/no-defaults': "error";
|
|
344
|
+
'jsdoc/require-param': "error";
|
|
345
|
+
'jsdoc/require-param-name': "error";
|
|
346
|
+
'jsdoc/require-property': "error";
|
|
347
|
+
'jsdoc/require-property-description': "error";
|
|
348
|
+
'jsdoc/require-property-name': "error";
|
|
349
|
+
'jsdoc/require-returns-description': "error";
|
|
350
|
+
'jsdoc/require-yields': "error";
|
|
351
|
+
'jsdoc/require-param-description': undefined;
|
|
352
|
+
'jsdoc/require-param-type': undefined;
|
|
353
|
+
'jsdoc/require-property-type': undefined;
|
|
354
|
+
'jsdoc/require-returns': undefined;
|
|
355
|
+
'jsdoc/require-returns-type': undefined;
|
|
356
|
+
'jsdoc/require-throws-description': undefined;
|
|
357
|
+
'jsdoc/require-throws-type': undefined;
|
|
358
|
+
'jsdoc/require-yields-description': undefined;
|
|
359
|
+
'jsdoc/require-yields-type': undefined;
|
|
274
360
|
};
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
|
|
361
|
+
} | {
|
|
362
|
+
plugins: "node"[];
|
|
363
|
+
rules: {
|
|
364
|
+
'node/handle-callback-err': ["error", string];
|
|
365
|
+
'node/no-exports-assign': "error";
|
|
366
|
+
'node/no-new-require': "error";
|
|
367
|
+
'node/no-path-concat': "error";
|
|
368
|
+
'node/callback-return': undefined;
|
|
369
|
+
'node/global-require': undefined;
|
|
370
|
+
'node/no-mixed-requires': undefined;
|
|
371
|
+
'node/no-process-env': undefined;
|
|
372
|
+
'node/no-sync': undefined;
|
|
373
|
+
'node/no-top-level-await': undefined;
|
|
374
|
+
};
|
|
375
|
+
} | {
|
|
376
|
+
plugins: "oxc"[];
|
|
377
|
+
rules: {
|
|
378
|
+
'oxc/approx-constant': "error";
|
|
379
|
+
'oxc/bad-array-method-on-arguments': "error";
|
|
380
|
+
'oxc/bad-bitwise-operator': "error";
|
|
381
|
+
'oxc/bad-char-at-comparison': "error";
|
|
382
|
+
'oxc/bad-comparison-sequence': "error";
|
|
383
|
+
'oxc/bad-match-all-arg': "error";
|
|
384
|
+
'oxc/bad-min-max-func': "error";
|
|
385
|
+
'oxc/bad-object-literal-comparison': "error";
|
|
386
|
+
'oxc/bad-replace-all-arg': "error";
|
|
387
|
+
'oxc/branches-sharing-code': "error";
|
|
388
|
+
'oxc/const-comparisons': "error";
|
|
389
|
+
'oxc/double-comparisons': "error";
|
|
390
|
+
'oxc/erasing-op': "error";
|
|
391
|
+
'oxc/misrefactored-assign-op': "error";
|
|
392
|
+
'oxc/missing-throw': "error";
|
|
393
|
+
'oxc/no-accumulating-spread': "error";
|
|
394
|
+
'oxc/no-async-await': undefined;
|
|
395
|
+
'oxc/no-async-endpoint-handlers': undefined;
|
|
396
|
+
'oxc/no-barrel-file': ["error", {
|
|
397
|
+
threshold: number;
|
|
398
|
+
}];
|
|
399
|
+
'oxc/no-const-enum': "error";
|
|
400
|
+
'oxc/no-map-spread': undefined;
|
|
401
|
+
'oxc/no-optional-chaining': undefined;
|
|
402
|
+
'oxc/no-rest-spread-properties': undefined;
|
|
403
|
+
'oxc/no-this-in-exported-function': "error";
|
|
404
|
+
'oxc/number-arg-out-of-range': "error";
|
|
405
|
+
'oxc/only-used-in-recursion': "error";
|
|
406
|
+
'oxc/uninvoked-array-callback': "error";
|
|
407
|
+
};
|
|
408
|
+
} | {
|
|
409
|
+
plugins: "unicorn"[];
|
|
410
|
+
rules: {
|
|
278
411
|
'unicorn/catch-error-name': "error";
|
|
279
412
|
'unicorn/consistent-assert': "error";
|
|
280
413
|
'unicorn/consistent-date-clone': "error";
|
|
@@ -283,16 +416,20 @@ declare const baseConfig: {
|
|
|
283
416
|
'unicorn/consistent-function-scoping': "error";
|
|
284
417
|
'unicorn/consistent-template-literal-escape': "error";
|
|
285
418
|
'unicorn/custom-error-definition': undefined;
|
|
286
|
-
'unicorn/empty-brace-spaces':
|
|
419
|
+
'unicorn/empty-brace-spaces': "error";
|
|
287
420
|
'unicorn/error-message': "error";
|
|
288
421
|
'unicorn/escape-case': "error";
|
|
289
422
|
'unicorn/explicit-length-check': "error";
|
|
423
|
+
'unicorn/explicit-timer-delay': "error";
|
|
290
424
|
'unicorn/filename-case': undefined;
|
|
425
|
+
'unicorn/import-style': "error";
|
|
426
|
+
'unicorn/max-nested-calls': undefined;
|
|
291
427
|
'unicorn/new-for-builtins': "error";
|
|
292
428
|
'unicorn/no-abusive-eslint-disable': "error";
|
|
293
429
|
'unicorn/no-accessor-recursion': "error";
|
|
294
430
|
'unicorn/no-anonymous-default-export': "error";
|
|
295
431
|
'unicorn/no-array-callback-reference': undefined;
|
|
432
|
+
'unicorn/no-array-fill-with-reference-type': "error";
|
|
296
433
|
'unicorn/no-array-for-each': "error";
|
|
297
434
|
'unicorn/no-array-method-this-argument': "error";
|
|
298
435
|
'unicorn/no-array-reduce': "error";
|
|
@@ -300,6 +437,7 @@ declare const baseConfig: {
|
|
|
300
437
|
'unicorn/no-array-sort': "error";
|
|
301
438
|
'unicorn/no-await-expression-member': "error";
|
|
302
439
|
'unicorn/no-await-in-promise-methods': "error";
|
|
440
|
+
'unicorn/no-confusing-array-with': "error";
|
|
303
441
|
'unicorn/no-console-spaces': "error";
|
|
304
442
|
'unicorn/no-document-cookie': "error";
|
|
305
443
|
'unicorn/no-empty-file': "error";
|
|
@@ -352,9 +490,7 @@ declare const baseConfig: {
|
|
|
352
490
|
'unicorn/prefer-array-flat-map': "error";
|
|
353
491
|
'unicorn/prefer-array-index-of': "error";
|
|
354
492
|
'unicorn/prefer-array-some': "error";
|
|
355
|
-
'unicorn/prefer-at':
|
|
356
|
-
checkAllIndexAccess: false;
|
|
357
|
-
}];
|
|
493
|
+
'unicorn/prefer-at': "error";
|
|
358
494
|
'unicorn/prefer-bigint-literals': "error";
|
|
359
495
|
'unicorn/prefer-blob-reading-methods': "error";
|
|
360
496
|
'unicorn/prefer-class-fields': "error";
|
|
@@ -367,6 +503,7 @@ declare const baseConfig: {
|
|
|
367
503
|
'unicorn/prefer-dom-node-remove': "error";
|
|
368
504
|
'unicorn/prefer-dom-node-text-content': "error";
|
|
369
505
|
'unicorn/prefer-event-target': "error";
|
|
506
|
+
'unicorn/prefer-export-from': "error";
|
|
370
507
|
'unicorn/prefer-global-this': "error";
|
|
371
508
|
'unicorn/prefer-import-meta-properties': undefined;
|
|
372
509
|
'unicorn/prefer-includes': "error";
|
|
@@ -380,10 +517,9 @@ declare const baseConfig: {
|
|
|
380
517
|
'unicorn/prefer-native-coercion-functions': "error";
|
|
381
518
|
'unicorn/prefer-negative-index': "error";
|
|
382
519
|
'unicorn/prefer-node-protocol': "error";
|
|
520
|
+
'unicorn/prefer-number-coercion': undefined;
|
|
383
521
|
'unicorn/prefer-number-properties': "error";
|
|
384
|
-
'unicorn/prefer-object-from-entries':
|
|
385
|
-
functions: never[];
|
|
386
|
-
}];
|
|
522
|
+
'unicorn/prefer-object-from-entries': "error";
|
|
387
523
|
'unicorn/prefer-optional-catch-binding': "error";
|
|
388
524
|
'unicorn/prefer-prototype-methods': "error";
|
|
389
525
|
'unicorn/prefer-query-selector': "error";
|
|
@@ -392,15 +528,14 @@ declare const baseConfig: {
|
|
|
392
528
|
'unicorn/prefer-response-static-json': "error";
|
|
393
529
|
'unicorn/prefer-set-has': "error";
|
|
394
530
|
'unicorn/prefer-set-size': "error";
|
|
531
|
+
'unicorn/prefer-single-call': "error";
|
|
395
532
|
'unicorn/prefer-spread': "error";
|
|
396
533
|
'unicorn/prefer-string-raw': "error";
|
|
397
534
|
'unicorn/prefer-string-replace-all': "error";
|
|
398
535
|
'unicorn/prefer-string-slice': "error";
|
|
399
536
|
'unicorn/prefer-string-starts-ends-with': "error";
|
|
400
537
|
'unicorn/prefer-string-trim-start-end': "error";
|
|
401
|
-
'unicorn/prefer-structured-clone':
|
|
402
|
-
functions: never[];
|
|
403
|
-
}];
|
|
538
|
+
'unicorn/prefer-structured-clone': "error";
|
|
404
539
|
'unicorn/prefer-ternary': ["error", "only-single-line"];
|
|
405
540
|
'unicorn/prefer-top-level-await': undefined;
|
|
406
541
|
'unicorn/prefer-type-error': "error";
|
|
@@ -410,135 +545,17 @@ declare const baseConfig: {
|
|
|
410
545
|
'unicorn/require-module-specifiers': "error";
|
|
411
546
|
'unicorn/require-number-to-fixed-digits-argument': "error";
|
|
412
547
|
'unicorn/require-post-message-target-origin': undefined;
|
|
413
|
-
'unicorn/switch-case-braces':
|
|
548
|
+
'unicorn/switch-case-braces': "error";
|
|
414
549
|
'unicorn/switch-case-break-position': "error";
|
|
415
550
|
'unicorn/text-encoding-identifier-case': "error";
|
|
416
551
|
'unicorn/throw-new-error': "off";
|
|
417
|
-
'unicorn/import-style': undefined;
|
|
418
|
-
'unicorn/max-nested-calls': undefined;
|
|
419
|
-
'unicorn/no-array-fill-with-reference-type': undefined;
|
|
420
|
-
'unicorn/prefer-export-from': undefined;
|
|
421
|
-
'unicorn/prefer-number-coercion': undefined;
|
|
422
|
-
'unicorn/prefer-single-call': undefined;
|
|
423
|
-
'unicorn/explicit-timer-delay': undefined;
|
|
424
|
-
'unicorn/no-confusing-array-with': undefined;
|
|
425
|
-
};
|
|
426
|
-
}, {
|
|
427
|
-
readonly plugins: ["import"];
|
|
428
|
-
readonly rules: {
|
|
429
|
-
'import/consistent-type-specifier-style': undefined;
|
|
430
|
-
'import/default': "error";
|
|
431
|
-
'import/export': "error";
|
|
432
|
-
'import/exports-last': undefined;
|
|
433
|
-
'import/extensions': undefined;
|
|
434
|
-
'import/first': ["error", "disable-absolute-first"];
|
|
435
|
-
'import/group-exports': undefined;
|
|
436
|
-
'import/max-dependencies': undefined;
|
|
437
|
-
'import/named': undefined;
|
|
438
|
-
'import/namespace': "error";
|
|
439
|
-
'import/no-absolute-path': "error";
|
|
440
|
-
'import/no-amd': "error";
|
|
441
|
-
'import/no-anonymous-default-export': "error";
|
|
442
|
-
'import/no-commonjs': undefined;
|
|
443
|
-
'import/no-cycle': "error";
|
|
444
|
-
'import/no-default-export': undefined;
|
|
445
|
-
'import/no-duplicates': "error";
|
|
446
|
-
'import/no-dynamic-require': "error";
|
|
447
|
-
'import/no-empty-named-blocks': "error";
|
|
448
|
-
'import/no-mutable-exports': undefined;
|
|
449
|
-
'import/no-named-as-default': "error";
|
|
450
|
-
'import/no-named-as-default-member': "error";
|
|
451
|
-
'import/no-named-default': "error";
|
|
452
|
-
'import/no-named-export': undefined;
|
|
453
|
-
'import/no-namespace': undefined;
|
|
454
|
-
'import/no-nodejs-modules': undefined;
|
|
455
|
-
'import/no-relative-parent-imports': undefined;
|
|
456
|
-
'import/no-self-import': "error";
|
|
457
|
-
'import/no-unassigned-import': undefined;
|
|
458
|
-
'import/no-webpack-loader-syntax': "error";
|
|
459
|
-
'import/prefer-default-export': undefined;
|
|
460
|
-
'import/unambiguous': undefined;
|
|
461
|
-
'import/newline-after-import': undefined;
|
|
462
|
-
};
|
|
463
|
-
}, {
|
|
464
|
-
readonly plugins: ["node"];
|
|
465
|
-
readonly rules: {
|
|
466
|
-
'node/handle-callback-err': "error";
|
|
467
|
-
'node/no-exports-assign': "error";
|
|
468
|
-
'node/no-new-require': "error";
|
|
469
|
-
'node/no-path-concat': "error";
|
|
470
|
-
'node/callback-return': undefined;
|
|
471
|
-
'node/global-require': undefined;
|
|
472
|
-
'node/no-mixed-requires': undefined;
|
|
473
|
-
'node/no-process-env': undefined;
|
|
474
|
-
'node/no-sync': undefined;
|
|
475
|
-
};
|
|
476
|
-
}, {
|
|
477
|
-
readonly plugins: ["oxc"];
|
|
478
|
-
readonly rules: {
|
|
479
|
-
'oxc/approx-constant': "error";
|
|
480
|
-
'oxc/bad-array-method-on-arguments': "error";
|
|
481
|
-
'oxc/bad-bitwise-operator': "error";
|
|
482
|
-
'oxc/bad-char-at-comparison': "error";
|
|
483
|
-
'oxc/bad-comparison-sequence': "error";
|
|
484
|
-
'oxc/bad-min-max-func': "error";
|
|
485
|
-
'oxc/bad-object-literal-comparison': "error";
|
|
486
|
-
'oxc/bad-replace-all-arg': "error";
|
|
487
|
-
'oxc/branches-sharing-code': "error";
|
|
488
|
-
'oxc/const-comparisons': "error";
|
|
489
|
-
'oxc/double-comparisons': "error";
|
|
490
|
-
'oxc/erasing-op': "error";
|
|
491
|
-
'oxc/misrefactored-assign-op': "error";
|
|
492
|
-
'oxc/missing-throw': "error";
|
|
493
|
-
'oxc/no-accumulating-spread': "error";
|
|
494
|
-
'oxc/no-async-await': undefined;
|
|
495
|
-
'oxc/no-async-endpoint-handlers': undefined;
|
|
496
|
-
'oxc/no-barrel-file': ["error", {
|
|
497
|
-
threshold: number;
|
|
498
|
-
}];
|
|
499
|
-
'oxc/no-const-enum': "error";
|
|
500
|
-
'oxc/no-map-spread': undefined;
|
|
501
|
-
'oxc/no-optional-chaining': undefined;
|
|
502
|
-
'oxc/no-rest-spread-properties': undefined;
|
|
503
|
-
'oxc/no-this-in-exported-function': "error";
|
|
504
|
-
'oxc/number-arg-out-of-range': "error";
|
|
505
|
-
'oxc/only-used-in-recursion': "error";
|
|
506
|
-
'oxc/uninvoked-array-callback': "error";
|
|
507
|
-
};
|
|
508
|
-
}, {
|
|
509
|
-
readonly plugins: ["jsdoc"];
|
|
510
|
-
readonly rules: {
|
|
511
|
-
'jsdoc/check-access': "error";
|
|
512
|
-
'jsdoc/check-property-names': "error";
|
|
513
|
-
'jsdoc/check-tag-names': ["error", {
|
|
514
|
-
typed: true;
|
|
515
|
-
}];
|
|
516
|
-
'jsdoc/empty-tags': "error";
|
|
517
|
-
'jsdoc/implements-on-classes': "error";
|
|
518
|
-
'jsdoc/no-defaults': "error";
|
|
519
|
-
'jsdoc/require-param': "error";
|
|
520
|
-
'jsdoc/require-param-name': "error";
|
|
521
|
-
'jsdoc/require-property': "error";
|
|
522
|
-
'jsdoc/require-property-description': "error";
|
|
523
|
-
'jsdoc/require-property-name': "error";
|
|
524
|
-
'jsdoc/require-returns-description': "error";
|
|
525
|
-
'jsdoc/require-yields': "error";
|
|
526
|
-
'jsdoc/require-param-description': undefined;
|
|
527
|
-
'jsdoc/require-param-type': undefined;
|
|
528
|
-
'jsdoc/require-property-type': undefined;
|
|
529
|
-
'jsdoc/require-returns': undefined;
|
|
530
|
-
'jsdoc/require-returns-type': undefined;
|
|
531
|
-
'jsdoc/require-throws-description': undefined;
|
|
532
|
-
'jsdoc/require-throws-type': undefined;
|
|
533
|
-
'jsdoc/require-yields-description': undefined;
|
|
534
|
-
'jsdoc/require-yields-type': undefined;
|
|
535
552
|
};
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
}];
|
|
541
|
-
|
|
553
|
+
} | {
|
|
554
|
+
jsPlugins: {
|
|
555
|
+
name: string;
|
|
556
|
+
specifier: string;
|
|
557
|
+
}[];
|
|
558
|
+
rules: {
|
|
542
559
|
'zod/array-style': ["error", {
|
|
543
560
|
style: "function";
|
|
544
561
|
}];
|
|
@@ -596,8 +613,8 @@ declare const baseConfig: {
|
|
|
596
613
|
'zod/no-unknown-schema': undefined;
|
|
597
614
|
'zod/require-error-message': undefined;
|
|
598
615
|
};
|
|
599
|
-
}];
|
|
600
|
-
|
|
616
|
+
})[];
|
|
617
|
+
ignorePatterns: string[];
|
|
601
618
|
};
|
|
602
619
|
//#endregion
|
|
603
620
|
export { baseConfig };
|