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,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"
@@ -60,25 +58,25 @@
60
58
  "no-unsafe-optional-chaining": "error",
61
59
  "no-unused-labels": "error",
62
60
  "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
- ],
61
+ "no-unused-vars": "error",
75
62
  "no-useless-catch": "error",
76
63
  "no-useless-escape": "error",
77
64
  "no-with": "error",
78
65
  "preserve-caught-error": "error",
79
66
  "require-yield": "error",
80
- "use-isnan": "error",
81
- "valid-typeof": "error",
67
+ "use-isnan": [
68
+ "error",
69
+ {
70
+ "enforceForIndexOf": true,
71
+ "enforceForSwitchCase": true
72
+ }
73
+ ],
74
+ "valid-typeof": [
75
+ "error",
76
+ {
77
+ "requireStringLiterals": true
78
+ }
79
+ ],
82
80
  "accessor-pairs": [
83
81
  "error",
84
82
  {
@@ -101,7 +99,12 @@
101
99
  "getBeforeSet"
102
100
  ],
103
101
  "no-useless-rename": "error",
104
- "no-useless-computed-key": "error",
102
+ "no-useless-computed-key": [
103
+ "error",
104
+ {
105
+ "enforceForClassMembers": true
106
+ }
107
+ ],
105
108
  "no-eval": "error",
106
109
  "no-alert": "error",
107
110
  "no-caller": "error",
@@ -120,7 +123,12 @@
120
123
  "default-case-last": "error",
121
124
  "radix": "error",
122
125
  "yoda": "error",
123
- "no-sequences": "error",
126
+ "no-sequences": [
127
+ "error",
128
+ {
129
+ "allowInParentheses": false
130
+ }
131
+ ],
124
132
  "no-new": "error",
125
133
  "no-labels": "error",
126
134
  "no-extra-bind": "error",
@@ -128,108 +136,92 @@
128
136
  "no-useless-call": "error",
129
137
  "no-useless-concat": "error",
130
138
  "no-useless-return": "error",
139
+ "no-return-assign": [
140
+ "error",
141
+ "always"
142
+ ],
131
143
  "no-multi-str": "error",
132
- "no-var": "error",
133
- "prefer-const": [
144
+ "complexity": [
134
145
  "error",
135
- {
136
- "destructuring": "all"
137
- }
146
+ 10
138
147
  ],
139
- "prefer-object-has-own": "error",
140
- "prefer-object-spread": "error",
141
- "prefer-rest-params": "error",
142
- "prefer-spread": "error",
143
- "prefer-template": "error",
144
- "symbol-description": "error",
145
- "@typescript-eslint/ban-ts-comment": [
148
+ "max-depth": [
146
149
  "error",
147
- {
148
- "minimumDescriptionLength": 10
149
- }
150
+ 3
151
+ ],
152
+ "max-nested-callbacks": [
153
+ "error",
154
+ 2
150
155
  ],
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": [
156
+ "max-params": [
157
+ "error",
158
+ 3
159
+ ],
160
+ "max-statements": [
161
+ "error",
162
+ 15
163
+ ],
164
+ "max-lines-per-function": [
156
165
  "error",
157
166
  {
158
- "fixToUnknown": true
167
+ "max": 100,
168
+ "skipBlankLines": true,
169
+ "skipComments": true
159
170
  }
160
171
  ],
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": [
172
+ "max-lines": [
184
173
  "error",
185
174
  {
186
- "default": "array-simple"
175
+ "max": 300,
176
+ "skipBlankLines": true,
177
+ "skipComments": true
187
178
  }
188
179
  ],
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": [
180
+ "no-var": "error",
181
+ "prefer-const": [
195
182
  "error",
196
- "type"
183
+ {
184
+ "destructuring": "all"
185
+ }
197
186
  ],
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": [
187
+ "prefer-object-has-own": "error",
188
+ "prefer-object-spread": "error",
189
+ "prefer-rest-params": "error",
190
+ "prefer-spread": "error",
191
+ "symbol-description": "error",
192
+ "prefer-numeric-literals": "error",
193
+ "object-shorthand": [
204
194
  "error",
195
+ "always",
205
196
  {
206
- "fixStyle": "inline-type-imports"
197
+ "avoidExplicitReturnArrows": true,
198
+ "avoidQuotes": true
207
199
  }
208
200
  ],
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": [
201
+ "prefer-template": "error",
202
+ "no-else-return": [
213
203
  "error",
214
204
  {
215
- "hoist": "all",
216
- "allow": [
217
- "resolve",
218
- "reject",
219
- "done",
220
- "next",
221
- "error"
222
- ],
223
- "ignoreTypeValueShadow": true,
224
- "ignoreFunctionTypeParameterNameValueShadow": true
205
+ "allowElseIf": false
225
206
  }
226
207
  ],
227
- "import/no-duplicates": [
208
+ "no-nested-ternary": "error",
209
+ "no-unneeded-ternary": "error",
210
+ "no-negated-condition": "error",
211
+ "no-lonely-if": "error",
212
+ "no-param-reassign": [
228
213
  "error",
229
214
  {
230
- "prefer-inline": true
215
+ "props": true
231
216
  }
232
217
  ],
218
+ "no-multi-assign": "error",
219
+ "no-implicit-coercion": "error",
220
+ "arrow-body-style": "error",
221
+ "prefer-exponentiation-operator": "error",
222
+ "no-warning-comments": "warn",
223
+ "no-await-in-loop": "error",
224
+ "import/no-duplicates": "error",
233
225
  "import/no-self-import": "error",
234
226
  "import/no-cycle": [
235
227
  "error",
@@ -243,6 +235,23 @@
243
235
  "import/no-named-as-default-member": "error",
244
236
  "import/no-empty-named-blocks": "error",
245
237
  "import/no-absolute-path": "error",
238
+ "import/no-unassigned-import": [
239
+ "error",
240
+ {
241
+ "allow": [
242
+ "@babel/polyfill",
243
+ "**/register",
244
+ "**/register.*",
245
+ "**/register/**",
246
+ "**/register/**.*",
247
+ "**/*.css",
248
+ "**/*.scss",
249
+ "**/*.sass",
250
+ "**/*.less"
251
+ ]
252
+ }
253
+ ],
254
+ "import/no-named-default": "error",
246
255
  "unicorn/no-abusive-eslint-disable": "error",
247
256
  "unicorn/no-instanceof-builtins": "error",
248
257
  "unicorn/no-invalid-remove-event-listener": "error",
@@ -252,7 +261,12 @@
252
261
  "unicorn/no-useless-length-check": "error",
253
262
  "unicorn/no-useless-spread": "error",
254
263
  "unicorn/no-useless-promise-resolve-reject": "error",
255
- "unicorn/no-useless-undefined": "error",
264
+ "unicorn/no-useless-undefined": [
265
+ "warn",
266
+ {
267
+ "checkArguments": false
268
+ }
269
+ ],
256
270
  "unicorn/no-await-in-promise-methods": "error",
257
271
  "unicorn/no-negation-in-equality-check": "error",
258
272
  "unicorn/no-thenable": "error",
@@ -270,6 +284,18 @@
270
284
  "unicorn/consistent-empty-array-spread": "error",
271
285
  "unicorn/consistent-date-clone": "error",
272
286
  "unicorn/consistent-existence-index-check": "error",
287
+ "unicorn/consistent-function-scoping": "error",
288
+ "unicorn/filename-case": [
289
+ "error",
290
+ {
291
+ "cases": {
292
+ "camelCase": true,
293
+ "pascalCase": true,
294
+ "kebabCase": true
295
+ }
296
+ }
297
+ ],
298
+ "unicorn/no-array-reduce": "error",
273
299
  "unicorn/prefer-array-flat-map": "error",
274
300
  "unicorn/prefer-array-find": "error",
275
301
  "unicorn/prefer-array-flat": "error",
@@ -278,6 +304,7 @@
278
304
  "unicorn/prefer-at": "error",
279
305
  "unicorn/prefer-includes": "error",
280
306
  "unicorn/prefer-modern-dom-apis": "error",
307
+ "unicorn/prefer-dom-node-dataset": "error",
281
308
  "unicorn/prefer-modern-math-apis": "error",
282
309
  "unicorn/prefer-negative-index": "error",
283
310
  "unicorn/prefer-number-properties": "error",
@@ -311,6 +338,20 @@
311
338
  "unicorn/prefer-optional-catch-binding": "error",
312
339
  "unicorn/prefer-date-now": "error",
313
340
  "unicorn/text-encoding-identifier-case": "error",
341
+ "unicorn/prefer-import-meta-properties": "error",
342
+ "unicorn/no-array-for-each": "error",
343
+ "unicorn/prefer-ternary": [
344
+ "error",
345
+ "only-single-line"
346
+ ],
347
+ "unicorn/no-useless-switch-case": "error",
348
+ "unicorn/custom-error-definition": "error",
349
+ "unicorn/prefer-default-parameters": "error",
350
+ "unicorn/prefer-logical-operator-over-ternary": "error",
351
+ "unicorn/prefer-math-min-max": "error",
352
+ "unicorn/prefer-set-size": "error",
353
+ "unicorn/explicit-length-check": "error",
354
+ "unicorn/switch-case-braces": "error",
314
355
  "jsdoc/check-access": "error",
315
356
  "jsdoc/check-property-names": "error",
316
357
  "jsdoc/check-tag-names": "error",
@@ -324,122 +365,7 @@
324
365
  "jsdoc/require-property-description": "error",
325
366
  "jsdoc/require-property-name": "error",
326
367
  "jsdoc/require-returns": "error",
327
- "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
- ]
368
+ "jsdoc/require-returns-description": "warn"
443
369
  },
444
370
  "overrides": [
445
371
  {
@@ -463,8 +389,139 @@
463
389
  "no-setter-return": "off",
464
390
  "no-this-before-super": "off",
465
391
  "no-unsafe-negation": "off",
466
- "no-with": "off"
467
- }
392
+ "no-with": "off",
393
+ "prefer-const": [
394
+ "error",
395
+ {
396
+ "destructuring": "all"
397
+ }
398
+ ],
399
+ "no-array-constructor": "error",
400
+ "no-unused-expressions": "error",
401
+ "no-unused-vars": [
402
+ "error",
403
+ {
404
+ "args": "all",
405
+ "argsIgnorePattern": "^_",
406
+ "caughtErrors": "all",
407
+ "caughtErrorsIgnorePattern": "^_",
408
+ "destructuredArrayIgnorePattern": "^_",
409
+ "varsIgnorePattern": "^_",
410
+ "ignoreRestSiblings": true
411
+ }
412
+ ],
413
+ "no-useless-constructor": "error",
414
+ "no-throw-literal": "off",
415
+ "prefer-promise-reject-errors": "off",
416
+ "require-await": "off",
417
+ "no-empty-function": "error",
418
+ "no-shadow": [
419
+ "error",
420
+ {
421
+ "hoist": "all",
422
+ "allow": [
423
+ "resolve",
424
+ "reject",
425
+ "done",
426
+ "next",
427
+ "error"
428
+ ],
429
+ "ignoreTypeValueShadow": true,
430
+ "ignoreFunctionTypeParameterNameValueShadow": true
431
+ }
432
+ ],
433
+ "no-magic-numbers": [
434
+ "error",
435
+ {
436
+ "ignore": [
437
+ -1,
438
+ 0,
439
+ 1,
440
+ 2
441
+ ],
442
+ "ignoreArrayIndexes": true,
443
+ "ignoreDefaultValues": true,
444
+ "enforceConst": true,
445
+ "ignoreClassFieldInitialValues": true,
446
+ "ignoreEnums": true,
447
+ "ignoreNumericLiteralTypes": true,
448
+ "ignoreReadonlyClassProperties": true,
449
+ "ignoreTypeIndexes": true
450
+ }
451
+ ],
452
+ "typescript/ban-ts-comment": [
453
+ "error",
454
+ {
455
+ "ts-expect-error": "allow-with-description"
456
+ }
457
+ ],
458
+ "typescript/no-duplicate-enum-values": "error",
459
+ "typescript/no-dynamic-delete": "error",
460
+ "typescript/no-empty-object-type": "error",
461
+ "typescript/no-explicit-any": "error",
462
+ "typescript/no-extra-non-null-assertion": "error",
463
+ "typescript/no-extraneous-class": "error",
464
+ "typescript/no-invalid-void-type": "error",
465
+ "typescript/no-misused-new": "error",
466
+ "typescript/no-namespace": "error",
467
+ "typescript/no-non-null-asserted-nullish-coalescing": "error",
468
+ "typescript/no-non-null-asserted-optional-chain": "error",
469
+ "typescript/no-non-null-assertion": "error",
470
+ "typescript/no-require-imports": "error",
471
+ "typescript/no-this-alias": "error",
472
+ "typescript/no-unnecessary-type-constraint": "error",
473
+ "typescript/no-unsafe-declaration-merging": "error",
474
+ "typescript/no-unsafe-function-type": "error",
475
+ "typescript/no-wrapper-object-types": "error",
476
+ "typescript/prefer-as-const": "error",
477
+ "typescript/prefer-literal-enum-member": "error",
478
+ "typescript/prefer-namespace-keyword": "error",
479
+ "typescript/triple-slash-reference": "error",
480
+ "typescript/unified-signatures": "error",
481
+ "typescript/adjacent-overload-signatures": "error",
482
+ "typescript/array-type": [
483
+ "error",
484
+ {
485
+ "default": "array-simple"
486
+ }
487
+ ],
488
+ "typescript/ban-tslint-comment": "error",
489
+ "typescript/class-literal-property-style": "error",
490
+ "typescript/consistent-generic-constructors": "error",
491
+ "typescript/consistent-indexed-object-style": "error",
492
+ "typescript/consistent-type-assertions": "error",
493
+ "typescript/consistent-type-definitions": [
494
+ "error",
495
+ "type"
496
+ ],
497
+ "typescript/no-confusing-non-null-assertion": "error",
498
+ "typescript/no-inferrable-types": "error",
499
+ "typescript/prefer-for-of": "error",
500
+ "typescript/prefer-function-type": "error",
501
+ "typescript/consistent-type-imports": [
502
+ "error",
503
+ {
504
+ "fixStyle": "inline-type-imports"
505
+ }
506
+ ],
507
+ "typescript/no-import-type-side-effects": "error",
508
+ "typescript/no-useless-empty-export": "error",
509
+ "typescript/no-unnecessary-parameter-property-assignment": "error",
510
+ "typescript/explicit-function-return-type": [
511
+ "error",
512
+ {
513
+ "allowExpressions": true,
514
+ "allowTypedFunctionExpressions": true,
515
+ "allowHigherOrderFunctions": true,
516
+ "allowIIFEs": true
517
+ }
518
+ ],
519
+ "typescript/explicit-member-accessibility": "error",
520
+ "typescript/prefer-enum-initializers": "error"
521
+ },
522
+ "plugins": [
523
+ "typescript"
524
+ ]
468
525
  },
469
526
  {
470
527
  "files": [
@@ -478,11 +535,12 @@
478
535
  "max-lines-per-function": "off",
479
536
  "max-statements": "off",
480
537
  "max-nested-callbacks": "off",
481
- "@typescript-eslint/explicit-function-return-type": "off",
482
- "no-magic-numbers": "off"
538
+ "no-magic-numbers": "off",
539
+ "typescript/explicit-function-return-type": "off"
483
540
  },
484
541
  "plugins": [
485
- "vitest"
542
+ "vitest",
543
+ "typescript"
486
544
  ]
487
545
  },
488
546
  {
@@ -493,9 +551,12 @@
493
551
  "max-lines": "off",
494
552
  "max-lines-per-function": "off",
495
553
  "max-statements": "off",
496
- "@typescript-eslint/explicit-function-return-type": "off",
497
- "no-magic-numbers": "off"
498
- }
554
+ "no-magic-numbers": "off",
555
+ "typescript/explicit-function-return-type": "off"
556
+ },
557
+ "plugins": [
558
+ "typescript"
559
+ ]
499
560
  },
