@wistia/oxlint-config 0.7.4 → 0.8.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.
package/rules/vitest.mjs CHANGED
@@ -30,13 +30,18 @@ export const vitestRules = {
30
30
  // https://oxc.rs/docs/guide/usage/linter/rules/vitest/no-import-node-test.html
31
31
  'vitest/no-import-node-test': 'error',
32
32
 
33
+ // Enforce padding around afterAll blocks
34
+ // https://oxc.rs/docs/guide/usage/linter/rules/vitest/padding-around-after-all-blocks.html
35
+ // Decision: stylistic formatting rule, left to formatter
36
+ 'vitest/padding-around-after-all-blocks': 'off',
37
+
33
38
  // Disallow conditional tests
34
39
  // https://oxc.rs/docs/guide/usage/linter/rules/vitest/no-conditional-in-test.html
35
40
  'vitest/no-conditional-in-test': 'error',
36
41
 
37
42
  // Prefer toHaveBeenCalledOnce() over toHaveBeenCalledTimes(1)
38
43
  // https://oxc.rs/docs/guide/usage/linter/rules/vitest/prefer-called-once.html
39
- // decision: conflicts with prefer-called-times (vitest plugin), which is enabled
44
+ // Decision: conflicts with prefer-called-times (vitest plugin), which is enabled
40
45
  'vitest/prefer-called-once': 'off',
41
46
 
42
47
  // Prefer toHaveBeenCalledTimes over multiple assertions
@@ -53,7 +58,7 @@ export const vitestRules = {
53
58
 
54
59
  // Prefer vi.importActual/vi.importMock in vi.mock factories
55
60
  // https://oxc.rs/docs/guide/usage/linter/rules/vitest/prefer-import-in-mock.html
56
- // decision: potentially helpful but causes too many type errors
61
+ // Decision: potentially helpful but causes too many type errors
57
62
  'vitest/prefer-import-in-mock': 'off',
58
63
 
59
64
  // Prefer strict boolean matchers (toBe(true) over toBeTruthy())
@@ -62,7 +67,7 @@ export const vitestRules = {
62
67
 
63
68
  // Suggest using toBeFalsy()
64
69
  // https://oxc.rs/docs/guide/usage/linter/rules/vitest/prefer-to-be-falsy.html
65
- // decision: not necessary to be prescriptive here
70
+ // Decision: not necessary to be prescriptive here
66
71
  'vitest/prefer-to-be-falsy': 'off',
67
72
 
68
73
  // Prefer toBeObject()
@@ -71,7 +76,7 @@ export const vitestRules = {
71
76
 
72
77
  // Suggest using toBeTruthy
73
78
  // https://oxc.rs/docs/guide/usage/linter/rules/vitest/prefer-to-be-truthy.html
74
- // decision: not necessary to be prescriptive here
79
+ // Decision: not necessary to be prescriptive here
75
80
  'vitest/prefer-to-be-truthy': 'off',
76
81
 
77
82
  // Require type parameters on mock function calls
@@ -108,12 +113,12 @@ export const vitestRules = {
108
113
 
109
114
  // Disallow importing vitest globals
110
115
  // https://oxc.rs/docs/guide/usage/linter/rules/vitest/no-importing-vitest-globals.html
111
- // decision: prefer-importing-vitest-globals is already enabled, which serves opposite purpose
116
+ // Decision: prefer-importing-vitest-globals is already enabled, which serves opposite purpose
112
117
  'vitest/no-importing-vitest-globals': 'off',
113
118
 
114
119
  // Suggest using expect.assertions
115
120
  // https://oxc.rs/docs/guide/usage/linter/rules/vitest/prefer-expect-assertions.html
116
- // decision: too strict for general use, matching vitest-js/prefer-expect-assertions
121
+ // Decision: too strict for general use, matching vitest-js/prefer-expect-assertions
117
122
  'vitest/prefer-expect-assertions': 'off',
118
123
 
119
124
  // Prefer toHaveBeenCalledTimes over multiple assertions
@@ -122,12 +127,12 @@ export const vitestRules = {
122
127
 
123
128
  // Require test timeout
124
129
  // https://oxc.rs/docs/guide/usage/linter/rules/vitest/require-test-timeout.html
125
- // decision: too strict for general use, matching vitest-js/require-test-timeout
130
+ // Decision: too strict for general use, matching vitest-js/require-test-timeout
126
131
  'vitest/require-test-timeout': 'off',
127
132
 
128
133
  // Enforce valid expect in promise
129
134
  // https://oxc.rs/docs/guide/usage/linter/rules/vitest/valid-expect-in-promise.html
130
- // decision: too strict for general use, matching vitest-js/valid-expect-in-promise
135
+ // Decision: too strict for general use, matching vitest-js/valid-expect-in-promise
131
136
  'vitest/valid-expect-in-promise': 'off',
132
137
 
133
138
  // Prefer test or it but not both
@@ -160,7 +165,7 @@ export const vitestRules = {
160
165
 
161
166
  // Disallow disabled tests
162
167
  // https://oxc.rs/docs/guide/usage/linter/rules/vitest/no-disabled-tests.html
163
- // decision: it is often useful to be allowed to add a .skip
168
+ // Decision: it is often useful to be allowed to add a .skip
164
169
  'vitest/no-disabled-tests': 'off',
165
170
 
166
171
  // Disallow duplicate hooks and teardown hooks
@@ -173,6 +178,7 @@ export const vitestRules = {
173
178
 
174
179
  // Disallow setup and teardown hooks
175
180
  // https://oxc.rs/docs/guide/usage/linter/rules/vitest/no-hooks.html
181
+ // Decision: too opinionated for general use
176
182
  'vitest/no-hooks': 'off',
177
183
 
178
184
  // Disallow identical titles
@@ -241,6 +247,7 @@ export const vitestRules = {
241
247
 
242
248
  // Enforce lowercase titles
243
249
  // https://oxc.rs/docs/guide/usage/linter/rules/vitest/prefer-lowercase-title.html
250
+ // Decision: too opinionated for general use
244
251
  'vitest/prefer-lowercase-title': 'off',
245
252
 
246
253
  // Prefer mock resolved/rejected shorthands for promises
@@ -297,7 +304,7 @@ export const vitestRules = {
297
304
 
298
305
  // Enforce valid titles
299
306
  // https://oxc.rs/docs/guide/usage/linter/rules/vitest/valid-title.html
300
- // decision: `allowArguments` avoids conflict with `prefer-describe-function-title` rule, which is enabled
307
+ // Decision: `allowArguments` avoids conflict with `prefer-describe-function-title` rule, which is enabled
301
308
  'vitest/valid-title': ['error', { allowArguments: true }],
302
309
 
303
310
  //rules via jsPlugins (@vitest/eslint-plugin + no-only-tests)
@@ -308,22 +315,22 @@ export const vitestRules = {
308
315
 
309
316
  // Disallow the use of certain vi methods
310
317
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-restricted-vi-methods.md
311
- // decision: handled by native vitest/no-restricted-vi-methods
318
+ // Decision: handled by native vitest/no-restricted-vi-methods
312
319
  'vitest-js/no-restricted-vi-methods': 'off',
313
320
 
314
321
  // Prefer toHaveBeenCalledExactlyOnceWith over manual assertions
315
322
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-called-exactly-once-with.md
316
- // decision: handled by native vitest/prefer-called-exactly-once-with
323
+ // Decision: handled by native vitest/prefer-called-exactly-once-with
317
324
  'vitest-js/prefer-called-exactly-once-with': 'off',
318
325
 
319
326
  // Prefer importing vitest globals
320
327
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-importing-vitest-globals.md
321
- // decision: handled by native vitest/prefer-importing-vitest-globals
328
+ // Decision: handled by native vitest/prefer-importing-vitest-globals
322
329
  'vitest-js/prefer-importing-vitest-globals': 'off',
323
330
 
324
331
  // Prefer snapshot hint for inline/external snapshots
325
332
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-snapshot-hint.md
326
- // decision: handled by native vitest/prefer-snapshot-hint
333
+ // Decision: handled by native vitest/prefer-snapshot-hint
327
334
  'vitest-js/prefer-snapshot-hint': 'off',
328
335
 
329
336
  // Enforce padding around afterAll blocks
@@ -352,72 +359,72 @@ export const vitestRules = {
352
359
 
353
360
  // Enforce consistent usage of each with for...of
354
361
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-each-for.md
355
- // decision: handled by native vitest/consistent-each-for
362
+ // Decision: handled by native vitest/consistent-each-for
356
363
  'vitest-js/consistent-each-for': 'off',
357
364
 
358
365
  // Require .test test file pattern
359
366
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-filename.md
360
- // decision: handled by native vitest/consistent-test-filename
367
+ // Decision: handled by native vitest/consistent-test-filename
361
368
  'vitest-js/consistent-test-filename': 'off',
362
369
 
363
370
  // Prefer test or it but not both
364
371
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-it.md
365
- // decision: handled by native vitest/consistent-test-it
372
+ // Decision: handled by native vitest/consistent-test-it
366
373
  'vitest-js/consistent-test-it': 'off',
367
374
 
368
375
  // Enforce consistent usage of vi vs vitest
369
376
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-vitest-vi.md
370
- // decision: handled by native vitest/consistent-vitest-vi
377
+ // Decision: handled by native vitest/consistent-vitest-vi
371
378
  'vitest-js/consistent-vitest-vi': 'off',
372
379
 
373
380
  // Enforce having expectation in test body
374
381
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/expect-expect.md
375
- // decision: handled by native vitest/expect-expect
382
+ // Decision: handled by native vitest/expect-expect
376
383
  'vitest-js/expect-expect': 'off',
377
384
 
378
385
  // Ensure hoisted APIs (vi.mock, vi.hoisted, etc.) are at the top
379
386
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/hoisted-apis-on-top.md
380
- // decision: handled by native vitest/hoisted-apis-on-top
387
+ // Decision: handled by native vitest/hoisted-apis-on-top
381
388
  'vitest-js/hoisted-apis-on-top': 'off',
382
389
 
383
390
  // Enforce a maximum number of expect per test
384
391
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/max-expects.md
385
- // decision: handled by native vitest/max-expects
392
+ // Decision: handled by native vitest/max-expects
386
393
  'vitest-js/max-expects': 'off',
387
394
 
388
395
  // Nested describe block should be less than set max value or default value
389
396
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/max-nested-describe.md
390
- // decision: handled by native vitest/max-nested-describe
397
+ // Decision: handled by native vitest/max-nested-describe
391
398
  'vitest-js/max-nested-describe': 'off',
392
399
 
393
400
  // Disallow alias methods
394
401
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-alias-methods.md
395
- // decision: handled by native vitest/no-alias-methods
402
+ // Decision: handled by native vitest/no-alias-methods
396
403
  'vitest-js/no-alias-methods': 'off',
397
404
 
398
405
  // Disallow commented out tests
399
406
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-commented-out-tests.md
400
- // decision: handled by native vitest/no-commented-out-tests
407
+ // Decision: handled by native vitest/no-commented-out-tests
401
408
  'vitest-js/no-commented-out-tests': 'off',
402
409
 
403
410
  // Disallow conditional expects
404
411
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-expect.md
405
- // decision: handled by native vitest/no-conditional-expect
412
+ // Decision: handled by native vitest/no-conditional-expect
406
413
  'vitest-js/no-conditional-expect': 'off',
407
414
 
408
415
  // Disallow conditional tests
409
416
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-in-test.md
410
- // decision: handled by native vitest/no-conditional-in-test
417
+ // Decision: handled by native vitest/no-conditional-in-test
411
418
  'vitest-js/no-conditional-in-test': 'off',
412
419
 
413
420
  // Disallow conditional tests
414
421
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-tests.md
415
- // decision: handled by native vitest/no-conditional-tests
422
+ // Decision: handled by native vitest/no-conditional-tests
416
423
  'vitest-js/no-conditional-tests': 'off',
417
424
 
418
425
  // Disallow disabled tests
419
426
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-disabled-tests.md
420
- // decision: handled by native vitest/no-disabled-tests
427
+ // Decision: handled by native vitest/no-disabled-tests
421
428
  'vitest-js/no-disabled-tests': 'off',
422
429
 
423
430
  // Disallow done callbacks in tests
@@ -426,212 +433,212 @@ export const vitestRules = {
426
433
 
427
434
  // Disallow duplicate hooks and teardown hooks
428
435
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-duplicate-hooks.md
429
- // decision: handled by native vitest/no-duplicate-hooks
436
+ // Decision: handled by native vitest/no-duplicate-hooks
430
437
  'vitest-js/no-duplicate-hooks': 'off',
431
438
 
432
439
  // Disallow focused tests
433
440
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-focused-tests.md
434
- // decision: handled by native vitest/no-focused-tests
441
+ // Decision: handled by native vitest/no-focused-tests
435
442
  'vitest-js/no-focused-tests': 'off',
436
443
 
437
444
  // Disallow setup and teardown hooks
438
445
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-hooks.md
439
- // decision: handled by native vitest/no-hooks
446
+ // Decision: handled by native vitest/no-hooks
440
447
  'vitest-js/no-hooks': 'off',
441
448
 
442
449
  // Disallow identical titles
443
450
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-identical-title.md
444
- // decision: handled by native vitest/no-identical-title
451
+ // Decision: handled by native vitest/no-identical-title
445
452
  'vitest-js/no-identical-title': 'off',
446
453
 
447
454
  // Disallow importing node:test
448
455
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-import-node-test.md
449
- // decision: handled by native vitest/no-import-node-test
456
+ // Decision: handled by native vitest/no-import-node-test
450
457
  'vitest-js/no-import-node-test': 'off',
451
458
 
452
459
  // Disallow importing vitest globals
453
460
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-importing-vitest-globals.md
454
- // decision: handled by native vitest/no-importing-vitest-globals
461
+ // Decision: handled by native vitest/no-importing-vitest-globals
455
462
  'vitest-js/no-importing-vitest-globals': 'off',
456
463
 
457
464
  // Disallow string interpolation in snapshots
458
465
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-interpolation-in-snapshots.md
459
- // decision: handled by native vitest/no-interpolation-in-snapshots
466
+ // Decision: handled by native vitest/no-interpolation-in-snapshots
460
467
  'vitest-js/no-interpolation-in-snapshots': 'off',
461
468
 
462
469
  // Disallow large snapshots
463
470
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-large-snapshots.md
464
- // decision: handled by native vitest/no-large-snapshots
471
+ // Decision: handled by native vitest/no-large-snapshots
465
472
  'vitest-js/no-large-snapshots': 'off',
466
473
 
467
474
  // Disallow importing from mocks directory
468
475
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-mocks-import.md
469
- // decision: handled by native vitest/no-mocks-import
476
+ // Decision: handled by native vitest/no-mocks-import
470
477
  'vitest-js/no-mocks-import': 'off',
471
478
 
472
479
  // Disallow the use of certain matchers
473
480
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-restricted-matchers.md
474
- // decision: handled by native vitest/no-restricted-matchers
481
+ // Decision: handled by native vitest/no-restricted-matchers
475
482
  'vitest-js/no-restricted-matchers': 'off',
476
483
 
477
484
  // Disallow using expect outside of it or test blocks
478
485
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-standalone-expect.md
479
- // decision: handled by native vitest/no-standalone-expect
486
+ // Decision: handled by native vitest/no-standalone-expect
480
487
  'vitest-js/no-standalone-expect': 'off',
481
488
 
482
489
  // Disallow using test as a prefix
483
490
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-prefixes.md
484
- // decision: handled by native vitest/no-test-prefixes
491
+ // Decision: handled by native vitest/no-test-prefixes
485
492
  'vitest-js/no-test-prefixes': 'off',
486
493
 
487
494
  // Disallow return statements in tests
488
495
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-return-statement.md
489
- // decision: handled by native vitest/no-test-return-statement
496
+ // Decision: handled by native vitest/no-test-return-statement
490
497
  'vitest-js/no-test-return-statement': 'off',
491
498
 
492
499
  // Disallow unnecessary async in expect functions
493
500
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-unneeded-async-expect-function.md
494
- // decision: handled by native vitest/no-unneeded-async-expect-function
501
+ // Decision: handled by native vitest/no-unneeded-async-expect-function
495
502
  'vitest-js/no-unneeded-async-expect-function': 'off',
496
503
 
497
504
  // Enforce padding around all blocks
498
505
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-all.md
499
- // decision: redundant with individual padding rules configured above
506
+ // Decision: redundant with individual padding rules configured above
500
507
  'vitest-js/padding-around-all': 'off',
501
508
 
502
509
  // Enforce padding around test blocks
503
510
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-test-blocks.md
504
- // decision: handled by native vitest/padding-around-test-blocks
511
+ // Decision: handled by native vitest/padding-around-test-blocks
505
512
  'vitest-js/padding-around-test-blocks': 'off',
506
513
 
507
514
  // Prefer toHaveBeenCalledOnce() over toHaveBeenCalledTimes(1)
508
515
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-called-once.md
509
- // decision: handled by native vitest/prefer-called-once
516
+ // Decision: handled by native vitest/prefer-called-once
510
517
  'vitest-js/prefer-called-once': 'off',
511
518
 
512
519
  // Prefer toHaveBeenCalledTimes over multiple assertions
513
520
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-called-times.md
514
- // decision: handled by native vitest/prefer-called-times
521
+ // Decision: handled by native vitest/prefer-called-times
515
522
  'vitest-js/prefer-called-times': 'off',
516
523
 
517
524
  // Suggest using toBeCalledWith() or toHaveBeenCalledWith()
518
525
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-called-with.md
519
- // decision: handled by native vitest/prefer-called-with
526
+ // Decision: handled by native vitest/prefer-called-with
520
527
  'vitest-js/prefer-called-with': 'off',
521
528
 
522
529
  // Suggest using the built-in comparison matchers
523
530
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-comparison-matcher.md
524
- // decision: handled by native vitest/prefer-comparison-matcher
531
+ // Decision: handled by native vitest/prefer-comparison-matcher
525
532
  'vitest-js/prefer-comparison-matcher': 'off',
526
533
 
527
534
  // Enforce describe titles to match function names
528
535
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-describe-function-title.md
529
- // decision: handled by native vitest/prefer-describe-function-title
536
+ // Decision: handled by native vitest/prefer-describe-function-title
530
537
  'vitest-js/prefer-describe-function-title': 'off',
531
538
 
532
539
  // Prefer each rather than manual loops
533
540
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-each.md
534
- // decision: handled by native vitest/prefer-each
541
+ // Decision: handled by native vitest/prefer-each
535
542
  'vitest-js/prefer-each': 'off',
536
543
 
537
544
  // Suggest using the built-in equality matchers
538
545
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-equality-matcher.md
539
- // decision: handled by native vitest/prefer-equality-matcher
546
+ // Decision: handled by native vitest/prefer-equality-matcher
540
547
  'vitest-js/prefer-equality-matcher': 'off',
541
548
 
542
549
  // Suggest using expect.assertions
543
550
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-expect-assertions.md
544
- // decision: too strict for general use
551
+ // Decision: too strict for general use
545
552
  'vitest-js/prefer-expect-assertions': 'off',
546
553
 
547
554
  // Suggest using expect().resolves over expect(await ...) syntax
548
555
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-expect-resolves.md
549
- // decision: handled by native vitest/prefer-expect-resolves
556
+ // Decision: handled by native vitest/prefer-expect-resolves
550
557
  'vitest-js/prefer-expect-resolves': 'off',
551
558
 
552
559
  // Prefer expect.typeOf() usage
553
560
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-expect-type-of.md
554
- // decision: handled by native vitest/prefer-expect-type-of
561
+ // Decision: handled by native vitest/prefer-expect-type-of
555
562
  'vitest-js/prefer-expect-type-of': 'off',
556
563
 
557
564
  // Prefer having hooks in consistent order
558
565
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-hooks-in-order.md
559
- // decision: handled by native vitest/prefer-hooks-in-order
566
+ // Decision: handled by native vitest/prefer-hooks-in-order
560
567
  'vitest-js/prefer-hooks-in-order': 'off',
561
568
 
562
569
  // Suggest having hooks before any test cases
563
570
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-hooks-on-top.md
564
- // decision: handled by native vitest/prefer-hooks-on-top
571
+ // Decision: handled by native vitest/prefer-hooks-on-top
565
572
  'vitest-js/prefer-hooks-on-top': 'off',
566
573
 
567
574
  // Prefer vi.importActual/vi.importMock in vi.mock factories
568
575
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-import-in-mock.md
569
- // decision: handled by native vitest/prefer-import-in-mock
576
+ // Decision: handled by native vitest/prefer-import-in-mock
570
577
  'vitest-js/prefer-import-in-mock': 'off',
571
578
 
572
579
  // Enforce lowercase titles
573
580
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-lowercase-title.md
574
- // decision: handled by native vitest/prefer-lowercase-title
581
+ // Decision: handled by native vitest/prefer-lowercase-title
575
582
  'vitest-js/prefer-lowercase-title': 'off',
576
583
 
577
584
  // Prefer mock resolved/rejected shorthands for promises
578
585
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-mock-promise-shorthand.md
579
- // decision: handled by native vitest/prefer-mock-promise-shorthand
586
+ // Decision: handled by native vitest/prefer-mock-promise-shorthand
580
587
  'vitest-js/prefer-mock-promise-shorthand': 'off',
581
588
 
582
589
  // Suggest using vi.spyOn
583
590
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-spy-on.md
584
- // decision: handled by native vitest/prefer-spy-on
591
+ // Decision: handled by native vitest/prefer-spy-on
585
592
  'vitest-js/prefer-spy-on': 'off',
586
593
 
587
594
  // Prefer strict boolean matchers (toBe(true) over toBeTruthy())
588
595
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-strict-boolean-matchers.md
589
- // decision: handled by native vitest/prefer-strict-boolean-matchers
596
+ // Decision: handled by native vitest/prefer-strict-boolean-matchers
590
597
  'vitest-js/prefer-strict-boolean-matchers': 'off',
591
598
 
592
599
  // Prefer strict equal over equal
593
600
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-strict-equal.md
594
- // decision: handled by native vitest/prefer-strict-equal
601
+ // Decision: handled by native vitest/prefer-strict-equal
595
602
  'vitest-js/prefer-strict-equal': 'off',
596
603
 
597
604
  // Suggest using toBe()
598
605
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be.md
599
- // decision: handled by native vitest/prefer-to-be
606
+ // Decision: handled by native vitest/prefer-to-be
600
607
  'vitest-js/prefer-to-be': 'off',
601
608
 
602
609
  // Suggest using toBeFalsy()
603
610
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be-falsy.md
604
- // decision: handled by native vitest/prefer-to-be-falsy
611
+ // Decision: handled by native vitest/prefer-to-be-falsy
605
612
  'vitest-js/prefer-to-be-falsy': 'off',
606
613
 
607
614
  // Prefer toBeObject()
608
615
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be-object.md
609
- // decision: handled by native vitest/prefer-to-be-object
616
+ // Decision: handled by native vitest/prefer-to-be-object
610
617
  'vitest-js/prefer-to-be-object': 'off',
611
618
 
612
619
  // Suggest using toBeTruthy
613
620
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be-truthy.md
614
- // decision: handled by native vitest/prefer-to-be-truthy
621
+ // Decision: handled by native vitest/prefer-to-be-truthy
615
622
  'vitest-js/prefer-to-be-truthy': 'off',
616
623
 
617
624
  // Prefer using toContain()
618
625
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-contain.md
619
- // decision: handled by native vitest/prefer-to-contain
626
+ // Decision: handled by native vitest/prefer-to-contain
620
627
  'vitest-js/prefer-to-contain': 'off',
621
628
 
622
629
  // Prefer toHaveBeenCalledTimes over multiple assertions
623
630
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-been-called-times.md
624
- // decision: handled by native vitest/prefer-called-times
631
+ // Decision: handled by native vitest/prefer-called-times
625
632
  'vitest-js/prefer-to-have-been-called-times': 'off',
626
633
 
627
634
  // Suggest using toHaveLength()
628
635
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-length.md
629
- // decision: handled by native vitest/prefer-to-have-length
636
+ // Decision: handled by native vitest/prefer-to-have-length
630
637
  'vitest-js/prefer-to-have-length': 'off',
631
638
 
632
639
  // Suggest using test.todo
633
640
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-todo.md
634
- // decision: handled by native vitest/prefer-todo
641
+ // Decision: handled by native vitest/prefer-todo
635
642
  'vitest-js/prefer-todo': 'off',
636
643
 
637
644
  // Prefer vi.mocked() over type casting
@@ -640,62 +647,62 @@ export const vitestRules = {
640
647
 
641
648
  // Require awaited expect.poll() calls
642
649
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-awaited-expect-poll.md
643
- // decision: handled by native vitest/require-awaited-expect-poll
650
+ // Decision: handled by native vitest/require-awaited-expect-poll
644
651
  'vitest-js/require-awaited-expect-poll': 'off',
645
652
 
646
653
  // Require setup and teardown to be within a hook
647
654
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
648
- // decision: handled by native vitest/require-hook
655
+ // Decision: handled by native vitest/require-hook
649
656
  'vitest-js/require-hook': 'off',
650
657
 
651
658
  // Require local Test Context for concurrent snapshot tests
652
659
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-local-test-context-for-concurrent-snapshots.md
653
- // decision: handled by native vitest/require-local-test-context-for-concurrent-snapshots
660
+ // Decision: handled by native vitest/require-local-test-context-for-concurrent-snapshots
654
661
  'vitest-js/require-local-test-context-for-concurrent-snapshots': 'off',
655
662
 
656
663
  // Require type parameters on mock function calls
657
664
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-mock-type-parameters.md
658
- // decision: handled by native vitest/require-mock-type-parameters
665
+ // Decision: handled by native vitest/require-mock-type-parameters
659
666
  'vitest-js/require-mock-type-parameters': 'off',
660
667
 
661
668
  // Require test timeout
662
669
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-test-timeout.md
663
- // decision: too strict for general use
670
+ // Decision: too strict for general use
664
671
  'vitest-js/require-test-timeout': 'off',
665
672
 
666
673
  // Require toThrow() to be called with an error message
667
674
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-to-throw-message.md
668
- // decision: handled by native vitest/require-to-throw-message
675
+ // Decision: handled by native vitest/require-to-throw-message
669
676
  'vitest-js/require-to-throw-message': 'off',
670
677
 
671
678
  // Enforce that all tests are in a top-level describe
672
679
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-top-level-describe.md
673
- // decision: handled by native vitest/require-top-level-describe
680
+ // Decision: handled by native vitest/require-top-level-describe
674
681
  'vitest-js/require-top-level-describe': 'off',
675
682
 
676
683
  // Enforce unbound methods are called with their expected scope
677
684
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/unbound-method.md
678
- // decision: requires type information that jsPlugins may not have access to
685
+ // Decision: requires type information that jsPlugins may not have access to
679
686
  'vitest-js/unbound-method': 'off',
680
687
 
681
688
  // Enforce valid describe callback
682
689
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-describe-callback.md
683
- // decision: handled by native vitest/valid-describe-callback
690
+ // Decision: handled by native vitest/valid-describe-callback
684
691
  'vitest-js/valid-describe-callback': 'off',
685
692
 
686
693
  // Enforce valid expect() usage
687
694
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-expect.md
688
- // decision: handled by native vitest/valid-expect
695
+ // Decision: handled by native vitest/valid-expect
689
696
  'vitest-js/valid-expect': 'off',
690
697
 
691
698
  // Enforce valid expect in promise
692
699
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-expect-in-promise.md
693
- // decision: too strict for general use
700
+ // Decision: too strict for general use
694
701
  'vitest-js/valid-expect-in-promise': 'off',
695
702
 
696
703
  // Enforce valid titles
697
704
  // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-title.md
698
- // decision: handled by native vitest/valid-title
705
+ // Decision: handled by native vitest/valid-title
699
706
  'vitest-js/valid-title': 'off',
700
707
  },
701
708
  };