eslint-config-setup 0.3.3 → 0.5.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.
@@ -1,11 +1,9 @@
1
1
  {
2
2
  "$schema": "./node_modules/oxlint/configuration_schema.json",
3
3
  "plugins": [
4
- "typescript",
5
4
  "import",
6
5
  "unicorn",
7
- "jsdoc",
8
- "jsx-a11y"
6
+ "jsdoc"
9
7
  ],
10
8
  "categories": {
11
9
  "correctness": "off"
@@ -16,6 +14,7 @@
16
14
  "rules": {
17
15
  "constructor-super": "error",
18
16
  "for-direction": "error",
17
+ "getter-return": "error",
19
18
  "no-async-promise-executor": "error",
20
19
  "no-case-declarations": "error",
21
20
  "no-class-assign": "error",
@@ -55,30 +54,31 @@
55
54
  "no-sparse-arrays": "error",
56
55
  "no-this-before-super": "error",
57
56
  "no-unassigned-vars": "error",
57
+ "no-unreachable": "error",
58
58
  "no-unsafe-finally": "error",
59
59
  "no-unsafe-negation": "error",
60
60
  "no-unsafe-optional-chaining": "error",
61
61
  "no-unused-labels": "error",
62
62
  "no-unused-private-class-members": "error",
63
- "no-unused-vars": [
64
- "error",
65
- {
66
- "args": "all",
67
- "argsIgnorePattern": "^_",
68
- "caughtErrors": "all",
69
- "caughtErrorsIgnorePattern": "^_",
70
- "destructuredArrayIgnorePattern": "^_",
71
- "varsIgnorePattern": "^_",
72
- "ignoreRestSiblings": true
73
- }
74
- ],
63
+ "no-unused-vars": "error",
75
64
  "no-useless-catch": "error",
76
65
  "no-useless-escape": "error",
77
66
  "no-with": "error",
78
67
  "preserve-caught-error": "error",
79
68
  "require-yield": "error",
80
- "use-isnan": "error",
81
- "valid-typeof": "error",
69
+ "use-isnan": [
70
+ "error",
71
+ {
72
+ "enforceForIndexOf": true,
73
+ "enforceForSwitchCase": true
74
+ }
75
+ ],
76
+ "valid-typeof": [
77
+ "error",
78
+ {
79
+ "requireStringLiterals": true
80
+ }
81
+ ],
82
82
  "accessor-pairs": [
83
83
  "error",
84
84
  {
@@ -101,7 +101,12 @@
101
101
  "getBeforeSet"
102
102
  ],
103
103
  "no-useless-rename": "error",
104
- "no-useless-computed-key": "error",
104
+ "no-useless-computed-key": [
105
+ "error",
106
+ {
107
+ "enforceForClassMembers": true
108
+ }
109
+ ],
105
110
  "no-eval": "error",
106
111
  "no-alert": "error",
107
112
  "no-caller": "error",
@@ -112,6 +117,7 @@
112
117
  "no-proto": "error",
113
118
  "no-iterator": "error",
114
119
  "no-script-url": "error",
120
+ "no-implicit-globals": "error",
115
121
  "eqeqeq": [
116
122
  "error",
117
123
  "smart"
@@ -120,7 +126,12 @@
120
126
  "default-case-last": "error",
121
127
  "radix": "error",
122
128
  "yoda": "error",
123
- "no-sequences": "error",
129
+ "no-sequences": [
130
+ "error",
131
+ {
132
+ "allowInParentheses": false
133
+ }
134
+ ],
124
135
  "no-new": "error",
125
136
  "no-labels": "error",
126
137
  "no-extra-bind": "error",
@@ -128,7 +139,53 @@
128
139
  "no-useless-call": "error",
129
140
  "no-useless-concat": "error",
130
141
  "no-useless-return": "error",
142
+ "no-return-assign": [
143
+ "error",
144
+ "always"
145
+ ],
131
146
  "no-multi-str": "error",
147
+ "prefer-regex-literals": [
148
+ "error",
149
+ {
150
+ "disallowRedundantWrapping": true
151
+ }
152
+ ],
153
+ "complexity": [
154
+ "error",
155
+ 10
156
+ ],
157
+ "max-depth": [
158
+ "error",
159
+ 3
160
+ ],
161
+ "max-nested-callbacks": [
162
+ "error",
163
+ 2
164
+ ],
165
+ "max-params": [
166
+ "error",
167
+ 3
168
+ ],
169
+ "max-statements": [
170
+ "error",
171
+ 15
172
+ ],
173
+ "max-lines-per-function": [
174
+ "error",
175
+ {
176
+ "max": 100,
177
+ "skipBlankLines": true,
178
+ "skipComments": true
179
+ }
180
+ ],
181
+ "max-lines": [
182
+ "error",
183
+ {
184
+ "max": 300,
185
+ "skipBlankLines": true,
186
+ "skipComments": true
187
+ }
188
+ ],
132
189
  "no-var": "error",
133
190
  "prefer-const": [
134
191
  "error",
@@ -140,96 +197,55 @@
140
197
  "prefer-object-spread": "error",
141
198
  "prefer-rest-params": "error",
142
199
  "prefer-spread": "error",
143
- "prefer-template": "error",
144
200
  "symbol-description": "error",
145
- "@typescript-eslint/ban-ts-comment": [
146
- "error",
147
- {
148
- "minimumDescriptionLength": 10
149
- }
150
- ],
151
- "no-array-constructor": "error",
152
- "@typescript-eslint/no-duplicate-enum-values": "error",
153
- "@typescript-eslint/no-dynamic-delete": "error",
154
- "@typescript-eslint/no-empty-object-type": "error",
155
- "@typescript-eslint/no-explicit-any": [
201
+ "prefer-numeric-literals": "error",
202
+ "object-shorthand": [
156
203
  "error",
204
+ "always",
157
205
  {
158
- "fixToUnknown": true
206
+ "avoidExplicitReturnArrows": true,
207
+ "avoidQuotes": true
159
208
  }
160
209
  ],
161
- "@typescript-eslint/no-extra-non-null-assertion": "error",
162
- "@typescript-eslint/no-extraneous-class": "error",
163
- "@typescript-eslint/no-invalid-void-type": "error",
164
- "@typescript-eslint/no-misused-new": "error",
165
- "@typescript-eslint/no-namespace": "error",
166
- "@typescript-eslint/no-non-null-asserted-nullish-coalescing": "error",
167
- "@typescript-eslint/no-non-null-asserted-optional-chain": "error",
168
- "@typescript-eslint/no-non-null-assertion": "error",
169
- "@typescript-eslint/no-require-imports": "error",
170
- "@typescript-eslint/no-this-alias": "error",
171
- "@typescript-eslint/no-unnecessary-type-constraint": "error",
172
- "@typescript-eslint/no-unsafe-declaration-merging": "error",
173
- "@typescript-eslint/no-unsafe-function-type": "error",
174
- "no-unused-expressions": "error",
175
- "no-useless-constructor": "error",
176
- "@typescript-eslint/no-wrapper-object-types": "error",
177
- "@typescript-eslint/prefer-as-const": "error",
178
- "@typescript-eslint/prefer-literal-enum-member": "error",
179
- "@typescript-eslint/prefer-namespace-keyword": "error",
180
- "@typescript-eslint/triple-slash-reference": "error",
181
- "@typescript-eslint/unified-signatures": "error",
182
- "@typescript-eslint/adjacent-overload-signatures": "error",
183
- "@typescript-eslint/array-type": [
210
+ "prefer-template": "error",
211
+ "no-else-return": [
184
212
  "error",
185
213
  {
186
- "default": "array-simple"
214
+ "allowElseIf": false
187
215
  }
188
216
  ],
189
- "@typescript-eslint/ban-tslint-comment": "error",
190
- "@typescript-eslint/class-literal-property-style": "error",
191
- "@typescript-eslint/consistent-generic-constructors": "error",
192
- "@typescript-eslint/consistent-indexed-object-style": "error",
193
- "@typescript-eslint/consistent-type-assertions": "error",
194
- "@typescript-eslint/consistent-type-definitions": [
195
- "error",
196
- "type"
197
- ],
198
- "@typescript-eslint/no-confusing-non-null-assertion": "error",
199
- "no-empty-function": "error",
200
- "@typescript-eslint/no-inferrable-types": "error",
201
- "@typescript-eslint/prefer-for-of": "error",
202
- "@typescript-eslint/prefer-function-type": "error",
203
- "@typescript-eslint/consistent-type-imports": [
217
+ "no-nested-ternary": "error",
218
+ "no-unneeded-ternary": "error",
219
+ "no-negated-condition": "error",
220
+ "no-lonely-if": "error",
221
+ "no-param-reassign": [
204
222
  "error",
205
223
  {
206
- "fixStyle": "inline-type-imports"
224
+ "props": true
207
225
  }
208
226
  ],
209
- "@typescript-eslint/no-import-type-side-effects": "error",
210
- "@typescript-eslint/no-useless-empty-export": "error",
211
- "@typescript-eslint/no-unnecessary-parameter-property-assignment": "error",
212
- "no-shadow": [
227
+ "no-multi-assign": "error",
228
+ "no-implicit-coercion": "error",
229
+ "arrow-body-style": "error",
230
+ "prefer-arrow-callback": [
213
231
  "error",
214
232
  {
215
- "hoist": "all",
216
- "allow": [
217
- "resolve",
218
- "reject",
219
- "done",
220
- "next",
221
- "error"
222
- ],
223
- "ignoreTypeValueShadow": true,
224
- "ignoreFunctionTypeParameterNameValueShadow": true
233
+ "allowNamedFunctions": true
225
234
  }
226
235
  ],
227
- "import/no-duplicates": [
236
+ "logical-assignment-operators": [
228
237
  "error",
238
+ "always",
229
239
  {
230
- "prefer-inline": true
240
+ "enforceForIfStatements": true
231
241
  }
232
242
  ],
243
+ "prefer-exponentiation-operator": "error",
244
+ "prefer-named-capture-group": "error",
245
+ "require-unicode-regexp": "error",
246
+ "no-warning-comments": "warn",
247
+ "no-await-in-loop": "error",
248
+ "import/no-duplicates": "error",
233
249
  "import/no-self-import": "error",
234
250
  "import/no-cycle": [
235
251
  "error",
@@ -239,10 +255,28 @@
239
255
  ],
240
256
  "import/no-mutable-exports": "error",
241
257
  "import/first": "error",
258
+ "import/newline-after-import": "error",
242
259
  "import/no-named-as-default": "error",
243
260
  "import/no-named-as-default-member": "error",
244
261
  "import/no-empty-named-blocks": "error",
245
262
  "import/no-absolute-path": "error",
263
+ "import/no-unassigned-import": [
264
+ "error",
265
+ {
266
+ "allow": [
267
+ "@babel/polyfill",
268
+ "**/register",
269
+ "**/register.*",
270
+ "**/register/**",
271
+ "**/register/**.*",
272
+ "**/*.css",
273
+ "**/*.scss",
274
+ "**/*.sass",
275
+ "**/*.less"
276
+ ]
277
+ }
278
+ ],
279
+ "import/no-named-default": "error",
246
280
  "unicorn/no-abusive-eslint-disable": "error",
247
281
  "unicorn/no-instanceof-builtins": "error",
248
282
  "unicorn/no-invalid-remove-event-listener": "error",
@@ -252,7 +286,12 @@
252
286
  "unicorn/no-useless-length-check": "error",
253
287
  "unicorn/no-useless-spread": "error",
254
288
  "unicorn/no-useless-promise-resolve-reject": "error",
255
- "unicorn/no-useless-undefined": "error",
289
+ "unicorn/no-useless-undefined": [
290
+ "warn",
291
+ {
292
+ "checkArguments": false
293
+ }
294
+ ],
256
295
  "unicorn/no-await-in-promise-methods": "error",
257
296
  "unicorn/no-negation-in-equality-check": "error",
258
297
  "unicorn/no-thenable": "error",
@@ -270,6 +309,21 @@
270
309
  "unicorn/consistent-empty-array-spread": "error",
271
310
  "unicorn/consistent-date-clone": "error",
272
311
  "unicorn/consistent-existence-index-check": "error",
312
+ "unicorn/consistent-function-scoping": "error",
313
+ "unicorn/filename-case": [
314
+ "error",
315
+ {
316
+ "cases": {
317
+ "camelCase": true,
318
+ "pascalCase": true,
319
+ "kebabCase": true
320
+ },
321
+ "ignore": [
322
+ "__tests__"
323
+ ]
324
+ }
325
+ ],
326
+ "unicorn/no-array-reduce": "error",
273
327
  "unicorn/prefer-array-flat-map": "error",
274
328
  "unicorn/prefer-array-find": "error",
275
329
  "unicorn/prefer-array-flat": "error",
@@ -278,6 +332,7 @@
278
332
  "unicorn/prefer-at": "error",
279
333
  "unicorn/prefer-includes": "error",
280
334
  "unicorn/prefer-modern-dom-apis": "error",
335
+ "unicorn/prefer-dom-node-dataset": "error",
281
336
  "unicorn/prefer-modern-math-apis": "error",
282
337
  "unicorn/prefer-negative-index": "error",
283
338
  "unicorn/prefer-number-properties": "error",
@@ -302,6 +357,12 @@
302
357
  "unicorn/no-unreadable-array-destructuring": "error",
303
358
  "unicorn/no-zero-fractions": "error",
304
359
  "unicorn/numeric-separators-style": "error",
360
+ "unicorn/prefer-export-from": [
361
+ "error",
362
+ {
363
+ "checkUsedVariables": false
364
+ }
365
+ ],
305
366
  "unicorn/prefer-native-coercion-functions": "error",
306
367
  "unicorn/prefer-regexp-test": "error",
307
368
  "unicorn/prefer-spread": "error",
@@ -311,6 +372,19 @@
311
372
  "unicorn/prefer-optional-catch-binding": "error",
312
373
  "unicorn/prefer-date-now": "error",
313
374
  "unicorn/text-encoding-identifier-case": "error",
375
+ "unicorn/prefer-import-meta-properties": "error",
376
+ "unicorn/prefer-ternary": [
377
+ "error",
378
+ "only-single-line"
379
+ ],
380
+ "unicorn/no-useless-switch-case": "error",
381
+ "unicorn/custom-error-definition": "error",
382
+ "unicorn/prefer-default-parameters": "error",
383
+ "unicorn/prefer-logical-operator-over-ternary": "error",
384
+ "unicorn/prefer-math-min-max": "error",
385
+ "unicorn/prefer-set-size": "error",
386
+ "unicorn/explicit-length-check": "error",
387
+ "unicorn/switch-case-braces": "error",
314
388
  "jsdoc/check-access": "error",
315
389
  "jsdoc/check-property-names": "error",
316
390
  "jsdoc/check-tag-names": "error",
@@ -325,121 +399,8 @@
325
399
  "jsdoc/require-property-name": "error",
326
400
  "jsdoc/require-returns": "error",
327
401
  "jsdoc/require-returns-description": "warn",
328
- "no-else-return": [
329
- "error",
330
- {
331
- "allowElseIf": false
332
- }
333
- ],
334
- "no-nested-ternary": "error",
335
- "no-unneeded-ternary": "error",
336
- "no-negated-condition": "error",
337
- "no-lonely-if": "error",
338
- "no-param-reassign": [
339
- "error",
340
- {
341
- "props": true
342
- }
343
- ],
344
- "no-multi-assign": "error",
345
- "no-implicit-coercion": "error",
346
- "arrow-body-style": "error",
347
- "no-return-assign": [
348
- "error",
349
- "always"
350
- ],
351
- "prefer-exponentiation-operator": "error",
352
- "no-warning-comments": "warn",
353
- "no-await-in-loop": "error",
354
- "@typescript-eslint/explicit-function-return-type": [
355
- "error",
356
- {
357
- "allowExpressions": true,
358
- "allowTypedFunctionExpressions": true,
359
- "allowHigherOrderFunctions": true,
360
- "allowIIFEs": true
361
- }
362
- ],
363
- "@typescript-eslint/prefer-enum-initializers": "error",
364
- "unicorn/consistent-function-scoping": "error",
365
- "unicorn/no-array-for-each": "error",
366
- "unicorn/no-array-reduce": "error",
367
- "unicorn/prefer-ternary": [
368
- "error",
369
- "only-single-line"
370
- ],
371
- "unicorn/filename-case": [
372
- "error",
373
- {
374
- "cases": {
375
- "camelCase": true,
376
- "pascalCase": true
377
- }
378
- }
379
- ],
380
- "unicorn/no-useless-switch-case": "error",
381
- "unicorn/prefer-default-parameters": "error",
382
- "unicorn/prefer-logical-operator-over-ternary": "error",
383
- "unicorn/prefer-math-min-max": "error",
384
- "unicorn/prefer-set-size": "error",
385
- "unicorn/explicit-length-check": "error",
386
- "unicorn/switch-case-braces": "error",
387
- "jsx-a11y/no-static-element-interactions": "error",
388
- "complexity": [
389
- "error",
390
- 10
391
- ],
392
- "max-depth": [
393
- "error",
394
- 3
395
- ],
396
- "max-nested-callbacks": [
397
- "error",
398
- 2
399
- ],
400
- "max-params": [
401
- "error",
402
- 3
403
- ],
404
- "max-statements": [
405
- "error",
406
- 15
407
- ],
408
- "max-lines-per-function": [
409
- "error",
410
- {
411
- "max": 50,
412
- "skipBlankLines": true,
413
- "skipComments": true
414
- }
415
- ],
416
- "max-lines": [
417
- "error",
418
- {
419
- "max": 300,
420
- "skipBlankLines": true,
421
- "skipComments": true
422
- }
423
- ],
424
- "no-magic-numbers": [
425
- "error",
426
- {
427
- "ignore": [
428
- -1,
429
- 0,
430
- 1,
431
- 2
432
- ],
433
- "ignoreArrayIndexes": true,
434
- "ignoreDefaultValues": true,
435
- "enforceConst": true,
436
- "ignoreClassFieldInitialValues": true,
437
- "ignoreEnums": true,
438
- "ignoreNumericLiteralTypes": true,
439
- "ignoreReadonlyClassProperties": true,
440
- "ignoreTypeIndexes": true
441
- }
442
- ]
402
+ "jsdoc/require-throws-type": "error",
403
+ "jsdoc/require-yields-type": "error"
443
404
  },
444
405
  "overrides": [
445
406
  {
@@ -451,6 +412,7 @@
451
412
  ],
452
413
  "rules": {
453
414
  "constructor-super": "off",
415
+ "getter-return": "off",
454
416
  "no-class-assign": "off",
455
417
  "no-const-assign": "off",
456
418
  "no-dupe-class-members": "off",
@@ -462,9 +424,146 @@
462
424
  "no-redeclare": "off",
463
425
  "no-setter-return": "off",
464
426
  "no-this-before-super": "off",
427
+ "no-unreachable": "off",
465
428
  "no-unsafe-negation": "off",
466
- "no-with": "off"
467
- }
429
+ "no-with": "off",
430
+ "prefer-const": [
431
+ "error",
432
+ {
433
+ "destructuring": "all"
434
+ }
435
+ ],
436
+ "no-array-constructor": "error",
437
+ "no-implied-eval": "off",
438
+ "no-unused-expressions": "error",
439
+ "no-unused-vars": [
440
+ "error",
441
+ {
442
+ "args": "all",
443
+ "argsIgnorePattern": "^_",
444
+ "caughtErrors": "all",
445
+ "caughtErrorsIgnorePattern": "^_",
446
+ "destructuredArrayIgnorePattern": "^_",
447
+ "varsIgnorePattern": "^_",
448
+ "ignoreRestSiblings": true
449
+ }
450
+ ],
451
+ "no-useless-constructor": "error",
452
+ "no-throw-literal": "off",
453
+ "prefer-promise-reject-errors": "off",
454
+ "require-await": "off",
455
+ "no-empty-function": "error",
456
+ "no-shadow": [
457
+ "error",
458
+ {
459
+ "hoist": "all",
460
+ "allow": [
461
+ "resolve",
462
+ "reject",
463
+ "done",
464
+ "next",
465
+ "error"
466
+ ],
467
+ "ignoreTypeValueShadow": true,
468
+ "ignoreFunctionTypeParameterNameValueShadow": true
469
+ }
470
+ ],
471
+ "no-magic-numbers": [
472
+ "error",
473
+ {
474
+ "ignore": [
475
+ -1,
476
+ 0,
477
+ 1,
478
+ 2
479
+ ],
480
+ "ignoreArrayIndexes": true,
481
+ "ignoreDefaultValues": true,
482
+ "enforceConst": true,
483
+ "ignoreClassFieldInitialValues": true,
484
+ "ignoreEnums": true,
485
+ "ignoreNumericLiteralTypes": true,
486
+ "ignoreReadonlyClassProperties": true,
487
+ "ignoreTypeIndexes": true
488
+ }
489
+ ],
490
+ "typescript/ban-ts-comment": [
491
+ "error",
492
+ {
493
+ "ts-expect-error": "allow-with-description"
494
+ }
495
+ ],
496
+ "typescript/no-duplicate-enum-values": "error",
497
+ "typescript/no-dynamic-delete": "error",
498
+ "typescript/no-empty-object-type": "error",
499
+ "typescript/no-explicit-any": "error",
500
+ "typescript/no-extra-non-null-assertion": "error",
501
+ "typescript/no-extraneous-class": "error",
502
+ "typescript/no-invalid-void-type": "error",
503
+ "typescript/no-misused-new": "error",
504
+ "typescript/no-namespace": "error",
505
+ "typescript/no-non-null-asserted-nullish-coalescing": "error",
506
+ "typescript/no-non-null-asserted-optional-chain": "error",
507
+ "typescript/no-non-null-assertion": "error",
508
+ "typescript/no-require-imports": "error",
509
+ "typescript/no-this-alias": "error",
510
+ "typescript/no-unnecessary-type-constraint": "error",
511
+ "typescript/no-unsafe-declaration-merging": "error",
512
+ "typescript/no-unsafe-function-type": "error",
513
+ "typescript/no-wrapper-object-types": "error",
514
+ "typescript/prefer-as-const": "error",
515
+ "typescript/prefer-literal-enum-member": "error",
516
+ "typescript/prefer-namespace-keyword": "error",
517
+ "typescript/triple-slash-reference": "error",
518
+ "typescript/unified-signatures": "error",
519
+ "typescript/adjacent-overload-signatures": "error",
520
+ "typescript/array-type": [
521
+ "error",
522
+ {
523
+ "default": "array-simple"
524
+ }
525
+ ],
526
+ "typescript/ban-tslint-comment": "error",
527
+ "typescript/class-literal-property-style": "error",
528
+ "typescript/consistent-generic-constructors": "error",
529
+ "typescript/consistent-indexed-object-style": "error",
530
+ "typescript/consistent-type-assertions": "error",
531
+ "typescript/consistent-type-definitions": [
532
+ "error",
533
+ "type"
534
+ ],
535
+ "typescript/no-confusing-non-null-assertion": "error",
536
+ "typescript/no-inferrable-types": "error",
537
+ "typescript/prefer-for-of": "error",
538
+ "typescript/prefer-function-type": "error",
539
+ "typescript/consistent-type-imports": [
540
+ "error",
541
+ {
542
+ "fixStyle": "inline-type-imports"
543
+ }
544
+ ],
545
+ "typescript/no-import-type-side-effects": "error",
546
+ "typescript/no-useless-empty-export": "error",
547
+ "typescript/no-unnecessary-parameter-property-assignment": "error",
548
+ "typescript/method-signature-style": [
549
+ "error",
550
+ "property"
551
+ ],
552
+ "typescript/explicit-function-return-type": [
553
+ "error",
554
+ {
555
+ "allowExpressions": true,
556
+ "allowTypedFunctionExpressions": true,
557
+ "allowHigherOrderFunctions": true,
558
+ "allowIIFEs": true
559
+ }
560
+ ],
561
+ "typescript/explicit-member-accessibility": "error",
562
+ "typescript/prefer-enum-initializers": "error"
563
+ },
564
+ "plugins": [
565
+ "typescript"
566
+ ]
468
567
  },
469
568
  {
470
569
  "files": [
@@ -478,11 +577,12 @@
478
577
  "max-lines-per-function": "off",
479
578
  "max-statements": "off",
480
579
  "max-nested-callbacks": "off",
481
- "@typescript-eslint/explicit-function-return-type": "off",
482
- "no-magic-numbers": "off"
580
+ "no-magic-numbers": "off",
581
+ "typescript/explicit-function-return-type": "off"
483
582
  },
484
583
  "plugins": [
485
- "vitest"
584
+ "vitest",
585
+ "typescript"
486
586
  ]
487
587
  },
488
588
  {
@@ -493,9 +593,12 @@
493
593
  "max-lines": "off",
494
594
  "max-lines-per-function": "off",
495
595
  "max-statements": "off",
496
- "@typescript-eslint/explicit-function-return-type": "off",
497
- "no-magic-numbers": "off"
498
- }
596
+ "no-magic-numbers": "off",
597
+ "typescript/explicit-function-return-type": "off"
598
+ },
599
+ "plugins": [
600
+ "typescript"
601
+ ]
499
602
  },
500
603
  {
501
604
  "files": [
@@ -509,20 +612,26 @@
509
612
  "max-lines": "off",
510
613
  "max-lines-per-function": "off",
511
614
  "max-statements": "off",
512
- "@typescript-eslint/explicit-function-return-type": "off",
513
- "no-magic-numbers": "off"
514
- }
615
+ "no-magic-numbers": "off",
616
+ "typescript/explicit-function-return-type": "off"
617
+ },
618
+ "plugins": [
619
+ "typescript"
620
+ ]
515
621
  },
516
622
  {
517
623
  "files": [
518
624
  "**/*.d.ts"
519
625
  ],
520
626
  "rules": {
521
- "@typescript-eslint/explicit-function-return-type": "off",
522
- "@typescript-eslint/no-explicit-any": "off",
523
627
  "unicorn/filename-case": "off",
524
- "no-magic-numbers": "off"
525
- }
628
+ "no-magic-numbers": "off",
629
+ "typescript/explicit-function-return-type": "off",
630
+ "typescript/no-explicit-any": "off"
631
+ },
632
+ "plugins": [
633
+ "typescript"
634
+ ]
526
635
  },
527
636
  {
528
637
  "files": [
@@ -538,6 +647,7 @@
538
647
  "vitest/prefer-to-be": "error",
539
648
  "vitest/prefer-to-have-length": "error",
540
649
  "vitest/valid-expect": "error",
650
+ "vitest/valid-title": "error",
541
651
  "vitest/no-conditional-in-test": "error",
542
652
  "vitest/no-conditional-expect": "error",
543
653
  "vitest/no-standalone-expect": "error",
@@ -547,11 +657,12 @@
547
657
  "max-lines": "off",
548
658
  "max-lines-per-function": "off",
549
659
  "max-statements": "off",
550
- "@typescript-eslint/no-explicit-any": "off",
551
- "@typescript-eslint/no-non-null-assertion": "off"
660
+ "typescript/no-explicit-any": "off",
661
+ "typescript/no-non-null-assertion": "off"
552
662
  },
553
663
  "plugins": [
554
- "vitest"
664
+ "vitest",
665
+ "typescript"
555
666
  ]
556
667
  },
557
668
  {
@@ -589,26 +700,32 @@
589
700
  "max-lines": "off",
590
701
  "max-lines-per-function": "off",
591
702
  "max-statements": "off",
592
- "@typescript-eslint/no-require-imports": "off",
593
703
  "no-console": "off",
594
- "no-magic-numbers": "off"
595
- }
704
+ "no-magic-numbers": "off",
705
+ "typescript/no-require-imports": "off"
706
+ },
707
+ "plugins": [
708
+ "typescript"
709
+ ]
596
710
  },
597
711
  {
598
712
  "files": [
599
713
  "**/*.d.ts"
600
714
  ],
601
715
  "rules": {
602
- "@typescript-eslint/no-empty-interface": "off",
603
- "@typescript-eslint/no-empty-object-type": "off",
604
- "@typescript-eslint/no-explicit-any": "off",
605
- "@typescript-eslint/consistent-type-definitions": "off",
606
- "@typescript-eslint/no-namespace": "off",
607
716
  "import/no-duplicates": "off",
608
- "@typescript-eslint/explicit-function-return-type": "off",
609
717
  "unicorn/filename-case": "off",
610
- "no-unused-vars": "off"
611
- }
718
+ "no-unused-vars": "off",
719
+ "typescript/no-empty-interface": "off",
720
+ "typescript/no-empty-object-type": "off",
721
+ "typescript/no-explicit-any": "off",
722
+ "typescript/consistent-type-definitions": "off",
723
+ "typescript/no-namespace": "off",
724
+ "typescript/explicit-function-return-type": "off"
725
+ },
726
+ "plugins": [
727
+ "typescript"
728
+ ]
612
729
  },
613
730
  {
614
731
  "files": [
@@ -618,15 +735,19 @@
618
735
  "no-console": "off",
619
736
  "max-lines": "off",
620
737
  "max-lines-per-function": "off",
621
- "@typescript-eslint/explicit-function-return-type": "off",
622
- "unicorn/no-process-exit": "off"
623
- }
738
+ "unicorn/no-process-exit": "off",
739
+ "typescript/explicit-function-return-type": "off"
740
+ },
741
+ "plugins": [
742
+ "typescript"
743
+ ]
624
744
  },
625
745
  {
626
746
  "files": [
627
747
  "**/*.{md,mdx}"
628
748
  ],
629
749
  "rules": {
750
+ "no-unused-expressions": "error",
630
751
  "react/react-in-jsx-scope": "off"
631
752
  },
632
753
  "globals": {
@@ -644,7 +765,10 @@
644
765
  "no-unused-expressions": "off",
645
766
  "no-unused-vars": "off",
646
767
  "unicode-bom": "off"
647
- }
768
+ },
769
+ "plugins": [
770
+ "typescript"
771
+ ]
648
772
  }
649
773
  ]
650
774
  }