500
561
  {
501
562
  "files": [
@@ -509,20 +570,26 @@
509
570
  "max-lines": "off",
510
571
  "max-lines-per-function": "off",
511
572
  "max-statements": "off",
512
- "@typescript-eslint/explicit-function-return-type": "off",
513
- "no-magic-numbers": "off"
514
- }
573
+ "no-magic-numbers": "off",
574
+ "typescript/explicit-function-return-type": "off"
575
+ },
576
+ "plugins": [
577
+ "typescript"
578
+ ]
515
579
  },
516
580
  {
517
581
  "files": [
518
582
  "**/*.d.ts"
519
583
  ],
520
584
  "rules": {
521
- "@typescript-eslint/explicit-function-return-type": "off",
522
- "@typescript-eslint/no-explicit-any": "off",
523
585
  "unicorn/filename-case": "off",
524
- "no-magic-numbers": "off"
525
- }
586
+ "no-magic-numbers": "off",
587
+ "typescript/explicit-function-return-type": "off",
588
+ "typescript/no-explicit-any": "off"
589
+ },
590
+ "plugins": [
591
+ "typescript"
592
+ ]
526
593
  },
527
594
  {
528
595
  "files": [
@@ -538,6 +605,7 @@
538
605
  "vitest/prefer-to-be": "error",
539
606
  "vitest/prefer-to-have-length": "error",
540
607
  "vitest/valid-expect": "error",
608
+ "vitest/valid-title": "error",
541
609
  "vitest/no-conditional-in-test": "error",
542
610
  "vitest/no-conditional-expect": "error",
543
611
  "vitest/no-standalone-expect": "error",
@@ -547,11 +615,12 @@
547
615
  "max-lines": "off",
548
616
  "max-lines-per-function": "off",
549
617
  "max-statements": "off",
550
- "@typescript-eslint/no-explicit-any": "off",
551
- "@typescript-eslint/no-non-null-assertion": "off"
618
+ "typescript/no-explicit-any": "off",
619
+ "typescript/no-non-null-assertion": "off"
552
620
  },
553
621
  "plugins": [
554
- "vitest"
622
+ "vitest",
623
+ "typescript"
555
624
  ]
556
625
  },
