@vinicunca/eslint-config 3.9.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 (2) hide show
  1. package/dist/index.d.ts +184 -177
  2. package/package.json +8 -8
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.9.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.9.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.9.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.9.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.9.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.9.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.9.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.9.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.9.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.9.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.9.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.9.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.9.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.9.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.9.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.9.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.9.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.9.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.9.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.9.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.9.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.9.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.9.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.9.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.9.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.9.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.9.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.9.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.9.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.9.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.9.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.9.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.9.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.9.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.9.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.9.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.9.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.9.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.9.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.9.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.9.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.9.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.9.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.9.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.9.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.9.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
  /**
@@ -7169,642 +7169,643 @@ interface RuleOptions {
7169
7169
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
7170
7170
  /**
7171
7171
  * Improve regexes by making them shorter, consistent, and safer.
7172
- * @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
7173
7173
  */
7174
7174
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
7175
7175
  /**
7176
7176
  * Enforce a specific parameter name in catch clauses.
7177
- * @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
7178
7178
  */
7179
7179
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
7180
7180
  /**
7181
7181
  * Enforce consistent assertion style with `node:assert`.
7182
- * @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
7183
7183
  */
7184
7184
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
7185
7185
  /**
7186
7186
  * Prefer passing `Date` directly to the constructor when cloning.
7187
- * @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
7188
7188
  */
7189
7189
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
7190
7190
  /**
7191
7191
  * Use destructured variables over properties.
7192
- * @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
7193
7193
  */
7194
7194
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
7195
7195
  /**
7196
7196
  * Prefer consistent types when spreading a ternary in an array literal.
7197
- * @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
7198
7198
  */
7199
7199
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
7200
7200
  /**
7201
7201
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
7202
- * @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
7203
7203
  */
7204
7204
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
7205
7205
  /**
7206
7206
  * Move function definitions to the highest possible scope.
7207
- * @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
7208
7208
  */
7209
7209
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
7210
7210
  /**
7211
7211
  * Enforce correct `Error` subclassing.
7212
- * @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
7213
7213
  */
7214
7214
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
7215
7215
  /**
7216
7216
  * Enforce no spaces between braces.
7217
- * @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
7218
7218
  */
7219
7219
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
7220
7220
  /**
7221
7221
  * Enforce passing a `message` value when creating a built-in error.
7222
- * @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
7223
7223
  */
7224
7224
  'unicorn/error-message'?: Linter.RuleEntry<[]>
7225
7225
  /**
7226
- * Require escape sequences to use uppercase values.
7227
- * @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
7228
7228
  */
7229
- 'unicorn/escape-case'?: Linter.RuleEntry<[]>
7229
+ 'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>
7230
7230
  /**
7231
7231
  * Add expiration conditions to TODO comments.
7232
- * @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
7233
7233
  */
7234
7234
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
7235
7235
  /**
7236
7236
  * Enforce explicitly comparing the `length` or `size` property of a value.
7237
- * @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
7238
7238
  */
7239
7239
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
7240
7240
  /**
7241
7241
  * Enforce a case style for filenames.
7242
- * @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
7243
7243
  */
7244
7244
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
7245
7245
  /**
7246
7246
  * Enforce specific import styles per module.
7247
- * @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
7248
7248
  */
7249
7249
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
7250
7250
  /**
7251
7251
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
7252
- * @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
7253
7253
  */
7254
7254
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
7255
7255
  /**
7256
7256
  * Enforce specifying rules to disable in `eslint-disable` comments.
7257
- * @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
7258
7258
  */
7259
7259
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
7260
7260
  /**
7261
7261
  * Disallow recursive access to `this` within getters and setters.
7262
- * @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
7263
7263
  */
7264
7264
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
7265
7265
  /**
7266
7266
  * Disallow anonymous functions and classes as the default export.
7267
- * @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
7268
7268
  */
7269
7269
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
7270
7270
  /**
7271
7271
  * Prevent passing a function reference directly to iterator methods.
7272
- * @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
7273
7273
  */
7274
7274
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
7275
7275
  /**
7276
7276
  * Prefer `for…of` over the `forEach` method.
7277
- * @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
7278
7278
  */
7279
7279
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
7280
7280
  /**
7281
7281
  * Disallow using the `this` argument in array methods.
7282
- * @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
7283
7283
  */
7284
7284
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
7285
7285
  /**
7286
7286
  * Enforce combining multiple `Array#push()` into one call.
7287
- * @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
7288
7288
  */
7289
7289
  'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>
