@vinicunca/eslint-config 3.8.0 → 3.10.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.
Files changed (3) hide show
  1. package/dist/index.d.ts +226 -180
  2. package/dist/index.js +112 -48
  3. package/package.json +16 -12
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.6.1/docs/rules/consistent-type-specifier-style.md
664
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/default.md
669
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/dynamic-import-chunkname.md
674
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/export.md
679
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/exports-last.md
684
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/extensions.md
689
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/first.md
694
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/group-exports.md
699
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/imports-first.md
704
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/max-dependencies.md
710
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/named.md
715
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/namespace.md
720
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/newline-after-import.md
725
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/no-absolute-path.md
730
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/no-amd.md
735
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/no-anonymous-default-export.md
740
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/no-commonjs.md
745
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/no-cycle.md
750
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/no-default-export.md
755
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/no-deprecated.md
760
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/no-duplicates.md
765
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/no-dynamic-require.md
770
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/no-empty-named-blocks.md
775
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/no-extraneous-dependencies.md
780
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/no-import-module-exports.md
785
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/no-internal-modules.md
790
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/no-mutable-exports.md
795
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/no-named-as-default.md
800
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/no-named-as-default-member.md
805
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/no-named-default.md
810
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/no-named-export.md
815
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/no-namespace.md
820
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/no-nodejs-modules.md
825
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/no-relative-packages.md
830
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/no-relative-parent-imports.md
835
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/no-rename-default.md
840
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/no-restricted-paths.md
845
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/no-self-import.md
850
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/no-unassigned-import.md
855
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/no-unresolved.md
860
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/no-unused-modules.md
865
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/no-useless-path-segments.md
870
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/no-webpack-loader-syntax.md
875
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/order.md
880
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/prefer-default-export.md
885
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/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.6.1/docs/rules/unambiguous.md
890
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.2/docs/rules/unambiguous.md
891
891
  */
892
892
  'import/unambiguous'?: Linter.RuleEntry<[]>
893
893
  /**
@@ -2981,6 +2981,26 @@ interface RuleOptions {
2981
2981
  */
2982
2982
  'react-naming-convention/use-state'?: Linter.RuleEntry<[]>
2983
2983
  'react-refresh/only-export-components'?: Linter.RuleEntry<ReactRefreshOnlyExportComponents>
2984
+ /**
2985
+ * enforce that every 'addEventListener' in a component or custom Hook has a corresponding 'removeEventListener'.
2986
+ * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-event-listener
2987
+ */
2988
+ 'react-web-api/no-leaked-event-listener'?: Linter.RuleEntry<[]>
2989
+ /**
2990
+ * enforce that every 'setInterval' in a component or custom Hook has a corresponding 'clearInterval'.
2991
+ * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-interval
2992
+ */
2993
+ 'react-web-api/no-leaked-interval'?: Linter.RuleEntry<[]>
2994
+ /**
2995
+ * enforce cleanup of 'ResizeObserver' instances in components and custom Hooks.
2996
+ * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-resize-observer
2997
+ */
2998
+ 'react-web-api/no-leaked-resize-observer'?: Linter.RuleEntry<[]>
2999
+ /**
3000
+ * enforce that every 'setTimeout' in a component or custom Hook has a corresponding 'clearTimeout'.
3001
+ * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-timeout
3002
+ */
3003
+ 'react-web-api/no-leaked-timeout'?: Linter.RuleEntry<[]>
2984
3004
  /**
2985
3005
  * disallow using shorthand boolean attributes
2986
3006
  * @see https://eslint-react.xyz/docs/rules/avoid-shorthand-boolean
@@ -7149,642 +7169,643 @@ interface RuleOptions {
7149
7169
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
7150
7170
  /**
7151
7171
  * Improve regexes by making them shorter, consistent, and safer.
7152
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/better-regex.md
7172
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/better-regex.md
7153
7173
  */
7154
7174
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
7155
7175
  /**
7156
7176
  * Enforce a specific parameter name in catch clauses.
7157
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/catch-error-name.md
7177
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/catch-error-name.md
7158
7178
  */
