eslint-config-setup 0.3.3 → 0.4.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,7 +1,6 @@
1
1
  {
2
2
  "$schema": "./node_modules/oxlint/configuration_schema.json",
3
3
  "plugins": [
4
- "typescript",
5
4
  "import",
6
5
  "unicorn",
7
6
  "jsdoc",
@@ -64,25 +63,25 @@
64
63
  "no-unsafe-optional-chaining": "error",
65
64
  "no-unused-labels": "error",
66
65
  "no-unused-private-class-members": "error",
67
- "no-unused-vars": [
68
- "error",
69
- {
70
- "args": "all",
71
- "argsIgnorePattern": "^_",
72
- "caughtErrors": "all",
73
- "caughtErrorsIgnorePattern": "^_",
74
- "destructuredArrayIgnorePattern": "^_",
75
- "varsIgnorePattern": "^_",
76
- "ignoreRestSiblings": true
77
- }
78
- ],
66
+ "no-unused-vars": "error",
79
67
  "no-useless-catch": "error",
80
68
  "no-useless-escape": "error",
81
69
  "no-with": "error",
82
70
  "preserve-caught-error": "error",
83
71
  "require-yield": "error",
84
- "use-isnan": "error",
85
- "valid-typeof": "error",
72
+ "use-isnan": [
73
+ "error",
74
+ {
75
+ "enforceForIndexOf": true,
76
+ "enforceForSwitchCase": true
77
+ }
78
+ ],
79
+ "valid-typeof": [
80
+ "error",
81
+ {
82
+ "requireStringLiterals": true
83
+ }
84
+ ],
86
85
  "accessor-pairs": [
87
86
  "error",
88
87
  {
@@ -105,7 +104,12 @@
105
104
  "getBeforeSet"
106
105
  ],
107
106
  "no-useless-rename": "error",
108
- "no-useless-computed-key": "error",
107
+ "no-useless-computed-key": [
108
+ "error",
109
+ {
110
+ "enforceForClassMembers": true
111
+ }
112
+ ],
109
113
  "no-eval": "error",
110
114
  "no-alert": "error",
111
115
  "no-caller": "error",
@@ -124,7 +128,12 @@
124
128
  "default-case-last": "error",
125
129
  "radix": "error",
126
130
  "yoda": "error",
127
- "no-sequences": "error",
131
+ "no-sequences": [
132
+ "error",
133
+ {
134
+ "allowInParentheses": false
135
+ }
136
+ ],
128
137
  "no-new": "error",
129
138
  "no-labels": "error",
130
139
  "no-extra-bind": "error",
@@ -132,108 +141,92 @@
132
141
  "no-useless-call": "error",
133
142
  "no-useless-concat": "error",
134
143
  "no-useless-return": "error",
144
+ "no-return-assign": [
145
+ "error",
146
+ "always"
147
+ ],
135
148
  "no-multi-str": "error",
136
- "no-var": "error",
137
- "prefer-const": [
149
+ "complexity": [
138
150
  "error",
139
- {
140
- "destructuring": "all"
141
- }
151
+ 10
142
152
  ],
143
- "prefer-object-has-own": "error",
144
- "prefer-object-spread": "error",
145
- "prefer-rest-params": "error",
146
- "prefer-spread": "error",
147
- "prefer-template": "error",
148
- "symbol-description": "error",
149
- "@typescript-eslint/ban-ts-comment": [
153
+ "max-depth": [
150
154
  "error",
151
- {
152
- "minimumDescriptionLength": 10
153
- }
155
+ 3
154
156
  ],
155
- "no-array-constructor": "error",
156
- "@typescript-eslint/no-duplicate-enum-values": "error",
157
- "@typescript-eslint/no-dynamic-delete": "error",
158
- "@typescript-eslint/no-empty-object-type": "error",
159
- "@typescript-eslint/no-explicit-any": [
157
+ "max-nested-callbacks": [
158
+ "error",
159
+ 2
160
+ ],
161
+ "max-params": [
162
+ "error",
163
+ 3
164
+ ],
165
+ "max-statements": [
166
+ "error",
167
+ 15
168
+ ],
169
+ "max-lines-per-function": [
160
170
  "error",
161
171
  {
162
- "fixToUnknown": true
172
+ "max": 100,
173
+ "skipBlankLines": true,
174
+ "skipComments": true
163
175
  }
164
176
  ],
165
- "@typescript-eslint/no-extra-non-null-assertion": "error",
166
- "@typescript-eslint/no-extraneous-class": "error",
167
- "@typescript-eslint/no-invalid-void-type": "error",
168
- "@typescript-eslint/no-misused-new": "error",
169
- "@typescript-eslint/no-namespace": "error",
170
- "@typescript-eslint/no-non-null-asserted-nullish-coalescing": "error",
171
- "@typescript-eslint/no-non-null-asserted-optional-chain": "error",
172
- "@typescript-eslint/no-non-null-assertion": "error",
173
- "@typescript-eslint/no-require-imports": "error",
174
- "@typescript-eslint/no-this-alias": "error",
175
- "@typescript-eslint/no-unnecessary-type-constraint": "error",
176
- "@typescript-eslint/no-unsafe-declaration-merging": "error",
177
- "@typescript-eslint/no-unsafe-function-type": "error",
178
- "no-unused-expressions": "error",
179
- "no-useless-constructor": "error",
180
- "@typescript-eslint/no-wrapper-object-types": "error",
181
- "@typescript-eslint/prefer-as-const": "error",
182
- "@typescript-eslint/prefer-literal-enum-member": "error",
183
- "@typescript-eslint/prefer-namespace-keyword": "error",
184
- "@typescript-eslint/triple-slash-reference": "error",
185
- "@typescript-eslint/unified-signatures": "error",
186
- "@typescript-eslint/adjacent-overload-signatures": "error",
187
- "@typescript-eslint/array-type": [
177
+ "max-lines": [
188
178
  "error",
189
179
  {
190
- "default": "array-simple"
180
+ "max": 300,
181
+ "skipBlankLines": true,
182
+ "skipComments": true
191
183
  }
192
184
  ],
193
- "@typescript-eslint/ban-tslint-comment": "error",
194
- "@typescript-eslint/class-literal-property-style": "error",
195
- "@typescript-eslint/consistent-generic-constructors": "error",
196
- "@typescript-eslint/consistent-indexed-object-style": "error",
197
- "@typescript-eslint/consistent-type-assertions": "error",
198
- "@typescript-eslint/consistent-type-definitions": [
185
+ "no-var": "error",
186
+ "prefer-const": [
199
187
  "error",
200
- "type"
188
+ {
189
+ "destructuring": "all"
190
+ }
201
191
  ],
202
- "@typescript-eslint/no-confusing-non-null-assertion": "error",
203
- "no-empty-function": "error",
204
- "@typescript-eslint/no-inferrable-types": "error",
205
- "@typescript-eslint/prefer-for-of": "error",
206
- "@typescript-eslint/prefer-function-type": "error",
207
- "@typescript-eslint/consistent-type-imports": [
192
+ "prefer-object-has-own": "error",
193
+ "prefer-object-spread": "error",
194
+ "prefer-rest-params": "error",
195
+ "prefer-spread": "error",
196
+ "symbol-description": "error",
197
+ "prefer-numeric-literals": "error",
198
+ "object-shorthand": [
208
199
  "error",
200
+ "always",
209
201
  {
210
- "fixStyle": "inline-type-imports"
202
+ "avoidExplicitReturnArrows": true,
203
+ "avoidQuotes": true
211
204
  }
212
205
  ],
213
- "@typescript-eslint/no-import-type-side-effects": "error",
214
- "@typescript-eslint/no-useless-empty-export": "error",
215
- "@typescript-eslint/no-unnecessary-parameter-property-assignment": "error",
216
- "no-shadow": [
206
+ "prefer-template": "error",
207
+ "no-else-return": [
217
208
  "error",
218
209
  {
219
- "hoist": "all",
220
- "allow": [
221
- "resolve",
222
- "reject",
223
- "done",
224
- "next",
225
- "error"
226
- ],
227
- "ignoreTypeValueShadow": true,
228
- "ignoreFunctionTypeParameterNameValueShadow": true
210
+ "allowElseIf": false
229
211
  }
230
212
  ],
231
- "import/no-duplicates": [
213
+ "no-nested-ternary": "error",
214
+ "no-unneeded-ternary": "error",
215
+ "no-negated-condition": "error",
216
+ "no-lonely-if": "error",
217
+ "no-param-reassign": [
232
218
  "error",
233
219
  {
234
- "prefer-inline": true
220
+ "props": true
235
221
  }
236
222
  ],
223
+ "no-multi-assign": "error",
224
+ "no-implicit-coercion": "error",
225
+ "arrow-body-style": "error",
226
+ "prefer-exponentiation-operator": "error",
227
+ "no-warning-comments": "warn",
228
+ "no-await-in-loop": "error",
229
+ "import/no-duplicates": "error",
237
230
  "import/no-self-import": "error",
238
231
  "import/no-cycle": [
239
232
  "error",
@@ -247,6 +240,23 @@
247
240
  "import/no-named-as-default-member": "error",
248
241
  "import/no-empty-named-blocks": "error",
249
242
  "import/no-absolute-path": "error",
243
+ "import/no-unassigned-import": [
244
+ "error",
245
+ {
246
+ "allow": [
247
+ "@babel/polyfill",
248
+ "**/register",
249
+ "**/register.*",
250
+ "**/register/**",
251
+ "**/register/**.*",
252
+ "**/*.css",
253
+ "**/*.scss",
254
+ "**/*.sass",
255
+ "**/*.less"
256
+ ]
257
+ }
258
+ ],
259
+ "import/no-named-default": "error",
250
260
  "unicorn/no-abusive-eslint-disable": "error",
251
261
  "unicorn/no-instanceof-builtins": "error",
252
262
  "unicorn/no-invalid-remove-event-listener": "error",
@@ -256,7 +266,12 @@
256
266
  "unicorn/no-useless-length-check": "error",
257
267
  "unicorn/no-useless-spread": "error",
258
268
  "unicorn/no-useless-promise-resolve-reject": "error",
259
- "unicorn/no-useless-undefined": "error",
269
+ "unicorn/no-useless-undefined": [
270
+ "warn",
271
+ {
272
+ "checkArguments": false
273
+ }
274
+ ],
260
275
  "unicorn/no-await-in-promise-methods": "error",
261
276
  "unicorn/no-negation-in-equality-check": "error",
262
277
  "unicorn/no-thenable": "error",
@@ -274,6 +289,18 @@
274
289
  "unicorn/consistent-empty-array-spread": "error",
275
290
  "unicorn/consistent-date-clone": "error",
276
291
  "unicorn/consistent-existence-index-check": "error",
292
+ "unicorn/consistent-function-scoping": "error",
293
+ "unicorn/filename-case": [
294
+ "error",
295
+ {
296
+ "cases": {
297
+ "camelCase": true,
298
+ "pascalCase": true,
299
+ "kebabCase": true
300
+ }
301
+ }
302
+ ],
303
+ "unicorn/no-array-reduce": "error",
277
304
  "unicorn/prefer-array-flat-map": "error",
278
305
  "unicorn/prefer-array-find": "error",
279
306
  "unicorn/prefer-array-flat": "error",
@@ -282,6 +309,7 @@
282
309
  "unicorn/prefer-at": "error",
283
310
  "unicorn/prefer-includes": "error",
284
311
  "unicorn/prefer-modern-dom-apis": "error",
312
+ "unicorn/prefer-dom-node-dataset": "error",
285
313
  "unicorn/prefer-modern-math-apis": "error",
286
314
  "unicorn/prefer-negative-index": "error",
287
315
  "unicorn/prefer-number-properties": "error",
@@ -315,6 +343,20 @@
315
343
  "unicorn/prefer-optional-catch-binding": "error",
316
344
  "unicorn/prefer-date-now": "error",
317
345
  "unicorn/text-encoding-identifier-case": "error",
346
+ "unicorn/prefer-import-meta-properties": "error",
347
+ "unicorn/no-array-for-each": "error",
348
+ "unicorn/prefer-ternary": [
349
+ "error",
350
+ "only-single-line"
351
+ ],
352
+ "unicorn/no-useless-switch-case": "error",
353
+ "unicorn/custom-error-definition": "error",
354
+ "unicorn/prefer-default-parameters": "error",
355
+ "unicorn/prefer-logical-operator-over-ternary": "error",
356
+ "unicorn/prefer-math-min-max": "error",
357
+ "unicorn/prefer-set-size": "error",
358
+ "unicorn/explicit-length-check": "error",
359
+ "unicorn/switch-case-braces": "error",
318
360
  "jsdoc/check-access": "error",
319
361
  "jsdoc/check-property-names": "error",
320
362
  "jsdoc/check-tag-names": "error",
@@ -331,12 +373,34 @@
331
373
  "jsdoc/require-returns-description": "warn",
332
374
  "node/no-exports-assign": "error",
333
375
  "node/no-path-concat": "error",
334
- "react/no-children-prop": "error",
376
+ "node/handle-callback-err": "error",
377
+ "react/exhaustive-deps": "warn",
378
+ "react/no-array-index-key": "error",
379
+ "react/no-clone-element": "warn",
335
380
  "react/no-direct-mutation-state": "error",
381
+ "react/forward-ref-uses-ref": "error",
382
+ "react/jsx-key": "error",
383
+ "react/no-redundant-should-component-update": "error",
384
+ "react/no-did-mount-set-state": "warn",
385
+ "react/no-will-update-set-state": "warn",
386
+ "react/rules-of-hooks": "error",
387
+ "react/hook-use-state": "warn",
388
+ "react/no-children-prop": "error",
336
389
  "react/jsx-no-comment-textnodes": "error",
337
- "react/no-array-index-key": "error",
338
- "react-hooks/rules-of-hooks": "error",
339
- "react-hooks/exhaustive-deps": "error",
390
+ "react/no-namespace": "error",
391
+ "react/no-danger": "warn",
392
+ "react/no-danger-with-children": "error",
393
+ "react/no-find-dom-node": "error",
394
+ "react/no-render-return-value": "error",
395
+ "react/jsx-no-script-url": "warn",
396
+ "react/void-dom-elements-no-children": "error",
397
+ "react/jsx-no-constructed-context-values": "error",
398
+ "react/jsx-no-useless-fragment": "error",
399
+ "react/button-has-type": "error",
400
+ "react/iframe-missing-sandbox": "error",
401
+ "react/jsx-no-target-blank": "error",
402
+ "react/no-unknown-property": "error",
403
+ "react/style-prop-object": "error",
340
404
  "jsx-a11y/alt-text": "error",
341
405
  "jsx-a11y/anchor-has-content": "error",
342
406
  "jsx-a11y/anchor-is-valid": "error",
@@ -352,12 +416,6 @@
352
416
  "jsx-a11y/label-has-associated-control": "error",
353
417
  "jsx-a11y/mouse-events-have-key-events": "error",
354
418
  "jsx-a11y/no-access-key": "error",
355
- "jsx-a11y/no-autofocus": [
356
- "error",
357
- {
358
- "ignoreNonDOM": true
359
- }
360
- ],
361
419
  "jsx-a11y/no-distracting-elements": "error",
362
420
  "jsx-a11y/no-redundant-roles": "error",
363
421
  "jsx-a11y/role-has-required-aria-props": "error",
@@ -366,121 +424,13 @@
366
424
  "jsx-a11y/tabindex-no-positive": "error",
367
425
  "jsx-a11y/lang": "error",
368
426
  "jsx-a11y/autocomplete-valid": "error",
369
- "no-else-return": [
370
- "error",
371
- {
372
- "allowElseIf": false
373
- }
374
- ],
375
- "no-nested-ternary": "error",
376
- "no-unneeded-ternary": "error",
377
- "no-negated-condition": "error",
378
- "no-lonely-if": "error",
379
- "no-param-reassign": [
380
- "error",
381
- {
382
- "props": true
383
- }
384
- ],
385
- "no-multi-assign": "error",
386
- "no-implicit-coercion": "error",
387
- "arrow-body-style": "error",
388
- "no-return-assign": [
389
- "error",
390
- "always"
391
- ],
392
- "prefer-exponentiation-operator": "error",
393
- "no-warning-comments": "warn",
394
- "no-await-in-loop": "error",
395
- "@typescript-eslint/explicit-function-return-type": [
396
- "error",
397
- {
398
- "allowExpressions": true,
399
- "allowTypedFunctionExpressions": true,
400
- "allowHigherOrderFunctions": true,
401
- "allowIIFEs": true
402
- }
403
- ],
404
- "@typescript-eslint/prefer-enum-initializers": "error",
405
- "unicorn/consistent-function-scoping": "error",
406
- "unicorn/no-array-for-each": "error",
407
- "unicorn/no-array-reduce": "error",
408
- "unicorn/prefer-ternary": [
409
- "error",
410
- "only-single-line"
411
- ],
412
- "unicorn/filename-case": [
427
+ "jsx-a11y/no-autofocus": [
413
428
  "error",
414
429
  {
415
- "cases": {
416
- "camelCase": true,
417
- "pascalCase": true
418
- }
430
+ "ignoreNonDOM": true
419
431
  }
420
432
  ],
421
- "unicorn/no-useless-switch-case": "error",
422
- "unicorn/prefer-default-parameters": "error",
423
- "unicorn/prefer-logical-operator-over-ternary": "error",
424
- "unicorn/prefer-math-min-max": "error",
425
- "unicorn/prefer-set-size": "error",
426
- "unicorn/explicit-length-check": "error",
427
- "unicorn/switch-case-braces": "error",
428
433
  "jsx-a11y/no-static-element-interactions": "error",
429
- "complexity": [
430
- "error",
431
- 10
432
- ],
433
- "max-depth": [
434
- "error",
435
- 3
436
- ],
437
- "max-nested-callbacks": [
438
- "error",
439
- 2
440
- ],
441
- "max-params": [
442
- "error",
443
- 3
444
- ],
445
- "max-statements": [
446
- "error",
447
- 15
448
- ],
449
- "max-lines-per-function": [
450
- "error",
451
- {
452
- "max": 50,
453
- "skipBlankLines": true,
454
- "skipComments": true
455
- }
456
- ],
457
- "max-lines": [
458
- "error",
459
- {
460
- "max": 300,
461
- "skipBlankLines": true,
462
- "skipComments": true
463
- }
464
- ],
465
- "no-magic-numbers": [
466
- "error",
467
- {
468
- "ignore": [
469
- -1,
470
- 0,
471
- 1,
472
- 2
473
- ],
474
- "ignoreArrayIndexes": true,
475
- "ignoreDefaultValues": true,
476
- "enforceConst": true,
477
- "ignoreClassFieldInitialValues": true,
478
- "ignoreEnums": true,
479
- "ignoreNumericLiteralTypes": true,
480
- "ignoreReadonlyClassProperties": true,
481
- "ignoreTypeIndexes": true
482
- }
483
- ],
484
434
  "react/only-export-components": [
485
435
  "warn",
486
436
  {
@@ -510,8 +460,139 @@
510
460
  "no-setter-return": "off",
511
461
  "no-this-before-super": "off",
512
462
  "no-unsafe-negation": "off",
513
- "no-with": "off"
514
- }
463
+ "no-with": "off",
464
+ "prefer-const": [
465
+ "error",
466
+ {
467
+ "destructuring": "all"
468
+ }
469
+ ],
470
+ "no-array-constructor": "error",
471
+ "no-unused-expressions": "error",
472
+ "no-unused-vars": [
473
+ "error",
474
+ {
475
+ "args": "all",
476
+ "argsIgnorePattern": "^_",
477
+ "caughtErrors": "all",
478
+ "caughtErrorsIgnorePattern": "^_",
479
+ "destructuredArrayIgnorePattern": "^_",
480
+ "varsIgnorePattern": "^_",
481
+ "ignoreRestSiblings": true
482
+ }
483
+ ],
484
+ "no-useless-constructor": "error",
485
+ "no-throw-literal": "off",
486
+ "prefer-promise-reject-errors": "off",
487
+ "require-await": "off",
488
+ "no-empty-function": "error",
489
+ "no-shadow": [
490
+ "error",
491
+ {
492
+ "hoist": "all",
493
+ "allow": [
494
+ "resolve",
495
+ "reject",
496
+ "done",
497
+ "next",
498
+ "error"
499
+ ],
500
+ "ignoreTypeValueShadow": true,
501
+ "ignoreFunctionTypeParameterNameValueShadow": true
502
+ }
503
+ ],
504
+ "no-magic-numbers": [
505
+ "error",
506
+ {
507
+ "ignore": [
508
+ -1,
509
+ 0,
510
+ 1,
511
+ 2
512
+ ],
513
+ "ignoreArrayIndexes": true,
514
+ "ignoreDefaultValues": true,
515
+ "enforceConst": true,
516
+ "ignoreClassFieldInitialValues": true,
517
+ "ignoreEnums": true,
518
+ "ignoreNumericLiteralTypes": true,
519
+ "ignoreReadonlyClassProperties": true,
520
+ "ignoreTypeIndexes": true
521
+ }
522
+ ],
523
+ "typescript/ban-ts-comment": [
524
+ "error",
525
+ {
526
+ "ts-expect-error": "allow-with-description"
527
+ }
528
+ ],
529
+ "typescript/no-duplicate-enum-values": "error",
530
+ "typescript/no-dynamic-delete": "error",
531
+ "typescript/no-empty-object-type": "error",
532
+ "typescript/no-explicit-any": "error",
533
+ "typescript/no-extra-non-null-assertion": "error",
534
+ "typescript/no-extraneous-class": "error",
535
+ "typescript/no-invalid-void-type": "error",
536
+ "typescript/no-misused-new": "error",
537
+ "typescript/no-namespace": "error",
538
+ "typescript/no-non-null-asserted-nullish-coalescing": "error",
539
+ "typescript/no-non-null-asserted-optional-chain": "error",
540
+ "typescript/no-non-null-assertion": "error",
541
+ "typescript/no-require-imports": "error",
542
+ "typescript/no-this-alias": "error",
543
+ "typescript/no-unnecessary-type-constraint": "error",
544
+ "typescript/no-unsafe-declaration-merging": "error",
545
+ "typescript/no-unsafe-function-type": "error",
546
+ "typescript/no-wrapper-object-types": "error",
547
+ "typescript/prefer-as-const": "error",
548
+ "typescript/prefer-literal-enum-member": "error",
549
+ "typescript/prefer-namespace-keyword": "error",
550
+ "typescript/triple-slash-reference": "error",
551
+ "typescript/unified-signatures": "error",
552
+ "typescript/adjacent-overload-signatures": "error",
553
+ "typescript/array-type": [
554
+ "error",
555
+ {
556
+ "default": "array-simple"
557
+ }
558
+ ],
559
+ "typescript/ban-tslint-comment": "error",
560
+ "typescript/class-literal-property-style": "error",
561
+ "typescript/consistent-generic-constructors": "error",
562
+ "typescript/consistent-indexed-object-style": "error",
563
+ "typescript/consistent-type-assertions": "error",
564
+ "typescript/consistent-type-definitions": [
565
+ "error",
566
+ "type"
567
+ ],
568
+ "typescript/no-confusing-non-null-assertion": "error",
569
+ "typescript/no-inferrable-types": "error",
570
+ "typescript/prefer-for-of": "error",
571
+ "typescript/prefer-function-type": "error",
572
+ "typescript/consistent-type-imports": [
573
+ "error",
574
+ {
575
+ "fixStyle": "inline-type-imports"
576
+ }
577
+ ],
578
+ "typescript/no-import-type-side-effects": "error",
579
+ "typescript/no-useless-empty-export": "error",
580
+ "typescript/no-unnecessary-parameter-property-assignment": "error",
581
+ "typescript/explicit-function-return-type": [
582
+ "error",
583
+ {
584
+ "allowExpressions": true,
585
+ "allowTypedFunctionExpressions": true,
586
+ "allowHigherOrderFunctions": true,
587
+ "allowIIFEs": true
588
+ }
589
+ ],
590
+ "typescript/explicit-member-accessibility": "error",
591
+ "typescript/prefer-enum-initializers": "error"
592
+ },
593
+ "plugins": [
594
+ "typescript"
595
+ ]
515
596
  },
516
597
  {
517
598
  "files": [
@@ -525,11 +606,12 @@
525
606
  "max-lines-per-function": "off",
526
607
  "max-statements": "off",
527
608
  "max-nested-callbacks": "off",
528
- "@typescript-eslint/explicit-function-return-type": "off",
529
- "no-magic-numbers": "off"
609
+ "no-magic-numbers": "off",
610
+ "typescript/explicit-function-return-type": "off"
530
611
  },
531
612
  "plugins": [
532
- "vitest"
613
+ "vitest",
614
+ "typescript"
533
615
  ]
534
616
  },
535
617
  {
@@ -540,9 +622,12 @@
540
622
  "max-lines": "off",
541
623
  "max-lines-per-function": "off",
542
624
  "max-statements": "off",
543
- "@typescript-eslint/explicit-function-return-type": "off",
544
- "no-magic-numbers": "off"
545
- }
625
+ "no-magic-numbers": "off",
626
+ "typescript/explicit-function-return-type": "off"
627
+ },
628
+ "plugins": [
629
+ "typescript"
630
+ ]
546
631
  },
547
632
  {
548
633
  "files": [
@@ -556,20 +641,26 @@
556
641
  "max-lines": "off",
557
642
  "max-lines-per-function": "off",
558
643
  "max-statements": "off",
559
- "@typescript-eslint/explicit-function-return-type": "off",
560
- "no-magic-numbers": "off"
561
- }
644
+ "no-magic-numbers": "off",
645
+ "typescript/explicit-function-return-type": "off"
646
+ },
647
+ "plugins": [
648
+ "typescript"
649
+ ]
562
650
  },
563
651
  {
564
652
  "files": [
565
653
  "**/*.d.ts"
566
654
  ],
567
655
  "rules": {
568
- "@typescript-eslint/explicit-function-return-type": "off",
569
- "@typescript-eslint/no-explicit-any": "off",
570
656
  "unicorn/filename-case": "off",
571
- "no-magic-numbers": "off"
572
- }
657
+ "no-magic-numbers": "off",
658
+ "typescript/explicit-function-return-type": "off",
659
+ "typescript/no-explicit-any": "off"
660
+ },
661
+ "plugins": [
662
+ "typescript"
663
+ ]
573
664
  },
574
665
  {
575
666
  "files": [
@@ -585,6 +676,7 @@
585
676
  "vitest/prefer-to-be": "error",
586
677
  "vitest/prefer-to-have-length": "error",
587
678
  "vitest/valid-expect": "error",
679
+ "vitest/valid-title": "error",
588
680
  "vitest/no-conditional-in-test": "error",
589
681
  "vitest/no-conditional-expect": "error",
590
682
  "vitest/no-standalone-expect": "error",
@@ -594,11 +686,12 @@
594
686
  "max-lines": "off",
595
687
  "max-lines-per-function": "off",
596
688
  "max-statements": "off",
597
- "@typescript-eslint/no-explicit-any": "off",
598
- "@typescript-eslint/no-non-null-assertion": "off"
689
+ "typescript/no-explicit-any": "off",
690
+ "typescript/no-non-null-assertion": "off"
599
691
  },
600
692
  "plugins": [
601
- "vitest"
693
+ "vitest",
694
+ "typescript"
602
695
  ]
603
696
  },
604
697
  {
@@ -636,26 +729,32 @@
636
729
  "max-lines": "off",
637
730
  "max-lines-per-function": "off",
638
731
  "max-statements": "off",
639
- "@typescript-eslint/no-require-imports": "off",
640
732
  "no-console": "off",
641
- "no-magic-numbers": "off"
642
- }
733
+ "no-magic-numbers": "off",
734
+ "typescript/no-require-imports": "off"
735
+ },
736
+ "plugins": [
737
+ "typescript"
738
+ ]
643
739
  },
644
740
  {
645
741
  "files": [
646
742
  "**/*.d.ts"
647
743
  ],
648
744
  "rules": {
649
- "@typescript-eslint/no-empty-interface": "off",
650
- "@typescript-eslint/no-empty-object-type": "off",
651
- "@typescript-eslint/no-explicit-any": "off",
652
- "@typescript-eslint/consistent-type-definitions": "off",
653
- "@typescript-eslint/no-namespace": "off",
654
745
  "import/no-duplicates": "off",
655
- "@typescript-eslint/explicit-function-return-type": "off",
656
746
  "unicorn/filename-case": "off",
657
- "no-unused-vars": "off"
658
- }
747
+ "no-unused-vars": "off",
748
+ "typescript/no-empty-interface": "off",
749
+ "typescript/no-empty-object-type": "off",
750
+ "typescript/no-explicit-any": "off",
751
+ "typescript/consistent-type-definitions": "off",
752
+ "typescript/no-namespace": "off",
753
+ "typescript/explicit-function-return-type": "off"
754
+ },
755
+ "plugins": [
756
+ "typescript"
757
+ ]
659
758
  },
660
759
  {
661
760
  "files": [
@@ -665,15 +764,19 @@
665
764
  "no-console": "off",
666
765
  "max-lines": "off",
667
766
  "max-lines-per-function": "off",
668
- "@typescript-eslint/explicit-function-return-type": "off",
669
- "unicorn/no-process-exit": "off"
670
- }
767
+ "unicorn/no-process-exit": "off",
768
+ "typescript/explicit-function-return-type": "off"
769
+ },
770
+ "plugins": [
771
+ "typescript"
772
+ ]
671
773
  },
672
774
  {
673
775
  "files": [
674
776
  "**/*.{md,mdx}"
675
777
  ],
676
778
  "rules": {
779
+ "no-unused-expressions": "error",
677
780
  "react/react-in-jsx-scope": "off"
678
781
  },
679
782
  "globals": {
@@ -688,7 +791,10 @@
688
791
  "no-unused-expressions": "off",
689
792
  "no-unused-vars": "off",
690
793
  "unicode-bom": "off"
691
- }
794
+ },
795
+ "plugins": [
796
+ "typescript"
797
+ ]
692
798
  }
693
799
  ]
694
800
  }