7290
7290
  /**
7291
7291
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
7292
- * @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
7293
7293
  */
7294
7294
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
7295
7295
  /**
7296
7296
  * Disallow member access from await expression.
7297
- * @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
7298
7298
  */
7299
7299
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
7300
7300
  /**
7301
7301
  * Disallow using `await` in `Promise` method parameters.
7302
- * @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
7303
7303
  */
7304
7304
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
7305
7305
  /**
7306
7306
  * Do not use leading/trailing space between `console.log` parameters.
7307
- * @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
7308
7308
  */
7309
7309
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
7310
7310
  /**
7311
7311
  * Do not use `document.cookie` directly.
7312
- * @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
7313
7313
  */
7314
7314
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
7315
7315
  /**
7316
7316
  * Disallow empty files.
7317
- * @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
7318
7318
  */
7319
7319
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
7320
7320
  /**
7321
7321
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
7322
- * @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
7323
7323
  */
7324
7324
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
7325
7325
  /**
7326
7326
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
7327
- * @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
7328
7328
  */
7329
7329
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
7330
7330
  /**
7331
- * @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
7332
7333
  * @deprecated
7333
7334
  */
7334
7335
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
7335
7336
  /**
7336
7337
  * Disallow `instanceof` with built-in objects
7337
- * @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
7338
7339
  */
7339
7340
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
7340
7341
  /**
7341
7342
  * Disallow invalid options in `fetch()` and `new Request()`.
7342
- * @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
7343
7344
  */
7344
7345
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
7345
7346
  /**
7346
7347
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
7347
- * @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
7348
7349
  */
7349
7350
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
7350
7351
  /**
7351
7352
  * Disallow identifiers starting with `new` or `class`.
7352
- * @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
7353
7354
  */
7354
7355
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
7355
7356
  /**
7356
7357
  * Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.
7357
- * @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
7358
7359
  */
7359
7360
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
7360
7361
  /**
7361
7362
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
7362
- * @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
7363
7364
  */
7364
7365
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
7365
7366
  /**
7366
7367
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
7367
- * @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
7368
7369
  */
7369
7370
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
7370
7371
  /**
7371
7372
  * Disallow named usage of default import and export.
7372
- * @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
7373
7374
  */
7374
7375
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>
7375
7376
  /**
7376
7377
  * Disallow negated conditions.
7377
- * @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
7378
7379
  */
7379
7380
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
7380
7381
  /**
7381
7382
  * Disallow negated expression in equality check.
7382
- * @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
7383
7384
  */
7384
7385
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
7385
7386
  /**
7386
7387
  * Disallow nested ternary expressions.
7387
- * @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
7388
7389
  */
7389
7390
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
7390
7391
  /**
7391
7392
  * Disallow `new Array()`.
7392
- * @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
7393
7394
  */
7394
7395
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
7395
7396
  /**
7396
7397
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
7397
- * @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
7398
7399
  */
7399
7400
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
7400
7401
  /**
7401
7402
  * Disallow the use of the `null` literal.
7402
- * @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
7403
7404
  */
7404
7405
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
7405
7406
  /**
7406
7407
  * Disallow the use of objects as default parameters.
7407
- * @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
7408
7409
  */
7409
7410
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
7410
7411
  /**
7411
7412
  * Disallow `process.exit()`.
7412
- * @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
7413
7414
  */
7414
7415
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
7415
7416
  /**
7416
7417
  * Disallow passing single-element arrays to `Promise` methods.
7417
- * @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
7418
7419
  */
7419
7420
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
7420
7421
  /**
7421
7422
  * Disallow classes that only have static members.
7422
- * @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
7423
7424
  */
7424
7425
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
7425
7426
  /**
7426
7427
  * Disallow `then` property.
7427
- * @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
7428
7429
  */
7429
7430
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
7430
7431
  /**
7431
7432
  * Disallow assigning `this` to a variable.
7432
- * @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
7433
7434
  */
7434
7435
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
7435
7436
  /**
7436
7437
  * Disallow comparing `undefined` using `typeof`.
7437
- * @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
7438
7439
  */
7439
7440
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
7440
7441
  /**
7441
7442
  * Disallow awaiting non-promise values.
7442
- * @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
7443
7444
  */
7444
7445
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
7445
7446
  /**
7446
7447
  * Enforce the use of built-in methods instead of unnecessary polyfills.
7447
- * @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
7448
7449
  */
7449
7450
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
7450
7451
  /**
7451
7452
  * Disallow unreadable array destructuring.
7452
- * @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
7453
7454
  */