7159
7179
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
7160
7180
  /**
7161
7181
  * Enforce consistent assertion style with `node:assert`.
7162
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-assert.md
7182
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-assert.md
7163
7183
  */
7164
7184
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
7165
7185
  /**
7166
7186
  * Prefer passing `Date` directly to the constructor when cloning.
7167
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-date-clone.md
7187
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-date-clone.md
7168
7188
  */
7169
7189
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
7170
7190
  /**
7171
7191
  * Use destructured variables over properties.
7172
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-destructuring.md
7192
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-destructuring.md
7173
7193
  */
7174
7194
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
7175
7195
  /**
7176
7196
  * Prefer consistent types when spreading a ternary in an array literal.
7177
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-empty-array-spread.md
7197
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-empty-array-spread.md
7178
7198
  */
7179
7199
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
7180
7200
  /**
7181
7201
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
7182
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-existence-index-check.md
7202
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-existence-index-check.md
7183
7203
  */
7184
7204
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
7185
7205
  /**
7186
7206
  * Move function definitions to the highest possible scope.
7187
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-function-scoping.md
7207
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-function-scoping.md
7188
7208
  */
7189
7209
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
7190
7210
  /**
7191
7211
  * Enforce correct `Error` subclassing.
7192
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/custom-error-definition.md
7212
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/custom-error-definition.md
7193
7213
  */
7194
7214
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
7195
7215
  /**
7196
7216
  * Enforce no spaces between braces.
7197
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/empty-brace-spaces.md
7217
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/empty-brace-spaces.md
7198
7218
  */
7199
7219
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
7200
7220
  /**
7201
7221
  * Enforce passing a `message` value when creating a built-in error.
7202
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/error-message.md
7222
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/error-message.md
7203
7223
  */
7204
7224
  'unicorn/error-message'?: Linter.RuleEntry<[]>
7205
7225
  /**
7206
- * Require escape sequences to use uppercase values.
7207
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/escape-case.md
7226
+ * Require escape sequences to use uppercase or lowercase values.
7227
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/escape-case.md
7208
7228
  */
7209
- 'unicorn/escape-case'?: Linter.RuleEntry<[]>
7229
+ 'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>
7210
7230
  /**
7211
7231
  * Add expiration conditions to TODO comments.
7212
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/expiring-todo-comments.md
7232
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/expiring-todo-comments.md
7213
7233
  */
7214
7234
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
7215
7235
  /**
7216
7236
  * Enforce explicitly comparing the `length` or `size` property of a value.
7217
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/explicit-length-check.md
7237
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/explicit-length-check.md
7218
7238
  */
7219
7239
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
7220
7240
  /**
7221
7241
  * Enforce a case style for filenames.
7222
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/filename-case.md
7242
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/filename-case.md
7223
7243
  */
7224
7244
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
7225
7245
  /**
7226
7246
  * Enforce specific import styles per module.
7227
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/import-style.md
7247
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/import-style.md
7228
7248
  */
7229
7249
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
7230
7250
  /**
7231
7251
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
7232
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/new-for-builtins.md
7252
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/new-for-builtins.md
7233
7253
  */
7234
7254
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
7235
7255
  /**
7236
7256
  * Enforce specifying rules to disable in `eslint-disable` comments.
7237
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-abusive-eslint-disable.md
7257
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-abusive-eslint-disable.md
7238
7258
  */
7239
7259
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
7240
7260
  /**
7241
7261
  * Disallow recursive access to `this` within getters and setters.
7242
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-accessor-recursion.md
7262
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-accessor-recursion.md
7243
7263
  */
7244
7264
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
7245
7265
  /**
7246
7266
  * Disallow anonymous functions and classes as the default export.
7247
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-anonymous-default-export.md
7267
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-anonymous-default-export.md
7248
7268
  */
7249
7269
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
7250
7270
  /**
7251
7271
  * Prevent passing a function reference directly to iterator methods.
7252
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-callback-reference.md
7272
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-callback-reference.md
7253
7273
  */
