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