@kitschpatrol/eslint-config 5.3.1 → 5.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -775,233 +775,233 @@ interface RuleOptions {
775
775
  'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
776
776
  /**
777
777
  * Enforce or ban the use of inline type-only markers for named imports.
778
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/consistent-type-specifier-style.md
778
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/consistent-type-specifier-style.md
779
779
  */
780
780
  'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
781
781
  /**
782
782
  * Ensure a default export is present, given a default import.
783
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/default.md
783
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/default.md
784
784
  */
785
785
  'import/default'?: Linter.RuleEntry<[]>
786
786
  /**
787
787
  * Enforce a leading comment with the webpackChunkName for dynamic imports.
788
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/dynamic-import-chunkname.md
788
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/dynamic-import-chunkname.md
789
789
  */
790
790
  'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
791
791
  /**
792
792
  * Forbid any invalid exports, i.e. re-export of the same name.
793
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/export.md
793
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/export.md
794
794
  */
795
795
  'import/export'?: Linter.RuleEntry<[]>
796
796
  /**
797
797
  * Ensure all exports appear after other statements.
798
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/exports-last.md
798
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/exports-last.md
799
799
  */
800
800
  'import/exports-last'?: Linter.RuleEntry<[]>
801
801
  /**
802
802
  * Ensure consistent use of file extension within the import path.
803
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/extensions.md
803
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/extensions.md
804
804
  */
805
805
  'import/extensions'?: Linter.RuleEntry<ImportExtensions>
806
806
  /**
807
807
  * Ensure all imports appear before other statements.
808
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/first.md
808
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/first.md
809
809
  */
810
810
  'import/first'?: Linter.RuleEntry<ImportFirst>
811
811
  /**
812
812
  * Prefer named exports to be grouped together in a single export declaration.
813
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/group-exports.md
813
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/group-exports.md
814
814
  */
815
815
  'import/group-exports'?: Linter.RuleEntry<[]>
816
816
  /**
817
817
  * Replaced by `import-x/first`.
818
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/imports-first.md
818
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/imports-first.md
819
819
  * @deprecated
820
820
  */
821
821
  'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
822
822
  /**
823
823
  * Enforce the maximum number of dependencies a module can have.
824
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/max-dependencies.md
824
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/max-dependencies.md
825
825
  */
826
826
  'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
827
827
  /**
828
828
  * Ensure named imports correspond to a named export in the remote file.
829
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/named.md
829
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/named.md
830
830
  */
831
831
  'import/named'?: Linter.RuleEntry<ImportNamed>
832
832
  /**
833
833
  * Ensure imported namespaces contain dereferenced properties as they are dereferenced.
834
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/namespace.md
834
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/namespace.md
835
835
  */
836
836
  'import/namespace'?: Linter.RuleEntry<ImportNamespace>
837
837
  /**
838
838
  * Enforce a newline after import statements.
839
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/newline-after-import.md
839
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/newline-after-import.md
840
840
  */
841
841
  'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
842
842
  /**
843
843
  * Forbid import of modules using absolute paths.
844
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-absolute-path.md
844
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-absolute-path.md
845
845
  */
846
846
  'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
847
847
  /**
848
848
  * Forbid AMD `require` and `define` calls.
849
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-amd.md
849
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-amd.md
850
850
  */
851
851
  'import/no-amd'?: Linter.RuleEntry<[]>
852
852
  /**
853
853
  * Forbid anonymous values as default exports.
854
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-anonymous-default-export.md
854
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-anonymous-default-export.md
855
855
  */
856
856
  'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
857
857
  /**
858
858
  * Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
859
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-commonjs.md
859
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-commonjs.md
860
860
  */
861
861
  'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
862
862
  /**
863
863
  * Forbid a module from importing a module with a dependency path back to itself.
864
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-cycle.md
864
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-cycle.md
865
865
  */
866
866
  'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
867
867
  /**
868
868
  * Forbid default exports.
869
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-default-export.md
869
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-default-export.md
870
870
  */
871
871
  'import/no-default-export'?: Linter.RuleEntry<[]>
872
872
  /**
873
873
  * Forbid imported names marked with `@deprecated` documentation tag.
874
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-deprecated.md
874
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-deprecated.md
875
875
  */
876
876
  'import/no-deprecated'?: Linter.RuleEntry<[]>
877
877
  /**
878
878
  * Forbid repeated import of the same module in multiple places.
879
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-duplicates.md
879
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-duplicates.md
880
880
  */
881
881
  'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
882
882
  /**
883
883
  * Forbid `require()` calls with expressions.
884
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-dynamic-require.md
884
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-dynamic-require.md
885
885
  */
886
886
  'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
887
887
  /**
888
888
  * Forbid empty named import blocks.
889
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-empty-named-blocks.md
889
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-empty-named-blocks.md
890
890
  */
891
891
  'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
892
892
  /**
893
893
  * Forbid the use of extraneous packages.
894
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-extraneous-dependencies.md
894
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-extraneous-dependencies.md
895
895
  */
896
896
  'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
897
897
  /**
898
898
  * Forbid import statements with CommonJS module.exports.
899
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-import-module-exports.md
899
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-import-module-exports.md
900
900
  */
901
901
  'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
902
902
  /**
903
903
  * Forbid importing the submodules of other modules.
904
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-internal-modules.md
904
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-internal-modules.md
905
905
  */
906
906
  'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
907
907
  /**
908
908
  * Forbid the use of mutable exports with `var` or `let`.
909
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-mutable-exports.md
909
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-mutable-exports.md
910
910
  */
911
911
  'import/no-mutable-exports'?: Linter.RuleEntry<[]>
912
912
  /**
913
913
  * Forbid use of exported name as identifier of default export.
914
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-as-default.md
914
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-named-as-default.md
915
915
  */
916
916
  'import/no-named-as-default'?: Linter.RuleEntry<[]>
917
917
  /**
918
918
  * Forbid use of exported name as property of default export.
919
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-as-default-member.md
919
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-named-as-default-member.md
920
920
  */
921
921
  'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
922
922
  /**
923
923
  * Forbid named default exports.
924
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-default.md
924
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-named-default.md
925
925
  */
926
926
  'import/no-named-default'?: Linter.RuleEntry<[]>
927
927
  /**
928
928
  * Forbid named exports.
929
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-export.md
929
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-named-export.md
930
930
  */
931
931
  'import/no-named-export'?: Linter.RuleEntry<[]>
932
932
  /**
933
933
  * Forbid namespace (a.k.a. "wildcard" `*`) imports.
934
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-namespace.md
934
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-namespace.md
935
935
  */
936
936
  'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
937
937
  /**
938
938
  * Forbid Node.js builtin modules.
939
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-nodejs-modules.md
939
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-nodejs-modules.md
940
940
  */
941
941
  'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
942
942
  /**
943
943
  * Forbid importing packages through relative paths.
944
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-relative-packages.md
944
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-relative-packages.md
945
945
  */
946
946
  'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
947
947
  /**
948
948
  * Forbid importing modules from parent directories.
949
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-relative-parent-imports.md
949
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-relative-parent-imports.md
950
950
  */
951
951
  'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
952
952
  /**
953
953
  * Forbid importing a default export by a different name.
954
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-rename-default.md
954
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-rename-default.md
955
955
  */
956
956
  'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>
957
957
  /**
958
958
  * Enforce which files can be imported in a given folder.
959
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-restricted-paths.md
959
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-restricted-paths.md
960
960
  */
961
961
  'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
962
962
  /**
963
963
  * Forbid a module from importing itself.
964
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-self-import.md
964
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-self-import.md
965
965
  */
966
966
  'import/no-self-import'?: Linter.RuleEntry<[]>
967
967
  /**
968
968
  * Forbid unassigned imports.
969
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unassigned-import.md
969
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-unassigned-import.md
970
970
  */
971
971
  'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
972
972
  /**
973
973
  * Ensure imports point to a file/module that can be resolved.
974
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unresolved.md
974
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-unresolved.md
975
975
  */
976
976
  'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
977
977
  /**
978
978
  * Forbid modules without exports, or exports without matching import in another module.
979
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unused-modules.md
979
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-unused-modules.md
980
980
  */
981
981
  'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
982
982
  /**
983
983
  * Forbid unnecessary path segments in import and require statements.
984
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-useless-path-segments.md
984
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-useless-path-segments.md
985
985
  */
986
986
  'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
987
987
  /**
988
988
  * Forbid webpack loader syntax in imports.
989
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-webpack-loader-syntax.md
989
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/no-webpack-loader-syntax.md
990
990
  */
991
991
  'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
992
992
  /**
993
993
  * Enforce a convention in module import order.
994
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/order.md
994
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/order.md
995
995
  */
996
996
  'import/order'?: Linter.RuleEntry<ImportOrder>
997
997
  /**
998
998
  * Prefer a default export if module exports a single name or multiple names.
999
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/prefer-default-export.md
999
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/prefer-default-export.md
1000
1000
  */
1001
1001
  'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
1002
1002
  /**
1003
1003
  * Forbid potentially ambiguous parse goal (`script` vs. `module`).
1004
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/unambiguous.md
1004
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.9.3/docs/rules/unambiguous.md
1005
1005
  */
1006
1006
  'import/unambiguous'?: Linter.RuleEntry<[]>
1007
1007
  /**
@@ -1326,6 +1326,10 @@ interface RuleOptions {
1326
1326
  * Requires the `author` property to be present.
1327
1327
  */
1328
1328
  'json-package/require-author'?: Linter.RuleEntry<[]>
1329
+ /**
1330
+ * Requires the `engines` property to be present.
1331
+ */
1332
+ 'json-package/require-engines'?: Linter.RuleEntry<[]>
1329
1333
  /**
1330
1334
  * Requires the `files` property to be present.
1331
1335
  */
@@ -1338,6 +1342,10 @@ interface RuleOptions {
1338
1342
  * Requires the `name` property to be present.
1339
1343
  */
1340
1344
  'json-package/require-name'?: Linter.RuleEntry<[]>
1345
+ /**
1346
+ * Requires the `types` property to be present.
1347
+ */
1348
+ 'json-package/require-types'?: Linter.RuleEntry<[]>
1341
1349
  /**
1342
1350
  * Requires the `version` property to be present.
1343
1351
  */
@@ -3193,468 +3201,503 @@ interface RuleOptions {
3193
3201
  */
3194
3202
  radix?: Linter.RuleEntry<Radix>
3195
3203
  /**
3196
- * report all class components, including anonymous ones
3204
+ * Reports all class components.
3197
3205
  * @see https://eslint-react.xyz/docs/rules/debug-class-component
3198
3206
  */
3199
3207
  'react-debug/class-component'?: Linter.RuleEntry<[]>
3200
3208
  /**
3201
- * report all function components, including anonymous ones
3209
+ * Reports all function components.
3202
3210
  * @see https://eslint-react.xyz/docs/rules/debug-function-component
3203
3211
  */
3204
3212
  'react-debug/function-component'?: Linter.RuleEntry<[]>
3205
3213
  /**
3206
- * report all React Hooks
3214
+ * Reports all React Hooks.
3207
3215
  * @see https://eslint-react.xyz/docs/rules/debug-hook
3208
3216
  */
3209
3217
  'react-debug/hook'?: Linter.RuleEntry<[]>
3210
3218
  /**
3211
- * report all identifiers that are initialized from React.
3219
+ * Report all identifiers that are initialized from React.
3212
3220
  * @see https://eslint-react.xyz/docs/rules/debug-is-from-react
3213
3221
  */
3214
3222
  'react-debug/is-from-react'?: Linter.RuleEntry<[]>
3215
3223
  /**
3216
- * report all React Hooks
3224
+ * Reports all React Hooks.
3217
3225
  * @see https://eslint-react.xyz/docs/rules/debug-hook
3218
3226
  */
3219
3227
  'react-debug/react-hooks'?: Linter.RuleEntry<[]>
3220
3228
  /**
3221
- * disallow void elements (AKA self-closing elements) from having children
3229
+ * Disallow `children` in void DOM elements.
3222
3230
  * @see https://eslint-react.xyz/docs/rules/dom-no-void-elements-with-children
3223
3231
  */
3224
3232
  'react-dom/no-children-in-void-dom-elements'?: Linter.RuleEntry<[]>
3225
3233
  /**
3226
- * disallow when a DOM component is using 'dangerouslySetInnerHTML'
3234
+ * Disallow `dangerouslySetInnerHTML`.
3227
3235
  * @see https://eslint-react.xyz/docs/rules/dom-no-dangerously-set-innerhtml
3228
3236
  */
3229
3237
  'react-dom/no-dangerously-set-innerhtml'?: Linter.RuleEntry<[]>
3230
3238
  /**
3231
- * disallow when a DOM component is using both 'children' and 'dangerouslySetInnerHTML'
3239
+ * Disallow `dangerouslySetInnerHTML` and `children` at the same time.
3232
3240
  * @see https://eslint-react.xyz/docs/rules/dom-no-dangerously-set-innerhtml-with-children
3233
3241
  */
3234
3242
  'react-dom/no-dangerously-set-innerhtml-with-children'?: Linter.RuleEntry<[]>
3235
3243
  /**
3236
- * disallow 'findDOMNode'
3244
+ * Disallow `findDOMNode`.
3237
3245
  * @see https://eslint-react.xyz/docs/rules/dom-no-find-dom-node
3238
3246
  */
3239
3247
  'react-dom/no-find-dom-node'?: Linter.RuleEntry<[]>
3240
3248
  /**
3241
- * warns against using `flushSync`
3249
+ * Disallow `flushSync`.
3242
3250
  * @see https://eslint-react.xyz/docs/rules/dom-no-flush-sync
3243
3251
  */
3244
3252
  'react-dom/no-flush-sync'?: Linter.RuleEntry<[]>
3245
3253
  /**
3246
- * enforce that button component have an explicit 'type' attribute
3254
+ * Replaces usages of `ReactDom.hydrate()` with `hydrateRoot()`.
3255
+ * @see https://eslint-react.xyz/docs/rules/dom-no-hydrate
3256
+ */
3257
+ 'react-dom/no-hydrate'?: Linter.RuleEntry<[]>
3258
+ /**
3259
+ * Enforces explicit `type` attribute for `button` elements.
3247
3260
  * @see https://eslint-react.xyz/docs/rules/dom-no-missing-button-type
3248
3261
  */
3249
3262
  'react-dom/no-missing-button-type'?: Linter.RuleEntry<[]>
3250
3263
  /**
3251
- * enforce that 'iframe' component have an explicit 'sandbox' attribute
3264
+ * Enforces explicit `sandbox` attribute for `iframe` elements.
3252
3265
  * @see https://eslint-react.xyz/docs/rules/dom-no-missing-iframe-sandbox
3253
3266
  */
3254
3267
  'react-dom/no-missing-iframe-sandbox'?: Linter.RuleEntry<[]>
3255
3268
  /**
3256
- * enforce that namespaces are not used in React elements
3269
+ * Enforces the absence of a `namespace` in React elements.
3257
3270
  * @see https://eslint-react.xyz/docs/rules/dom-no-namespace
3258
3271
  */
3259
3272
  'react-dom/no-namespace'?: Linter.RuleEntry<[]>
3260
3273
  /**
3261
- * disallow usage of the return value of 'ReactDOM.render'
3274
+ * Replaces usages of `ReactDom.render()` with `createRoot(node).render()`.
3275
+ * @see https://eslint-react.xyz/docs/rules/dom-no-render
3276
+ */
3277
+ 'react-dom/no-render'?: Linter.RuleEntry<[]>
3278
+ /**
3279
+ * Disallow the return value of `ReactDOM.render`.
3262
3280
  * @see https://eslint-react.xyz/docs/rules/dom-no-render-return-value
3263
3281
  */
3264
3282
  'react-dom/no-render-return-value'?: Linter.RuleEntry<[]>
3265
3283
  /**
3266
- * disallow 'javascript:' URLs as JSX event handler prop's value
3284
+ * Disallow `javascript:` URLs as attribute values.
3267
3285
  * @see https://eslint-react.xyz/docs/rules/dom-no-script-url
3268
3286
  */
3269
3287
  'react-dom/no-script-url'?: Linter.RuleEntry<[]>
3270
3288
  /**
3271
- * disallow usage of unknown DOM property
3289
+ * Disallow unknown `DOM` property.
3272
3290
  * @see https://eslint-react.xyz/docs/rules/dom-no-unknown-property
3273
3291
  */
3274
3292
  'react-dom/no-unknown-property'?: Linter.RuleEntry<ReactDomNoUnknownProperty>
3275
3293
  /**
3276
- * disallow unsafe iframe 'sandbox' attribute combinations
3294
+ * Enforces `sandbox` attribute for `iframe` elements is not set to unsafe combinations.
3277
3295
  * @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-iframe-sandbox
3278
3296
  */
3279
3297
  'react-dom/no-unsafe-iframe-sandbox'?: Linter.RuleEntry<[]>
3280
3298
  /**
3281
- * disallow 'target="_blank"' on an external link without 'rel="noreferrer noopener"'
3299
+ * Disallow `target="_blank"` without `rel="noreferrer noopener"`.
3282
3300
  * @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-target-blank
3283
3301
  */
3284
3302
  'react-dom/no-unsafe-target-blank'?: Linter.RuleEntry<[]>
3285
3303
  /**
3286
- * disallow void elements (AKA self-closing elements) from having children
3304
+ * Replaces usages of `useFormState` with `useActionState`.
3305
+ * @see https://eslint-react.xyz/docs/rules/dom-no-use-form-state
3306
+ */
3307
+ 'react-dom/no-use-form-state'?: Linter.RuleEntry<[]>
3308
+ /**
3309
+ * Disallow `children` in void DOM elements.
3287
3310
  * @see https://eslint-react.xyz/docs/rules/dom-no-void-elements-with-children
3288
3311
  */
3289
3312
  'react-dom/no-void-elements-with-children'?: Linter.RuleEntry<[]>
3290
3313
  /**
3291
- * enforce custom Hooks to use at least one other hook inside
3292
- * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-useless-custom-hooks
3314
+ * Enforces that a function with the `use` prefix should use at least one Hook inside of it.
3315
+ * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-prefix
3293
3316
  */
3294
3317
  'react-hooks-extra/ensure-custom-hooks-using-other-hooks'?: Linter.RuleEntry<[]>
3295
3318
  /**
3296
- * disallow unnecessary usage of 'useCallback'
3319
+ * Disallow unnecessary usage of `useCallback`.
3297
3320
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-callback
3298
3321
  */
3299
3322
  'react-hooks-extra/ensure-use-callback-has-non-empty-deps'?: Linter.RuleEntry<[]>
3300
3323
  /**
3301
- * disallow unnecessary usage of 'useMemo'
3324
+ * Disallow unnecessary usage of `useMemo`.
3302
3325
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-memo
3303
3326
  */
3304
3327
  'react-hooks-extra/ensure-use-memo-has-non-empty-deps'?: Linter.RuleEntry<[]>
3305
3328
  /**
3306
- * disallow direct calls to the 'set' function of 'useState' in 'useEffect'
3329
+ * Disallow direct calls to the `set` function of `useState` in `useEffect`.
3307
3330
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-effect
3308
3331
  */
3309
3332
  'react-hooks-extra/no-direct-set-state-in-use-effect'?: Linter.RuleEntry<[]>
3310
3333
  /**
3311
- * disallow direct calls to the 'set' function of 'useState' in 'useLayoutEffect'
3334
+ * Disallow direct calls to the `set` function of `useState` in `useLayoutEffect`.
3312
3335
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-layout-effect
3313
3336
  */
3314
3337
  'react-hooks-extra/no-direct-set-state-in-use-layout-effect'?: Linter.RuleEntry<[]>
3315
3338
  /**
3316
- * enforce custom Hooks to use at least one other hook inside
3317
- * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-useless-custom-hooks
3339
+ * Enforces that a function with the `use` prefix should use at least one Hook inside of it.
3340
+ * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-prefix
3318
3341
  */
3319
3342
  'react-hooks-extra/no-redundant-custom-hook'?: Linter.RuleEntry<[]>
3320
3343
  /**
3321
- * disallow unnecessary usage of 'useCallback'
3344
+ * Disallow unnecessary usage of `useCallback`.
3322
3345
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-callback
3323
3346
  */
3324
3347
  'react-hooks-extra/no-unnecessary-use-callback'?: Linter.RuleEntry<[]>
3325
3348
  /**
3326
- * disallow unnecessary usage of 'useMemo'
3349
+ * Disallow unnecessary usage of `useMemo`.
3327
3350
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-memo
3328
3351
  */
3329
3352
  'react-hooks-extra/no-unnecessary-use-memo'?: Linter.RuleEntry<[]>
3330
3353
  /**
3331
- * enforce custom Hooks to use at least one other hook inside
3332
- * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-useless-custom-hooks
3354
+ * Enforces that a function with the `use` prefix should use at least one Hook inside of it.
3355
+ * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-prefix
3356
+ */
3357
+ 'react-hooks-extra/no-unnecessary-use-prefix'?: Linter.RuleEntry<[]>
3358
+ /**
3359
+ * Enforces that a function with the `use` prefix should use at least one Hook inside of it.
3360
+ * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-prefix
3333
3361
  */
3334
3362
  'react-hooks-extra/no-useless-custom-hooks'?: Linter.RuleEntry<[]>
3335
3363
  /**
3336
- * disallow function calls in 'useState' that aren't wrapped in an initializer function
3364
+ * Enforces function calls made inside `useState` to be wrapped in an `initializer function`.
3337
3365
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-prefer-use-state-lazy-initialization
3338
3366
  */
3339
3367
  'react-hooks-extra/prefer-use-state-lazy-initialization'?: Linter.RuleEntry<[]>
3340
3368
  /**
3341
- * enforce naming convention for components
3369
+ * Enforces naming conventions for components.
3342
3370
  * @see https://eslint-react.xyz/docs/rules/naming-convention-component-name
3343
3371
  */
3344
3372
  'react-naming-convention/component-name'?: Linter.RuleEntry<ReactNamingConventionComponentName>
3345
3373
  /**
3346
- * enforce context name to be a valid component name with the suffix 'Context'
3374
+ * Enforces context name to be a valid component name with the suffix `Context`.
3347
3375
  * @see https://eslint-react.xyz/docs/rules/naming-convention-context-name
3348
3376
  */
3349
3377
  'react-naming-convention/context-name'?: Linter.RuleEntry<[]>
3350
3378
  /**
3351
- * enforce naming convention for JSX filenames
3379
+ * Enforces consistent file naming conventions.
3352
3380
  * @see https://eslint-react.xyz/docs/rules/naming-convention-filename
3353
3381
  */
3354
3382
  'react-naming-convention/filename'?: Linter.RuleEntry<ReactNamingConventionFilename>
3355
3383
  /**
3356
- * enforce naming convention for JSX file extensions
3384
+ * Enforces consistent file naming conventions.
3357
3385
  * @see https://eslint-react.xyz/docs/rules/naming-convention-filename-extension
3358
3386
  */
3359
3387
  'react-naming-convention/filename-extension'?: Linter.RuleEntry<ReactNamingConventionFilenameExtension>
3360
3388
  /**
3361
- * enforce destructuring and symmetric naming of 'useState' hook value and setter
3389
+ * Enforces destructuring and symmetric naming of `useState` hook value and setter.
3362
3390
  * @see https://eslint-react.xyz/docs/rules/naming-convention-use-state
3363
3391
  */
3364
3392
  'react-naming-convention/use-state'?: Linter.RuleEntry<[]>
3365
3393
  /**
3366
- * enforce that every 'addEventListener' in a component or custom Hook has a corresponding 'removeEventListener'.
3394
+ * Prevents leaked `addEventListener` in a component or custom Hook.
3367
3395
  * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-event-listener
3368
3396
  */
3369
3397
  'react-web-api/no-leaked-event-listener'?: Linter.RuleEntry<[]>
3370
3398
  /**
3371
- * enforce that every 'setInterval' in a component or custom Hook has a corresponding 'clearInterval'.
3399
+ * Prevents leaked `setInterval` in a component or custom Hook.
3372
3400
  * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-interval
3373
3401
  */
3374
3402
  'react-web-api/no-leaked-interval'?: Linter.RuleEntry<[]>
3375
3403
  /**
3376
- * enforce cleanup of 'ResizeObserver' instances in components and custom Hooks.
3404
+ * Prevents leaked `ResizeObserver` in a component or custom Hook.
3377
3405
  * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-resize-observer
3378
3406
  */
3379
3407
  'react-web-api/no-leaked-resize-observer'?: Linter.RuleEntry<[]>
3380
3408
  /**
3381
- * enforce that every 'setTimeout' in a component or custom Hook has a corresponding 'clearTimeout'.
3409
+ * Prevents leaked `setTimeout` in a component or custom Hook.
3382
3410
  * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-timeout
3383
3411
  */
3384
3412
  'react-web-api/no-leaked-timeout'?: Linter.RuleEntry<[]>
3385
3413
  /**
3386
- * disallow using shorthand boolean attributes
3414
+ * Enforces explicit boolean values for boolean attributes.
3387
3415
  * @see https://eslint-react.xyz/docs/rules/avoid-shorthand-boolean
3388
3416
  */
3389
3417
  'react/avoid-shorthand-boolean'?: Linter.RuleEntry<[]>
3390
3418
  /**
3391
- * disallow using shorthand fragment syntax
3419
+ * Enforces explicit `<Fragment>` components instead of the shorthand `<>` or `</>` syntax.
3392
3420
  * @see https://eslint-react.xyz/docs/rules/avoid-shorthand-fragment
3393
3421
  */
3394
3422
  'react/avoid-shorthand-fragment'?: Linter.RuleEntry<[]>
3395
3423
  /**
3396
- * require a 'ref' parameter to be set when using 'forwardRef'
3397
- * @see https://eslint-react.xyz/docs/rules/ensure-forward-ref-using-ref
3424
+ * Disallow useless `forwardRef` calls on components that don't use `ref`s.
3425
+ * @see https://eslint-react.xyz/docs/rules/no-useless-forward-ref
3398
3426
  */
3399
3427
  'react/ensure-forward-ref-using-ref'?: Linter.RuleEntry<[]>
3400
3428
  /**
3401
- * disallow duplicate props
3402
- * @see https://eslint-react.xyz/docs/rules/no-duplicate-jsx-props
3429
+ * Disallow duplicate props in JSX elements.
3430
+ * @see https://eslint-react.xyz/docs/rules/jsx-no-duplicate-props
3403
3431
  */
3404
3432
  'react/jsx-no-duplicate-props'?: Linter.RuleEntry<[]>
3405
3433
  /**
3406
- * marks variables used in JSX as used
3407
- * @see https://eslint-react.xyz/docs/rules/use-jsx-vars
3434
+ * Disallow undefined variables in JSX.
3435
+ * @see https://eslint-react.xyz/docs/rules/jsx-no-undef
3436
+ */
3437
+ 'react/jsx-no-undef'?: Linter.RuleEntry<[]>
3438
+ /**
3439
+ * Marks variables used in JSX elements as used.
3440
+ * @see https://eslint-react.xyz/docs/rules/jsx-uses-vars
3408
3441
  */
3409
3442
  'react/jsx-uses-vars'?: Linter.RuleEntry<[]>
3410
3443
  /**
3411
- * disallow accessing 'this.state' within 'setState'
3444
+ * Disallow accessing `this.state` inside `setState` calls.
3412
3445
  * @see https://eslint-react.xyz/docs/rules/no-access-state-in-setstate
3413
3446
  */
3414
3447
  'react/no-access-state-in-setstate'?: Linter.RuleEntry<[]>
3415
3448
  /**
3416
- * disallow using an item's index in the array as its key
3449
+ * Disallow an item's index in the array as its key.
3417
3450
  * @see https://eslint-react.xyz/docs/rules/no-array-index-key
3418
3451
  */
3419
3452
  'react/no-array-index-key'?: Linter.RuleEntry<[]>
3420
3453
  /**
3421
- * disallow using 'Children.count'
3454
+ * Disallow `Children.count`.
3422
3455
  * @see https://eslint-react.xyz/docs/rules/no-children-count
3423
3456
  */
3424
3457
  'react/no-children-count'?: Linter.RuleEntry<[]>
3425
3458
  /**
3426
- * disallow using 'Children.forEach'
3459
+ * Disallow 'Children.forEach'.
3427
3460
  * @see https://eslint-react.xyz/docs/rules/no-children-for-each
3428
3461
  */
3429
3462
  'react/no-children-for-each'?: Linter.RuleEntry<[]>
3430
3463
  /**
3431
- * disallow using 'Children.map'
3464
+ * Disallow `Children.map`.
3432
3465
  * @see https://eslint-react.xyz/docs/rules/no-children-map
3433
3466
  */
3434
3467
  'react/no-children-map'?: Linter.RuleEntry<[]>
3435
3468
  /**
3436
- * disallow using 'Children.only'
3469
+ * Disallow `Children.only`.
3437
3470
  * @see https://eslint-react.xyz/docs/rules/no-children-only
3438
3471
  */
3439
3472
  'react/no-children-only'?: Linter.RuleEntry<[]>
3440
3473
  /**
3441
- * disallow passing 'children' as props
3474
+ * Disallow passing `children` as a prop.
3442
3475
  * @see https://eslint-react.xyz/docs/rules/no-children-prop
3443
3476
  */
3444
3477
  'react/no-children-prop'?: Linter.RuleEntry<[]>
3445
3478
  /**
3446
- * disallow using 'Children.toArray'
3479
+ * Disallow `Children.toArray`.
3447
3480
  * @see https://eslint-react.xyz/docs/rules/no-children-to-array
3448
3481
  */
3449
3482
  'react/no-children-to-array'?: Linter.RuleEntry<[]>
3450
3483
  /**
3451
- * disallow using class components
3484
+ * Disallow class components.
3452
3485
  * @see https://eslint-react.xyz/docs/rules/no-class-component
3453
3486
  */
3454
3487
  'react/no-class-component'?: Linter.RuleEntry<[]>
3455
3488
  /**
3456
- * disallow using 'cloneElement'
3489
+ * Disallow `cloneElement`.
3457
3490
  * @see https://eslint-react.xyz/docs/rules/no-clone-element
3458
3491
  */
3459
3492
  'react/no-clone-element'?: Linter.RuleEntry<[]>
3460
3493
  /**
3461
- * disallow comments from being inserted as text nodes
3494
+ * Prevents comments from being inserted as text nodes.
3462
3495
  * @see https://eslint-react.xyz/docs/rules/no-comment-textnodes
3463
3496
  */
3464
3497
  'react/no-comment-textnodes'?: Linter.RuleEntry<[]>
3465
3498
  /**
3466
- * disallow complex conditional rendering
3499
+ * Disallow complex conditional rendering in JSX expressions.
3467
3500
  * @see https://eslint-react.xyz/docs/rules/no-complex-conditional-rendering
3468
3501
  */
3469
3502
  'react/no-complex-conditional-rendering'?: Linter.RuleEntry<[]>
3470
3503
  /**
3471
- * disallow complex conditional rendering
3504
+ * Disallow complex conditional rendering in JSX expressions.
3472
3505
  * @see https://eslint-react.xyz/docs/rules/no-complex-conditional-rendering
3473
3506
  */
3474
3507
  'react/no-complicated-conditional-rendering'?: Linter.RuleEntry<[]>
3475
3508
  /**
3476
- * replace 'componentWillMount' with 'UNSAFE_componentWillMount'
3509
+ * Replace usages of `componentWillMount` with `UNSAFE_componentWillMount`.
3477
3510
  * @see https://eslint-react.xyz/docs/rules/no-component-will-mount
3478
3511
  */
3479
3512
  'react/no-component-will-mount'?: Linter.RuleEntry<[]>
3480
3513
  /**
3481
- * replace 'componentWillReceiveProps' with 'UNSAFE_componentWillReceiveProps'
3514
+ * Replace usages of `componentWillReceiveProps` with `UNSAFE_componentWillReceiveProps`.
3482
3515
  * @see https://eslint-react.xyz/docs/rules/no-component-will-receive-props
3483
3516
  */
3484
3517
  'react/no-component-will-receive-props'?: Linter.RuleEntry<[]>
3485
3518
  /**
3486
- * replace 'componentWillUpdate' with 'UNSAFE_componentWillUpdate'
3519
+ * Replace usages of `componentWillUpdate` with `UNSAFE_componentWillUpdate`.
3487
3520
  * @see https://eslint-react.xyz/docs/rules/no-component-will-update
3488
3521
  */
3489
3522
  'react/no-component-will-update'?: Linter.RuleEntry<[]>
3490
3523
  /**
3491
- * replace '<Context.Provider>' with '<Context>'
3524
+ * Replace usages of `<Context.Provider>` with `<Context>`.
3492
3525
  * @see https://eslint-react.xyz/docs/rules/no-context-provider
3493
3526
  */
3494
3527
  'react/no-context-provider'?: Linter.RuleEntry<[]>
3495
3528
  /**
3496
- * disallow using 'createRef' in function components
3529
+ * Disallow `createRef` in function components.
3497
3530
  * @see https://eslint-react.xyz/docs/rules/no-create-ref
3498
3531
  */
3499
3532
  'react/no-create-ref'?: Linter.RuleEntry<[]>
3500
3533
  /**
3501
- * disallow using 'defaultProps' property in components
3534
+ * Disallow `defaultProps` property in favor of ES6 default parameters.
3502
3535
  * @see https://eslint-react.xyz/docs/rules/no-default-props
3503
3536
  */
3504
3537
  'react/no-default-props'?: Linter.RuleEntry<[]>
3505
3538
  /**
3506
- * disallow direct mutation of state
3539
+ * Disallow direct mutation of `this.state`.
3507
3540
  * @see https://eslint-react.xyz/docs/rules/no-direct-mutation-state
3508
3541
  */
3509
3542
  'react/no-direct-mutation-state'?: Linter.RuleEntry<[]>
3510
3543
  /**
3511
- * disallow duplicate props
3512
- * @see https://eslint-react.xyz/docs/rules/no-duplicate-jsx-props
3544
+ * Disallow duplicate props in JSX elements.
3545
+ * @see https://eslint-react.xyz/docs/rules/jsx-no-duplicate-props
3513
3546
  */
3514
3547
  'react/no-duplicate-jsx-props'?: Linter.RuleEntry<[]>
3515
3548
  /**
3516
- * disallow duplicate keys when rendering list
3549
+ * Disallow duplicate `key` on elements in the same array or a list of `children`.
3517
3550
  * @see https://eslint-react.xyz/docs/rules/no-duplicate-key
3518
3551
  */
3519
3552
  'react/no-duplicate-key'?: Linter.RuleEntry<[]>
3520
3553
  /**
3521
- * replace 'forwardRef' with passing 'ref' as a prop
3554
+ * Replaces usages of `forwardRef` with passing `ref` as a prop.
3522
3555
  * @see https://eslint-react.xyz/docs/rules/no-forward-ref
3523
3556
  */
3524
3557
  'react/no-forward-ref'?: Linter.RuleEntry<[]>
3525
3558
  /**
3526
- * disallow implicit 'key' props
3559
+ * Prevents `key` from not being explicitly specified (e.g. spreading `key` from objects).
3527
3560
  * @see https://eslint-react.xyz/docs/rules/no-implicit-key
3528
3561
  */
3529
3562
  'react/no-implicit-key'?: Linter.RuleEntry<[]>
3530
3563
  /**
3531
- * disallow problematic leaked values from being rendered
3564
+ * Prevents problematic leaked values from being rendered.
3532
3565
  * @see https://eslint-react.xyz/docs/rules/no-leaked-conditional-rendering
3533
3566
  */
3534
3567
  'react/no-leaked-conditional-rendering'?: Linter.RuleEntry<[]>
3535
3568
  /**
3536
- * require 'displayName' for 'memo' and 'forwardRef' components
3569
+ * Enforces that all components have a `displayName` which can be used in devtools.
3537
3570
  * @see https://eslint-react.xyz/docs/rules/no-missing-component-display-name
3538
3571
  */
3539
3572
  'react/no-missing-component-display-name'?: Linter.RuleEntry<[]>
3540
3573
  /**
3541
- * require 'displayName' for contexts.
3574
+ * Enforces that all contexts have a `displayName` which can be used in devtools.
3542
3575
  * @see https://eslint-react.xyz/docs/rules/no-missing-context-display-name
3543
3576
  */
3544
3577
  'react/no-missing-context-display-name'?: Linter.RuleEntry<[]>
3545
3578
  /**
3546
- * require 'key' when rendering list
3579
+ * Disallow missing `key` on items in list rendering.
3547
3580
  * @see https://eslint-react.xyz/docs/rules/no-missing-key
3548
3581
  */
3549
3582
  'react/no-missing-key'?: Linter.RuleEntry<[]>
3550
3583
  /**
3551
- * disallow using unstable nested components
3552
- * @see https://eslint-react.xyz/docs/rules/no-nested-components
3584
+ * Disallow nesting component definitions inside other components.
3585
+ * @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
3586
+ */
3587
+ 'react/no-nested-component-definitions'?: Linter.RuleEntry<[]>
3588
+ /**
3589
+ * Disallow nesting component definitions inside other components.
3590
+ * @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
3553
3591
  */
3554
3592
  'react/no-nested-components'?: Linter.RuleEntry<[]>
3555
3593
  /**
3556
- * disallow using 'propTypes' property in components
3594
+ * Disallow `propTypes` in favor of TypeScript or another type-checking solution.
3557
3595
  * @see https://eslint-react.xyz/docs/rules/no-prop-types
3558
3596
  */
3559
3597
  'react/no-prop-types'?: Linter.RuleEntry<[]>
3560
3598
  /**
3561
- * disallow using 'shouldComponentUpdate' in class component extends 'React.PureComponent'
3599
+ * Disallow `shouldComponentUpdate` when extending `React.PureComponent`.
3562
3600
  * @see https://eslint-react.xyz/docs/rules/no-redundant-should-component-update
3563
3601
  */
3564
3602
  'react/no-redundant-should-component-update'?: Linter.RuleEntry<[]>
3565
3603
  /**
3566
- * disallow using 'setState' in 'componentDidMount'
3604
+ * Disallow calling `this.setState` in `componentDidMount` outside of functions, such as callbacks.
3567
3605
  * @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-did-mount
3568
3606
  */
3569
3607
  'react/no-set-state-in-component-did-mount'?: Linter.RuleEntry<[]>
3570
3608
  /**
3571
- * disallow using 'setState' in 'componentDidUpdate'
3609
+ * Disallows calling `this.setState` in `componentDidUpdate` outside of functions, such as callbacks.
3572
3610
  * @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-did-update
3573
3611
  */
3574
3612
  'react/no-set-state-in-component-did-update'?: Linter.RuleEntry<[]>
3575
3613
  /**
3576
- * disallow using 'setState' in 'componentWillUpdate'
3614
+ * Disallows calling `this.setState` in `componentWillUpdate` outside of functions, such as callbacks.
3577
3615
  * @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-will-update
3578
3616
  */
3579
3617
  'react/no-set-state-in-component-will-update'?: Linter.RuleEntry<[]>
3580
3618
  /**
3581
- * disallow using deprecated string refs
3619
+ * Disallow deprecated string `refs`.
3582
3620
  * @see https://eslint-react.xyz/docs/rules/no-string-refs
3583
3621
  */
3584
3622
  'react/no-string-refs'?: Linter.RuleEntry<[]>
3585
3623
  /**
3586
- * disallow using 'UNSAFE_componentWillMount'
3624
+ * Warns the usage of `UNSAFE_componentWillMount` in class components.
3587
3625
  * @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-mount
3588
3626
  */
3589
3627
  'react/no-unsafe-component-will-mount'?: Linter.RuleEntry<[]>
3590
3628
  /**
3591
- * disallow using 'UNSAFE_componentWillReceiveProps'
3629
+ * Warns the usage of `UNSAFE_componentWillReceiveProps` in class components.
3592
3630
  * @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-receive-props
3593
3631
  */
3594
3632
  'react/no-unsafe-component-will-receive-props'?: Linter.RuleEntry<[]>
3595
3633
  /**
3596
- * disallow using 'UNSAFE_componentWillUpdate'
3634
+ * Warns the usage of `UNSAFE_componentWillUpdate` in class components.
3597
3635
  * @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-update
3598
3636
  */
3599
3637
  'react/no-unsafe-component-will-update'?: Linter.RuleEntry<[]>
3600
3638
  /**
3601
- * disallow passing constructed values to context providers
3639
+ * Prevents non-stable values (i.e. object literals) from being used as a value for `Context.Provider`.
3602
3640
  * @see https://eslint-react.xyz/docs/rules/no-unstable-context-value
3603
3641
  */
3604
3642
  'react/no-unstable-context-value'?: Linter.RuleEntry<[]>
3605
3643
  /**
3606
- * disallow using unstable value as default param in function component
3644
+ * Prevents using referential-type values as default props in object destructuring.
3607
3645
  * @see https://eslint-react.xyz/docs/rules/no-unstable-default-props
3608
3646
  */
3609
3647
  'react/no-unstable-default-props'?: Linter.RuleEntry<[]>
3610
3648
  /**
3611
- * disallow unused class component members
3649
+ * Warns unused class component methods and properties.
3612
3650
  * @see https://eslint-react.xyz/docs/rules/no-unused-class-component-members
3613
3651
  */
3614
3652
  'react/no-unused-class-component-members'?: Linter.RuleEntry<[]>
3615
3653
  /**
3616
- * disallow unused state of class component
3654
+ * Warns unused class component state.
3617
3655
  * @see https://eslint-react.xyz/docs/rules/no-unused-state
3618
3656
  */
3619
3657
  'react/no-unused-state'?: Linter.RuleEntry<[]>
3620
3658
  /**
3621
- * replace 'useContext' with 'use'
3659
+ * Replaces usages of `useContext` with `use`.
3622
3660
  * @see https://eslint-react.xyz/docs/rules/no-use-context
3623
3661
  */
3624
3662
  'react/no-use-context'?: Linter.RuleEntry<[]>
3625
3663
  /**
3626
- * disallow useless fragments
3664
+ * Disallow useless `forwardRef` calls on components that don't use `ref`s.
3665
+ * @see https://eslint-react.xyz/docs/rules/no-useless-forward-ref
3666
+ */
3667
+ 'react/no-useless-forward-ref'?: Linter.RuleEntry<[]>
3668
+ /**
3669
+ * Disallow useless fragment elements.
3627
3670
  * @see https://eslint-react.xyz/docs/rules/no-useless-fragment
3628
3671
  */
3629
3672
  'react/no-useless-fragment'?: Linter.RuleEntry<ReactNoUselessFragment>
3630
3673
  /**
3631
- * enforce using destructuring assignment in component props and context
3674
+ * Enforces destructuring assignment for component props and context.
3632
3675
  * @see https://eslint-react.xyz/docs/rules/prefer-destructuring-assignment
3633
3676
  */
3634
3677
  'react/prefer-destructuring-assignment'?: Linter.RuleEntry<[]>
3635
3678
  /**
3636
- * enforce React is imported via a namespace import
3679
+ * Enforces React is imported via a namespace import.
3637
3680
  * @see https://eslint-react.xyz/docs/rules/prefer-react-namespace-import
3638
3681
  */
3639
3682
  'react/prefer-react-namespace-import'?: Linter.RuleEntry<[]>
3640
3683
  /**
3641
- * enforce read-only props in components
3684
+ * Enforces read-only props in components.
3642
3685
  * @see https://eslint-react.xyz/docs/rules/prefer-read-only-props
3643
3686
  */
3644
3687
  'react/prefer-read-only-props'?: Linter.RuleEntry<[]>
3645
3688
  /**
3646
- * enforce the use of shorthand syntax for boolean attributes
3689
+ * Enforces shorthand syntax for boolean attributes.
3647
3690
  * @see https://eslint-react.xyz/docs/rules/prefer-shorthand-boolean
3648
3691
  */
3649
3692
  'react/prefer-shorthand-boolean'?: Linter.RuleEntry<[]>
3650
3693
  /**
3651
- * enforce the use of shorthand syntax for fragments
3694
+ * Enforces shorthand syntax for fragments.
3652
3695
  * @see https://eslint-react.xyz/docs/rules/prefer-shorthand-fragment
3653
3696
  */
3654
3697
  'react/prefer-shorthand-fragment'?: Linter.RuleEntry<[]>
3655
3698
  /**
3656
- * marks variables used in JSX as used
3657
- * @see https://eslint-react.xyz/docs/rules/use-jsx-vars
3699
+ * Marks variables used in JSX elements as used.
3700
+ * @see https://eslint-react.xyz/docs/rules/jsx-uses-vars
3658
3701
  */
3659
3702
  'react/use-jsx-vars'?: Linter.RuleEntry<[]>
3660
3703
  /**
@@ -4410,11 +4453,21 @@ interface RuleOptions {
4410
4453
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-unknown-style-directive-property/
4411
4454
  */
4412
4455
  'svelte/no-unknown-style-directive-property'?: Linter.RuleEntry<SvelteNoUnknownStyleDirectiveProperty>
4456
+ /**
4457
+ * Disallow unnecessary $state wrapping of reactive classes
4458
+ * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-unnecessary-state-wrap/
4459
+ */
4460
+ 'svelte/no-unnecessary-state-wrap'?: Linter.RuleEntry<SvelteNoUnnecessaryStateWrap>
4413
4461
  /**
4414
4462
  * disallow the use of a class in the template without a corresponding style
4415
4463
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-unused-class-name/
4416
4464
  */
4417
4465
  'svelte/no-unused-class-name'?: Linter.RuleEntry<SvelteNoUnusedClassName>
4466
+ /**
4467
+ * Warns about defined Props properties that are unused
4468
+ * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-unused-props/
4469
+ */
4470
+ 'svelte/no-unused-props'?: Linter.RuleEntry<SvelteNoUnusedProps>
4418
4471
  /**
4419
4472
  * disallow unused svelte-ignore comments
4420
4473
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-unused-svelte-ignore/
@@ -5648,642 +5701,643 @@ interface RuleOptions {
5648
5701
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
5649
5702
  /**
5650
5703
  * Improve regexes by making them shorter, consistent, and safer.
5651
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/better-regex.md
5704
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/better-regex.md
5652
5705
  */
5653
5706
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
5654
5707
  /**
5655
5708
  * Enforce a specific parameter name in catch clauses.
5656
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/catch-error-name.md
5709
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/catch-error-name.md
5657
5710
  */
5658
5711
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
5659
5712
  /**
5660
5713
  * Enforce consistent assertion style with `node:assert`.
5661
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-assert.md
5714
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-assert.md
5662
5715
  */
5663
5716
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
5664
5717
  /**
5665
5718
  * Prefer passing `Date` directly to the constructor when cloning.
5666
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-date-clone.md
5719
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-date-clone.md
5667
5720
  */
5668
5721
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
5669
5722
  /**
5670
5723
  * Use destructured variables over properties.
5671
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-destructuring.md
5724
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-destructuring.md
5672
5725
  */
5673
5726
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
5674
5727
  /**
5675
5728
  * Prefer consistent types when spreading a ternary in an array literal.
5676
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-empty-array-spread.md
5729
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-empty-array-spread.md
5677
5730
  */
5678
5731
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
5679
5732
  /**
5680
5733
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
5681
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-existence-index-check.md
5734
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-existence-index-check.md
5682
5735
  */
5683
5736
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
5684
5737
  /**
5685
5738
  * Move function definitions to the highest possible scope.
5686
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-function-scoping.md
5739
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/consistent-function-scoping.md
5687
5740
  */
5688
5741
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
5689
5742
  /**
5690
5743
  * Enforce correct `Error` subclassing.
5691
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/custom-error-definition.md
5744
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/custom-error-definition.md
5692
5745
  */
5693
5746
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
5694
5747
  /**
5695
5748
  * Enforce no spaces between braces.
5696
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/empty-brace-spaces.md
5749
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/empty-brace-spaces.md
5697
5750
  */
5698
5751
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
5699
5752
  /**
5700
5753
  * Enforce passing a `message` value when creating a built-in error.
5701
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/error-message.md
5754
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/error-message.md
5702
5755
  */
5703
5756
  'unicorn/error-message'?: Linter.RuleEntry<[]>
5704
5757
  /**
5705
- * Require escape sequences to use uppercase values.
5706
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/escape-case.md
5758
+ * Require escape sequences to use uppercase or lowercase values.
5759
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/escape-case.md
5707
5760
  */
5708
- 'unicorn/escape-case'?: Linter.RuleEntry<[]>
5761
+ 'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>
5709
5762
  /**
5710
5763
  * Add expiration conditions to TODO comments.
5711
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/expiring-todo-comments.md
5764
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/expiring-todo-comments.md
5712
5765
  */
5713
5766
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
5714
5767
  /**
5715
5768
  * Enforce explicitly comparing the `length` or `size` property of a value.
5716
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/explicit-length-check.md
5769
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/explicit-length-check.md
5717
5770
  */
5718
5771
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
5719
5772
  /**
5720
5773
  * Enforce a case style for filenames.
5721
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/filename-case.md
5774
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/filename-case.md
5722
5775
  */
5723
5776
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
5724
5777
  /**
5725
5778
  * Enforce specific import styles per module.
5726
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/import-style.md
5779
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/import-style.md
5727
5780
  */
5728
5781
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
5729
5782
  /**
5730
5783
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
5731
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/new-for-builtins.md
5784
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/new-for-builtins.md
5732
5785
  */
5733
5786
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
5734
5787
  /**
5735
5788
  * Enforce specifying rules to disable in `eslint-disable` comments.
5736
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-abusive-eslint-disable.md
5789
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-abusive-eslint-disable.md
5737
5790
  */
5738
5791
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
5739
5792
  /**
5740
5793
  * Disallow recursive access to `this` within getters and setters.
5741
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-accessor-recursion.md
5794
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-accessor-recursion.md
5742
5795
  */
5743
5796
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
5744
5797
  /**
5745
5798
  * Disallow anonymous functions and classes as the default export.
5746
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-anonymous-default-export.md
5799
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-anonymous-default-export.md
5747
5800
  */
5748
5801
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
5749
5802
  /**
5750
5803
  * Prevent passing a function reference directly to iterator methods.
5751
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-callback-reference.md
5804
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-callback-reference.md
5752
5805
  */
5753
5806
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
5754
5807
  /**
5755
5808
  * Prefer `for…of` over the `forEach` method.
5756
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-for-each.md
5809
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-for-each.md
5757
5810
  */
5758
5811
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
5759
5812
  /**
5760
5813
  * Disallow using the `this` argument in array methods.
5761
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-method-this-argument.md
5814
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-method-this-argument.md
5762
5815
  */
5763
5816
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
5764
5817
  /**
5765
5818
  * Enforce combining multiple `Array#push()` into one call.
5766
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-push-push.md
5819
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-push-push.md
5767
5820
  */
5768
5821
  'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>
5769
5822
  /**
5770
5823
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
5771
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-array-reduce.md
5824
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-array-reduce.md
5772
5825
  */
5773
5826
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
5774
5827
  /**
5775
5828
  * Disallow member access from await expression.
5776
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-expression-member.md
5829
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-await-expression-member.md
5777
5830
  */
5778
5831
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
5779
5832
  /**
5780
5833
  * Disallow using `await` in `Promise` method parameters.
5781
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-await-in-promise-methods.md
5834
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-await-in-promise-methods.md
5782
5835
  */
5783
5836
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
5784
5837
  /**
5785
5838
  * Do not use leading/trailing space between `console.log` parameters.
5786
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-console-spaces.md
5839
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-console-spaces.md
5787
5840
  */
5788
5841
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
5789
5842
  /**
5790
5843
  * Do not use `document.cookie` directly.
5791
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-document-cookie.md
5844
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-document-cookie.md
5792
5845
  */
5793
5846
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
5794
5847
  /**
5795
5848
  * Disallow empty files.
5796
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-empty-file.md
5849
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-empty-file.md
5797
5850
  */
5798
5851
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
5799
5852
  /**
5800
5853
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
5801
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-for-loop.md
5854
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-for-loop.md
5802
5855
  */
5803
5856
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
5804
5857
  /**
5805
5858
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
5806
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-hex-escape.md
5859
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-hex-escape.md
5807
5860
  */
5808
5861
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
5809
5862
  /**
5810
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/deprecated-rules.md#no-instanceof-array
5863
+ * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
5864
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/deprecated-rules.md#no-instanceof-array
5811
5865
  * @deprecated
5812
5866
  */
5813
5867
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
5814
5868
  /**
5815
5869
  * Disallow `instanceof` with built-in objects
5816
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-instanceof-builtins.md
5870
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-instanceof-builtins.md
5817
5871
  */
5818
5872
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
5819
5873
  /**
5820
5874
  * Disallow invalid options in `fetch()` and `new Request()`.
5821
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-fetch-options.md
5875
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-invalid-fetch-options.md
5822
5876
  */
5823
5877
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
5824
5878
  /**
5825
5879
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
5826
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-invalid-remove-event-listener.md
5880
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-invalid-remove-event-listener.md
5827
5881
  */
5828
5882
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
5829
5883
  /**
5830
5884
  * Disallow identifiers starting with `new` or `class`.
5831
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-keyword-prefix.md
5885
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-keyword-prefix.md
5832
5886
  */
5833
5887
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
5834
5888
  /**
5835
5889
  * Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.
5836
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-length-as-slice-end.md
5890
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-length-as-slice-end.md
5837
5891
  */
5838
5892
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
5839
5893
  /**
5840
5894
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
5841
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-lonely-if.md
5895
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-lonely-if.md
5842
5896
  */
5843
5897
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
5844
5898
  /**
5845
5899
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
5846
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-magic-array-flat-depth.md
5900
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-magic-array-flat-depth.md
5847
5901
  */
5848
5902
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
5849
5903
  /**
5850
5904
  * Disallow named usage of default import and export.
5851
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-named-default.md
5905
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-named-default.md
5852
5906
  */
5853
5907
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>
5854
5908
  /**
5855
5909
  * Disallow negated conditions.
5856
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negated-condition.md
5910
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-negated-condition.md
5857
5911
  */
5858
5912
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
5859
5913
  /**
5860
5914
  * Disallow negated expression in equality check.
5861
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negation-in-equality-check.md
5915
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-negation-in-equality-check.md
5862
5916
  */
5863
5917
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
5864
5918
  /**
5865
5919
  * Disallow nested ternary expressions.
5866
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-nested-ternary.md
5920
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-nested-ternary.md
5867
5921
  */
5868
5922
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
5869
5923
  /**
5870
5924
  * Disallow `new Array()`.
5871
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-array.md
5925
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-new-array.md
5872
5926
  */
5873
5927
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
5874
5928
  /**
5875
5929
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
5876
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-buffer.md
5930
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-new-buffer.md
5877
5931
  */
5878
5932
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
5879
5933
  /**
5880
5934
  * Disallow the use of the `null` literal.
5881
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-null.md
5935
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-null.md
5882
5936
  */
5883
5937
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
5884
5938
  /**
5885
5939
  * Disallow the use of objects as default parameters.
5886
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-object-as-default-parameter.md
5940
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-object-as-default-parameter.md
5887
5941
  */
5888
5942
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
5889
5943
  /**
5890
5944
  * Disallow `process.exit()`.
5891
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-process-exit.md
5945
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-process-exit.md
5892
5946
  */
5893
5947
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
5894
5948
  /**
5895
5949
  * Disallow passing single-element arrays to `Promise` methods.
5896
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-single-promise-in-promise-methods.md
5950
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-single-promise-in-promise-methods.md
5897
5951
  */
5898
5952
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
5899
5953
  /**
5900
5954
  * Disallow classes that only have static members.
5901
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-static-only-class.md
5955
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-static-only-class.md
5902
5956
  */
5903
5957
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
5904
5958
  /**
5905
5959
  * Disallow `then` property.
5906
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-thenable.md
5960
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-thenable.md
5907
5961
  */
5908
5962
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
5909
5963
  /**
5910
5964
  * Disallow assigning `this` to a variable.
5911
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-this-assignment.md
5965
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-this-assignment.md
5912
5966
  */
5913
5967
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
5914
5968
  /**
5915
5969
  * Disallow comparing `undefined` using `typeof`.
5916
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-typeof-undefined.md
5970
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-typeof-undefined.md
5917
5971
  */
5918
5972
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
5919
5973
  /**
5920
5974
  * Disallow awaiting non-promise values.
5921
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-await.md
5975
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unnecessary-await.md
5922
5976
  */
5923
5977
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
5924
5978
  /**
5925
5979
  * Enforce the use of built-in methods instead of unnecessary polyfills.
5926
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-polyfills.md
5980
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unnecessary-polyfills.md
5927
5981
  */
5928
5982
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
5929
5983
  /**
5930
5984
  * Disallow unreadable array destructuring.
5931
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-array-destructuring.md
5985
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unreadable-array-destructuring.md
5932
5986
  */
5933
5987
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
5934
5988
  /**
5935
5989
  * Disallow unreadable IIFEs.
5936
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-iife.md
5990
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unreadable-iife.md
5937
5991
  */
5938
5992
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
5939
5993
  /**
5940
5994
  * Disallow unused object properties.
5941
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unused-properties.md
5995
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-unused-properties.md
5942
5996
  */
5943
5997
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
5944
5998
  /**
5945
5999
  * Disallow useless fallback when spreading in object literals.
5946
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-fallback-in-spread.md
6000
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-fallback-in-spread.md
5947
6001
  */
5948
6002
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
5949
6003
  /**
5950
6004
  * Disallow useless array length check.
5951
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-length-check.md
6005
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-length-check.md
5952
6006
  */
5953
6007
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
5954
6008
  /**
5955
6009
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
5956
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-promise-resolve-reject.md
6010
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-promise-resolve-reject.md
5957
6011
  */
5958
6012
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
5959
6013
  /**
5960
6014
  * Disallow unnecessary spread.
5961
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-spread.md
6015
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-spread.md
5962
6016
  */
5963
6017
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
5964
6018
  /**
5965
6019
  * Disallow useless case in switch statements.
5966
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-switch-case.md
6020
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-switch-case.md
5967
6021
  */
5968
6022
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
5969
6023
  /**
5970
6024
  * Disallow useless `undefined`.
5971
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-undefined.md
6025
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-useless-undefined.md
5972
6026
  */
5973
6027
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
5974
6028
  /**
5975
6029
  * Disallow number literals with zero fractions or dangling dots.
5976
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-zero-fractions.md
6030
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/no-zero-fractions.md
5977
6031
  */
5978
6032
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
5979
6033
  /**
5980
6034
  * Enforce proper case for numeric literals.
5981
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/number-literal-case.md
6035
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/number-literal-case.md
5982
6036
  */
5983
- 'unicorn/number-literal-case'?: Linter.RuleEntry<[]>
6037
+ 'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>
5984
6038
  /**
5985
6039
  * Enforce the style of numeric separators by correctly grouping digits.
5986
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/numeric-separators-style.md
6040
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/numeric-separators-style.md
5987
6041
  */
5988
6042
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
5989
6043
  /**
5990
6044
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
5991
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-add-event-listener.md
6045
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-add-event-listener.md
5992
6046
  */
5993
6047
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
5994
6048
  /**
5995
6049
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
5996
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-find.md
6050
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-find.md
5997
6051
  */
5998
6052
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
5999
6053
  /**
6000
6054
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
6001
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat.md
6055
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-flat.md
6002
6056
  */
6003
6057
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
6004
6058
  /**
6005
6059
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
6006
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-flat-map.md
6060
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-flat-map.md
6007
6061
  */
6008
6062
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
6009
6063
  /**
6010
6064
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
6011
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-index-of.md
6065
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-index-of.md
6012
6066
  */
6013
6067
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
6014
6068
  /**
6015
6069
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
6016
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-array-some.md
6070
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-array-some.md
6017
6071
  */
6018
6072
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
6019
6073
  /**
6020
6074
  * Prefer `.at()` method for index access and `String#charAt()`.
6021
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-at.md
6075
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-at.md
6022
6076
  */
6023
6077
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
6024
6078
  /**
6025
6079
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
6026
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-blob-reading-methods.md
6080
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-blob-reading-methods.md
6027
6081
  */
6028
6082
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
6029
6083
  /**
6030
6084
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
6031
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-code-point.md
6085
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-code-point.md
6032
6086
  */
6033
6087
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
6034
6088
  /**
6035
6089
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
6036
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-date-now.md
6090
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-date-now.md
6037
6091
  */
6038
6092
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
6039
6093
  /**
6040
6094
  * Prefer default parameters over reassignment.
6041
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-default-parameters.md
6095
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-default-parameters.md
6042
6096
  */
6043
6097
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
6044
6098
  /**
6045
6099
  * Prefer `Node#append()` over `Node#appendChild()`.
6046
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-append.md
6100
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-dom-node-append.md
6047
6101
  */
6048
6102
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
6049
6103
  /**
6050
6104
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
6051
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-dataset.md
6105
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-dom-node-dataset.md
6052
6106
  */
6053
6107
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
6054
6108
  /**
6055
6109
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
6056
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-remove.md
6110
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-dom-node-remove.md
6057
6111
  */
6058
6112
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
6059
6113
  /**
6060
6114
  * Prefer `.textContent` over `.innerText`.
6061
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-dom-node-text-content.md
6115
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-dom-node-text-content.md
6062
6116
  */
6063
6117
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
6064
6118
  /**
6065
6119
  * Prefer `EventTarget` over `EventEmitter`.
6066
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-event-target.md
6120
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-event-target.md
6067
6121
  */
6068
6122
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
6069
6123
  /**
6070
6124
  * Prefer `export…from` when re-exporting.
6071
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-export-from.md
6125
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-export-from.md
6072
6126
  */
6073
6127
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
6074
6128
  /**
6075
6129
  * Prefer `globalThis` over `window`, `self`, and `global`.
6076
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-global-this.md
6130
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-global-this.md
6077
6131
  */
6078
6132
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
6079
6133
  /**
6080
6134
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
6081
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-includes.md
6135
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-includes.md
6082
6136
  */
6083
6137
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
6084
6138
  /**
6085
6139
  * Prefer reading a JSON file as a buffer.
6086
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-json-parse-buffer.md
6140
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-json-parse-buffer.md
6087
6141
  */
6088
6142
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
6089
6143
  /**
6090
6144
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
6091
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-keyboard-event-key.md
6145
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-keyboard-event-key.md
6092
6146
  */
6093
6147
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
6094
6148
  /**
6095
6149
  * Prefer using a logical operator over a ternary.
6096
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-logical-operator-over-ternary.md
6150
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-logical-operator-over-ternary.md
6097
6151
  */
6098
6152
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
6099
6153
  /**
6100
6154
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
6101
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-min-max.md
6155
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-math-min-max.md
6102
6156
  */
6103
6157
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
6104
6158
  /**
6105
6159
  * Enforce the use of `Math.trunc` instead of bitwise operators.
6106
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-math-trunc.md
6160
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-math-trunc.md
6107
6161
  */
6108
6162
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
6109
6163
  /**
6110
6164
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
6111
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-dom-apis.md
6165
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-modern-dom-apis.md
6112
6166
  */
6113
6167
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
6114
6168
  /**
6115
6169
  * Prefer modern `Math` APIs over legacy patterns.
6116
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-modern-math-apis.md
6170
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-modern-math-apis.md
6117
6171
  */
6118
6172
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
6119
6173
  /**
6120
6174
  * Prefer JavaScript modules (ESM) over CommonJS.
6121
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-module.md
6175
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-module.md
6122
6176
  */
6123
6177
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
6124
6178
  /**
6125
6179
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
6126
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-native-coercion-functions.md
6180
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-native-coercion-functions.md
6127
6181
  */
6128
6182
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
6129
6183
  /**
6130
6184
  * Prefer negative index over `.length - index` when possible.
6131
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-negative-index.md
6185
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-negative-index.md
6132
6186
  */
6133
6187
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
6134
6188
  /**
6135
6189
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
6136
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-node-protocol.md
6190
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-node-protocol.md
6137
6191
  */
6138
6192
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
6139
6193
  /**
6140
6194
  * Prefer `Number` static properties over global ones.
6141
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-number-properties.md
6195
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-number-properties.md
6142
6196
  */
6143
6197
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
6144
6198
  /**
6145
6199
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
6146
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-object-from-entries.md
6200
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-object-from-entries.md
6147
6201
  */
6148
6202
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
6149
6203
  /**
6150
6204
  * Prefer omitting the `catch` binding parameter.
6151
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-optional-catch-binding.md
6205
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-optional-catch-binding.md
6152
6206
  */
6153
6207
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
6154
6208
  /**
6155
6209
  * Prefer borrowing methods from the prototype instead of the instance.
6156
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-prototype-methods.md
6210
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-prototype-methods.md
6157
6211
  */
6158
6212
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
6159
6213
  /**
6160
6214
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
6161
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-query-selector.md
6215
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-query-selector.md
6162
6216
  */
6163
6217
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
6164
6218
  /**
6165
6219
  * Prefer `Reflect.apply()` over `Function#apply()`.
6166
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-reflect-apply.md
6220
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-reflect-apply.md
6167
6221
  */
6168
6222
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
6169
6223
  /**
6170
6224
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
6171
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-regexp-test.md
6225
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-regexp-test.md
6172
6226
  */
6173
6227
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
6174
6228
  /**
6175
6229
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
6176
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-has.md
6230
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-set-has.md
6177
6231
  */
6178
6232
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
6179
6233
  /**
6180
6234
  * Prefer using `Set#size` instead of `Array#length`.
6181
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-set-size.md
6235
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-set-size.md
6182
6236
  */
6183
6237
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
6184
6238
  /**
6185
6239
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
6186
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-spread.md
6240
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-spread.md
6187
6241
  */
6188
6242
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
6189
6243
  /**
6190
6244
  * Prefer using the `String.raw` tag to avoid escaping `\`.
6191
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-raw.md
6245
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-raw.md
6192
6246
  */
6193
6247
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
6194
6248
  /**
6195
6249
  * Prefer `String#replaceAll()` over regex searches with the global flag.
6196
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-replace-all.md
6250
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-replace-all.md
6197
6251
  */
6198
6252
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
6199
6253
  /**
6200
6254
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
6201
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-slice.md
6255
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-slice.md
6202
6256
  */
6203
6257
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
6204
6258
  /**
6205
6259
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
6206
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-starts-ends-with.md
6260
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-starts-ends-with.md
6207
6261
  */
6208
6262
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
6209
6263
  /**
6210
6264
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
6211
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-string-trim-start-end.md
6265
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-string-trim-start-end.md
6212
6266
  */
6213
6267
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
6214
6268
  /**
6215
6269
  * Prefer using `structuredClone` to create a deep clone.
6216
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-structured-clone.md
6270
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-structured-clone.md
6217
6271
  */
6218
6272
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
6219
6273
  /**
6220
6274
  * Prefer `switch` over multiple `else-if`.
6221
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-switch.md
6275
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-switch.md
6222
6276
  */
6223
6277
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
6224
6278
  /**
6225
6279
  * Prefer ternary expressions over simple `if-else` statements.
6226
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-ternary.md
6280
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-ternary.md
6227
6281
  */
6228
6282
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
6229
6283
  /**
6230
6284
  * Prefer top-level await over top-level promises and async function calls.
6231
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-top-level-await.md
6285
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-top-level-await.md
6232
6286
  */
6233
6287
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
6234
6288
  /**
6235
6289
  * Enforce throwing `TypeError` in type checking conditions.
6236
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-type-error.md
6290
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prefer-type-error.md
6237
6291
  */
6238
6292
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
6239
6293
  /**
6240
6294
  * Prevent abbreviations.
6241
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prevent-abbreviations.md
6295
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/prevent-abbreviations.md
6242
6296
  */
6243
6297
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
6244
6298
  /**
6245
6299
  * Enforce consistent relative URL style.
6246
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/relative-url-style.md
6300
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/relative-url-style.md
6247
6301
  */
6248
6302
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
6249
6303
  /**
6250
6304
  * Enforce using the separator argument with `Array#join()`.
6251
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-array-join-separator.md
6305
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/require-array-join-separator.md
6252
6306
  */
6253
6307
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
6254
6308
  /**
6255
6309
  * Enforce using the digits argument with `Number#toFixed()`.
6256
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-number-to-fixed-digits-argument.md
6310
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/require-number-to-fixed-digits-argument.md
6257
6311
  */
6258
6312
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
6259
6313
  /**
6260
6314
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
6261
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/require-post-message-target-origin.md
6315
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/require-post-message-target-origin.md
6262
6316
  */
6263
6317
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
6264
6318
  /**
6265
6319
  * Enforce better string content.
6266
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/string-content.md
6320
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/string-content.md
6267
6321
  */
6268
6322
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
6269
6323
  /**
6270
6324
  * Enforce consistent brace style for `case` clauses.
6271
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/switch-case-braces.md
6325
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/switch-case-braces.md
6272
6326
  */
6273
6327
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
6274
6328
  /**
6275
6329
  * Fix whitespace-insensitive template indentation.
6276
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/template-indent.md
6330
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/template-indent.md
6277
6331
  */
6278
6332
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
6279
6333
  /**
6280
6334
  * Enforce consistent case for text encoding identifiers.
6281
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/text-encoding-identifier-case.md
6335
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/text-encoding-identifier-case.md
6282
6336
  */
6283
6337
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
6284
6338
  /**
6285
6339
  * Require `new` when creating an error.
6286
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/throw-new-error.md
6340
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v58.0.0/docs/rules/throw-new-error.md
6287
6341
  */
6288
6342
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
6289
6343
  /**
@@ -7471,7 +7525,7 @@ type IdMatch =
7471
7525
  // ----- implicit-arrow-linebreak -----
7472
7526
  type ImplicitArrowLinebreak = [] | ['beside' | 'below']
7473
7527
  // ----- import/consistent-type-specifier-style -----
7474
- type ImportConsistentTypeSpecifierStyle = [] | ['prefer-inline' | 'prefer-top-level']
7528
+ type ImportConsistentTypeSpecifierStyle = [] | ['prefer-top-level' | 'prefer-inline']
7475
7529
  // ----- import/dynamic-import-chunkname -----
7476
7530
  type ImportDynamicImportChunkname =
7477
7531
  | []
@@ -7825,6 +7879,19 @@ type ImportOrder =
7825
7879
  position?: 'after' | 'before'
7826
7880
  }[]
7827
7881
  'newlines-between'?: 'ignore' | 'always' | 'always-and-inside-groups' | 'never'
7882
+ 'newlines-between-types'?: 'ignore' | 'always' | 'always-and-inside-groups' | 'never'
7883
+ consolidateIslands?: 'inside-groups' | 'never'
7884
+ sortTypesGroup?: boolean
7885
+ named?:
7886
+ | boolean
7887
+ | {
7888
+ enabled?: boolean
7889
+ import?: boolean
7890
+ export?: boolean
7891
+ require?: boolean
7892
+ cjsExports?: boolean
7893
+ types?: 'mixed' | 'types-first' | 'types-last'
7894
+ }
7828
7895
  alphabetize?: {
7829
7896
  caseInsensitive?: boolean
7830
7897
  order?: 'ignore' | 'asc' | 'desc'
@@ -13729,6 +13796,9 @@ type NodeNoUnsupportedFeaturesNodeBuiltins =
13729
13796
  | 'zlib.Unzip()'
13730
13797
  | 'zlib.Unzip'
13731
13798
  | 'zlib'
13799
+ | 'import.meta.resolve'
13800
+ | 'import.meta.dirname'
13801
+ | 'import.meta.filename'
13732
13802
  )[]
13733
13803
  },
13734
13804
  ]
@@ -17813,6 +17883,15 @@ type SvelteNoUnknownStyleDirectiveProperty =
17813
17883
  ignorePrefixed?: boolean
17814
17884
  },
17815
17885
  ]
17886
+ // ----- svelte/no-unnecessary-state-wrap -----
17887
+ type SvelteNoUnnecessaryStateWrap =
17888
+ | []
17889
+ | [
17890
+ {
17891
+ additionalReactiveClasses?: string[]
17892
+ allowReassign?: boolean
17893
+ },
17894
+ ]
17816
17895
  // ----- svelte/no-unused-class-name -----
17817
17896
  type SvelteNoUnusedClassName =
17818
17897
  | []
@@ -17821,6 +17900,16 @@ type SvelteNoUnusedClassName =
17821
17900
  allowedClassNames?: string[]
17822
17901
  },
17823
17902
  ]
17903
+ // ----- svelte/no-unused-props -----
17904
+ type SvelteNoUnusedProps =
17905
+ | []
17906
+ | [
17907
+ {
17908
+ checkImportedTypes?: boolean
17909
+ ignoreTypePatterns?: string[]
17910
+ ignorePropertyPatterns?: string[]
17911
+ },
17912
+ ]
17824
17913
  // ----- svelte/no-useless-mustaches -----
17825
17914
  type SvelteNoUselessMustaches =
17826
17915
  | []
@@ -17845,6 +17934,7 @@ type SveltePreferConst =
17845
17934
  {
17846
17935
  destructuring?: 'any' | 'all'
17847
17936
  ignoreReadBeforeAssign?: boolean
17937
+ excludedRunes?: string[]
17848
17938
  },
17849
17939
  ]
17850
17940
  // ----- svelte/shorthand-attribute -----
@@ -21978,6 +22068,8 @@ type UnicornConsistentFunctionScoping =
21978
22068
  checkArrowFunctions?: boolean
21979
22069
  },
21980
22070
  ]
22071
+ // ----- unicorn/escape-case -----
22072
+ type UnicornEscapeCase = [] | ['uppercase' | 'lowercase']
21981
22073
  // ----- unicorn/expiring-todo-comments -----
21982
22074
  type UnicornExpiringTodoComments =
21983
22075
  | []
@@ -22113,6 +22205,14 @@ type UnicornNoUselessUndefined =
22113
22205
  checkArrowFunctionBody?: boolean
22114
22206
  },
22115
22207
  ]
22208
+ // ----- unicorn/number-literal-case -----
22209
+ type UnicornNumberLiteralCase =
22210
+ | []
22211
+ | [
22212
+ {
22213
+ hexadecimalValue?: 'uppercase' | 'lowercase'
22214
+ },
22215
+ ]
22116
22216
  // ----- unicorn/numeric-separators-style -----
22117
22217
  type UnicornNumericSeparatorsStyle =
22118
22218
  | []