7254
7274
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
7255
7275
  /**
7256
7276
  * Prefer `for…of` over the `forEach` method.
7257
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-for-each.md
7277
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-for-each.md
7258
7278
  */
7259
7279
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
7260
7280
  /**
7261
7281
  * Disallow using the `this` argument in array methods.
7262
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-method-this-argument.md
7282
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-method-this-argument.md
7263
7283
  */
7264
7284
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
7265
7285
  /**
7266
7286
  * Enforce combining multiple `Array#push()` into one call.
7267
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-push-push.md
7287
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-push-push.md
7268
7288
  */
7269
7289
  'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>
7270
7290
  /**
7271
7291
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
7272
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-reduce.md
7292
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-reduce.md
7273
7293
  */
7274
7294
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
7275
7295
  /**
7276
7296
  * Disallow member access from await expression.
7277
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-expression-member.md
7297
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-await-expression-member.md
7278
7298
  */
7279
7299
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
7280
7300
  /**
7281
7301
  * Disallow using `await` in `Promise` method parameters.
7282
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-in-promise-methods.md
7302
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-await-in-promise-methods.md
7283
7303
  */
7284
7304
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
7285
7305
  /**
7286
7306
  * Do not use leading/trailing space between `console.log` parameters.
7287
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-console-spaces.md
7307
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-console-spaces.md
7288
7308
  */
7289
7309
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
7290
7310
  /**
7291
7311
  * Do not use `document.cookie` directly.
7292
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-document-cookie.md
7312
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-document-cookie.md
7293
7313
  */
7294
7314
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
7295
7315
  /**
7296
7316
  * Disallow empty files.
7297
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-empty-file.md
7317
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-empty-file.md
7298
7318
  */
7299
7319
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
7300
7320
  /**
7301
7321
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
7302
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-for-loop.md
7322
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-for-loop.md
7303
7323
  */
7304
7324
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
7305
7325
  /**
7306
7326
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
7307
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-hex-escape.md
7327
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-hex-escape.md
7308
7328
  */
7309
7329
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
7310
7330
  /**
7311
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/deprecated-rules.md#no-instanceof-array
7331
+ * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
7332
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/deprecated-rules.md#no-instanceof-array
7312
7333
  * @deprecated
7313
7334
  */
7314
7335
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
7315
7336
  /**
7316
7337
  * Disallow `instanceof` with built-in objects
7317
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-instanceof-builtins.md
7338
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-instanceof-builtins.md
7318
7339
  */
7319
7340
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
7320
7341
  /**
7321
7342
  * Disallow invalid options in `fetch()` and `new Request()`.
7322
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-fetch-options.md
7343
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-invalid-fetch-options.md
7323
7344
  */
7324
7345
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
7325
7346
  /**
7326
7347
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
7327
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-remove-event-listener.md
7348
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-invalid-remove-event-listener.md
7328
7349
  */
7329
7350
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
7330
7351
  /**
7331
7352
  * Disallow identifiers starting with `new` or `class`.
7332
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-keyword-prefix.md
7353
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-keyword-prefix.md
7333
7354
  */
7334
7355
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
7335
7356
  /**
7336
7357
  * Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.
7337
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-length-as-slice-end.md
7358
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-length-as-slice-end.md
7338
7359
  */
7339
7360
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
7340
7361
  /**
7341
7362
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
7342
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-lonely-if.md
7363
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-lonely-if.md
7343
7364
  */
7344
7365
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
7345
7366
  /**
7346
7367
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
7347
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-magic-array-flat-depth.md
7368
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-magic-array-flat-depth.md
7348
7369
  */
7349
7370
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
7350
7371
  /**
7351
7372
  * Disallow named usage of default import and export.
7352
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-named-default.md
7373
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-named-default.md
7353
7374
  */
7354
7375
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>
7355
7376
  /**
7356
7377
  * Disallow negated conditions.
7357
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negated-condition.md
7378
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-negated-condition.md
7358
7379
  */
7359
7380
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
7360
7381
  /**
7361
7382
  * Disallow negated expression in equality check.
7362
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negation-in-equality-check.md
7383
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-negation-in-equality-check.md
7363
7384
  */
