@luxass/eslint-config 4.7.0 → 4.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.d.cts +218 -186
  2. package/dist/index.d.ts +218 -186
  3. package/package.json +18 -18
package/dist/index.d.cts CHANGED
@@ -637,42 +637,42 @@ interface RuleOptions {
637
637
  'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
638
638
  /**
639
639
  * Enforce or ban the use of inline type-only markers for named imports.
640
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/consistent-type-specifier-style.md
640
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/consistent-type-specifier-style.md
641
641
  */
642
642
  'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
643
643
  /**
644
644
  * Ensure a default export is present, given a default import.
645
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/default.md
645
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/default.md
646
646
  */
647
647
  'import/default'?: Linter.RuleEntry<[]>
648
648
  /**
649
649
  * Enforce a leading comment with the webpackChunkName for dynamic imports.
650
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/dynamic-import-chunkname.md
650
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/dynamic-import-chunkname.md
651
651
  */
652
652
  'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
653
653
  /**
654
654
  * Forbid any invalid exports, i.e. re-export of the same name.
655
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/export.md
655
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/export.md
656
656
  */
657
657
  'import/export'?: Linter.RuleEntry<[]>
658
658
  /**
659
659
  * Ensure all exports appear after other statements.
660
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/exports-last.md
660
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/exports-last.md
661
661
  */
662
662
  'import/exports-last'?: Linter.RuleEntry<[]>
663
663
  /**
664
664
  * Ensure consistent use of file extension within the import path.
665
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/extensions.md
665
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/extensions.md
666
666
  */
667
667
  'import/extensions'?: Linter.RuleEntry<ImportExtensions>
668
668
  /**
669
669
  * Ensure all imports appear before other statements.
670
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/first.md
670
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/first.md
671
671
  */
672
672
  'import/first'?: Linter.RuleEntry<ImportFirst>
673
673
  /**
674
674
  * Prefer named exports to be grouped together in a single export declaration.
675
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/group-exports.md
675
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/group-exports.md
676
676
  */
677
677
  'import/group-exports'?: Linter.RuleEntry<[]>
678
678
  /**
@@ -683,182 +683,182 @@ interface RuleOptions {
683
683
  'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
684
684
  /**
685
685
  * Enforce the maximum number of dependencies a module can have.
686
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/max-dependencies.md
686
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/max-dependencies.md
687
687
  */
688
688
  'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
689
689
  /**
690
690
  * Ensure named imports correspond to a named export in the remote file.
691
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/named.md
691
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/named.md
692
692
  */
693
693
  'import/named'?: Linter.RuleEntry<ImportNamed>
694
694
  /**
695
695
  * Ensure imported namespaces contain dereferenced properties as they are dereferenced.
696
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/namespace.md
696
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/namespace.md
697
697
  */
698
698
  'import/namespace'?: Linter.RuleEntry<ImportNamespace>
699
699
  /**
700
700
  * Enforce a newline after import statements.
701
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/newline-after-import.md
701
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/newline-after-import.md
702
702
  */
703
703
  'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
704
704
  /**
705
705
  * Forbid import of modules using absolute paths.
706
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-absolute-path.md
706
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-absolute-path.md
707
707
  */
708
708
  'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
709
709
  /**
710
710
  * Forbid AMD `require` and `define` calls.
711
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-amd.md
711
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-amd.md
712
712
  */
713
713
  'import/no-amd'?: Linter.RuleEntry<[]>
714
714
  /**
715
715
  * Forbid anonymous values as default exports.
716
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-anonymous-default-export.md
716
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-anonymous-default-export.md
717
717
  */
718
718
  'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
719
719
  /**
720
720
  * Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
721
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-commonjs.md
721
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-commonjs.md
722
722
  */
723
723
  'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
724
724
  /**
725
725
  * Forbid a module from importing a module with a dependency path back to itself.
726
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-cycle.md
726
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-cycle.md
727
727
  */
728
728
  'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
729
729
  /**
730
730
  * Forbid default exports.
731
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-default-export.md
731
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-default-export.md
732
732
  */
733
733
  'import/no-default-export'?: Linter.RuleEntry<[]>
734
734
  /**
735
735
  * Forbid imported names marked with `@deprecated` documentation tag.
736
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-deprecated.md
736
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-deprecated.md
737
737
  */
738
738
  'import/no-deprecated'?: Linter.RuleEntry<[]>
739
739
  /**
740
740
  * Forbid repeated import of the same module in multiple places.
741
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-duplicates.md
741
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-duplicates.md
742
742
  */
743
743
  'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
744
744
  /**
745
745
  * Forbid `require()` calls with expressions.
746
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-dynamic-require.md
746
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-dynamic-require.md
747
747
  */
748
748
  'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
749
749
  /**
750
750
  * Forbid empty named import blocks.
751
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-empty-named-blocks.md
751
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-empty-named-blocks.md
752
752
  */
753
753
  'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
754
754
  /**
755
755
  * Forbid the use of extraneous packages.
756
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-extraneous-dependencies.md
756
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-extraneous-dependencies.md
757
757
  */
758
758
  'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
759
759
  /**
760
760
  * Forbid import statements with CommonJS module.exports.
761
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-import-module-exports.md
761
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-import-module-exports.md
762
762
  */
763
763
  'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
764
764
  /**
765
765
  * Forbid importing the submodules of other modules.
766
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-internal-modules.md
766
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-internal-modules.md
767
767
  */
768
768
  'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
769
769
  /**
770
770
  * Forbid the use of mutable exports with `var` or `let`.
771
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-mutable-exports.md
771
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-mutable-exports.md
772
772
  */
773
773
  'import/no-mutable-exports'?: Linter.RuleEntry<[]>
774
774
  /**
775
775
  * Forbid use of exported name as identifier of default export.
776
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-named-as-default.md
776
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-named-as-default.md
777
777
  */
778
778
  'import/no-named-as-default'?: Linter.RuleEntry<[]>
779
779
  /**
780
780
  * Forbid use of exported name as property of default export.
781
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-named-as-default-member.md
781
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-named-as-default-member.md
782
782
  */
783
783
  'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
784
784
  /**
785
785
  * Forbid named default exports.
786
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-named-default.md
786
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-named-default.md
787
787
  */
788
788
  'import/no-named-default'?: Linter.RuleEntry<[]>
789
789
  /**
790
790
  * Forbid named exports.
791
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-named-export.md
791
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-named-export.md
792
792
  */
793
793
  'import/no-named-export'?: Linter.RuleEntry<[]>
794
794
  /**
795
795
  * Forbid namespace (a.k.a. "wildcard" `*`) imports.
796
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-namespace.md
796
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-namespace.md
797
797
  */
798
798
  'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
799
799
  /**
800
800
  * Forbid Node.js builtin modules.
801
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-nodejs-modules.md
801
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-nodejs-modules.md
802
802
  */
803
803
  'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
804
804
  /**
805
805
  * Forbid importing packages through relative paths.
806
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-relative-packages.md
806
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-relative-packages.md
807
807
  */
808
808
  'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
809
809
  /**
810
810
  * Forbid importing modules from parent directories.
811
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-relative-parent-imports.md
811
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-relative-parent-imports.md
812
812
  */
813
813
  'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
814
814
  /**
815
815
  * Enforce which files can be imported in a given folder.
816
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-restricted-paths.md
816
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-restricted-paths.md
817
817
  */
818
818
  'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
819
819
  /**
820
820
  * Forbid a module from importing itself.
821
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-self-import.md
821
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-self-import.md
822
822
  */
823
823
  'import/no-self-import'?: Linter.RuleEntry<[]>
824
824
  /**
825
825
  * Forbid unassigned imports.
826
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-unassigned-import.md
826
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-unassigned-import.md
827
827
  */
828
828
  'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
829
829
  /**
830
830
  * Ensure imports point to a file/module that can be resolved.
831
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-unresolved.md
831
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-unresolved.md
832
832
  */
833
833
  'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
834
834
  /**
835
835
  * Forbid modules without exports, or exports without matching import in another module.
836
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-unused-modules.md
836
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-unused-modules.md
837
837
  */
838
838
  'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
839
839
  /**
840
840
  * Forbid unnecessary path segments in import and require statements.
841
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-useless-path-segments.md
841
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-useless-path-segments.md
842
842
  */
843
843
  'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
844
844
  /**
845
845
  * Forbid webpack loader syntax in imports.
846
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-webpack-loader-syntax.md
846
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-webpack-loader-syntax.md
847
847
  */
848
848
  'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
849
849
  /**
850
850
  * Enforce a convention in module import order.
851
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/order.md
851
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/order.md
852
852
  */
853
853
  'import/order'?: Linter.RuleEntry<ImportOrder>
854
854
  /**
855
855
  * Prefer a default export if module exports a single name or multiple names.
856
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/prefer-default-export.md
856
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/prefer-default-export.md
857
857
  */
858
858
  'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
859
859
  /**
860
860
  * Forbid potentially ambiguous parse goal (`script` vs. `module`).
861
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/unambiguous.md
861
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/unambiguous.md
862
862
  */
863
863
  'import/unambiguous'?: Linter.RuleEntry<[]>
864
864
  /**
@@ -3225,8 +3225,9 @@ interface RuleOptions {
3225
3225
  */
3226
3226
  'style/jsx-function-call-newline'?: Linter.RuleEntry<StyleJsxFunctionCallNewline>
3227
3227
  /**
3228
- * Enforce JSX indentation
3228
+ * Enforce JSX indentation. Deprecated, use `indent` rule instead.
3229
3229
  * @see https://eslint.style/rules/jsx/jsx-indent
3230
+ * @deprecated
3230
3231
  */
3231
3232
  'style/jsx-indent'?: Linter.RuleEntry<StyleJsxIndent>
3232
3233
  /**
@@ -3411,7 +3412,7 @@ interface RuleOptions {
3411
3412
  'style/nonblock-statement-body-position'?: Linter.RuleEntry<StyleNonblockStatementBodyPosition>
3412
3413
  /**
3413
3414
  * Enforce consistent line breaks after opening and before closing braces
3414
- * @see https://eslint.style/rules/js/object-curly-newline
3415
+ * @see https://eslint.style/rules/ts/object-curly-newline
3415
3416
  */
3416
3417
  'style/object-curly-newline'?: Linter.RuleEntry<StyleObjectCurlyNewline>
3417
3418
  /**
@@ -3421,7 +3422,7 @@ interface RuleOptions {
3421
3422
  'style/object-curly-spacing'?: Linter.RuleEntry<StyleObjectCurlySpacing>
3422
3423
  /**
3423
3424
  * Enforce placing object properties on separate lines
3424
- * @see https://eslint.style/rules/js/object-property-newline
3425
+ * @see https://eslint.style/rules/ts/object-property-newline
3425
3426
  */
3426
3427
  'style/object-property-newline'?: Linter.RuleEntry<StyleObjectPropertyNewline>
3427
3428
  /**
@@ -4655,7 +4656,7 @@ interface RuleOptions {
4655
4656
  */
4656
4657
  'ts/restrict-template-expressions'?: Linter.RuleEntry<TsRestrictTemplateExpressions>
4657
4658
  /**
4658
- * Enforce consistent returning of awaited values
4659
+ * Enforce consistent awaiting of returned promises
4659
4660
  * @see https://typescript-eslint.io/rules/return-await
4660
4661
  */
4661
4662
  'ts/return-await'?: Linter.RuleEntry<TsReturnAwait>
@@ -4668,6 +4669,7 @@ interface RuleOptions {
4668
4669
  /**
4669
4670
  * Enforce constituents of a type union/intersection to be sorted alphabetically
4670
4671
  * @see https://typescript-eslint.io/rules/sort-type-constituents
4672
+ * @deprecated
4671
4673
  */
4672
4674
  'ts/sort-type-constituents'?: Linter.RuleEntry<TsSortTypeConstituents>
4673
4675
  /**
@@ -4736,677 +4738,682 @@ interface RuleOptions {
4736
4738
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
4737
4739
  /**
4738
4740
  * Improve regexes by making them shorter, consistent, and safer.
4739
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/better-regex.md
4741
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/better-regex.md
4740
4742
  */
4741
4743
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
4742
4744
  /**
4743
4745
  * Enforce a specific parameter name in catch clauses.
4744
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/catch-error-name.md
4746
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/catch-error-name.md
4745
4747
  */
4746
4748
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
4747
4749
  /**
4748
4750
  * Use destructured variables over properties.
4749
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/consistent-destructuring.md
4751
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/consistent-destructuring.md
4750
4752
  */
4751
4753
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
4752
4754
  /**
4753
4755
  * Prefer consistent types when spreading a ternary in an array literal.
4754
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/consistent-empty-array-spread.md
4756
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/consistent-empty-array-spread.md
4755
4757
  */
4756
4758
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
4757
4759
  /**
4758
4760
  * Move function definitions to the highest possible scope.
4759
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/consistent-function-scoping.md
4761
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/consistent-function-scoping.md
4760
4762
  */
4761
4763
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
4762
4764
  /**
4763
4765
  * Enforce correct `Error` subclassing.
4764
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/custom-error-definition.md
4766
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/custom-error-definition.md
4765
4767
  */
4766
4768
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
4767
4769
  /**
4768
4770
  * Enforce no spaces between braces.
4769
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/empty-brace-spaces.md
4771
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/empty-brace-spaces.md
4770
4772
  */
4771
4773
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
4772
4774
  /**
4773
4775
  * Enforce passing a `message` value when creating a built-in error.
4774
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/error-message.md
4776
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/error-message.md
4775
4777
  */
4776
4778
  'unicorn/error-message'?: Linter.RuleEntry<[]>
4777
4779
  /**
4778
4780
  * Require escape sequences to use uppercase values.
4779
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/escape-case.md
4781
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/escape-case.md
4780
4782
  */
4781
4783
  'unicorn/escape-case'?: Linter.RuleEntry<[]>
4782
4784
  /**
4783
4785
  * Add expiration conditions to TODO comments.
4784
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/expiring-todo-comments.md
4786
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/expiring-todo-comments.md
4785
4787
  */
4786
4788
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
4787
4789
  /**
4788
4790
  * Enforce explicitly comparing the `length` or `size` property of a value.
4789
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/explicit-length-check.md
4791
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/explicit-length-check.md
4790
4792
  */
4791
4793
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
4792
4794
  /**
4793
4795
  * Enforce a case style for filenames.
4794
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/filename-case.md
4796
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/filename-case.md
4795
4797
  */
4796
4798
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
4797
4799
  /**
4798
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#import-index
4800
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#import-index
4799
4801
  * @deprecated
4800
4802
  */
4801
4803
  'unicorn/import-index'?: Linter.RuleEntry<[]>
4802
4804
  /**
4803
4805
  * Enforce specific import styles per module.
4804
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/import-style.md
4806
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/import-style.md
4805
4807
  */
4806
4808
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
4807
4809
  /**
4808
4810
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
4809
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/new-for-builtins.md
4811
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/new-for-builtins.md
4810
4812
  */
4811
4813
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
4812
4814
  /**
4813
4815
  * Enforce specifying rules to disable in `eslint-disable` comments.
4814
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-abusive-eslint-disable.md
4816
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-abusive-eslint-disable.md
4815
4817
  */
4816
4818
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
4817
4819
  /**
4818
4820
  * Disallow anonymous functions and classes as the default export.
4819
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-anonymous-default-export.md
4821
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-anonymous-default-export.md
4820
4822
  */
4821
4823
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
4822
4824
  /**
4823
4825
  * Prevent passing a function reference directly to iterator methods.
4824
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-array-callback-reference.md
4826
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-callback-reference.md
4825
4827
  */
4826
4828
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
4827
4829
  /**
4828
4830
  * Prefer `for…of` over the `forEach` method.
4829
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-array-for-each.md
4831
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-for-each.md
4830
4832
  */
4831
4833
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
4832
4834
  /**
4833
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#no-array-instanceof
4835
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#no-array-instanceof
4834
4836
  * @deprecated
4835
4837
  */
4836
4838
  'unicorn/no-array-instanceof'?: Linter.RuleEntry<[]>
4837
4839
  /**
4838
4840
  * Disallow using the `this` argument in array methods.
4839
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-array-method-this-argument.md
4841
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-method-this-argument.md
4840
4842
  */
4841
4843
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
4842
4844
  /**
4843
4845
  * Enforce combining multiple `Array#push()` into one call.
4844
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-array-push-push.md
4846
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-push-push.md
4845
4847
  */
4846
4848
  'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>
4847
4849
  /**
4848
4850
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
4849
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-array-reduce.md
4851
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-reduce.md
4850
4852
  */
4851
4853
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
4852
4854
  /**
4853
4855
  * Disallow member access from await expression.
4854
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-await-expression-member.md
4856
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-await-expression-member.md
4855
4857
  */
4856
4858
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
4857
4859
  /**
4858
4860
  * Disallow using `await` in `Promise` method parameters.
4859
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-await-in-promise-methods.md
4861
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-await-in-promise-methods.md
4860
4862
  */
4861
4863
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
4862
4864
  /**
4863
4865
  * Do not use leading/trailing space between `console.log` parameters.
4864
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-console-spaces.md
4866
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-console-spaces.md
4865
4867
  */
4866
4868
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
4867
4869
  /**
4868
4870
  * Do not use `document.cookie` directly.
4869
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-document-cookie.md
4871
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-document-cookie.md
4870
4872
  */
4871
4873
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
4872
4874
  /**
4873
4875
  * Disallow empty files.
4874
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-empty-file.md
4876
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-empty-file.md
4875
4877
  */
4876
4878
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
4877
4879
  /**
4878
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#no-fn-reference-in-iterator
4880
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#no-fn-reference-in-iterator
4879
4881
  * @deprecated
4880
4882
  */
4881
4883
  'unicorn/no-fn-reference-in-iterator'?: Linter.RuleEntry<[]>
4882
4884
  /**
4883
4885
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
4884
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-for-loop.md
4886
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-for-loop.md
4885
4887
  */
4886
4888
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
4887
4889
  /**
4888
4890
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
4889
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-hex-escape.md
4891
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-hex-escape.md
4890
4892
  */
4891
4893
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
4892
4894
  /**
4893
4895
  * Require `Array.isArray()` instead of `instanceof Array`.
4894
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-instanceof-array.md
4896
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-instanceof-array.md
4895
4897
  */
4896
4898
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
4897
4899
  /**
4898
4900
  * Disallow invalid options in `fetch()` and `new Request()`.
4899
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-invalid-fetch-options.md
4901
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-invalid-fetch-options.md
4900
4902
  */
4901
4903
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
4902
4904
  /**
4903
4905
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
4904
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-invalid-remove-event-listener.md
4906
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-invalid-remove-event-listener.md
4905
4907
  */
4906
4908
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
4907
4909
  /**
4908
4910
  * Disallow identifiers starting with `new` or `class`.
4909
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-keyword-prefix.md
4911
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-keyword-prefix.md
4910
4912
  */
4911
4913
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
4912
4914
  /**
4913
4915
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
4914
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-lonely-if.md
4916
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-lonely-if.md
4915
4917
  */
4916
4918
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
4917
4919
  /**
4918
4920
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
4919
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-magic-array-flat-depth.md
4921
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-magic-array-flat-depth.md
4920
4922
  */
4921
4923
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
4922
4924
  /**
4923
4925
  * Disallow negated conditions.
4924
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-negated-condition.md
4926
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-negated-condition.md
4925
4927
  */
4926
4928
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
4929
+ /**
4930
+ * Disallow negated expression in equality check.
4931
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-negation-in-equality-check.md
4932
+ */
4933
+ 'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
4927
4934
  /**
4928
4935
  * Disallow nested ternary expressions.
4929
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-nested-ternary.md
4936
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-nested-ternary.md
4930
4937
  */
4931
4938
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
4932
4939
  /**
4933
4940
  * Disallow `new Array()`.
4934
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-new-array.md
4941
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-new-array.md
4935
4942
  */
4936
4943
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
4937
4944
  /**
4938
4945
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
4939
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-new-buffer.md
4946
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-new-buffer.md
4940
4947
  */
4941
4948
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
4942
4949
  /**
4943
4950
  * Disallow the use of the `null` literal.
4944
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-null.md
4951
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-null.md
4945
4952
  */
4946
4953
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
4947
4954
  /**
4948
4955
  * Disallow the use of objects as default parameters.
4949
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-object-as-default-parameter.md
4956
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-object-as-default-parameter.md
4950
4957
  */
4951
4958
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
4952
4959
  /**
4953
4960
  * Disallow `process.exit()`.
4954
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-process-exit.md
4961
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-process-exit.md
4955
4962
  */
4956
4963
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
4957
4964
  /**
4958
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#no-reduce
4965
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#no-reduce
4959
4966
  * @deprecated
4960
4967
  */
4961
4968
  'unicorn/no-reduce'?: Linter.RuleEntry<[]>
4962
4969
  /**
4963
4970
  * Disallow passing single-element arrays to `Promise` methods.
4964
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-single-promise-in-promise-methods.md
4971
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-single-promise-in-promise-methods.md
4965
4972
  */
4966
4973
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
4967
4974
  /**
4968
4975
  * Disallow classes that only have static members.
4969
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-static-only-class.md
4976
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-static-only-class.md
4970
4977
  */
4971
4978
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
4972
4979
  /**
4973
4980
  * Disallow `then` property.
4974
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-thenable.md
4981
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-thenable.md
4975
4982
  */
4976
4983
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
4977
4984
  /**
4978
4985
  * Disallow assigning `this` to a variable.
4979
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-this-assignment.md
4986
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-this-assignment.md
4980
4987
  */
4981
4988
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
4982
4989
  /**
4983
4990
  * Disallow comparing `undefined` using `typeof`.
4984
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-typeof-undefined.md
4991
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-typeof-undefined.md
4985
4992
  */
4986
4993
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
4987
4994
  /**
4988
4995
  * Disallow awaiting non-promise values.
4989
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-unnecessary-await.md
4996
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unnecessary-await.md
4990
4997
  */
4991
4998
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
4992
4999
  /**
4993
5000
  * Enforce the use of built-in methods instead of unnecessary polyfills.
4994
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-unnecessary-polyfills.md
5001
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unnecessary-polyfills.md
4995
5002
  */
4996
5003
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
4997
5004
  /**
4998
5005
  * Disallow unreadable array destructuring.
4999
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-unreadable-array-destructuring.md
5006
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unreadable-array-destructuring.md
5000
5007
  */
5001
5008
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
5002
5009
  /**
5003
5010
  * Disallow unreadable IIFEs.
5004
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-unreadable-iife.md
5011
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unreadable-iife.md
5005
5012
  */
5006
5013
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
5007
5014
  /**
5008
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#no-unsafe-regex
5015
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#no-unsafe-regex
5009
5016
  * @deprecated
5010
5017
  */
5011
5018
  'unicorn/no-unsafe-regex'?: Linter.RuleEntry<[]>
5012
5019
  /**
5013
5020
  * Disallow unused object properties.
5014
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-unused-properties.md
5021
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unused-properties.md
5015
5022
  */
5016
5023
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
5017
5024
  /**
5018
5025
  * Disallow useless fallback when spreading in object literals.
5019
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-fallback-in-spread.md
5026
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-fallback-in-spread.md
5020
5027
  */
5021
5028
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
5022
5029
  /**
5023
5030
  * Disallow useless array length check.
5024
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-length-check.md
5031
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-length-check.md
5025
5032
  */
5026
5033
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
5027
5034
  /**
5028
5035
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
5029
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-promise-resolve-reject.md
5036
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-promise-resolve-reject.md
5030
5037
  */
5031
5038
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
5032
5039
  /**
5033
5040
  * Disallow unnecessary spread.
5034
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-spread.md
5041
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-spread.md
5035
5042
  */
5036
5043
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
5037
5044
  /**
5038
5045
  * Disallow useless case in switch statements.
5039
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-switch-case.md
5046
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-switch-case.md
5040
5047
  */
5041
5048
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
5042
5049
  /**
5043
5050
  * Disallow useless `undefined`.
5044
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-useless-undefined.md
5051
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-undefined.md
5045
5052
  */
5046
5053
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
5047
5054
  /**
5048
5055
  * Disallow number literals with zero fractions or dangling dots.
5049
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/no-zero-fractions.md
5056
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-zero-fractions.md
5050
5057
  */
5051
5058
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
5052
5059
  /**
5053
5060
  * Enforce proper case for numeric literals.
5054
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/number-literal-case.md
5061
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/number-literal-case.md
5055
5062
  */
5056
5063
  'unicorn/number-literal-case'?: Linter.RuleEntry<[]>
5057
5064
  /**
5058
5065
  * Enforce the style of numeric separators by correctly grouping digits.
5059
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/numeric-separators-style.md
5066
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/numeric-separators-style.md
5060
5067
  */
5061
5068
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
5062
5069
  /**
5063
5070
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
5064
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-add-event-listener.md
5071
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-add-event-listener.md
5065
5072
  */
5066
5073
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
5067
5074
  /**
5068
5075
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
5069
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-array-find.md
5076
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-find.md
5070
5077
  */
5071
5078
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
5072
5079
  /**
5073
5080
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
5074
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-array-flat.md
5081
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-flat.md
5075
5082
  */
5076
5083
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
5077
5084
  /**
5078
5085
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
5079
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-array-flat-map.md
5086
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-flat-map.md
5080
5087
  */
5081
5088
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
5082
5089
  /**
5083
5090
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
5084
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-array-index-of.md
5091
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-index-of.md
5085
5092
  */
5086
5093
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
5087
5094
  /**
5088
- * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast}(…)`.
5089
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-array-some.md
5095
+ * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
5096
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-some.md
5090
5097
  */
5091
5098
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
5092
5099
  /**
5093
5100
  * Prefer `.at()` method for index access and `String#charAt()`.
5094
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-at.md
5101
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-at.md
5095
5102
  */
5096
5103
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
5097
5104
  /**
5098
5105
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
5099
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-blob-reading-methods.md
5106
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-blob-reading-methods.md
5100
5107
  */
5101
5108
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
5102
5109
  /**
5103
5110
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
5104
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-code-point.md
5111
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-code-point.md
5105
5112
  */
5106
5113
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
5107
5114
  /**
5108
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-dataset
5115
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-dataset
5109
5116
  * @deprecated
5110
5117
  */
5111
5118
  'unicorn/prefer-dataset'?: Linter.RuleEntry<[]>
5112
5119
  /**
5113
5120
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
5114
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-date-now.md
5121
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-date-now.md
5115
5122
  */
5116
5123
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
5117
5124
  /**
5118
5125
  * Prefer default parameters over reassignment.
5119
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-default-parameters.md
5126
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-default-parameters.md
5120
5127
  */
5121
5128
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
5122
5129
  /**
5123
5130
  * Prefer `Node#append()` over `Node#appendChild()`.
5124
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-dom-node-append.md
5131
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-dom-node-append.md
5125
5132
  */
5126
5133
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
5127
5134
  /**
5128
5135
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
5129
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-dom-node-dataset.md
5136
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-dom-node-dataset.md
5130
5137
  */
5131
5138
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
5132
5139
  /**
5133
5140
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
5134
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-dom-node-remove.md
5141
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-dom-node-remove.md
5135
5142
  */
5136
5143
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
5137
5144
  /**
5138
5145
  * Prefer `.textContent` over `.innerText`.
5139
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-dom-node-text-content.md
5146
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-dom-node-text-content.md
5140
5147
  */
5141
5148
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
5142
5149
  /**
5143
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-event-key
5150
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-event-key
5144
5151
  * @deprecated
5145
5152
  */
5146
5153
  'unicorn/prefer-event-key'?: Linter.RuleEntry<[]>
5147
5154
  /**
5148
5155
  * Prefer `EventTarget` over `EventEmitter`.
5149
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-event-target.md
5156
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-event-target.md
5150
5157
  */
5151
5158
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
5152
5159
  /**
5153
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-exponentiation-operator
5160
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-exponentiation-operator
5154
5161
  * @deprecated
5155
5162
  */
5156
5163
  'unicorn/prefer-exponentiation-operator'?: Linter.RuleEntry<[]>
5157
5164
  /**
5158
5165
  * Prefer `export…from` when re-exporting.
5159
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-export-from.md
5166
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-export-from.md
5160
5167
  */
5161
5168
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
5162
5169
  /**
5163
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-flat-map
5170
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-flat-map
5164
5171
  * @deprecated
5165
5172
  */
5166
5173
  'unicorn/prefer-flat-map'?: Linter.RuleEntry<[]>
5167
5174
  /**
5168
- * Prefer `.includes()` over `.indexOf()` and `Array#some()` when checking for existence or non-existence.
5169
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-includes.md
5175
+ * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
5176
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-includes.md
5170
5177
  */
5171
5178
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
5172
5179
  /**
5173
5180
  * Prefer reading a JSON file as a buffer.
5174
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-json-parse-buffer.md
5181
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-json-parse-buffer.md
5175
5182
  */
5176
5183
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
5177
5184
  /**
5178
5185
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
5179
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-keyboard-event-key.md
5186
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-keyboard-event-key.md
5180
5187
  */
5181
5188
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
5182
5189
  /**
5183
5190
  * Prefer using a logical operator over a ternary.
5184
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-logical-operator-over-ternary.md
5191
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-logical-operator-over-ternary.md
5185
5192
  */
5186
5193
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
5187
5194
  /**
5188
5195
  * Enforce the use of `Math.trunc` instead of bitwise operators.
5189
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-math-trunc.md
5196
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-math-trunc.md
5190
5197
  */
5191
5198
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
5192
5199
  /**
5193
5200
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
5194
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-modern-dom-apis.md
5201
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-modern-dom-apis.md
5195
5202
  */
5196
5203
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
5197
5204
  /**
5198
5205
  * Prefer modern `Math` APIs over legacy patterns.
5199
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-modern-math-apis.md
5206
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-modern-math-apis.md
5200
5207
  */
5201
5208
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
5202
5209
  /**
5203
5210
  * Prefer JavaScript modules (ESM) over CommonJS.
5204
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-module.md
5211
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-module.md
5205
5212
  */
5206
5213
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
5207
5214
  /**
5208
5215
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
5209
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-native-coercion-functions.md
5216
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-native-coercion-functions.md
5210
5217
  */
5211
5218
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
5212
5219
  /**
5213
5220
  * Prefer negative index over `.length - index` when possible.
5214
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-negative-index.md
5221
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-negative-index.md
5215
5222
  */
5216
5223
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
5217
5224
  /**
5218
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-node-append
5225
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-node-append
5219
5226
  * @deprecated
5220
5227
  */
5221
5228
  'unicorn/prefer-node-append'?: Linter.RuleEntry<[]>
5222
5229
  /**
5223
5230
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
5224
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-node-protocol.md
5231
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-node-protocol.md
5225
5232
  */
5226
5233
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
5227
5234
  /**
5228
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-node-remove
5235
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-node-remove
5229
5236
  * @deprecated
5230
5237
  */
5231
5238
  'unicorn/prefer-node-remove'?: Linter.RuleEntry<[]>
5232
5239
  /**
5233
5240
  * Prefer `Number` static properties over global ones.
5234
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-number-properties.md
5241
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-number-properties.md
5235
5242
  */
5236
5243
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
5237
5244
  /**
5238
5245
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
5239
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-object-from-entries.md
5246
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-object-from-entries.md
5240
5247
  */
5241
5248
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
5242
5249
  /**
5243
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-object-has-own
5250
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-object-has-own
5244
5251
  * @deprecated
5245
5252
  */
5246
5253
  'unicorn/prefer-object-has-own'?: Linter.RuleEntry<[]>
5247
5254
  /**
5248
5255
  * Prefer omitting the `catch` binding parameter.
5249
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-optional-catch-binding.md
5256
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-optional-catch-binding.md
5250
5257
  */
5251
5258
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
5252
5259
  /**
5253
5260
  * Prefer borrowing methods from the prototype instead of the instance.
5254
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-prototype-methods.md
5261
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-prototype-methods.md
5255
5262
  */
5256
5263
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
5257
5264
  /**
5258
5265
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()`.
5259
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-query-selector.md
5266
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-query-selector.md
5260
5267
  */
5261
5268
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
5262
5269
  /**
5263
5270
  * Prefer `Reflect.apply()` over `Function#apply()`.
5264
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-reflect-apply.md
5271
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-reflect-apply.md
5265
5272
  */
5266
5273
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
5267
5274
  /**
5268
5275
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
5269
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-regexp-test.md
5276
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-regexp-test.md
5270
5277
  */
5271
5278
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
5272
5279
  /**
5273
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-replace-all
5280
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-replace-all
5274
5281
  * @deprecated
5275
5282
  */
5276
5283
  'unicorn/prefer-replace-all'?: Linter.RuleEntry<[]>
5277
5284
  /**
5278
5285
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
5279
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-set-has.md
5286
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-set-has.md
5280
5287
  */
5281
5288
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
5282
5289
  /**
5283
5290
  * Prefer using `Set#size` instead of `Array#length`.
5284
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-set-size.md
5291
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-set-size.md
5285
5292
  */
5286
5293
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
5287
5294
  /**
5288
5295
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
5289
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-spread.md
5296
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-spread.md
5290
5297
  */
5291
5298
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
5292
5299
  /**
5293
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-starts-ends-with
5300
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-starts-ends-with
5294
5301
  * @deprecated
5295
5302
  */
5296
5303
  'unicorn/prefer-starts-ends-with'?: Linter.RuleEntry<[]>
5297
5304
  /**
5298
5305
  * Prefer using the `String.raw` tag to avoid escaping `\`.
5299
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-string-raw.md
5306
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-raw.md
5300
5307
  */
5301
5308
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
5302
5309
  /**
5303
5310
  * Prefer `String#replaceAll()` over regex searches with the global flag.
5304
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-string-replace-all.md
5311
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-replace-all.md
5305
5312
  */
5306
5313
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
5307
5314
  /**
5308
5315
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
5309
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-string-slice.md
5316
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-slice.md
5310
5317
  */
5311
5318
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
5312
5319
  /**
5313
5320
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
5314
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-string-starts-ends-with.md
5321
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-starts-ends-with.md
5315
5322
  */
5316
5323
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
5317
5324
  /**
5318
5325
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
5319
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-string-trim-start-end.md
5326
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-trim-start-end.md
5320
5327
  */
5321
5328
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
5322
5329
  /**
5323
5330
  * Prefer using `structuredClone` to create a deep clone.
5324
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-structured-clone.md
5331
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-structured-clone.md
5325
5332
  */
5326
5333
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
5327
5334
  /**
5328
5335
  * Prefer `switch` over multiple `else-if`.
5329
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-switch.md
5336
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-switch.md
5330
5337
  */
5331
5338
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
5332
5339
  /**
5333
5340
  * Prefer ternary expressions over simple `if-else` statements.
5334
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-ternary.md
5341
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-ternary.md
5335
5342
  */
5336
5343
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
5337
5344
  /**
5338
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-text-content
5345
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-text-content
5339
5346
  * @deprecated
5340
5347
  */
5341
5348
  'unicorn/prefer-text-content'?: Linter.RuleEntry<[]>
5342
5349
  /**
5343
5350
  * Prefer top-level await over top-level promises and async function calls.
5344
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-top-level-await.md
5351
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-top-level-await.md
5345
5352
  */
5346
5353
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
5347
5354
  /**
5348
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#prefer-trim-start-end
5355
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-trim-start-end
5349
5356
  * @deprecated
5350
5357
  */
5351
5358
  'unicorn/prefer-trim-start-end'?: Linter.RuleEntry<[]>
5352
5359
  /**
5353
5360
  * Enforce throwing `TypeError` in type checking conditions.
5354
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prefer-type-error.md
5361
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-type-error.md
5355
5362
  */
5356
5363
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
5357
5364
  /**
5358
5365
  * Prevent abbreviations.
5359
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/prevent-abbreviations.md
5366
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prevent-abbreviations.md
5360
5367
  */
5361
5368
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
5362
5369
  /**
5363
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/deprecated-rules.md#regex-shorthand
5370
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#regex-shorthand
5364
5371
  * @deprecated
5365
5372
  */
5366
5373
  'unicorn/regex-shorthand'?: Linter.RuleEntry<[]>
5367
5374
  /**
5368
5375
  * Enforce consistent relative URL style.
5369
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/relative-url-style.md
5376
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/relative-url-style.md
5370
5377
  */
5371
5378
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
5372
5379
  /**
5373
5380
  * Enforce using the separator argument with `Array#join()`.
5374
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/require-array-join-separator.md
5381
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/require-array-join-separator.md
5375
5382
  */
5376
5383
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
5377
5384
  /**
5378
5385
  * Enforce using the digits argument with `Number#toFixed()`.
5379
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/require-number-to-fixed-digits-argument.md
5386
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/require-number-to-fixed-digits-argument.md
5380
5387
  */
5381
5388
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
5382
5389
  /**
5383
5390
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
5384
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/require-post-message-target-origin.md
5391
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/require-post-message-target-origin.md
5385
5392
  */
5386
5393
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
5387
5394
  /**
5388
5395
  * Enforce better string content.
5389
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/string-content.md
5396
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/string-content.md
5390
5397
  */
5391
5398
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
5392
5399
  /**
5393
5400
  * Enforce consistent brace style for `case` clauses.
5394
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/switch-case-braces.md
5401
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/switch-case-braces.md
5395
5402
  */
5396
5403
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
5397
5404
  /**
5398
5405
  * Fix whitespace-insensitive template indentation.
5399
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/template-indent.md
5406
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/template-indent.md
5400
5407
  */
5401
5408
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
5402
5409
  /**
5403
5410
  * Enforce consistent case for text encoding identifiers.
5404
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/text-encoding-identifier-case.md
5411
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/text-encoding-identifier-case.md
5405
5412
  */
5406
5413
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
5407
5414
  /**
5408
5415
  * Require `new` when creating an error.
5409
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v53.0.0/docs/rules/throw-new-error.md
5416
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/throw-new-error.md
5410
5417
  */
5411
5418
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
5412
5419
  /**
@@ -9152,6 +9159,7 @@ type NodeNoUnpublishedImport = []|[{
9152
9159
  })[]])
9153
9160
  resolvePaths?: string[]
9154
9161
  ignoreTypeImport?: boolean
9162
+ ignorePrivate?: boolean
9155
9163
  }]
9156
9164
  // ----- node/no-unpublished-require -----
9157
9165
  type NodeNoUnpublishedRequire = []|[{
@@ -9174,6 +9182,7 @@ type NodeNoUnpublishedRequire = []|[{
9174
9182
  })[]])
9175
9183
  resolvePaths?: string[]
9176
9184
  tryExtensions?: string[]
9185
+ ignorePrivate?: boolean
9177
9186
  }]
9178
9187
  // ----- node/no-unsupported-features/es-builtins -----
9179
9188
  type NodeNoUnsupportedFeaturesEsBuiltins = []|[{
@@ -9520,6 +9529,7 @@ type StyleArrayElementNewline = []|[(_StyleArrayElementNewlineBasicConfig | {
9520
9529
  ArrayPattern?: _StyleArrayElementNewlineBasicConfig
9521
9530
  })]
9522
9531
  type _StyleArrayElementNewlineBasicConfig = (("always" | "never" | "consistent") | {
9532
+ consistent?: boolean
9523
9533
  multiline?: boolean
9524
9534
  minItems?: (number | null)
9525
9535
  })
@@ -9716,7 +9726,7 @@ type StyleJsxNewline = []|[{
9716
9726
  }]
9717
9727
  // ----- style/jsx-one-expression-per-line -----
9718
9728
  type StyleJsxOneExpressionPerLine = []|[{
9719
- allow?: ("none" | "literal" | "single-child" | "single-line")
9729
+ allow?: ("none" | "literal" | "single-child" | "single-line" | "non-jsx")
9720
9730
  }]
9721
9731
  // ----- style/jsx-pascal-case -----
9722
9732
  type StyleJsxPascalCase = []|[{
@@ -10349,6 +10359,16 @@ type StyleObjectCurlyNewline = []|[((("always" | "never") | {
10349
10359
  minProperties?: number
10350
10360
  consistent?: boolean
10351
10361
  })
10362
+ TSTypeLiteral?: (("always" | "never") | {
10363
+ multiline?: boolean
10364
+ minProperties?: number
10365
+ consistent?: boolean
10366
+ })
10367
+ TSInterfaceBody?: (("always" | "never") | {
10368
+ multiline?: boolean
10369
+ minProperties?: number
10370
+ consistent?: boolean
10371
+ })
10352
10372
  })]
10353
10373
  // ----- style/object-curly-spacing -----
10354
10374
  type StyleObjectCurlySpacing = []|[("always" | "never")]|[("always" | "never"), {
@@ -10398,6 +10418,7 @@ type StyleQuoteProps = ([]|[("always" | "as-needed" | "consistent" | "consistent
10398
10418
  type StyleQuotes = []|[("single" | "double" | "backtick")]|[("single" | "double" | "backtick"), ("avoid-escape" | {
10399
10419
  avoidEscape?: boolean
10400
10420
  allowTemplateLiterals?: boolean
10421
+ ignoreStringLiterals?: boolean
10401
10422
  })]
10402
10423
  // ----- style/rest-spread-spacing -----
10403
10424
  type StyleRestSpreadSpacing = []|[("always" | "never")]
@@ -12536,6 +12557,7 @@ type VueArrayElementNewline = []|[(_VueArrayElementNewlineBasicConfig | {
12536
12557
  ArrayPattern?: _VueArrayElementNewlineBasicConfig
12537
12558
  })]
12538
12559
  type _VueArrayElementNewlineBasicConfig = (("always" | "never" | "consistent") | {
12560
+ consistent?: boolean
12539
12561
  multiline?: boolean
12540
12562
  minItems?: (number | null)
12541
12563
  })
@@ -13510,6 +13532,16 @@ type VueObjectCurlyNewline = []|[((("always" | "never") | {
13510
13532
  minProperties?: number
13511
13533
  consistent?: boolean
13512
13534
  })
13535
+ TSTypeLiteral?: (("always" | "never") | {
13536
+ multiline?: boolean
13537
+ minProperties?: number
13538
+ consistent?: boolean
13539
+ })
13540
+ TSInterfaceBody?: (("always" | "never") | {
13541
+ multiline?: boolean
13542
+ minProperties?: number
13543
+ consistent?: boolean
13544
+ })
13513
13545
  })]
13514
13546
  // ----- vue/object-curly-spacing -----
13515
13547
  type VueObjectCurlySpacing = []|[("always" | "never")]|[("always" | "never"), {