@hexadrop/eslint-config 0.1.2 → 0.1.3

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.cts +217 -181
  2. package/dist/index.d.ts +217 -181
  3. package/package.json +14 -14
package/dist/index.d.cts CHANGED
@@ -575,233 +575,233 @@ interface RuleOptions {
575
575
  'import-unused/no-unused-vars'?: Linter.RuleEntry<ImportUnusedNoUnusedVars>
576
576
  /**
577
577
  * Enforce or ban the use of inline type-only markers for named imports.
578
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/consistent-type-specifier-style.md
578
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/consistent-type-specifier-style.md
579
579
  */
580
580
  'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
581
581
  /**
582
582
  * Ensure a default export is present, given a default import.
583
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/default.md
583
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/default.md
584
584
  */
585
585
  'import/default'?: Linter.RuleEntry<[]>
586
586
  /**
587
587
  * Enforce a leading comment with the webpackChunkName for dynamic imports.
588
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/dynamic-import-chunkname.md
588
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/dynamic-import-chunkname.md
589
589
  */
590
590
  'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
591
591
  /**
592
592
  * Forbid any invalid exports, i.e. re-export of the same name.
593
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/export.md
593
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/export.md
594
594
  */
595
595
  'import/export'?: Linter.RuleEntry<[]>
596
596
  /**
597
597
  * Ensure all exports appear after other statements.
598
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/exports-last.md
598
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/exports-last.md
599
599
  */
600
600
  'import/exports-last'?: Linter.RuleEntry<[]>
601
601
  /**
602
602
  * Ensure consistent use of file extension within the import path.
603
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/extensions.md
603
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/extensions.md
604
604
  */
605
605
  'import/extensions'?: Linter.RuleEntry<ImportExtensions>
606
606
  /**
607
607
  * Ensure all imports appear before other statements.
608
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/first.md
608
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/first.md
609
609
  */
610
610
  'import/first'?: Linter.RuleEntry<ImportFirst>
611
611
  /**
612
612
  * Prefer named exports to be grouped together in a single export declaration.
613
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/group-exports.md
613
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/group-exports.md
614
614
  */
615
615
  'import/group-exports'?: Linter.RuleEntry<[]>
616
616
  /**
617
617
  * Replaced by `import-x/first`.
618
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/imports-first.md
618
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/imports-first.md
619
619
  * @deprecated
620
620
  */
621
621
  'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
622
622
  /**
623
623
  * Enforce the maximum number of dependencies a module can have.
624
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/max-dependencies.md
624
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/max-dependencies.md
625
625
  */
626
626
  'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
627
627
  /**
628
628
  * Ensure named imports correspond to a named export in the remote file.
629
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/named.md
629
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/named.md
630
630
  */
631
631
  'import/named'?: Linter.RuleEntry<ImportNamed>
632
632
  /**
633
633
  * Ensure imported namespaces contain dereferenced properties as they are dereferenced.
634
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/namespace.md
634
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/namespace.md
635
635
  */
636
636
  'import/namespace'?: Linter.RuleEntry<ImportNamespace>
637
637
  /**
638
638
  * Enforce a newline after import statements.
639
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/newline-after-import.md
639
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/newline-after-import.md
640
640
  */
641
641
  'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
642
642
  /**
643
643
  * Forbid import of modules using absolute paths.
644
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/no-absolute-path.md
644
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-absolute-path.md
645
645
  */
646
646
  'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
647
647
  /**
648
648
  * Forbid AMD `require` and `define` calls.
649
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/no-amd.md
649
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-amd.md
650
650
  */
651
651
  'import/no-amd'?: Linter.RuleEntry<[]>
652
652
  /**
653
653
  * Forbid anonymous values as default exports.
654
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/no-anonymous-default-export.md
654
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-anonymous-default-export.md
655
655
  */
656
656
  'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
657
657
  /**
658
658
  * Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
659
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/no-commonjs.md
659
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-commonjs.md
660
660
  */
661
661
  'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
662
662
  /**
663
663
  * Forbid a module from importing a module with a dependency path back to itself.
664
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/no-cycle.md
664
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-cycle.md
665
665
  */
666
666
  'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
667
667
  /**
668
668
  * Forbid default exports.
669
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/no-default-export.md
669
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-default-export.md
670
670
  */
671
671
  'import/no-default-export'?: Linter.RuleEntry<[]>
672
672
  /**
673
673
  * Forbid imported names marked with `@deprecated` documentation tag.
674
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/no-deprecated.md
674
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-deprecated.md
675
675
  */
676
676
  'import/no-deprecated'?: Linter.RuleEntry<[]>
677
677
  /**
678
678
  * Forbid repeated import of the same module in multiple places.
679
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/no-duplicates.md
679
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-duplicates.md
680
680
  */
681
681
  'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
682
682
  /**
683
683
  * Forbid `require()` calls with expressions.
684
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/no-dynamic-require.md
684
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-dynamic-require.md
685
685
  */
686
686
  'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
687
687
  /**
688
688
  * Forbid empty named import blocks.
689
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/no-empty-named-blocks.md
689
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-empty-named-blocks.md
690
690
  */
691
691
  'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
692
692
  /**
693
693
  * Forbid the use of extraneous packages.
694
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/no-extraneous-dependencies.md
694
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-extraneous-dependencies.md
695
695
  */
696
696
  'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
697
697
  /**
698
698
  * Forbid import statements with CommonJS module.exports.
699
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/no-import-module-exports.md
699
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-import-module-exports.md
700
700
  */
701
701
  'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
702
702
  /**
703
703
  * Forbid importing the submodules of other modules.
704
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/no-internal-modules.md
704
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-internal-modules.md
705
705
  */
706
706
  'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
707
707
  /**
708
708
  * Forbid the use of mutable exports with `var` or `let`.
709
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/no-mutable-exports.md
709
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-mutable-exports.md
710
710
  */
711
711
  'import/no-mutable-exports'?: Linter.RuleEntry<[]>
712
712
  /**
713
713
  * Forbid use of exported name as identifier of default export.
714
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/no-named-as-default.md
714
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-named-as-default.md
715
715
  */
716
716
  'import/no-named-as-default'?: Linter.RuleEntry<[]>
717
717
  /**
718
718
  * Forbid use of exported name as property of default export.
719
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/no-named-as-default-member.md
719
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-named-as-default-member.md
720
720
  */
721
721
  'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
722
722
  /**
723
723
  * Forbid named default exports.
724
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/no-named-default.md
724
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-named-default.md
725
725
  */
726
726
  'import/no-named-default'?: Linter.RuleEntry<[]>
727
727
  /**
728
728
  * Forbid named exports.
729
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/no-named-export.md
729
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-named-export.md
730
730
  */
731
731
  'import/no-named-export'?: Linter.RuleEntry<[]>
732
732
  /**
733
733
  * Forbid namespace (a.k.a. "wildcard" `*`) imports.
734
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/no-namespace.md
734
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-namespace.md
735
735
  */
736
736
  'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
737
737
  /**
738
738
  * Forbid Node.js builtin modules.
739
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/no-nodejs-modules.md
739
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-nodejs-modules.md
740
740
  */
741
741
  'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
742
742
  /**
743
743
  * Forbid importing packages through relative paths.
744
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/no-relative-packages.md
744
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-relative-packages.md
745
745
  */
746
746
  'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
747
747
  /**
748
748
  * Forbid importing modules from parent directories.
749
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/no-relative-parent-imports.md
749
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-relative-parent-imports.md
750
750
  */
751
751
  'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
752
752
  /**
753
753
  * Forbid importing a default export by a different name.
754
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/no-rename-default.md
754
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-rename-default.md
755
755
  */
756
756
  'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>
757
757
  /**
758
758
  * Enforce which files can be imported in a given folder.
759
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/no-restricted-paths.md
759
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-restricted-paths.md
760
760
  */
761
761
  'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
762
762
  /**
763
763
  * Forbid a module from importing itself.
764
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/no-self-import.md
764
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-self-import.md
765
765
  */
766
766
  'import/no-self-import'?: Linter.RuleEntry<[]>
767
767
  /**
768
768
  * Forbid unassigned imports.
769
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/no-unassigned-import.md
769
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-unassigned-import.md
770
770
  */
771
771
  'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
772
772
  /**
773
773
  * Ensure imports point to a file/module that can be resolved.
774
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/no-unresolved.md
774
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-unresolved.md
775
775
  */
776
776
  'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
777
777
  /**
778
778
  * Forbid modules without exports, or exports without matching import in another module.
779
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/no-unused-modules.md
779
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-unused-modules.md
780
780
  */
781
781
  'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
782
782
  /**
783
783
  * Forbid unnecessary path segments in import and require statements.
784
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/no-useless-path-segments.md
784
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-useless-path-segments.md
785
785
  */
786
786
  'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
787
787
  /**
788
788
  * Forbid webpack loader syntax in imports.
789
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/no-webpack-loader-syntax.md
789
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/no-webpack-loader-syntax.md
790
790
  */
791
791
  'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
792
792
  /**
793
793
  * Enforce a convention in module import order.
794
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/order.md
794
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/order.md
795
795
  */
796
796
  'import/order'?: Linter.RuleEntry<ImportOrder>
797
797
  /**
798
798
  * Prefer a default export if module exports a single name or multiple names.
799
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/prefer-default-export.md
799
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/prefer-default-export.md
800
800
  */
801
801
  'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
802
802
  /**
803
803
  * Forbid potentially ambiguous parse goal (`script` vs. `module`).
804
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.10.0/docs/rules/unambiguous.md
804
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.0/docs/rules/unambiguous.md
805
805
  */
806
806
  'import/unambiguous'?: Linter.RuleEntry<[]>
807
807
  /**
@@ -1096,30 +1096,37 @@ interface RuleOptions {
1096
1096
  'logical-assignment-operators'?: Linter.RuleEntry<LogicalAssignmentOperators>
1097
1097
  /**
1098
1098
  * Require languages for fenced code blocks
1099
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/fenced-code-language.md
1099
1100
  */
1100
1101
  'markdown/fenced-code-language'?: Linter.RuleEntry<MarkdownFencedCodeLanguage>
1101
1102
  /**
1102
1103
  * Enforce heading levels increment by one
1104
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/heading-increment.md
1103
1105
  */
1104
1106
  'markdown/heading-increment'?: Linter.RuleEntry<[]>
1105
1107
  /**
1106
1108
  * Disallow duplicate headings in the same document
1109
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-duplicate-headings.md
1107
1110
  */
1108
1111
  'markdown/no-duplicate-headings'?: Linter.RuleEntry<[]>
1109
1112
  /**
1110
1113
  * Disallow empty links
1114
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-links.md
1111
1115
  */
1112
1116
  'markdown/no-empty-links'?: Linter.RuleEntry<[]>
1113
1117
  /**
1114
1118
  * Disallow HTML tags
1119
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-html.md
1115
1120
  */
1116
1121
  'markdown/no-html'?: Linter.RuleEntry<MarkdownNoHtml>
1117
1122
  /**
1118
1123
  * Disallow invalid label references
1124
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-invalid-label-refs.md
1119
1125
  */
1120
1126
  'markdown/no-invalid-label-refs'?: Linter.RuleEntry<[]>
1121
1127
  /**
1122
1128
  * Disallow missing label references
1129
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-missing-label-refs.md
1123
1130
  */
1124
1131
  'markdown/no-missing-label-refs'?: Linter.RuleEntry<[]>
1125
1132
  /**
@@ -4259,643 +4266,670 @@ interface RuleOptions {
4259
4266
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
4260
4267
  /**
4261
4268
  * Improve regexes by making them shorter, consistent, and safer.
4262
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/better-regex.md
4269
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/better-regex.md
4263
4270
  */
4264
4271
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
4265
4272
  /**
4266
4273
  * Enforce a specific parameter name in catch clauses.
4267
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/catch-error-name.md
4274
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/catch-error-name.md
4268
4275
  */
4269
4276
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
4270
4277
  /**
4271
4278
  * Enforce consistent assertion style with `node:assert`.
4272
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-assert.md
4279
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/consistent-assert.md
4273
4280
  */
4274
4281
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
4275
4282
  /**
4276
4283
  * Prefer passing `Date` directly to the constructor when cloning.
4277
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-date-clone.md
4284
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/consistent-date-clone.md
4278
4285
  */
4279
4286
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
4280
4287
  /**
4281
4288
  * Use destructured variables over properties.
4282
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-destructuring.md
4289
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/consistent-destructuring.md
4283
4290
  */
4284
4291
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
4285
4292
  /**
4286
4293
  * Prefer consistent types when spreading a ternary in an array literal.
4287
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-empty-array-spread.md
4294
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/consistent-empty-array-spread.md
4288
4295
  */
4289
4296
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
4290
4297
  /**
4291
4298
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
4292
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-existence-index-check.md
4299
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/consistent-existence-index-check.md
4293
4300
  */
4294
4301
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
4295
4302
  /**
4296
4303
  * Move function definitions to the highest possible scope.
4297
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-function-scoping.md
4304
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/consistent-function-scoping.md
4298
4305
  */
4299
4306
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
4300
4307
  /**
4301
4308
  * Enforce correct `Error` subclassing.
4302
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/custom-error-definition.md
4309
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/custom-error-definition.md
4303
4310
  */
4304
4311
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
4305
4312
  /**
4306
4313
  * Enforce no spaces between braces.
4307
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/empty-brace-spaces.md
4314
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/empty-brace-spaces.md
4308
4315
  */
4309
4316
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
4310
4317
  /**
4311
4318
  * Enforce passing a `message` value when creating a built-in error.
4312
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/error-message.md
4319
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/error-message.md
4313
4320
  */
4314
4321
  'unicorn/error-message'?: Linter.RuleEntry<[]>
4315
4322
  /**
4316
4323
  * Require escape sequences to use uppercase or lowercase values.
4317
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/escape-case.md
4324
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/escape-case.md
4318
4325
  */
4319
4326
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>
4320
4327
  /**
4321
4328
  * Add expiration conditions to TODO comments.
4322
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/expiring-todo-comments.md
4329
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/expiring-todo-comments.md
4323
4330
  */
4324
4331
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
4325
4332
  /**
4326
4333
  * Enforce explicitly comparing the `length` or `size` property of a value.
4327
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/explicit-length-check.md
4334
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/explicit-length-check.md
4328
4335
  */
4329
4336
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
4330
4337
  /**
4331
4338
  * Enforce a case style for filenames.
4332
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/filename-case.md
4339
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/filename-case.md
4333
4340
  */
4334
4341
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
4335
4342
  /**
4336
4343
  * Enforce specific import styles per module.
4337
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/import-style.md
4344
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/import-style.md
4338
4345
  */
4339
4346
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
4340
4347
  /**
4341
4348
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
4342
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/new-for-builtins.md
4349
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/new-for-builtins.md
4343
4350
  */
4344
4351
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
4345
4352
  /**
4346
4353
  * Enforce specifying rules to disable in `eslint-disable` comments.
4347
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-abusive-eslint-disable.md
4354
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-abusive-eslint-disable.md
4348
4355
  */
4349
4356
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
4350
4357
  /**
4351
4358
  * Disallow recursive access to `this` within getters and setters.
4352
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-accessor-recursion.md
4359
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-accessor-recursion.md
4353
4360
  */
4354
4361
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
4355
4362
  /**
4356
4363
  * Disallow anonymous functions and classes as the default export.
4357
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-anonymous-default-export.md
4364
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-anonymous-default-export.md
4358
4365
  */
4359
4366
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
4360
4367
  /**
4361
4368
  * Prevent passing a function reference directly to iterator methods.
4362
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-callback-reference.md
4369
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-array-callback-reference.md
4363
4370
  */
4364
4371
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
4365
4372
  /**
4366
4373
  * Prefer `for…of` over the `forEach` method.
4367
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-for-each.md
4374
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-array-for-each.md
4368
4375
  */
4369
4376
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
4370
4377
  /**
4371
4378
  * Disallow using the `this` argument in array methods.
4372
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-method-this-argument.md
4379
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-array-method-this-argument.md
4373
4380
  */
4374
4381
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
4375
4382
  /**
4376
- * Enforce combining multiple `Array#push()` into one call.
4377
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-push-push.md
4383
+ * Replaced by `unicorn/prefer-single-call` which covers more cases.
4384
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/deprecated-rules.md#no-array-push-push
4385
+ * @deprecated
4378
4386
  */
4379
- 'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>
4387
+ 'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>
4380
4388
  /**
4381
4389
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
4382
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-reduce.md
4390
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-array-reduce.md
4383
4391
  */
4384
4392
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
4385
4393
  /**
4386
4394
  * Disallow member access from await expression.
4387
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-await-expression-member.md
4395
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-await-expression-member.md
4388
4396
  */
4389
4397
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
4390
4398
  /**
4391
4399
  * Disallow using `await` in `Promise` method parameters.
4392
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-await-in-promise-methods.md
4400
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-await-in-promise-methods.md
4393
4401
  */
4394
4402
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
4395
4403
  /**
4396
4404
  * Do not use leading/trailing space between `console.log` parameters.
4397
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-console-spaces.md
4405
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-console-spaces.md
4398
4406
  */
4399
4407
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
4400
4408
  /**
4401
4409
  * Do not use `document.cookie` directly.
4402
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-document-cookie.md
4410
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-document-cookie.md
4403
4411
  */
4404
4412
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
4405
4413
  /**
4406
4414
  * Disallow empty files.
4407
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-empty-file.md
4415
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-empty-file.md
4408
4416
  */
4409
4417
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
4410
4418
  /**
4411
4419
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
4412
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-for-loop.md
4420
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-for-loop.md
4413
4421
  */
4414
4422
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
4415
4423
  /**
4416
4424
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
4417
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-hex-escape.md
4425
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-hex-escape.md
4418
4426
  */
4419
4427
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
4420
4428
  /**
4421
4429
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
4422
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/deprecated-rules.md#no-instanceof-array
4430
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/deprecated-rules.md#no-instanceof-array
4423
4431
  * @deprecated
4424
4432
  */
4425
4433
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
4426
4434
  /**
4427
4435
  * Disallow `instanceof` with built-in objects
4428
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-instanceof-builtins.md
4436
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-instanceof-builtins.md
4429
4437
  */
4430
4438
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
4431
4439
  /**
4432
4440
  * Disallow invalid options in `fetch()` and `new Request()`.
4433
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-invalid-fetch-options.md
4441
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-invalid-fetch-options.md
4434
4442
  */
4435
4443
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
4436
4444
  /**
4437
4445
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
4438
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-invalid-remove-event-listener.md
4446
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-invalid-remove-event-listener.md
4439
4447
  */
4440
4448
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
4441
4449
  /**
4442
4450
  * Disallow identifiers starting with `new` or `class`.
4443
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-keyword-prefix.md
4451
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-keyword-prefix.md
4444
4452
  */
4445
4453
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
4446
4454
  /**
4447
- * Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.
4448
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-length-as-slice-end.md
4455
+ * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
4456
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/deprecated-rules.md#no-length-as-slice-end
4457
+ * @deprecated
4449
4458
  */
4450
4459
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
4451
4460
  /**
4452
4461
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
4453
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-lonely-if.md
4462
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-lonely-if.md
4454
4463
  */
4455
4464
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
4456
4465
  /**
4457
4466
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
4458
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-magic-array-flat-depth.md
4467
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-magic-array-flat-depth.md
4459
4468
  */
4460
4469
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
4461
4470
  /**
4462
4471
  * Disallow named usage of default import and export.
4463
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-named-default.md
4472
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-named-default.md
4464
4473
  */
4465
4474
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>
4466
4475
  /**
4467
4476
  * Disallow negated conditions.
4468
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-negated-condition.md
4477
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-negated-condition.md
4469
4478
  */
4470
4479
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
4471
4480
  /**
4472
4481
  * Disallow negated expression in equality check.
4473
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-negation-in-equality-check.md
4482
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-negation-in-equality-check.md
4474
4483
  */
4475
4484
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
4476
4485
  /**
4477
4486
  * Disallow nested ternary expressions.
4478
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-nested-ternary.md
4487
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-nested-ternary.md
4479
4488
  */
4480
4489
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
4481
4490
  /**
4482
4491
  * Disallow `new Array()`.
4483
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-new-array.md
4492
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-new-array.md
4484
4493
  */
4485
4494
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
4486
4495
  /**
4487
4496
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
4488
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-new-buffer.md
4497
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-new-buffer.md
4489
4498
  */
4490
4499
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
4491
4500
  /**
4492
4501
  * Disallow the use of the `null` literal.
4493
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-null.md
4502
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-null.md
4494
4503
  */
4495
4504
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
4496
4505
  /**
4497
4506
  * Disallow the use of objects as default parameters.
4498
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-object-as-default-parameter.md
4507
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-object-as-default-parameter.md
4499
4508
  */
4500
4509
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
4501
4510
  /**
4502
4511
  * Disallow `process.exit()`.
4503
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-process-exit.md
4512
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-process-exit.md
4504
4513
  */
4505
4514
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
4506
4515
  /**
4507
4516
  * Disallow passing single-element arrays to `Promise` methods.
4508
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-single-promise-in-promise-methods.md
4517
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-single-promise-in-promise-methods.md
4509
4518
  */
4510
4519
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
4511
4520
  /**
4512
4521
  * Disallow classes that only have static members.
4513
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-static-only-class.md
4522
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-static-only-class.md
4514
4523
  */
4515
4524
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
4516
4525
  /**
4517
4526
  * Disallow `then` property.
4518
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-thenable.md
4527
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-thenable.md
4519
4528
  */
4520
4529
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
4521
4530
  /**
4522
4531
  * Disallow assigning `this` to a variable.
4523
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-this-assignment.md
4532
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-this-assignment.md
4524
4533
  */
4525
4534
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
4526
4535
  /**
4527
4536
  * Disallow comparing `undefined` using `typeof`.
4528
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-typeof-undefined.md
4537
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-typeof-undefined.md
4529
4538
  */
4530
4539
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
4540
+ /**
4541
+ * Disallow using `1` as the `depth` argument of `Array#flat()`.
4542
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-unnecessary-array-flat-depth.md
4543
+ */
4544
+ 'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>
4545
+ /**
4546
+ * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
4547
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-unnecessary-array-splice-count.md
4548
+ */
4549
+ 'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>
4531
4550
  /**
4532
4551
  * Disallow awaiting non-promise values.
4533
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unnecessary-await.md
4552
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-unnecessary-await.md
4534
4553
  */
4535
4554
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
4536
4555
  /**
4537
4556
  * Enforce the use of built-in methods instead of unnecessary polyfills.
4538
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unnecessary-polyfills.md
4557
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-unnecessary-polyfills.md
4539
4558
  */
4540
4559
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
4560
+ /**
4561
+ * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
4562
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-unnecessary-slice-end.md
4563
+ */
4564
+ 'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>
4541
4565
  /**
4542
4566
  * Disallow unreadable array destructuring.
4543
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unreadable-array-destructuring.md
4567
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-unreadable-array-destructuring.md
4544
4568
  */
4545
4569
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
4546
4570
  /**
4547
4571
  * Disallow unreadable IIFEs.
4548
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unreadable-iife.md
4572
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-unreadable-iife.md
4549
4573
  */
4550
4574
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
4551
4575
  /**
4552
4576
  * Disallow unused object properties.
4553
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unused-properties.md
4577
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-unused-properties.md
4554
4578
  */
4555
4579
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
4556
4580
  /**
4557
4581
  * Disallow useless fallback when spreading in object literals.
4558
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-fallback-in-spread.md
4582
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-useless-fallback-in-spread.md
4559
4583
  */
4560
4584
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
4561
4585
  /**
4562
4586
  * Disallow useless array length check.
4563
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-length-check.md
4587
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-useless-length-check.md
4564
4588
  */
4565
4589
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
4566
4590
  /**
4567
4591
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
4568
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-promise-resolve-reject.md
4592
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-useless-promise-resolve-reject.md
4569
4593
  */
4570
4594
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
4571
4595
  /**
4572
4596
  * Disallow unnecessary spread.
4573
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-spread.md
4597
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-useless-spread.md
4574
4598
  */
4575
4599
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
4576
4600
  /**
4577
4601
  * Disallow useless case in switch statements.
4578
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-switch-case.md
4602
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-useless-switch-case.md
4579
4603
  */
4580
4604
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
4581
4605
  /**
4582
4606
  * Disallow useless `undefined`.
4583
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-undefined.md
4607
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-useless-undefined.md
4584
4608
  */
4585
4609
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
4586
4610
  /**
4587
4611
  * Disallow number literals with zero fractions or dangling dots.
4588
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-zero-fractions.md
4612
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-zero-fractions.md
4589
4613
  */
4590
4614
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
4591
4615
  /**
4592
4616
  * Enforce proper case for numeric literals.
4593
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/number-literal-case.md
4617
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/number-literal-case.md
4594
4618
  */
4595
4619
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>
4596
4620
  /**
4597
4621
  * Enforce the style of numeric separators by correctly grouping digits.
4598
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/numeric-separators-style.md
4622
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/numeric-separators-style.md
4599
4623
  */
4600
4624
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
4601
4625
  /**
4602
4626
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
4603
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-add-event-listener.md
4627
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-add-event-listener.md
4604
4628
  */
4605
4629
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
4606
4630
  /**
4607
4631
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
4608
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-find.md
4632
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-array-find.md
4609
4633
  */
4610
4634
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
4611
4635
  /**
4612
4636
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
4613
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-flat.md
4637
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-array-flat.md
4614
4638
  */
4615
4639
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
4616
4640
  /**
4617
4641
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
4618
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-flat-map.md
4642
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-array-flat-map.md
4619
4643
  */
4620
4644
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
4621
4645
  /**
4622
4646
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
4623
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-index-of.md
4647
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-array-index-of.md
4624
4648
  */
4625
4649
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
4626
4650
  /**
4627
4651
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
4628
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-some.md
4652
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-array-some.md
4629
4653
  */
4630
4654
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
4631
4655
  /**
4632
4656
  * Prefer `.at()` method for index access and `String#charAt()`.
4633
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-at.md
4657
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-at.md
4634
4658
  */
4635
4659
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
4636
4660
  /**
4637
4661
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
4638
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-blob-reading-methods.md
4662
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-blob-reading-methods.md
4639
4663
  */
4640
4664
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
4641
4665
  /**
4642
4666
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
4643
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-code-point.md
4667
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-code-point.md
4644
4668
  */
4645
4669
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
4646
4670
  /**
4647
4671
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
4648
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-date-now.md
4672
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-date-now.md
4649
4673
  */
4650
4674
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
4651
4675
  /**
4652
4676
  * Prefer default parameters over reassignment.
4653
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-default-parameters.md
4677
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-default-parameters.md
4654
4678
  */
4655
4679
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
4656
4680
  /**
4657
4681
  * Prefer `Node#append()` over `Node#appendChild()`.
4658
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-dom-node-append.md
4682
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-dom-node-append.md
4659
4683
  */
4660
4684
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
4661
4685
  /**
4662
4686
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
4663
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-dom-node-dataset.md
4687
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-dom-node-dataset.md
4664
4688
  */
4665
4689
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
4666
4690
  /**
4667
4691
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
4668
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-dom-node-remove.md
4692
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-dom-node-remove.md
4669
4693
  */
4670
4694
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
4671
4695
  /**
4672
4696
  * Prefer `.textContent` over `.innerText`.
4673
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-dom-node-text-content.md
4697
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-dom-node-text-content.md
4674
4698
  */
4675
4699
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
4676
4700
  /**
4677
4701
  * Prefer `EventTarget` over `EventEmitter`.
4678
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-event-target.md
4702
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-event-target.md
4679
4703
  */
4680
4704
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
4681
4705
  /**
4682
4706
  * Prefer `export…from` when re-exporting.
4683
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-export-from.md
4707
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-export-from.md
4684
4708
  */
4685
4709
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
4686
4710
  /**
4687
4711
  * Prefer `globalThis` over `window`, `self`, and `global`.
4688
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-global-this.md
4712
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-global-this.md
4689
4713
  */
4690
4714
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
4715
+ /**
4716
+ * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
4717
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-import-meta-properties.md
4718
+ */
4719
+ 'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>
4691
4720
  /**
4692
4721
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
4693
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-includes.md
4722
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-includes.md
4694
4723
  */
4695
4724
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
4696
4725
  /**
4697
4726
  * Prefer reading a JSON file as a buffer.
4698
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-json-parse-buffer.md
4727
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-json-parse-buffer.md
4699
4728
  */
4700
4729
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
4701
4730
  /**
4702
4731
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
4703
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-keyboard-event-key.md
4732
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-keyboard-event-key.md
4704
4733
  */
4705
4734
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
4706
4735
  /**
4707
4736
  * Prefer using a logical operator over a ternary.
4708
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-logical-operator-over-ternary.md
4737
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-logical-operator-over-ternary.md
4709
4738
  */
4710
4739
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
4711
4740
  /**
4712
4741
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
4713
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-math-min-max.md
4742
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-math-min-max.md
4714
4743
  */
4715
4744
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
4716
4745
  /**
4717
4746
  * Enforce the use of `Math.trunc` instead of bitwise operators.
4718
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-math-trunc.md
4747
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-math-trunc.md
4719
4748
  */
4720
4749
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
4721
4750
  /**
4722
4751
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
4723
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-modern-dom-apis.md
4752
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-modern-dom-apis.md
4724
4753
  */
4725
4754
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
4726
4755
  /**
4727
4756
  * Prefer modern `Math` APIs over legacy patterns.
4728
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-modern-math-apis.md
4757
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-modern-math-apis.md
4729
4758
  */
4730
4759
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
4731
4760
  /**
4732
4761
  * Prefer JavaScript modules (ESM) over CommonJS.
4733
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-module.md
4762
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-module.md
4734
4763
  */
4735
4764
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
4736
4765
  /**
4737
4766
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
4738
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-native-coercion-functions.md
4767
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-native-coercion-functions.md
4739
4768
  */
4740
4769
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
4741
4770
  /**
4742
4771
  * Prefer negative index over `.length - index` when possible.
4743
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-negative-index.md
4772
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-negative-index.md
4744
4773
  */
4745
4774
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
4746
4775
  /**
4747
4776
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
4748
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-node-protocol.md
4777
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-node-protocol.md
4749
4778
  */
4750
4779
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
4751
4780
  /**
4752
4781
  * Prefer `Number` static properties over global ones.
4753
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-number-properties.md
4782
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-number-properties.md
4754
4783
  */
4755
4784
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
4756
4785
  /**
4757
4786
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
4758
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-object-from-entries.md
4787
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-object-from-entries.md
4759
4788
  */
4760
4789
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
4761
4790
  /**
4762
4791
  * Prefer omitting the `catch` binding parameter.
4763
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-optional-catch-binding.md
4792
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-optional-catch-binding.md
4764
4793
  */
4765
4794
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
4766
4795
  /**
4767
4796
  * Prefer borrowing methods from the prototype instead of the instance.
4768
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-prototype-methods.md
4797
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-prototype-methods.md
4769
4798
  */
4770
4799
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
4771
4800
  /**
4772
4801
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
4773
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-query-selector.md
4802
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-query-selector.md
4774
4803
  */
4775
4804
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
4776
4805
  /**
4777
4806
  * Prefer `Reflect.apply()` over `Function#apply()`.
4778
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-reflect-apply.md
4807
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-reflect-apply.md
4779
4808
  */
4780
4809
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
4781
4810
  /**
4782
4811
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
4783
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-regexp-test.md
4812
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-regexp-test.md
4784
4813
  */
4785
4814
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
4786
4815
  /**
4787
4816
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
4788
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-set-has.md
4817
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-set-has.md
4789
4818
  */
4790
4819
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
4791
4820
  /**
4792
4821
  * Prefer using `Set#size` instead of `Array#length`.
4793
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-set-size.md
4822
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-set-size.md
4794
4823
  */
4795
4824
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
4825
+ /**
4826
+ * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
4827
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-single-call.md
4828
+ */
4829
+ 'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>
4796
4830
  /**
4797
4831
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
4798
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-spread.md
4832
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-spread.md
4799
4833
  */
4800
4834
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
4801
4835
  /**
4802
4836
  * Prefer using the `String.raw` tag to avoid escaping `\`.
4803
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-raw.md
4837
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-string-raw.md
4804
4838
  */
4805
4839
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
4806
4840
  /**
4807
4841
  * Prefer `String#replaceAll()` over regex searches with the global flag.
4808
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-replace-all.md
4842
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-string-replace-all.md
4809
4843
  */
4810
4844
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
4811
4845
  /**
4812
4846
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
4813
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-slice.md
4847
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-string-slice.md
4814
4848
  */
4815
4849
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
4816
4850
  /**
4817
4851
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
4818
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-starts-ends-with.md
4852
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-string-starts-ends-with.md
4819
4853
  */
4820
4854
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
4821
4855
  /**
4822
4856
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
4823
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-trim-start-end.md
4857
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-string-trim-start-end.md
4824
4858
  */
4825
4859
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
4826
4860
  /**
4827
4861
  * Prefer using `structuredClone` to create a deep clone.
4828
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-structured-clone.md
4862
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-structured-clone.md
4829
4863
  */
4830
4864
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
4831
4865
  /**
4832
4866
  * Prefer `switch` over multiple `else-if`.
4833
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-switch.md
4867
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-switch.md
4834
4868
  */
4835
4869
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
4836
4870
  /**
4837
4871
  * Prefer ternary expressions over simple `if-else` statements.
4838
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-ternary.md
4872
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-ternary.md
4839
4873
  */
4840
4874
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
4841
4875
  /**
4842
4876
  * Prefer top-level await over top-level promises and async function calls.
4843
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-top-level-await.md
4877
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-top-level-await.md
4844
4878
  */
4845
4879
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
4846
4880
  /**
4847
4881
  * Enforce throwing `TypeError` in type checking conditions.
4848
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-type-error.md
4882
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-type-error.md
4849
4883
  */
4850
4884
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
4851
4885
  /**
4852
4886
  * Prevent abbreviations.
4853
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prevent-abbreviations.md
4887
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prevent-abbreviations.md
4854
4888
  */
4855
4889
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
4856
4890
  /**
4857
4891
  * Enforce consistent relative URL style.
4858
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/relative-url-style.md
4892
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/relative-url-style.md
4859
4893
  */
4860
4894
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
4861
4895
  /**
4862
4896
  * Enforce using the separator argument with `Array#join()`.
4863
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/require-array-join-separator.md
4897
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/require-array-join-separator.md
4864
4898
  */
4865
4899
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
4866
4900
  /**
4867
4901
  * Enforce using the digits argument with `Number#toFixed()`.
4868
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/require-number-to-fixed-digits-argument.md
4902
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/require-number-to-fixed-digits-argument.md
4869
4903
  */
4870
4904
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
4871
4905
  /**
4872
4906
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
4873
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/require-post-message-target-origin.md
4907
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/require-post-message-target-origin.md
4874
4908
  */
4875
4909
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
4876
4910
  /**
4877
4911
  * Enforce better string content.
4878
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/string-content.md
4912
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/string-content.md
4879
4913
  */
4880
4914
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
4881
4915
  /**
4882
4916
  * Enforce consistent brace style for `case` clauses.
4883
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/switch-case-braces.md
4917
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/switch-case-braces.md
4884
4918
  */
4885
4919
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
4886
4920
  /**
4887
4921
  * Fix whitespace-insensitive template indentation.
4888
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/template-indent.md
4922
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/template-indent.md
4889
4923
  */
4890
4924
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
4891
4925
  /**
4892
4926
  * Enforce consistent case for text encoding identifiers.
4893
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/text-encoding-identifier-case.md
4927
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/text-encoding-identifier-case.md
4894
4928
  */
4895
4929
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
4896
4930
  /**
4897
4931
  * Require `new` when creating an error.
4898
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/throw-new-error.md
4932
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/throw-new-error.md
4899
4933
  */
4900
4934
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
4901
4935
  /**
@@ -11687,6 +11721,8 @@ type TypescriptNoUnnecessaryCondition = []|[{
11687
11721
  // ----- typescript/no-unnecessary-type-assertion -----
11688
11722
  type TypescriptNoUnnecessaryTypeAssertion = []|[{
11689
11723
 
11724
+ checkLiteralConstAssertions?: boolean
11725
+
11690
11726
  typesToIgnore?: string[]
11691
11727
  }]
11692
11728
  // ----- typescript/no-unused-expressions -----
@@ -12102,10 +12138,6 @@ interface _UnicornImportStyle_ModuleStyles {
12102
12138
  interface _UnicornImportStyle_BooleanObject {
12103
12139
  [k: string]: boolean | undefined
12104
12140
  }
12105
- // ----- unicorn/no-array-push-push -----
12106
- type UnicornNoArrayPushPush = []|[{
12107
- ignore?: unknown[]
12108
- }]
12109
12141
  // ----- unicorn/no-array-reduce -----
12110
12142
  type UnicornNoArrayReduce = []|[{
12111
12143
  allowSimpleOperations?: boolean
@@ -12201,6 +12233,10 @@ type UnicornPreferNumberProperties = []|[{
12201
12233
  type UnicornPreferObjectFromEntries = []|[{
12202
12234
  functions?: unknown[]
12203
12235
  }]
12236
+ // ----- unicorn/prefer-single-call -----
12237
+ type UnicornPreferSingleCall = []|[{
12238
+ ignore?: unknown[]
12239
+ }]
12204
12240
  // ----- unicorn/prefer-structured-clone -----
12205
12241
  type UnicornPreferStructuredClone = []|[{
12206
12242
  functions?: unknown[]