@vinicunca/eslint-config 3.12.0 → 3.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +392 -285
- package/dist/index.js +1 -0
- package/package.json +13 -13
package/dist/index.d.ts
CHANGED
|
@@ -661,233 +661,233 @@ interface RuleOptions {
|
|
|
661
661
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
662
662
|
/**
|
|
663
663
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
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.11.0/docs/rules/consistent-type-specifier-style.md
|
|
665
665
|
*/
|
|
666
666
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
|
|
667
667
|
/**
|
|
668
668
|
* Ensure a default export is present, given a default import.
|
|
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.11.0/docs/rules/default.md
|
|
670
670
|
*/
|
|
671
671
|
'import/default'?: Linter.RuleEntry<[]>
|
|
672
672
|
/**
|
|
673
673
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
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.11.0/docs/rules/dynamic-import-chunkname.md
|
|
675
675
|
*/
|
|
676
676
|
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
|
|
677
677
|
/**
|
|
678
678
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
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.11.0/docs/rules/export.md
|
|
680
680
|
*/
|
|
681
681
|
'import/export'?: Linter.RuleEntry<[]>
|
|
682
682
|
/**
|
|
683
683
|
* Ensure all exports appear after other statements.
|
|
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.11.0/docs/rules/exports-last.md
|
|
685
685
|
*/
|
|
686
686
|
'import/exports-last'?: Linter.RuleEntry<[]>
|
|
687
687
|
/**
|
|
688
688
|
* Ensure consistent use of file extension within the import path.
|
|
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.11.0/docs/rules/extensions.md
|
|
690
690
|
*/
|
|
691
691
|
'import/extensions'?: Linter.RuleEntry<ImportExtensions>
|
|
692
692
|
/**
|
|
693
693
|
* Ensure all imports appear before other statements.
|
|
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.11.0/docs/rules/first.md
|
|
695
695
|
*/
|
|
696
696
|
'import/first'?: Linter.RuleEntry<ImportFirst>
|
|
697
697
|
/**
|
|
698
698
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
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.11.0/docs/rules/group-exports.md
|
|
700
700
|
*/
|
|
701
701
|
'import/group-exports'?: Linter.RuleEntry<[]>
|
|
702
702
|
/**
|
|
703
703
|
* Replaced by `import-x/first`.
|
|
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.11.0/docs/rules/imports-first.md
|
|
705
705
|
* @deprecated
|
|
706
706
|
*/
|
|
707
707
|
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
|
|
708
708
|
/**
|
|
709
709
|
* Enforce the maximum number of dependencies a module can have.
|
|
710
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
710
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/max-dependencies.md
|
|
711
711
|
*/
|
|
712
712
|
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
|
|
713
713
|
/**
|
|
714
714
|
* Ensure named imports correspond to a named export in the remote file.
|
|
715
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
715
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/named.md
|
|
716
716
|
*/
|
|
717
717
|
'import/named'?: Linter.RuleEntry<ImportNamed>
|
|
718
718
|
/**
|
|
719
719
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
720
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
720
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/namespace.md
|
|
721
721
|
*/
|
|
722
722
|
'import/namespace'?: Linter.RuleEntry<ImportNamespace>
|
|
723
723
|
/**
|
|
724
724
|
* Enforce a newline after import statements.
|
|
725
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
725
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/newline-after-import.md
|
|
726
726
|
*/
|
|
727
727
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
|
|
728
728
|
/**
|
|
729
729
|
* Forbid import of modules using absolute paths.
|
|
730
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
730
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-absolute-path.md
|
|
731
731
|
*/
|
|
732
732
|
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
|
|
733
733
|
/**
|
|
734
734
|
* Forbid AMD `require` and `define` calls.
|
|
735
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
735
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-amd.md
|
|
736
736
|
*/
|
|
737
737
|
'import/no-amd'?: Linter.RuleEntry<[]>
|
|
738
738
|
/**
|
|
739
739
|
* Forbid anonymous values as default exports.
|
|
740
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
740
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-anonymous-default-export.md
|
|
741
741
|
*/
|
|
742
742
|
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
|
|
743
743
|
/**
|
|
744
744
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
745
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
745
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-commonjs.md
|
|
746
746
|
*/
|
|
747
747
|
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
|
|
748
748
|
/**
|
|
749
749
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
750
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
750
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-cycle.md
|
|
751
751
|
*/
|
|
752
752
|
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
|
|
753
753
|
/**
|
|
754
754
|
* Forbid default exports.
|
|
755
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
755
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-default-export.md
|
|
756
756
|
*/
|
|
757
757
|
'import/no-default-export'?: Linter.RuleEntry<[]>
|
|
758
758
|
/**
|
|
759
759
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
760
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
760
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-deprecated.md
|
|
761
761
|
*/
|
|
762
762
|
'import/no-deprecated'?: Linter.RuleEntry<[]>
|
|
763
763
|
/**
|
|
764
764
|
* Forbid repeated import of the same module in multiple places.
|
|
765
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
765
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-duplicates.md
|
|
766
766
|
*/
|
|
767
767
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
|
|
768
768
|
/**
|
|
769
769
|
* Forbid `require()` calls with expressions.
|
|
770
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
770
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-dynamic-require.md
|
|
771
771
|
*/
|
|
772
772
|
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
|
|
773
773
|
/**
|
|
774
774
|
* Forbid empty named import blocks.
|
|
775
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
775
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-empty-named-blocks.md
|
|
776
776
|
*/
|
|
777
777
|
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
778
778
|
/**
|
|
779
779
|
* Forbid the use of extraneous packages.
|
|
780
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
780
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-extraneous-dependencies.md
|
|
781
781
|
*/
|
|
782
782
|
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
|
|
783
783
|
/**
|
|
784
784
|
* Forbid import statements with CommonJS module.exports.
|
|
785
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
785
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-import-module-exports.md
|
|
786
786
|
*/
|
|
787
787
|
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
|
|
788
788
|
/**
|
|
789
789
|
* Forbid importing the submodules of other modules.
|
|
790
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
790
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-internal-modules.md
|
|
791
791
|
*/
|
|
792
792
|
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
|
|
793
793
|
/**
|
|
794
794
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
795
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
795
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-mutable-exports.md
|
|
796
796
|
*/
|
|
797
797
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
798
798
|
/**
|
|
799
799
|
* Forbid use of exported name as identifier of default export.
|
|
800
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
800
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-named-as-default.md
|
|
801
801
|
*/
|
|
802
802
|
'import/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
803
803
|
/**
|
|
804
804
|
* Forbid use of exported name as property of default export.
|
|
805
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
805
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-named-as-default-member.md
|
|
806
806
|
*/
|
|
807
807
|
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
808
808
|
/**
|
|
809
809
|
* Forbid named default exports.
|
|
810
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
810
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-named-default.md
|
|
811
811
|
*/
|
|
812
812
|
'import/no-named-default'?: Linter.RuleEntry<[]>
|
|
813
813
|
/**
|
|
814
814
|
* Forbid named exports.
|
|
815
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
815
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-named-export.md
|
|
816
816
|
*/
|
|
817
817
|
'import/no-named-export'?: Linter.RuleEntry<[]>
|
|
818
818
|
/**
|
|
819
819
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
820
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
820
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-namespace.md
|
|
821
821
|
*/
|
|
822
822
|
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
|
|
823
823
|
/**
|
|
824
824
|
* Forbid Node.js builtin modules.
|
|
825
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
825
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-nodejs-modules.md
|
|
826
826
|
*/
|
|
827
827
|
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
|
|
828
828
|
/**
|
|
829
829
|
* Forbid importing packages through relative paths.
|
|
830
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
830
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-relative-packages.md
|
|
831
831
|
*/
|
|
832
832
|
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
|
|
833
833
|
/**
|
|
834
834
|
* Forbid importing modules from parent directories.
|
|
835
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
835
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-relative-parent-imports.md
|
|
836
836
|
*/
|
|
837
837
|
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
|
|
838
838
|
/**
|
|
839
839
|
* Forbid importing a default export by a different name.
|
|
840
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
840
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-rename-default.md
|
|
841
841
|
*/
|
|
842
842
|
'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>
|
|
843
843
|
/**
|
|
844
844
|
* Enforce which files can be imported in a given folder.
|
|
845
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
845
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-restricted-paths.md
|
|
846
846
|
*/
|
|
847
847
|
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
|
|
848
848
|
/**
|
|
849
849
|
* Forbid a module from importing itself.
|
|
850
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
850
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-self-import.md
|
|
851
851
|
*/
|
|
852
852
|
'import/no-self-import'?: Linter.RuleEntry<[]>
|
|
853
853
|
/**
|
|
854
854
|
* Forbid unassigned imports.
|
|
855
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
855
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-unassigned-import.md
|
|
856
856
|
*/
|
|
857
857
|
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
|
|
858
858
|
/**
|
|
859
859
|
* Ensure imports point to a file/module that can be resolved.
|
|
860
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
860
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-unresolved.md
|
|
861
861
|
*/
|
|
862
862
|
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
|
|
863
863
|
/**
|
|
864
864
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
865
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
865
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-unused-modules.md
|
|
866
866
|
*/
|
|
867
867
|
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
|
|
868
868
|
/**
|
|
869
869
|
* Forbid unnecessary path segments in import and require statements.
|
|
870
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
870
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-useless-path-segments.md
|
|
871
871
|
*/
|
|
872
872
|
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
|
|
873
873
|
/**
|
|
874
874
|
* Forbid webpack loader syntax in imports.
|
|
875
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
875
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-webpack-loader-syntax.md
|
|
876
876
|
*/
|
|
877
877
|
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
878
878
|
/**
|
|
879
879
|
* Enforce a convention in module import order.
|
|
880
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
880
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/order.md
|
|
881
881
|
*/
|
|
882
882
|
'import/order'?: Linter.RuleEntry<ImportOrder>
|
|
883
883
|
/**
|
|
884
884
|
* Prefer a default export if module exports a single name or multiple names.
|
|
885
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
885
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/prefer-default-export.md
|
|
886
886
|
*/
|
|
887
887
|
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
|
|
888
888
|
/**
|
|
889
889
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
890
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
890
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/unambiguous.md
|
|
891
891
|
*/
|
|
892
892
|
'import/unambiguous'?: Linter.RuleEntry<[]>
|
|
893
893
|
/**
|
|
@@ -1467,30 +1467,37 @@ interface RuleOptions {
|
|
|
1467
1467
|
'logical-assignment-operators'?: Linter.RuleEntry<LogicalAssignmentOperators>
|
|
1468
1468
|
/**
|
|
1469
1469
|
* Require languages for fenced code blocks
|
|
1470
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/fenced-code-language.md
|
|
1470
1471
|
*/
|
|
1471
1472
|
'markdown/fenced-code-language'?: Linter.RuleEntry<MarkdownFencedCodeLanguage>
|
|
1472
1473
|
/**
|
|
1473
1474
|
* Enforce heading levels increment by one
|
|
1475
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/heading-increment.md
|
|
1474
1476
|
*/
|
|
1475
1477
|
'markdown/heading-increment'?: Linter.RuleEntry<[]>
|
|
1476
1478
|
/**
|
|
1477
1479
|
* Disallow duplicate headings in the same document
|
|
1480
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-duplicate-headings.md
|
|
1478
1481
|
*/
|
|
1479
1482
|
'markdown/no-duplicate-headings'?: Linter.RuleEntry<[]>
|
|
1480
1483
|
/**
|
|
1481
1484
|
* Disallow empty links
|
|
1485
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-links.md
|
|
1482
1486
|
*/
|
|
1483
1487
|
'markdown/no-empty-links'?: Linter.RuleEntry<[]>
|
|
1484
1488
|
/**
|
|
1485
1489
|
* Disallow HTML tags
|
|
1490
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-html.md
|
|
1486
1491
|
*/
|
|
1487
1492
|
'markdown/no-html'?: Linter.RuleEntry<MarkdownNoHtml>
|
|
1488
1493
|
/**
|
|
1489
1494
|
* Disallow invalid label references
|
|
1495
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-invalid-label-refs.md
|
|
1490
1496
|
*/
|
|
1491
1497
|
'markdown/no-invalid-label-refs'?: Linter.RuleEntry<[]>
|
|
1492
1498
|
/**
|
|
1493
1499
|
* Disallow missing label references
|
|
1500
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-label-refs.md
|
|
1494
1501
|
*/
|
|
1495
1502
|
'markdown/no-missing-label-refs'?: Linter.RuleEntry<[]>
|
|
1496
1503
|
/**
|
|
@@ -2171,7 +2178,7 @@ interface RuleOptions {
|
|
|
2171
2178
|
* Disallow identifiers from shadowing restricted names
|
|
2172
2179
|
* @see https://eslint.org/docs/latest/rules/no-shadow-restricted-names
|
|
2173
2180
|
*/
|
|
2174
|
-
'no-shadow-restricted-names'?: Linter.RuleEntry<
|
|
2181
|
+
'no-shadow-restricted-names'?: Linter.RuleEntry<NoShadowRestrictedNames>
|
|
2175
2182
|
/**
|
|
2176
2183
|
* Disallow spacing between function identifiers and their applications (deprecated)
|
|
2177
2184
|
* @see https://eslint.org/docs/latest/rules/no-spaced-func
|
|
@@ -6246,7 +6253,7 @@ interface RuleOptions {
|
|
|
6246
6253
|
*/
|
|
6247
6254
|
'test/no-standalone-expect'?: Linter.RuleEntry<TestNoStandaloneExpect>
|
|
6248
6255
|
/**
|
|
6249
|
-
*
|
|
6256
|
+
* Disallow using the `f` and `x` prefixes in favour of `.only` and `.skip`
|
|
6250
6257
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-prefixes.md
|
|
6251
6258
|
*/
|
|
6252
6259
|
'test/no-test-prefixes'?: Linter.RuleEntry<[]>
|
|
@@ -6944,6 +6951,11 @@ interface RuleOptions {
|
|
|
6944
6951
|
* @see https://typescript-eslint.io/rules/no-unnecessary-type-constraint
|
|
6945
6952
|
*/
|
|
6946
6953
|
'ts/no-unnecessary-type-constraint'?: Linter.RuleEntry<[]>
|
|
6954
|
+
/**
|
|
6955
|
+
* Disallow conversion idioms when they do not change the type or value of the expression
|
|
6956
|
+
* @see https://typescript-eslint.io/rules/no-unnecessary-type-conversion
|
|
6957
|
+
*/
|
|
6958
|
+
'ts/no-unnecessary-type-conversion'?: Linter.RuleEntry<[]>
|
|
6947
6959
|
/**
|
|
6948
6960
|
* Disallow type parameters that aren't used multiple times
|
|
6949
6961
|
* @see https://typescript-eslint.io/rules/no-unnecessary-type-parameters
|
|
@@ -7229,643 +7241,670 @@ interface RuleOptions {
|
|
|
7229
7241
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
|
|
7230
7242
|
/**
|
|
7231
7243
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
7232
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7244
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/better-regex.md
|
|
7233
7245
|
*/
|
|
7234
7246
|
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
|
|
7235
7247
|
/**
|
|
7236
7248
|
* Enforce a specific parameter name in catch clauses.
|
|
7237
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7249
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/catch-error-name.md
|
|
7238
7250
|
*/
|
|
7239
7251
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
|
|
7240
7252
|
/**
|
|
7241
7253
|
* Enforce consistent assertion style with `node:assert`.
|
|
7242
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7254
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-assert.md
|
|
7243
7255
|
*/
|
|
7244
7256
|
'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
|
|
7245
7257
|
/**
|
|
7246
7258
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
7247
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7259
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-date-clone.md
|
|
7248
7260
|
*/
|
|
7249
7261
|
'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
|
|
7250
7262
|
/**
|
|
7251
7263
|
* Use destructured variables over properties.
|
|
7252
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7264
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-destructuring.md
|
|
7253
7265
|
*/
|
|
7254
7266
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
|
|
7255
7267
|
/**
|
|
7256
7268
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
7257
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7269
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-empty-array-spread.md
|
|
7258
7270
|
*/
|
|
7259
7271
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
|
|
7260
7272
|
/**
|
|
7261
7273
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
7262
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7274
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-existence-index-check.md
|
|
7263
7275
|
*/
|
|
7264
7276
|
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
|
|
7265
7277
|
/**
|
|
7266
7278
|
* Move function definitions to the highest possible scope.
|
|
7267
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7279
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-function-scoping.md
|
|
7268
7280
|
*/
|
|
7269
7281
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
|
|
7270
7282
|
/**
|
|
7271
7283
|
* Enforce correct `Error` subclassing.
|
|
7272
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7284
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/custom-error-definition.md
|
|
7273
7285
|
*/
|
|
7274
7286
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
|
|
7275
7287
|
/**
|
|
7276
7288
|
* Enforce no spaces between braces.
|
|
7277
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7289
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/empty-brace-spaces.md
|
|
7278
7290
|
*/
|
|
7279
7291
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
|
|
7280
7292
|
/**
|
|
7281
7293
|
* Enforce passing a `message` value when creating a built-in error.
|
|
7282
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7294
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/error-message.md
|
|
7283
7295
|
*/
|
|
7284
7296
|
'unicorn/error-message'?: Linter.RuleEntry<[]>
|
|
7285
7297
|
/**
|
|
7286
7298
|
* Require escape sequences to use uppercase or lowercase values.
|
|
7287
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7299
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/escape-case.md
|
|
7288
7300
|
*/
|
|
7289
7301
|
'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>
|
|
7290
7302
|
/**
|
|
7291
7303
|
* Add expiration conditions to TODO comments.
|
|
7292
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7304
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/expiring-todo-comments.md
|
|
7293
7305
|
*/
|
|
7294
7306
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
|
|
7295
7307
|
/**
|
|
7296
7308
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
7297
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7309
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/explicit-length-check.md
|
|
7298
7310
|
*/
|
|
7299
7311
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
|
|
7300
7312
|
/**
|
|
7301
7313
|
* Enforce a case style for filenames.
|
|
7302
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7314
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/filename-case.md
|
|
7303
7315
|
*/
|
|
7304
7316
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
|
|
7305
7317
|
/**
|
|
7306
7318
|
* Enforce specific import styles per module.
|
|
7307
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7319
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/import-style.md
|
|
7308
7320
|
*/
|
|
7309
7321
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
|
|
7310
7322
|
/**
|
|
7311
7323
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
7312
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7324
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/new-for-builtins.md
|
|
7313
7325
|
*/
|
|
7314
7326
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
|
|
7315
7327
|
/**
|
|
7316
7328
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
7317
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7329
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-abusive-eslint-disable.md
|
|
7318
7330
|
*/
|
|
7319
7331
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
|
|
7320
7332
|
/**
|
|
7321
7333
|
* Disallow recursive access to `this` within getters and setters.
|
|
7322
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7334
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-accessor-recursion.md
|
|
7323
7335
|
*/
|
|
7324
7336
|
'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
|
|
7325
7337
|
/**
|
|
7326
7338
|
* Disallow anonymous functions and classes as the default export.
|
|
7327
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7339
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-anonymous-default-export.md
|
|
7328
7340
|
*/
|
|
7329
7341
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
|
|
7330
7342
|
/**
|
|
7331
7343
|
* Prevent passing a function reference directly to iterator methods.
|
|
7332
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7344
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-callback-reference.md
|
|
7333
7345
|
*/
|
|
7334
7346
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
|
|
7335
7347
|
/**
|
|
7336
7348
|
* Prefer `for…of` over the `forEach` method.
|
|
7337
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7349
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-for-each.md
|
|
7338
7350
|
*/
|
|
7339
7351
|
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
|
|
7340
7352
|
/**
|
|
7341
7353
|
* Disallow using the `this` argument in array methods.
|
|
7342
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7354
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-method-this-argument.md
|
|
7343
7355
|
*/
|
|
7344
7356
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
|
|
7345
7357
|
/**
|
|
7346
|
-
*
|
|
7347
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7358
|
+
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
7359
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-array-push-push
|
|
7360
|
+
* @deprecated
|
|
7348
7361
|
*/
|
|
7349
|
-
'unicorn/no-array-push-push'?: Linter.RuleEntry<
|
|
7362
|
+
'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>
|
|
7350
7363
|
/**
|
|
7351
7364
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
7352
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7365
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-reduce.md
|
|
7353
7366
|
*/
|
|
7354
7367
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
|
|
7355
7368
|
/**
|
|
7356
7369
|
* Disallow member access from await expression.
|
|
7357
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7370
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-await-expression-member.md
|
|
7358
7371
|
*/
|
|
7359
7372
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
|
|
7360
7373
|
/**
|
|
7361
7374
|
* Disallow using `await` in `Promise` method parameters.
|
|
7362
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7375
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-await-in-promise-methods.md
|
|
7363
7376
|
*/
|
|
7364
7377
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
7365
7378
|
/**
|
|
7366
7379
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
7367
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7380
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-console-spaces.md
|
|
7368
7381
|
*/
|
|
7369
7382
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
|
|
7370
7383
|
/**
|
|
7371
7384
|
* Do not use `document.cookie` directly.
|
|
7372
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7385
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-document-cookie.md
|
|
7373
7386
|
*/
|
|
7374
7387
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
|
|
7375
7388
|
/**
|
|
7376
7389
|
* Disallow empty files.
|
|
7377
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7390
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-empty-file.md
|
|
7378
7391
|
*/
|
|
7379
7392
|
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
|
|
7380
7393
|
/**
|
|
7381
7394
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
7382
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7395
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-for-loop.md
|
|
7383
7396
|
*/
|
|
7384
7397
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
|
|
7385
7398
|
/**
|
|
7386
7399
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
7387
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7400
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-hex-escape.md
|
|
7388
7401
|
*/
|
|
7389
7402
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
|
|
7390
7403
|
/**
|
|
7391
7404
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
7392
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7405
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-instanceof-array
|
|
7393
7406
|
* @deprecated
|
|
7394
7407
|
*/
|
|
7395
7408
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
|
|
7396
7409
|
/**
|
|
7397
7410
|
* Disallow `instanceof` with built-in objects
|
|
7398
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7411
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-instanceof-builtins.md
|
|
7399
7412
|
*/
|
|
7400
7413
|
'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
|
|
7401
7414
|
/**
|
|
7402
7415
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
7403
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7416
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-invalid-fetch-options.md
|
|
7404
7417
|
*/
|
|
7405
7418
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
|
|
7406
7419
|
/**
|
|
7407
7420
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
7408
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7421
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-invalid-remove-event-listener.md
|
|
7409
7422
|
*/
|
|
7410
7423
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
|
|
7411
7424
|
/**
|
|
7412
7425
|
* Disallow identifiers starting with `new` or `class`.
|
|
7413
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7426
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-keyword-prefix.md
|
|
7414
7427
|
*/
|
|
7415
7428
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
|
|
7416
7429
|
/**
|
|
7417
|
-
*
|
|
7418
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7430
|
+
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
7431
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-length-as-slice-end
|
|
7432
|
+
* @deprecated
|
|
7419
7433
|
*/
|
|
7420
7434
|
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
|
|
7421
7435
|
/**
|
|
7422
7436
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
7423
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7437
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-lonely-if.md
|
|
7424
7438
|
*/
|
|
7425
7439
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
|
|
7426
7440
|
/**
|
|
7427
7441
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
7428
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7442
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-magic-array-flat-depth.md
|
|
7429
7443
|
*/
|
|
7430
7444
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
|
|
7431
7445
|
/**
|
|
7432
7446
|
* Disallow named usage of default import and export.
|
|
7433
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7447
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-named-default.md
|
|
7434
7448
|
*/
|
|
7435
7449
|
'unicorn/no-named-default'?: Linter.RuleEntry<[]>
|
|
7436
7450
|
/**
|
|
7437
7451
|
* Disallow negated conditions.
|
|
7438
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7452
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-negated-condition.md
|
|
7439
7453
|
*/
|
|
7440
7454
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
|
|
7441
7455
|
/**
|
|
7442
7456
|
* Disallow negated expression in equality check.
|
|
7443
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7457
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-negation-in-equality-check.md
|
|
7444
7458
|
*/
|
|
7445
7459
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
|
|
7446
7460
|
/**
|
|
7447
7461
|
* Disallow nested ternary expressions.
|
|
7448
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7462
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-nested-ternary.md
|
|
7449
7463
|
*/
|
|
7450
7464
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
|
|
7451
7465
|
/**
|
|
7452
7466
|
* Disallow `new Array()`.
|
|
7453
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7467
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-new-array.md
|
|
7454
7468
|
*/
|
|
7455
7469
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>
|
|
7456
7470
|
/**
|
|
7457
7471
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
7458
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7472
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-new-buffer.md
|
|
7459
7473
|
*/
|
|
7460
7474
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
|
|
7461
7475
|
/**
|
|
7462
7476
|
* Disallow the use of the `null` literal.
|
|
7463
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7477
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-null.md
|
|
7464
7478
|
*/
|
|
7465
7479
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
|
|
7466
7480
|
/**
|
|
7467
7481
|
* Disallow the use of objects as default parameters.
|
|
7468
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7482
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-object-as-default-parameter.md
|
|
7469
7483
|
*/
|
|
7470
7484
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
|
|
7471
7485
|
/**
|
|
7472
7486
|
* Disallow `process.exit()`.
|
|
7473
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7487
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-process-exit.md
|
|
7474
7488
|
*/
|
|
7475
7489
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
|
|
7476
7490
|
/**
|
|
7477
7491
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
7478
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7492
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-single-promise-in-promise-methods.md
|
|
7479
7493
|
*/
|
|
7480
7494
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
7481
7495
|
/**
|
|
7482
7496
|
* Disallow classes that only have static members.
|
|
7483
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7497
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-static-only-class.md
|
|
7484
7498
|
*/
|
|
7485
7499
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
|
|
7486
7500
|
/**
|
|
7487
7501
|
* Disallow `then` property.
|
|
7488
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7502
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-thenable.md
|
|
7489
7503
|
*/
|
|
7490
7504
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>
|
|
7491
7505
|
/**
|
|
7492
7506
|
* Disallow assigning `this` to a variable.
|
|
7493
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7507
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-this-assignment.md
|
|
7494
7508
|
*/
|
|
7495
7509
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
|
|
7496
7510
|
/**
|
|
7497
7511
|
* Disallow comparing `undefined` using `typeof`.
|
|
7498
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7512
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-typeof-undefined.md
|
|
7499
7513
|
*/
|
|
7500
7514
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
|
|
7515
|
+
/**
|
|
7516
|
+
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
7517
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-array-flat-depth.md
|
|
7518
|
+
*/
|
|
7519
|
+
'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>
|
|
7520
|
+
/**
|
|
7521
|
+
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
7522
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-array-splice-count.md
|
|
7523
|
+
*/
|
|
7524
|
+
'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>
|
|
7501
7525
|
/**
|
|
7502
7526
|
* Disallow awaiting non-promise values.
|
|
7503
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7527
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-await.md
|
|
7504
7528
|
*/
|
|
7505
7529
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
|
|
7506
7530
|
/**
|
|
7507
7531
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
7508
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7532
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-polyfills.md
|
|
7509
7533
|
*/
|
|
7510
7534
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
|
|
7535
|
+
/**
|
|
7536
|
+
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
7537
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-slice-end.md
|
|
7538
|
+
*/
|
|
7539
|
+
'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>
|
|
7511
7540
|
/**
|
|
7512
7541
|
* Disallow unreadable array destructuring.
|
|
7513
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7542
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unreadable-array-destructuring.md
|
|
7514
7543
|
*/
|
|
7515
7544
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
|
|
7516
7545
|
/**
|
|
7517
7546
|
* Disallow unreadable IIFEs.
|
|
7518
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7547
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unreadable-iife.md
|
|
7519
7548
|
*/
|
|
7520
7549
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
|
|
7521
7550
|
/**
|
|
7522
7551
|
* Disallow unused object properties.
|
|
7523
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7552
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unused-properties.md
|
|
7524
7553
|
*/
|
|
7525
7554
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
|
|
7526
7555
|
/**
|
|
7527
7556
|
* Disallow useless fallback when spreading in object literals.
|
|
7528
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7557
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-fallback-in-spread.md
|
|
7529
7558
|
*/
|
|
7530
7559
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
|
|
7531
7560
|
/**
|
|
7532
7561
|
* Disallow useless array length check.
|
|
7533
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7562
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-length-check.md
|
|
7534
7563
|
*/
|
|
7535
7564
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
|
|
7536
7565
|
/**
|
|
7537
7566
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
7538
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7567
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-promise-resolve-reject.md
|
|
7539
7568
|
*/
|
|
7540
7569
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
|
|
7541
7570
|
/**
|
|
7542
7571
|
* Disallow unnecessary spread.
|
|
7543
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7572
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-spread.md
|
|
7544
7573
|
*/
|
|
7545
7574
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
|
|
7546
7575
|
/**
|
|
7547
7576
|
* Disallow useless case in switch statements.
|
|
7548
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7577
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-switch-case.md
|
|
7549
7578
|
*/
|
|
7550
7579
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
|
|
7551
7580
|
/**
|
|
7552
7581
|
* Disallow useless `undefined`.
|
|
7553
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7582
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-undefined.md
|
|
7554
7583
|
*/
|
|
7555
7584
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
|
|
7556
7585
|
/**
|
|
7557
7586
|
* Disallow number literals with zero fractions or dangling dots.
|
|
7558
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7587
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-zero-fractions.md
|
|
7559
7588
|
*/
|
|
7560
7589
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
|
|
7561
7590
|
/**
|
|
7562
7591
|
* Enforce proper case for numeric literals.
|
|
7563
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7592
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/number-literal-case.md
|
|
7564
7593
|
*/
|
|
7565
7594
|
'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>
|
|
7566
7595
|
/**
|
|
7567
7596
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
7568
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7597
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/numeric-separators-style.md
|
|
7569
7598
|
*/
|
|
7570
7599
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
|
|
7571
7600
|
/**
|
|
7572
7601
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
7573
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7602
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-add-event-listener.md
|
|
7574
7603
|
*/
|
|
7575
7604
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
|
|
7576
7605
|
/**
|
|
7577
7606
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
7578
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7607
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-find.md
|
|
7579
7608
|
*/
|
|
7580
7609
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
|
|
7581
7610
|
/**
|
|
7582
7611
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
7583
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7612
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-flat.md
|
|
7584
7613
|
*/
|
|
7585
7614
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
|
|
7586
7615
|
/**
|
|
7587
7616
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
7588
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7617
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-flat-map.md
|
|
7589
7618
|
*/
|
|
7590
7619
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
|
|
7591
7620
|
/**
|
|
7592
7621
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
7593
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7622
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-index-of.md
|
|
7594
7623
|
*/
|
|
7595
7624
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
|
|
7596
7625
|
/**
|
|
7597
7626
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
7598
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7627
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-some.md
|
|
7599
7628
|
*/
|
|
7600
7629
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
|
|
7601
7630
|
/**
|
|
7602
7631
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
7603
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7632
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-at.md
|
|
7604
7633
|
*/
|
|
7605
7634
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
|
|
7606
7635
|
/**
|
|
7607
7636
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
7608
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7637
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-blob-reading-methods.md
|
|
7609
7638
|
*/
|
|
7610
7639
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
|
|
7611
7640
|
/**
|
|
7612
7641
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
7613
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7642
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-code-point.md
|
|
7614
7643
|
*/
|
|
7615
7644
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
|
|
7616
7645
|
/**
|
|
7617
7646
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
7618
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7647
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-date-now.md
|
|
7619
7648
|
*/
|
|
7620
7649
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
|
|
7621
7650
|
/**
|
|
7622
7651
|
* Prefer default parameters over reassignment.
|
|
7623
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7652
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-default-parameters.md
|
|
7624
7653
|
*/
|
|
7625
7654
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
|
|
7626
7655
|
/**
|
|
7627
7656
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
7628
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7657
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-append.md
|
|
7629
7658
|
*/
|
|
7630
7659
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
|
|
7631
7660
|
/**
|
|
7632
7661
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
7633
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7662
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-dataset.md
|
|
7634
7663
|
*/
|
|
7635
7664
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
|
|
7636
7665
|
/**
|
|
7637
7666
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
7638
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7667
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-remove.md
|
|
7639
7668
|
*/
|
|
7640
7669
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
|
|
7641
7670
|
/**
|
|
7642
7671
|
* Prefer `.textContent` over `.innerText`.
|
|
7643
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7672
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-text-content.md
|
|
7644
7673
|
*/
|
|
7645
7674
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
|
|
7646
7675
|
/**
|
|
7647
7676
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
7648
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7677
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-event-target.md
|
|
7649
7678
|
*/
|
|
7650
7679
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
|
|
7651
7680
|
/**
|
|
7652
7681
|
* Prefer `export…from` when re-exporting.
|
|
7653
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7682
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-export-from.md
|
|
7654
7683
|
*/
|
|
7655
7684
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
|
|
7656
7685
|
/**
|
|
7657
7686
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
7658
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7687
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-global-this.md
|
|
7659
7688
|
*/
|
|
7660
7689
|
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
|
|
7690
|
+
/**
|
|
7691
|
+
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
7692
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-import-meta-properties.md
|
|
7693
|
+
*/
|
|
7694
|
+
'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>
|
|
7661
7695
|
/**
|
|
7662
7696
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
7663
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7697
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-includes.md
|
|
7664
7698
|
*/
|
|
7665
7699
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
|
|
7666
7700
|
/**
|
|
7667
7701
|
* Prefer reading a JSON file as a buffer.
|
|
7668
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7702
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-json-parse-buffer.md
|
|
7669
7703
|
*/
|
|
7670
7704
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
|
|
7671
7705
|
/**
|
|
7672
7706
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
7673
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7707
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-keyboard-event-key.md
|
|
7674
7708
|
*/
|
|
7675
7709
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
|
|
7676
7710
|
/**
|
|
7677
7711
|
* Prefer using a logical operator over a ternary.
|
|
7678
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7712
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-logical-operator-over-ternary.md
|
|
7679
7713
|
*/
|
|
7680
7714
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
|
|
7681
7715
|
/**
|
|
7682
7716
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
7683
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7717
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-math-min-max.md
|
|
7684
7718
|
*/
|
|
7685
7719
|
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
|
|
7686
7720
|
/**
|
|
7687
7721
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
7688
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7722
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-math-trunc.md
|
|
7689
7723
|
*/
|
|
7690
7724
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
|
|
7691
7725
|
/**
|
|
7692
7726
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
7693
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7727
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-modern-dom-apis.md
|
|
7694
7728
|
*/
|
|
7695
7729
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
|
|
7696
7730
|
/**
|
|
7697
7731
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
7698
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7732
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-modern-math-apis.md
|
|
7699
7733
|
*/
|
|
7700
7734
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
|
|
7701
7735
|
/**
|
|
7702
7736
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
7703
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7737
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-module.md
|
|
7704
7738
|
*/
|
|
7705
7739
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>
|
|
7706
7740
|
/**
|
|
7707
7741
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
7708
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7742
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-native-coercion-functions.md
|
|
7709
7743
|
*/
|
|
7710
7744
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
|
|
7711
7745
|
/**
|
|
7712
7746
|
* Prefer negative index over `.length - index` when possible.
|
|
7713
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7747
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-negative-index.md
|
|
7714
7748
|
*/
|
|
7715
7749
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
|
|
7716
7750
|
/**
|
|
7717
7751
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
7718
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7752
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-node-protocol.md
|
|
7719
7753
|
*/
|
|
7720
7754
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
|
|
7721
7755
|
/**
|
|
7722
7756
|
* Prefer `Number` static properties over global ones.
|
|
7723
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7757
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-number-properties.md
|
|
7724
7758
|
*/
|
|
7725
7759
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
|
|
7726
7760
|
/**
|
|
7727
7761
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
7728
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7762
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-object-from-entries.md
|
|
7729
7763
|
*/
|
|
7730
7764
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
|
|
7731
7765
|
/**
|
|
7732
7766
|
* Prefer omitting the `catch` binding parameter.
|
|
7733
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7767
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-optional-catch-binding.md
|
|
7734
7768
|
*/
|
|
7735
7769
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
|
|
7736
7770
|
/**
|
|
7737
7771
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
7738
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7772
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-prototype-methods.md
|
|
7739
7773
|
*/
|
|
7740
7774
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
|
|
7741
7775
|
/**
|
|
7742
7776
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
7743
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7777
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-query-selector.md
|
|
7744
7778
|
*/
|
|
7745
7779
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
|
|
7746
7780
|
/**
|
|
7747
7781
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
7748
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7782
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-reflect-apply.md
|
|
7749
7783
|
*/
|
|
7750
7784
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
|
|
7751
7785
|
/**
|
|
7752
7786
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
7753
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7787
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-regexp-test.md
|
|
7754
7788
|
*/
|
|
7755
7789
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
|
|
7756
7790
|
/**
|
|
7757
7791
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
7758
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7792
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-set-has.md
|
|
7759
7793
|
*/
|
|
7760
7794
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
|
|
7761
7795
|
/**
|
|
7762
7796
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
7763
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7797
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-set-size.md
|
|
7764
7798
|
*/
|
|
7765
7799
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
|
|
7800
|
+
/**
|
|
7801
|
+
* Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
7802
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-single-call.md
|
|
7803
|
+
*/
|
|
7804
|
+
'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>
|
|
7766
7805
|
/**
|
|
7767
7806
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
7768
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7807
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-spread.md
|
|
7769
7808
|
*/
|
|
7770
7809
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
|
|
7771
7810
|
/**
|
|
7772
7811
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
7773
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7812
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-raw.md
|
|
7774
7813
|
*/
|
|
7775
7814
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
|
|
7776
7815
|
/**
|
|
7777
7816
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
7778
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7817
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-replace-all.md
|
|
7779
7818
|
*/
|
|
7780
7819
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
|
|
7781
7820
|
/**
|
|
7782
7821
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
7783
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7822
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-slice.md
|
|
7784
7823
|
*/
|
|
7785
7824
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
|
|
7786
7825
|
/**
|
|
7787
7826
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
7788
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7827
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-starts-ends-with.md
|
|
7789
7828
|
*/
|
|
7790
7829
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
|
|
7791
7830
|
/**
|
|
7792
7831
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
7793
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7832
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-trim-start-end.md
|
|
7794
7833
|
*/
|
|
7795
7834
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
|
|
7796
7835
|
/**
|
|
7797
7836
|
* Prefer using `structuredClone` to create a deep clone.
|
|
7798
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7837
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-structured-clone.md
|
|
7799
7838
|
*/
|
|
7800
7839
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
|
|
7801
7840
|
/**
|
|
7802
7841
|
* Prefer `switch` over multiple `else-if`.
|
|
7803
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7842
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-switch.md
|
|
7804
7843
|
*/
|
|
7805
7844
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
|
|
7806
7845
|
/**
|
|
7807
7846
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
7808
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7847
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-ternary.md
|
|
7809
7848
|
*/
|
|
7810
7849
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
|
|
7811
7850
|
/**
|
|
7812
7851
|
* Prefer top-level await over top-level promises and async function calls.
|
|
7813
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7852
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-top-level-await.md
|
|
7814
7853
|
*/
|
|
7815
7854
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
|
|
7816
7855
|
/**
|
|
7817
7856
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
7818
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7857
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-type-error.md
|
|
7819
7858
|
*/
|
|
7820
7859
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
|
|
7821
7860
|
/**
|
|
7822
7861
|
* Prevent abbreviations.
|
|
7823
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7862
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prevent-abbreviations.md
|
|
7824
7863
|
*/
|
|
7825
7864
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
|
|
7826
7865
|
/**
|
|
7827
7866
|
* Enforce consistent relative URL style.
|
|
7828
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7867
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/relative-url-style.md
|
|
7829
7868
|
*/
|
|
7830
7869
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
|
|
7831
7870
|
/**
|
|
7832
7871
|
* Enforce using the separator argument with `Array#join()`.
|
|
7833
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7872
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-array-join-separator.md
|
|
7834
7873
|
*/
|
|
7835
7874
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
|
|
7836
7875
|
/**
|
|
7837
7876
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
7838
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7877
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-number-to-fixed-digits-argument.md
|
|
7839
7878
|
*/
|
|
7840
7879
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
|
|
7841
7880
|
/**
|
|
7842
7881
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
7843
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7882
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-post-message-target-origin.md
|
|
7844
7883
|
*/
|
|
7845
7884
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
|
|
7846
7885
|
/**
|
|
7847
7886
|
* Enforce better string content.
|
|
7848
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7887
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/string-content.md
|
|
7849
7888
|
*/
|
|
7850
7889
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
|
|
7851
7890
|
/**
|
|
7852
7891
|
* Enforce consistent brace style for `case` clauses.
|
|
7853
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7892
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/switch-case-braces.md
|
|
7854
7893
|
*/
|
|
7855
7894
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
|
|
7856
7895
|
/**
|
|
7857
7896
|
* Fix whitespace-insensitive template indentation.
|
|
7858
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7897
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/template-indent.md
|
|
7859
7898
|
*/
|
|
7860
7899
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
|
|
7861
7900
|
/**
|
|
7862
7901
|
* Enforce consistent case for text encoding identifiers.
|
|
7863
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7902
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/text-encoding-identifier-case.md
|
|
7864
7903
|
*/
|
|
7865
7904
|
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
|
|
7866
7905
|
/**
|
|
7867
7906
|
* Require `new` when creating an error.
|
|
7868
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
7907
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/throw-new-error.md
|
|
7869
7908
|
*/
|
|
7870
7909
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
|
|
7871
7910
|
/**
|
|
@@ -8033,6 +8072,11 @@ interface RuleOptions {
|
|
|
8033
8072
|
* @see https://eslint.vuejs.org/rules/define-props-declaration.html
|
|
8034
8073
|
*/
|
|
8035
8074
|
'vue/define-props-declaration'?: Linter.RuleEntry<VueDefinePropsDeclaration>
|
|
8075
|
+
/**
|
|
8076
|
+
* enforce consistent style for props destructuring
|
|
8077
|
+
* @see https://eslint.vuejs.org/rules/define-props-destructuring.html
|
|
8078
|
+
*/
|
|
8079
|
+
'vue/define-props-destructuring'?: Linter.RuleEntry<VueDefinePropsDestructuring>
|
|
8036
8080
|
/**
|
|
8037
8081
|
* Enforce consistent newlines before and after dots in `<template>`
|
|
8038
8082
|
* @see https://eslint.vuejs.org/rules/dot-location.html
|
|
@@ -8437,7 +8481,7 @@ interface RuleOptions {
|
|
|
8437
8481
|
* disallow adding multiple root nodes to the template
|
|
8438
8482
|
* @see https://eslint.vuejs.org/rules/no-multiple-template-root.html
|
|
8439
8483
|
*/
|
|
8440
|
-
'vue/no-multiple-template-root'?: Linter.RuleEntry<
|
|
8484
|
+
'vue/no-multiple-template-root'?: Linter.RuleEntry<VueNoMultipleTemplateRoot>
|
|
8441
8485
|
/**
|
|
8442
8486
|
* disallow mutation of component props
|
|
8443
8487
|
* @see https://eslint.vuejs.org/rules/no-mutating-props.html
|
|
@@ -11197,7 +11241,7 @@ type NoEmpty = []|[{
|
|
|
11197
11241
|
}]
|
|
11198
11242
|
// ----- no-empty-function -----
|
|
11199
11243
|
type NoEmptyFunction = []|[{
|
|
11200
|
-
allow?: ("functions" | "arrowFunctions" | "generatorFunctions" | "methods" | "generatorMethods" | "getters" | "setters" | "constructors" | "asyncFunctions" | "asyncMethods")[]
|
|
11244
|
+
allow?: ("functions" | "arrowFunctions" | "generatorFunctions" | "methods" | "generatorMethods" | "getters" | "setters" | "constructors" | "asyncFunctions" | "asyncMethods" | "privateConstructors" | "protectedConstructors" | "decoratedFunctions" | "overrideMethods")[]
|
|
11201
11245
|
}]
|
|
11202
11246
|
// ----- no-empty-pattern -----
|
|
11203
11247
|
type NoEmptyPattern = []|[{
|
|
@@ -11399,13 +11443,9 @@ type NoRestrictedModules = ((string | {
|
|
|
11399
11443
|
}[])
|
|
11400
11444
|
// ----- no-restricted-properties -----
|
|
11401
11445
|
type NoRestrictedProperties = ({
|
|
11402
|
-
|
|
11403
|
-
property?: string
|
|
11404
|
-
message?: string
|
|
11446
|
+
[k: string]: unknown | undefined
|
|
11405
11447
|
} | {
|
|
11406
|
-
|
|
11407
|
-
property: string
|
|
11408
|
-
message?: string
|
|
11448
|
+
[k: string]: unknown | undefined
|
|
11409
11449
|
})[]
|
|
11410
11450
|
// ----- no-restricted-syntax -----
|
|
11411
11451
|
type NoRestrictedSyntax = (string | {
|
|
@@ -11429,6 +11469,10 @@ type NoShadow = []|[{
|
|
|
11429
11469
|
allow?: string[]
|
|
11430
11470
|
ignoreOnInitialization?: boolean
|
|
11431
11471
|
}]
|
|
11472
|
+
// ----- no-shadow-restricted-names -----
|
|
11473
|
+
type NoShadowRestrictedNames = []|[{
|
|
11474
|
+
reportGlobalThis?: boolean
|
|
11475
|
+
}]
|
|
11432
11476
|
// ----- no-sync -----
|
|
11433
11477
|
type NoSync = []|[{
|
|
11434
11478
|
allowAtRootLevel?: boolean
|
|
@@ -11480,6 +11524,7 @@ type NoUnusedExpressions = []|[{
|
|
|
11480
11524
|
allowTernary?: boolean
|
|
11481
11525
|
allowTaggedTemplates?: boolean
|
|
11482
11526
|
enforceForJSX?: boolean
|
|
11527
|
+
ignoreDirectives?: boolean
|
|
11483
11528
|
}]
|
|
11484
11529
|
// ----- no-unused-vars -----
|
|
11485
11530
|
type NoUnusedVars = []|[(("all" | "local") | {
|
|
@@ -12521,96 +12566,6 @@ type PerfectionistSortHeritageClauses = []|[{
|
|
|
12521
12566
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
12522
12567
|
})[]
|
|
12523
12568
|
}]
|
|
12524
|
-
// ----- perfectionist/sort-imports -----
|
|
12525
|
-
type PerfectionistSortImports = []|[_PerfectionistSortImportsSortImports]
|
|
12526
|
-
type _PerfectionistSortImportsSortImports = (_PerfectionistSortImportsMaxLineLengthRequiresLineLengthType & {
|
|
12527
|
-
|
|
12528
|
-
fallbackSort?: {
|
|
12529
|
-
|
|
12530
|
-
order?: ("asc" | "desc")
|
|
12531
|
-
|
|
12532
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
12533
|
-
[k: string]: unknown | undefined
|
|
12534
|
-
}
|
|
12535
|
-
|
|
12536
|
-
specialCharacters?: ("remove" | "trim" | "keep")
|
|
12537
|
-
|
|
12538
|
-
ignoreCase?: boolean
|
|
12539
|
-
|
|
12540
|
-
alphabet?: string
|
|
12541
|
-
|
|
12542
|
-
locales?: (string | string[])
|
|
12543
|
-
|
|
12544
|
-
order?: ("asc" | "desc")
|
|
12545
|
-
|
|
12546
|
-
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
12547
|
-
|
|
12548
|
-
customGroups?: {
|
|
12549
|
-
|
|
12550
|
-
value?: {
|
|
12551
|
-
[k: string]: unknown | undefined
|
|
12552
|
-
}
|
|
12553
|
-
|
|
12554
|
-
type?: {
|
|
12555
|
-
[k: string]: unknown | undefined
|
|
12556
|
-
}
|
|
12557
|
-
}
|
|
12558
|
-
|
|
12559
|
-
maxLineLength?: number
|
|
12560
|
-
|
|
12561
|
-
sortSideEffects?: boolean
|
|
12562
|
-
|
|
12563
|
-
environment?: ("node" | "bun")
|
|
12564
|
-
|
|
12565
|
-
tsconfigRootDir?: string
|
|
12566
|
-
|
|
12567
|
-
partitionByComment?: (boolean | (({
|
|
12568
|
-
pattern?: string
|
|
12569
|
-
flags?: string
|
|
12570
|
-
} | string)[] | ({
|
|
12571
|
-
pattern?: string
|
|
12572
|
-
flags?: string
|
|
12573
|
-
} | string)) | {
|
|
12574
|
-
block?: (boolean | (({
|
|
12575
|
-
pattern?: string
|
|
12576
|
-
flags?: string
|
|
12577
|
-
} | string)[] | ({
|
|
12578
|
-
pattern?: string
|
|
12579
|
-
flags?: string
|
|
12580
|
-
} | string)))
|
|
12581
|
-
line?: (boolean | (({
|
|
12582
|
-
pattern?: string
|
|
12583
|
-
flags?: string
|
|
12584
|
-
} | string)[] | ({
|
|
12585
|
-
pattern?: string
|
|
12586
|
-
flags?: string
|
|
12587
|
-
} | string)))
|
|
12588
|
-
})
|
|
12589
|
-
|
|
12590
|
-
partitionByNewLine?: boolean
|
|
12591
|
-
|
|
12592
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
12593
|
-
|
|
12594
|
-
internalPattern?: (({
|
|
12595
|
-
pattern?: string
|
|
12596
|
-
flags?: string
|
|
12597
|
-
} | string)[] | ({
|
|
12598
|
-
pattern?: string
|
|
12599
|
-
flags?: string
|
|
12600
|
-
} | string))
|
|
12601
|
-
|
|
12602
|
-
groups?: (string | string[] | {
|
|
12603
|
-
|
|
12604
|
-
newlinesBetween?: ("ignore" | "always" | "never")
|
|
12605
|
-
})[]
|
|
12606
|
-
})
|
|
12607
|
-
type _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType = ({
|
|
12608
|
-
[k: string]: unknown | undefined
|
|
12609
|
-
} | _PerfectionistSortImports_IsLineLength)
|
|
12610
|
-
interface _PerfectionistSortImports_IsLineLength {
|
|
12611
|
-
type: "line-length"
|
|
12612
|
-
[k: string]: unknown | undefined
|
|
12613
|
-
}
|
|
12614
12569
|
// ----- perfectionist/sort-interfaces -----
|
|
12615
12570
|
type PerfectionistSortInterfaces = {
|
|
12616
12571
|
|
|
@@ -13223,7 +13178,7 @@ type PerfectionistSortModules = []|[{
|
|
|
13223
13178
|
})[]
|
|
13224
13179
|
}]
|
|
13225
13180
|
// ----- perfectionist/sort-named-exports -----
|
|
13226
|
-
type PerfectionistSortNamedExports =
|
|
13181
|
+
type PerfectionistSortNamedExports = {
|
|
13227
13182
|
|
|
13228
13183
|
fallbackSort?: {
|
|
13229
13184
|
|
|
@@ -13249,6 +13204,68 @@ type PerfectionistSortNamedExports = []|[{
|
|
|
13249
13204
|
|
|
13250
13205
|
ignoreAlias?: boolean
|
|
13251
13206
|
|
|
13207
|
+
customGroups?: ({
|
|
13208
|
+
|
|
13209
|
+
newlinesInside?: ("always" | "never")
|
|
13210
|
+
|
|
13211
|
+
fallbackSort?: {
|
|
13212
|
+
|
|
13213
|
+
order?: ("asc" | "desc")
|
|
13214
|
+
|
|
13215
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
13216
|
+
[k: string]: unknown | undefined
|
|
13217
|
+
}
|
|
13218
|
+
|
|
13219
|
+
groupName?: string
|
|
13220
|
+
|
|
13221
|
+
order?: ("asc" | "desc")
|
|
13222
|
+
|
|
13223
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
13224
|
+
anyOf?: {
|
|
13225
|
+
|
|
13226
|
+
modifiers?: ("value" | "type")[]
|
|
13227
|
+
|
|
13228
|
+
selector?: "export"
|
|
13229
|
+
|
|
13230
|
+
elementNamePattern?: (({
|
|
13231
|
+
pattern?: string
|
|
13232
|
+
flags?: string
|
|
13233
|
+
} | string)[] | ({
|
|
13234
|
+
pattern?: string
|
|
13235
|
+
flags?: string
|
|
13236
|
+
} | string))
|
|
13237
|
+
}[]
|
|
13238
|
+
} | {
|
|
13239
|
+
|
|
13240
|
+
newlinesInside?: ("always" | "never")
|
|
13241
|
+
|
|
13242
|
+
fallbackSort?: {
|
|
13243
|
+
|
|
13244
|
+
order?: ("asc" | "desc")
|
|
13245
|
+
|
|
13246
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
13247
|
+
[k: string]: unknown | undefined
|
|
13248
|
+
}
|
|
13249
|
+
|
|
13250
|
+
groupName?: string
|
|
13251
|
+
|
|
13252
|
+
order?: ("asc" | "desc")
|
|
13253
|
+
|
|
13254
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
13255
|
+
|
|
13256
|
+
modifiers?: ("value" | "type")[]
|
|
13257
|
+
|
|
13258
|
+
selector?: "export"
|
|
13259
|
+
|
|
13260
|
+
elementNamePattern?: (({
|
|
13261
|
+
pattern?: string
|
|
13262
|
+
flags?: string
|
|
13263
|
+
} | string)[] | ({
|
|
13264
|
+
pattern?: string
|
|
13265
|
+
flags?: string
|
|
13266
|
+
} | string))
|
|
13267
|
+
})[]
|
|
13268
|
+
|
|
13252
13269
|
partitionByComment?: (boolean | (({
|
|
13253
13270
|
pattern?: string
|
|
13254
13271
|
flags?: string
|
|
@@ -13273,9 +13290,16 @@ type PerfectionistSortNamedExports = []|[{
|
|
|
13273
13290
|
})
|
|
13274
13291
|
|
|
13275
13292
|
partitionByNewLine?: boolean
|
|
13276
|
-
|
|
13293
|
+
|
|
13294
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
13295
|
+
|
|
13296
|
+
groups?: (string | string[] | {
|
|
13297
|
+
|
|
13298
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
13299
|
+
})[]
|
|
13300
|
+
}[]
|
|
13277
13301
|
// ----- perfectionist/sort-named-imports -----
|
|
13278
|
-
type PerfectionistSortNamedImports =
|
|
13302
|
+
type PerfectionistSortNamedImports = {
|
|
13279
13303
|
|
|
13280
13304
|
fallbackSort?: {
|
|
13281
13305
|
|
|
@@ -13301,6 +13325,68 @@ type PerfectionistSortNamedImports = []|[{
|
|
|
13301
13325
|
|
|
13302
13326
|
ignoreAlias?: boolean
|
|
13303
13327
|
|
|
13328
|
+
customGroups?: ({
|
|
13329
|
+
|
|
13330
|
+
newlinesInside?: ("always" | "never")
|
|
13331
|
+
|
|
13332
|
+
fallbackSort?: {
|
|
13333
|
+
|
|
13334
|
+
order?: ("asc" | "desc")
|
|
13335
|
+
|
|
13336
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
13337
|
+
[k: string]: unknown | undefined
|
|
13338
|
+
}
|
|
13339
|
+
|
|
13340
|
+
groupName?: string
|
|
13341
|
+
|
|
13342
|
+
order?: ("asc" | "desc")
|
|
13343
|
+
|
|
13344
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
13345
|
+
anyOf?: {
|
|
13346
|
+
|
|
13347
|
+
modifiers?: ("value" | "type")[]
|
|
13348
|
+
|
|
13349
|
+
selector?: "import"
|
|
13350
|
+
|
|
13351
|
+
elementNamePattern?: (({
|
|
13352
|
+
pattern?: string
|
|
13353
|
+
flags?: string
|
|
13354
|
+
} | string)[] | ({
|
|
13355
|
+
pattern?: string
|
|
13356
|
+
flags?: string
|
|
13357
|
+
} | string))
|
|
13358
|
+
}[]
|
|
13359
|
+
} | {
|
|
13360
|
+
|
|
13361
|
+
newlinesInside?: ("always" | "never")
|
|
13362
|
+
|
|
13363
|
+
fallbackSort?: {
|
|
13364
|
+
|
|
13365
|
+
order?: ("asc" | "desc")
|
|
13366
|
+
|
|
13367
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
13368
|
+
[k: string]: unknown | undefined
|
|
13369
|
+
}
|
|
13370
|
+
|
|
13371
|
+
groupName?: string
|
|
13372
|
+
|
|
13373
|
+
order?: ("asc" | "desc")
|
|
13374
|
+
|
|
13375
|
+
type?: ("alphabetical" | "natural" | "line-length" | "custom" | "unsorted")
|
|
13376
|
+
|
|
13377
|
+
modifiers?: ("value" | "type")[]
|
|
13378
|
+
|
|
13379
|
+
selector?: "import"
|
|
13380
|
+
|
|
13381
|
+
elementNamePattern?: (({
|
|
13382
|
+
pattern?: string
|
|
13383
|
+
flags?: string
|
|
13384
|
+
} | string)[] | ({
|
|
13385
|
+
pattern?: string
|
|
13386
|
+
flags?: string
|
|
13387
|
+
} | string))
|
|
13388
|
+
})[]
|
|
13389
|
+
|
|
13304
13390
|
partitionByComment?: (boolean | (({
|
|
13305
13391
|
pattern?: string
|
|
13306
13392
|
flags?: string
|
|
@@ -13325,7 +13411,14 @@ type PerfectionistSortNamedImports = []|[{
|
|
|
13325
13411
|
})
|
|
13326
13412
|
|
|
13327
13413
|
partitionByNewLine?: boolean
|
|
13328
|
-
|
|
13414
|
+
|
|
13415
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
13416
|
+
|
|
13417
|
+
groups?: (string | string[] | {
|
|
13418
|
+
|
|
13419
|
+
newlinesBetween?: ("ignore" | "always" | "never")
|
|
13420
|
+
})[]
|
|
13421
|
+
}[]
|
|
13329
13422
|
// ----- perfectionist/sort-object-types -----
|
|
13330
13423
|
type PerfectionistSortObjectTypes = {
|
|
13331
13424
|
|
|
@@ -16899,6 +16992,8 @@ type TsNoUnnecessaryCondition = []|[{
|
|
|
16899
16992
|
// ----- ts/no-unnecessary-type-assertion -----
|
|
16900
16993
|
type TsNoUnnecessaryTypeAssertion = []|[{
|
|
16901
16994
|
|
|
16995
|
+
checkLiteralConstAssertions?: boolean
|
|
16996
|
+
|
|
16902
16997
|
typesToIgnore?: string[]
|
|
16903
16998
|
}]
|
|
16904
16999
|
// ----- ts/no-unused-expressions -----
|
|
@@ -16907,6 +17002,7 @@ type TsNoUnusedExpressions = []|[{
|
|
|
16907
17002
|
allowTernary?: boolean
|
|
16908
17003
|
allowTaggedTemplates?: boolean
|
|
16909
17004
|
enforceForJSX?: boolean
|
|
17005
|
+
ignoreDirectives?: boolean
|
|
16910
17006
|
}]
|
|
16911
17007
|
// ----- ts/no-unused-vars -----
|
|
16912
17008
|
type TsNoUnusedVars = []|[(("all" | "local") | {
|
|
@@ -16969,6 +17065,8 @@ type TsOnlyThrowError = []|[{
|
|
|
16969
17065
|
package: string
|
|
16970
17066
|
})[]
|
|
16971
17067
|
|
|
17068
|
+
allowRethrowing?: boolean
|
|
17069
|
+
|
|
16972
17070
|
allowThrowingAny?: boolean
|
|
16973
17071
|
|
|
16974
17072
|
allowThrowingUnknown?: boolean
|
|
@@ -17314,10 +17412,6 @@ interface _UnicornImportStyle_ModuleStyles {
|
|
|
17314
17412
|
interface _UnicornImportStyle_BooleanObject {
|
|
17315
17413
|
[k: string]: boolean | undefined
|
|
17316
17414
|
}
|
|
17317
|
-
// ----- unicorn/no-array-push-push -----
|
|
17318
|
-
type UnicornNoArrayPushPush = []|[{
|
|
17319
|
-
ignore?: unknown[]
|
|
17320
|
-
}]
|
|
17321
17415
|
// ----- unicorn/no-array-reduce -----
|
|
17322
17416
|
type UnicornNoArrayReduce = []|[{
|
|
17323
17417
|
allowSimpleOperations?: boolean
|
|
@@ -17413,6 +17507,10 @@ type UnicornPreferNumberProperties = []|[{
|
|
|
17413
17507
|
type UnicornPreferObjectFromEntries = []|[{
|
|
17414
17508
|
functions?: unknown[]
|
|
17415
17509
|
}]
|
|
17510
|
+
// ----- unicorn/prefer-single-call -----
|
|
17511
|
+
type UnicornPreferSingleCall = []|[{
|
|
17512
|
+
ignore?: unknown[]
|
|
17513
|
+
}]
|
|
17416
17514
|
// ----- unicorn/prefer-structured-clone -----
|
|
17417
17515
|
type UnicornPreferStructuredClone = []|[{
|
|
17418
17516
|
functions?: unknown[]
|
|
@@ -17655,6 +17753,10 @@ type VueDefineMacrosOrder = []|[{
|
|
|
17655
17753
|
}]
|
|
17656
17754
|
// ----- vue/define-props-declaration -----
|
|
17657
17755
|
type VueDefinePropsDeclaration = []|[("type-based" | "runtime")]
|
|
17756
|
+
// ----- vue/define-props-destructuring -----
|
|
17757
|
+
type VueDefinePropsDestructuring = []|[{
|
|
17758
|
+
destructure?: ("always" | "never")
|
|
17759
|
+
}]
|
|
17658
17760
|
// ----- vue/dot-location -----
|
|
17659
17761
|
type VueDotLocation = []|[("object" | "property")]
|
|
17660
17762
|
// ----- vue/dot-notation -----
|
|
@@ -18301,6 +18403,10 @@ type VueNoLoneTemplate = []|[{
|
|
|
18301
18403
|
type VueNoMultiSpaces = []|[{
|
|
18302
18404
|
ignoreProperties?: boolean
|
|
18303
18405
|
}]
|
|
18406
|
+
// ----- vue/no-multiple-template-root -----
|
|
18407
|
+
type VueNoMultipleTemplateRoot = []|[{
|
|
18408
|
+
disallowComments?: boolean
|
|
18409
|
+
}]
|
|
18304
18410
|
// ----- vue/no-mutating-props -----
|
|
18305
18411
|
type VueNoMutatingProps = []|[{
|
|
18306
18412
|
shallowOnly?: boolean
|
|
@@ -18757,6 +18863,7 @@ type YamlFlowSequenceBracketSpacing = []|[("always" | "never")]|[("always" | "ne
|
|
|
18757
18863
|
type YamlIndent = []|[number]|[number, {
|
|
18758
18864
|
indentBlockSequences?: boolean
|
|
18759
18865
|
indicatorValueIndent?: number
|
|
18866
|
+
alignMultilineFlowScalars?: boolean
|
|
18760
18867
|
}]
|
|
18761
18868
|
// ----- yaml/key-name-casing -----
|
|
18762
18869
|
type YamlKeyNameCasing = []|[{
|