@hexadrop/eslint-config 0.1.4 → 0.1.6
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/index.d.cts +750 -490
- package/dist/index.d.ts +750 -490
- package/dist/index.js +5 -5
- package/package.json +26 -26
package/dist/index.d.cts
CHANGED
|
@@ -575,233 +575,238 @@ interface RuleOptions {
|
|
|
575
575
|
'import-unused/no-unused-vars'?: Linter.RuleEntry<ImportUnusedNoUnusedVars>
|
|
576
576
|
/**
|
|
577
577
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
578
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
578
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/consistent-type-specifier-style.md
|
|
579
579
|
*/
|
|
580
580
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
|
|
581
581
|
/**
|
|
582
582
|
* Ensure a default export is present, given a default import.
|
|
583
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
583
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/default.md
|
|
584
584
|
*/
|
|
585
585
|
'import/default'?: Linter.RuleEntry<[]>
|
|
586
586
|
/**
|
|
587
587
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
588
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
588
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/dynamic-import-chunkname.md
|
|
589
589
|
*/
|
|
590
590
|
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
|
|
591
591
|
/**
|
|
592
592
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
593
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
593
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/export.md
|
|
594
594
|
*/
|
|
595
595
|
'import/export'?: Linter.RuleEntry<[]>
|
|
596
596
|
/**
|
|
597
597
|
* Ensure all exports appear after other statements.
|
|
598
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
598
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/exports-last.md
|
|
599
599
|
*/
|
|
600
600
|
'import/exports-last'?: Linter.RuleEntry<[]>
|
|
601
601
|
/**
|
|
602
602
|
* Ensure consistent use of file extension within the import path.
|
|
603
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
603
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/extensions.md
|
|
604
604
|
*/
|
|
605
605
|
'import/extensions'?: Linter.RuleEntry<ImportExtensions>
|
|
606
606
|
/**
|
|
607
607
|
* Ensure all imports appear before other statements.
|
|
608
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
608
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/first.md
|
|
609
609
|
*/
|
|
610
610
|
'import/first'?: Linter.RuleEntry<ImportFirst>
|
|
611
611
|
/**
|
|
612
612
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
613
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
613
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/group-exports.md
|
|
614
614
|
*/
|
|
615
615
|
'import/group-exports'?: Linter.RuleEntry<[]>
|
|
616
616
|
/**
|
|
617
617
|
* Replaced by `import-x/first`.
|
|
618
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
618
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/imports-first.md
|
|
619
619
|
* @deprecated
|
|
620
620
|
*/
|
|
621
621
|
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
|
|
622
622
|
/**
|
|
623
623
|
* Enforce the maximum number of dependencies a module can have.
|
|
624
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
624
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/max-dependencies.md
|
|
625
625
|
*/
|
|
626
626
|
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
|
|
627
627
|
/**
|
|
628
628
|
* Ensure named imports correspond to a named export in the remote file.
|
|
629
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
629
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/named.md
|
|
630
630
|
*/
|
|
631
631
|
'import/named'?: Linter.RuleEntry<ImportNamed>
|
|
632
632
|
/**
|
|
633
633
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
634
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
634
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/namespace.md
|
|
635
635
|
*/
|
|
636
636
|
'import/namespace'?: Linter.RuleEntry<ImportNamespace>
|
|
637
637
|
/**
|
|
638
638
|
* Enforce a newline after import statements.
|
|
639
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
639
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/newline-after-import.md
|
|
640
640
|
*/
|
|
641
641
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
|
|
642
642
|
/**
|
|
643
643
|
* Forbid import of modules using absolute paths.
|
|
644
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
644
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-absolute-path.md
|
|
645
645
|
*/
|
|
646
646
|
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
|
|
647
647
|
/**
|
|
648
648
|
* Forbid AMD `require` and `define` calls.
|
|
649
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
649
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-amd.md
|
|
650
650
|
*/
|
|
651
651
|
'import/no-amd'?: Linter.RuleEntry<[]>
|
|
652
652
|
/**
|
|
653
653
|
* Forbid anonymous values as default exports.
|
|
654
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
654
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-anonymous-default-export.md
|
|
655
655
|
*/
|
|
656
656
|
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
|
|
657
657
|
/**
|
|
658
658
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
659
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
659
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-commonjs.md
|
|
660
660
|
*/
|
|
661
661
|
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
|
|
662
662
|
/**
|
|
663
663
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
664
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
664
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-cycle.md
|
|
665
665
|
*/
|
|
666
666
|
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
|
|
667
667
|
/**
|
|
668
668
|
* Forbid default exports.
|
|
669
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
669
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-default-export.md
|
|
670
670
|
*/
|
|
671
671
|
'import/no-default-export'?: Linter.RuleEntry<[]>
|
|
672
672
|
/**
|
|
673
673
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
674
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
674
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-deprecated.md
|
|
675
675
|
*/
|
|
676
676
|
'import/no-deprecated'?: Linter.RuleEntry<[]>
|
|
677
677
|
/**
|
|
678
678
|
* Forbid repeated import of the same module in multiple places.
|
|
679
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
679
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-duplicates.md
|
|
680
680
|
*/
|
|
681
681
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
|
|
682
682
|
/**
|
|
683
683
|
* Forbid `require()` calls with expressions.
|
|
684
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
684
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-dynamic-require.md
|
|
685
685
|
*/
|
|
686
686
|
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
|
|
687
687
|
/**
|
|
688
688
|
* Forbid empty named import blocks.
|
|
689
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
689
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-empty-named-blocks.md
|
|
690
690
|
*/
|
|
691
691
|
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
692
692
|
/**
|
|
693
693
|
* Forbid the use of extraneous packages.
|
|
694
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
694
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-extraneous-dependencies.md
|
|
695
695
|
*/
|
|
696
696
|
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
|
|
697
697
|
/**
|
|
698
698
|
* Forbid import statements with CommonJS module.exports.
|
|
699
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
699
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-import-module-exports.md
|
|
700
700
|
*/
|
|
701
701
|
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
|
|
702
702
|
/**
|
|
703
703
|
* Forbid importing the submodules of other modules.
|
|
704
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
704
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-internal-modules.md
|
|
705
705
|
*/
|
|
706
706
|
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
|
|
707
707
|
/**
|
|
708
708
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
709
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
709
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-mutable-exports.md
|
|
710
710
|
*/
|
|
711
711
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
712
712
|
/**
|
|
713
713
|
* Forbid use of exported name as identifier of default export.
|
|
714
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
714
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-named-as-default.md
|
|
715
715
|
*/
|
|
716
716
|
'import/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
717
717
|
/**
|
|
718
718
|
* Forbid use of exported name as property of default export.
|
|
719
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
719
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-named-as-default-member.md
|
|
720
720
|
*/
|
|
721
721
|
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
722
722
|
/**
|
|
723
723
|
* Forbid named default exports.
|
|
724
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
724
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-named-default.md
|
|
725
725
|
*/
|
|
726
726
|
'import/no-named-default'?: Linter.RuleEntry<[]>
|
|
727
727
|
/**
|
|
728
728
|
* Forbid named exports.
|
|
729
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
729
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-named-export.md
|
|
730
730
|
*/
|
|
731
731
|
'import/no-named-export'?: Linter.RuleEntry<[]>
|
|
732
732
|
/**
|
|
733
733
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
734
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
734
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-namespace.md
|
|
735
735
|
*/
|
|
736
736
|
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
|
|
737
737
|
/**
|
|
738
738
|
* Forbid Node.js builtin modules.
|
|
739
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
739
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-nodejs-modules.md
|
|
740
740
|
*/
|
|
741
741
|
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
|
|
742
742
|
/**
|
|
743
743
|
* Forbid importing packages through relative paths.
|
|
744
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
744
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-relative-packages.md
|
|
745
745
|
*/
|
|
746
746
|
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
|
|
747
747
|
/**
|
|
748
748
|
* Forbid importing modules from parent directories.
|
|
749
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
749
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-relative-parent-imports.md
|
|
750
750
|
*/
|
|
751
751
|
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
|
|
752
752
|
/**
|
|
753
753
|
* Forbid importing a default export by a different name.
|
|
754
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
754
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-rename-default.md
|
|
755
755
|
*/
|
|
756
756
|
'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>
|
|
757
757
|
/**
|
|
758
758
|
* Enforce which files can be imported in a given folder.
|
|
759
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
759
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-restricted-paths.md
|
|
760
760
|
*/
|
|
761
761
|
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
|
|
762
762
|
/**
|
|
763
763
|
* Forbid a module from importing itself.
|
|
764
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
764
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-self-import.md
|
|
765
765
|
*/
|
|
766
766
|
'import/no-self-import'?: Linter.RuleEntry<[]>
|
|
767
767
|
/**
|
|
768
768
|
* Forbid unassigned imports.
|
|
769
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
769
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-unassigned-import.md
|
|
770
770
|
*/
|
|
771
771
|
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
|
|
772
772
|
/**
|
|
773
773
|
* Ensure imports point to a file/module that can be resolved.
|
|
774
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
774
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-unresolved.md
|
|
775
775
|
*/
|
|
776
776
|
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
|
|
777
777
|
/**
|
|
778
778
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
779
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
779
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-unused-modules.md
|
|
780
780
|
*/
|
|
781
781
|
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
|
|
782
782
|
/**
|
|
783
783
|
* Forbid unnecessary path segments in import and require statements.
|
|
784
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
784
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-useless-path-segments.md
|
|
785
785
|
*/
|
|
786
786
|
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
|
|
787
787
|
/**
|
|
788
788
|
* Forbid webpack loader syntax in imports.
|
|
789
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
789
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-webpack-loader-syntax.md
|
|
790
790
|
*/
|
|
791
791
|
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
792
792
|
/**
|
|
793
793
|
* Enforce a convention in module import order.
|
|
794
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
794
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/order.md
|
|
795
795
|
*/
|
|
796
796
|
'import/order'?: Linter.RuleEntry<ImportOrder>
|
|
797
797
|
/**
|
|
798
798
|
* Prefer a default export if module exports a single name or multiple names.
|
|
799
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
799
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/prefer-default-export.md
|
|
800
800
|
*/
|
|
801
801
|
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
|
|
802
|
+
/**
|
|
803
|
+
* Enforce using namespace imports for specific modules, like `react`/`react-dom`, etc.
|
|
804
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/prefer-namespace-import.md
|
|
805
|
+
*/
|
|
806
|
+
'import/prefer-namespace-import'?: Linter.RuleEntry<ImportPreferNamespaceImport>
|
|
802
807
|
/**
|
|
803
808
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
804
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
809
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/unambiguous.md
|
|
805
810
|
*/
|
|
806
811
|
'import/unambiguous'?: Linter.RuleEntry<[]>
|
|
807
812
|
/**
|
|
@@ -990,7 +995,7 @@ interface RuleOptions {
|
|
|
990
995
|
* disallow unnecessary escape usage
|
|
991
996
|
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/no-useless-escape.html
|
|
992
997
|
*/
|
|
993
|
-
'json/no-useless-escape'?: Linter.RuleEntry<
|
|
998
|
+
'json/no-useless-escape'?: Linter.RuleEntry<JsonNoUselessEscape>
|
|
994
999
|
/**
|
|
995
1000
|
* enforce consistent line breaks inside braces
|
|
996
1001
|
* @see https://ota-meshi.github.io/eslint-plugin-jsonc/rules/object-curly-newline.html
|
|
@@ -1103,12 +1108,32 @@ interface RuleOptions {
|
|
|
1103
1108
|
* Enforce heading levels increment by one
|
|
1104
1109
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/heading-increment.md
|
|
1105
1110
|
*/
|
|
1106
|
-
'markdown/heading-increment'?: Linter.RuleEntry<
|
|
1111
|
+
'markdown/heading-increment'?: Linter.RuleEntry<MarkdownHeadingIncrement>
|
|
1112
|
+
/**
|
|
1113
|
+
* Disallow bare URLs
|
|
1114
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-bare-urls.md
|
|
1115
|
+
*/
|
|
1116
|
+
'markdown/no-bare-urls'?: Linter.RuleEntry<[]>
|
|
1117
|
+
/**
|
|
1118
|
+
* Disallow duplicate definitions
|
|
1119
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-duplicate-definitions.md
|
|
1120
|
+
*/
|
|
1121
|
+
'markdown/no-duplicate-definitions'?: Linter.RuleEntry<MarkdownNoDuplicateDefinitions>
|
|
1107
1122
|
/**
|
|
1108
1123
|
* Disallow duplicate headings in the same document
|
|
1109
1124
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-duplicate-headings.md
|
|
1110
1125
|
*/
|
|
1111
|
-
'markdown/no-duplicate-headings'?: Linter.RuleEntry<
|
|
1126
|
+
'markdown/no-duplicate-headings'?: Linter.RuleEntry<MarkdownNoDuplicateHeadings>
|
|
1127
|
+
/**
|
|
1128
|
+
* Disallow empty definitions
|
|
1129
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-definitions.md
|
|
1130
|
+
*/
|
|
1131
|
+
'markdown/no-empty-definitions'?: Linter.RuleEntry<MarkdownNoEmptyDefinitions>
|
|
1132
|
+
/**
|
|
1133
|
+
* Disallow empty images
|
|
1134
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-images.md
|
|
1135
|
+
*/
|
|
1136
|
+
'markdown/no-empty-images'?: Linter.RuleEntry<[]>
|
|
1112
1137
|
/**
|
|
1113
1138
|
* Disallow empty links
|
|
1114
1139
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-links.md
|
|
@@ -1124,11 +1149,51 @@ interface RuleOptions {
|
|
|
1124
1149
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-invalid-label-refs.md
|
|
1125
1150
|
*/
|
|
1126
1151
|
'markdown/no-invalid-label-refs'?: Linter.RuleEntry<[]>
|
|
1152
|
+
/**
|
|
1153
|
+
* Disallow headings without a space after the hash characters
|
|
1154
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-atx-heading-space.md
|
|
1155
|
+
*/
|
|
1156
|
+
'markdown/no-missing-atx-heading-space'?: Linter.RuleEntry<MarkdownNoMissingAtxHeadingSpace>
|
|
1127
1157
|
/**
|
|
1128
1158
|
* Disallow missing label references
|
|
1129
1159
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-label-refs.md
|
|
1130
1160
|
*/
|
|
1131
1161
|
'markdown/no-missing-label-refs'?: Linter.RuleEntry<[]>
|
|
1162
|
+
/**
|
|
1163
|
+
* Disallow link fragments that do not reference valid headings
|
|
1164
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-link-fragments.md
|
|
1165
|
+
*/
|
|
1166
|
+
'markdown/no-missing-link-fragments'?: Linter.RuleEntry<MarkdownNoMissingLinkFragments>
|
|
1167
|
+
/**
|
|
1168
|
+
* Disallow multiple H1 headings in the same document
|
|
1169
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-multiple-h1.md
|
|
1170
|
+
*/
|
|
1171
|
+
'markdown/no-multiple-h1'?: Linter.RuleEntry<MarkdownNoMultipleH1>
|
|
1172
|
+
/**
|
|
1173
|
+
* Disallow reversed link and image syntax
|
|
1174
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-reversed-media-syntax.md
|
|
1175
|
+
*/
|
|
1176
|
+
'markdown/no-reversed-media-syntax'?: Linter.RuleEntry<[]>
|
|
1177
|
+
/**
|
|
1178
|
+
* Disallow spaces around emphasis markers
|
|
1179
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-space-in-emphasis.md
|
|
1180
|
+
*/
|
|
1181
|
+
'markdown/no-space-in-emphasis'?: Linter.RuleEntry<MarkdownNoSpaceInEmphasis>
|
|
1182
|
+
/**
|
|
1183
|
+
* Disallow unused definitions
|
|
1184
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-unused-definitions.md
|
|
1185
|
+
*/
|
|
1186
|
+
'markdown/no-unused-definitions'?: Linter.RuleEntry<MarkdownNoUnusedDefinitions>
|
|
1187
|
+
/**
|
|
1188
|
+
* Require alternative text for images
|
|
1189
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/require-alt-text.md
|
|
1190
|
+
*/
|
|
1191
|
+
'markdown/require-alt-text'?: Linter.RuleEntry<[]>
|
|
1192
|
+
/**
|
|
1193
|
+
* Disallow data rows in a GitHub Flavored Markdown table from having more cells than the header row
|
|
1194
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/table-column-count.md
|
|
1195
|
+
*/
|
|
1196
|
+
'markdown/table-column-count'?: Linter.RuleEntry<MarkdownTableColumnCount>
|
|
1132
1197
|
/**
|
|
1133
1198
|
* Enforce a maximum number of classes per file
|
|
1134
1199
|
* @see https://eslint.org/docs/latest/rules/max-classes-per-file
|
|
@@ -1291,7 +1356,7 @@ interface RuleOptions {
|
|
|
1291
1356
|
*/
|
|
1292
1357
|
'no-console'?: Linter.RuleEntry<NoConsole>
|
|
1293
1358
|
/**
|
|
1294
|
-
* Disallow reassigning `const` variables
|
|
1359
|
+
* Disallow reassigning `const`, `using`, and `await using` variables
|
|
1295
1360
|
* @see https://eslint.org/docs/latest/rules/no-const-assign
|
|
1296
1361
|
*/
|
|
1297
1362
|
'no-const-assign'?: Linter.RuleEntry<[]>
|
|
@@ -1857,6 +1922,11 @@ interface RuleOptions {
|
|
|
1857
1922
|
* @deprecated
|
|
1858
1923
|
*/
|
|
1859
1924
|
'no-trailing-spaces'?: Linter.RuleEntry<NoTrailingSpaces>
|
|
1925
|
+
/**
|
|
1926
|
+
* Disallow `let` or `var` variables that are read but never assigned
|
|
1927
|
+
* @see https://eslint.org/docs/latest/rules/no-unassigned-vars
|
|
1928
|
+
*/
|
|
1929
|
+
'no-unassigned-vars'?: Linter.RuleEntry<[]>
|
|
1860
1930
|
/**
|
|
1861
1931
|
* Disallow the use of undeclared variables unless mentioned in `/*global *\/` comments
|
|
1862
1932
|
* @see https://eslint.org/docs/latest/rules/no-undef
|
|
@@ -1981,7 +2051,7 @@ interface RuleOptions {
|
|
|
1981
2051
|
* Disallow unnecessary escape characters
|
|
1982
2052
|
* @see https://eslint.org/docs/latest/rules/no-useless-escape
|
|
1983
2053
|
*/
|
|
1984
|
-
'no-useless-escape'?: Linter.RuleEntry<
|
|
2054
|
+
'no-useless-escape'?: Linter.RuleEntry<NoUselessEscape>
|
|
1985
2055
|
/**
|
|
1986
2056
|
* Disallow renaming import, export, and destructured assignments to the same name
|
|
1987
2057
|
* @see https://eslint.org/docs/latest/rules/no-useless-rename
|
|
@@ -2129,6 +2199,11 @@ interface RuleOptions {
|
|
|
2129
2199
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-sync.md
|
|
2130
2200
|
*/
|
|
2131
2201
|
'node/no-sync'?: Linter.RuleEntry<NodeNoSync>
|
|
2202
|
+
/**
|
|
2203
|
+
* disallow top-level `await` in published modules
|
|
2204
|
+
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-top-level-await.md
|
|
2205
|
+
*/
|
|
2206
|
+
'node/no-top-level-await'?: Linter.RuleEntry<NodeNoTopLevelAwait>
|
|
2132
2207
|
/**
|
|
2133
2208
|
* disallow `bin` files that npm ignores
|
|
2134
2209
|
* @see https://github.com/eslint-community/eslint-plugin-n/blob/HEAD/docs/rules/no-unpublished-bin.md
|
|
@@ -2454,6 +2529,11 @@ interface RuleOptions {
|
|
|
2454
2529
|
* @see https://eslint.org/docs/latest/rules/prefer-template
|
|
2455
2530
|
*/
|
|
2456
2531
|
'prefer-template'?: Linter.RuleEntry<[]>
|
|
2532
|
+
/**
|
|
2533
|
+
* Disallow losing originally caught error when re-throwing custom errors
|
|
2534
|
+
* @see https://eslint.org/docs/latest/rules/preserve-caught-error
|
|
2535
|
+
*/
|
|
2536
|
+
'preserve-caught-error'?: Linter.RuleEntry<PreserveCaughtError>
|
|
2457
2537
|
/**
|
|
2458
2538
|
* Require quotes around object literal property names
|
|
2459
2539
|
* @see https://eslint.org/docs/latest/rules/quote-props
|
|
@@ -3101,483 +3181,478 @@ interface RuleOptions {
|
|
|
3101
3181
|
'strict'?: Linter.RuleEntry<Strict>
|
|
3102
3182
|
/**
|
|
3103
3183
|
* Enforce linebreaks after opening and before closing array brackets
|
|
3104
|
-
* @see https://eslint.style/rules/
|
|
3184
|
+
* @see https://eslint.style/rules/array-bracket-newline
|
|
3105
3185
|
*/
|
|
3106
3186
|
'style/array-bracket-newline'?: Linter.RuleEntry<StyleArrayBracketNewline>
|
|
3107
3187
|
/**
|
|
3108
3188
|
* Enforce consistent spacing inside array brackets
|
|
3109
|
-
* @see https://eslint.style/rules/
|
|
3189
|
+
* @see https://eslint.style/rules/array-bracket-spacing
|
|
3110
3190
|
*/
|
|
3111
3191
|
'style/array-bracket-spacing'?: Linter.RuleEntry<StyleArrayBracketSpacing>
|
|
3112
3192
|
/**
|
|
3113
3193
|
* Enforce line breaks after each array element
|
|
3114
|
-
* @see https://eslint.style/rules/
|
|
3194
|
+
* @see https://eslint.style/rules/array-element-newline
|
|
3115
3195
|
*/
|
|
3116
3196
|
'style/array-element-newline'?: Linter.RuleEntry<StyleArrayElementNewline>
|
|
3117
3197
|
/**
|
|
3118
3198
|
* Require parentheses around arrow function arguments
|
|
3119
|
-
* @see https://eslint.style/rules/
|
|
3199
|
+
* @see https://eslint.style/rules/arrow-parens
|
|
3120
3200
|
*/
|
|
3121
3201
|
'style/arrow-parens'?: Linter.RuleEntry<StyleArrowParens>
|
|
3122
3202
|
/**
|
|
3123
3203
|
* Enforce consistent spacing before and after the arrow in arrow functions
|
|
3124
|
-
* @see https://eslint.style/rules/
|
|
3204
|
+
* @see https://eslint.style/rules/arrow-spacing
|
|
3125
3205
|
*/
|
|
3126
3206
|
'style/arrow-spacing'?: Linter.RuleEntry<StyleArrowSpacing>
|
|
3127
3207
|
/**
|
|
3128
3208
|
* Disallow or enforce spaces inside of blocks after opening block and before closing block
|
|
3129
|
-
* @see https://eslint.style/rules/
|
|
3209
|
+
* @see https://eslint.style/rules/block-spacing
|
|
3130
3210
|
*/
|
|
3131
3211
|
'style/block-spacing'?: Linter.RuleEntry<StyleBlockSpacing>
|
|
3132
3212
|
/**
|
|
3133
3213
|
* Enforce consistent brace style for blocks
|
|
3134
|
-
* @see https://eslint.style/rules/
|
|
3214
|
+
* @see https://eslint.style/rules/brace-style
|
|
3135
3215
|
*/
|
|
3136
3216
|
'style/brace-style'?: Linter.RuleEntry<StyleBraceStyle>
|
|
3137
3217
|
/**
|
|
3138
3218
|
* Require or disallow trailing commas
|
|
3139
|
-
* @see https://eslint.style/rules/
|
|
3219
|
+
* @see https://eslint.style/rules/comma-dangle
|
|
3140
3220
|
*/
|
|
3141
3221
|
'style/comma-dangle'?: Linter.RuleEntry<StyleCommaDangle>
|
|
3142
3222
|
/**
|
|
3143
3223
|
* Enforce consistent spacing before and after commas
|
|
3144
|
-
* @see https://eslint.style/rules/
|
|
3224
|
+
* @see https://eslint.style/rules/comma-spacing
|
|
3145
3225
|
*/
|
|
3146
3226
|
'style/comma-spacing'?: Linter.RuleEntry<StyleCommaSpacing>
|
|
3147
3227
|
/**
|
|
3148
3228
|
* Enforce consistent comma style
|
|
3149
|
-
* @see https://eslint.style/rules/
|
|
3229
|
+
* @see https://eslint.style/rules/comma-style
|
|
3150
3230
|
*/
|
|
3151
3231
|
'style/comma-style'?: Linter.RuleEntry<StyleCommaStyle>
|
|
3152
3232
|
/**
|
|
3153
3233
|
* Enforce consistent spacing inside computed property brackets
|
|
3154
|
-
* @see https://eslint.style/rules/
|
|
3234
|
+
* @see https://eslint.style/rules/computed-property-spacing
|
|
3155
3235
|
*/
|
|
3156
3236
|
'style/computed-property-spacing'?: Linter.RuleEntry<StyleComputedPropertySpacing>
|
|
3157
3237
|
/**
|
|
3158
3238
|
* Enforce consistent line breaks after opening and before closing braces
|
|
3159
|
-
* @see https://eslint.style/rules/
|
|
3239
|
+
* @see https://eslint.style/rules/curly-newline
|
|
3160
3240
|
*/
|
|
3161
3241
|
'style/curly-newline'?: Linter.RuleEntry<StyleCurlyNewline>
|
|
3162
3242
|
/**
|
|
3163
3243
|
* Enforce consistent newlines before and after dots
|
|
3164
|
-
* @see https://eslint.style/rules/
|
|
3244
|
+
* @see https://eslint.style/rules/dot-location
|
|
3165
3245
|
*/
|
|
3166
3246
|
'style/dot-location'?: Linter.RuleEntry<StyleDotLocation>
|
|
3167
3247
|
/**
|
|
3168
3248
|
* Require or disallow newline at the end of files
|
|
3169
|
-
* @see https://eslint.style/rules/
|
|
3249
|
+
* @see https://eslint.style/rules/eol-last
|
|
3170
3250
|
*/
|
|
3171
3251
|
'style/eol-last'?: Linter.RuleEntry<StyleEolLast>
|
|
3172
|
-
/**
|
|
3173
|
-
* Require or disallow spacing between function identifiers and their invocations
|
|
3174
|
-
* @see https://eslint.style/rules/ts/function-call-spacing
|
|
3175
|
-
*/
|
|
3176
|
-
'style/func-call-spacing'?: Linter.RuleEntry<StyleFuncCallSpacing>
|
|
3177
3252
|
/**
|
|
3178
3253
|
* Enforce line breaks between arguments of a function call
|
|
3179
|
-
* @see https://eslint.style/rules/
|
|
3254
|
+
* @see https://eslint.style/rules/function-call-argument-newline
|
|
3180
3255
|
*/
|
|
3181
3256
|
'style/function-call-argument-newline'?: Linter.RuleEntry<StyleFunctionCallArgumentNewline>
|
|
3182
3257
|
/**
|
|
3183
3258
|
* Require or disallow spacing between function identifiers and their invocations
|
|
3184
|
-
* @see https://eslint.style/rules/
|
|
3259
|
+
* @see https://eslint.style/rules/function-call-spacing
|
|
3185
3260
|
*/
|
|
3186
3261
|
'style/function-call-spacing'?: Linter.RuleEntry<StyleFunctionCallSpacing>
|
|
3187
3262
|
/**
|
|
3188
3263
|
* Enforce consistent line breaks inside function parentheses
|
|
3189
|
-
* @see https://eslint.style/rules/
|
|
3264
|
+
* @see https://eslint.style/rules/function-paren-newline
|
|
3190
3265
|
*/
|
|
3191
3266
|
'style/function-paren-newline'?: Linter.RuleEntry<StyleFunctionParenNewline>
|
|
3192
3267
|
/**
|
|
3193
3268
|
* Enforce consistent spacing around `*` operators in generator functions
|
|
3194
|
-
* @see https://eslint.style/rules/
|
|
3269
|
+
* @see https://eslint.style/rules/generator-star-spacing
|
|
3195
3270
|
*/
|
|
3196
3271
|
'style/generator-star-spacing'?: Linter.RuleEntry<StyleGeneratorStarSpacing>
|
|
3197
3272
|
/**
|
|
3198
3273
|
* Enforce the location of arrow function bodies
|
|
3199
|
-
* @see https://eslint.style/rules/
|
|
3274
|
+
* @see https://eslint.style/rules/implicit-arrow-linebreak
|
|
3200
3275
|
*/
|
|
3201
3276
|
'style/implicit-arrow-linebreak'?: Linter.RuleEntry<StyleImplicitArrowLinebreak>
|
|
3202
3277
|
/**
|
|
3203
3278
|
* Enforce consistent indentation
|
|
3204
|
-
* @see https://eslint.style/rules/
|
|
3279
|
+
* @see https://eslint.style/rules/indent
|
|
3205
3280
|
*/
|
|
3206
3281
|
'style/indent'?: Linter.RuleEntry<StyleIndent>
|
|
3207
3282
|
/**
|
|
3208
3283
|
* Indentation for binary operators
|
|
3209
|
-
* @see https://eslint.style/rules/
|
|
3284
|
+
* @see https://eslint.style/rules/indent-binary-ops
|
|
3210
3285
|
*/
|
|
3211
3286
|
'style/indent-binary-ops'?: Linter.RuleEntry<StyleIndentBinaryOps>
|
|
3212
3287
|
/**
|
|
3213
3288
|
* Enforce or disallow spaces inside of curly braces in JSX attributes and expressions
|
|
3214
|
-
* @see https://eslint.style/rules/jsx
|
|
3289
|
+
* @see https://eslint.style/rules/jsx-child-element-spacing
|
|
3215
3290
|
*/
|
|
3216
3291
|
'style/jsx-child-element-spacing'?: Linter.RuleEntry<[]>
|
|
3217
3292
|
/**
|
|
3218
3293
|
* Enforce closing bracket location in JSX
|
|
3219
|
-
* @see https://eslint.style/rules/jsx
|
|
3294
|
+
* @see https://eslint.style/rules/jsx-closing-bracket-location
|
|
3220
3295
|
*/
|
|
3221
3296
|
'style/jsx-closing-bracket-location'?: Linter.RuleEntry<StyleJsxClosingBracketLocation>
|
|
3222
3297
|
/**
|
|
3223
3298
|
* Enforce closing tag location for multiline JSX
|
|
3224
|
-
* @see https://eslint.style/rules/jsx
|
|
3299
|
+
* @see https://eslint.style/rules/jsx-closing-tag-location
|
|
3225
3300
|
*/
|
|
3226
3301
|
'style/jsx-closing-tag-location'?: Linter.RuleEntry<StyleJsxClosingTagLocation>
|
|
3227
3302
|
/**
|
|
3228
3303
|
* Disallow unnecessary JSX expressions when literals alone are sufficient or enforce JSX expressions on literals in JSX children or attributes
|
|
3229
|
-
* @see https://eslint.style/rules/jsx
|
|
3304
|
+
* @see https://eslint.style/rules/jsx-curly-brace-presence
|
|
3230
3305
|
*/
|
|
3231
3306
|
'style/jsx-curly-brace-presence'?: Linter.RuleEntry<StyleJsxCurlyBracePresence>
|
|
3232
3307
|
/**
|
|
3233
3308
|
* Enforce consistent linebreaks in curly braces in JSX attributes and expressions
|
|
3234
|
-
* @see https://eslint.style/rules/jsx
|
|
3309
|
+
* @see https://eslint.style/rules/jsx-curly-newline
|
|
3235
3310
|
*/
|
|
3236
3311
|
'style/jsx-curly-newline'?: Linter.RuleEntry<StyleJsxCurlyNewline>
|
|
3237
3312
|
/**
|
|
3238
3313
|
* Enforce or disallow spaces inside of curly braces in JSX attributes and expressions
|
|
3239
|
-
* @see https://eslint.style/rules/jsx
|
|
3314
|
+
* @see https://eslint.style/rules/jsx-curly-spacing
|
|
3240
3315
|
*/
|
|
3241
3316
|
'style/jsx-curly-spacing'?: Linter.RuleEntry<StyleJsxCurlySpacing>
|
|
3242
3317
|
/**
|
|
3243
3318
|
* Enforce or disallow spaces around equal signs in JSX attributes
|
|
3244
|
-
* @see https://eslint.style/rules/jsx
|
|
3319
|
+
* @see https://eslint.style/rules/jsx-equals-spacing
|
|
3245
3320
|
*/
|
|
3246
3321
|
'style/jsx-equals-spacing'?: Linter.RuleEntry<StyleJsxEqualsSpacing>
|
|
3247
3322
|
/**
|
|
3248
3323
|
* Enforce proper position of the first property in JSX
|
|
3249
|
-
* @see https://eslint.style/rules/jsx
|
|
3324
|
+
* @see https://eslint.style/rules/jsx-first-prop-new-line
|
|
3250
3325
|
*/
|
|
3251
3326
|
'style/jsx-first-prop-new-line'?: Linter.RuleEntry<StyleJsxFirstPropNewLine>
|
|
3252
3327
|
/**
|
|
3253
3328
|
* Enforce line breaks before and after JSX elements when they are used as arguments to a function.
|
|
3254
|
-
* @see https://eslint.style/rules/jsx
|
|
3329
|
+
* @see https://eslint.style/rules/jsx-function-call-newline
|
|
3255
3330
|
*/
|
|
3256
3331
|
'style/jsx-function-call-newline'?: Linter.RuleEntry<StyleJsxFunctionCallNewline>
|
|
3257
3332
|
/**
|
|
3258
3333
|
* Enforce JSX indentation. Deprecated, use `indent` rule instead.
|
|
3259
|
-
* @see https://eslint.style/rules/jsx
|
|
3334
|
+
* @see https://eslint.style/rules/jsx-indent
|
|
3260
3335
|
* @deprecated
|
|
3261
3336
|
*/
|
|
3262
3337
|
'style/jsx-indent'?: Linter.RuleEntry<StyleJsxIndent>
|
|
3263
3338
|
/**
|
|
3264
3339
|
* Enforce props indentation in JSX
|
|
3265
|
-
* @see https://eslint.style/rules/jsx
|
|
3340
|
+
* @see https://eslint.style/rules/jsx-indent-props
|
|
3266
3341
|
*/
|
|
3267
3342
|
'style/jsx-indent-props'?: Linter.RuleEntry<StyleJsxIndentProps>
|
|
3268
3343
|
/**
|
|
3269
3344
|
* Enforce maximum of props on a single line in JSX
|
|
3270
|
-
* @see https://eslint.style/rules/jsx
|
|
3345
|
+
* @see https://eslint.style/rules/jsx-max-props-per-line
|
|
3271
3346
|
*/
|
|
3272
3347
|
'style/jsx-max-props-per-line'?: Linter.RuleEntry<StyleJsxMaxPropsPerLine>
|
|
3273
3348
|
/**
|
|
3274
3349
|
* Require or prevent a new line after jsx elements and expressions.
|
|
3275
|
-
* @see https://eslint.style/rules/jsx
|
|
3350
|
+
* @see https://eslint.style/rules/jsx-newline
|
|
3276
3351
|
*/
|
|
3277
3352
|
'style/jsx-newline'?: Linter.RuleEntry<StyleJsxNewline>
|
|
3278
3353
|
/**
|
|
3279
3354
|
* Require one JSX element per line
|
|
3280
|
-
* @see https://eslint.style/rules/jsx
|
|
3355
|
+
* @see https://eslint.style/rules/jsx-one-expression-per-line
|
|
3281
3356
|
*/
|
|
3282
3357
|
'style/jsx-one-expression-per-line'?: Linter.RuleEntry<StyleJsxOneExpressionPerLine>
|
|
3283
3358
|
/**
|
|
3284
3359
|
* Enforce PascalCase for user-defined JSX components
|
|
3285
|
-
* @see https://eslint.style/rules/jsx
|
|
3360
|
+
* @see https://eslint.style/rules/jsx-pascal-case
|
|
3286
3361
|
*/
|
|
3287
3362
|
'style/jsx-pascal-case'?: Linter.RuleEntry<StyleJsxPascalCase>
|
|
3288
3363
|
/**
|
|
3289
3364
|
* Disallow multiple spaces between inline JSX props
|
|
3290
|
-
* @see https://eslint.style/rules/jsx
|
|
3365
|
+
* @see https://eslint.style/rules/jsx-props-no-multi-spaces
|
|
3291
3366
|
*/
|
|
3292
3367
|
'style/jsx-props-no-multi-spaces'?: Linter.RuleEntry<[]>
|
|
3293
3368
|
/**
|
|
3294
3369
|
* Enforce the consistent use of either double or single quotes in JSX attributes
|
|
3295
|
-
* @see https://eslint.style/rules/
|
|
3370
|
+
* @see https://eslint.style/rules/jsx-quotes
|
|
3296
3371
|
*/
|
|
3297
3372
|
'style/jsx-quotes'?: Linter.RuleEntry<StyleJsxQuotes>
|
|
3298
3373
|
/**
|
|
3299
3374
|
* Disallow extra closing tags for components without children
|
|
3300
|
-
* @see https://eslint.style/rules/jsx
|
|
3375
|
+
* @see https://eslint.style/rules/jsx-self-closing-comp
|
|
3301
3376
|
*/
|
|
3302
3377
|
'style/jsx-self-closing-comp'?: Linter.RuleEntry<StyleJsxSelfClosingComp>
|
|
3303
3378
|
/**
|
|
3304
3379
|
* Enforce props alphabetical sorting
|
|
3305
|
-
* @see https://eslint.style/rules/jsx
|
|
3380
|
+
* @see https://eslint.style/rules/jsx-sort-props
|
|
3306
3381
|
*/
|
|
3307
3382
|
'style/jsx-sort-props'?: Linter.RuleEntry<StyleJsxSortProps>
|
|
3308
3383
|
/**
|
|
3309
3384
|
* Enforce whitespace in and around the JSX opening and closing brackets
|
|
3310
|
-
* @see https://eslint.style/rules/jsx
|
|
3385
|
+
* @see https://eslint.style/rules/jsx-tag-spacing
|
|
3311
3386
|
*/
|
|
3312
3387
|
'style/jsx-tag-spacing'?: Linter.RuleEntry<StyleJsxTagSpacing>
|
|
3313
3388
|
/**
|
|
3314
3389
|
* Disallow missing parentheses around multiline JSX
|
|
3315
|
-
* @see https://eslint.style/rules/jsx
|
|
3390
|
+
* @see https://eslint.style/rules/jsx-wrap-multilines
|
|
3316
3391
|
*/
|
|
3317
3392
|
'style/jsx-wrap-multilines'?: Linter.RuleEntry<StyleJsxWrapMultilines>
|
|
3318
3393
|
/**
|
|
3319
3394
|
* Enforce consistent spacing between property names and type annotations in types and interfaces
|
|
3320
|
-
* @see https://eslint.style/rules/
|
|
3395
|
+
* @see https://eslint.style/rules/key-spacing
|
|
3321
3396
|
*/
|
|
3322
3397
|
'style/key-spacing'?: Linter.RuleEntry<StyleKeySpacing>
|
|
3323
3398
|
/**
|
|
3324
3399
|
* Enforce consistent spacing before and after keywords
|
|
3325
|
-
* @see https://eslint.style/rules/
|
|
3400
|
+
* @see https://eslint.style/rules/keyword-spacing
|
|
3326
3401
|
*/
|
|
3327
3402
|
'style/keyword-spacing'?: Linter.RuleEntry<StyleKeywordSpacing>
|
|
3328
3403
|
/**
|
|
3329
3404
|
* Enforce position of line comments
|
|
3330
|
-
* @see https://eslint.style/rules/
|
|
3405
|
+
* @see https://eslint.style/rules/line-comment-position
|
|
3331
3406
|
*/
|
|
3332
3407
|
'style/line-comment-position'?: Linter.RuleEntry<StyleLineCommentPosition>
|
|
3333
3408
|
/**
|
|
3334
3409
|
* Enforce consistent linebreak style
|
|
3335
|
-
* @see https://eslint.style/rules/
|
|
3410
|
+
* @see https://eslint.style/rules/linebreak-style
|
|
3336
3411
|
*/
|
|
3337
3412
|
'style/linebreak-style'?: Linter.RuleEntry<StyleLinebreakStyle>
|
|
3338
3413
|
/**
|
|
3339
3414
|
* Require empty lines around comments
|
|
3340
|
-
* @see https://eslint.style/rules/
|
|
3415
|
+
* @see https://eslint.style/rules/lines-around-comment
|
|
3341
3416
|
*/
|
|
3342
3417
|
'style/lines-around-comment'?: Linter.RuleEntry<StyleLinesAroundComment>
|
|
3343
3418
|
/**
|
|
3344
3419
|
* Require or disallow an empty line between class members
|
|
3345
|
-
* @see https://eslint.style/rules/
|
|
3420
|
+
* @see https://eslint.style/rules/lines-between-class-members
|
|
3346
3421
|
*/
|
|
3347
3422
|
'style/lines-between-class-members'?: Linter.RuleEntry<StyleLinesBetweenClassMembers>
|
|
3348
3423
|
/**
|
|
3349
3424
|
* Enforce a maximum line length
|
|
3350
|
-
* @see https://eslint.style/rules/
|
|
3425
|
+
* @see https://eslint.style/rules/max-len
|
|
3351
3426
|
*/
|
|
3352
3427
|
'style/max-len'?: Linter.RuleEntry<StyleMaxLen>
|
|
3353
3428
|
/**
|
|
3354
3429
|
* Enforce a maximum number of statements allowed per line
|
|
3355
|
-
* @see https://eslint.style/rules/
|
|
3430
|
+
* @see https://eslint.style/rules/max-statements-per-line
|
|
3356
3431
|
*/
|
|
3357
3432
|
'style/max-statements-per-line'?: Linter.RuleEntry<StyleMaxStatementsPerLine>
|
|
3358
3433
|
/**
|
|
3359
3434
|
* Require a specific member delimiter style for interfaces and type literals
|
|
3360
|
-
* @see https://eslint.style/rules/
|
|
3435
|
+
* @see https://eslint.style/rules/member-delimiter-style
|
|
3361
3436
|
*/
|
|
3362
3437
|
'style/member-delimiter-style'?: Linter.RuleEntry<StyleMemberDelimiterStyle>
|
|
3363
3438
|
/**
|
|
3364
3439
|
* Enforce a particular style for multiline comments
|
|
3365
|
-
* @see https://eslint.style/rules/
|
|
3440
|
+
* @see https://eslint.style/rules/multiline-comment-style
|
|
3366
3441
|
*/
|
|
3367
3442
|
'style/multiline-comment-style'?: Linter.RuleEntry<StyleMultilineCommentStyle>
|
|
3368
3443
|
/**
|
|
3369
3444
|
* Enforce newlines between operands of ternary expressions
|
|
3370
|
-
* @see https://eslint.style/rules/
|
|
3445
|
+
* @see https://eslint.style/rules/multiline-ternary
|
|
3371
3446
|
*/
|
|
3372
3447
|
'style/multiline-ternary'?: Linter.RuleEntry<StyleMultilineTernary>
|
|
3373
3448
|
/**
|
|
3374
3449
|
* Enforce or disallow parentheses when invoking a constructor with no arguments
|
|
3375
|
-
* @see https://eslint.style/rules/
|
|
3450
|
+
* @see https://eslint.style/rules/new-parens
|
|
3376
3451
|
*/
|
|
3377
3452
|
'style/new-parens'?: Linter.RuleEntry<StyleNewParens>
|
|
3378
3453
|
/**
|
|
3379
3454
|
* Require a newline after each call in a method chain
|
|
3380
|
-
* @see https://eslint.style/rules/
|
|
3455
|
+
* @see https://eslint.style/rules/newline-per-chained-call
|
|
3381
3456
|
*/
|
|
3382
3457
|
'style/newline-per-chained-call'?: Linter.RuleEntry<StyleNewlinePerChainedCall>
|
|
3383
3458
|
/**
|
|
3384
3459
|
* Disallow arrow functions where they could be confused with comparisons
|
|
3385
|
-
* @see https://eslint.style/rules/
|
|
3460
|
+
* @see https://eslint.style/rules/no-confusing-arrow
|
|
3386
3461
|
*/
|
|
3387
3462
|
'style/no-confusing-arrow'?: Linter.RuleEntry<StyleNoConfusingArrow>
|
|
3388
3463
|
/**
|
|
3389
3464
|
* Disallow unnecessary parentheses
|
|
3390
|
-
* @see https://eslint.style/rules/
|
|
3465
|
+
* @see https://eslint.style/rules/no-extra-parens
|
|
3391
3466
|
*/
|
|
3392
3467
|
'style/no-extra-parens'?: Linter.RuleEntry<StyleNoExtraParens>
|
|
3393
3468
|
/**
|
|
3394
3469
|
* Disallow unnecessary semicolons
|
|
3395
|
-
* @see https://eslint.style/rules/
|
|
3470
|
+
* @see https://eslint.style/rules/no-extra-semi
|
|
3396
3471
|
*/
|
|
3397
3472
|
'style/no-extra-semi'?: Linter.RuleEntry<[]>
|
|
3398
3473
|
/**
|
|
3399
3474
|
* Disallow leading or trailing decimal points in numeric literals
|
|
3400
|
-
* @see https://eslint.style/rules/
|
|
3475
|
+
* @see https://eslint.style/rules/no-floating-decimal
|
|
3401
3476
|
*/
|
|
3402
3477
|
'style/no-floating-decimal'?: Linter.RuleEntry<[]>
|
|
3403
3478
|
/**
|
|
3404
3479
|
* Disallow mixed binary operators
|
|
3405
|
-
* @see https://eslint.style/rules/
|
|
3480
|
+
* @see https://eslint.style/rules/no-mixed-operators
|
|
3406
3481
|
*/
|
|
3407
3482
|
'style/no-mixed-operators'?: Linter.RuleEntry<StyleNoMixedOperators>
|
|
3408
3483
|
/**
|
|
3409
3484
|
* Disallow mixed spaces and tabs for indentation
|
|
3410
|
-
* @see https://eslint.style/rules/
|
|
3485
|
+
* @see https://eslint.style/rules/no-mixed-spaces-and-tabs
|
|
3411
3486
|
*/
|
|
3412
3487
|
'style/no-mixed-spaces-and-tabs'?: Linter.RuleEntry<StyleNoMixedSpacesAndTabs>
|
|
3413
3488
|
/**
|
|
3414
3489
|
* Disallow multiple spaces
|
|
3415
|
-
* @see https://eslint.style/rules/
|
|
3490
|
+
* @see https://eslint.style/rules/no-multi-spaces
|
|
3416
3491
|
*/
|
|
3417
3492
|
'style/no-multi-spaces'?: Linter.RuleEntry<StyleNoMultiSpaces>
|
|
3418
3493
|
/**
|
|
3419
3494
|
* Disallow multiple empty lines
|
|
3420
|
-
* @see https://eslint.style/rules/
|
|
3495
|
+
* @see https://eslint.style/rules/no-multiple-empty-lines
|
|
3421
3496
|
*/
|
|
3422
3497
|
'style/no-multiple-empty-lines'?: Linter.RuleEntry<StyleNoMultipleEmptyLines>
|
|
3423
3498
|
/**
|
|
3424
3499
|
* Disallow all tabs
|
|
3425
|
-
* @see https://eslint.style/rules/
|
|
3500
|
+
* @see https://eslint.style/rules/no-tabs
|
|
3426
3501
|
*/
|
|
3427
3502
|
'style/no-tabs'?: Linter.RuleEntry<StyleNoTabs>
|
|
3428
3503
|
/**
|
|
3429
3504
|
* Disallow trailing whitespace at the end of lines
|
|
3430
|
-
* @see https://eslint.style/rules/
|
|
3505
|
+
* @see https://eslint.style/rules/no-trailing-spaces
|
|
3431
3506
|
*/
|
|
3432
3507
|
'style/no-trailing-spaces'?: Linter.RuleEntry<StyleNoTrailingSpaces>
|
|
3433
3508
|
/**
|
|
3434
3509
|
* Disallow whitespace before properties
|
|
3435
|
-
* @see https://eslint.style/rules/
|
|
3510
|
+
* @see https://eslint.style/rules/no-whitespace-before-property
|
|
3436
3511
|
*/
|
|
3437
3512
|
'style/no-whitespace-before-property'?: Linter.RuleEntry<[]>
|
|
3438
3513
|
/**
|
|
3439
3514
|
* Enforce the location of single-line statements
|
|
3440
|
-
* @see https://eslint.style/rules/
|
|
3515
|
+
* @see https://eslint.style/rules/nonblock-statement-body-position
|
|
3441
3516
|
*/
|
|
3442
3517
|
'style/nonblock-statement-body-position'?: Linter.RuleEntry<StyleNonblockStatementBodyPosition>
|
|
3443
3518
|
/**
|
|
3444
3519
|
* Enforce consistent line breaks after opening and before closing braces
|
|
3445
|
-
* @see https://eslint.style/rules/
|
|
3520
|
+
* @see https://eslint.style/rules/object-curly-newline
|
|
3446
3521
|
*/
|
|
3447
3522
|
'style/object-curly-newline'?: Linter.RuleEntry<StyleObjectCurlyNewline>
|
|
3448
3523
|
/**
|
|
3449
3524
|
* Enforce consistent spacing inside braces
|
|
3450
|
-
* @see https://eslint.style/rules/
|
|
3525
|
+
* @see https://eslint.style/rules/object-curly-spacing
|
|
3451
3526
|
*/
|
|
3452
3527
|
'style/object-curly-spacing'?: Linter.RuleEntry<StyleObjectCurlySpacing>
|
|
3453
3528
|
/**
|
|
3454
3529
|
* Enforce placing object properties on separate lines
|
|
3455
|
-
* @see https://eslint.style/rules/
|
|
3530
|
+
* @see https://eslint.style/rules/object-property-newline
|
|
3456
3531
|
*/
|
|
3457
3532
|
'style/object-property-newline'?: Linter.RuleEntry<StyleObjectPropertyNewline>
|
|
3458
3533
|
/**
|
|
3459
3534
|
* Require or disallow newlines around variable declarations
|
|
3460
|
-
* @see https://eslint.style/rules/
|
|
3535
|
+
* @see https://eslint.style/rules/one-var-declaration-per-line
|
|
3461
3536
|
*/
|
|
3462
3537
|
'style/one-var-declaration-per-line'?: Linter.RuleEntry<StyleOneVarDeclarationPerLine>
|
|
3463
3538
|
/**
|
|
3464
3539
|
* Enforce consistent linebreak style for operators
|
|
3465
|
-
* @see https://eslint.style/rules/
|
|
3540
|
+
* @see https://eslint.style/rules/operator-linebreak
|
|
3466
3541
|
*/
|
|
3467
3542
|
'style/operator-linebreak'?: Linter.RuleEntry<StyleOperatorLinebreak>
|
|
3468
3543
|
/**
|
|
3469
3544
|
* Require or disallow padding within blocks
|
|
3470
|
-
* @see https://eslint.style/rules/
|
|
3545
|
+
* @see https://eslint.style/rules/padded-blocks
|
|
3471
3546
|
*/
|
|
3472
3547
|
'style/padded-blocks'?: Linter.RuleEntry<StylePaddedBlocks>
|
|
3473
3548
|
/**
|
|
3474
3549
|
* Require or disallow padding lines between statements
|
|
3475
|
-
* @see https://eslint.style/rules/
|
|
3550
|
+
* @see https://eslint.style/rules/padding-line-between-statements
|
|
3476
3551
|
*/
|
|
3477
3552
|
'style/padding-line-between-statements'?: Linter.RuleEntry<StylePaddingLineBetweenStatements>
|
|
3478
3553
|
/**
|
|
3479
3554
|
* Require quotes around object literal, type literal, interfaces and enums property names
|
|
3480
|
-
* @see https://eslint.style/rules/
|
|
3555
|
+
* @see https://eslint.style/rules/quote-props
|
|
3481
3556
|
*/
|
|
3482
3557
|
'style/quote-props'?: Linter.RuleEntry<StyleQuoteProps>
|
|
3483
3558
|
/**
|
|
3484
3559
|
* Enforce the consistent use of either backticks, double, or single quotes
|
|
3485
|
-
* @see https://eslint.style/rules/
|
|
3560
|
+
* @see https://eslint.style/rules/quotes
|
|
3486
3561
|
*/
|
|
3487
3562
|
'style/quotes'?: Linter.RuleEntry<StyleQuotes>
|
|
3488
3563
|
/**
|
|
3489
3564
|
* Enforce spacing between rest and spread operators and their expressions
|
|
3490
|
-
* @see https://eslint.style/rules/
|
|
3565
|
+
* @see https://eslint.style/rules/rest-spread-spacing
|
|
3491
3566
|
*/
|
|
3492
3567
|
'style/rest-spread-spacing'?: Linter.RuleEntry<StyleRestSpreadSpacing>
|
|
3493
3568
|
/**
|
|
3494
3569
|
* Require or disallow semicolons instead of ASI
|
|
3495
|
-
* @see https://eslint.style/rules/
|
|
3570
|
+
* @see https://eslint.style/rules/semi
|
|
3496
3571
|
*/
|
|
3497
3572
|
'style/semi'?: Linter.RuleEntry<StyleSemi>
|
|
3498
3573
|
/**
|
|
3499
3574
|
* Enforce consistent spacing before and after semicolons
|
|
3500
|
-
* @see https://eslint.style/rules/
|
|
3575
|
+
* @see https://eslint.style/rules/semi-spacing
|
|
3501
3576
|
*/
|
|
3502
3577
|
'style/semi-spacing'?: Linter.RuleEntry<StyleSemiSpacing>
|
|
3503
3578
|
/**
|
|
3504
3579
|
* Enforce location of semicolons
|
|
3505
|
-
* @see https://eslint.style/rules/
|
|
3580
|
+
* @see https://eslint.style/rules/semi-style
|
|
3506
3581
|
*/
|
|
3507
3582
|
'style/semi-style'?: Linter.RuleEntry<StyleSemiStyle>
|
|
3508
3583
|
/**
|
|
3509
3584
|
* Enforce consistent spacing before blocks
|
|
3510
|
-
* @see https://eslint.style/rules/
|
|
3585
|
+
* @see https://eslint.style/rules/space-before-blocks
|
|
3511
3586
|
*/
|
|
3512
3587
|
'style/space-before-blocks'?: Linter.RuleEntry<StyleSpaceBeforeBlocks>
|
|
3513
3588
|
/**
|
|
3514
3589
|
* Enforce consistent spacing before function parenthesis
|
|
3515
|
-
* @see https://eslint.style/rules/
|
|
3590
|
+
* @see https://eslint.style/rules/space-before-function-paren
|
|
3516
3591
|
*/
|
|
3517
3592
|
'style/space-before-function-paren'?: Linter.RuleEntry<StyleSpaceBeforeFunctionParen>
|
|
3518
3593
|
/**
|
|
3519
3594
|
* Enforce consistent spacing inside parentheses
|
|
3520
|
-
* @see https://eslint.style/rules/
|
|
3595
|
+
* @see https://eslint.style/rules/space-in-parens
|
|
3521
3596
|
*/
|
|
3522
3597
|
'style/space-in-parens'?: Linter.RuleEntry<StyleSpaceInParens>
|
|
3523
3598
|
/**
|
|
3524
3599
|
* Require spacing around infix operators
|
|
3525
|
-
* @see https://eslint.style/rules/
|
|
3600
|
+
* @see https://eslint.style/rules/space-infix-ops
|
|
3526
3601
|
*/
|
|
3527
3602
|
'style/space-infix-ops'?: Linter.RuleEntry<StyleSpaceInfixOps>
|
|
3528
3603
|
/**
|
|
3529
3604
|
* Enforce consistent spacing before or after unary operators
|
|
3530
|
-
* @see https://eslint.style/rules/
|
|
3605
|
+
* @see https://eslint.style/rules/space-unary-ops
|
|
3531
3606
|
*/
|
|
3532
3607
|
'style/space-unary-ops'?: Linter.RuleEntry<StyleSpaceUnaryOps>
|
|
3533
3608
|
/**
|
|
3534
3609
|
* Enforce consistent spacing after the `//` or `/*` in a comment
|
|
3535
|
-
* @see https://eslint.style/rules/
|
|
3610
|
+
* @see https://eslint.style/rules/spaced-comment
|
|
3536
3611
|
*/
|
|
3537
3612
|
'style/spaced-comment'?: Linter.RuleEntry<StyleSpacedComment>
|
|
3538
3613
|
/**
|
|
3539
3614
|
* Enforce spacing around colons of switch statements
|
|
3540
|
-
* @see https://eslint.style/rules/
|
|
3615
|
+
* @see https://eslint.style/rules/switch-colon-spacing
|
|
3541
3616
|
*/
|
|
3542
3617
|
'style/switch-colon-spacing'?: Linter.RuleEntry<StyleSwitchColonSpacing>
|
|
3543
3618
|
/**
|
|
3544
3619
|
* Require or disallow spacing around embedded expressions of template strings
|
|
3545
|
-
* @see https://eslint.style/rules/
|
|
3620
|
+
* @see https://eslint.style/rules/template-curly-spacing
|
|
3546
3621
|
*/
|
|
3547
3622
|
'style/template-curly-spacing'?: Linter.RuleEntry<StyleTemplateCurlySpacing>
|
|
3548
3623
|
/**
|
|
3549
3624
|
* Require or disallow spacing between template tags and their literals
|
|
3550
|
-
* @see https://eslint.style/rules/
|
|
3625
|
+
* @see https://eslint.style/rules/template-tag-spacing
|
|
3551
3626
|
*/
|
|
3552
3627
|
'style/template-tag-spacing'?: Linter.RuleEntry<StyleTemplateTagSpacing>
|
|
3553
3628
|
/**
|
|
3554
3629
|
* Require consistent spacing around type annotations
|
|
3555
|
-
* @see https://eslint.style/rules/
|
|
3630
|
+
* @see https://eslint.style/rules/type-annotation-spacing
|
|
3556
3631
|
*/
|
|
3557
3632
|
'style/type-annotation-spacing'?: Linter.RuleEntry<StyleTypeAnnotationSpacing>
|
|
3558
3633
|
/**
|
|
3559
3634
|
* Enforces consistent spacing inside TypeScript type generics
|
|
3560
|
-
* @see https://eslint.style/rules/
|
|
3635
|
+
* @see https://eslint.style/rules/type-generic-spacing
|
|
3561
3636
|
*/
|
|
3562
3637
|
'style/type-generic-spacing'?: Linter.RuleEntry<[]>
|
|
3563
3638
|
/**
|
|
3564
3639
|
* Expect space before the type declaration in the named tuple
|
|
3565
|
-
* @see https://eslint.style/rules/
|
|
3640
|
+
* @see https://eslint.style/rules/type-named-tuple-spacing
|
|
3566
3641
|
*/
|
|
3567
3642
|
'style/type-named-tuple-spacing'?: Linter.RuleEntry<[]>
|
|
3568
3643
|
/**
|
|
3569
3644
|
* Require parentheses around immediate `function` invocations
|
|
3570
|
-
* @see https://eslint.style/rules/
|
|
3645
|
+
* @see https://eslint.style/rules/wrap-iife
|
|
3571
3646
|
*/
|
|
3572
3647
|
'style/wrap-iife'?: Linter.RuleEntry<StyleWrapIife>
|
|
3573
3648
|
/**
|
|
3574
3649
|
* Require parenthesis around regex literals
|
|
3575
|
-
* @see https://eslint.style/rules/
|
|
3650
|
+
* @see https://eslint.style/rules/wrap-regex
|
|
3576
3651
|
*/
|
|
3577
3652
|
'style/wrap-regex'?: Linter.RuleEntry<[]>
|
|
3578
3653
|
/**
|
|
3579
3654
|
* Require or disallow spacing around the `*` in `yield*` expressions
|
|
3580
|
-
* @see https://eslint.style/rules/
|
|
3655
|
+
* @see https://eslint.style/rules/yield-star-spacing
|
|
3581
3656
|
*/
|
|
3582
3657
|
'style/yield-star-spacing'?: Linter.RuleEntry<StyleYieldStarSpacing>
|
|
3583
3658
|
/**
|
|
@@ -4247,6 +4322,7 @@ interface RuleOptions {
|
|
|
4247
4322
|
/**
|
|
4248
4323
|
* Require type annotations in certain places
|
|
4249
4324
|
* @see https://typescript-eslint.io/rules/typedef
|
|
4325
|
+
* @deprecated
|
|
4250
4326
|
*/
|
|
4251
4327
|
'typescript/typedef'?: Linter.RuleEntry<TypescriptTypedef>
|
|
4252
4328
|
/**
|
|
@@ -4271,670 +4347,710 @@ interface RuleOptions {
|
|
|
4271
4347
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
|
|
4272
4348
|
/**
|
|
4273
4349
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
4274
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4350
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/better-regex.md
|
|
4275
4351
|
*/
|
|
4276
4352
|
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
|
|
4277
4353
|
/**
|
|
4278
4354
|
* Enforce a specific parameter name in catch clauses.
|
|
4279
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4355
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/catch-error-name.md
|
|
4280
4356
|
*/
|
|
4281
4357
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
|
|
4282
4358
|
/**
|
|
4283
4359
|
* Enforce consistent assertion style with `node:assert`.
|
|
4284
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4360
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-assert.md
|
|
4285
4361
|
*/
|
|
4286
4362
|
'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
|
|
4287
4363
|
/**
|
|
4288
4364
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
4289
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4365
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-date-clone.md
|
|
4290
4366
|
*/
|
|
4291
4367
|
'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
|
|
4292
4368
|
/**
|
|
4293
4369
|
* Use destructured variables over properties.
|
|
4294
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4370
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-destructuring.md
|
|
4295
4371
|
*/
|
|
4296
4372
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
|
|
4297
4373
|
/**
|
|
4298
4374
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
4299
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4375
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-empty-array-spread.md
|
|
4300
4376
|
*/
|
|
4301
4377
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
|
|
4302
4378
|
/**
|
|
4303
4379
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
4304
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4380
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-existence-index-check.md
|
|
4305
4381
|
*/
|
|
4306
4382
|
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
|
|
4307
4383
|
/**
|
|
4308
4384
|
* Move function definitions to the highest possible scope.
|
|
4309
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4385
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-function-scoping.md
|
|
4310
4386
|
*/
|
|
4311
4387
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
|
|
4312
4388
|
/**
|
|
4313
4389
|
* Enforce correct `Error` subclassing.
|
|
4314
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4390
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/custom-error-definition.md
|
|
4315
4391
|
*/
|
|
4316
4392
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
|
|
4317
4393
|
/**
|
|
4318
4394
|
* Enforce no spaces between braces.
|
|
4319
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4395
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/empty-brace-spaces.md
|
|
4320
4396
|
*/
|
|
4321
4397
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
|
|
4322
4398
|
/**
|
|
4323
4399
|
* Enforce passing a `message` value when creating a built-in error.
|
|
4324
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4400
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/error-message.md
|
|
4325
4401
|
*/
|
|
4326
4402
|
'unicorn/error-message'?: Linter.RuleEntry<[]>
|
|
4327
4403
|
/**
|
|
4328
4404
|
* Require escape sequences to use uppercase or lowercase values.
|
|
4329
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4405
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/escape-case.md
|
|
4330
4406
|
*/
|
|
4331
4407
|
'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>
|
|
4332
4408
|
/**
|
|
4333
4409
|
* Add expiration conditions to TODO comments.
|
|
4334
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4410
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/expiring-todo-comments.md
|
|
4335
4411
|
*/
|
|
4336
4412
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
|
|
4337
4413
|
/**
|
|
4338
4414
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
4339
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4415
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/explicit-length-check.md
|
|
4340
4416
|
*/
|
|
4341
4417
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
|
|
4342
4418
|
/**
|
|
4343
4419
|
* Enforce a case style for filenames.
|
|
4344
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4420
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/filename-case.md
|
|
4345
4421
|
*/
|
|
4346
4422
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
|
|
4347
4423
|
/**
|
|
4348
4424
|
* Enforce specific import styles per module.
|
|
4349
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4425
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/import-style.md
|
|
4350
4426
|
*/
|
|
4351
4427
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
|
|
4352
4428
|
/**
|
|
4353
4429
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
4354
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4430
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/new-for-builtins.md
|
|
4355
4431
|
*/
|
|
4356
4432
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
|
|
4357
4433
|
/**
|
|
4358
4434
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
4359
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4435
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-abusive-eslint-disable.md
|
|
4360
4436
|
*/
|
|
4361
4437
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
|
|
4362
4438
|
/**
|
|
4363
4439
|
* Disallow recursive access to `this` within getters and setters.
|
|
4364
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4440
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-accessor-recursion.md
|
|
4365
4441
|
*/
|
|
4366
4442
|
'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
|
|
4367
4443
|
/**
|
|
4368
4444
|
* Disallow anonymous functions and classes as the default export.
|
|
4369
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4445
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-anonymous-default-export.md
|
|
4370
4446
|
*/
|
|
4371
4447
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
|
|
4372
4448
|
/**
|
|
4373
4449
|
* Prevent passing a function reference directly to iterator methods.
|
|
4374
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4450
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-callback-reference.md
|
|
4375
4451
|
*/
|
|
4376
4452
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
|
|
4377
4453
|
/**
|
|
4378
4454
|
* Prefer `for…of` over the `forEach` method.
|
|
4379
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4455
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-for-each.md
|
|
4380
4456
|
*/
|
|
4381
4457
|
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
|
|
4382
4458
|
/**
|
|
4383
4459
|
* Disallow using the `this` argument in array methods.
|
|
4384
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4460
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-method-this-argument.md
|
|
4385
4461
|
*/
|
|
4386
4462
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
|
|
4387
4463
|
/**
|
|
4388
4464
|
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
4389
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4465
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/deprecated-rules.md#no-array-push-push
|
|
4390
4466
|
* @deprecated
|
|
4391
4467
|
*/
|
|
4392
4468
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>
|
|
4393
4469
|
/**
|
|
4394
4470
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
4395
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4471
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-reduce.md
|
|
4396
4472
|
*/
|
|
4397
4473
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
|
|
4474
|
+
/**
|
|
4475
|
+
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
4476
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-reverse.md
|
|
4477
|
+
*/
|
|
4478
|
+
'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>
|
|
4479
|
+
/**
|
|
4480
|
+
* Prefer `Array#toSorted()` over `Array#sort()`.
|
|
4481
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-sort.md
|
|
4482
|
+
*/
|
|
4483
|
+
'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>
|
|
4398
4484
|
/**
|
|
4399
4485
|
* Disallow member access from await expression.
|
|
4400
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4486
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-await-expression-member.md
|
|
4401
4487
|
*/
|
|
4402
4488
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
|
|
4403
4489
|
/**
|
|
4404
4490
|
* Disallow using `await` in `Promise` method parameters.
|
|
4405
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4491
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-await-in-promise-methods.md
|
|
4406
4492
|
*/
|
|
4407
4493
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
4408
4494
|
/**
|
|
4409
4495
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
4410
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4496
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-console-spaces.md
|
|
4411
4497
|
*/
|
|
4412
4498
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
|
|
4413
4499
|
/**
|
|
4414
4500
|
* Do not use `document.cookie` directly.
|
|
4415
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4501
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-document-cookie.md
|
|
4416
4502
|
*/
|
|
4417
4503
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
|
|
4418
4504
|
/**
|
|
4419
4505
|
* Disallow empty files.
|
|
4420
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4506
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-empty-file.md
|
|
4421
4507
|
*/
|
|
4422
4508
|
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
|
|
4423
4509
|
/**
|
|
4424
4510
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
4425
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4511
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-for-loop.md
|
|
4426
4512
|
*/
|
|
4427
4513
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
|
|
4428
4514
|
/**
|
|
4429
4515
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
4430
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4516
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-hex-escape.md
|
|
4431
4517
|
*/
|
|
4432
4518
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
|
|
4433
4519
|
/**
|
|
4434
4520
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
4435
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4521
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/deprecated-rules.md#no-instanceof-array
|
|
4436
4522
|
* @deprecated
|
|
4437
4523
|
*/
|
|
4438
4524
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
|
|
4439
4525
|
/**
|
|
4440
4526
|
* Disallow `instanceof` with built-in objects
|
|
4441
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4527
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-instanceof-builtins.md
|
|
4442
4528
|
*/
|
|
4443
4529
|
'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
|
|
4444
4530
|
/**
|
|
4445
4531
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
4446
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4532
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-invalid-fetch-options.md
|
|
4447
4533
|
*/
|
|
4448
4534
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
|
|
4449
4535
|
/**
|
|
4450
4536
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
4451
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4537
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-invalid-remove-event-listener.md
|
|
4452
4538
|
*/
|
|
4453
4539
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
|
|
4454
4540
|
/**
|
|
4455
4541
|
* Disallow identifiers starting with `new` or `class`.
|
|
4456
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4542
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-keyword-prefix.md
|
|
4457
4543
|
*/
|
|
4458
4544
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
|
|
4459
4545
|
/**
|
|
4460
4546
|
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
4461
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4547
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/deprecated-rules.md#no-length-as-slice-end
|
|
4462
4548
|
* @deprecated
|
|
4463
4549
|
*/
|
|
4464
4550
|
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
|
|
4465
4551
|
/**
|
|
4466
4552
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
4467
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4553
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-lonely-if.md
|
|
4468
4554
|
*/
|
|
4469
4555
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
|
|
4470
4556
|
/**
|
|
4471
4557
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
4472
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4558
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-magic-array-flat-depth.md
|
|
4473
4559
|
*/
|
|
4474
4560
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
|
|
4475
4561
|
/**
|
|
4476
4562
|
* Disallow named usage of default import and export.
|
|
4477
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4563
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-named-default.md
|
|
4478
4564
|
*/
|
|
4479
4565
|
'unicorn/no-named-default'?: Linter.RuleEntry<[]>
|
|
4480
4566
|
/**
|
|
4481
4567
|
* Disallow negated conditions.
|
|
4482
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4568
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-negated-condition.md
|
|
4483
4569
|
*/
|
|
4484
4570
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
|
|
4485
4571
|
/**
|
|
4486
4572
|
* Disallow negated expression in equality check.
|
|
4487
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4573
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-negation-in-equality-check.md
|
|
4488
4574
|
*/
|
|
4489
4575
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
|
|
4490
4576
|
/**
|
|
4491
4577
|
* Disallow nested ternary expressions.
|
|
4492
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4578
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-nested-ternary.md
|
|
4493
4579
|
*/
|
|
4494
4580
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
|
|
4495
4581
|
/**
|
|
4496
4582
|
* Disallow `new Array()`.
|
|
4497
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4583
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-new-array.md
|
|
4498
4584
|
*/
|
|
4499
4585
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>
|
|
4500
4586
|
/**
|
|
4501
4587
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
4502
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4588
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-new-buffer.md
|
|
4503
4589
|
*/
|
|
4504
4590
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
|
|
4505
4591
|
/**
|
|
4506
4592
|
* Disallow the use of the `null` literal.
|
|
4507
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4593
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-null.md
|
|
4508
4594
|
*/
|
|
4509
4595
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
|
|
4510
4596
|
/**
|
|
4511
4597
|
* Disallow the use of objects as default parameters.
|
|
4512
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4598
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-object-as-default-parameter.md
|
|
4513
4599
|
*/
|
|
4514
4600
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
|
|
4515
4601
|
/**
|
|
4516
4602
|
* Disallow `process.exit()`.
|
|
4517
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4603
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-process-exit.md
|
|
4518
4604
|
*/
|
|
4519
4605
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
|
|
4520
4606
|
/**
|
|
4521
4607
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
4522
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4608
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-single-promise-in-promise-methods.md
|
|
4523
4609
|
*/
|
|
4524
4610
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
4525
4611
|
/**
|
|
4526
4612
|
* Disallow classes that only have static members.
|
|
4527
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4613
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-static-only-class.md
|
|
4528
4614
|
*/
|
|
4529
4615
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
|
|
4530
4616
|
/**
|
|
4531
4617
|
* Disallow `then` property.
|
|
4532
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4618
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-thenable.md
|
|
4533
4619
|
*/
|
|
4534
4620
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>
|
|
4535
4621
|
/**
|
|
4536
4622
|
* Disallow assigning `this` to a variable.
|
|
4537
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4623
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-this-assignment.md
|
|
4538
4624
|
*/
|
|
4539
4625
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
|
|
4540
4626
|
/**
|
|
4541
4627
|
* Disallow comparing `undefined` using `typeof`.
|
|
4542
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4628
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-typeof-undefined.md
|
|
4543
4629
|
*/
|
|
4544
4630
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
|
|
4545
4631
|
/**
|
|
4546
4632
|
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
4547
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4633
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-array-flat-depth.md
|
|
4548
4634
|
*/
|
|
4549
4635
|
'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>
|
|
4550
4636
|
/**
|
|
4551
4637
|
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
4552
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4638
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-array-splice-count.md
|
|
4553
4639
|
*/
|
|
4554
4640
|
'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>
|
|
4555
4641
|
/**
|
|
4556
4642
|
* Disallow awaiting non-promise values.
|
|
4557
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4643
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-await.md
|
|
4558
4644
|
*/
|
|
4559
4645
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
|
|
4560
4646
|
/**
|
|
4561
4647
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
4562
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4648
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-polyfills.md
|
|
4563
4649
|
*/
|
|
4564
4650
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
|
|
4565
4651
|
/**
|
|
4566
4652
|
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
4567
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4653
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-slice-end.md
|
|
4568
4654
|
*/
|
|
4569
4655
|
'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>
|
|
4570
4656
|
/**
|
|
4571
4657
|
* Disallow unreadable array destructuring.
|
|
4572
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4658
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unreadable-array-destructuring.md
|
|
4573
4659
|
*/
|
|
4574
4660
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
|
|
4575
4661
|
/**
|
|
4576
4662
|
* Disallow unreadable IIFEs.
|
|
4577
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4663
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unreadable-iife.md
|
|
4578
4664
|
*/
|
|
4579
4665
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
|
|
4580
4666
|
/**
|
|
4581
4667
|
* Disallow unused object properties.
|
|
4582
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4668
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unused-properties.md
|
|
4583
4669
|
*/
|
|
4584
4670
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
|
|
4671
|
+
/**
|
|
4672
|
+
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
4673
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-error-capture-stack-trace.md
|
|
4674
|
+
*/
|
|
4675
|
+
'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>
|
|
4585
4676
|
/**
|
|
4586
4677
|
* Disallow useless fallback when spreading in object literals.
|
|
4587
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4678
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-fallback-in-spread.md
|
|
4588
4679
|
*/
|
|
4589
4680
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
|
|
4590
4681
|
/**
|
|
4591
4682
|
* Disallow useless array length check.
|
|
4592
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4683
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-length-check.md
|
|
4593
4684
|
*/
|
|
4594
4685
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
|
|
4595
4686
|
/**
|
|
4596
4687
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
4597
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4688
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-promise-resolve-reject.md
|
|
4598
4689
|
*/
|
|
4599
4690
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
|
|
4600
4691
|
/**
|
|
4601
4692
|
* Disallow unnecessary spread.
|
|
4602
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4693
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-spread.md
|
|
4603
4694
|
*/
|
|
4604
4695
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
|
|
4605
4696
|
/**
|
|
4606
4697
|
* Disallow useless case in switch statements.
|
|
4607
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4698
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-switch-case.md
|
|
4608
4699
|
*/
|
|
4609
4700
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
|
|
4610
4701
|
/**
|
|
4611
4702
|
* Disallow useless `undefined`.
|
|
4612
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4703
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-undefined.md
|
|
4613
4704
|
*/
|
|
4614
4705
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
|
|
4615
4706
|
/**
|
|
4616
4707
|
* Disallow number literals with zero fractions or dangling dots.
|
|
4617
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4708
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-zero-fractions.md
|
|
4618
4709
|
*/
|
|
4619
4710
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
|
|
4620
4711
|
/**
|
|
4621
4712
|
* Enforce proper case for numeric literals.
|
|
4622
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4713
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/number-literal-case.md
|
|
4623
4714
|
*/
|
|
4624
4715
|
'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>
|
|
4625
4716
|
/**
|
|
4626
4717
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
4627
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4718
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/numeric-separators-style.md
|
|
4628
4719
|
*/
|
|
4629
4720
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
|
|
4630
4721
|
/**
|
|
4631
4722
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
4632
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4723
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-add-event-listener.md
|
|
4633
4724
|
*/
|
|
4634
4725
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
|
|
4635
4726
|
/**
|
|
4636
4727
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
4637
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4728
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-find.md
|
|
4638
4729
|
*/
|
|
4639
4730
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
|
|
4640
4731
|
/**
|
|
4641
4732
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
4642
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4733
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-flat.md
|
|
4643
4734
|
*/
|
|
4644
4735
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
|
|
4645
4736
|
/**
|
|
4646
4737
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
4647
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4738
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-flat-map.md
|
|
4648
4739
|
*/
|
|
4649
4740
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
|
|
4650
4741
|
/**
|
|
4651
4742
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
4652
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4743
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-index-of.md
|
|
4653
4744
|
*/
|
|
4654
4745
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
|
|
4655
4746
|
/**
|
|
4656
4747
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
4657
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4748
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-some.md
|
|
4658
4749
|
*/
|
|
4659
4750
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
|
|
4660
4751
|
/**
|
|
4661
4752
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
4662
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4753
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-at.md
|
|
4663
4754
|
*/
|
|
4664
4755
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
|
|
4756
|
+
/**
|
|
4757
|
+
* Prefer `BigInt` literals over the constructor.
|
|
4758
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-bigint-literals.md
|
|
4759
|
+
*/
|
|
4760
|
+
'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>
|
|
4665
4761
|
/**
|
|
4666
4762
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
4667
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4763
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-blob-reading-methods.md
|
|
4668
4764
|
*/
|
|
4669
4765
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
|
|
4766
|
+
/**
|
|
4767
|
+
* Prefer class field declarations over `this` assignments in constructors.
|
|
4768
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-class-fields.md
|
|
4769
|
+
*/
|
|
4770
|
+
'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>
|
|
4771
|
+
/**
|
|
4772
|
+
* Prefer using `Element#classList.toggle()` to toggle class names.
|
|
4773
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-classlist-toggle.md
|
|
4774
|
+
*/
|
|
4775
|
+
'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>
|
|
4670
4776
|
/**
|
|
4671
4777
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
4672
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4778
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-code-point.md
|
|
4673
4779
|
*/
|
|
4674
4780
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
|
|
4675
4781
|
/**
|
|
4676
4782
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
4677
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4783
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-date-now.md
|
|
4678
4784
|
*/
|
|
4679
4785
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
|
|
4680
4786
|
/**
|
|
4681
4787
|
* Prefer default parameters over reassignment.
|
|
4682
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4788
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-default-parameters.md
|
|
4683
4789
|
*/
|
|
4684
4790
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
|
|
4685
4791
|
/**
|
|
4686
4792
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
4687
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4793
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-append.md
|
|
4688
4794
|
*/
|
|
4689
4795
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
|
|
4690
4796
|
/**
|
|
4691
4797
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
4692
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4798
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-dataset.md
|
|
4693
4799
|
*/
|
|
4694
4800
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
|
|
4695
4801
|
/**
|
|
4696
4802
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
4697
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4803
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-remove.md
|
|
4698
4804
|
*/
|
|
4699
4805
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
|
|
4700
4806
|
/**
|
|
4701
4807
|
* Prefer `.textContent` over `.innerText`.
|
|
4702
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4808
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-text-content.md
|
|
4703
4809
|
*/
|
|
4704
4810
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
|
|
4705
4811
|
/**
|
|
4706
4812
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
4707
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4813
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-event-target.md
|
|
4708
4814
|
*/
|
|
4709
4815
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
|
|
4710
4816
|
/**
|
|
4711
4817
|
* Prefer `export…from` when re-exporting.
|
|
4712
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4818
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-export-from.md
|
|
4713
4819
|
*/
|
|
4714
4820
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
|
|
4715
4821
|
/**
|
|
4716
4822
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
4717
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4823
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-global-this.md
|
|
4718
4824
|
*/
|
|
4719
4825
|
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
|
|
4720
4826
|
/**
|
|
4721
4827
|
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
4722
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4828
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-import-meta-properties.md
|
|
4723
4829
|
*/
|
|
4724
4830
|
'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>
|
|
4725
4831
|
/**
|
|
4726
4832
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
4727
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4833
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-includes.md
|
|
4728
4834
|
*/
|
|
4729
4835
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
|
|
4730
4836
|
/**
|
|
4731
4837
|
* Prefer reading a JSON file as a buffer.
|
|
4732
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4838
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-json-parse-buffer.md
|
|
4733
4839
|
*/
|
|
4734
4840
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
|
|
4735
4841
|
/**
|
|
4736
4842
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
4737
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4843
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-keyboard-event-key.md
|
|
4738
4844
|
*/
|
|
4739
4845
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
|
|
4740
4846
|
/**
|
|
4741
4847
|
* Prefer using a logical operator over a ternary.
|
|
4742
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4848
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-logical-operator-over-ternary.md
|
|
4743
4849
|
*/
|
|
4744
4850
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
|
|
4745
4851
|
/**
|
|
4746
4852
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
4747
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4853
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-math-min-max.md
|
|
4748
4854
|
*/
|
|
4749
4855
|
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
|
|
4750
4856
|
/**
|
|
4751
4857
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
4752
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4858
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-math-trunc.md
|
|
4753
4859
|
*/
|
|
4754
4860
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
|
|
4755
4861
|
/**
|
|
4756
4862
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
4757
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4863
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-modern-dom-apis.md
|
|
4758
4864
|
*/
|
|
4759
4865
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
|
|
4760
4866
|
/**
|
|
4761
4867
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
4762
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4868
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-modern-math-apis.md
|
|
4763
4869
|
*/
|
|
4764
4870
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
|
|
4765
4871
|
/**
|
|
4766
4872
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
4767
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4873
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-module.md
|
|
4768
4874
|
*/
|
|
4769
4875
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>
|
|
4770
4876
|
/**
|
|
4771
4877
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
4772
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4878
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-native-coercion-functions.md
|
|
4773
4879
|
*/
|
|
4774
4880
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
|
|
4775
4881
|
/**
|
|
4776
4882
|
* Prefer negative index over `.length - index` when possible.
|
|
4777
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4883
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-negative-index.md
|
|
4778
4884
|
*/
|
|
4779
4885
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
|
|
4780
4886
|
/**
|
|
4781
4887
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
4782
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4888
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-node-protocol.md
|
|
4783
4889
|
*/
|
|
4784
4890
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
|
|
4785
4891
|
/**
|
|
4786
4892
|
* Prefer `Number` static properties over global ones.
|
|
4787
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4893
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-number-properties.md
|
|
4788
4894
|
*/
|
|
4789
4895
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
|
|
4790
4896
|
/**
|
|
4791
4897
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
4792
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4898
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-object-from-entries.md
|
|
4793
4899
|
*/
|
|
4794
4900
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
|
|
4795
4901
|
/**
|
|
4796
4902
|
* Prefer omitting the `catch` binding parameter.
|
|
4797
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4903
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-optional-catch-binding.md
|
|
4798
4904
|
*/
|
|
4799
4905
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
|
|
4800
4906
|
/**
|
|
4801
4907
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
4802
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4908
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-prototype-methods.md
|
|
4803
4909
|
*/
|
|
4804
4910
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
|
|
4805
4911
|
/**
|
|
4806
4912
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
4807
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4913
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-query-selector.md
|
|
4808
4914
|
*/
|
|
4809
4915
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
|
|
4810
4916
|
/**
|
|
4811
4917
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
4812
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4918
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-reflect-apply.md
|
|
4813
4919
|
*/
|
|
4814
4920
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
|
|
4815
4921
|
/**
|
|
4816
4922
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
4817
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4923
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-regexp-test.md
|
|
4818
4924
|
*/
|
|
4819
4925
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
|
|
4820
4926
|
/**
|
|
4821
4927
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
4822
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4928
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-set-has.md
|
|
4823
4929
|
*/
|
|
4824
4930
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
|
|
4825
4931
|
/**
|
|
4826
4932
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
4827
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4933
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-set-size.md
|
|
4828
4934
|
*/
|
|
4829
4935
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
|
|
4830
4936
|
/**
|
|
4831
4937
|
* Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
4832
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4938
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-single-call.md
|
|
4833
4939
|
*/
|
|
4834
4940
|
'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>
|
|
4835
4941
|
/**
|
|
4836
4942
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
4837
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4943
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-spread.md
|
|
4838
4944
|
*/
|
|
4839
4945
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
|
|
4840
4946
|
/**
|
|
4841
4947
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
4842
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4948
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-raw.md
|
|
4843
4949
|
*/
|
|
4844
4950
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
|
|
4845
4951
|
/**
|
|
4846
4952
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
4847
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4953
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-replace-all.md
|
|
4848
4954
|
*/
|
|
4849
4955
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
|
|
4850
4956
|
/**
|
|
4851
4957
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
4852
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4958
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-slice.md
|
|
4853
4959
|
*/
|
|
4854
4960
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
|
|
4855
4961
|
/**
|
|
4856
4962
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
4857
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4963
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-starts-ends-with.md
|
|
4858
4964
|
*/
|
|
4859
4965
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
|
|
4860
4966
|
/**
|
|
4861
4967
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
4862
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4968
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-trim-start-end.md
|
|
4863
4969
|
*/
|
|
4864
4970
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
|
|
4865
4971
|
/**
|
|
4866
4972
|
* Prefer using `structuredClone` to create a deep clone.
|
|
4867
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4973
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-structured-clone.md
|
|
4868
4974
|
*/
|
|
4869
4975
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
|
|
4870
4976
|
/**
|
|
4871
4977
|
* Prefer `switch` over multiple `else-if`.
|
|
4872
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4978
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-switch.md
|
|
4873
4979
|
*/
|
|
4874
4980
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
|
|
4875
4981
|
/**
|
|
4876
4982
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
4877
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4983
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-ternary.md
|
|
4878
4984
|
*/
|
|
4879
4985
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
|
|
4880
4986
|
/**
|
|
4881
4987
|
* Prefer top-level await over top-level promises and async function calls.
|
|
4882
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4988
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-top-level-await.md
|
|
4883
4989
|
*/
|
|
4884
4990
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
|
|
4885
4991
|
/**
|
|
4886
4992
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
4887
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4993
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-type-error.md
|
|
4888
4994
|
*/
|
|
4889
4995
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
|
|
4890
4996
|
/**
|
|
4891
4997
|
* Prevent abbreviations.
|
|
4892
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4998
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prevent-abbreviations.md
|
|
4893
4999
|
*/
|
|
4894
5000
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
|
|
4895
5001
|
/**
|
|
4896
5002
|
* Enforce consistent relative URL style.
|
|
4897
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5003
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/relative-url-style.md
|
|
4898
5004
|
*/
|
|
4899
5005
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
|
|
4900
5006
|
/**
|
|
4901
5007
|
* Enforce using the separator argument with `Array#join()`.
|
|
4902
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5008
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-array-join-separator.md
|
|
4903
5009
|
*/
|
|
4904
5010
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
|
|
5011
|
+
/**
|
|
5012
|
+
* Require non-empty module attributes for imports and exports
|
|
5013
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-module-attributes.md
|
|
5014
|
+
*/
|
|
5015
|
+
'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>
|
|
5016
|
+
/**
|
|
5017
|
+
* Require non-empty specifier list in import and export statements.
|
|
5018
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-module-specifiers.md
|
|
5019
|
+
*/
|
|
5020
|
+
'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>
|
|
4905
5021
|
/**
|
|
4906
5022
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
4907
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5023
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-number-to-fixed-digits-argument.md
|
|
4908
5024
|
*/
|
|
4909
5025
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
|
|
4910
5026
|
/**
|
|
4911
5027
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
4912
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5028
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-post-message-target-origin.md
|
|
4913
5029
|
*/
|
|
4914
5030
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
|
|
4915
5031
|
/**
|
|
4916
5032
|
* Enforce better string content.
|
|
4917
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5033
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/string-content.md
|
|
4918
5034
|
*/
|
|
4919
5035
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
|
|
4920
5036
|
/**
|
|
4921
5037
|
* Enforce consistent brace style for `case` clauses.
|
|
4922
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5038
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/switch-case-braces.md
|
|
4923
5039
|
*/
|
|
4924
5040
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
|
|
4925
5041
|
/**
|
|
4926
5042
|
* Fix whitespace-insensitive template indentation.
|
|
4927
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5043
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/template-indent.md
|
|
4928
5044
|
*/
|
|
4929
5045
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
|
|
4930
5046
|
/**
|
|
4931
5047
|
* Enforce consistent case for text encoding identifiers.
|
|
4932
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5048
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/text-encoding-identifier-case.md
|
|
4933
5049
|
*/
|
|
4934
5050
|
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
|
|
4935
5051
|
/**
|
|
4936
5052
|
* Require `new` when creating an error.
|
|
4937
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5053
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/throw-new-error.md
|
|
4938
5054
|
*/
|
|
4939
5055
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
|
|
4940
5056
|
/**
|
|
@@ -4983,6 +5099,7 @@ type AccessorPairs = []|[{
|
|
|
4983
5099
|
getWithoutSet?: boolean
|
|
4984
5100
|
setWithoutGet?: boolean
|
|
4985
5101
|
enforceForClassMembers?: boolean
|
|
5102
|
+
enforceForTSTypes?: boolean
|
|
4986
5103
|
}]
|
|
4987
5104
|
// ----- array-bracket-newline -----
|
|
4988
5105
|
type ArrayBracketNewline = []|[(("always" | "never" | "consistent") | {
|
|
@@ -5170,6 +5287,7 @@ type _FuncNamesValue = ("always" | "as-needed" | "never")
|
|
|
5170
5287
|
// ----- func-style -----
|
|
5171
5288
|
type FuncStyle = []|[("declaration" | "expression")]|[("declaration" | "expression"), {
|
|
5172
5289
|
allowArrowFunctions?: boolean
|
|
5290
|
+
allowTypeAnnotation?: boolean
|
|
5173
5291
|
overrides?: {
|
|
5174
5292
|
namedExports?: ("declaration" | "expression" | "ignore")
|
|
5175
5293
|
}
|
|
@@ -5202,7 +5320,9 @@ type GetterReturn = []|[{
|
|
|
5202
5320
|
allowImplicit?: boolean
|
|
5203
5321
|
}]
|
|
5204
5322
|
// ----- grouped-accessor-pairs -----
|
|
5205
|
-
type GroupedAccessorPairs = []|[("anyOrder" | "getBeforeSet" | "setBeforeGet")]
|
|
5323
|
+
type GroupedAccessorPairs = []|[("anyOrder" | "getBeforeSet" | "setBeforeGet")]|[("anyOrder" | "getBeforeSet" | "setBeforeGet"), {
|
|
5324
|
+
enforceForTSTypes?: boolean
|
|
5325
|
+
}]
|
|
5206
5326
|
// ----- handle-callback-err -----
|
|
5207
5327
|
type HandleCallbackErr = []|[string]
|
|
5208
5328
|
// ----- id-blacklist -----
|
|
@@ -5292,6 +5412,14 @@ type ImportExtensions = ([]|[("always" | "ignorePackages" | "never")] | []|[("al
|
|
|
5292
5412
|
}
|
|
5293
5413
|
ignorePackages?: boolean
|
|
5294
5414
|
checkTypeImports?: boolean
|
|
5415
|
+
pathGroupOverrides?: {
|
|
5416
|
+
pattern: string
|
|
5417
|
+
patternOptions?: {
|
|
5418
|
+
[k: string]: unknown | undefined
|
|
5419
|
+
}
|
|
5420
|
+
action: ("enforce" | "ignore")
|
|
5421
|
+
}[]
|
|
5422
|
+
fix?: boolean
|
|
5295
5423
|
[k: string]: unknown | undefined
|
|
5296
5424
|
}] | []|[{
|
|
5297
5425
|
pattern?: {
|
|
@@ -5299,6 +5427,14 @@ type ImportExtensions = ([]|[("always" | "ignorePackages" | "never")] | []|[("al
|
|
|
5299
5427
|
}
|
|
5300
5428
|
ignorePackages?: boolean
|
|
5301
5429
|
checkTypeImports?: boolean
|
|
5430
|
+
pathGroupOverrides?: {
|
|
5431
|
+
pattern: string
|
|
5432
|
+
patternOptions?: {
|
|
5433
|
+
[k: string]: unknown | undefined
|
|
5434
|
+
}
|
|
5435
|
+
action: ("enforce" | "ignore")
|
|
5436
|
+
}[]
|
|
5437
|
+
fix?: boolean
|
|
5302
5438
|
[k: string]: unknown | undefined
|
|
5303
5439
|
}] | []|[("always" | "ignorePackages" | "never")]|[("always" | "ignorePackages" | "never"), {
|
|
5304
5440
|
[k: string]: ("always" | "ignorePackages" | "never")
|
|
@@ -5519,6 +5655,10 @@ type ImportOrder = []|[{
|
|
|
5519
5655
|
type ImportPreferDefaultExport = []|[{
|
|
5520
5656
|
target?: ("single" | "any")
|
|
5521
5657
|
}]
|
|
5658
|
+
// ----- import/prefer-namespace-import -----
|
|
5659
|
+
type ImportPreferNamespaceImport = []|[{
|
|
5660
|
+
patterns?: string[]
|
|
5661
|
+
}]
|
|
5522
5662
|
// ----- indent -----
|
|
5523
5663
|
type Indent = []|[("tab" | number)]|[("tab" | number), {
|
|
5524
5664
|
SwitchCase?: number
|
|
@@ -5715,6 +5855,10 @@ type JsonNoIrregularWhitespace = []|[{
|
|
|
5715
5855
|
skipRegExps?: boolean
|
|
5716
5856
|
skipJSXText?: boolean
|
|
5717
5857
|
}]
|
|
5858
|
+
// ----- json/no-useless-escape -----
|
|
5859
|
+
type JsonNoUselessEscape = []|[{
|
|
5860
|
+
allowRegexCharacters?: string[]
|
|
5861
|
+
}]
|
|
5718
5862
|
// ----- json/object-curly-newline -----
|
|
5719
5863
|
type JsonObjectCurlyNewline = []|[((("always" | "never") | {
|
|
5720
5864
|
multiline?: boolean
|
|
@@ -6237,9 +6381,55 @@ type LogicalAssignmentOperators = (([]|["always"]|["always", {
|
|
|
6237
6381
|
type MarkdownFencedCodeLanguage = []|[{
|
|
6238
6382
|
required?: string[]
|
|
6239
6383
|
}]
|
|
6384
|
+
// ----- markdown/heading-increment -----
|
|
6385
|
+
type MarkdownHeadingIncrement = []|[{
|
|
6386
|
+
frontmatterTitle?: string
|
|
6387
|
+
}]
|
|
6388
|
+
// ----- markdown/no-duplicate-definitions -----
|
|
6389
|
+
type MarkdownNoDuplicateDefinitions = []|[{
|
|
6390
|
+
allowDefinitions?: string[]
|
|
6391
|
+
allowFootnoteDefinitions?: string[]
|
|
6392
|
+
}]
|
|
6393
|
+
// ----- markdown/no-duplicate-headings -----
|
|
6394
|
+
type MarkdownNoDuplicateHeadings = []|[{
|
|
6395
|
+
checkSiblingsOnly?: boolean
|
|
6396
|
+
}]
|
|
6397
|
+
// ----- markdown/no-empty-definitions -----
|
|
6398
|
+
type MarkdownNoEmptyDefinitions = []|[{
|
|
6399
|
+
allowDefinitions?: string[]
|
|
6400
|
+
allowFootnoteDefinitions?: string[]
|
|
6401
|
+
checkFootnoteDefinitions?: boolean
|
|
6402
|
+
}]
|
|
6240
6403
|
// ----- markdown/no-html -----
|
|
6241
6404
|
type MarkdownNoHtml = []|[{
|
|
6242
6405
|
allowed?: string[]
|
|
6406
|
+
allowedIgnoreCase?: boolean
|
|
6407
|
+
}]
|
|
6408
|
+
// ----- markdown/no-missing-atx-heading-space -----
|
|
6409
|
+
type MarkdownNoMissingAtxHeadingSpace = []|[{
|
|
6410
|
+
checkClosedHeadings?: boolean
|
|
6411
|
+
}]
|
|
6412
|
+
// ----- markdown/no-missing-link-fragments -----
|
|
6413
|
+
type MarkdownNoMissingLinkFragments = []|[{
|
|
6414
|
+
ignoreCase?: boolean
|
|
6415
|
+
allowPattern?: string
|
|
6416
|
+
}]
|
|
6417
|
+
// ----- markdown/no-multiple-h1 -----
|
|
6418
|
+
type MarkdownNoMultipleH1 = []|[{
|
|
6419
|
+
frontmatterTitle?: string
|
|
6420
|
+
}]
|
|
6421
|
+
// ----- markdown/no-space-in-emphasis -----
|
|
6422
|
+
type MarkdownNoSpaceInEmphasis = []|[{
|
|
6423
|
+
checkStrikethrough?: boolean
|
|
6424
|
+
}]
|
|
6425
|
+
// ----- markdown/no-unused-definitions -----
|
|
6426
|
+
type MarkdownNoUnusedDefinitions = []|[{
|
|
6427
|
+
allowDefinitions?: string[]
|
|
6428
|
+
allowFootnoteDefinitions?: string[]
|
|
6429
|
+
}]
|
|
6430
|
+
// ----- markdown/table-column-count -----
|
|
6431
|
+
type MarkdownTableColumnCount = []|[{
|
|
6432
|
+
checkMissingCells?: boolean
|
|
6243
6433
|
}]
|
|
6244
6434
|
// ----- max-classes-per-file -----
|
|
6245
6435
|
type MaxClassesPerFile = []|[(number | {
|
|
@@ -6341,6 +6531,8 @@ type MaxNestedCallbacks = []|[(number | {
|
|
|
6341
6531
|
type MaxParams = []|[(number | {
|
|
6342
6532
|
maximum?: number
|
|
6343
6533
|
max?: number
|
|
6534
|
+
|
|
6535
|
+
countVoidThis?: boolean
|
|
6344
6536
|
})]
|
|
6345
6537
|
// ----- max-statements -----
|
|
6346
6538
|
type MaxStatements = []|[(number | {
|
|
@@ -6404,6 +6596,7 @@ type NoConstantCondition = []|[{
|
|
|
6404
6596
|
// ----- no-duplicate-imports -----
|
|
6405
6597
|
type NoDuplicateImports = []|[{
|
|
6406
6598
|
includeExports?: boolean
|
|
6599
|
+
allowSeparateTypeImports?: boolean
|
|
6407
6600
|
}]
|
|
6408
6601
|
// ----- no-else-return -----
|
|
6409
6602
|
type NoElseReturn = []|[{
|
|
@@ -6507,6 +6700,10 @@ type NoMagicNumbers = []|[{
|
|
|
6507
6700
|
ignoreArrayIndexes?: boolean
|
|
6508
6701
|
ignoreDefaultValues?: boolean
|
|
6509
6702
|
ignoreClassFieldInitialValues?: boolean
|
|
6703
|
+
ignoreEnums?: boolean
|
|
6704
|
+
ignoreNumericLiteralTypes?: boolean
|
|
6705
|
+
ignoreReadonlyClassProperties?: boolean
|
|
6706
|
+
ignoreTypeIndexes?: boolean
|
|
6510
6707
|
}]
|
|
6511
6708
|
// ----- no-misleading-character-class -----
|
|
6512
6709
|
type NoMisleadingCharacterClass = []|[{
|
|
@@ -6581,10 +6778,18 @@ type NoRestrictedExports = []|[({
|
|
|
6581
6778
|
}
|
|
6582
6779
|
})]
|
|
6583
6780
|
// ----- no-restricted-globals -----
|
|
6584
|
-
type NoRestrictedGlobals = (string | {
|
|
6781
|
+
type NoRestrictedGlobals = ((string | {
|
|
6585
6782
|
name: string
|
|
6586
6783
|
message?: string
|
|
6587
|
-
})[]
|
|
6784
|
+
})[] | []|[{
|
|
6785
|
+
|
|
6786
|
+
globals: (string | {
|
|
6787
|
+
name: string
|
|
6788
|
+
message?: string
|
|
6789
|
+
})[]
|
|
6790
|
+
checkGlobalObject?: boolean
|
|
6791
|
+
globalObjects?: string[]
|
|
6792
|
+
}])
|
|
6588
6793
|
// ----- no-restricted-imports -----
|
|
6589
6794
|
type NoRestrictedImports = ((string | {
|
|
6590
6795
|
name: string
|
|
@@ -6639,9 +6844,11 @@ type NoSequences = []|[{
|
|
|
6639
6844
|
// ----- no-shadow -----
|
|
6640
6845
|
type NoShadow = []|[{
|
|
6641
6846
|
builtinGlobals?: boolean
|
|
6642
|
-
hoist?: ("all" | "functions" | "never")
|
|
6847
|
+
hoist?: ("all" | "functions" | "never" | "types" | "functions-and-types")
|
|
6643
6848
|
allow?: string[]
|
|
6644
6849
|
ignoreOnInitialization?: boolean
|
|
6850
|
+
ignoreTypeValueShadow?: boolean
|
|
6851
|
+
ignoreFunctionTypeParameterNameValueShadow?: boolean
|
|
6645
6852
|
}]
|
|
6646
6853
|
// ----- no-shadow-restricted-names -----
|
|
6647
6854
|
type NoShadowRestrictedNames = []|[{
|
|
@@ -6711,6 +6918,7 @@ type NoUnusedVars = []|[(("all" | "local") | {
|
|
|
6711
6918
|
caughtErrorsIgnorePattern?: string
|
|
6712
6919
|
destructuredArrayIgnorePattern?: string
|
|
6713
6920
|
ignoreClassWithStaticInitBlock?: boolean
|
|
6921
|
+
ignoreUsingDeclarations?: boolean
|
|
6714
6922
|
reportUsedIgnorePattern?: boolean
|
|
6715
6923
|
})]
|
|
6716
6924
|
// ----- no-use-before-define -----
|
|
@@ -6719,11 +6927,18 @@ type NoUseBeforeDefine = []|[("nofunc" | {
|
|
|
6719
6927
|
classes?: boolean
|
|
6720
6928
|
variables?: boolean
|
|
6721
6929
|
allowNamedExports?: boolean
|
|
6930
|
+
enums?: boolean
|
|
6931
|
+
typedefs?: boolean
|
|
6932
|
+
ignoreTypeReferences?: boolean
|
|
6722
6933
|
})]
|
|
6723
6934
|
// ----- no-useless-computed-key -----
|
|
6724
6935
|
type NoUselessComputedKey = []|[{
|
|
6725
6936
|
enforceForClassMembers?: boolean
|
|
6726
6937
|
}]
|
|
6938
|
+
// ----- no-useless-escape -----
|
|
6939
|
+
type NoUselessEscape = []|[{
|
|
6940
|
+
allowRegexCharacters?: string[]
|
|
6941
|
+
}]
|
|
6727
6942
|
// ----- no-useless-rename -----
|
|
6728
6943
|
type NoUselessRename = []|[{
|
|
6729
6944
|
ignoreDestructuring?: boolean
|
|
@@ -6884,7 +7099,38 @@ type NodeNoRestrictedRequire = []|[(string | {
|
|
|
6884
7099
|
// ----- node/no-sync -----
|
|
6885
7100
|
type NodeNoSync = []|[{
|
|
6886
7101
|
allowAtRootLevel?: boolean
|
|
6887
|
-
ignores?: string
|
|
7102
|
+
ignores?: (string | {
|
|
7103
|
+
from?: "file"
|
|
7104
|
+
path?: string
|
|
7105
|
+
name?: string[]
|
|
7106
|
+
} | {
|
|
7107
|
+
from?: "lib"
|
|
7108
|
+
name?: string[]
|
|
7109
|
+
} | {
|
|
7110
|
+
from?: "package"
|
|
7111
|
+
package?: string
|
|
7112
|
+
name?: string[]
|
|
7113
|
+
})[]
|
|
7114
|
+
}]
|
|
7115
|
+
// ----- node/no-top-level-await -----
|
|
7116
|
+
type NodeNoTopLevelAwait = []|[{
|
|
7117
|
+
ignoreBin?: boolean
|
|
7118
|
+
convertPath?: ({
|
|
7119
|
+
|
|
7120
|
+
[k: string]: [string, string]
|
|
7121
|
+
} | [{
|
|
7122
|
+
|
|
7123
|
+
include: [string, ...(string)[]]
|
|
7124
|
+
exclude?: string[]
|
|
7125
|
+
|
|
7126
|
+
replace: [string, string]
|
|
7127
|
+
}, ...({
|
|
7128
|
+
|
|
7129
|
+
include: [string, ...(string)[]]
|
|
7130
|
+
exclude?: string[]
|
|
7131
|
+
|
|
7132
|
+
replace: [string, string]
|
|
7133
|
+
})[]])
|
|
6888
7134
|
}]
|
|
6889
7135
|
// ----- node/no-unpublished-bin -----
|
|
6890
7136
|
type NodeNoUnpublishedBin = []|[{
|
|
@@ -7079,6 +7325,8 @@ type OneVar = []|[(("always" | "never" | "consecutive") | {
|
|
|
7079
7325
|
var?: ("always" | "never" | "consecutive")
|
|
7080
7326
|
let?: ("always" | "never" | "consecutive")
|
|
7081
7327
|
const?: ("always" | "never" | "consecutive")
|
|
7328
|
+
using?: ("always" | "never" | "consecutive")
|
|
7329
|
+
awaitUsing?: ("always" | "never" | "consecutive")
|
|
7082
7330
|
} | {
|
|
7083
7331
|
initialized?: ("always" | "never" | "consecutive")
|
|
7084
7332
|
uninitialized?: ("always" | "never" | "consecutive")
|
|
@@ -7138,8 +7386,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
7138
7386
|
groupKind?: ("mixed" | "literals-first" | "spreads-first")
|
|
7139
7387
|
|
|
7140
7388
|
customGroups?: ({
|
|
7141
|
-
|
|
7142
|
-
newlinesInside?: ("always" | "never")
|
|
7389
|
+
newlinesInside?: (("always" | "never") | number)
|
|
7143
7390
|
|
|
7144
7391
|
fallbackSort?: {
|
|
7145
7392
|
|
|
@@ -7170,8 +7417,7 @@ type PerfectionistSortArrayIncludes = {
|
|
|
7170
7417
|
} | string))
|
|
7171
7418
|
}[]
|
|
7172
7419
|
} | {
|
|
7173
|
-
|
|
7174
|
-
newlinesInside?: ("always" | "never")
|
|
7420
|
+
newlinesInside?: (("always" | "never") | number)
|
|
7175
7421
|
|
|
7176
7422
|
fallbackSort?: {
|
|
7177
7423
|
|
|
@@ -7254,12 +7500,12 @@ type PerfectionistSortArrayIncludes = {
|
|
|
7254
7500
|
})
|
|
7255
7501
|
|
|
7256
7502
|
partitionByNewLine?: boolean
|
|
7257
|
-
|
|
7258
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
7503
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
7259
7504
|
|
|
7260
7505
|
groups?: (string | string[] | {
|
|
7506
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
7261
7507
|
|
|
7262
|
-
|
|
7508
|
+
commentAbove?: string
|
|
7263
7509
|
})[]
|
|
7264
7510
|
}[]
|
|
7265
7511
|
// ----- perfectionist/sort-classes -----
|
|
@@ -7285,8 +7531,7 @@ type PerfectionistSortClasses = []|[{
|
|
|
7285
7531
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
7286
7532
|
|
|
7287
7533
|
customGroups?: ({
|
|
7288
|
-
|
|
7289
|
-
newlinesInside?: ("always" | "never")
|
|
7534
|
+
newlinesInside?: (("always" | "never") | number)
|
|
7290
7535
|
|
|
7291
7536
|
fallbackSort?: {
|
|
7292
7537
|
|
|
@@ -7343,8 +7588,7 @@ type PerfectionistSortClasses = []|[{
|
|
|
7343
7588
|
} | string))
|
|
7344
7589
|
}[]
|
|
7345
7590
|
} | {
|
|
7346
|
-
|
|
7347
|
-
newlinesInside?: ("always" | "never")
|
|
7591
|
+
newlinesInside?: (("always" | "never") | number)
|
|
7348
7592
|
|
|
7349
7593
|
fallbackSort?: {
|
|
7350
7594
|
|
|
@@ -7450,12 +7694,12 @@ type PerfectionistSortClasses = []|[{
|
|
|
7450
7694
|
})
|
|
7451
7695
|
|
|
7452
7696
|
partitionByNewLine?: boolean
|
|
7453
|
-
|
|
7454
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
7697
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
7455
7698
|
|
|
7456
7699
|
groups?: (string | string[] | {
|
|
7700
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
7457
7701
|
|
|
7458
|
-
|
|
7702
|
+
commentAbove?: string
|
|
7459
7703
|
})[]
|
|
7460
7704
|
}]
|
|
7461
7705
|
// ----- perfectionist/sort-decorators -----
|
|
@@ -7532,8 +7776,9 @@ type PerfectionistSortDecorators = []|[{
|
|
|
7532
7776
|
}
|
|
7533
7777
|
|
|
7534
7778
|
groups?: (string | string[] | {
|
|
7779
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
7535
7780
|
|
|
7536
|
-
|
|
7781
|
+
commentAbove?: string
|
|
7537
7782
|
})[]
|
|
7538
7783
|
}]
|
|
7539
7784
|
// ----- perfectionist/sort-enums -----
|
|
@@ -7560,8 +7805,7 @@ type PerfectionistSortEnums = []|[{
|
|
|
7560
7805
|
customGroups?: ({
|
|
7561
7806
|
[k: string]: (string | string[]) | undefined
|
|
7562
7807
|
} | ({
|
|
7563
|
-
|
|
7564
|
-
newlinesInside?: ("always" | "never")
|
|
7808
|
+
newlinesInside?: (("always" | "never") | number)
|
|
7565
7809
|
|
|
7566
7810
|
fallbackSort?: {
|
|
7567
7811
|
|
|
@@ -7602,8 +7846,7 @@ type PerfectionistSortEnums = []|[{
|
|
|
7602
7846
|
} | string))
|
|
7603
7847
|
}[]
|
|
7604
7848
|
} | {
|
|
7605
|
-
|
|
7606
|
-
newlinesInside?: ("always" | "never")
|
|
7849
|
+
newlinesInside?: (("always" | "never") | number)
|
|
7607
7850
|
|
|
7608
7851
|
fallbackSort?: {
|
|
7609
7852
|
|
|
@@ -7685,12 +7928,12 @@ type PerfectionistSortEnums = []|[{
|
|
|
7685
7928
|
})
|
|
7686
7929
|
|
|
7687
7930
|
partitionByNewLine?: boolean
|
|
7688
|
-
|
|
7689
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
7931
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
7690
7932
|
|
|
7691
7933
|
groups?: (string | string[] | {
|
|
7934
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
7692
7935
|
|
|
7693
|
-
|
|
7936
|
+
commentAbove?: string
|
|
7694
7937
|
})[]
|
|
7695
7938
|
}]
|
|
7696
7939
|
// ----- perfectionist/sort-exports -----
|
|
@@ -7718,8 +7961,7 @@ type PerfectionistSortExports = {
|
|
|
7718
7961
|
groupKind?: ("mixed" | "values-first" | "types-first")
|
|
7719
7962
|
|
|
7720
7963
|
customGroups?: ({
|
|
7721
|
-
|
|
7722
|
-
newlinesInside?: ("always" | "never")
|
|
7964
|
+
newlinesInside?: (("always" | "never") | number)
|
|
7723
7965
|
|
|
7724
7966
|
fallbackSort?: {
|
|
7725
7967
|
|
|
@@ -7752,8 +7994,7 @@ type PerfectionistSortExports = {
|
|
|
7752
7994
|
} | string))
|
|
7753
7995
|
}[]
|
|
7754
7996
|
} | {
|
|
7755
|
-
|
|
7756
|
-
newlinesInside?: ("always" | "never")
|
|
7997
|
+
newlinesInside?: (("always" | "never") | number)
|
|
7757
7998
|
|
|
7758
7999
|
fallbackSort?: {
|
|
7759
8000
|
|
|
@@ -7823,12 +8064,12 @@ type PerfectionistSortExports = {
|
|
|
7823
8064
|
})
|
|
7824
8065
|
|
|
7825
8066
|
partitionByNewLine?: boolean
|
|
7826
|
-
|
|
7827
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
8067
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
7828
8068
|
|
|
7829
8069
|
groups?: (string | string[] | {
|
|
8070
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
7830
8071
|
|
|
7831
|
-
|
|
8072
|
+
commentAbove?: string
|
|
7832
8073
|
})[]
|
|
7833
8074
|
}[]
|
|
7834
8075
|
// ----- perfectionist/sort-heritage-clauses -----
|
|
@@ -7858,8 +8099,9 @@ type PerfectionistSortHeritageClauses = []|[{
|
|
|
7858
8099
|
}
|
|
7859
8100
|
|
|
7860
8101
|
groups?: (string | string[] | {
|
|
8102
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
7861
8103
|
|
|
7862
|
-
|
|
8104
|
+
commentAbove?: string
|
|
7863
8105
|
})[]
|
|
7864
8106
|
}]
|
|
7865
8107
|
// ----- perfectionist/sort-imports -----
|
|
@@ -7893,8 +8135,7 @@ type PerfectionistSortImports = {
|
|
|
7893
8135
|
[k: string]: (string | string[]) | undefined
|
|
7894
8136
|
}
|
|
7895
8137
|
} | ({
|
|
7896
|
-
|
|
7897
|
-
newlinesInside?: ("always" | "never")
|
|
8138
|
+
newlinesInside?: (("always" | "never") | number)
|
|
7898
8139
|
|
|
7899
8140
|
fallbackSort?: {
|
|
7900
8141
|
|
|
@@ -7939,8 +8180,7 @@ type PerfectionistSortImports = {
|
|
|
7939
8180
|
} | string))
|
|
7940
8181
|
}[]
|
|
7941
8182
|
} | {
|
|
7942
|
-
|
|
7943
|
-
newlinesInside?: ("always" | "never")
|
|
8183
|
+
newlinesInside?: (("always" | "never") | number)
|
|
7944
8184
|
|
|
7945
8185
|
fallbackSort?: {
|
|
7946
8186
|
|
|
@@ -7983,6 +8223,12 @@ type PerfectionistSortImports = {
|
|
|
7983
8223
|
flags?: string
|
|
7984
8224
|
} | string))
|
|
7985
8225
|
})[])
|
|
8226
|
+
tsconfig?: {
|
|
8227
|
+
|
|
8228
|
+
rootDir: string
|
|
8229
|
+
|
|
8230
|
+
filename?: string
|
|
8231
|
+
}
|
|
7986
8232
|
|
|
7987
8233
|
maxLineLength?: number
|
|
7988
8234
|
|
|
@@ -8030,8 +8276,7 @@ type PerfectionistSortImports = {
|
|
|
8030
8276
|
})
|
|
8031
8277
|
|
|
8032
8278
|
partitionByNewLine?: boolean
|
|
8033
|
-
|
|
8034
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
8279
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
8035
8280
|
|
|
8036
8281
|
internalPattern?: (({
|
|
8037
8282
|
|
|
@@ -8046,8 +8291,9 @@ type PerfectionistSortImports = {
|
|
|
8046
8291
|
} | string))
|
|
8047
8292
|
|
|
8048
8293
|
groups?: (string | string[] | {
|
|
8294
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
8049
8295
|
|
|
8050
|
-
|
|
8296
|
+
commentAbove?: string
|
|
8051
8297
|
})[]
|
|
8052
8298
|
}[]
|
|
8053
8299
|
// ----- perfectionist/sort-interfaces -----
|
|
@@ -8075,8 +8321,7 @@ type PerfectionistSortInterfaces = {
|
|
|
8075
8321
|
customGroups?: ({
|
|
8076
8322
|
[k: string]: (string | string[]) | undefined
|
|
8077
8323
|
} | ({
|
|
8078
|
-
|
|
8079
|
-
newlinesInside?: ("always" | "never")
|
|
8324
|
+
newlinesInside?: (("always" | "never") | number)
|
|
8080
8325
|
|
|
8081
8326
|
fallbackSort?: {
|
|
8082
8327
|
|
|
@@ -8123,8 +8368,7 @@ type PerfectionistSortInterfaces = {
|
|
|
8123
8368
|
sortBy?: ("name" | "value")
|
|
8124
8369
|
}[]
|
|
8125
8370
|
} | {
|
|
8126
|
-
|
|
8127
|
-
newlinesInside?: ("always" | "never")
|
|
8371
|
+
newlinesInside?: (("always" | "never") | number)
|
|
8128
8372
|
|
|
8129
8373
|
fallbackSort?: {
|
|
8130
8374
|
|
|
@@ -8237,8 +8481,7 @@ type PerfectionistSortInterfaces = {
|
|
|
8237
8481
|
})
|
|
8238
8482
|
|
|
8239
8483
|
partitionByNewLine?: boolean
|
|
8240
|
-
|
|
8241
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
8484
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
8242
8485
|
|
|
8243
8486
|
ignorePattern?: (({
|
|
8244
8487
|
|
|
@@ -8254,8 +8497,9 @@ type PerfectionistSortInterfaces = {
|
|
|
8254
8497
|
sortBy?: ("name" | "value")
|
|
8255
8498
|
|
|
8256
8499
|
groups?: (string | string[] | {
|
|
8500
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
8257
8501
|
|
|
8258
|
-
|
|
8502
|
+
commentAbove?: string
|
|
8259
8503
|
})[]
|
|
8260
8504
|
}[]
|
|
8261
8505
|
// ----- perfectionist/sort-intersection-types -----
|
|
@@ -8281,8 +8525,7 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
8281
8525
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
8282
8526
|
|
|
8283
8527
|
customGroups?: ({
|
|
8284
|
-
|
|
8285
|
-
newlinesInside?: ("always" | "never")
|
|
8528
|
+
newlinesInside?: (("always" | "never") | number)
|
|
8286
8529
|
|
|
8287
8530
|
fallbackSort?: {
|
|
8288
8531
|
|
|
@@ -8313,8 +8556,7 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
8313
8556
|
} | string))
|
|
8314
8557
|
}[]
|
|
8315
8558
|
} | {
|
|
8316
|
-
|
|
8317
|
-
newlinesInside?: ("always" | "never")
|
|
8559
|
+
newlinesInside?: (("always" | "never") | number)
|
|
8318
8560
|
|
|
8319
8561
|
fallbackSort?: {
|
|
8320
8562
|
|
|
@@ -8382,12 +8624,12 @@ type PerfectionistSortIntersectionTypes = {
|
|
|
8382
8624
|
})
|
|
8383
8625
|
|
|
8384
8626
|
partitionByNewLine?: boolean
|
|
8385
|
-
|
|
8386
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
8627
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
8387
8628
|
|
|
8388
8629
|
groups?: (string | string[] | {
|
|
8630
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
8389
8631
|
|
|
8390
|
-
|
|
8632
|
+
commentAbove?: string
|
|
8391
8633
|
})[]
|
|
8392
8634
|
}[]
|
|
8393
8635
|
// ----- perfectionist/sort-jsx-props -----
|
|
@@ -8414,8 +8656,7 @@ type PerfectionistSortJsxProps = {
|
|
|
8414
8656
|
customGroups?: ({
|
|
8415
8657
|
[k: string]: (string | string[]) | undefined
|
|
8416
8658
|
} | ({
|
|
8417
|
-
|
|
8418
|
-
newlinesInside?: ("always" | "never")
|
|
8659
|
+
newlinesInside?: (("always" | "never") | number)
|
|
8419
8660
|
|
|
8420
8661
|
fallbackSort?: {
|
|
8421
8662
|
|
|
@@ -8460,8 +8701,7 @@ type PerfectionistSortJsxProps = {
|
|
|
8460
8701
|
} | string))
|
|
8461
8702
|
}[]
|
|
8462
8703
|
} | {
|
|
8463
|
-
|
|
8464
|
-
newlinesInside?: ("always" | "never")
|
|
8704
|
+
newlinesInside?: (("always" | "never") | number)
|
|
8465
8705
|
|
|
8466
8706
|
fallbackSort?: {
|
|
8467
8707
|
|
|
@@ -8533,8 +8773,7 @@ type PerfectionistSortJsxProps = {
|
|
|
8533
8773
|
}
|
|
8534
8774
|
|
|
8535
8775
|
partitionByNewLine?: boolean
|
|
8536
|
-
|
|
8537
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
8776
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
8538
8777
|
|
|
8539
8778
|
ignorePattern?: (({
|
|
8540
8779
|
|
|
@@ -8549,8 +8788,9 @@ type PerfectionistSortJsxProps = {
|
|
|
8549
8788
|
} | string))
|
|
8550
8789
|
|
|
8551
8790
|
groups?: (string | string[] | {
|
|
8791
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
8552
8792
|
|
|
8553
|
-
|
|
8793
|
+
commentAbove?: string
|
|
8554
8794
|
})[]
|
|
8555
8795
|
}[]
|
|
8556
8796
|
// ----- perfectionist/sort-maps -----
|
|
@@ -8576,8 +8816,7 @@ type PerfectionistSortMaps = {
|
|
|
8576
8816
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
8577
8817
|
|
|
8578
8818
|
customGroups?: ({
|
|
8579
|
-
|
|
8580
|
-
newlinesInside?: ("always" | "never")
|
|
8819
|
+
newlinesInside?: (("always" | "never") | number)
|
|
8581
8820
|
|
|
8582
8821
|
fallbackSort?: {
|
|
8583
8822
|
|
|
@@ -8606,8 +8845,7 @@ type PerfectionistSortMaps = {
|
|
|
8606
8845
|
} | string))
|
|
8607
8846
|
}[]
|
|
8608
8847
|
} | {
|
|
8609
|
-
|
|
8610
|
-
newlinesInside?: ("always" | "never")
|
|
8848
|
+
newlinesInside?: (("always" | "never") | number)
|
|
8611
8849
|
|
|
8612
8850
|
fallbackSort?: {
|
|
8613
8851
|
|
|
@@ -8688,12 +8926,12 @@ type PerfectionistSortMaps = {
|
|
|
8688
8926
|
})
|
|
8689
8927
|
|
|
8690
8928
|
partitionByNewLine?: boolean
|
|
8691
|
-
|
|
8692
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
8929
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
8693
8930
|
|
|
8694
8931
|
groups?: (string | string[] | {
|
|
8932
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
8695
8933
|
|
|
8696
|
-
|
|
8934
|
+
commentAbove?: string
|
|
8697
8935
|
})[]
|
|
8698
8936
|
}[]
|
|
8699
8937
|
// ----- perfectionist/sort-modules -----
|
|
@@ -8719,8 +8957,7 @@ type PerfectionistSortModules = []|[{
|
|
|
8719
8957
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
8720
8958
|
|
|
8721
8959
|
customGroups?: ({
|
|
8722
|
-
|
|
8723
|
-
newlinesInside?: ("always" | "never")
|
|
8960
|
+
newlinesInside?: (("always" | "never") | number)
|
|
8724
8961
|
|
|
8725
8962
|
fallbackSort?: {
|
|
8726
8963
|
|
|
@@ -8765,8 +9002,7 @@ type PerfectionistSortModules = []|[{
|
|
|
8765
9002
|
} | string))
|
|
8766
9003
|
}[]
|
|
8767
9004
|
} | {
|
|
8768
|
-
|
|
8769
|
-
newlinesInside?: ("always" | "never")
|
|
9005
|
+
newlinesInside?: (("always" | "never") | number)
|
|
8770
9006
|
|
|
8771
9007
|
fallbackSort?: {
|
|
8772
9008
|
|
|
@@ -8848,12 +9084,12 @@ type PerfectionistSortModules = []|[{
|
|
|
8848
9084
|
})
|
|
8849
9085
|
|
|
8850
9086
|
partitionByNewLine?: boolean
|
|
8851
|
-
|
|
8852
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
9087
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
8853
9088
|
|
|
8854
9089
|
groups?: (string | string[] | {
|
|
9090
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
8855
9091
|
|
|
8856
|
-
|
|
9092
|
+
commentAbove?: string
|
|
8857
9093
|
})[]
|
|
8858
9094
|
}]
|
|
8859
9095
|
// ----- perfectionist/sort-named-exports -----
|
|
@@ -8883,8 +9119,7 @@ type PerfectionistSortNamedExports = {
|
|
|
8883
9119
|
ignoreAlias?: boolean
|
|
8884
9120
|
|
|
8885
9121
|
customGroups?: ({
|
|
8886
|
-
|
|
8887
|
-
newlinesInside?: ("always" | "never")
|
|
9122
|
+
newlinesInside?: (("always" | "never") | number)
|
|
8888
9123
|
|
|
8889
9124
|
fallbackSort?: {
|
|
8890
9125
|
|
|
@@ -8917,8 +9152,7 @@ type PerfectionistSortNamedExports = {
|
|
|
8917
9152
|
} | string))
|
|
8918
9153
|
}[]
|
|
8919
9154
|
} | {
|
|
8920
|
-
|
|
8921
|
-
newlinesInside?: ("always" | "never")
|
|
9155
|
+
newlinesInside?: (("always" | "never") | number)
|
|
8922
9156
|
|
|
8923
9157
|
fallbackSort?: {
|
|
8924
9158
|
|
|
@@ -8988,12 +9222,12 @@ type PerfectionistSortNamedExports = {
|
|
|
8988
9222
|
})
|
|
8989
9223
|
|
|
8990
9224
|
partitionByNewLine?: boolean
|
|
8991
|
-
|
|
8992
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
9225
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
8993
9226
|
|
|
8994
9227
|
groups?: (string | string[] | {
|
|
9228
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
8995
9229
|
|
|
8996
|
-
|
|
9230
|
+
commentAbove?: string
|
|
8997
9231
|
})[]
|
|
8998
9232
|
}[]
|
|
8999
9233
|
// ----- perfectionist/sort-named-imports -----
|
|
@@ -9023,8 +9257,7 @@ type PerfectionistSortNamedImports = {
|
|
|
9023
9257
|
ignoreAlias?: boolean
|
|
9024
9258
|
|
|
9025
9259
|
customGroups?: ({
|
|
9026
|
-
|
|
9027
|
-
newlinesInside?: ("always" | "never")
|
|
9260
|
+
newlinesInside?: (("always" | "never") | number)
|
|
9028
9261
|
|
|
9029
9262
|
fallbackSort?: {
|
|
9030
9263
|
|
|
@@ -9057,8 +9290,7 @@ type PerfectionistSortNamedImports = {
|
|
|
9057
9290
|
} | string))
|
|
9058
9291
|
}[]
|
|
9059
9292
|
} | {
|
|
9060
|
-
|
|
9061
|
-
newlinesInside?: ("always" | "never")
|
|
9293
|
+
newlinesInside?: (("always" | "never") | number)
|
|
9062
9294
|
|
|
9063
9295
|
fallbackSort?: {
|
|
9064
9296
|
|
|
@@ -9128,12 +9360,12 @@ type PerfectionistSortNamedImports = {
|
|
|
9128
9360
|
})
|
|
9129
9361
|
|
|
9130
9362
|
partitionByNewLine?: boolean
|
|
9131
|
-
|
|
9132
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
9363
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
9133
9364
|
|
|
9134
9365
|
groups?: (string | string[] | {
|
|
9366
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
9135
9367
|
|
|
9136
|
-
|
|
9368
|
+
commentAbove?: string
|
|
9137
9369
|
})[]
|
|
9138
9370
|
}[]
|
|
9139
9371
|
// ----- perfectionist/sort-object-types -----
|
|
@@ -9161,8 +9393,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
9161
9393
|
customGroups?: ({
|
|
9162
9394
|
[k: string]: (string | string[]) | undefined
|
|
9163
9395
|
} | ({
|
|
9164
|
-
|
|
9165
|
-
newlinesInside?: ("always" | "never")
|
|
9396
|
+
newlinesInside?: (("always" | "never") | number)
|
|
9166
9397
|
|
|
9167
9398
|
fallbackSort?: {
|
|
9168
9399
|
|
|
@@ -9209,8 +9440,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
9209
9440
|
sortBy?: ("name" | "value")
|
|
9210
9441
|
}[]
|
|
9211
9442
|
} | {
|
|
9212
|
-
|
|
9213
|
-
newlinesInside?: ("always" | "never")
|
|
9443
|
+
newlinesInside?: (("always" | "never") | number)
|
|
9214
9444
|
|
|
9215
9445
|
fallbackSort?: {
|
|
9216
9446
|
|
|
@@ -9323,8 +9553,7 @@ type PerfectionistSortObjectTypes = {
|
|
|
9323
9553
|
})
|
|
9324
9554
|
|
|
9325
9555
|
partitionByNewLine?: boolean
|
|
9326
|
-
|
|
9327
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
9556
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
9328
9557
|
|
|
9329
9558
|
ignorePattern?: (({
|
|
9330
9559
|
|
|
@@ -9340,8 +9569,9 @@ type PerfectionistSortObjectTypes = {
|
|
|
9340
9569
|
sortBy?: ("name" | "value")
|
|
9341
9570
|
|
|
9342
9571
|
groups?: (string | string[] | {
|
|
9572
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
9343
9573
|
|
|
9344
|
-
|
|
9574
|
+
commentAbove?: string
|
|
9345
9575
|
})[]
|
|
9346
9576
|
}[]
|
|
9347
9577
|
// ----- perfectionist/sort-objects -----
|
|
@@ -9373,8 +9603,7 @@ type PerfectionistSortObjects = {
|
|
|
9373
9603
|
customGroups?: ({
|
|
9374
9604
|
[k: string]: (string | string[]) | undefined
|
|
9375
9605
|
} | ({
|
|
9376
|
-
|
|
9377
|
-
newlinesInside?: ("always" | "never")
|
|
9606
|
+
newlinesInside?: (("always" | "never") | number)
|
|
9378
9607
|
|
|
9379
9608
|
fallbackSort?: {
|
|
9380
9609
|
|
|
@@ -9419,8 +9648,7 @@ type PerfectionistSortObjects = {
|
|
|
9419
9648
|
} | string))
|
|
9420
9649
|
}[]
|
|
9421
9650
|
} | {
|
|
9422
|
-
|
|
9423
|
-
newlinesInside?: ("always" | "never")
|
|
9651
|
+
newlinesInside?: (("always" | "never") | number)
|
|
9424
9652
|
|
|
9425
9653
|
fallbackSort?: {
|
|
9426
9654
|
|
|
@@ -9535,8 +9763,7 @@ type PerfectionistSortObjects = {
|
|
|
9535
9763
|
})
|
|
9536
9764
|
|
|
9537
9765
|
partitionByNewLine?: boolean
|
|
9538
|
-
|
|
9539
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
9766
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
9540
9767
|
|
|
9541
9768
|
ignorePattern?: (({
|
|
9542
9769
|
|
|
@@ -9551,8 +9778,9 @@ type PerfectionistSortObjects = {
|
|
|
9551
9778
|
} | string))
|
|
9552
9779
|
|
|
9553
9780
|
groups?: (string | string[] | {
|
|
9781
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
9554
9782
|
|
|
9555
|
-
|
|
9783
|
+
commentAbove?: string
|
|
9556
9784
|
})[]
|
|
9557
9785
|
}[]
|
|
9558
9786
|
// ----- perfectionist/sort-sets -----
|
|
@@ -9580,8 +9808,7 @@ type PerfectionistSortSets = {
|
|
|
9580
9808
|
groupKind?: ("mixed" | "literals-first" | "spreads-first")
|
|
9581
9809
|
|
|
9582
9810
|
customGroups?: ({
|
|
9583
|
-
|
|
9584
|
-
newlinesInside?: ("always" | "never")
|
|
9811
|
+
newlinesInside?: (("always" | "never") | number)
|
|
9585
9812
|
|
|
9586
9813
|
fallbackSort?: {
|
|
9587
9814
|
|
|
@@ -9612,8 +9839,7 @@ type PerfectionistSortSets = {
|
|
|
9612
9839
|
} | string))
|
|
9613
9840
|
}[]
|
|
9614
9841
|
} | {
|
|
9615
|
-
|
|
9616
|
-
newlinesInside?: ("always" | "never")
|
|
9842
|
+
newlinesInside?: (("always" | "never") | number)
|
|
9617
9843
|
|
|
9618
9844
|
fallbackSort?: {
|
|
9619
9845
|
|
|
@@ -9696,12 +9922,12 @@ type PerfectionistSortSets = {
|
|
|
9696
9922
|
})
|
|
9697
9923
|
|
|
9698
9924
|
partitionByNewLine?: boolean
|
|
9699
|
-
|
|
9700
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
9925
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
9701
9926
|
|
|
9702
9927
|
groups?: (string | string[] | {
|
|
9928
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
9703
9929
|
|
|
9704
|
-
|
|
9930
|
+
commentAbove?: string
|
|
9705
9931
|
})[]
|
|
9706
9932
|
}[]
|
|
9707
9933
|
// ----- perfectionist/sort-switch-case -----
|
|
@@ -9749,8 +9975,7 @@ type PerfectionistSortUnionTypes = {
|
|
|
9749
9975
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9750
9976
|
|
|
9751
9977
|
customGroups?: ({
|
|
9752
|
-
|
|
9753
|
-
newlinesInside?: ("always" | "never")
|
|
9978
|
+
newlinesInside?: (("always" | "never") | number)
|
|
9754
9979
|
|
|
9755
9980
|
fallbackSort?: {
|
|
9756
9981
|
|
|
@@ -9781,8 +10006,7 @@ type PerfectionistSortUnionTypes = {
|
|
|
9781
10006
|
} | string))
|
|
9782
10007
|
}[]
|
|
9783
10008
|
} | {
|
|
9784
|
-
|
|
9785
|
-
newlinesInside?: ("always" | "never")
|
|
10009
|
+
newlinesInside?: (("always" | "never") | number)
|
|
9786
10010
|
|
|
9787
10011
|
fallbackSort?: {
|
|
9788
10012
|
|
|
@@ -9850,12 +10074,12 @@ type PerfectionistSortUnionTypes = {
|
|
|
9850
10074
|
})
|
|
9851
10075
|
|
|
9852
10076
|
partitionByNewLine?: boolean
|
|
9853
|
-
|
|
9854
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10077
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
9855
10078
|
|
|
9856
10079
|
groups?: (string | string[] | {
|
|
10080
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
9857
10081
|
|
|
9858
|
-
|
|
10082
|
+
commentAbove?: string
|
|
9859
10083
|
})[]
|
|
9860
10084
|
}[]
|
|
9861
10085
|
// ----- perfectionist/sort-variable-declarations -----
|
|
@@ -9881,8 +10105,7 @@ type PerfectionistSortVariableDeclarations = []|[{
|
|
|
9881
10105
|
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
9882
10106
|
|
|
9883
10107
|
customGroups?: ({
|
|
9884
|
-
|
|
9885
|
-
newlinesInside?: ("always" | "never")
|
|
10108
|
+
newlinesInside?: (("always" | "never") | number)
|
|
9886
10109
|
|
|
9887
10110
|
fallbackSort?: {
|
|
9888
10111
|
|
|
@@ -9913,8 +10136,7 @@ type PerfectionistSortVariableDeclarations = []|[{
|
|
|
9913
10136
|
} | string))
|
|
9914
10137
|
}[]
|
|
9915
10138
|
} | {
|
|
9916
|
-
|
|
9917
|
-
newlinesInside?: ("always" | "never")
|
|
10139
|
+
newlinesInside?: (("always" | "never") | number)
|
|
9918
10140
|
|
|
9919
10141
|
fallbackSort?: {
|
|
9920
10142
|
|
|
@@ -9982,12 +10204,12 @@ type PerfectionistSortVariableDeclarations = []|[{
|
|
|
9982
10204
|
})
|
|
9983
10205
|
|
|
9984
10206
|
partitionByNewLine?: boolean
|
|
9985
|
-
|
|
9986
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
10207
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
9987
10208
|
|
|
9988
10209
|
groups?: (string | string[] | {
|
|
10210
|
+
newlinesBetween?: (("ignore" | "always" | "never") | number)
|
|
9989
10211
|
|
|
9990
|
-
|
|
10212
|
+
commentAbove?: string
|
|
9991
10213
|
})[]
|
|
9992
10214
|
}]
|
|
9993
10215
|
// ----- prefer-arrow-callback -----
|
|
@@ -10040,6 +10262,11 @@ type PreferReflect = []|[{
|
|
|
10040
10262
|
type PreferRegexLiterals = []|[{
|
|
10041
10263
|
disallowRedundantWrapping?: boolean
|
|
10042
10264
|
}]
|
|
10265
|
+
// ----- preserve-caught-error -----
|
|
10266
|
+
type PreserveCaughtError = []|[{
|
|
10267
|
+
|
|
10268
|
+
requireCatchParameter?: boolean
|
|
10269
|
+
}]
|
|
10043
10270
|
// ----- quote-props -----
|
|
10044
10271
|
type QuoteProps = ([]|[("always" | "as-needed" | "consistent" | "consistent-as-needed")] | []|[("always" | "as-needed" | "consistent" | "consistent-as-needed")]|[("always" | "as-needed" | "consistent" | "consistent-as-needed"), {
|
|
10045
10272
|
keywords?: boolean
|
|
@@ -10786,16 +11013,6 @@ type StyleCurlyNewline = []|[(("always" | "never") | {
|
|
|
10786
11013
|
minElements?: number
|
|
10787
11014
|
consistent?: boolean
|
|
10788
11015
|
})
|
|
10789
|
-
TSEnumBody?: (("always" | "never") | {
|
|
10790
|
-
multiline?: boolean
|
|
10791
|
-
minElements?: number
|
|
10792
|
-
consistent?: boolean
|
|
10793
|
-
})
|
|
10794
|
-
TSInterfaceBody?: (("always" | "never") | {
|
|
10795
|
-
multiline?: boolean
|
|
10796
|
-
minElements?: number
|
|
10797
|
-
consistent?: boolean
|
|
10798
|
-
})
|
|
10799
11016
|
TSModuleBlock?: (("always" | "never") | {
|
|
10800
11017
|
multiline?: boolean
|
|
10801
11018
|
minElements?: number
|
|
@@ -10809,14 +11026,6 @@ type StyleCurlyNewline = []|[(("always" | "never") | {
|
|
|
10809
11026
|
type StyleDotLocation = []|[("object" | "property")]
|
|
10810
11027
|
// ----- style/eol-last -----
|
|
10811
11028
|
type StyleEolLast = []|[("always" | "never" | "unix" | "windows")]
|
|
10812
|
-
// ----- style/func-call-spacing -----
|
|
10813
|
-
type StyleFuncCallSpacing = ([]|["never"] | []|["always"]|["always", {
|
|
10814
|
-
allowNewlines?: boolean
|
|
10815
|
-
optionalChain?: {
|
|
10816
|
-
before?: boolean
|
|
10817
|
-
after?: boolean
|
|
10818
|
-
}
|
|
10819
|
-
}])
|
|
10820
11029
|
// ----- style/function-call-argument-newline -----
|
|
10821
11030
|
type StyleFunctionCallArgumentNewline = []|[("always" | "never" | "consistent")]
|
|
10822
11031
|
// ----- style/function-call-spacing -----
|
|
@@ -10857,16 +11066,19 @@ type StyleIndent = []|[("tab" | number)]|[("tab" | number), {
|
|
|
10857
11066
|
var?: (number | ("first" | "off"))
|
|
10858
11067
|
let?: (number | ("first" | "off"))
|
|
10859
11068
|
const?: (number | ("first" | "off"))
|
|
11069
|
+
using?: (number | ("first" | "off"))
|
|
10860
11070
|
})
|
|
10861
11071
|
outerIIFEBody?: (number | "off")
|
|
10862
11072
|
MemberExpression?: (number | "off")
|
|
10863
11073
|
FunctionDeclaration?: {
|
|
10864
11074
|
parameters?: (number | ("first" | "off"))
|
|
10865
11075
|
body?: number
|
|
11076
|
+
returnType?: number
|
|
10866
11077
|
}
|
|
10867
11078
|
FunctionExpression?: {
|
|
10868
11079
|
parameters?: (number | ("first" | "off"))
|
|
10869
11080
|
body?: number
|
|
11081
|
+
returnType?: number
|
|
10870
11082
|
}
|
|
10871
11083
|
StaticBlock?: {
|
|
10872
11084
|
body?: number
|
|
@@ -10907,31 +11119,52 @@ type StyleJsxCurlyNewline = []|[(("consistent" | "never") | {
|
|
|
10907
11119
|
multiline?: ("consistent" | "require" | "forbid")
|
|
10908
11120
|
})]
|
|
10909
11121
|
// ----- style/jsx-curly-spacing -----
|
|
10910
|
-
type StyleJsxCurlySpacing = []|[(
|
|
10911
|
-
|
|
10912
|
-
children?: _StyleJsxCurlySpacingBasicConfigOrBoolean
|
|
10913
|
-
[k: string]: unknown | undefined
|
|
10914
|
-
}) | ("always" | "never"))]|[((_StyleJsxCurlySpacing_BasicConfig & {
|
|
10915
|
-
attributes?: _StyleJsxCurlySpacingBasicConfigOrBoolean
|
|
10916
|
-
children?: _StyleJsxCurlySpacingBasicConfigOrBoolean
|
|
10917
|
-
[k: string]: unknown | undefined
|
|
10918
|
-
}) | ("always" | "never")), {
|
|
11122
|
+
type StyleJsxCurlySpacing = []|[({
|
|
11123
|
+
when?: ("always" | "never")
|
|
10919
11124
|
allowMultiline?: boolean
|
|
10920
11125
|
spacing?: {
|
|
10921
11126
|
objectLiterals?: ("always" | "never")
|
|
10922
|
-
[k: string]: unknown | undefined
|
|
10923
11127
|
}
|
|
10924
|
-
|
|
10925
|
-
|
|
10926
|
-
|
|
11128
|
+
attributes?: ({
|
|
11129
|
+
when?: ("always" | "never")
|
|
11130
|
+
allowMultiline?: boolean
|
|
11131
|
+
spacing?: {
|
|
11132
|
+
objectLiterals?: ("always" | "never")
|
|
11133
|
+
}
|
|
11134
|
+
} | boolean)
|
|
11135
|
+
children?: ({
|
|
11136
|
+
when?: ("always" | "never")
|
|
11137
|
+
allowMultiline?: boolean
|
|
11138
|
+
spacing?: {
|
|
11139
|
+
objectLiterals?: ("always" | "never")
|
|
11140
|
+
}
|
|
11141
|
+
} | boolean)
|
|
11142
|
+
} | ("always" | "never"))]|[({
|
|
10927
11143
|
when?: ("always" | "never")
|
|
10928
11144
|
allowMultiline?: boolean
|
|
10929
11145
|
spacing?: {
|
|
10930
11146
|
objectLiterals?: ("always" | "never")
|
|
10931
|
-
[k: string]: unknown | undefined
|
|
10932
11147
|
}
|
|
10933
|
-
|
|
10934
|
-
|
|
11148
|
+
attributes?: ({
|
|
11149
|
+
when?: ("always" | "never")
|
|
11150
|
+
allowMultiline?: boolean
|
|
11151
|
+
spacing?: {
|
|
11152
|
+
objectLiterals?: ("always" | "never")
|
|
11153
|
+
}
|
|
11154
|
+
} | boolean)
|
|
11155
|
+
children?: ({
|
|
11156
|
+
when?: ("always" | "never")
|
|
11157
|
+
allowMultiline?: boolean
|
|
11158
|
+
spacing?: {
|
|
11159
|
+
objectLiterals?: ("always" | "never")
|
|
11160
|
+
}
|
|
11161
|
+
} | boolean)
|
|
11162
|
+
} | ("always" | "never")), {
|
|
11163
|
+
allowMultiline?: boolean
|
|
11164
|
+
spacing?: {
|
|
11165
|
+
objectLiterals?: ("always" | "never")
|
|
11166
|
+
}
|
|
11167
|
+
}]
|
|
10935
11168
|
// ----- style/jsx-equals-spacing -----
|
|
10936
11169
|
type StyleJsxEqualsSpacing = []|[("always" | "never")]
|
|
10937
11170
|
// ----- style/jsx-first-prop-new-line -----
|
|
@@ -10947,14 +11180,12 @@ type StyleJsxIndent = []|[("tab" | number)]|[("tab" | number), {
|
|
|
10947
11180
|
type StyleJsxIndentProps = []|[(("tab" | "first") | number | {
|
|
10948
11181
|
indentMode?: (("tab" | "first") | number)
|
|
10949
11182
|
ignoreTernaryOperator?: boolean
|
|
10950
|
-
[k: string]: unknown | undefined
|
|
10951
11183
|
})]
|
|
10952
11184
|
// ----- style/jsx-max-props-per-line -----
|
|
10953
11185
|
type StyleJsxMaxPropsPerLine = []|[({
|
|
10954
11186
|
maximum?: {
|
|
10955
11187
|
single?: number
|
|
10956
11188
|
multi?: number
|
|
10957
|
-
[k: string]: unknown | undefined
|
|
10958
11189
|
}
|
|
10959
11190
|
} | {
|
|
10960
11191
|
maximum?: number
|
|
@@ -10991,7 +11222,8 @@ type StyleJsxSortProps = []|[{
|
|
|
10991
11222
|
multiline?: ("ignore" | "first" | "last")
|
|
10992
11223
|
ignoreCase?: boolean
|
|
10993
11224
|
noSortAlphabetically?: boolean
|
|
10994
|
-
reservedFirst?: (
|
|
11225
|
+
reservedFirst?: (string[] | boolean)
|
|
11226
|
+
reservedLast?: string[]
|
|
10995
11227
|
locale?: string
|
|
10996
11228
|
}]
|
|
10997
11229
|
// ----- style/jsx-tag-spacing -----
|
|
@@ -11068,18 +11300,6 @@ type StyleKeywordSpacing = []|[{
|
|
|
11068
11300
|
before?: boolean
|
|
11069
11301
|
after?: boolean
|
|
11070
11302
|
}
|
|
11071
|
-
as?: {
|
|
11072
|
-
before?: boolean
|
|
11073
|
-
after?: boolean
|
|
11074
|
-
}
|
|
11075
|
-
async?: {
|
|
11076
|
-
before?: boolean
|
|
11077
|
-
after?: boolean
|
|
11078
|
-
}
|
|
11079
|
-
await?: {
|
|
11080
|
-
before?: boolean
|
|
11081
|
-
after?: boolean
|
|
11082
|
-
}
|
|
11083
11303
|
boolean?: {
|
|
11084
11304
|
before?: boolean
|
|
11085
11305
|
after?: boolean
|
|
@@ -11172,18 +11392,10 @@ type StyleKeywordSpacing = []|[{
|
|
|
11172
11392
|
before?: boolean
|
|
11173
11393
|
after?: boolean
|
|
11174
11394
|
}
|
|
11175
|
-
from?: {
|
|
11176
|
-
before?: boolean
|
|
11177
|
-
after?: boolean
|
|
11178
|
-
}
|
|
11179
11395
|
function?: {
|
|
11180
11396
|
before?: boolean
|
|
11181
11397
|
after?: boolean
|
|
11182
11398
|
}
|
|
11183
|
-
get?: {
|
|
11184
|
-
before?: boolean
|
|
11185
|
-
after?: boolean
|
|
11186
|
-
}
|
|
11187
11399
|
goto?: {
|
|
11188
11400
|
before?: boolean
|
|
11189
11401
|
after?: boolean
|
|
@@ -11216,10 +11428,6 @@ type StyleKeywordSpacing = []|[{
|
|
|
11216
11428
|
before?: boolean
|
|
11217
11429
|
after?: boolean
|
|
11218
11430
|
}
|
|
11219
|
-
let?: {
|
|
11220
|
-
before?: boolean
|
|
11221
|
-
after?: boolean
|
|
11222
|
-
}
|
|
11223
11431
|
long?: {
|
|
11224
11432
|
before?: boolean
|
|
11225
11433
|
after?: boolean
|
|
@@ -11236,10 +11444,6 @@ type StyleKeywordSpacing = []|[{
|
|
|
11236
11444
|
before?: boolean
|
|
11237
11445
|
after?: boolean
|
|
11238
11446
|
}
|
|
11239
|
-
of?: {
|
|
11240
|
-
before?: boolean
|
|
11241
|
-
after?: boolean
|
|
11242
|
-
}
|
|
11243
11447
|
package?: {
|
|
11244
11448
|
before?: boolean
|
|
11245
11449
|
after?: boolean
|
|
@@ -11260,14 +11464,6 @@ type StyleKeywordSpacing = []|[{
|
|
|
11260
11464
|
before?: boolean
|
|
11261
11465
|
after?: boolean
|
|
11262
11466
|
}
|
|
11263
|
-
satisfies?: {
|
|
11264
|
-
before?: boolean
|
|
11265
|
-
after?: boolean
|
|
11266
|
-
}
|
|
11267
|
-
set?: {
|
|
11268
|
-
before?: boolean
|
|
11269
|
-
after?: boolean
|
|
11270
|
-
}
|
|
11271
11467
|
short?: {
|
|
11272
11468
|
before?: boolean
|
|
11273
11469
|
after?: boolean
|
|
@@ -11336,6 +11532,50 @@ type StyleKeywordSpacing = []|[{
|
|
|
11336
11532
|
before?: boolean
|
|
11337
11533
|
after?: boolean
|
|
11338
11534
|
}
|
|
11535
|
+
accessor?: {
|
|
11536
|
+
before?: boolean
|
|
11537
|
+
after?: boolean
|
|
11538
|
+
}
|
|
11539
|
+
as?: {
|
|
11540
|
+
before?: boolean
|
|
11541
|
+
after?: boolean
|
|
11542
|
+
}
|
|
11543
|
+
async?: {
|
|
11544
|
+
before?: boolean
|
|
11545
|
+
after?: boolean
|
|
11546
|
+
}
|
|
11547
|
+
await?: {
|
|
11548
|
+
before?: boolean
|
|
11549
|
+
after?: boolean
|
|
11550
|
+
}
|
|
11551
|
+
from?: {
|
|
11552
|
+
before?: boolean
|
|
11553
|
+
after?: boolean
|
|
11554
|
+
}
|
|
11555
|
+
get?: {
|
|
11556
|
+
before?: boolean
|
|
11557
|
+
after?: boolean
|
|
11558
|
+
}
|
|
11559
|
+
let?: {
|
|
11560
|
+
before?: boolean
|
|
11561
|
+
after?: boolean
|
|
11562
|
+
}
|
|
11563
|
+
of?: {
|
|
11564
|
+
before?: boolean
|
|
11565
|
+
after?: boolean
|
|
11566
|
+
}
|
|
11567
|
+
satisfies?: {
|
|
11568
|
+
before?: boolean
|
|
11569
|
+
after?: boolean
|
|
11570
|
+
}
|
|
11571
|
+
set?: {
|
|
11572
|
+
before?: boolean
|
|
11573
|
+
after?: boolean
|
|
11574
|
+
}
|
|
11575
|
+
using?: {
|
|
11576
|
+
before?: boolean
|
|
11577
|
+
after?: boolean
|
|
11578
|
+
}
|
|
11339
11579
|
yield?: {
|
|
11340
11580
|
before?: boolean
|
|
11341
11581
|
after?: boolean
|
|
@@ -11510,11 +11750,11 @@ interface _StyleMemberDelimiterStyle_DelimiterConfig {
|
|
|
11510
11750
|
// ----- style/multiline-comment-style -----
|
|
11511
11751
|
type StyleMultilineCommentStyle = ([]|[("starred-block" | "bare-block")] | []|["separate-lines"]|["separate-lines", {
|
|
11512
11752
|
checkJSDoc?: boolean
|
|
11753
|
+
checkExclamation?: boolean
|
|
11513
11754
|
}])
|
|
11514
11755
|
// ----- style/multiline-ternary -----
|
|
11515
11756
|
type StyleMultilineTernary = []|[("always" | "always-multiline" | "never")]|[("always" | "always-multiline" | "never"), {
|
|
11516
11757
|
ignoreJSX?: boolean
|
|
11517
|
-
[k: string]: unknown | undefined
|
|
11518
11758
|
}]
|
|
11519
11759
|
// ----- style/new-parens -----
|
|
11520
11760
|
type StyleNewParens = []|[("always" | "never")]
|
|
@@ -11540,6 +11780,11 @@ type StyleNoExtraParens = ([]|["functions"] | []|["all"]|["all", {
|
|
|
11540
11780
|
enforceForFunctionPrototypeMethods?: boolean
|
|
11541
11781
|
allowParensAfterCommentPattern?: string
|
|
11542
11782
|
nestedConditionalExpressions?: boolean
|
|
11783
|
+
allowNodesInSpreadElement?: {
|
|
11784
|
+
ConditionalExpression?: boolean
|
|
11785
|
+
LogicalExpression?: boolean
|
|
11786
|
+
AwaitExpression?: boolean
|
|
11787
|
+
}
|
|
11543
11788
|
}])
|
|
11544
11789
|
// ----- style/no-mixed-operators -----
|
|
11545
11790
|
type StyleNoMixedOperators = []|[{
|
|
@@ -11617,6 +11862,11 @@ type StyleObjectCurlyNewline = []|[((("always" | "never") | {
|
|
|
11617
11862
|
minProperties?: number
|
|
11618
11863
|
consistent?: boolean
|
|
11619
11864
|
})
|
|
11865
|
+
TSEnumBody?: (("always" | "never") | {
|
|
11866
|
+
multiline?: boolean
|
|
11867
|
+
minProperties?: number
|
|
11868
|
+
consistent?: boolean
|
|
11869
|
+
})
|
|
11620
11870
|
})]
|
|
11621
11871
|
// ----- style/object-curly-spacing -----
|
|
11622
11872
|
type StyleObjectCurlySpacing = []|[("always" | "never")]|[("always" | "never"), {
|
|
@@ -11626,7 +11876,6 @@ type StyleObjectCurlySpacing = []|[("always" | "never")]|[("always" | "never"),
|
|
|
11626
11876
|
// ----- style/object-property-newline -----
|
|
11627
11877
|
type StyleObjectPropertyNewline = []|[{
|
|
11628
11878
|
allowAllPropertiesOnSameLine?: boolean
|
|
11629
|
-
allowMultiplePropertiesPerLine?: boolean
|
|
11630
11879
|
}]
|
|
11631
11880
|
// ----- style/one-var-declaration-per-line -----
|
|
11632
11881
|
type StyleOneVarDeclarationPerLine = []|[("always" | "initializations")]
|
|
@@ -11650,11 +11899,12 @@ type StylePaddedBlocks = []|[(("always" | "never" | "start" | "end") | {
|
|
|
11650
11899
|
}]
|
|
11651
11900
|
// ----- style/padding-line-between-statements -----
|
|
11652
11901
|
type _StylePaddingLineBetweenStatementsPaddingType = ("any" | "never" | "always")
|
|
11653
|
-
type
|
|
11902
|
+
type _StylePaddingLineBetweenStatementsStatementOption = (_StylePaddingLineBetweenStatementsStatementType | [_StylePaddingLineBetweenStatementsStatementType, ...(_StylePaddingLineBetweenStatementsStatementType)[]])
|
|
11903
|
+
type _StylePaddingLineBetweenStatementsStatementType = ("*" | "exports" | "require" | "directive" | "iife" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "continue" | "debugger" | "default" | "do" | "for" | "if" | "import" | "return" | "switch" | "throw" | "try" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload" | "block-like" | "singleline-block-like" | "multiline-block-like" | "expression" | "singleline-expression" | "multiline-expression" | "export" | "singleline-export" | "multiline-export" | "var" | "singleline-var" | "multiline-var" | "let" | "singleline-let" | "multiline-let" | "const" | "singleline-const" | "multiline-const" | "using" | "singleline-using" | "multiline-using")
|
|
11654
11904
|
type StylePaddingLineBetweenStatements = {
|
|
11655
11905
|
blankLine: _StylePaddingLineBetweenStatementsPaddingType
|
|
11656
|
-
prev:
|
|
11657
|
-
next:
|
|
11906
|
+
prev: _StylePaddingLineBetweenStatementsStatementOption
|
|
11907
|
+
next: _StylePaddingLineBetweenStatementsStatementOption
|
|
11658
11908
|
}[]
|
|
11659
11909
|
// ----- style/quote-props -----
|
|
11660
11910
|
type StyleQuoteProps = ([]|[("always" | "as-needed" | "consistent" | "consistent-as-needed")] | []|[("always" | "as-needed" | "consistent" | "consistent-as-needed")]|[("always" | "as-needed" | "consistent" | "consistent-as-needed"), {
|
|
@@ -11689,12 +11939,14 @@ type StyleSpaceBeforeBlocks = []|[(("always" | "never") | {
|
|
|
11689
11939
|
keywords?: ("always" | "never" | "off")
|
|
11690
11940
|
functions?: ("always" | "never" | "off")
|
|
11691
11941
|
classes?: ("always" | "never" | "off")
|
|
11942
|
+
modules?: ("always" | "never" | "off")
|
|
11692
11943
|
})]
|
|
11693
11944
|
// ----- style/space-before-function-paren -----
|
|
11694
11945
|
type StyleSpaceBeforeFunctionParen = []|[(("always" | "never") | {
|
|
11695
11946
|
anonymous?: ("always" | "never" | "ignore")
|
|
11696
11947
|
named?: ("always" | "never" | "ignore")
|
|
11697
11948
|
asyncArrow?: ("always" | "never" | "ignore")
|
|
11949
|
+
catch?: ("always" | "never" | "ignore")
|
|
11698
11950
|
})]
|
|
11699
11951
|
// ----- style/space-in-parens -----
|
|
11700
11952
|
type StyleSpaceInParens = []|[("always" | "never")]|[("always" | "never"), {
|
|
@@ -12271,6 +12523,8 @@ interface _TypescriptNamingConvention_MatchRegexConfig {
|
|
|
12271
12523
|
// ----- typescript/no-base-to-string -----
|
|
12272
12524
|
type TypescriptNoBaseToString = []|[{
|
|
12273
12525
|
|
|
12526
|
+
checkUnknown?: boolean
|
|
12527
|
+
|
|
12274
12528
|
ignoredTypeNames?: string[]
|
|
12275
12529
|
}]
|
|
12276
12530
|
// ----- typescript/no-confusing-void-expression -----
|
|
@@ -12701,7 +12955,6 @@ type TypescriptPreferDestructuring = []|[({
|
|
|
12701
12955
|
enforceForDeclarationWithTypeAnnotation?: boolean
|
|
12702
12956
|
|
|
12703
12957
|
enforceForRenamedProperties?: boolean
|
|
12704
|
-
[k: string]: unknown | undefined
|
|
12705
12958
|
}]
|
|
12706
12959
|
// ----- typescript/prefer-literal-enum-member -----
|
|
12707
12960
|
type TypescriptPreferLiteralEnumMember = []|[{
|
|
@@ -12730,7 +12983,6 @@ type TypescriptPreferNullishCoalescing = []|[{
|
|
|
12730
12983
|
number?: boolean
|
|
12731
12984
|
|
|
12732
12985
|
string?: boolean
|
|
12733
|
-
[k: string]: unknown | undefined
|
|
12734
12986
|
} | true)
|
|
12735
12987
|
|
|
12736
12988
|
ignoreTernaryTests?: boolean
|
|
@@ -13009,6 +13261,14 @@ interface _UnicornImportStyle_BooleanObject {
|
|
|
13009
13261
|
type UnicornNoArrayReduce = []|[{
|
|
13010
13262
|
allowSimpleOperations?: boolean
|
|
13011
13263
|
}]
|
|
13264
|
+
// ----- unicorn/no-array-reverse -----
|
|
13265
|
+
type UnicornNoArrayReverse = []|[{
|
|
13266
|
+
allowExpressionStatement?: boolean
|
|
13267
|
+
}]
|
|
13268
|
+
// ----- unicorn/no-array-sort -----
|
|
13269
|
+
type UnicornNoArraySort = []|[{
|
|
13270
|
+
allowExpressionStatement?: boolean
|
|
13271
|
+
}]
|
|
13012
13272
|
// ----- unicorn/no-instanceof-builtins -----
|
|
13013
13273
|
type UnicornNoInstanceofBuiltins = []|[{
|
|
13014
13274
|
useErrorIsError?: boolean
|