@coderwyd/eslint-config 2.7.1 → 2.7.3
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/dist/cli.cjs +12 -13
- package/dist/cli.js +12 -13
- package/dist/index.cjs +23 -8
- package/dist/index.d.cts +187 -110
- package/dist/index.d.ts +187 -110
- package/dist/index.js +22 -7
- package/package.json +24 -25
package/dist/index.d.ts
CHANGED
|
@@ -55,6 +55,11 @@ interface RuleOptions {
|
|
|
55
55
|
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-import-node-modules-by-path.test.ts
|
|
56
56
|
*/
|
|
57
57
|
'antfu/no-import-node-modules-by-path'?: Linter.RuleEntry<[]>
|
|
58
|
+
/**
|
|
59
|
+
* Prevent using top-level await
|
|
60
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-top-level-await.test.ts
|
|
61
|
+
*/
|
|
62
|
+
'antfu/no-top-level-await'?: Linter.RuleEntry<[]>
|
|
58
63
|
/**
|
|
59
64
|
* Do not use `exports =`
|
|
60
65
|
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-ts-export-equal.test.ts
|
|
@@ -387,233 +392,233 @@ interface RuleOptions {
|
|
|
387
392
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
388
393
|
/**
|
|
389
394
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
390
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
395
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/consistent-type-specifier-style.md
|
|
391
396
|
*/
|
|
392
397
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
|
|
393
398
|
/**
|
|
394
399
|
* Ensure a default export is present, given a default import.
|
|
395
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
400
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/default.md
|
|
396
401
|
*/
|
|
397
402
|
'import/default'?: Linter.RuleEntry<[]>
|
|
398
403
|
/**
|
|
399
404
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
400
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
405
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/dynamic-import-chunkname.md
|
|
401
406
|
*/
|
|
402
407
|
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
|
|
403
408
|
/**
|
|
404
409
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
405
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
410
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/export.md
|
|
406
411
|
*/
|
|
407
412
|
'import/export'?: Linter.RuleEntry<[]>
|
|
408
413
|
/**
|
|
409
414
|
* Ensure all exports appear after other statements.
|
|
410
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
415
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/exports-last.md
|
|
411
416
|
*/
|
|
412
417
|
'import/exports-last'?: Linter.RuleEntry<[]>
|
|
413
418
|
/**
|
|
414
419
|
* Ensure consistent use of file extension within the import path.
|
|
415
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
420
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/extensions.md
|
|
416
421
|
*/
|
|
417
422
|
'import/extensions'?: Linter.RuleEntry<ImportExtensions>
|
|
418
423
|
/**
|
|
419
424
|
* Ensure all imports appear before other statements.
|
|
420
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
425
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/first.md
|
|
421
426
|
*/
|
|
422
427
|
'import/first'?: Linter.RuleEntry<ImportFirst>
|
|
423
428
|
/**
|
|
424
429
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
425
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
430
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/group-exports.md
|
|
426
431
|
*/
|
|
427
432
|
'import/group-exports'?: Linter.RuleEntry<[]>
|
|
428
433
|
/**
|
|
429
434
|
* Replaced by `import-x/first`.
|
|
430
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
435
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/imports-first.md
|
|
431
436
|
* @deprecated
|
|
432
437
|
*/
|
|
433
438
|
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
|
|
434
439
|
/**
|
|
435
440
|
* Enforce the maximum number of dependencies a module can have.
|
|
436
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
441
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/max-dependencies.md
|
|
437
442
|
*/
|
|
438
443
|
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
|
|
439
444
|
/**
|
|
440
445
|
* Ensure named imports correspond to a named export in the remote file.
|
|
441
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
446
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/named.md
|
|
442
447
|
*/
|
|
443
448
|
'import/named'?: Linter.RuleEntry<ImportNamed>
|
|
444
449
|
/**
|
|
445
450
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
446
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
451
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/namespace.md
|
|
447
452
|
*/
|
|
448
453
|
'import/namespace'?: Linter.RuleEntry<ImportNamespace>
|
|
449
454
|
/**
|
|
450
455
|
* Enforce a newline after import statements.
|
|
451
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
456
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/newline-after-import.md
|
|
452
457
|
*/
|
|
453
458
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
|
|
454
459
|
/**
|
|
455
460
|
* Forbid import of modules using absolute paths.
|
|
456
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
461
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/no-absolute-path.md
|
|
457
462
|
*/
|
|
458
463
|
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
|
|
459
464
|
/**
|
|
460
465
|
* Forbid AMD `require` and `define` calls.
|
|
461
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
466
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/no-amd.md
|
|
462
467
|
*/
|
|
463
468
|
'import/no-amd'?: Linter.RuleEntry<[]>
|
|
464
469
|
/**
|
|
465
470
|
* Forbid anonymous values as default exports.
|
|
466
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
471
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/no-anonymous-default-export.md
|
|
467
472
|
*/
|
|
468
473
|
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
|
|
469
474
|
/**
|
|
470
475
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
471
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
476
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/no-commonjs.md
|
|
472
477
|
*/
|
|
473
478
|
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
|
|
474
479
|
/**
|
|
475
480
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
476
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
481
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/no-cycle.md
|
|
477
482
|
*/
|
|
478
483
|
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
|
|
479
484
|
/**
|
|
480
485
|
* Forbid default exports.
|
|
481
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
486
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/no-default-export.md
|
|
482
487
|
*/
|
|
483
488
|
'import/no-default-export'?: Linter.RuleEntry<[]>
|
|
484
489
|
/**
|
|
485
490
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
486
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
491
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/no-deprecated.md
|
|
487
492
|
*/
|
|
488
493
|
'import/no-deprecated'?: Linter.RuleEntry<[]>
|
|
489
494
|
/**
|
|
490
495
|
* Forbid repeated import of the same module in multiple places.
|
|
491
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
496
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/no-duplicates.md
|
|
492
497
|
*/
|
|
493
498
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
|
|
494
499
|
/**
|
|
495
500
|
* Forbid `require()` calls with expressions.
|
|
496
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
501
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/no-dynamic-require.md
|
|
497
502
|
*/
|
|
498
503
|
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
|
|
499
504
|
/**
|
|
500
505
|
* Forbid empty named import blocks.
|
|
501
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
506
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/no-empty-named-blocks.md
|
|
502
507
|
*/
|
|
503
508
|
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
504
509
|
/**
|
|
505
510
|
* Forbid the use of extraneous packages.
|
|
506
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
511
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/no-extraneous-dependencies.md
|
|
507
512
|
*/
|
|
508
513
|
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
|
|
509
514
|
/**
|
|
510
515
|
* Forbid import statements with CommonJS module.exports.
|
|
511
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
516
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/no-import-module-exports.md
|
|
512
517
|
*/
|
|
513
518
|
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
|
|
514
519
|
/**
|
|
515
520
|
* Forbid importing the submodules of other modules.
|
|
516
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
521
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/no-internal-modules.md
|
|
517
522
|
*/
|
|
518
523
|
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
|
|
519
524
|
/**
|
|
520
525
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
521
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
526
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/no-mutable-exports.md
|
|
522
527
|
*/
|
|
523
528
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
524
529
|
/**
|
|
525
530
|
* Forbid use of exported name as identifier of default export.
|
|
526
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
531
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/no-named-as-default.md
|
|
527
532
|
*/
|
|
528
533
|
'import/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
529
534
|
/**
|
|
530
535
|
* Forbid use of exported name as property of default export.
|
|
531
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
536
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/no-named-as-default-member.md
|
|
532
537
|
*/
|
|
533
538
|
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
534
539
|
/**
|
|
535
540
|
* Forbid named default exports.
|
|
536
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
541
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/no-named-default.md
|
|
537
542
|
*/
|
|
538
543
|
'import/no-named-default'?: Linter.RuleEntry<[]>
|
|
539
544
|
/**
|
|
540
545
|
* Forbid named exports.
|
|
541
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
546
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/no-named-export.md
|
|
542
547
|
*/
|
|
543
548
|
'import/no-named-export'?: Linter.RuleEntry<[]>
|
|
544
549
|
/**
|
|
545
550
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
546
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
551
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/no-namespace.md
|
|
547
552
|
*/
|
|
548
553
|
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
|
|
549
554
|
/**
|
|
550
555
|
* Forbid Node.js builtin modules.
|
|
551
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
556
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/no-nodejs-modules.md
|
|
552
557
|
*/
|
|
553
558
|
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
|
|
554
559
|
/**
|
|
555
560
|
* Forbid importing packages through relative paths.
|
|
556
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
561
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/no-relative-packages.md
|
|
557
562
|
*/
|
|
558
563
|
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
|
|
559
564
|
/**
|
|
560
565
|
* Forbid importing modules from parent directories.
|
|
561
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
566
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/no-relative-parent-imports.md
|
|
562
567
|
*/
|
|
563
568
|
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
|
|
564
569
|
/**
|
|
565
570
|
* Forbid importing a default export by a different name.
|
|
566
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
571
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/no-rename-default.md
|
|
567
572
|
*/
|
|
568
573
|
'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>
|
|
569
574
|
/**
|
|
570
575
|
* Enforce which files can be imported in a given folder.
|
|
571
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
576
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/no-restricted-paths.md
|
|
572
577
|
*/
|
|
573
578
|
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
|
|
574
579
|
/**
|
|
575
580
|
* Forbid a module from importing itself.
|
|
576
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
581
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/no-self-import.md
|
|
577
582
|
*/
|
|
578
583
|
'import/no-self-import'?: Linter.RuleEntry<[]>
|
|
579
584
|
/**
|
|
580
585
|
* Forbid unassigned imports.
|
|
581
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
586
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/no-unassigned-import.md
|
|
582
587
|
*/
|
|
583
588
|
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
|
|
584
589
|
/**
|
|
585
590
|
* Ensure imports point to a file/module that can be resolved.
|
|
586
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
591
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/no-unresolved.md
|
|
587
592
|
*/
|
|
588
593
|
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
|
|
589
594
|
/**
|
|
590
595
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
591
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
596
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/no-unused-modules.md
|
|
592
597
|
*/
|
|
593
598
|
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
|
|
594
599
|
/**
|
|
595
600
|
* Forbid unnecessary path segments in import and require statements.
|
|
596
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
601
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/no-useless-path-segments.md
|
|
597
602
|
*/
|
|
598
603
|
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
|
|
599
604
|
/**
|
|
600
605
|
* Forbid webpack loader syntax in imports.
|
|
601
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
606
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/no-webpack-loader-syntax.md
|
|
602
607
|
*/
|
|
603
608
|
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
604
609
|
/**
|
|
605
610
|
* Enforce a convention in module import order.
|
|
606
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
611
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/order.md
|
|
607
612
|
*/
|
|
608
613
|
'import/order'?: Linter.RuleEntry<ImportOrder>
|
|
609
614
|
/**
|
|
610
615
|
* Prefer a default export if module exports a single name or multiple names.
|
|
611
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
616
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/prefer-default-export.md
|
|
612
617
|
*/
|
|
613
618
|
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
|
|
614
619
|
/**
|
|
615
620
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
616
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
621
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.0/docs/rules/unambiguous.md
|
|
617
622
|
*/
|
|
618
623
|
'import/unambiguous'?: Linter.RuleEntry<[]>
|
|
619
624
|
/**
|
|
@@ -3311,7 +3316,7 @@ interface RuleOptions {
|
|
|
3311
3316
|
* Enforce the use of `u` or `v` flag on RegExp
|
|
3312
3317
|
* @see https://eslint.org/docs/latest/rules/require-unicode-regexp
|
|
3313
3318
|
*/
|
|
3314
|
-
'require-unicode-regexp'?: Linter.RuleEntry<
|
|
3319
|
+
'require-unicode-regexp'?: Linter.RuleEntry<RequireUnicodeRegexp>
|
|
3315
3320
|
/**
|
|
3316
3321
|
* Require generator functions to contain `yield`
|
|
3317
3322
|
* @see https://eslint.org/docs/latest/rules/require-yield
|
|
@@ -4254,103 +4259,103 @@ interface RuleOptions {
|
|
|
4254
4259
|
'template-tag-spacing'?: Linter.RuleEntry<TemplateTagSpacing>
|
|
4255
4260
|
/**
|
|
4256
4261
|
* require .spec test file pattern
|
|
4257
|
-
* @see https://github.com/
|
|
4262
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-filename.md
|
|
4258
4263
|
*/
|
|
4259
4264
|
'test/consistent-test-filename'?: Linter.RuleEntry<TestConsistentTestFilename>
|
|
4260
4265
|
/**
|
|
4261
4266
|
* enforce using test or it but not both
|
|
4262
|
-
* @see https://github.com/
|
|
4267
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-it.md
|
|
4263
4268
|
*/
|
|
4264
4269
|
'test/consistent-test-it'?: Linter.RuleEntry<TestConsistentTestIt>
|
|
4265
4270
|
/**
|
|
4266
4271
|
* enforce having expectation in test body
|
|
4267
|
-
* @see https://github.com/
|
|
4272
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/expect-expect.md
|
|
4268
4273
|
*/
|
|
4269
4274
|
'test/expect-expect'?: Linter.RuleEntry<TestExpectExpect>
|
|
4270
4275
|
/**
|
|
4271
4276
|
* enforce a maximum number of expect per test
|
|
4272
|
-
* @see https://github.com/
|
|
4277
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/max-expects.md
|
|
4273
4278
|
*/
|
|
4274
4279
|
'test/max-expects'?: Linter.RuleEntry<TestMaxExpects>
|
|
4275
4280
|
/**
|
|
4276
4281
|
* require describe block to be less than set max value or default value
|
|
4277
|
-
* @see https://github.com/
|
|
4282
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/max-nested-describe.md
|
|
4278
4283
|
*/
|
|
4279
4284
|
'test/max-nested-describe'?: Linter.RuleEntry<TestMaxNestedDescribe>
|
|
4280
4285
|
/**
|
|
4281
4286
|
* disallow alias methods
|
|
4282
|
-
* @see https://github.com/
|
|
4287
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-alias-methods.md
|
|
4283
4288
|
*/
|
|
4284
4289
|
'test/no-alias-methods'?: Linter.RuleEntry<[]>
|
|
4285
4290
|
/**
|
|
4286
4291
|
* disallow commented out tests
|
|
4287
|
-
* @see https://github.com/
|
|
4292
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-commented-out-tests.md
|
|
4288
4293
|
*/
|
|
4289
4294
|
'test/no-commented-out-tests'?: Linter.RuleEntry<[]>
|
|
4290
4295
|
/**
|
|
4291
4296
|
* disallow conditional expects
|
|
4292
|
-
* @see https://github.com/
|
|
4297
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-expect.md
|
|
4293
4298
|
*/
|
|
4294
4299
|
'test/no-conditional-expect'?: Linter.RuleEntry<[]>
|
|
4295
4300
|
/**
|
|
4296
4301
|
* disallow conditional tests
|
|
4297
|
-
* @see https://github.com/
|
|
4302
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-in-test.md
|
|
4298
4303
|
*/
|
|
4299
4304
|
'test/no-conditional-in-test'?: Linter.RuleEntry<[]>
|
|
4300
4305
|
/**
|
|
4301
4306
|
* disallow conditional tests
|
|
4302
|
-
* @see https://github.com/
|
|
4307
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-tests.md
|
|
4303
4308
|
*/
|
|
4304
4309
|
'test/no-conditional-tests'?: Linter.RuleEntry<[]>
|
|
4305
4310
|
/**
|
|
4306
4311
|
* disallow disabled tests
|
|
4307
|
-
* @see https://github.com/
|
|
4312
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-disabled-tests.md
|
|
4308
4313
|
*/
|
|
4309
4314
|
'test/no-disabled-tests'?: Linter.RuleEntry<[]>
|
|
4310
4315
|
/**
|
|
4311
4316
|
* disallow using a callback in asynchronous tests and hooks
|
|
4312
|
-
* @see https://github.com/
|
|
4317
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-done-callback.md
|
|
4313
4318
|
* @deprecated
|
|
4314
4319
|
*/
|
|
4315
4320
|
'test/no-done-callback'?: Linter.RuleEntry<[]>
|
|
4316
4321
|
/**
|
|
4317
4322
|
* disallow duplicate hooks and teardown hooks
|
|
4318
|
-
* @see https://github.com/
|
|
4323
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-duplicate-hooks.md
|
|
4319
4324
|
*/
|
|
4320
4325
|
'test/no-duplicate-hooks'?: Linter.RuleEntry<[]>
|
|
4321
4326
|
/**
|
|
4322
4327
|
* disallow focused tests
|
|
4323
|
-
* @see https://github.com/
|
|
4328
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-focused-tests.md
|
|
4324
4329
|
*/
|
|
4325
4330
|
'test/no-focused-tests'?: Linter.RuleEntry<TestNoFocusedTests>
|
|
4326
4331
|
/**
|
|
4327
4332
|
* disallow setup and teardown hooks
|
|
4328
|
-
* @see https://github.com/
|
|
4333
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-hooks.md
|
|
4329
4334
|
*/
|
|
4330
4335
|
'test/no-hooks'?: Linter.RuleEntry<TestNoHooks>
|
|
4331
4336
|
/**
|
|
4332
4337
|
* disallow identical titles
|
|
4333
|
-
* @see https://github.com/
|
|
4338
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-identical-title.md
|
|
4334
4339
|
*/
|
|
4335
4340
|
'test/no-identical-title'?: Linter.RuleEntry<[]>
|
|
4336
4341
|
/**
|
|
4337
4342
|
* disallow importing `node:test`
|
|
4338
|
-
* @see https://github.com/
|
|
4343
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-import-node-test.md
|
|
4339
4344
|
*/
|
|
4340
4345
|
'test/no-import-node-test'?: Linter.RuleEntry<[]>
|
|
4341
4346
|
/**
|
|
4342
4347
|
* disallow string interpolation in snapshots
|
|
4343
|
-
* @see https://github.com/
|
|
4348
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-interpolation-in-snapshots.md
|
|
4344
4349
|
*/
|
|
4345
4350
|
'test/no-interpolation-in-snapshots'?: Linter.RuleEntry<[]>
|
|
4346
4351
|
/**
|
|
4347
4352
|
* disallow large snapshots
|
|
4348
|
-
* @see https://github.com/
|
|
4353
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-large-snapshots.md
|
|
4349
4354
|
*/
|
|
4350
4355
|
'test/no-large-snapshots'?: Linter.RuleEntry<TestNoLargeSnapshots>
|
|
4351
4356
|
/**
|
|
4352
4357
|
* disallow importing from __mocks__ directory
|
|
4353
|
-
* @see https://github.com/
|
|
4358
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-mocks-import.md
|
|
4354
4359
|
*/
|
|
4355
4360
|
'test/no-mocks-import'?: Linter.RuleEntry<[]>
|
|
4356
4361
|
/**
|
|
@@ -4360,202 +4365,202 @@ interface RuleOptions {
|
|
|
4360
4365
|
'test/no-only-tests'?: Linter.RuleEntry<TestNoOnlyTests>
|
|
4361
4366
|
/**
|
|
4362
4367
|
* disallow the use of certain matchers
|
|
4363
|
-
* @see https://github.com/
|
|
4368
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-restricted-matchers.md
|
|
4364
4369
|
*/
|
|
4365
4370
|
'test/no-restricted-matchers'?: Linter.RuleEntry<TestNoRestrictedMatchers>
|
|
4366
4371
|
/**
|
|
4367
4372
|
* disallow specific `vi.` methods
|
|
4368
|
-
* @see https://github.com/
|
|
4373
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-restricted-vi-methods.md
|
|
4369
4374
|
*/
|
|
4370
4375
|
'test/no-restricted-vi-methods'?: Linter.RuleEntry<TestNoRestrictedViMethods>
|
|
4371
4376
|
/**
|
|
4372
4377
|
* disallow using `expect` outside of `it` or `test` blocks
|
|
4373
|
-
* @see https://github.com/
|
|
4378
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-standalone-expect.md
|
|
4374
4379
|
*/
|
|
4375
4380
|
'test/no-standalone-expect'?: Linter.RuleEntry<TestNoStandaloneExpect>
|
|
4376
4381
|
/**
|
|
4377
4382
|
* disallow using `test` as a prefix
|
|
4378
|
-
* @see https://github.com/
|
|
4383
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-prefixes.md
|
|
4379
4384
|
*/
|
|
4380
4385
|
'test/no-test-prefixes'?: Linter.RuleEntry<[]>
|
|
4381
4386
|
/**
|
|
4382
4387
|
* disallow return statements in tests
|
|
4383
|
-
* @see https://github.com/
|
|
4388
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-return-statement.md
|
|
4384
4389
|
*/
|
|
4385
4390
|
'test/no-test-return-statement'?: Linter.RuleEntry<[]>
|
|
4386
4391
|
/**
|
|
4387
4392
|
* Enforce padding around `afterAll` blocks
|
|
4388
|
-
* @see https://github.com/
|
|
4393
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-after-all-blocks.md
|
|
4389
4394
|
*/
|
|
4390
4395
|
'test/padding-around-after-all-blocks'?: Linter.RuleEntry<[]>
|
|
4391
4396
|
/**
|
|
4392
4397
|
* Enforce padding around `afterEach` blocks
|
|
4393
|
-
* @see https://github.com/
|
|
4398
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-after-each-blocks.md
|
|
4394
4399
|
*/
|
|
4395
4400
|
'test/padding-around-after-each-blocks'?: Linter.RuleEntry<[]>
|
|
4396
4401
|
/**
|
|
4397
4402
|
* Enforce padding around vitest functions
|
|
4398
|
-
* @see https://github.com/
|
|
4403
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-all.md
|
|
4399
4404
|
*/
|
|
4400
4405
|
'test/padding-around-all'?: Linter.RuleEntry<[]>
|
|
4401
4406
|
/**
|
|
4402
4407
|
* Enforce padding around `beforeAll` blocks
|
|
4403
|
-
* @see https://github.com/
|
|
4408
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-before-all-blocks.md
|
|
4404
4409
|
*/
|
|
4405
4410
|
'test/padding-around-before-all-blocks'?: Linter.RuleEntry<[]>
|
|
4406
4411
|
/**
|
|
4407
4412
|
* Enforce padding around `beforeEach` blocks
|
|
4408
|
-
* @see https://github.com/
|
|
4413
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-before-each-blocks.md
|
|
4409
4414
|
*/
|
|
4410
4415
|
'test/padding-around-before-each-blocks'?: Linter.RuleEntry<[]>
|
|
4411
4416
|
/**
|
|
4412
4417
|
* Enforce padding around `describe` blocks
|
|
4413
|
-
* @see https://github.com/
|
|
4418
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-describe-blocks.md
|
|
4414
4419
|
*/
|
|
4415
4420
|
'test/padding-around-describe-blocks'?: Linter.RuleEntry<[]>
|
|
4416
4421
|
/**
|
|
4417
4422
|
* Enforce padding around `expect` groups
|
|
4418
|
-
* @see https://github.com/
|
|
4423
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-expect-groups.md
|
|
4419
4424
|
*/
|
|
4420
4425
|
'test/padding-around-expect-groups'?: Linter.RuleEntry<[]>
|
|
4421
4426
|
/**
|
|
4422
4427
|
* Enforce padding around afterAll blocks
|
|
4423
|
-
* @see https://github.com/
|
|
4428
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-test-blocks.md
|
|
4424
4429
|
*/
|
|
4425
4430
|
'test/padding-around-test-blocks'?: Linter.RuleEntry<[]>
|
|
4426
4431
|
/**
|
|
4427
4432
|
* enforce using `toBeCalledWith()` or `toHaveBeenCalledWith()`
|
|
4428
|
-
* @see https://github.com/
|
|
4433
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-called-with.md
|
|
4429
4434
|
*/
|
|
4430
4435
|
'test/prefer-called-with'?: Linter.RuleEntry<[]>
|
|
4431
4436
|
/**
|
|
4432
4437
|
* enforce using the built-in comparison matchers
|
|
4433
|
-
* @see https://github.com/
|
|
4438
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-comparison-matcher.md
|
|
4434
4439
|
*/
|
|
4435
4440
|
'test/prefer-comparison-matcher'?: Linter.RuleEntry<[]>
|
|
4436
4441
|
/**
|
|
4437
4442
|
* enforce using `each` rather than manual loops
|
|
4438
|
-
* @see https://github.com/
|
|
4443
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-each.md
|
|
4439
4444
|
*/
|
|
4440
4445
|
'test/prefer-each'?: Linter.RuleEntry<[]>
|
|
4441
4446
|
/**
|
|
4442
4447
|
* enforce using the built-in quality matchers
|
|
4443
|
-
* @see https://github.com/
|
|
4448
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-equality-matcher.md
|
|
4444
4449
|
*/
|
|
4445
4450
|
'test/prefer-equality-matcher'?: Linter.RuleEntry<[]>
|
|
4446
4451
|
/**
|
|
4447
4452
|
* enforce using expect assertions instead of callbacks
|
|
4448
|
-
* @see https://github.com/
|
|
4453
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-expect-assertions.md
|
|
4449
4454
|
*/
|
|
4450
4455
|
'test/prefer-expect-assertions'?: Linter.RuleEntry<TestPreferExpectAssertions>
|
|
4451
4456
|
/**
|
|
4452
4457
|
* enforce using `expect().resolves` over `expect(await ...)` syntax
|
|
4453
|
-
* @see https://github.com/
|
|
4458
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-expect-resolves.md
|
|
4454
4459
|
*/
|
|
4455
4460
|
'test/prefer-expect-resolves'?: Linter.RuleEntry<[]>
|
|
4456
4461
|
/**
|
|
4457
4462
|
* enforce having hooks in consistent order
|
|
4458
|
-
* @see https://github.com/
|
|
4463
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-hooks-in-order.md
|
|
4459
4464
|
*/
|
|
4460
4465
|
'test/prefer-hooks-in-order'?: Linter.RuleEntry<[]>
|
|
4461
4466
|
/**
|
|
4462
4467
|
* enforce having hooks before any test cases
|
|
4463
|
-
* @see https://github.com/
|
|
4468
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-hooks-on-top.md
|
|
4464
4469
|
*/
|
|
4465
4470
|
'test/prefer-hooks-on-top'?: Linter.RuleEntry<[]>
|
|
4466
4471
|
/**
|
|
4467
4472
|
* enforce lowercase titles
|
|
4468
|
-
* @see https://github.com/
|
|
4473
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-lowercase-title.md
|
|
4469
4474
|
*/
|
|
4470
4475
|
'test/prefer-lowercase-title'?: Linter.RuleEntry<TestPreferLowercaseTitle>
|
|
4471
4476
|
/**
|
|
4472
4477
|
* enforce mock resolved/rejected shorthands for promises
|
|
4473
|
-
* @see https://github.com/
|
|
4478
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-mock-promise-shorthand.md
|
|
4474
4479
|
*/
|
|
4475
4480
|
'test/prefer-mock-promise-shorthand'?: Linter.RuleEntry<[]>
|
|
4476
4481
|
/**
|
|
4477
4482
|
* enforce including a hint with external snapshots
|
|
4478
|
-
* @see https://github.com/
|
|
4483
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-snapshot-hint.md
|
|
4479
4484
|
*/
|
|
4480
4485
|
'test/prefer-snapshot-hint'?: Linter.RuleEntry<TestPreferSnapshotHint>
|
|
4481
4486
|
/**
|
|
4482
4487
|
* enforce using `vi.spyOn`
|
|
4483
|
-
* @see https://github.com/
|
|
4488
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-spy-on.md
|
|
4484
4489
|
*/
|
|
4485
4490
|
'test/prefer-spy-on'?: Linter.RuleEntry<[]>
|
|
4486
4491
|
/**
|
|
4487
4492
|
* enforce strict equal over equal
|
|
4488
|
-
* @see https://github.com/
|
|
4493
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-strict-equal.md
|
|
4489
4494
|
*/
|
|
4490
4495
|
'test/prefer-strict-equal'?: Linter.RuleEntry<[]>
|
|
4491
4496
|
/**
|
|
4492
4497
|
* enforce using toBe()
|
|
4493
|
-
* @see https://github.com/
|
|
4498
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be.md
|
|
4494
4499
|
*/
|
|
4495
4500
|
'test/prefer-to-be'?: Linter.RuleEntry<[]>
|
|
4496
4501
|
/**
|
|
4497
4502
|
* enforce using toBeFalsy()
|
|
4498
|
-
* @see https://github.com/
|
|
4503
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be-falsy.md
|
|
4499
4504
|
*/
|
|
4500
4505
|
'test/prefer-to-be-falsy'?: Linter.RuleEntry<[]>
|
|
4501
4506
|
/**
|
|
4502
4507
|
* enforce using toBeObject()
|
|
4503
|
-
* @see https://github.com/
|
|
4508
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be-object.md
|
|
4504
4509
|
*/
|
|
4505
4510
|
'test/prefer-to-be-object'?: Linter.RuleEntry<[]>
|
|
4506
4511
|
/**
|
|
4507
4512
|
* enforce using `toBeTruthy`
|
|
4508
|
-
* @see https://github.com/
|
|
4513
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be-truthy.md
|
|
4509
4514
|
*/
|
|
4510
4515
|
'test/prefer-to-be-truthy'?: Linter.RuleEntry<[]>
|
|
4511
4516
|
/**
|
|
4512
4517
|
* enforce using toContain()
|
|
4513
|
-
* @see https://github.com/
|
|
4518
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-contain.md
|
|
4514
4519
|
*/
|
|
4515
4520
|
'test/prefer-to-contain'?: Linter.RuleEntry<[]>
|
|
4516
4521
|
/**
|
|
4517
4522
|
* enforce using toHaveLength()
|
|
4518
|
-
* @see https://github.com/
|
|
4523
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-length.md
|
|
4519
4524
|
*/
|
|
4520
4525
|
'test/prefer-to-have-length'?: Linter.RuleEntry<[]>
|
|
4521
4526
|
/**
|
|
4522
4527
|
* enforce using `test.todo`
|
|
4523
|
-
* @see https://github.com/
|
|
4528
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-todo.md
|
|
4524
4529
|
*/
|
|
4525
4530
|
'test/prefer-todo'?: Linter.RuleEntry<[]>
|
|
4526
4531
|
/**
|
|
4527
4532
|
* require setup and teardown to be within a hook
|
|
4528
|
-
* @see https://github.com/
|
|
4533
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
|
|
4529
4534
|
*/
|
|
4530
4535
|
'test/require-hook'?: Linter.RuleEntry<TestRequireHook>
|
|
4531
4536
|
/**
|
|
4532
4537
|
* require local Test Context for concurrent snapshot tests
|
|
4533
|
-
* @see https://github.com/
|
|
4538
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-local-test-context-for-concurrent-snapshots.md
|
|
4534
4539
|
*/
|
|
4535
4540
|
'test/require-local-test-context-for-concurrent-snapshots'?: Linter.RuleEntry<[]>
|
|
4536
4541
|
/**
|
|
4537
4542
|
* require toThrow() to be called with an error message
|
|
4538
|
-
* @see https://github.com/
|
|
4543
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-to-throw-message.md
|
|
4539
4544
|
*/
|
|
4540
4545
|
'test/require-to-throw-message'?: Linter.RuleEntry<[]>
|
|
4541
4546
|
/**
|
|
4542
4547
|
* enforce that all tests are in a top-level describe
|
|
4543
|
-
* @see https://github.com/
|
|
4548
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-top-level-describe.md
|
|
4544
4549
|
*/
|
|
4545
4550
|
'test/require-top-level-describe'?: Linter.RuleEntry<TestRequireTopLevelDescribe>
|
|
4546
4551
|
/**
|
|
4547
4552
|
* enforce valid describe callback
|
|
4548
|
-
* @see https://github.com/
|
|
4553
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-describe-callback.md
|
|
4549
4554
|
*/
|
|
4550
4555
|
'test/valid-describe-callback'?: Linter.RuleEntry<[]>
|
|
4551
4556
|
/**
|
|
4552
4557
|
* enforce valid `expect()` usage
|
|
4553
|
-
* @see https://github.com/
|
|
4558
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-expect.md
|
|
4554
4559
|
*/
|
|
4555
4560
|
'test/valid-expect'?: Linter.RuleEntry<TestValidExpect>
|
|
4556
4561
|
/**
|
|
4557
4562
|
* enforce valid titles
|
|
4558
|
-
* @see https://github.com/
|
|
4563
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-title.md
|
|
4559
4564
|
*/
|
|
4560
4565
|
'test/valid-title'?: Linter.RuleEntry<TestValidTitle>
|
|
4561
4566
|
/**
|
|
@@ -7195,7 +7200,7 @@ type AccessorPairs = []|[{
|
|
|
7195
7200
|
// ----- antfu/consistent-chaining -----
|
|
7196
7201
|
type AntfuConsistentChaining = []|[{
|
|
7197
7202
|
|
|
7198
|
-
|
|
7203
|
+
allowLeadingPropertyAccess?: boolean
|
|
7199
7204
|
}]
|
|
7200
7205
|
// ----- antfu/consistent-list-newline -----
|
|
7201
7206
|
type AntfuConsistentListNewline = []|[{
|
|
@@ -9719,6 +9724,10 @@ type PerfectionistSortArrayIncludes = []|[{
|
|
|
9719
9724
|
ignoreCase?: boolean
|
|
9720
9725
|
|
|
9721
9726
|
groupKind?: ("mixed" | "literals-first" | "spreads-first")
|
|
9727
|
+
|
|
9728
|
+
partitionByComment?: (string[] | boolean | string)
|
|
9729
|
+
|
|
9730
|
+
partitionByNewLine?: boolean
|
|
9722
9731
|
}]
|
|
9723
9732
|
// ----- perfectionist/sort-astro-attributes -----
|
|
9724
9733
|
type PerfectionistSortAstroAttributes = []|[{
|
|
@@ -9798,6 +9807,8 @@ type PerfectionistSortEnums = []|[{
|
|
|
9798
9807
|
forceNumericSort?: boolean
|
|
9799
9808
|
|
|
9800
9809
|
partitionByComment?: (string[] | boolean | string)
|
|
9810
|
+
|
|
9811
|
+
partitionByNewLine?: boolean
|
|
9801
9812
|
}]
|
|
9802
9813
|
// ----- perfectionist/sort-exports -----
|
|
9803
9814
|
type PerfectionistSortExports = []|[{
|
|
@@ -9807,6 +9818,12 @@ type PerfectionistSortExports = []|[{
|
|
|
9807
9818
|
order?: ("asc" | "desc")
|
|
9808
9819
|
|
|
9809
9820
|
ignoreCase?: boolean
|
|
9821
|
+
|
|
9822
|
+
partitionByComment?: (string[] | boolean | string)
|
|
9823
|
+
|
|
9824
|
+
partitionByNewLine?: boolean
|
|
9825
|
+
|
|
9826
|
+
groupKind?: ("mixed" | "values-first" | "types-first")
|
|
9810
9827
|
}]
|
|
9811
9828
|
// ----- perfectionist/sort-imports -----
|
|
9812
9829
|
type PerfectionistSortImports = []|[_PerfectionistSortImportsSortImports]
|
|
@@ -9820,6 +9837,8 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
|
|
|
9820
9837
|
|
|
9821
9838
|
internalPattern?: string[]
|
|
9822
9839
|
|
|
9840
|
+
sortSideEffects?: boolean
|
|
9841
|
+
|
|
9823
9842
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
9824
9843
|
|
|
9825
9844
|
maxLineLength?: number
|
|
@@ -9855,6 +9874,8 @@ type PerfectionistSortInterfaces = []|[{
|
|
|
9855
9874
|
|
|
9856
9875
|
ignorePattern?: string[]
|
|
9857
9876
|
|
|
9877
|
+
partitionByComment?: (boolean | string | string[])
|
|
9878
|
+
|
|
9858
9879
|
partitionByNewLine?: boolean
|
|
9859
9880
|
|
|
9860
9881
|
groupKind?: ("mixed" | "optional-first" | "required-first")
|
|
@@ -9875,6 +9896,10 @@ type PerfectionistSortIntersectionTypes = []|[{
|
|
|
9875
9896
|
ignoreCase?: boolean
|
|
9876
9897
|
|
|
9877
9898
|
groups?: (string | string[])[]
|
|
9899
|
+
|
|
9900
|
+
partitionByComment?: (string[] | boolean | string)
|
|
9901
|
+
|
|
9902
|
+
partitionByNewLine?: boolean
|
|
9878
9903
|
}]
|
|
9879
9904
|
// ----- perfectionist/sort-jsx-props -----
|
|
9880
9905
|
type PerfectionistSortJsxProps = []|[{
|
|
@@ -9901,6 +9926,10 @@ type PerfectionistSortMaps = []|[{
|
|
|
9901
9926
|
order?: ("asc" | "desc")
|
|
9902
9927
|
|
|
9903
9928
|
ignoreCase?: boolean
|
|
9929
|
+
|
|
9930
|
+
partitionByComment?: (string[] | boolean | string)
|
|
9931
|
+
|
|
9932
|
+
partitionByNewLine?: boolean
|
|
9904
9933
|
}]
|
|
9905
9934
|
// ----- perfectionist/sort-named-exports -----
|
|
9906
9935
|
type PerfectionistSortNamedExports = []|[{
|
|
@@ -9912,6 +9941,10 @@ type PerfectionistSortNamedExports = []|[{
|
|
|
9912
9941
|
ignoreCase?: boolean
|
|
9913
9942
|
|
|
9914
9943
|
groupKind?: ("mixed" | "values-first" | "types-first")
|
|
9944
|
+
|
|
9945
|
+
partitionByComment?: (string[] | boolean | string)
|
|
9946
|
+
|
|
9947
|
+
partitionByNewLine?: boolean
|
|
9915
9948
|
}]
|
|
9916
9949
|
// ----- perfectionist/sort-named-imports -----
|
|
9917
9950
|
type PerfectionistSortNamedImports = []|[{
|
|
@@ -9925,6 +9958,10 @@ type PerfectionistSortNamedImports = []|[{
|
|
|
9925
9958
|
ignoreAlias?: boolean
|
|
9926
9959
|
|
|
9927
9960
|
groupKind?: ("mixed" | "values-first" | "types-first")
|
|
9961
|
+
|
|
9962
|
+
partitionByComment?: (string[] | boolean | string)
|
|
9963
|
+
|
|
9964
|
+
partitionByNewLine?: boolean
|
|
9928
9965
|
}]
|
|
9929
9966
|
// ----- perfectionist/sort-object-types -----
|
|
9930
9967
|
type PerfectionistSortObjectTypes = []|[{
|
|
@@ -9935,6 +9972,8 @@ type PerfectionistSortObjectTypes = []|[{
|
|
|
9935
9972
|
|
|
9936
9973
|
ignoreCase?: boolean
|
|
9937
9974
|
|
|
9975
|
+
partitionByComment?: (string[] | boolean | string)
|
|
9976
|
+
|
|
9938
9977
|
partitionByNewLine?: boolean
|
|
9939
9978
|
|
|
9940
9979
|
groupKind?: ("mixed" | "required-first" | "optional-first")
|
|
@@ -9980,6 +10019,10 @@ type PerfectionistSortSets = []|[{
|
|
|
9980
10019
|
ignoreCase?: boolean
|
|
9981
10020
|
|
|
9982
10021
|
groupKind?: ("mixed" | "literals-first" | "spreads-first")
|
|
10022
|
+
|
|
10023
|
+
partitionByComment?: (string[] | boolean | string)
|
|
10024
|
+
|
|
10025
|
+
partitionByNewLine?: boolean
|
|
9983
10026
|
}]
|
|
9984
10027
|
// ----- perfectionist/sort-svelte-attributes -----
|
|
9985
10028
|
type PerfectionistSortSvelteAttributes = []|[{
|
|
@@ -10015,6 +10058,10 @@ type PerfectionistSortUnionTypes = []|[{
|
|
|
10015
10058
|
ignoreCase?: boolean
|
|
10016
10059
|
|
|
10017
10060
|
groups?: (string | string[])[]
|
|
10061
|
+
|
|
10062
|
+
partitionByComment?: (string[] | boolean | string)
|
|
10063
|
+
|
|
10064
|
+
partitionByNewLine?: boolean
|
|
10018
10065
|
}]
|
|
10019
10066
|
// ----- perfectionist/sort-variable-declarations -----
|
|
10020
10067
|
type PerfectionistSortVariableDeclarations = []|[{
|
|
@@ -10024,6 +10071,10 @@ type PerfectionistSortVariableDeclarations = []|[{
|
|
|
10024
10071
|
order?: ("asc" | "desc")
|
|
10025
10072
|
|
|
10026
10073
|
ignoreCase?: boolean
|
|
10074
|
+
|
|
10075
|
+
partitionByComment?: (string[] | boolean | string)
|
|
10076
|
+
|
|
10077
|
+
partitionByNewLine?: boolean
|
|
10027
10078
|
}]
|
|
10028
10079
|
// ----- perfectionist/sort-vue-attributes -----
|
|
10029
10080
|
type PerfectionistSortVueAttributes = []|[{
|
|
@@ -10255,6 +10306,10 @@ type RegexpUnicodeProperty = []|[{
|
|
|
10255
10306
|
type RequireAtomicUpdates = []|[{
|
|
10256
10307
|
allowProperties?: boolean
|
|
10257
10308
|
}]
|
|
10309
|
+
// ----- require-unicode-regexp -----
|
|
10310
|
+
type RequireUnicodeRegexp = []|[{
|
|
10311
|
+
requireFlag?: ("u" | "v")
|
|
10312
|
+
}]
|
|
10258
10313
|
// ----- rest-spread-spacing -----
|
|
10259
10314
|
type RestSpreadSpacing = []|[("always" | "never")]
|
|
10260
10315
|
// ----- semi -----
|
|
@@ -10467,6 +10522,7 @@ type StyleIndent = []|[("tab" | number)]|[("tab" | number), {
|
|
|
10467
10522
|
offsetTernaryExpressions?: boolean
|
|
10468
10523
|
ignoredNodes?: string[]
|
|
10469
10524
|
ignoreComments?: boolean
|
|
10525
|
+
tabLength?: number
|
|
10470
10526
|
}]
|
|
10471
10527
|
// ----- style/indent-binary-ops -----
|
|
10472
10528
|
type StyleIndentBinaryOps = []|[(number | "tab")]
|
|
@@ -10841,6 +10897,10 @@ type StyleKeywordSpacing = []|[{
|
|
|
10841
10897
|
before?: boolean
|
|
10842
10898
|
after?: boolean
|
|
10843
10899
|
}
|
|
10900
|
+
satisfies?: {
|
|
10901
|
+
before?: boolean
|
|
10902
|
+
after?: boolean
|
|
10903
|
+
}
|
|
10844
10904
|
set?: {
|
|
10845
10905
|
before?: boolean
|
|
10846
10906
|
after?: boolean
|
|
@@ -11321,7 +11381,6 @@ type StyleTypeAnnotationSpacing = []|[{
|
|
|
11321
11381
|
parameter?: _StyleTypeAnnotationSpacing_SpacingConfig
|
|
11322
11382
|
property?: _StyleTypeAnnotationSpacing_SpacingConfig
|
|
11323
11383
|
returnType?: _StyleTypeAnnotationSpacing_SpacingConfig
|
|
11324
|
-
operator?: _StyleTypeAnnotationSpacing_SpacingConfig
|
|
11325
11384
|
}
|
|
11326
11385
|
}]
|
|
11327
11386
|
interface _StyleTypeAnnotationSpacing_SpacingConfig {
|
|
@@ -12673,6 +12732,19 @@ type TsRestrictTemplateExpressions = []|[{
|
|
|
12673
12732
|
allowRegExp?: boolean
|
|
12674
12733
|
|
|
12675
12734
|
allowNever?: boolean
|
|
12735
|
+
|
|
12736
|
+
allow?: (string | {
|
|
12737
|
+
from: "file"
|
|
12738
|
+
name: (string | [string, ...(string)[]])
|
|
12739
|
+
path?: string
|
|
12740
|
+
} | {
|
|
12741
|
+
from: "lib"
|
|
12742
|
+
name: (string | [string, ...(string)[]])
|
|
12743
|
+
} | {
|
|
12744
|
+
from: "package"
|
|
12745
|
+
name: (string | [string, ...(string)[]])
|
|
12746
|
+
package: string
|
|
12747
|
+
})[]
|
|
12676
12748
|
}]
|
|
12677
12749
|
// ----- ts/return-await -----
|
|
12678
12750
|
type TsReturnAwait = []|[(("always" | "error-handling-correctness-only" | "in-try-catch" | "never") & string)]
|
|
@@ -13490,6 +13562,10 @@ type VueKeywordSpacing = []|[{
|
|
|
13490
13562
|
before?: boolean
|
|
13491
13563
|
after?: boolean
|
|
13492
13564
|
}
|
|
13565
|
+
satisfies?: {
|
|
13566
|
+
before?: boolean
|
|
13567
|
+
after?: boolean
|
|
13568
|
+
}
|
|
13493
13569
|
set?: {
|
|
13494
13570
|
before?: boolean
|
|
13495
13571
|
after?: boolean
|
|
@@ -14828,6 +14904,7 @@ declare function getOverrides<K extends keyof OptionsConfig>(options: OptionsCon
|
|
|
14828
14904
|
'antfu/indent-unindent'?: eslint.Linter.RuleEntry<undefined> | undefined;
|
|
14829
14905
|
'antfu/no-import-dist'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
14830
14906
|
'antfu/no-import-node-modules-by-path'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
14907
|
+
'antfu/no-top-level-await'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
14831
14908
|
'antfu/no-ts-export-equal'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
14832
14909
|
'antfu/top-level-function'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
14833
14910
|
'array-bracket-newline'?: eslint.Linter.RuleEntry<undefined> | undefined;
|
|
@@ -15464,7 +15541,7 @@ declare function getOverrides<K extends keyof OptionsConfig>(options: OptionsCon
|
|
|
15464
15541
|
'regexp/use-ignore-case'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
15465
15542
|
'require-atomic-updates'?: eslint.Linter.RuleEntry<undefined> | undefined;
|
|
15466
15543
|
'require-await'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
15467
|
-
'require-unicode-regexp'?: eslint.Linter.RuleEntry<
|
|
15544
|
+
'require-unicode-regexp'?: eslint.Linter.RuleEntry<undefined> | undefined;
|
|
15468
15545
|
'require-yield'?: eslint.Linter.RuleEntry<[]> | undefined;
|
|
15469
15546
|
'rest-spread-spacing'?: eslint.Linter.RuleEntry<undefined> | undefined;
|
|
15470
15547
|
semi?: eslint.Linter.RuleEntry<undefined> | undefined;
|