7454
7455
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
7455
7456
  /**
7456
7457
  * Disallow unreadable IIFEs.
7457
- * @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
7458
7459
  */
7459
7460
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
7460
7461
  /**
7461
7462
  * Disallow unused object properties.
7462
- * @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
7463
7464
  */
7464
7465
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
7465
7466
  /**
7466
7467
  * Disallow useless fallback when spreading in object literals.
7467
- * @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
7468
7469
  */
7469
7470
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
7470
7471
  /**
7471
7472
  * Disallow useless array length check.
7472
- * @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
7473
7474
  */
7474
7475
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
7475
7476
  /**
7476
7477
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
7477
- * @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
7478
7479
  */
7479
7480
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
7480
7481
  /**
7481
7482
  * Disallow unnecessary spread.
7482
- * @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
7483
7484
  */
7484
7485
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
7485
7486
  /**
7486
7487
  * Disallow useless case in switch statements.
7487
- * @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
7488
7489
  */
7489
7490
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
7490
7491
  /**
7491
7492
  * Disallow useless `undefined`.
7492
- * @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
7493
7494
  */
7494
7495
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
7495
7496
  /**
7496
7497
  * Disallow number literals with zero fractions or dangling dots.
7497
- * @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
7498
7499
  */
7499
7500
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
7500
7501
  /**
7501
7502
  * Enforce proper case for numeric literals.
7502
- * @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
7503
7504
  */
7504
- 'unicorn/number-literal-case'?: Linter.RuleEntry<[]>
7505
+ 'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>
7505
7506
  /**
7506
7507
  * Enforce the style of numeric separators by correctly grouping digits.
7507
- * @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
7508
7509
  */
7509
7510
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
7510
7511
  /**
7511
7512
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
7512
- * @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
7513
7514
  */
7514
7515
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
7515
7516
  /**
7516
7517
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
7517
- * @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
7518
7519
  */
7519
7520
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
7520
7521
  /**
7521
7522
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
7522
- * @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
7523
7524
  */
7524
7525
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
7525
7526
  /**
7526
7527
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
7527
- * @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
7528
7529
  */
7529
7530
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
7530
7531
  /**
7531
7532
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
7532
- * @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
7533
7534
  */
7534
7535
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
7535
7536
  /**
7536
7537
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
7537
- * @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
7538
7539
  */
7539
7540
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
7540
7541
  /**
7541
7542
  * Prefer `.at()` method for index access and `String#charAt()`.
7542
- * @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
7543
7544
  */
7544
7545
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
7545
7546
  /**
7546
7547
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
7547
- * @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
7548
7549
  */
7549
7550
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
7550
7551
  /**
7551
7552
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
7552
- * @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
7553
7554
  */
7554
7555
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
7555
7556
  /**
7556
7557
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
7557
- * @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
7558
7559
  */
7559
7560
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
7560
7561
  /**
7561
7562
  * Prefer default parameters over reassignment.
7562
- * @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
7563
7564
  */
7564
7565
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
7565
7566
  /**
7566
7567
  * Prefer `Node#append()` over `Node#appendChild()`.
7567
- * @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
7568
7569
  */
7569
7570
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
7570
7571
  /**
7571
7572
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
7572
- * @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
7573
7574
  */
7574
7575
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
7575
7576
  /**
7576
7577
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
7577
- * @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
7578
7579
  */
7579
7580
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
7580
7581
  /**
7581
7582
  * Prefer `.textContent` over `.innerText`.
7582
- * @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
7583
7584
  */
7584
7585
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
7585
7586
  /**
7586
7587
  * Prefer `EventTarget` over `EventEmitter`.
7587
- * @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
7588
7589
  */
7589
7590
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
7590
7591
  /**
7591
7592
  * Prefer `export…from` when re-exporting.
7592
- * @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
7593
7594
  */
7594
7595
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
7595
7596
  /**
7596
7597
  * Prefer `globalThis` over `window`, `self`, and `global`.
7597
- * @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
7598
7599
  */
7599
7600
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
7600
7601
  /**
7601
7602
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
7602
- * @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
7603
7604
  */
7604
7605
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
7605
7606
  /**
7606
7607
  * Prefer reading a JSON file as a buffer.
7607
- * @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
7608
7609
  */
7609
7610
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
7610
7611
  /**
7611
7612
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
7612
- * @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
7613
7614
  */
7614
7615
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
7615
7616
  /**
7616
7617
  * Prefer using a logical operator over a ternary.
7617
- * @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
7618
7619
  */