7364
7385
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
7365
7386
  /**
7366
7387
  * Disallow nested ternary expressions.
7367
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-nested-ternary.md
7388
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-nested-ternary.md
7368
7389
  */
7369
7390
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
7370
7391
  /**
7371
7392
  * Disallow `new Array()`.
7372
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-array.md
7393
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-new-array.md
7373
7394
  */
7374
7395
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
7375
7396
  /**
7376
7397
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
7377
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-buffer.md
7398
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-new-buffer.md
7378
7399
  */
7379
7400
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
7380
7401
  /**
7381
7402
  * Disallow the use of the `null` literal.
7382
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-null.md
7403
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-null.md
7383
7404
  */
7384
7405
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
7385
7406
  /**
7386
7407
  * Disallow the use of objects as default parameters.
7387
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-object-as-default-parameter.md
7408
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-object-as-default-parameter.md
7388
7409
  */
7389
7410
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
7390
7411
  /**
7391
7412
  * Disallow `process.exit()`.
7392
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-process-exit.md
7413
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-process-exit.md
7393
7414
  */
7394
7415
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
7395
7416
  /**
7396
7417
  * Disallow passing single-element arrays to `Promise` methods.
7397
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-single-promise-in-promise-methods.md
7418
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-single-promise-in-promise-methods.md
7398
7419
  */
7399
7420
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
7400
7421
  /**
7401
7422
  * Disallow classes that only have static members.
7402
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-static-only-class.md
7423
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-static-only-class.md
7403
7424
  */
7404
7425
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
7405
7426
  /**
7406
7427
  * Disallow `then` property.
7407
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-thenable.md
7428
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-thenable.md
7408
7429
  */
7409
7430
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
7410
7431
  /**
7411
7432
  * Disallow assigning `this` to a variable.
7412
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-this-assignment.md
7433
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-this-assignment.md
7413
7434
  */
7414
7435
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
7415
7436
  /**
7416
7437
  * Disallow comparing `undefined` using `typeof`.
7417
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-typeof-undefined.md
7438
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-typeof-undefined.md
7418
7439
  */
7419
7440
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
7420
7441
  /**
7421
7442
  * Disallow awaiting non-promise values.
7422
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-await.md
7443
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unnecessary-await.md
7423
7444
  */
7424
7445
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
7425
7446
  /**
7426
7447
  * Enforce the use of built-in methods instead of unnecessary polyfills.
7427
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-polyfills.md
7448
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unnecessary-polyfills.md
7428
7449
  */
7429
7450
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
7430
7451
  /**
7431
7452
  * Disallow unreadable array destructuring.
7432
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-array-destructuring.md
7453
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unreadable-array-destructuring.md
7433
7454
  */
7434
7455
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
7435
7456
  /**
7436
7457
  * Disallow unreadable IIFEs.
7437
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-iife.md
7458
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unreadable-iife.md
7438
7459
  */
7439
7460
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
7440
7461
  /**
7441
7462
  * Disallow unused object properties.
7442
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unused-properties.md
7463
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unused-properties.md
7443
7464
  */
7444
7465
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
7445
7466
  /**
7446
7467
  * Disallow useless fallback when spreading in object literals.
7447
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-fallback-in-spread.md
7468
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-fallback-in-spread.md
7448
7469
  */
7449
7470
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
7450
7471
  /**
7451
7472
  * Disallow useless array length check.
7452
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-length-check.md
7473
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-length-check.md
7453
7474
  */
7454
7475
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
7455
7476
  /**
7456
7477
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
7457
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-promise-resolve-reject.md
7478
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-promise-resolve-reject.md
7458
7479
  */
7459
7480
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
7460
7481
  /**
7461
7482
  * Disallow unnecessary spread.
7462
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-spread.md
7483
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-spread.md
7463
7484
  */
7464
7485
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
7465
7486
  /**
7466
7487
  * Disallow useless case in switch statements.
7467
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-switch-case.md
7488
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-switch-case.md
7468
7489
  */
