@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.d.mts CHANGED
@@ -1,208 +1,255 @@
1
1
  //#region src/base.d.ts
2
2
  declare const baseConfig: {
3
- readonly env: {
4
- readonly browser: true;
5
- readonly node: true;
3
+ env: {
4
+ browser: true;
5
+ node: true;
6
6
  };
7
- readonly options: {
8
- readonly denyWarnings: true;
9
- readonly reportUnusedDisableDirectives: "deny";
7
+ options: {
8
+ denyWarnings: true;
9
+ reportUnusedDisableDirectives: "deny";
10
10
  };
11
- readonly categories: {
12
- readonly nursery: "off";
13
- readonly pedantic: "off";
14
- readonly correctness: "off";
15
- readonly perf: "off";
16
- readonly style: "off";
17
- readonly restriction: "off";
18
- readonly suspicious: "off";
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
- readonly extends: [{
21
- readonly plugins: ["eslint"];
22
- readonly rules: {
23
- 'eslint/accessor-pairs': ["error", {
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
- 'eslint/array-callback-return': "error";
28
- 'eslint/arrow-body-style': ["error", "as-needed", {
29
- requireReturnForObjectLiteral: boolean;
30
- }];
31
- 'eslint/block-scoped-var': "error";
32
- 'eslint/capitalized-comments': "error";
33
- 'eslint/class-methods-use-this': undefined;
34
- 'eslint/complexity': ["error", {
35
- variant: "modified";
36
- max: number;
37
- }];
38
- 'eslint/constructor-super': "error";
39
- 'eslint/curly': "error";
40
- 'eslint/default-case': undefined;
41
- 'eslint/default-case-last': "error";
42
- 'eslint/default-param-last': "error";
43
- 'eslint/eqeqeq': ["error", "smart"];
44
- 'eslint/for-direction': "error";
45
- 'eslint/func-name-matching': undefined;
46
- 'eslint/func-names': ["error", "always", {
47
- generators: string;
48
- }];
49
- 'eslint/func-style': ["error", "declaration", {
50
- allowTypeAnnotation: boolean;
51
- }];
52
- 'eslint/getter-return': "error";
53
- 'eslint/grouped-accessor-pairs': "error";
54
- 'eslint/guard-for-in': "error";
55
- 'eslint/id-length': undefined;
56
- 'eslint/init-declarations': undefined;
57
- 'eslint/logical-assignment-operators': ["error", "always"];
58
- 'eslint/max-classes-per-file': undefined;
59
- 'eslint/max-depth': undefined;
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
- 'eslint/no-alert': "error";
71
- 'eslint/no-array-constructor': "error";
72
- 'eslint/no-async-promise-executor': "error";
73
- 'eslint/no-await-in-loop': "error";
74
- 'eslint/no-bitwise': undefined;
75
- 'eslint/no-caller': "error";
76
- 'eslint/no-case-declarations': "error";
77
- 'eslint/no-class-assign': "error";
78
- 'eslint/no-compare-neg-zero': "error";
79
- 'eslint/no-cond-assign': ["error", "always"];
80
- 'eslint/no-console': undefined;
81
- 'eslint/no-const-assign': "error";
82
- 'eslint/no-constant-binary-expression': "error";
83
- 'eslint/no-constant-condition': ["error", {
84
- checkLoops: "allExceptWhileTrue";
85
- }];
86
- 'eslint/no-constructor-return': "error";
87
- 'eslint/no-continue': undefined;
88
- 'eslint/no-control-regex': "error";
89
- 'eslint/no-debugger': "error";
90
- 'eslint/no-delete-var': "error";
91
- 'eslint/no-div-regex': "error";
92
- 'eslint/no-dupe-class-members': "error";
93
- 'eslint/no-dupe-else-if': "error";
94
- 'eslint/no-dupe-keys': "error";
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
- 'eslint/no-else-return': ["error", {
129
+ 'no-else-return': ["error", {
101
130
  allowElseIf: false;
102
131
  }];
103
- 'eslint/no-empty': ["error", {
132
+ 'no-empty': ["error", {
104
133
  allowEmptyCatch: true;
105
134
  }];
106
- 'eslint/no-empty-character-class': "error";
107
- 'eslint/no-empty-function': undefined;
108
- 'eslint/no-empty-pattern': "error";
109
- 'eslint/no-empty-static-block': "error";
110
- 'eslint/no-eq-null': undefined;
111
- 'eslint/no-eval': "error";
112
- 'eslint/no-ex-assign': "error";
113
- 'eslint/no-extend-native': "error";
114
- 'eslint/no-extra-bind': "error";
115
- 'eslint/no-extra-boolean-cast': ["error", {
116
- enforceForInnerExpressions: true;
117
- }];
118
- 'eslint/no-extra-label': "error";
119
- 'eslint/no-fallthrough': "error";
120
- 'eslint/no-func-assign': "error";
121
- 'eslint/no-global-assign': "error";
122
- 'eslint/no-implicit-coercion': undefined;
123
- 'eslint/no-import-assign': "error";
124
- 'eslint/no-inline-comments': undefined;
125
- 'eslint/no-inner-declarations': undefined;
126
- 'eslint/no-invalid-regexp': "error";
127
- 'eslint/no-irregular-whitespace': "error";
128
- 'eslint/no-iterator': "error";
129
- 'eslint/no-label-var': "error";
130
- 'eslint/no-labels': ["error", {
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
- 'eslint/no-lone-blocks': "error";
135
- 'eslint/no-lonely-if': "error";
136
- 'eslint/no-loop-func': "error";
137
- 'eslint/no-loss-of-precision': "error";
138
- 'eslint/no-magic-numbers': undefined;
139
- 'eslint/no-misleading-character-class': "error";
140
- 'eslint/no-multi-assign': "error";
141
- 'eslint/no-multi-str': "error";
142
- 'eslint/no-negated-condition': "error";
143
- 'eslint/no-nested-ternary': undefined;
144
- 'eslint/no-new': "error";
145
- 'eslint/no-new-func': "error";
146
- 'eslint/no-new-native-nonconstructor': "error";
147
- 'eslint/no-new-wrappers': "error";
148
- 'eslint/no-nonoctal-decimal-escape': "error";
149
- 'eslint/no-obj-calls': "error";
150
- 'eslint/no-object-constructor': "error";
151
- 'eslint/no-param-reassign': undefined;
152
- 'eslint/no-plusplus': undefined;
153
- 'eslint/no-promise-executor-return': undefined;
154
- 'eslint/no-proto': "error";
155
- 'eslint/no-prototype-builtins': "error";
156
- 'eslint/no-redeclare': "error";
157
- 'eslint/no-regex-spaces': "error";
158
- 'eslint/no-restricted-exports': undefined;
159
- 'eslint/no-restricted-globals': ["error", {
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
- 'eslint/no-restricted-imports': undefined;
167
- 'eslint/no-restricted-properties': undefined;
168
- 'eslint/no-return-assign': "error";
169
- 'eslint/no-script-url': "error";
170
- 'eslint/no-self-assign': ["error", {
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
- 'eslint/no-self-compare': "error";
174
- 'eslint/no-sequences': "error";
175
- 'eslint/no-setter-return': "error";
176
- 'eslint/no-shadow': undefined;
177
- 'eslint/no-shadow-restricted-names': "error";
178
- 'eslint/no-sparse-arrays': "error";
179
- 'eslint/no-template-curly-in-string': "error";
180
- 'eslint/no-ternary': undefined;
181
- 'eslint/no-this-before-super': "error";
182
- 'eslint/no-throw-literal': "off";
183
- 'eslint/no-unassigned-vars': "error";
184
- 'eslint/no-undef': undefined;
185
- 'eslint/no-undefined': undefined;
186
- 'eslint/no-underscore-dangle': undefined;
187
- 'eslint/no-unexpected-multiline': "error";
188
- 'eslint/no-unmodified-loop-condition': "error";
189
- 'eslint/no-unneeded-ternary': ["error", {
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
- 'eslint/no-unreachable': "error";
193
- 'eslint/no-unsafe-finally': "error";
194
- 'eslint/no-unsafe-negation': "error";
195
- 'eslint/no-unsafe-optional-chaining': ["error", {
196
- disallowArithmeticOperators: true;
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
- 'eslint/no-unused-labels': "error";
204
- 'eslint/no-unused-private-class-members': "error";
205
- 'eslint/no-unused-vars': ["error", {
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
- 'eslint/no-use-before-define': undefined;
214
- 'eslint/no-useless-assignment': undefined;
215
- 'eslint/no-useless-backreference': "error";
216
- 'eslint/no-useless-call': "error";
217
- 'eslint/no-useless-catch': "error";
218
- 'eslint/no-useless-computed-key': "error";
219
- 'eslint/no-useless-concat': "error";
220
- 'eslint/no-useless-constructor': "error";
221
- 'eslint/no-useless-escape': "error";
222
- 'eslint/no-useless-rename': "error";
223
- 'eslint/no-useless-return': "error";
224
- 'eslint/no-var': "error";
225
- 'eslint/no-void': undefined;
226
- 'eslint/no-warning-comments': undefined;
227
- 'eslint/no-with': "error";
228
- 'eslint/object-shorthand': "error";
229
- 'eslint/operator-assignment': ["error", "always"];
230
- 'eslint/prefer-const': ["error", {
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
- 'eslint/prefer-destructuring': ["error", {
289
+ 'prefer-destructuring': ["error", {
235
290
  array: true;
236
291
  object: true;
237
292
  }, {
238
- enforceForRenamedProperties: boolean;
239
- }];
240
- 'eslint/prefer-exponentiation-operator': "error";
241
- 'eslint/prefer-numeric-literals': "error";
242
- 'eslint/prefer-object-has-own': "error";
243
- 'eslint/prefer-object-spread': "error";
244
- 'eslint/prefer-promise-reject-errors': "error";
245
- 'eslint/prefer-regex-literals': undefined;
246
- 'eslint/prefer-rest-params': "error";
247
- 'eslint/prefer-spread': "error";
248
- 'eslint/prefer-template': "error";
249
- 'eslint/preserve-caught-error': "error";
250
- 'eslint/radix': "error";
251
- 'eslint/require-await': undefined;
252
- 'eslint/require-unicode-regexp': undefined;
253
- 'eslint/require-yield': "error";
254
- 'eslint/sort-imports': undefined;
255
- 'eslint/sort-keys': undefined;
256
- 'eslint/sort-vars': "error";
257
- 'eslint/symbol-description': "error";
258
- 'eslint/unicode-bom': ["error", "never"];
259
- 'eslint/use-isnan': ["error", {
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
- 'eslint/valid-typeof': ["error", {
320
+ 'valid-typeof': ["error", {
264
321
  requireStringLiterals: true;
265
322
  }];
266
- 'eslint/vars-on-top': "error";
267
- 'eslint/yoda': ["error", "never"];
268
- 'eslint/no-implicit-globals': undefined;
269
- 'eslint/prefer-arrow-callback': undefined;
270
- 'eslint/id-match': undefined;
271
- 'eslint/no-implied-eval': undefined;
272
- 'eslint/prefer-named-capture-group': undefined;
273
- 'eslint/no-unreachable-loop': undefined;
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
- readonly plugins: ["unicorn"];
277
- readonly rules: {
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': undefined;
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': ["error", {
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': ["error", {
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': ["error", {
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': ["error", "always"];
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
- readonly jsPlugins: [{
538
- readonly name: "zod";
539
- readonly specifier: string;
540
- }];
541
- readonly rules: {
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
- readonly ignorePatterns: string[];
616
+ })[];
617
+ ignorePatterns: string[];
601
618
  };
602
619
  //#endregion
603
620
  export { baseConfig };