7619
7620
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
7620
7621
  /**
7621
7622
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
7622
- * @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
7623
7624
  */
7624
7625
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
7625
7626
  /**
7626
7627
  * Enforce the use of `Math.trunc` instead of bitwise operators.
7627
- * @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
7628
7629
  */
7629
7630
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
7630
7631
  /**
7631
7632
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
7632
- * @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
7633
7634
  */
7634
7635
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
7635
7636
  /**
7636
7637
  * Prefer modern `Math` APIs over legacy patterns.
7637
- * @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
7638
7639
  */
7639
7640
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
7640
7641
  /**
7641
7642
  * Prefer JavaScript modules (ESM) over CommonJS.
7642
- * @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
7643
7644
  */
7644
7645
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
7645
7646
  /**
7646
7647
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
7647
- * @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
7648
7649
  */
7649
7650
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
7650
7651
  /**
7651
7652
  * Prefer negative index over `.length - index` when possible.
7652
- * @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
7653
7654
  */
7654
7655
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
7655
7656
  /**
7656
7657
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
7657
- * @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
7658
7659
  */
7659
7660
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
7660
7661
  /**
7661
7662
  * Prefer `Number` static properties over global ones.
7662
- * @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
7663
7664
  */
7664
7665
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
7665
7666
  /**
7666
7667
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
7667
- * @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
7668
7669
  */
7669
7670
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
7670
7671
  /**
7671
7672
  * Prefer omitting the `catch` binding parameter.
7672
- * @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
7673
7674
  */
7674
7675
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
7675
7676
  /**
7676
7677
  * Prefer borrowing methods from the prototype instead of the instance.
7677
- * @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
7678
7679
  */
7679
7680
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
7680
7681
  /**
7681
7682
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
7682
- * @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
7683
7684
  */
7684
7685
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
7685
7686
  /**
7686
7687
  * Prefer `Reflect.apply()` over `Function#apply()`.
7687
- * @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
7688
7689
  */
7689
7690
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
7690
7691
  /**
7691
7692
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
7692
- * @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
7693
7694
  */
7694
7695
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
7695
7696
  /**
7696
7697
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
7697
- * @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
7698
7699
  */
7699
7700
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
7700
7701
  /**
7701
7702
  * Prefer using `Set#size` instead of `Array#length`.
7702
- * @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
7703
7704
  */
7704
7705
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
7705
7706
  /**
7706
7707
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
7707
- * @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
7708
7709
  */
7709
7710
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
7710
7711
  /**
7711
7712
  * Prefer using the `String.raw` tag to avoid escaping `\`.
7712
- * @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
7713
7714
  */
7714
7715
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
7715
7716
  /**
7716
7717
  * Prefer `String#replaceAll()` over regex searches with the global flag.
7717
- * @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
7718
7719
  */
7719
7720
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
7720
7721
  /**
7721
7722
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
7722
- * @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
7723
7724
  */
7724
7725
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
7725
7726
  /**
7726
7727
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
7727
- * @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
7728
7729
  */
7729
7730
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
7730
7731
  /**
7731
7732
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
7732
- * @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
7733
7734
  */
7734
7735
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
7735
7736
  /**
7736
7737
  * Prefer using `structuredClone` to create a deep clone.
7737
- * @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
7738
7739
  */
7739
7740
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
7740
7741
  /**
7741
7742
  * Prefer `switch` over multiple `else-if`.
7742
- * @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
7743
7744
  */
7744
7745
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
7745
7746
  /**
7746
7747
  * Prefer ternary expressions over simple `if-else` statements.
7747
- * @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
7748
7749
  */
7749
7750
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
7750
7751
  /**
7751
7752
  * Prefer top-level await over top-level promises and async function calls.
7752
- * @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
7753
7754
  */
7754
7755
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
7755
7756
  /**
7756
7757
  * Enforce throwing `TypeError` in type checking conditions.
7757
- * @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
7758
7759
  */
7759
7760
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
7760
7761
  /**
7761
7762
  * Prevent abbreviations.
7762
- * @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
7763
7764
  */
7764
7765
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
7765
7766
  /**
7766
7767
  * Enforce consistent relative URL style.
7767
- * @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
7768
7769
  */
7769
7770
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
7770
7771
  /**
7771
7772
  * Enforce using the separator argument with `Array#join()`.
7772
- * @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
7773
7774
  */
7774
7775
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
7775
7776
  /**
7776
7777
  * Enforce using the digits argument with `Number#toFixed()`.
7777
- * @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
7778
7779
  */
