@lincy/eslint-config 5.0.0 → 5.1.1
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/README.md +1 -2
- package/dist/index.cjs +731 -687
- package/dist/index.d.cts +461 -160
- package/dist/index.d.ts +461 -160
- package/dist/index.js +746 -704
- package/package.json +20 -21
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StylisticCustomizeOptions } from '@stylistic/eslint-plugin';
|
|
2
|
+
import { ParserOptions } from '@typescript-eslint/parser';
|
|
2
3
|
import { Linter } from 'eslint';
|
|
3
4
|
import { FlatGitignoreOptions } from 'eslint-config-flat-gitignore';
|
|
4
|
-
import { ParserOptions } from '@typescript-eslint/parser';
|
|
5
5
|
import { Options } from 'eslint-processor-vue-blocks';
|
|
6
|
-
import {
|
|
6
|
+
import { FlatConfigComposer } from 'eslint-flat-config-utils';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* 来自 Prettier 的供应商类型,因此不依赖依赖项
|
|
@@ -114,6 +114,11 @@ interface RuleOptions {
|
|
|
114
114
|
* @see https://eslint.org/docs/latest/rules/accessor-pairs
|
|
115
115
|
*/
|
|
116
116
|
'accessor-pairs'?: Linter.RuleEntry<AccessorPairs>
|
|
117
|
+
/**
|
|
118
|
+
* Having line breaks styles to object, array and named imports
|
|
119
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/consistent-chaining.md
|
|
120
|
+
*/
|
|
121
|
+
'antfu/consistent-chaining'?: Linter.RuleEntry<AntfuConsistentChaining>
|
|
117
122
|
/**
|
|
118
123
|
* Having line breaks styles to object, array and named imports
|
|
119
124
|
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/consistent-list-newline.md
|
|
@@ -121,7 +126,7 @@ interface RuleOptions {
|
|
|
121
126
|
'antfu/consistent-list-newline'?: Linter.RuleEntry<AntfuConsistentListNewline>
|
|
122
127
|
/**
|
|
123
128
|
* Enforce Anthony's style of curly bracket
|
|
124
|
-
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/curly.
|
|
129
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/curly.md
|
|
125
130
|
*/
|
|
126
131
|
'antfu/curly'?: Linter.RuleEntry<[]>
|
|
127
132
|
/**
|
|
@@ -136,7 +141,7 @@ interface RuleOptions {
|
|
|
136
141
|
'antfu/import-dedupe'?: Linter.RuleEntry<[]>
|
|
137
142
|
/**
|
|
138
143
|
* Enforce consistent indentation in `unindent` template tag
|
|
139
|
-
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/indent-unindent.
|
|
144
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/indent-unindent.md
|
|
140
145
|
*/
|
|
141
146
|
'antfu/indent-unindent'?: Linter.RuleEntry<AntfuIndentUnindent>
|
|
142
147
|
/**
|
|
@@ -476,233 +481,233 @@ interface RuleOptions {
|
|
|
476
481
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
477
482
|
/**
|
|
478
483
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
479
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
484
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/consistent-type-specifier-style.md
|
|
480
485
|
*/
|
|
481
486
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
|
|
482
487
|
/**
|
|
483
488
|
* Ensure a default export is present, given a default import.
|
|
484
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
489
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/default.md
|
|
485
490
|
*/
|
|
486
491
|
'import/default'?: Linter.RuleEntry<[]>
|
|
487
492
|
/**
|
|
488
493
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
489
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
494
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/dynamic-import-chunkname.md
|
|
490
495
|
*/
|
|
491
496
|
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
|
|
492
497
|
/**
|
|
493
498
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
494
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
499
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/export.md
|
|
495
500
|
*/
|
|
496
501
|
'import/export'?: Linter.RuleEntry<[]>
|
|
497
502
|
/**
|
|
498
503
|
* Ensure all exports appear after other statements.
|
|
499
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
504
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/exports-last.md
|
|
500
505
|
*/
|
|
501
506
|
'import/exports-last'?: Linter.RuleEntry<[]>
|
|
502
507
|
/**
|
|
503
508
|
* Ensure consistent use of file extension within the import path.
|
|
504
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
509
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/extensions.md
|
|
505
510
|
*/
|
|
506
511
|
'import/extensions'?: Linter.RuleEntry<ImportExtensions>
|
|
507
512
|
/**
|
|
508
513
|
* Ensure all imports appear before other statements.
|
|
509
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
514
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/first.md
|
|
510
515
|
*/
|
|
511
516
|
'import/first'?: Linter.RuleEntry<ImportFirst>
|
|
512
517
|
/**
|
|
513
518
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
514
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
519
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/group-exports.md
|
|
515
520
|
*/
|
|
516
521
|
'import/group-exports'?: Linter.RuleEntry<[]>
|
|
517
522
|
/**
|
|
518
523
|
* Replaced by `import-x/first`.
|
|
519
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
524
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/imports-first.md
|
|
520
525
|
* @deprecated
|
|
521
526
|
*/
|
|
522
527
|
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
|
|
523
528
|
/**
|
|
524
529
|
* Enforce the maximum number of dependencies a module can have.
|
|
525
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
530
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/max-dependencies.md
|
|
526
531
|
*/
|
|
527
532
|
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
|
|
528
533
|
/**
|
|
529
534
|
* Ensure named imports correspond to a named export in the remote file.
|
|
530
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
535
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/named.md
|
|
531
536
|
*/
|
|
532
537
|
'import/named'?: Linter.RuleEntry<ImportNamed>
|
|
533
538
|
/**
|
|
534
539
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
535
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
540
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/namespace.md
|
|
536
541
|
*/
|
|
537
542
|
'import/namespace'?: Linter.RuleEntry<ImportNamespace>
|
|
538
543
|
/**
|
|
539
544
|
* Enforce a newline after import statements.
|
|
540
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
545
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/newline-after-import.md
|
|
541
546
|
*/
|
|
542
547
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
|
|
543
548
|
/**
|
|
544
549
|
* Forbid import of modules using absolute paths.
|
|
545
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
550
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-absolute-path.md
|
|
546
551
|
*/
|
|
547
552
|
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
|
|
548
553
|
/**
|
|
549
554
|
* Forbid AMD `require` and `define` calls.
|
|
550
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
555
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-amd.md
|
|
551
556
|
*/
|
|
552
557
|
'import/no-amd'?: Linter.RuleEntry<[]>
|
|
553
558
|
/**
|
|
554
559
|
* Forbid anonymous values as default exports.
|
|
555
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
560
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-anonymous-default-export.md
|
|
556
561
|
*/
|
|
557
562
|
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
|
|
558
563
|
/**
|
|
559
564
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
560
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
565
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-commonjs.md
|
|
561
566
|
*/
|
|
562
567
|
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
|
|
563
568
|
/**
|
|
564
569
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
565
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
570
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-cycle.md
|
|
566
571
|
*/
|
|
567
572
|
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
|
|
568
573
|
/**
|
|
569
574
|
* Forbid default exports.
|
|
570
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
575
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-default-export.md
|
|
571
576
|
*/
|
|
572
577
|
'import/no-default-export'?: Linter.RuleEntry<[]>
|
|
573
578
|
/**
|
|
574
579
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
575
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
580
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-deprecated.md
|
|
576
581
|
*/
|
|
577
582
|
'import/no-deprecated'?: Linter.RuleEntry<[]>
|
|
578
583
|
/**
|
|
579
584
|
* Forbid repeated import of the same module in multiple places.
|
|
580
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
585
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-duplicates.md
|
|
581
586
|
*/
|
|
582
587
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
|
|
583
588
|
/**
|
|
584
589
|
* Forbid `require()` calls with expressions.
|
|
585
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
590
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-dynamic-require.md
|
|
586
591
|
*/
|
|
587
592
|
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
|
|
588
593
|
/**
|
|
589
594
|
* Forbid empty named import blocks.
|
|
590
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
595
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-empty-named-blocks.md
|
|
591
596
|
*/
|
|
592
597
|
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
593
598
|
/**
|
|
594
599
|
* Forbid the use of extraneous packages.
|
|
595
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
600
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-extraneous-dependencies.md
|
|
596
601
|
*/
|
|
597
602
|
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
|
|
598
603
|
/**
|
|
599
604
|
* Forbid import statements with CommonJS module.exports.
|
|
600
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
605
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-import-module-exports.md
|
|
601
606
|
*/
|
|
602
607
|
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
|
|
603
608
|
/**
|
|
604
609
|
* Forbid importing the submodules of other modules.
|
|
605
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
610
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-internal-modules.md
|
|
606
611
|
*/
|
|
607
612
|
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
|
|
608
613
|
/**
|
|
609
614
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
610
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
615
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-mutable-exports.md
|
|
611
616
|
*/
|
|
612
617
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
613
618
|
/**
|
|
614
619
|
* Forbid use of exported name as identifier of default export.
|
|
615
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
620
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-as-default.md
|
|
616
621
|
*/
|
|
617
622
|
'import/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
618
623
|
/**
|
|
619
624
|
* Forbid use of exported name as property of default export.
|
|
620
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
625
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-as-default-member.md
|
|
621
626
|
*/
|
|
622
627
|
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
623
628
|
/**
|
|
624
629
|
* Forbid named default exports.
|
|
625
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
630
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-default.md
|
|
626
631
|
*/
|
|
627
632
|
'import/no-named-default'?: Linter.RuleEntry<[]>
|
|
628
633
|
/**
|
|
629
634
|
* Forbid named exports.
|
|
630
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
635
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-export.md
|
|
631
636
|
*/
|
|
632
637
|
'import/no-named-export'?: Linter.RuleEntry<[]>
|
|
633
638
|
/**
|
|
634
639
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
635
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
640
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-namespace.md
|
|
636
641
|
*/
|
|
637
642
|
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
|
|
638
643
|
/**
|
|
639
644
|
* Forbid Node.js builtin modules.
|
|
640
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
645
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-nodejs-modules.md
|
|
641
646
|
*/
|
|
642
647
|
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
|
|
643
648
|
/**
|
|
644
649
|
* Forbid importing packages through relative paths.
|
|
645
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
650
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-relative-packages.md
|
|
646
651
|
*/
|
|
647
652
|
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
|
|
648
653
|
/**
|
|
649
654
|
* Forbid importing modules from parent directories.
|
|
650
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
655
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-relative-parent-imports.md
|
|
651
656
|
*/
|
|
652
657
|
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
|
|
653
658
|
/**
|
|
654
659
|
* Forbid importing a default export by a different name.
|
|
655
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
660
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-rename-default.md
|
|
656
661
|
*/
|
|
657
662
|
'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>
|
|
658
663
|
/**
|
|
659
664
|
* Enforce which files can be imported in a given folder.
|
|
660
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
665
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-restricted-paths.md
|
|
661
666
|
*/
|
|
662
667
|
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
|
|
663
668
|
/**
|
|
664
669
|
* Forbid a module from importing itself.
|
|
665
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
670
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-self-import.md
|
|
666
671
|
*/
|
|
667
672
|
'import/no-self-import'?: Linter.RuleEntry<[]>
|
|
668
673
|
/**
|
|
669
674
|
* Forbid unassigned imports.
|
|
670
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
675
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unassigned-import.md
|
|
671
676
|
*/
|
|
672
677
|
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
|
|
673
678
|
/**
|
|
674
679
|
* Ensure imports point to a file/module that can be resolved.
|
|
675
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
680
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unresolved.md
|
|
676
681
|
*/
|
|
677
682
|
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
|
|
678
683
|
/**
|
|
679
684
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
680
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
685
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unused-modules.md
|
|
681
686
|
*/
|
|
682
687
|
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
|
|
683
688
|
/**
|
|
684
689
|
* Forbid unnecessary path segments in import and require statements.
|
|
685
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
690
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-useless-path-segments.md
|
|
686
691
|
*/
|
|
687
692
|
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
|
|
688
693
|
/**
|
|
689
694
|
* Forbid webpack loader syntax in imports.
|
|
690
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
695
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-webpack-loader-syntax.md
|
|
691
696
|
*/
|
|
692
697
|
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
693
698
|
/**
|
|
694
699
|
* Enforce a convention in module import order.
|
|
695
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
700
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/order.md
|
|
696
701
|
*/
|
|
697
702
|
'import/order'?: Linter.RuleEntry<ImportOrder>
|
|
698
703
|
/**
|
|
699
704
|
* Prefer a default export if module exports a single name or multiple names.
|
|
700
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
705
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/prefer-default-export.md
|
|
701
706
|
*/
|
|
702
707
|
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
|
|
703
708
|
/**
|
|
704
709
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
705
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
710
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/unambiguous.md
|
|
706
711
|
*/
|
|
707
712
|
'import/unambiguous'?: Linter.RuleEntry<[]>
|
|
708
713
|
/**
|
|
@@ -1278,6 +1283,34 @@ interface RuleOptions {
|
|
|
1278
1283
|
* @see https://eslint.org/docs/latest/rules/logical-assignment-operators
|
|
1279
1284
|
*/
|
|
1280
1285
|
'logical-assignment-operators'?: Linter.RuleEntry<LogicalAssignmentOperators>
|
|
1286
|
+
/**
|
|
1287
|
+
* Require languages for fenced code blocks.
|
|
1288
|
+
*/
|
|
1289
|
+
'markdown/fenced-code-language'?: Linter.RuleEntry<MarkdownFencedCodeLanguage>
|
|
1290
|
+
/**
|
|
1291
|
+
* Enforce heading levels increment by one.
|
|
1292
|
+
*/
|
|
1293
|
+
'markdown/heading-increment'?: Linter.RuleEntry<[]>
|
|
1294
|
+
/**
|
|
1295
|
+
* Disallow duplicate headings in the same document.
|
|
1296
|
+
*/
|
|
1297
|
+
'markdown/no-duplicate-headings'?: Linter.RuleEntry<[]>
|
|
1298
|
+
/**
|
|
1299
|
+
* Disallow empty links.
|
|
1300
|
+
*/
|
|
1301
|
+
'markdown/no-empty-links'?: Linter.RuleEntry<[]>
|
|
1302
|
+
/**
|
|
1303
|
+
* Disallow HTML tags.
|
|
1304
|
+
*/
|
|
1305
|
+
'markdown/no-html'?: Linter.RuleEntry<MarkdownNoHtml>
|
|
1306
|
+
/**
|
|
1307
|
+
* Disallow invalid label references.
|
|
1308
|
+
*/
|
|
1309
|
+
'markdown/no-invalid-label-refs'?: Linter.RuleEntry<[]>
|
|
1310
|
+
/**
|
|
1311
|
+
* Disallow missing label references.
|
|
1312
|
+
*/
|
|
1313
|
+
'markdown/no-missing-label-refs'?: Linter.RuleEntry<[]>
|
|
1281
1314
|
/**
|
|
1282
1315
|
* Enforce a maximum number of classes per file
|
|
1283
1316
|
* @see https://eslint.org/docs/latest/rules/max-classes-per-file
|
|
@@ -2502,6 +2535,11 @@ interface RuleOptions {
|
|
|
2502
2535
|
* @see https://perfectionist.dev/rules/sort-objects
|
|
2503
2536
|
*/
|
|
2504
2537
|
'perfectionist/sort-objects'?: Linter.RuleEntry<PerfectionistSortObjects>
|
|
2538
|
+
/**
|
|
2539
|
+
* Enforce sorted sets.
|
|
2540
|
+
* @see https://perfectionist.dev/rules/sort-sets
|
|
2541
|
+
*/
|
|
2542
|
+
'perfectionist/sort-sets'?: Linter.RuleEntry<PerfectionistSortSets>
|
|
2505
2543
|
/**
|
|
2506
2544
|
* Enforce sorted Svelte attributes.
|
|
2507
2545
|
* @see https://perfectionist.dev/rules/sort-svelte-attributes
|
|
@@ -2671,18 +2709,13 @@ interface RuleOptions {
|
|
|
2671
2709
|
*/
|
|
2672
2710
|
'react-dom/no-unsafe-target-blank'?: Linter.RuleEntry<[]>
|
|
2673
2711
|
/**
|
|
2674
|
-
* enforce custom hooks
|
|
2675
|
-
* @see https://eslint-react.xyz/docs/rules/hooks-extra-
|
|
2712
|
+
* enforce custom hooks to use at least one other hook inside
|
|
2713
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-redundant-custom-hook
|
|
2676
2714
|
*/
|
|
2677
2715
|
'react-hooks-extra/ensure-custom-hooks-using-other-hooks'?: Linter.RuleEntry<[]>
|
|
2678
2716
|
/**
|
|
2679
|
-
*
|
|
2680
|
-
* @see https://eslint-react.xyz/docs/rules/hooks-extra-
|
|
2681
|
-
*/
|
|
2682
|
-
'react-hooks-extra/ensure-use-callback-has-non-empty-deps'?: Linter.RuleEntry<[]>
|
|
2683
|
-
/**
|
|
2684
|
-
* enforce 'useMemo' has non-empty dependencies array
|
|
2685
|
-
* @see https://eslint-react.xyz/docs/rules/hooks-extra-ensure-use-memo-has-non-empty-deps
|
|
2717
|
+
* disallow unnecessary usage of 'useMemo'
|
|
2718
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-memo
|
|
2686
2719
|
*/
|
|
2687
2720
|
'react-hooks-extra/ensure-use-memo-has-non-empty-deps'?: Linter.RuleEntry<[]>
|
|
2688
2721
|
/**
|
|
@@ -2691,10 +2724,25 @@ interface RuleOptions {
|
|
|
2691
2724
|
*/
|
|
2692
2725
|
'react-hooks-extra/no-direct-set-state-in-use-effect'?: Linter.RuleEntry<[]>
|
|
2693
2726
|
/**
|
|
2694
|
-
* disallow direct calls to the 'set' function of 'useState' in '
|
|
2695
|
-
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-
|
|
2727
|
+
* disallow direct calls to the 'set' function of 'useState' in 'useEffect'
|
|
2728
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-effect
|
|
2696
2729
|
*/
|
|
2697
2730
|
'react-hooks-extra/no-direct-set-state-in-use-layout-effect'?: Linter.RuleEntry<[]>
|
|
2731
|
+
/**
|
|
2732
|
+
* enforce custom hooks to use at least one other hook inside
|
|
2733
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-redundant-custom-hook
|
|
2734
|
+
*/
|
|
2735
|
+
'react-hooks-extra/no-redundant-custom-hook'?: Linter.RuleEntry<[]>
|
|
2736
|
+
/**
|
|
2737
|
+
* disallow unnecessary usage of 'useCallback'
|
|
2738
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-callback
|
|
2739
|
+
*/
|
|
2740
|
+
'react-hooks-extra/no-unnecessary-use-callback'?: Linter.RuleEntry<[]>
|
|
2741
|
+
/**
|
|
2742
|
+
* disallow unnecessary usage of 'useMemo'
|
|
2743
|
+
* @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-memo
|
|
2744
|
+
*/
|
|
2745
|
+
'react-hooks-extra/no-unnecessary-use-memo'?: Linter.RuleEntry<[]>
|
|
2698
2746
|
/**
|
|
2699
2747
|
* disallow function calls in 'useState' that aren't wrapped in an initializer function
|
|
2700
2748
|
* @see https://eslint-react.xyz/docs/rules/hooks-extra-prefer-use-state-lazy-initialization
|
|
@@ -3385,7 +3433,7 @@ interface RuleOptions {
|
|
|
3385
3433
|
* Enforce the use of `u` or `v` flag on RegExp
|
|
3386
3434
|
* @see https://eslint.org/docs/latest/rules/require-unicode-regexp
|
|
3387
3435
|
*/
|
|
3388
|
-
'require-unicode-regexp'?: Linter.RuleEntry<
|
|
3436
|
+
'require-unicode-regexp'?: Linter.RuleEntry<RequireUnicodeRegexp>
|
|
3389
3437
|
/**
|
|
3390
3438
|
* Require generator functions to contain `yield`
|
|
3391
3439
|
* @see https://eslint.org/docs/latest/rules/require-yield
|
|
@@ -3972,103 +4020,103 @@ interface RuleOptions {
|
|
|
3972
4020
|
'template-tag-spacing'?: Linter.RuleEntry<TemplateTagSpacing>
|
|
3973
4021
|
/**
|
|
3974
4022
|
* require .spec test file pattern
|
|
3975
|
-
* @see https://github.com/
|
|
4023
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-filename.md
|
|
3976
4024
|
*/
|
|
3977
4025
|
'test/consistent-test-filename'?: Linter.RuleEntry<TestConsistentTestFilename>
|
|
3978
4026
|
/**
|
|
3979
4027
|
* enforce using test or it but not both
|
|
3980
|
-
* @see https://github.com/
|
|
4028
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-it.md
|
|
3981
4029
|
*/
|
|
3982
4030
|
'test/consistent-test-it'?: Linter.RuleEntry<TestConsistentTestIt>
|
|
3983
4031
|
/**
|
|
3984
4032
|
* enforce having expectation in test body
|
|
3985
|
-
* @see https://github.com/
|
|
4033
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/expect-expect.md
|
|
3986
4034
|
*/
|
|
3987
4035
|
'test/expect-expect'?: Linter.RuleEntry<TestExpectExpect>
|
|
3988
4036
|
/**
|
|
3989
4037
|
* enforce a maximum number of expect per test
|
|
3990
|
-
* @see https://github.com/
|
|
4038
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/max-expects.md
|
|
3991
4039
|
*/
|
|
3992
4040
|
'test/max-expects'?: Linter.RuleEntry<TestMaxExpects>
|
|
3993
4041
|
/**
|
|
3994
4042
|
* require describe block to be less than set max value or default value
|
|
3995
|
-
* @see https://github.com/
|
|
4043
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/max-nested-describe.md
|
|
3996
4044
|
*/
|
|
3997
4045
|
'test/max-nested-describe'?: Linter.RuleEntry<TestMaxNestedDescribe>
|
|
3998
4046
|
/**
|
|
3999
4047
|
* disallow alias methods
|
|
4000
|
-
* @see https://github.com/
|
|
4048
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-alias-methods.md
|
|
4001
4049
|
*/
|
|
4002
4050
|
'test/no-alias-methods'?: Linter.RuleEntry<[]>
|
|
4003
4051
|
/**
|
|
4004
4052
|
* disallow commented out tests
|
|
4005
|
-
* @see https://github.com/
|
|
4053
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-commented-out-tests.md
|
|
4006
4054
|
*/
|
|
4007
4055
|
'test/no-commented-out-tests'?: Linter.RuleEntry<[]>
|
|
4008
4056
|
/**
|
|
4009
4057
|
* disallow conditional expects
|
|
4010
|
-
* @see https://github.com/
|
|
4058
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-expect.md
|
|
4011
4059
|
*/
|
|
4012
4060
|
'test/no-conditional-expect'?: Linter.RuleEntry<[]>
|
|
4013
4061
|
/**
|
|
4014
4062
|
* disallow conditional tests
|
|
4015
|
-
* @see https://github.com/
|
|
4063
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-in-test.md
|
|
4016
4064
|
*/
|
|
4017
4065
|
'test/no-conditional-in-test'?: Linter.RuleEntry<[]>
|
|
4018
4066
|
/**
|
|
4019
4067
|
* disallow conditional tests
|
|
4020
|
-
* @see https://github.com/
|
|
4068
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-tests.md
|
|
4021
4069
|
*/
|
|
4022
4070
|
'test/no-conditional-tests'?: Linter.RuleEntry<[]>
|
|
4023
4071
|
/**
|
|
4024
4072
|
* disallow disabled tests
|
|
4025
|
-
* @see https://github.com/
|
|
4073
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-disabled-tests.md
|
|
4026
4074
|
*/
|
|
4027
4075
|
'test/no-disabled-tests'?: Linter.RuleEntry<[]>
|
|
4028
4076
|
/**
|
|
4029
4077
|
* disallow using a callback in asynchronous tests and hooks
|
|
4030
|
-
* @see https://github.com/
|
|
4078
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-done-callback.md
|
|
4031
4079
|
* @deprecated
|
|
4032
4080
|
*/
|
|
4033
4081
|
'test/no-done-callback'?: Linter.RuleEntry<[]>
|
|
4034
4082
|
/**
|
|
4035
4083
|
* disallow duplicate hooks and teardown hooks
|
|
4036
|
-
* @see https://github.com/
|
|
4084
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-duplicate-hooks.md
|
|
4037
4085
|
*/
|
|
4038
4086
|
'test/no-duplicate-hooks'?: Linter.RuleEntry<[]>
|
|
4039
4087
|
/**
|
|
4040
4088
|
* disallow focused tests
|
|
4041
|
-
* @see https://github.com/
|
|
4089
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-focused-tests.md
|
|
4042
4090
|
*/
|
|
4043
4091
|
'test/no-focused-tests'?: Linter.RuleEntry<TestNoFocusedTests>
|
|
4044
4092
|
/**
|
|
4045
4093
|
* disallow setup and teardown hooks
|
|
4046
|
-
* @see https://github.com/
|
|
4094
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-hooks.md
|
|
4047
4095
|
*/
|
|
4048
4096
|
'test/no-hooks'?: Linter.RuleEntry<TestNoHooks>
|
|
4049
4097
|
/**
|
|
4050
4098
|
* disallow identical titles
|
|
4051
|
-
* @see https://github.com/
|
|
4099
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-identical-title.md
|
|
4052
4100
|
*/
|
|
4053
4101
|
'test/no-identical-title'?: Linter.RuleEntry<[]>
|
|
4054
4102
|
/**
|
|
4055
4103
|
* disallow importing `node:test`
|
|
4056
|
-
* @see https://github.com/
|
|
4104
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-import-node-test.md
|
|
4057
4105
|
*/
|
|
4058
4106
|
'test/no-import-node-test'?: Linter.RuleEntry<[]>
|
|
4059
4107
|
/**
|
|
4060
4108
|
* disallow string interpolation in snapshots
|
|
4061
|
-
* @see https://github.com/
|
|
4109
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-interpolation-in-snapshots.md
|
|
4062
4110
|
*/
|
|
4063
4111
|
'test/no-interpolation-in-snapshots'?: Linter.RuleEntry<[]>
|
|
4064
4112
|
/**
|
|
4065
4113
|
* disallow large snapshots
|
|
4066
|
-
* @see https://github.com/
|
|
4114
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-large-snapshots.md
|
|
4067
4115
|
*/
|
|
4068
4116
|
'test/no-large-snapshots'?: Linter.RuleEntry<TestNoLargeSnapshots>
|
|
4069
4117
|
/**
|
|
4070
4118
|
* disallow importing from __mocks__ directory
|
|
4071
|
-
* @see https://github.com/
|
|
4119
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-mocks-import.md
|
|
4072
4120
|
*/
|
|
4073
4121
|
'test/no-mocks-import'?: Linter.RuleEntry<[]>
|
|
4074
4122
|
/**
|
|
@@ -4078,202 +4126,202 @@ interface RuleOptions {
|
|
|
4078
4126
|
'test/no-only-tests'?: Linter.RuleEntry<TestNoOnlyTests>
|
|
4079
4127
|
/**
|
|
4080
4128
|
* disallow the use of certain matchers
|
|
4081
|
-
* @see https://github.com/
|
|
4129
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-restricted-matchers.md
|
|
4082
4130
|
*/
|
|
4083
4131
|
'test/no-restricted-matchers'?: Linter.RuleEntry<TestNoRestrictedMatchers>
|
|
4084
4132
|
/**
|
|
4085
4133
|
* disallow specific `vi.` methods
|
|
4086
|
-
* @see https://github.com/
|
|
4134
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-restricted-vi-methods.md
|
|
4087
4135
|
*/
|
|
4088
4136
|
'test/no-restricted-vi-methods'?: Linter.RuleEntry<TestNoRestrictedViMethods>
|
|
4089
4137
|
/**
|
|
4090
4138
|
* disallow using `expect` outside of `it` or `test` blocks
|
|
4091
|
-
* @see https://github.com/
|
|
4139
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-standalone-expect.md
|
|
4092
4140
|
*/
|
|
4093
4141
|
'test/no-standalone-expect'?: Linter.RuleEntry<TestNoStandaloneExpect>
|
|
4094
4142
|
/**
|
|
4095
4143
|
* disallow using `test` as a prefix
|
|
4096
|
-
* @see https://github.com/
|
|
4144
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-prefixes.md
|
|
4097
4145
|
*/
|
|
4098
4146
|
'test/no-test-prefixes'?: Linter.RuleEntry<[]>
|
|
4099
4147
|
/**
|
|
4100
4148
|
* disallow return statements in tests
|
|
4101
|
-
* @see https://github.com/
|
|
4149
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-return-statement.md
|
|
4102
4150
|
*/
|
|
4103
4151
|
'test/no-test-return-statement'?: Linter.RuleEntry<[]>
|
|
4104
4152
|
/**
|
|
4105
4153
|
* Enforce padding around `afterAll` blocks
|
|
4106
|
-
* @see https://github.com/
|
|
4154
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-after-all-blocks.md
|
|
4107
4155
|
*/
|
|
4108
4156
|
'test/padding-around-after-all-blocks'?: Linter.RuleEntry<[]>
|
|
4109
4157
|
/**
|
|
4110
4158
|
* Enforce padding around `afterEach` blocks
|
|
4111
|
-
* @see https://github.com/
|
|
4159
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-after-each-blocks.md
|
|
4112
4160
|
*/
|
|
4113
4161
|
'test/padding-around-after-each-blocks'?: Linter.RuleEntry<[]>
|
|
4114
4162
|
/**
|
|
4115
4163
|
* Enforce padding around vitest functions
|
|
4116
|
-
* @see https://github.com/
|
|
4164
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-all.md
|
|
4117
4165
|
*/
|
|
4118
4166
|
'test/padding-around-all'?: Linter.RuleEntry<[]>
|
|
4119
4167
|
/**
|
|
4120
4168
|
* Enforce padding around `beforeAll` blocks
|
|
4121
|
-
* @see https://github.com/
|
|
4169
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-before-all-blocks.md
|
|
4122
4170
|
*/
|
|
4123
4171
|
'test/padding-around-before-all-blocks'?: Linter.RuleEntry<[]>
|
|
4124
4172
|
/**
|
|
4125
4173
|
* Enforce padding around `beforeEach` blocks
|
|
4126
|
-
* @see https://github.com/
|
|
4174
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-before-each-blocks.md
|
|
4127
4175
|
*/
|
|
4128
4176
|
'test/padding-around-before-each-blocks'?: Linter.RuleEntry<[]>
|
|
4129
4177
|
/**
|
|
4130
4178
|
* Enforce padding around `describe` blocks
|
|
4131
|
-
* @see https://github.com/
|
|
4179
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-describe-blocks.md
|
|
4132
4180
|
*/
|
|
4133
4181
|
'test/padding-around-describe-blocks'?: Linter.RuleEntry<[]>
|
|
4134
4182
|
/**
|
|
4135
4183
|
* Enforce padding around `expect` groups
|
|
4136
|
-
* @see https://github.com/
|
|
4184
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-expect-groups.md
|
|
4137
4185
|
*/
|
|
4138
4186
|
'test/padding-around-expect-groups'?: Linter.RuleEntry<[]>
|
|
4139
4187
|
/**
|
|
4140
4188
|
* Enforce padding around afterAll blocks
|
|
4141
|
-
* @see https://github.com/
|
|
4189
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-test-blocks.md
|
|
4142
4190
|
*/
|
|
4143
4191
|
'test/padding-around-test-blocks'?: Linter.RuleEntry<[]>
|
|
4144
4192
|
/**
|
|
4145
4193
|
* enforce using `toBeCalledWith()` or `toHaveBeenCalledWith()`
|
|
4146
|
-
* @see https://github.com/
|
|
4194
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-called-with.md
|
|
4147
4195
|
*/
|
|
4148
4196
|
'test/prefer-called-with'?: Linter.RuleEntry<[]>
|
|
4149
4197
|
/**
|
|
4150
4198
|
* enforce using the built-in comparison matchers
|
|
4151
|
-
* @see https://github.com/
|
|
4199
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-comparison-matcher.md
|
|
4152
4200
|
*/
|
|
4153
4201
|
'test/prefer-comparison-matcher'?: Linter.RuleEntry<[]>
|
|
4154
4202
|
/**
|
|
4155
4203
|
* enforce using `each` rather than manual loops
|
|
4156
|
-
* @see https://github.com/
|
|
4204
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-each.md
|
|
4157
4205
|
*/
|
|
4158
4206
|
'test/prefer-each'?: Linter.RuleEntry<[]>
|
|
4159
4207
|
/**
|
|
4160
4208
|
* enforce using the built-in quality matchers
|
|
4161
|
-
* @see https://github.com/
|
|
4209
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-equality-matcher.md
|
|
4162
4210
|
*/
|
|
4163
4211
|
'test/prefer-equality-matcher'?: Linter.RuleEntry<[]>
|
|
4164
4212
|
/**
|
|
4165
4213
|
* enforce using expect assertions instead of callbacks
|
|
4166
|
-
* @see https://github.com/
|
|
4214
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-expect-assertions.md
|
|
4167
4215
|
*/
|
|
4168
4216
|
'test/prefer-expect-assertions'?: Linter.RuleEntry<TestPreferExpectAssertions>
|
|
4169
4217
|
/**
|
|
4170
4218
|
* enforce using `expect().resolves` over `expect(await ...)` syntax
|
|
4171
|
-
* @see https://github.com/
|
|
4219
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-expect-resolves.md
|
|
4172
4220
|
*/
|
|
4173
4221
|
'test/prefer-expect-resolves'?: Linter.RuleEntry<[]>
|
|
4174
4222
|
/**
|
|
4175
4223
|
* enforce having hooks in consistent order
|
|
4176
|
-
* @see https://github.com/
|
|
4224
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-hooks-in-order.md
|
|
4177
4225
|
*/
|
|
4178
4226
|
'test/prefer-hooks-in-order'?: Linter.RuleEntry<[]>
|
|
4179
4227
|
/**
|
|
4180
4228
|
* enforce having hooks before any test cases
|
|
4181
|
-
* @see https://github.com/
|
|
4229
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-hooks-on-top.md
|
|
4182
4230
|
*/
|
|
4183
4231
|
'test/prefer-hooks-on-top'?: Linter.RuleEntry<[]>
|
|
4184
4232
|
/**
|
|
4185
4233
|
* enforce lowercase titles
|
|
4186
|
-
* @see https://github.com/
|
|
4234
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-lowercase-title.md
|
|
4187
4235
|
*/
|
|
4188
4236
|
'test/prefer-lowercase-title'?: Linter.RuleEntry<TestPreferLowercaseTitle>
|
|
4189
4237
|
/**
|
|
4190
4238
|
* enforce mock resolved/rejected shorthands for promises
|
|
4191
|
-
* @see https://github.com/
|
|
4239
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-mock-promise-shorthand.md
|
|
4192
4240
|
*/
|
|
4193
4241
|
'test/prefer-mock-promise-shorthand'?: Linter.RuleEntry<[]>
|
|
4194
4242
|
/**
|
|
4195
4243
|
* enforce including a hint with external snapshots
|
|
4196
|
-
* @see https://github.com/
|
|
4244
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-snapshot-hint.md
|
|
4197
4245
|
*/
|
|
4198
4246
|
'test/prefer-snapshot-hint'?: Linter.RuleEntry<TestPreferSnapshotHint>
|
|
4199
4247
|
/**
|
|
4200
4248
|
* enforce using `vi.spyOn`
|
|
4201
|
-
* @see https://github.com/
|
|
4249
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-spy-on.md
|
|
4202
4250
|
*/
|
|
4203
4251
|
'test/prefer-spy-on'?: Linter.RuleEntry<[]>
|
|
4204
4252
|
/**
|
|
4205
4253
|
* enforce strict equal over equal
|
|
4206
|
-
* @see https://github.com/
|
|
4254
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-strict-equal.md
|
|
4207
4255
|
*/
|
|
4208
4256
|
'test/prefer-strict-equal'?: Linter.RuleEntry<[]>
|
|
4209
4257
|
/**
|
|
4210
4258
|
* enforce using toBe()
|
|
4211
|
-
* @see https://github.com/
|
|
4259
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be.md
|
|
4212
4260
|
*/
|
|
4213
4261
|
'test/prefer-to-be'?: Linter.RuleEntry<[]>
|
|
4214
4262
|
/**
|
|
4215
4263
|
* enforce using toBeFalsy()
|
|
4216
|
-
* @see https://github.com/
|
|
4264
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be-falsy.md
|
|
4217
4265
|
*/
|
|
4218
4266
|
'test/prefer-to-be-falsy'?: Linter.RuleEntry<[]>
|
|
4219
4267
|
/**
|
|
4220
4268
|
* enforce using toBeObject()
|
|
4221
|
-
* @see https://github.com/
|
|
4269
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be-object.md
|
|
4222
4270
|
*/
|
|
4223
4271
|
'test/prefer-to-be-object'?: Linter.RuleEntry<[]>
|
|
4224
4272
|
/**
|
|
4225
4273
|
* enforce using `toBeTruthy`
|
|
4226
|
-
* @see https://github.com/
|
|
4274
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be-truthy.md
|
|
4227
4275
|
*/
|
|
4228
4276
|
'test/prefer-to-be-truthy'?: Linter.RuleEntry<[]>
|
|
4229
4277
|
/**
|
|
4230
4278
|
* enforce using toContain()
|
|
4231
|
-
* @see https://github.com/
|
|
4279
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-contain.md
|
|
4232
4280
|
*/
|
|
4233
4281
|
'test/prefer-to-contain'?: Linter.RuleEntry<[]>
|
|
4234
4282
|
/**
|
|
4235
4283
|
* enforce using toHaveLength()
|
|
4236
|
-
* @see https://github.com/
|
|
4284
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-length.md
|
|
4237
4285
|
*/
|
|
4238
4286
|
'test/prefer-to-have-length'?: Linter.RuleEntry<[]>
|
|
4239
4287
|
/**
|
|
4240
4288
|
* enforce using `test.todo`
|
|
4241
|
-
* @see https://github.com/
|
|
4289
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-todo.md
|
|
4242
4290
|
*/
|
|
4243
4291
|
'test/prefer-todo'?: Linter.RuleEntry<[]>
|
|
4244
4292
|
/**
|
|
4245
4293
|
* require setup and teardown to be within a hook
|
|
4246
|
-
* @see https://github.com/
|
|
4294
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
|
|
4247
4295
|
*/
|
|
4248
4296
|
'test/require-hook'?: Linter.RuleEntry<TestRequireHook>
|
|
4249
4297
|
/**
|
|
4250
4298
|
* require local Test Context for concurrent snapshot tests
|
|
4251
|
-
* @see https://github.com/
|
|
4299
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-local-test-context-for-concurrent-snapshots.md
|
|
4252
4300
|
*/
|
|
4253
4301
|
'test/require-local-test-context-for-concurrent-snapshots'?: Linter.RuleEntry<[]>
|
|
4254
4302
|
/**
|
|
4255
4303
|
* require toThrow() to be called with an error message
|
|
4256
|
-
* @see https://github.com/
|
|
4304
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-to-throw-message.md
|
|
4257
4305
|
*/
|
|
4258
4306
|
'test/require-to-throw-message'?: Linter.RuleEntry<[]>
|
|
4259
4307
|
/**
|
|
4260
4308
|
* enforce that all tests are in a top-level describe
|
|
4261
|
-
* @see https://github.com/
|
|
4309
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-top-level-describe.md
|
|
4262
4310
|
*/
|
|
4263
4311
|
'test/require-top-level-describe'?: Linter.RuleEntry<TestRequireTopLevelDescribe>
|
|
4264
4312
|
/**
|
|
4265
4313
|
* enforce valid describe callback
|
|
4266
|
-
* @see https://github.com/
|
|
4314
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-describe-callback.md
|
|
4267
4315
|
*/
|
|
4268
4316
|
'test/valid-describe-callback'?: Linter.RuleEntry<[]>
|
|
4269
4317
|
/**
|
|
4270
4318
|
* enforce valid `expect()` usage
|
|
4271
|
-
* @see https://github.com/
|
|
4319
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-expect.md
|
|
4272
4320
|
*/
|
|
4273
4321
|
'test/valid-expect'?: Linter.RuleEntry<TestValidExpect>
|
|
4274
4322
|
/**
|
|
4275
4323
|
* enforce valid titles
|
|
4276
|
-
* @see https://github.com/
|
|
4324
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-title.md
|
|
4277
4325
|
*/
|
|
4278
4326
|
'test/valid-title'?: Linter.RuleEntry<TestValidTitle>
|
|
4279
4327
|
/**
|
|
@@ -5880,7 +5928,7 @@ interface RuleOptions {
|
|
|
5880
5928
|
*/
|
|
5881
5929
|
'vue/define-emits-declaration'?: Linter.RuleEntry<VueDefineEmitsDeclaration>
|
|
5882
5930
|
/**
|
|
5883
|
-
* enforce order of
|
|
5931
|
+
* enforce order of compiler macros (`defineProps`, `defineEmits`, etc.)
|
|
5884
5932
|
* @see https://eslint.vuejs.org/rules/define-macros-order.html
|
|
5885
5933
|
*/
|
|
5886
5934
|
'vue/define-macros-order'?: Linter.RuleEntry<VueDefineMacrosOrder>
|
|
@@ -6009,6 +6057,16 @@ interface RuleOptions {
|
|
|
6009
6057
|
* @see https://eslint.vuejs.org/rules/max-lines-per-block.html
|
|
6010
6058
|
*/
|
|
6011
6059
|
'vue/max-lines-per-block'?: Linter.RuleEntry<VueMaxLinesPerBlock>
|
|
6060
|
+
/**
|
|
6061
|
+
* enforce maximum number of props in Vue component
|
|
6062
|
+
* @see https://eslint.vuejs.org/rules/max-props.html
|
|
6063
|
+
*/
|
|
6064
|
+
'vue/max-props'?: Linter.RuleEntry<VueMaxProps>
|
|
6065
|
+
/**
|
|
6066
|
+
* enforce maximum depth of template
|
|
6067
|
+
* @see https://eslint.vuejs.org/rules/max-template-depth.html
|
|
6068
|
+
*/
|
|
6069
|
+
'vue/max-template-depth'?: Linter.RuleEntry<VueMaxTemplateDepth>
|
|
6012
6070
|
/**
|
|
6013
6071
|
* require component names to be always multi-word
|
|
6014
6072
|
* @see https://eslint.vuejs.org/rules/multi-word-component-names.html
|
|
@@ -6065,7 +6123,7 @@ interface RuleOptions {
|
|
|
6065
6123
|
*/
|
|
6066
6124
|
'vue/no-child-content'?: Linter.RuleEntry<VueNoChildContent>
|
|
6067
6125
|
/**
|
|
6068
|
-
* disallow accessing computed properties in `data
|
|
6126
|
+
* disallow accessing computed properties in `data`
|
|
6069
6127
|
* @see https://eslint.vuejs.org/rules/no-computed-properties-in-data.html
|
|
6070
6128
|
*/
|
|
6071
6129
|
'vue/no-computed-properties-in-data'?: Linter.RuleEntry<[]>
|
|
@@ -6613,7 +6671,7 @@ interface RuleOptions {
|
|
|
6613
6671
|
*/
|
|
6614
6672
|
'vue/padding-lines-in-component-definition'?: Linter.RuleEntry<VuePaddingLinesInComponentDefinition>
|
|
6615
6673
|
/**
|
|
6616
|
-
* enforce use of `defineOptions` instead of default export
|
|
6674
|
+
* enforce use of `defineOptions` instead of default export
|
|
6617
6675
|
* @see https://eslint.vuejs.org/rules/prefer-define-options.html
|
|
6618
6676
|
*/
|
|
6619
6677
|
'vue/prefer-define-options'?: Linter.RuleEntry<[]>
|
|
@@ -6657,6 +6715,11 @@ interface RuleOptions {
|
|
|
6657
6715
|
* @see https://eslint.vuejs.org/rules/require-component-is.html
|
|
6658
6716
|
*/
|
|
6659
6717
|
'vue/require-component-is'?: Linter.RuleEntry<[]>
|
|
6718
|
+
/**
|
|
6719
|
+
* require components to be the default export
|
|
6720
|
+
* @see https://eslint.vuejs.org/rules/require-default-export.html
|
|
6721
|
+
*/
|
|
6722
|
+
'vue/require-default-export'?: Linter.RuleEntry<[]>
|
|
6660
6723
|
/**
|
|
6661
6724
|
* require default value for props
|
|
6662
6725
|
* @see https://eslint.vuejs.org/rules/require-default-prop.html
|
|
@@ -6726,7 +6789,7 @@ interface RuleOptions {
|
|
|
6726
6789
|
* require control the display of the content inside `<transition>`
|
|
6727
6790
|
* @see https://eslint.vuejs.org/rules/require-toggle-inside-transition.html
|
|
6728
6791
|
*/
|
|
6729
|
-
'vue/require-toggle-inside-transition'?: Linter.RuleEntry<
|
|
6792
|
+
'vue/require-toggle-inside-transition'?: Linter.RuleEntry<VueRequireToggleInsideTransition>
|
|
6730
6793
|
/**
|
|
6731
6794
|
* enforce adding type declarations to object props
|
|
6732
6795
|
* @see https://eslint.vuejs.org/rules/require-typed-object-prop.html
|
|
@@ -7146,6 +7209,11 @@ type AccessorPairs = []|[{
|
|
|
7146
7209
|
setWithoutGet?: boolean
|
|
7147
7210
|
enforceForClassMembers?: boolean
|
|
7148
7211
|
}]
|
|
7212
|
+
// ----- antfu/consistent-chaining -----
|
|
7213
|
+
type AntfuConsistentChaining = []|[{
|
|
7214
|
+
|
|
7215
|
+
allowLeadingPropertyAccess?: boolean
|
|
7216
|
+
}]
|
|
7149
7217
|
// ----- antfu/consistent-list-newline -----
|
|
7150
7218
|
type AntfuConsistentListNewline = []|[{
|
|
7151
7219
|
ArrayExpression?: boolean
|
|
@@ -7525,6 +7593,7 @@ type ImportNoExtraneousDependencies = []|[{
|
|
|
7525
7593
|
packageDir?: (string | unknown[])
|
|
7526
7594
|
includeInternal?: boolean
|
|
7527
7595
|
includeTypes?: boolean
|
|
7596
|
+
whitelist?: unknown[]
|
|
7528
7597
|
}]
|
|
7529
7598
|
// ----- import/no-import-module-exports -----
|
|
7530
7599
|
type ImportNoImportModuleExports = []|[{
|
|
@@ -8811,6 +8880,14 @@ type LinesBetweenClassMembers = []|[({
|
|
|
8811
8880
|
type LogicalAssignmentOperators = (([]|["always"]|["always", {
|
|
8812
8881
|
enforceForIfStatements?: boolean
|
|
8813
8882
|
}] | ["never"]) & unknown[])
|
|
8883
|
+
// ----- markdown/fenced-code-language -----
|
|
8884
|
+
type MarkdownFencedCodeLanguage = []|[{
|
|
8885
|
+
required?: string[]
|
|
8886
|
+
}]
|
|
8887
|
+
// ----- markdown/no-html -----
|
|
8888
|
+
type MarkdownNoHtml = []|[{
|
|
8889
|
+
allowed?: string[]
|
|
8890
|
+
}]
|
|
8814
8891
|
// ----- max-classes-per-file -----
|
|
8815
8892
|
type MaxClassesPerFile = []|[(number | {
|
|
8816
8893
|
ignoreExpressions?: boolean
|
|
@@ -9696,9 +9773,41 @@ type PerfectionistSortClasses = []|[{
|
|
|
9696
9773
|
|
|
9697
9774
|
groups?: (string | string[])[]
|
|
9698
9775
|
|
|
9699
|
-
customGroups?: {
|
|
9776
|
+
customGroups?: ({
|
|
9700
9777
|
[k: string]: (string | string[]) | undefined
|
|
9701
|
-
}
|
|
9778
|
+
} | ({
|
|
9779
|
+
|
|
9780
|
+
groupName?: string
|
|
9781
|
+
|
|
9782
|
+
type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
|
|
9783
|
+
|
|
9784
|
+
order?: ("desc" | "asc")
|
|
9785
|
+
anyOf?: {
|
|
9786
|
+
|
|
9787
|
+
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
|
|
9788
|
+
|
|
9789
|
+
modifiers?: ("protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
|
|
9790
|
+
|
|
9791
|
+
elementNamePattern?: string
|
|
9792
|
+
|
|
9793
|
+
decoratorNamePattern?: string
|
|
9794
|
+
}[]
|
|
9795
|
+
} | {
|
|
9796
|
+
|
|
9797
|
+
groupName?: string
|
|
9798
|
+
|
|
9799
|
+
type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
|
|
9800
|
+
|
|
9801
|
+
order?: ("desc" | "asc")
|
|
9802
|
+
|
|
9803
|
+
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
|
|
9804
|
+
|
|
9805
|
+
modifiers?: ("protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
|
|
9806
|
+
|
|
9807
|
+
elementNamePattern?: string
|
|
9808
|
+
|
|
9809
|
+
decoratorNamePattern?: string
|
|
9810
|
+
})[])
|
|
9702
9811
|
}]
|
|
9703
9812
|
// ----- perfectionist/sort-enums -----
|
|
9704
9813
|
type PerfectionistSortEnums = []|[{
|
|
@@ -9736,6 +9845,8 @@ type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLen
|
|
|
9736
9845
|
|
|
9737
9846
|
internalPattern?: string[]
|
|
9738
9847
|
|
|
9848
|
+
sortSideEffects?: boolean
|
|
9849
|
+
|
|
9739
9850
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
9740
9851
|
|
|
9741
9852
|
maxLineLength?: number
|
|
@@ -9886,6 +9997,17 @@ type PerfectionistSortObjects = []|[{
|
|
|
9886
9997
|
[k: string]: (string | string[]) | undefined
|
|
9887
9998
|
}
|
|
9888
9999
|
}]
|
|
10000
|
+
// ----- perfectionist/sort-sets -----
|
|
10001
|
+
type PerfectionistSortSets = []|[{
|
|
10002
|
+
|
|
10003
|
+
type?: ("alphabetical" | "natural" | "line-length")
|
|
10004
|
+
|
|
10005
|
+
order?: ("asc" | "desc")
|
|
10006
|
+
|
|
10007
|
+
ignoreCase?: boolean
|
|
10008
|
+
|
|
10009
|
+
groupKind?: ("mixed" | "literals-first" | "spreads-first")
|
|
10010
|
+
}]
|
|
9889
10011
|
// ----- perfectionist/sort-svelte-attributes -----
|
|
9890
10012
|
type PerfectionistSortSvelteAttributes = []|[{
|
|
9891
10013
|
|
|
@@ -10160,6 +10282,10 @@ type RegexpUnicodeProperty = []|[{
|
|
|
10160
10282
|
type RequireAtomicUpdates = []|[{
|
|
10161
10283
|
allowProperties?: boolean
|
|
10162
10284
|
}]
|
|
10285
|
+
// ----- require-unicode-regexp -----
|
|
10286
|
+
type RequireUnicodeRegexp = []|[{
|
|
10287
|
+
requireFlag?: ("u" | "v")
|
|
10288
|
+
}]
|
|
10163
10289
|
// ----- rest-spread-spacing -----
|
|
10164
10290
|
type RestSpreadSpacing = []|[("always" | "never")]
|
|
10165
10291
|
// ----- semi -----
|
|
@@ -10372,6 +10498,7 @@ type StyleIndent = []|[("tab" | number)]|[("tab" | number), {
|
|
|
10372
10498
|
offsetTernaryExpressions?: boolean
|
|
10373
10499
|
ignoredNodes?: string[]
|
|
10374
10500
|
ignoreComments?: boolean
|
|
10501
|
+
tabLength?: number
|
|
10375
10502
|
}]
|
|
10376
10503
|
// ----- style/indent-binary-ops -----
|
|
10377
10504
|
type StyleIndentBinaryOps = []|[(number | "tab")]
|
|
@@ -10746,6 +10873,10 @@ type StyleKeywordSpacing = []|[{
|
|
|
10746
10873
|
before?: boolean
|
|
10747
10874
|
after?: boolean
|
|
10748
10875
|
}
|
|
10876
|
+
satisfies?: {
|
|
10877
|
+
before?: boolean
|
|
10878
|
+
after?: boolean
|
|
10879
|
+
}
|
|
10749
10880
|
set?: {
|
|
10750
10881
|
before?: boolean
|
|
10751
10882
|
after?: boolean
|
|
@@ -11226,7 +11357,6 @@ type StyleTypeAnnotationSpacing = []|[{
|
|
|
11226
11357
|
parameter?: _StyleTypeAnnotationSpacing_SpacingConfig
|
|
11227
11358
|
property?: _StyleTypeAnnotationSpacing_SpacingConfig
|
|
11228
11359
|
returnType?: _StyleTypeAnnotationSpacing_SpacingConfig
|
|
11229
|
-
operator?: _StyleTypeAnnotationSpacing_SpacingConfig
|
|
11230
11360
|
}
|
|
11231
11361
|
}]
|
|
11232
11362
|
interface _StyleTypeAnnotationSpacing_SpacingConfig {
|
|
@@ -11494,6 +11624,7 @@ type TsBanTsComment = []|[{
|
|
|
11494
11624
|
"ts-check"?: (boolean | "allow-with-description" | {
|
|
11495
11625
|
descriptionFormat?: string
|
|
11496
11626
|
})
|
|
11627
|
+
|
|
11497
11628
|
minimumDescriptionLength?: number
|
|
11498
11629
|
}]
|
|
11499
11630
|
// ----- ts/class-literal-property-style -----
|
|
@@ -11519,29 +11650,41 @@ type TsConsistentReturn = []|[{
|
|
|
11519
11650
|
}]
|
|
11520
11651
|
// ----- ts/consistent-type-assertions -----
|
|
11521
11652
|
type TsConsistentTypeAssertions = []|[({
|
|
11653
|
+
|
|
11522
11654
|
assertionStyle: "never"
|
|
11523
11655
|
} | {
|
|
11656
|
+
|
|
11524
11657
|
assertionStyle: ("as" | "angle-bracket")
|
|
11658
|
+
|
|
11525
11659
|
objectLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
|
|
11526
11660
|
})]
|
|
11527
11661
|
// ----- ts/consistent-type-definitions -----
|
|
11528
11662
|
type TsConsistentTypeDefinitions = []|[("interface" | "type")]
|
|
11529
11663
|
// ----- ts/consistent-type-exports -----
|
|
11530
11664
|
type TsConsistentTypeExports = []|[{
|
|
11665
|
+
|
|
11531
11666
|
fixMixedExportsWithInlineTypeSpecifier?: boolean
|
|
11532
11667
|
}]
|
|
11533
11668
|
// ----- ts/consistent-type-imports -----
|
|
11534
11669
|
type TsConsistentTypeImports = []|[{
|
|
11670
|
+
|
|
11535
11671
|
disallowTypeAnnotations?: boolean
|
|
11672
|
+
|
|
11536
11673
|
fixStyle?: ("separate-type-imports" | "inline-type-imports")
|
|
11674
|
+
|
|
11537
11675
|
prefer?: ("type-imports" | "no-type-imports")
|
|
11538
11676
|
}]
|
|
11539
11677
|
// ----- ts/dot-notation -----
|
|
11540
11678
|
type TsDotNotation = []|[{
|
|
11679
|
+
|
|
11541
11680
|
allowKeywords?: boolean
|
|
11681
|
+
|
|
11542
11682
|
allowPattern?: string
|
|
11683
|
+
|
|
11543
11684
|
allowPrivateClassPropertyAccess?: boolean
|
|
11685
|
+
|
|
11544
11686
|
allowProtectedClassPropertyAccess?: boolean
|
|
11687
|
+
|
|
11545
11688
|
allowIndexSignaturePropertyAccess?: boolean
|
|
11546
11689
|
}]
|
|
11547
11690
|
// ----- ts/explicit-function-return-type -----
|
|
@@ -11573,6 +11716,7 @@ type TsExplicitMemberAccessibility = []|[{
|
|
|
11573
11716
|
properties?: ("explicit" | "no-public" | "off")
|
|
11574
11717
|
parameterProperties?: ("explicit" | "no-public" | "off")
|
|
11575
11718
|
}
|
|
11719
|
+
|
|
11576
11720
|
ignoredMethodNames?: string[]
|
|
11577
11721
|
}]
|
|
11578
11722
|
// ----- ts/explicit-module-boundary-types -----
|
|
@@ -11594,8 +11738,11 @@ type TsInitDeclarations = ([]|["always"] | []|["never"]|["never", {
|
|
|
11594
11738
|
}])
|
|
11595
11739
|
// ----- ts/max-params -----
|
|
11596
11740
|
type TsMaxParams = []|[{
|
|
11597
|
-
|
|
11741
|
+
|
|
11598
11742
|
max?: number
|
|
11743
|
+
|
|
11744
|
+
maximum?: number
|
|
11745
|
+
|
|
11599
11746
|
countVoidThis?: boolean
|
|
11600
11747
|
}]
|
|
11601
11748
|
// ----- ts/member-ordering -----
|
|
@@ -11949,30 +12096,40 @@ interface _TsNamingConvention_MatchRegexConfig {
|
|
|
11949
12096
|
}
|
|
11950
12097
|
// ----- ts/no-base-to-string -----
|
|
11951
12098
|
type TsNoBaseToString = []|[{
|
|
12099
|
+
|
|
11952
12100
|
ignoredTypeNames?: string[]
|
|
11953
12101
|
}]
|
|
11954
12102
|
// ----- ts/no-confusing-void-expression -----
|
|
11955
12103
|
type TsNoConfusingVoidExpression = []|[{
|
|
12104
|
+
|
|
11956
12105
|
ignoreArrowShorthand?: boolean
|
|
12106
|
+
|
|
11957
12107
|
ignoreVoidOperator?: boolean
|
|
11958
12108
|
}]
|
|
11959
12109
|
// ----- ts/no-duplicate-type-constituents -----
|
|
11960
12110
|
type TsNoDuplicateTypeConstituents = []|[{
|
|
12111
|
+
|
|
11961
12112
|
ignoreIntersections?: boolean
|
|
12113
|
+
|
|
11962
12114
|
ignoreUnions?: boolean
|
|
11963
12115
|
}]
|
|
11964
12116
|
// ----- ts/no-empty-function -----
|
|
11965
12117
|
type TsNoEmptyFunction = []|[{
|
|
12118
|
+
|
|
11966
12119
|
allow?: ("functions" | "arrowFunctions" | "generatorFunctions" | "methods" | "generatorMethods" | "getters" | "setters" | "constructors" | "private-constructors" | "protected-constructors" | "asyncFunctions" | "asyncMethods" | "decoratedFunctions" | "overrideMethods")[]
|
|
11967
12120
|
}]
|
|
11968
12121
|
// ----- ts/no-empty-interface -----
|
|
11969
12122
|
type TsNoEmptyInterface = []|[{
|
|
12123
|
+
|
|
11970
12124
|
allowSingleExtends?: boolean
|
|
11971
12125
|
}]
|
|
11972
12126
|
// ----- ts/no-empty-object-type -----
|
|
11973
12127
|
type TsNoEmptyObjectType = []|[{
|
|
12128
|
+
|
|
11974
12129
|
allowInterfaces?: ("always" | "never" | "with-single-extends")
|
|
12130
|
+
|
|
11975
12131
|
allowObjectTypes?: ("always" | "never")
|
|
12132
|
+
|
|
11976
12133
|
allowWithName?: string
|
|
11977
12134
|
}]
|
|
11978
12135
|
// ----- ts/no-explicit-any -----
|
|
@@ -11995,6 +12152,7 @@ type TsNoExtraneousClass = []|[{
|
|
|
11995
12152
|
}]
|
|
11996
12153
|
// ----- ts/no-floating-promises -----
|
|
11997
12154
|
type TsNoFloatingPromises = []|[{
|
|
12155
|
+
|
|
11998
12156
|
allowForKnownSafePromises?: (string | {
|
|
11999
12157
|
from: "file"
|
|
12000
12158
|
name: (string | [string, ...(string)[]])
|
|
@@ -12007,6 +12165,7 @@ type TsNoFloatingPromises = []|[{
|
|
|
12007
12165
|
name: (string | [string, ...(string)[]])
|
|
12008
12166
|
package: string
|
|
12009
12167
|
})[]
|
|
12168
|
+
|
|
12010
12169
|
allowForKnownSafeCalls?: (string | {
|
|
12011
12170
|
from: "file"
|
|
12012
12171
|
name: (string | [string, ...(string)[]])
|
|
@@ -12028,7 +12187,9 @@ type TsNoFloatingPromises = []|[{
|
|
|
12028
12187
|
}]
|
|
12029
12188
|
// ----- ts/no-inferrable-types -----
|
|
12030
12189
|
type TsNoInferrableTypes = []|[{
|
|
12190
|
+
|
|
12031
12191
|
ignoreParameters?: boolean
|
|
12192
|
+
|
|
12032
12193
|
ignoreProperties?: boolean
|
|
12033
12194
|
}]
|
|
12034
12195
|
// ----- ts/no-invalid-this -----
|
|
@@ -12037,7 +12198,9 @@ type TsNoInvalidThis = []|[{
|
|
|
12037
12198
|
}]
|
|
12038
12199
|
// ----- ts/no-invalid-void-type -----
|
|
12039
12200
|
type TsNoInvalidVoidType = []|[{
|
|
12201
|
+
|
|
12040
12202
|
allowInGenericTypeArguments?: (boolean | [string, ...(string)[]])
|
|
12203
|
+
|
|
12041
12204
|
allowAsThisParameter?: boolean
|
|
12042
12205
|
}]
|
|
12043
12206
|
// ----- ts/no-magic-numbers -----
|
|
@@ -12048,26 +12211,38 @@ type TsNoMagicNumbers = []|[{
|
|
|
12048
12211
|
ignoreArrayIndexes?: boolean
|
|
12049
12212
|
ignoreDefaultValues?: boolean
|
|
12050
12213
|
ignoreClassFieldInitialValues?: boolean
|
|
12214
|
+
|
|
12051
12215
|
ignoreNumericLiteralTypes?: boolean
|
|
12216
|
+
|
|
12052
12217
|
ignoreEnums?: boolean
|
|
12218
|
+
|
|
12053
12219
|
ignoreReadonlyClassProperties?: boolean
|
|
12220
|
+
|
|
12054
12221
|
ignoreTypeIndexes?: boolean
|
|
12055
12222
|
}]
|
|
12056
12223
|
// ----- ts/no-meaningless-void-operator -----
|
|
12057
12224
|
type TsNoMeaninglessVoidOperator = []|[{
|
|
12225
|
+
|
|
12058
12226
|
checkNever?: boolean
|
|
12059
12227
|
}]
|
|
12060
12228
|
// ----- ts/no-misused-promises -----
|
|
12061
12229
|
type TsNoMisusedPromises = []|[{
|
|
12062
12230
|
checksConditionals?: boolean
|
|
12063
12231
|
checksVoidReturn?: (boolean | {
|
|
12232
|
+
|
|
12064
12233
|
arguments?: boolean
|
|
12234
|
+
|
|
12065
12235
|
attributes?: boolean
|
|
12236
|
+
|
|
12066
12237
|
inheritedMethods?: boolean
|
|
12238
|
+
|
|
12067
12239
|
properties?: boolean
|
|
12240
|
+
|
|
12068
12241
|
returns?: boolean
|
|
12242
|
+
|
|
12069
12243
|
variables?: boolean
|
|
12070
12244
|
})
|
|
12245
|
+
|
|
12071
12246
|
checksSpreads?: boolean
|
|
12072
12247
|
}]
|
|
12073
12248
|
// ----- ts/no-namespace -----
|
|
@@ -12079,7 +12254,9 @@ type TsNoNamespace = []|[{
|
|
|
12079
12254
|
}]
|
|
12080
12255
|
// ----- ts/no-redeclare -----
|
|
12081
12256
|
type TsNoRedeclare = []|[{
|
|
12257
|
+
|
|
12082
12258
|
builtinGlobals?: boolean
|
|
12259
|
+
|
|
12083
12260
|
ignoreDeclarationMerge?: boolean
|
|
12084
12261
|
}]
|
|
12085
12262
|
// ----- ts/no-require-imports -----
|
|
@@ -12137,11 +12314,17 @@ type TsNoRestrictedTypes = []|[{
|
|
|
12137
12314
|
}]
|
|
12138
12315
|
// ----- ts/no-shadow -----
|
|
12139
12316
|
type TsNoShadow = []|[{
|
|
12317
|
+
|
|
12140
12318
|
builtinGlobals?: boolean
|
|
12319
|
+
|
|
12141
12320
|
hoist?: ("all" | "functions" | "never")
|
|
12321
|
+
|
|
12142
12322
|
allow?: string[]
|
|
12323
|
+
|
|
12143
12324
|
ignoreOnInitialization?: boolean
|
|
12325
|
+
|
|
12144
12326
|
ignoreTypeValueShadow?: boolean
|
|
12327
|
+
|
|
12145
12328
|
ignoreFunctionTypeParameterNameValueShadow?: boolean
|
|
12146
12329
|
}]
|
|
12147
12330
|
// ----- ts/no-this-alias -----
|
|
@@ -12198,24 +12381,40 @@ type TsNoUnusedExpressions = []|[{
|
|
|
12198
12381
|
}]
|
|
12199
12382
|
// ----- ts/no-unused-vars -----
|
|
12200
12383
|
type TsNoUnusedVars = []|[(("all" | "local") | {
|
|
12384
|
+
|
|
12201
12385
|
vars?: ("all" | "local")
|
|
12386
|
+
|
|
12202
12387
|
varsIgnorePattern?: string
|
|
12388
|
+
|
|
12203
12389
|
args?: ("all" | "after-used" | "none")
|
|
12204
|
-
|
|
12390
|
+
|
|
12205
12391
|
argsIgnorePattern?: string
|
|
12392
|
+
|
|
12206
12393
|
caughtErrors?: ("all" | "none")
|
|
12394
|
+
|
|
12207
12395
|
caughtErrorsIgnorePattern?: string
|
|
12396
|
+
|
|
12208
12397
|
destructuredArrayIgnorePattern?: string
|
|
12398
|
+
|
|
12209
12399
|
ignoreClassWithStaticInitBlock?: boolean
|
|
12400
|
+
|
|
12401
|
+
ignoreRestSiblings?: boolean
|
|
12402
|
+
|
|
12210
12403
|
reportUsedIgnorePattern?: boolean
|
|
12211
12404
|
})]
|
|
12212
12405
|
// ----- ts/no-use-before-define -----
|
|
12213
12406
|
type TsNoUseBeforeDefine = []|[("nofunc" | {
|
|
12407
|
+
|
|
12214
12408
|
functions?: boolean
|
|
12409
|
+
|
|
12215
12410
|
classes?: boolean
|
|
12411
|
+
|
|
12216
12412
|
enums?: boolean
|
|
12413
|
+
|
|
12217
12414
|
variables?: boolean
|
|
12415
|
+
|
|
12218
12416
|
typedefs?: boolean
|
|
12417
|
+
|
|
12219
12418
|
ignoreTypeReferences?: boolean
|
|
12220
12419
|
allowNamedExports?: boolean
|
|
12221
12420
|
})]
|
|
@@ -12226,12 +12425,16 @@ type TsNoVarRequires = []|[{
|
|
|
12226
12425
|
}]
|
|
12227
12426
|
// ----- ts/only-throw-error -----
|
|
12228
12427
|
type TsOnlyThrowError = []|[{
|
|
12428
|
+
|
|
12229
12429
|
allowThrowingAny?: boolean
|
|
12430
|
+
|
|
12230
12431
|
allowThrowingUnknown?: boolean
|
|
12231
12432
|
}]
|
|
12232
12433
|
// ----- ts/parameter-properties -----
|
|
12233
12434
|
type TsParameterProperties = []|[{
|
|
12435
|
+
|
|
12234
12436
|
allow?: ("readonly" | "private" | "protected" | "public" | "private readonly" | "protected readonly" | "public readonly")[]
|
|
12437
|
+
|
|
12235
12438
|
prefer?: ("class-property" | "parameter-property")
|
|
12236
12439
|
}]
|
|
12237
12440
|
// ----- ts/prefer-destructuring -----
|
|
@@ -12266,13 +12469,18 @@ type TsPreferDestructuring = []|[({
|
|
|
12266
12469
|
}]
|
|
12267
12470
|
// ----- ts/prefer-literal-enum-member -----
|
|
12268
12471
|
type TsPreferLiteralEnumMember = []|[{
|
|
12472
|
+
|
|
12269
12473
|
allowBitwiseExpressions?: boolean
|
|
12270
12474
|
}]
|
|
12271
12475
|
// ----- ts/prefer-nullish-coalescing -----
|
|
12272
12476
|
type TsPreferNullishCoalescing = []|[{
|
|
12477
|
+
|
|
12273
12478
|
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
|
|
12479
|
+
|
|
12274
12480
|
ignoreConditionalTests?: boolean
|
|
12481
|
+
|
|
12275
12482
|
ignoreMixedLogicalExpressions?: boolean
|
|
12483
|
+
|
|
12276
12484
|
ignorePrimitives?: ({
|
|
12277
12485
|
bigint?: boolean
|
|
12278
12486
|
boolean?: boolean
|
|
@@ -12280,6 +12488,7 @@ type TsPreferNullishCoalescing = []|[{
|
|
|
12280
12488
|
string?: boolean
|
|
12281
12489
|
[k: string]: unknown | undefined
|
|
12282
12490
|
} | true)
|
|
12491
|
+
|
|
12283
12492
|
ignoreTernaryTests?: boolean
|
|
12284
12493
|
}]
|
|
12285
12494
|
// ----- ts/prefer-optional-chain -----
|
|
@@ -12303,14 +12512,17 @@ type TsPreferOptionalChain = []|[{
|
|
|
12303
12512
|
}]
|
|
12304
12513
|
// ----- ts/prefer-promise-reject-errors -----
|
|
12305
12514
|
type TsPreferPromiseRejectErrors = []|[{
|
|
12515
|
+
|
|
12306
12516
|
allowEmptyReject?: boolean
|
|
12307
12517
|
}]
|
|
12308
12518
|
// ----- ts/prefer-readonly -----
|
|
12309
12519
|
type TsPreferReadonly = []|[{
|
|
12520
|
+
|
|
12310
12521
|
onlyInlineLambdas?: boolean
|
|
12311
12522
|
}]
|
|
12312
12523
|
// ----- ts/prefer-readonly-parameter-types -----
|
|
12313
12524
|
type TsPreferReadonlyParameterTypes = []|[{
|
|
12525
|
+
|
|
12314
12526
|
allow?: (string | {
|
|
12315
12527
|
from: "file"
|
|
12316
12528
|
name: (string | [string, ...(string)[]])
|
|
@@ -12323,8 +12535,11 @@ type TsPreferReadonlyParameterTypes = []|[{
|
|
|
12323
12535
|
name: (string | [string, ...(string)[]])
|
|
12324
12536
|
package: string
|
|
12325
12537
|
})[]
|
|
12538
|
+
|
|
12326
12539
|
checkParameterProperties?: boolean
|
|
12540
|
+
|
|
12327
12541
|
ignoreInferredTypes?: boolean
|
|
12542
|
+
|
|
12328
12543
|
treatMethodsAsReadonly?: boolean
|
|
12329
12544
|
}]
|
|
12330
12545
|
// ----- ts/prefer-string-starts-ends-with -----
|
|
@@ -12338,9 +12553,13 @@ type TsPromiseFunctionAsync = []|[{
|
|
|
12338
12553
|
allowAny?: boolean
|
|
12339
12554
|
|
|
12340
12555
|
allowedPromiseNames?: string[]
|
|
12556
|
+
|
|
12341
12557
|
checkArrowFunctions?: boolean
|
|
12558
|
+
|
|
12342
12559
|
checkFunctionDeclarations?: boolean
|
|
12560
|
+
|
|
12343
12561
|
checkFunctionExpressions?: boolean
|
|
12562
|
+
|
|
12344
12563
|
checkMethodDeclarations?: boolean
|
|
12345
12564
|
}]
|
|
12346
12565
|
// ----- ts/require-array-sort-compare -----
|
|
@@ -12381,7 +12600,7 @@ type TsRestrictTemplateExpressions = []|[{
|
|
|
12381
12600
|
allowNever?: boolean
|
|
12382
12601
|
}]
|
|
12383
12602
|
// ----- ts/return-await -----
|
|
12384
|
-
type TsReturnAwait = []|[("
|
|
12603
|
+
type TsReturnAwait = []|[(("always" | "error-handling-correctness-only" | "in-try-catch" | "never") & string)]
|
|
12385
12604
|
// ----- ts/sort-type-constituents -----
|
|
12386
12605
|
type TsSortTypeConstituents = []|[{
|
|
12387
12606
|
|
|
@@ -12395,13 +12614,21 @@ type TsSortTypeConstituents = []|[{
|
|
|
12395
12614
|
}]
|
|
12396
12615
|
// ----- ts/strict-boolean-expressions -----
|
|
12397
12616
|
type TsStrictBooleanExpressions = []|[{
|
|
12617
|
+
|
|
12398
12618
|
allowString?: boolean
|
|
12619
|
+
|
|
12399
12620
|
allowNumber?: boolean
|
|
12621
|
+
|
|
12400
12622
|
allowNullableObject?: boolean
|
|
12623
|
+
|
|
12401
12624
|
allowNullableBoolean?: boolean
|
|
12625
|
+
|
|
12402
12626
|
allowNullableString?: boolean
|
|
12627
|
+
|
|
12403
12628
|
allowNullableNumber?: boolean
|
|
12629
|
+
|
|
12404
12630
|
allowNullableEnum?: boolean
|
|
12631
|
+
|
|
12405
12632
|
allowAny?: boolean
|
|
12406
12633
|
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
|
|
12407
12634
|
}]
|
|
@@ -12414,19 +12641,30 @@ type TsSwitchExhaustivenessCheck = []|[{
|
|
|
12414
12641
|
}]
|
|
12415
12642
|
// ----- ts/triple-slash-reference -----
|
|
12416
12643
|
type TsTripleSlashReference = []|[{
|
|
12644
|
+
|
|
12417
12645
|
lib?: ("always" | "never")
|
|
12646
|
+
|
|
12418
12647
|
path?: ("always" | "never")
|
|
12648
|
+
|
|
12419
12649
|
types?: ("always" | "never" | "prefer-import")
|
|
12420
12650
|
}]
|
|
12421
12651
|
// ----- ts/typedef -----
|
|
12422
12652
|
type TsTypedef = []|[{
|
|
12653
|
+
|
|
12423
12654
|
arrayDestructuring?: boolean
|
|
12655
|
+
|
|
12424
12656
|
arrowParameter?: boolean
|
|
12657
|
+
|
|
12425
12658
|
memberVariableDeclaration?: boolean
|
|
12659
|
+
|
|
12426
12660
|
objectDestructuring?: boolean
|
|
12661
|
+
|
|
12427
12662
|
parameter?: boolean
|
|
12663
|
+
|
|
12428
12664
|
propertyDeclaration?: boolean
|
|
12665
|
+
|
|
12429
12666
|
variableDeclaration?: boolean
|
|
12667
|
+
|
|
12430
12668
|
variableDeclarationIgnoreFunction?: boolean
|
|
12431
12669
|
}]
|
|
12432
12670
|
// ----- ts/unbound-method -----
|
|
@@ -12646,28 +12884,48 @@ type UnocssEnforceClassCompile = []|[{
|
|
|
12646
12884
|
}]
|
|
12647
12885
|
// ----- unused-imports/no-unused-imports -----
|
|
12648
12886
|
type UnusedImportsNoUnusedImports = []|[(("all" | "local") | {
|
|
12887
|
+
|
|
12649
12888
|
vars?: ("all" | "local")
|
|
12889
|
+
|
|
12650
12890
|
varsIgnorePattern?: string
|
|
12891
|
+
|
|
12651
12892
|
args?: ("all" | "after-used" | "none")
|
|
12652
|
-
|
|
12893
|
+
|
|
12653
12894
|
argsIgnorePattern?: string
|
|
12895
|
+
|
|
12654
12896
|
caughtErrors?: ("all" | "none")
|
|
12897
|
+
|
|
12655
12898
|
caughtErrorsIgnorePattern?: string
|
|
12899
|
+
|
|
12656
12900
|
destructuredArrayIgnorePattern?: string
|
|
12901
|
+
|
|
12657
12902
|
ignoreClassWithStaticInitBlock?: boolean
|
|
12903
|
+
|
|
12904
|
+
ignoreRestSiblings?: boolean
|
|
12905
|
+
|
|
12658
12906
|
reportUsedIgnorePattern?: boolean
|
|
12659
12907
|
})]
|
|
12660
12908
|
// ----- unused-imports/no-unused-vars -----
|
|
12661
12909
|
type UnusedImportsNoUnusedVars = []|[(("all" | "local") | {
|
|
12910
|
+
|
|
12662
12911
|
vars?: ("all" | "local")
|
|
12912
|
+
|
|
12663
12913
|
varsIgnorePattern?: string
|
|
12914
|
+
|
|
12664
12915
|
args?: ("all" | "after-used" | "none")
|
|
12665
|
-
|
|
12916
|
+
|
|
12666
12917
|
argsIgnorePattern?: string
|
|
12918
|
+
|
|
12667
12919
|
caughtErrors?: ("all" | "none")
|
|
12920
|
+
|
|
12668
12921
|
caughtErrorsIgnorePattern?: string
|
|
12922
|
+
|
|
12669
12923
|
destructuredArrayIgnorePattern?: string
|
|
12924
|
+
|
|
12670
12925
|
ignoreClassWithStaticInitBlock?: boolean
|
|
12926
|
+
|
|
12927
|
+
ignoreRestSiblings?: boolean
|
|
12928
|
+
|
|
12671
12929
|
reportUsedIgnorePattern?: boolean
|
|
12672
12930
|
})]
|
|
12673
12931
|
// ----- use-isnan -----
|
|
@@ -12811,7 +13069,7 @@ type VueCustomEventNameCasing = ([]|[("kebab-case" | "camelCase")]|[("kebab-case
|
|
|
12811
13069
|
type VueDefineEmitsDeclaration = []|[("type-based" | "type-literal" | "runtime")]
|
|
12812
13070
|
// ----- vue/define-macros-order -----
|
|
12813
13071
|
type VueDefineMacrosOrder = []|[{
|
|
12814
|
-
order?:
|
|
13072
|
+
order?: string[]
|
|
12815
13073
|
defineExposeLast?: boolean
|
|
12816
13074
|
}]
|
|
12817
13075
|
// ----- vue/define-props-declaration -----
|
|
@@ -13157,6 +13415,10 @@ type VueKeywordSpacing = []|[{
|
|
|
13157
13415
|
before?: boolean
|
|
13158
13416
|
after?: boolean
|
|
13159
13417
|
}
|
|
13418
|
+
satisfies?: {
|
|
13419
|
+
before?: boolean
|
|
13420
|
+
after?: boolean
|
|
13421
|
+
}
|
|
13160
13422
|
set?: {
|
|
13161
13423
|
before?: boolean
|
|
13162
13424
|
after?: boolean
|
|
@@ -13346,6 +13608,14 @@ type VueMaxLinesPerBlock = []|[{
|
|
|
13346
13608
|
script?: number
|
|
13347
13609
|
skipBlankLines?: boolean
|
|
13348
13610
|
}]
|
|
13611
|
+
// ----- vue/max-props -----
|
|
13612
|
+
type VueMaxProps = []|[{
|
|
13613
|
+
maxProps?: number
|
|
13614
|
+
}]
|
|
13615
|
+
// ----- vue/max-template-depth -----
|
|
13616
|
+
type VueMaxTemplateDepth = []|[{
|
|
13617
|
+
maxDepth?: number
|
|
13618
|
+
}]
|
|
13349
13619
|
// ----- vue/multi-word-component-names -----
|
|
13350
13620
|
type VueMultiWordComponentNames = []|[{
|
|
13351
13621
|
ignores?: string[]
|
|
@@ -13760,6 +14030,10 @@ type VueRequireMacroVariableName = []|[{
|
|
|
13760
14030
|
type VueRequirePropComment = []|[{
|
|
13761
14031
|
type?: ("JSDoc" | "line" | "block" | "any")
|
|
13762
14032
|
}]
|
|
14033
|
+
// ----- vue/require-toggle-inside-transition -----
|
|
14034
|
+
type VueRequireToggleInsideTransition = []|[{
|
|
14035
|
+
additionalDirectives?: string[]
|
|
14036
|
+
}]
|
|
13763
14037
|
// ----- vue/return-in-computed-property -----
|
|
13764
14038
|
type VueReturnInComputedProperty = []|[{
|
|
13765
14039
|
treatUndefinedAsUnspecified?: boolean
|
|
@@ -14414,6 +14688,10 @@ declare function lincy(options?: OptionsConfig & Omit<TypedFlatConfigItem, 'file
|
|
|
14414
14688
|
|
|
14415
14689
|
declare function comments(): Promise<TypedFlatConfigItem[]>;
|
|
14416
14690
|
|
|
14691
|
+
declare function disables(): Promise<TypedFlatConfigItem[]>;
|
|
14692
|
+
|
|
14693
|
+
declare function formatters(options?: OptionsFormatters | true, stylistic?: StylisticConfig): Promise<TypedFlatConfigItem[]>;
|
|
14694
|
+
|
|
14417
14695
|
declare function ignores(options?: OptionsIgnores): Promise<TypedFlatConfigItem[]>;
|
|
14418
14696
|
|
|
14419
14697
|
declare function imports(options?: OptionsStylistic): Promise<TypedFlatConfigItem[]>;
|
|
@@ -14428,6 +14706,8 @@ declare function jsx(): Promise<TypedFlatConfigItem[]>;
|
|
|
14428
14706
|
|
|
14429
14707
|
declare function markdown(options?: OptionsFiles & OptionsComponentExts & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
14430
14708
|
|
|
14709
|
+
declare function node(): Promise<TypedFlatConfigItem[]>;
|
|
14710
|
+
|
|
14431
14711
|
/**
|
|
14432
14712
|
* Optional perfectionist plugin for props and items sorting.
|
|
14433
14713
|
*
|
|
@@ -14435,10 +14715,6 @@ declare function markdown(options?: OptionsFiles & OptionsComponentExts & Option
|
|
|
14435
14715
|
*/
|
|
14436
14716
|
declare function perfectionist(): Promise<TypedFlatConfigItem[]>;
|
|
14437
14717
|
|
|
14438
|
-
declare function formatters(options?: OptionsFormatters | true, stylistic?: StylisticConfig): Promise<TypedFlatConfigItem[]>;
|
|
14439
|
-
|
|
14440
|
-
declare function node(): Promise<TypedFlatConfigItem[]>;
|
|
14441
|
-
|
|
14442
14718
|
declare function react(options?: OptionsFiles & OptionsReact & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
14443
14719
|
|
|
14444
14720
|
declare function regexp(options?: OptionsRegExp & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
@@ -14461,6 +14737,8 @@ declare function stylistic(options?: OptionsStylistic & OptionsOverrides): Promi
|
|
|
14461
14737
|
|
|
14462
14738
|
declare function test(options?: OptionsFiles & OptionsIsInEditor & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
|
|
14463
14739
|
|
|
14740
|
+
declare function toml(options?: OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
|
|
14741
|
+
|
|
14464
14742
|
declare function typescript(options?: OptionsFiles & OptionsComponentExts & OptionsOverrides & OptionsTypeScriptWithTypes & OptionsTypeScriptParserOptions & OptionsProjectType): Promise<TypedFlatConfigItem[]>;
|
|
14465
14743
|
|
|
14466
14744
|
declare function unicorn(options?: OptionsUnicorn): Promise<TypedFlatConfigItem[]>;
|
|
@@ -14471,25 +14749,6 @@ declare function vue(options?: OptionsHasTypeScript & OptionsOverrides & Options
|
|
|
14471
14749
|
|
|
14472
14750
|
declare function yaml(options?: OptionsFiles & OptionsOverrides & OptionsStylistic): Promise<TypedFlatConfigItem[]>;
|
|
14473
14751
|
|
|
14474
|
-
declare function toml(options?: OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<TypedFlatConfigItem[]>;
|
|
14475
|
-
|
|
14476
|
-
/**
|
|
14477
|
-
* Combine array and non-array configs into a single array.
|
|
14478
|
-
*/
|
|
14479
|
-
declare function combine(...configs: Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[]>[]): Promise<TypedFlatConfigItem[]>;
|
|
14480
|
-
declare function renameRules(rules: Record<string, any>, map: Record<string, string>): {
|
|
14481
|
-
[k: string]: any;
|
|
14482
|
-
};
|
|
14483
|
-
declare function renamePluginInConfigs(configs: TypedFlatConfigItem[], map: Record<string, string>): TypedFlatConfigItem[];
|
|
14484
|
-
declare function toArray<T>(value: T | T[]): T[];
|
|
14485
|
-
declare function interopDefault<T>(m: Awaitable<T>): Promise<T extends {
|
|
14486
|
-
default: infer U;
|
|
14487
|
-
} ? U : T>;
|
|
14488
|
-
declare function isPackageInScope(name: string): boolean;
|
|
14489
|
-
declare function ensurePackages(packages: (string | undefined)[]): Promise<void>;
|
|
14490
|
-
declare function isInEditorEnv(): boolean;
|
|
14491
|
-
declare function isInGitHooksOrLintStaged(): boolean;
|
|
14492
|
-
|
|
14493
14752
|
declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
14494
14753
|
declare const GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
|
|
14495
14754
|
declare const GLOB_JS = "**/*.?([cm])js";
|
|
@@ -14519,4 +14778,46 @@ declare const GLOB_TESTS: string[];
|
|
|
14519
14778
|
declare const GLOB_ALL_SRC: string[];
|
|
14520
14779
|
declare const GLOB_EXCLUDE: string[];
|
|
14521
14780
|
|
|
14522
|
-
|
|
14781
|
+
declare const parserPlain: {
|
|
14782
|
+
meta: {
|
|
14783
|
+
name: string;
|
|
14784
|
+
};
|
|
14785
|
+
parseForESLint: (code: string) => {
|
|
14786
|
+
ast: {
|
|
14787
|
+
body: never[];
|
|
14788
|
+
comments: never[];
|
|
14789
|
+
loc: {
|
|
14790
|
+
end: number;
|
|
14791
|
+
start: number;
|
|
14792
|
+
};
|
|
14793
|
+
range: number[];
|
|
14794
|
+
tokens: never[];
|
|
14795
|
+
type: string;
|
|
14796
|
+
};
|
|
14797
|
+
scopeManager: null;
|
|
14798
|
+
services: {
|
|
14799
|
+
isPlain: boolean;
|
|
14800
|
+
};
|
|
14801
|
+
visitorKeys: {
|
|
14802
|
+
Program: never[];
|
|
14803
|
+
};
|
|
14804
|
+
};
|
|
14805
|
+
};
|
|
14806
|
+
/**
|
|
14807
|
+
* Combine array and non-array configs into a single array.
|
|
14808
|
+
*/
|
|
14809
|
+
declare function combine(...configs: Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[]>[]): Promise<TypedFlatConfigItem[]>;
|
|
14810
|
+
declare function renameRules(rules: Record<string, any>, map: Record<string, string>): {
|
|
14811
|
+
[k: string]: any;
|
|
14812
|
+
};
|
|
14813
|
+
declare function renamePluginInConfigs(configs: TypedFlatConfigItem[], map: Record<string, string>): TypedFlatConfigItem[];
|
|
14814
|
+
declare function toArray<T>(value: T | T[]): T[];
|
|
14815
|
+
declare function interopDefault<T>(m: Awaitable<T>): Promise<T extends {
|
|
14816
|
+
default: infer U;
|
|
14817
|
+
} ? U : T>;
|
|
14818
|
+
declare function isPackageInScope(name: string): boolean;
|
|
14819
|
+
declare function ensurePackages(packages: (string | undefined)[]): Promise<void>;
|
|
14820
|
+
declare function isInEditorEnv(): boolean;
|
|
14821
|
+
declare function isInGitHooksOrLintStaged(): boolean;
|
|
14822
|
+
|
|
14823
|
+
export { type Awaitable, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, type OptionsComponentExts, type OptionsConfig, type OptionsFiles, type OptionsFormatters, type OptionsHasTypeScript, type OptionsIgnores, type OptionsIsInEditor, type OptionsOverrides, type OptionsProjectType, type OptionsReact, type OptionsRegExp, type OptionsStylistic, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsUnicorn, type OptionsUnoCSS, type OptionsVue, type Rules, type StylisticConfig, StylisticConfigDefaults, type TypedFlatConfigItem, combine, comments, lincy as default, defaultPluginRenaming, disables, ensurePackages, formatters, ignores, imports, interopDefault, isInEditorEnv, isInGitHooksOrLintStaged, isPackageInScope, javascript, jsdoc, jsonc, jsx, lincy, markdown, node, parserPlain, perfectionist, react, regexp, renamePluginInConfigs, renameRules, sortPackageJson, sortTsconfig, stylistic, test, toArray, toml, typescript, unicorn, unocss, vue, yaml };
|