7469
7490
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
7470
7491
  /**
7471
7492
  * Disallow useless `undefined`.
7472
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-undefined.md
7493
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-undefined.md
7473
7494
  */
7474
7495
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
7475
7496
  /**
7476
7497
  * Disallow number literals with zero fractions or dangling dots.
7477
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-zero-fractions.md
7498
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-zero-fractions.md
7478
7499
  */
7479
7500
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
7480
7501
  /**
7481
7502
  * Enforce proper case for numeric literals.
7482
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/number-literal-case.md
7503
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/number-literal-case.md
7483
7504
  */
7484
- 'unicorn/number-literal-case'?: Linter.RuleEntry<[]>
7505
+ 'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>
7485
7506
  /**
7486
7507
  * Enforce the style of numeric separators by correctly grouping digits.
7487
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/numeric-separators-style.md
7508
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/numeric-separators-style.md
7488
7509
  */
7489
7510
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
7490
7511
  /**
7491
7512
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
7492
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-add-event-listener.md
7513
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-add-event-listener.md
7493
7514
  */
7494
7515
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
7495
7516
  /**
7496
7517
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
7497
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-find.md
7518
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-find.md
7498
7519
  */
7499
7520
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
7500
7521
  /**
7501
7522
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
7502
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat.md
7523
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-flat.md
7503
7524
  */
7504
7525
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
7505
7526
  /**
7506
7527
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
7507
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat-map.md
7528
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-flat-map.md
7508
7529
  */
7509
7530
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
7510
7531
  /**
7511
7532
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
7512
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-index-of.md
7533
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-index-of.md
7513
7534
  */
7514
7535
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
7515
7536
  /**
7516
7537
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
7517
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-some.md
7538
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-some.md
7518
7539
  */
7519
7540
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
7520
7541
  /**
7521
7542
  * Prefer `.at()` method for index access and `String#charAt()`.
7522
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-at.md
7543
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-at.md
7523
7544
  */
7524
7545
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
7525
7546
  /**
7526
7547
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
7527
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-blob-reading-methods.md
7548
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-blob-reading-methods.md
7528
7549
  */
7529
7550
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
7530
7551
  /**
7531
7552
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
7532
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-code-point.md
7553
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-code-point.md
7533
7554
  */
7534
7555
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
7535
7556
  /**
7536
7557
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
7537
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-date-now.md
7558
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-date-now.md
7538
7559
  */
7539
7560
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
7540
7561
  /**
7541
7562
  * Prefer default parameters over reassignment.
7542
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-default-parameters.md
7563
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-default-parameters.md
7543
7564
  */
7544
7565
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
7545
7566
  /**
7546
7567
  * Prefer `Node#append()` over `Node#appendChild()`.
7547
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-append.md
7568
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-dom-node-append.md
7548
7569
  */
7549
7570
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
7550
7571
  /**
7551
7572
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
7552
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-dataset.md
7573
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-dom-node-dataset.md
7553
7574
  */
7554
7575
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
7555
7576
  /**
7556
7577
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
7557
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-remove.md
7578
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-dom-node-remove.md
7558
7579
  */
7559
7580
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
7560
7581
  /**
7561
7582
  * Prefer `.textContent` over `.innerText`.
7562
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-text-content.md
7583
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-dom-node-text-content.md
7563
7584
  */
7564
7585
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
7565
7586
  /**
7566
7587
  * Prefer `EventTarget` over `EventEmitter`.
7567
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-event-target.md
7588
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-event-target.md
7568
7589
  */
7569
7590
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
7570
7591
  /**
7571
7592
  * Prefer `export…from` when re-exporting.
7572
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-export-from.md
7593
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-export-from.md
7573
7594
  */
7574
7595
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
7575
7596
  /**
7576
7597
  * Prefer `globalThis` over `window`, `self`, and `global`.
7577
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-global-this.md
7598
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-global-this.md
7578
7599
  */
7579
7600
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
7580
7601
  /**
7581
7602
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
7582
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-includes.md
7603
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-includes.md
7583
7604
  */
