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