7779
7780
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
7780
7781
  /**
7781
7782
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
7782
- * @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
7783
7784
  */
7784
7785
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
7785
7786
  /**
7786
7787
  * Enforce better string content.
7787
- * @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
7788
7789
  */
7789
7790
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
7790
7791
  /**
7791
7792
  * Enforce consistent brace style for `case` clauses.
7792
- * @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
7793
7794
  */
7794
7795
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
7795
7796
  /**
7796
7797
  * Fix whitespace-insensitive template indentation.
7797
- * @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
7798
7799
  */
7799
7800
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
7800
7801
  /**
7801
7802
  * Enforce consistent case for text encoding identifiers.
7802
- * @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
7803
7804
  */
7804
7805
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
7805
7806
  /**
7806
7807
  * Require `new` when creating an error.
7807
- * @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
7808
7809
  */
7809
7810
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
7810
7811
  /**
@@ -17060,6 +17061,8 @@ type UnicornCatchErrorName = []|[{
17060
17061
  type UnicornConsistentFunctionScoping = []|[{
17061
17062
  checkArrowFunctions?: boolean
17062
17063
  }]
17064
+ // ----- unicorn/escape-case -----
17065
+ type UnicornEscapeCase = []|[("uppercase" | "lowercase")]
17063
17066
  // ----- unicorn/expiring-todo-comments -----
17064
17067
  type UnicornExpiringTodoComments = []|[{
17065
17068
  terms?: string[]
@@ -17144,6 +17147,10 @@ type UnicornNoUselessUndefined = []|[{
17144
17147
  checkArguments?: boolean
17145
17148
  checkArrowFunctionBody?: boolean
17146
17149
  }]
17150
+ // ----- unicorn/number-literal-case -----
17151
+ type UnicornNumberLiteralCase = []|[{
17152
+ hexadecimalValue?: ("uppercase" | "lowercase")
17153
+ }]
17147
17154
  // ----- unicorn/numeric-separators-style -----
17148
17155
  type UnicornNumericSeparatorsStyle = []|[{
17149
17156
  binary?: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vinicunca/eslint-config",
3
3
  "type": "module",
4
- "version": "3.9.0",
4
+ "version": "3.10.0",
5
5
  "description": "Vinicunca ESLint config",
6
6
  "author": {
7
7
  "name": "praburangki",
@@ -114,9 +114,9 @@
114
114
  "@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
115
115
  "@eslint/markdown": "^6.3.0",
116
116
  "@stylistic/eslint-plugin": "^4.2.0",
117
- "@typescript-eslint/eslint-plugin": "^8.27.0",
118
- "@typescript-eslint/parser": "^8.27.0",
119
- "@unocss/eslint-plugin": "^66.0.0",
117
+ "@typescript-eslint/eslint-plugin": "^8.28.0",
118
+ "@typescript-eslint/parser": "^8.28.0",
119
+ "@unocss/eslint-plugin": "^66.1.0-beta.7",
120
120
  "@vitest/eslint-plugin": "^1.1.38",
121
121
  "eslint-config-flat-gitignore": "^2.1.0",
122
122
  "eslint-flat-config-utils": "^2.0.1",
@@ -124,9 +124,9 @@
124
124
  "eslint-plugin-antfu": "^3.1.1",
125
125
  "eslint-plugin-command": "^3.2.0",
126
126
  "eslint-plugin-format": "^1.0.1",
127
- "eslint-plugin-import-x": "^4.9.1",
128
- "eslint-plugin-jsdoc": "^50.6.8",
129
- "eslint-plugin-jsonc": "^2.19.1",
127
+ "eslint-plugin-import-x": "^4.9.2",
128
+ "eslint-plugin-jsdoc": "^50.6.9",
129
+ "eslint-plugin-jsonc": "^2.20.0",
130
130
  "eslint-plugin-n": "^17.16.2",
131
131
  "eslint-plugin-no-only-tests": "^3.3.0",
132
132
  "eslint-plugin-perfectionist": "^4.10.1",
@@ -134,7 +134,7 @@
134
134
  "eslint-plugin-regexp": "^2.7.0",
135
135
  "eslint-plugin-sonarjs": "^3.0.2",
136
136
  "eslint-plugin-toml": "^0.12.0",
137
- "eslint-plugin-unicorn": "^57.0.0",
137
+ "eslint-plugin-unicorn": "^58.0.0",
138
138
  "eslint-plugin-unused-imports": "^4.1.4",
139
139
  "eslint-plugin-vue": "^10.0.0",
140
140
  "eslint-plugin-yml": "^1.17.0",