7584
7605
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
7585
7606
  /**
7586
7607
  * Prefer reading a JSON file as a buffer.
7587
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-json-parse-buffer.md
7608
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-json-parse-buffer.md
7588
7609
  */
7589
7610
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
7590
7611
  /**
7591
7612
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
7592
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-keyboard-event-key.md
7613
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-keyboard-event-key.md
7593
7614
  */
7594
7615
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
7595
7616
  /**
7596
7617
  * Prefer using a logical operator over a ternary.
7597
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-logical-operator-over-ternary.md
7618
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-logical-operator-over-ternary.md
7598
7619
  */
7599
7620
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
7600
7621
  /**
7601
7622
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
7602
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-min-max.md
7623
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-math-min-max.md
7603
7624
  */
7604
7625
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
7605
7626
  /**
7606
7627
  * Enforce the use of `Math.trunc` instead of bitwise operators.
7607
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-trunc.md
7628
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-math-trunc.md
7608
7629
  */
7609
7630
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
7610
7631
  /**
7611
7632
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
7612
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-dom-apis.md
7633
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-modern-dom-apis.md
7613
7634
  */
7614
7635
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
7615
7636
  /**
7616
7637
  * Prefer modern `Math` APIs over legacy patterns.
7617
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-math-apis.md
7638
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-modern-math-apis.md
7618
7639
  */
7619
7640
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
7620
7641
  /**
7621
7642
  * Prefer JavaScript modules (ESM) over CommonJS.
7622
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-module.md
7643
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-module.md
7623
7644
  */
7624
7645
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
7625
7646
  /**
7626
7647
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
7627
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-native-coercion-functions.md
7648
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-native-coercion-functions.md
7628
7649
  */
7629
7650
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
7630
7651
  /**
7631
7652
  * Prefer negative index over `.length - index` when possible.
7632
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-negative-index.md
7653
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-negative-index.md
7633
7654
  */
7634
7655
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
7635
7656
  /**
7636
7657
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
7637
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-node-protocol.md
7658
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-node-protocol.md
7638
7659
  */
7639
7660
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
7640
7661
  /**
7641
7662
  * Prefer `Number` static properties over global ones.
7642
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-number-properties.md
7663
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-number-properties.md
7643
7664
  */
7644
7665
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
7645
7666
  /**
7646
7667
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
7647
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-object-from-entries.md
7668
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-object-from-entries.md
7648
7669
  */
7649
7670
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
7650
7671
  /**
7651
7672
  * Prefer omitting the `catch` binding parameter.
7652
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-optional-catch-binding.md
7673
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-optional-catch-binding.md
7653
7674
  */
7654
7675
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
7655
7676
  /**
7656
7677
  * Prefer borrowing methods from the prototype instead of the instance.
7657
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-prototype-methods.md
7678
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-prototype-methods.md
7658
7679
  */
7659
7680
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
7660
7681
  /**
7661
7682
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
7662
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-query-selector.md
7683
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-query-selector.md
7663
7684
  */
7664
7685
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
7665
7686
  /**
7666
7687
  * Prefer `Reflect.apply()` over `Function#apply()`.
7667
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-reflect-apply.md
7688
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-reflect-apply.md
7668
7689
  */
7669
7690
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
7670
7691
  /**
7671
7692
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
7672
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-regexp-test.md
7693
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-regexp-test.md
7673
7694
  */
7674
7695
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
7675
7696
  /**
7676
7697
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
7677
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-has.md
7698
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-set-has.md
7678
7699
  */
7679
7700
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
7680
7701
  /**
7681
7702
  * Prefer using `Set#size` instead of `Array#length`.
7682
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-size.md
7703
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-set-size.md
7683
7704
  */
7684
7705
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
7685
7706
  /**
7686
7707
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
7687
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-spread.md
7708
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-spread.md
7688
7709
  */
7689
7710
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
7690
7711
  /**
7691
7712
  * Prefer using the `String.raw` tag to avoid escaping `\`.
7692
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-raw.md
7713
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-raw.md
7693
7714
  */