557
626
  {
@@ -589,26 +658,32 @@
589
658
  "max-lines": "off",
590
659
  "max-lines-per-function": "off",
591
660
  "max-statements": "off",
592
- "@typescript-eslint/no-require-imports": "off",
593
661
  "no-console": "off",
594
- "no-magic-numbers": "off"
595
- }
662
+ "no-magic-numbers": "off",
663
+ "typescript/no-require-imports": "off"
664
+ },
665
+ "plugins": [
666
+ "typescript"
667
+ ]
596
668
  },
597
669
  {
598
670
  "files": [
599
671
  "**/*.d.ts"
600
672
  ],
601
673
  "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
674
  "import/no-duplicates": "off",
608
- "@typescript-eslint/explicit-function-return-type": "off",
609
675
  "unicorn/filename-case": "off",
610
- "no-unused-vars": "off"
611
- }
676
+ "no-unused-vars": "off",
677
+ "typescript/no-empty-interface": "off",
678
+ "typescript/no-empty-object-type": "off",
679
+ "typescript/no-explicit-any": "off",
680
+ "typescript/consistent-type-definitions": "off",
681
+ "typescript/no-namespace": "off",
682
+ "typescript/explicit-function-return-type": "off"
683
+ },
684
+ "plugins": [
685
+ "typescript"
686
+ ]
612
687
  },
613
688
  {
614
689
  "files": [
@@ -618,15 +693,19 @@
618
693
  "no-console": "off",
619
694
  "max-lines": "off",
620
695
  "max-lines-per-function": "off",
621
- "@typescript-eslint/explicit-function-return-type": "off",
622
- "unicorn/no-process-exit": "off"
623
- }
696
+ "unicorn/no-process-exit": "off",
697
+ "typescript/explicit-function-return-type": "off"
698
+ },
699
+ "plugins": [
700
+ "typescript"
701
+ ]
624
702
  },
625
703
  {
626
704
  "files": [
627
705
  "**/*.{md,mdx}"
628
706
  ],
629
707
  "rules": {
708
+ "no-unused-expressions": "error",
630
709
  "react/react-in-jsx-scope": "off"
631
710
  },
632
711
  "globals": {
@@ -644,7 +723,10 @@
644
723
  "no-unused-expressions": "off",
645
724
  "no-unused-vars": "off",
646
725
  "unicode-bom": "off"
647
- }
726
+ },
727
+ "plugins": [
728
+ "typescript"
729
+ ]
648
730
  }
649
731
  ]
650
732
  }