eslint-config-setup 0.3.3 → 0.5.0

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