7694
7715
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
7695
7716
  /**
7696
7717
  * Prefer `String#replaceAll()` over regex searches with the global flag.
7697
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-replace-all.md
7718
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-replace-all.md
7698
7719
  */
7699
7720
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
7700
7721
  /**
7701
7722
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
7702
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-slice.md
7723
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-slice.md
7703
7724
  */
7704
7725
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
7705
7726
  /**
7706
7727
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
7707
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-starts-ends-with.md
7728
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-starts-ends-with.md
7708
7729
  */
7709
7730
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
7710
7731
  /**
7711
7732
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
7712
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-trim-start-end.md
7733
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-trim-start-end.md
7713
7734
  */
7714
7735
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
7715
7736
  /**
7716
7737
  * Prefer using `structuredClone` to create a deep clone.
7717
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-structured-clone.md
7738
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-structured-clone.md
7718
7739
  */
7719
7740
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
7720
7741
  /**
7721
7742
  * Prefer `switch` over multiple `else-if`.
7722
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-switch.md
7743
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-switch.md
7723
7744
  */
7724
7745
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
7725
7746
  /**
7726
7747
  * Prefer ternary expressions over simple `if-else` statements.
7727
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-ternary.md
7748
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-ternary.md
7728
7749
  */
7729
7750
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
7730
7751
  /**
7731
7752
  * Prefer top-level await over top-level promises and async function calls.
7732
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-top-level-await.md
7753
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-top-level-await.md
7733
7754
  */
7734
7755
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
7735
7756
  /**
7736
7757
  * Enforce throwing `TypeError` in type checking conditions.
7737
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-type-error.md
7758
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-type-error.md
7738
7759
  */
7739
7760
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
7740
7761
  /**
7741
7762
  * Prevent abbreviations.
7742
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prevent-abbreviations.md
7763
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prevent-abbreviations.md
7743
7764
  */
7744
7765
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
7745
7766
  /**
7746
7767
  * Enforce consistent relative URL style.
7747
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/relative-url-style.md
7768
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/relative-url-style.md
7748
7769
  */
7749
7770
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
7750
7771
  /**
7751
7772
  * Enforce using the separator argument with `Array#join()`.
7752
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-array-join-separator.md
7773
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/require-array-join-separator.md
7753
7774
  */
7754
7775
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
7755
7776
  /**
7756
7777
  * Enforce using the digits argument with `Number#toFixed()`.
7757
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-number-to-fixed-digits-argument.md
7778
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/require-number-to-fixed-digits-argument.md
7758
7779
  */
7759
7780
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
7760
7781
  /**
7761
7782
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
7762
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-post-message-target-origin.md
7783
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/require-post-message-target-origin.md
7763
7784
  */
7764
7785
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
7765
7786
  /**
7766
7787
  * Enforce better string content.
7767
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/string-content.md
7788
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/string-content.md
7768
7789
  */
7769
7790
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
7770
7791
  /**
7771
7792
  * Enforce consistent brace style for `case` clauses.
7772
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/switch-case-braces.md
7793
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/switch-case-braces.md
7773
7794
  */
7774
7795
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
7775
7796
  /**
7776
7797
  * Fix whitespace-insensitive template indentation.
7777
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/template-indent.md
7798
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/template-indent.md
7778
7799
  */
7779
7800
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
7780
7801
  /**
7781
7802
  * Enforce consistent case for text encoding identifiers.
7782
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/text-encoding-identifier-case.md
7803
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/text-encoding-identifier-case.md
7783
7804
  */
7784
7805
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
7785
7806
  /**
7786
7807
  * Require `new` when creating an error.
7787
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/throw-new-error.md
7808
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/throw-new-error.md
7788
7809
  */
7789
7810
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
7790
7811
  /**
@@ -9516,7 +9537,7 @@ type IdMatch = []|[string]|[string, {
9516
9537
  // ----- implicit-arrow-linebreak -----
9517
9538
  type ImplicitArrowLinebreak = []|[("beside" | "below")]
9518
9539
  // ----- import/consistent-type-specifier-style -----
9519
- type ImportConsistentTypeSpecifierStyle = []|[("prefer-inline" | "prefer-top-level")]
9540
+ type ImportConsistentTypeSpecifierStyle = []|[("prefer-top-level" | "prefer-inline")]
9520
9541
  // ----- import/dynamic-import-chunkname -----
9521
9542
  type ImportDynamicImportChunkname = []|[{
9522
9543
  importFunctions?: string[]
@@ -9736,6 +9757,17 @@ type ImportOrder = []|[{
9736
9757
  position?: ("after" | "before")
9737
9758
  }[]
9738
9759
  "newlines-between"?: ("ignore" | "always" | "always-and-inside-groups" | "never")
9760
+ "newlines-between-types"?: ("ignore" | "always" | "always-and-inside-groups" | "never")
9761
+ consolidateIslands?: ("inside-groups" | "never")
9762
+ sortTypesGroup?: boolean
9763
+ named?: (boolean | {
9764
+ enabled?: boolean
9765
+ import?: boolean
9766
+ export?: boolean
9767
+ require?: boolean
9768
+ cjsExports?: boolean
9769
+ types?: ("mixed" | "types-first" | "types-last")
9770
+ })
9739
9771
  alphabetize?: {
9740
9772
  caseInsensitive?: boolean
9741
9773
  order?: ("ignore" | "asc" | "desc")
@@ -17029,6 +17061,8 @@ type UnicornCatchErrorName = []|[{
17029
17061
  type UnicornConsistentFunctionScoping = []|[{
17030
17062
  checkArrowFunctions?: boolean
17031
17063
  }]
17064
+ // ----- unicorn/escape-case -----
17065
+ type UnicornEscapeCase = []|[("uppercase" | "lowercase")]
17032
17066
  // ----- unicorn/expiring-todo-comments -----
17033
17067
  type UnicornExpiringTodoComments = []|[{
17034
17068
  terms?: string[]
@@ -17113,6 +17147,10 @@ type UnicornNoUselessUndefined = []|[{
17113
17147
  checkArguments?: boolean
17114
17148
  checkArrowFunctionBody?: boolean
17115
17149
  }]
17150
+ // ----- unicorn/number-literal-case -----
17151
+ type UnicornNumberLiteralCase = []|[{
17152
+ hexadecimalValue?: ("uppercase" | "lowercase")
17153
+ }]
17116
17154
  // ----- unicorn/numeric-separators-style -----
17117
17155
  type UnicornNumericSeparatorsStyle = []|[{
17118
17156
  binary?: {
@@ -18798,7 +18836,8 @@ interface VendoredPrettierOptionsRequired {
18798
18836
  }
18799
18837
 
18800
18838
  type Awaitable<T> = Promise<T> | T;
18801
- type Rules = RuleOptions;
18839
+ interface Rules extends RuleOptions {
18840
+ }
18802
18841
 
18803
18842
  type TypedFlatConfigItem = {
18804
18843
  /**
@@ -18828,6 +18867,13 @@ interface OptionsVue extends OptionsOverrides {
18828
18867
  * @default 3
18829
18868
  */
18830
18869
  vueVersion?: 2 | 3;
18870
+ /**
18871
+ * Vue accessibility plugin. Help check a11y issue in `.vue` files upon enabled
18872
+ *
18873
+ * @see https://vue-a11y.github.io/eslint-plugin-vuejs-accessibility/
18874
+ * @default false
18875
+ */
18876
+ a11y?: boolean;
18831
18877
  }
18832
18878
  type OptionsTypescript = (OptionsOverrides & OptionsTypeScriptParserOptions) | (OptionsOverrides & OptionsTypeScriptWithTypes);
18833
18879
  interface OptionsFormatters {
@@ -19102,7 +19148,7 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
19102
19148
  * Currently it's disabled by default, as it's still experimental.
19103
19149
  * In the future it will be smartly enabled based on the project usage.
19104
19150
  *
19105
- * @see https://github.com/antfu/pnpm-workspace-utils
19151
+ * @see https://github.com/antfu/pnpm-workspace-utils
19106
19152
  * @experimental
19107
19153
  * @default false
19108
19154
  */