@kitschpatrol/eslint-config 5.3.0 → 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
- * disallow using '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
- * disallow using '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
- * disallow using 'componentWillReceiveProps'
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
- * disallow the use of '<Context.Provider>'
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
- * disallow the use of 'forwardRef'
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
- * disallow the use of 'useContext'
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 using shorthand 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 using fragment syntax instead of 'Fragment' component
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'
@@ -11267,23 +11334,7 @@ type NodeNoSync =
11267
11334
  | [
11268
11335
  {
11269
11336
  allowAtRootLevel?: boolean
11270
- ignores?: (
11271
- | string
11272
- | {
11273
- from?: 'file'
11274
- path?: string
11275
- name?: string[]
11276
- }
11277
- | {
11278
- from?: 'lib'
11279
- name?: string[]
11280
- }
11281
- | {
11282
- from?: 'package'
11283
- package?: string
11284
- name?: string[]
11285
- }
11286
- )[]
11337
+ ignores?: string[]
11287
11338
  },
11288
11339
  ]
11289
11340
  // ----- node/no-unpublished-bin -----
@@ -13745,6 +13796,9 @@ type NodeNoUnsupportedFeaturesNodeBuiltins =
13745
13796
  | 'zlib.Unzip()'
13746
13797
  | 'zlib.Unzip'
13747
13798
  | 'zlib'
13799
+ | 'import.meta.resolve'
13800
+ | 'import.meta.dirname'
13801
+ | 'import.meta.filename'
13748
13802
  )[]
13749
13803
  },
13750
13804
  ]
@@ -14090,8 +14144,6 @@ type PaddingLineBetweenStatements = {
14090
14144
  }[]
14091
14145
  // ----- perfectionist/sort-array-includes -----
14092
14146
  type PerfectionistSortArrayIncludes = {
14093
- specialCharacters?: 'remove' | 'trim' | 'keep'
14094
-
14095
14147
  fallbackSort?: {
14096
14148
  order?: 'asc' | 'desc'
14097
14149
 
@@ -14099,6 +14151,8 @@ type PerfectionistSortArrayIncludes = {
14099
14151
  [k: string]: unknown | undefined
14100
14152
  }
14101
14153
 
14154
+ specialCharacters?: 'remove' | 'trim' | 'keep'
14155
+
14102
14156
  ignoreCase?: boolean
14103
14157
 
14104
14158
  alphabet?: string
@@ -14113,13 +14167,20 @@ type PerfectionistSortArrayIncludes = {
14113
14167
 
14114
14168
  customGroups?: (
14115
14169
  | {
14116
- groupName?: string
14170
+ newlinesInside?: 'always' | 'never'
14117
14171
 
14118
- type?: 'alphabetical' | 'line-length' | 'natural' | 'unsorted'
14172
+ fallbackSort?: {
14173
+ order?: 'asc' | 'desc'
14119
14174
 
14120
- order?: 'desc' | 'asc'
14175
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
14176
+ [k: string]: unknown | undefined
14177
+ }
14121
14178
 
14122
- newlinesInside?: 'always' | 'never'
14179
+ groupName?: string
14180
+
14181
+ order?: 'asc' | 'desc'
14182
+
14183
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
14123
14184
  anyOf?: {
14124
14185
  selector?: 'literal' | 'spread'
14125
14186
 
@@ -14141,13 +14202,20 @@ type PerfectionistSortArrayIncludes = {
14141
14202
  }[]
14142
14203
  }
14143
14204
  | {
14144
- groupName?: string
14205
+ newlinesInside?: 'always' | 'never'
14145
14206
 
14146
- type?: 'alphabetical' | 'line-length' | 'natural' | 'unsorted'
14207
+ fallbackSort?: {
14208
+ order?: 'asc' | 'desc'
14147
14209
 
14148
- order?: 'desc' | 'asc'
14210
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
14211
+ [k: string]: unknown | undefined
14212
+ }
14149
14213
 
14150
- newlinesInside?: 'always' | 'never'
14214
+ groupName?: string
14215
+
14216
+ order?: 'asc' | 'desc'
14217
+
14218
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
14151
14219
 
14152
14220
  selector?: 'literal' | 'spread'
14153
14221
 
@@ -14260,8 +14328,6 @@ type PerfectionistSortClasses =
14260
14328
  | []
14261
14329
  | [
14262
14330
  {
14263
- specialCharacters?: 'remove' | 'trim' | 'keep'
14264
-
14265
14331
  fallbackSort?: {
14266
14332
  order?: 'asc' | 'desc'
14267
14333
 
@@ -14269,6 +14335,8 @@ type PerfectionistSortClasses =
14269
14335
  [k: string]: unknown | undefined
14270
14336
  }
14271
14337
 
14338
+ specialCharacters?: 'remove' | 'trim' | 'keep'
14339
+
14272
14340
  ignoreCase?: boolean
14273
14341
 
14274
14342
  alphabet?: string
@@ -14281,13 +14349,20 @@ type PerfectionistSortClasses =
14281
14349
 
14282
14350
  customGroups?: (
14283
14351
  | {
14284
- groupName?: string
14352
+ newlinesInside?: 'always' | 'never'
14285
14353
 
14286
- type?: 'alphabetical' | 'line-length' | 'natural' | 'unsorted'
14354
+ fallbackSort?: {
14355
+ order?: 'asc' | 'desc'
14287
14356
 
14288
- order?: 'desc' | 'asc'
14357
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
14358
+ [k: string]: unknown | undefined
14359
+ }
14289
14360
 
14290
- newlinesInside?: 'always' | 'never'
14361
+ groupName?: string
14362
+
14363
+ order?: 'asc' | 'desc'
14364
+
14365
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
14291
14366
  anyOf?: {
14292
14367
  modifiers?: (
14293
14368
  | 'async'
@@ -14364,13 +14439,20 @@ type PerfectionistSortClasses =
14364
14439
  }[]
14365
14440
  }
14366
14441
  | {
14367
- groupName?: string
14442
+ newlinesInside?: 'always' | 'never'
14443
+
14444
+ fallbackSort?: {
14445
+ order?: 'asc' | 'desc'
14368
14446
 
14369
- type?: 'alphabetical' | 'line-length' | 'natural' | 'unsorted'
14447
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
14448
+ [k: string]: unknown | undefined
14449
+ }
14370
14450
 
14371
- order?: 'desc' | 'asc'
14451
+ groupName?: string
14372
14452
 
14373
- newlinesInside?: 'always' | 'never'
14453
+ order?: 'asc' | 'desc'
14454
+
14455
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
14374
14456
 
14375
14457
  modifiers?: (
14376
14458
  | 'async'
@@ -14538,8 +14620,6 @@ type PerfectionistSortDecorators =
14538
14620
  | []
14539
14621
  | [
14540
14622
  {
14541
- specialCharacters?: 'remove' | 'trim' | 'keep'
14542
-
14543
14623
  fallbackSort?: {
14544
14624
  order?: 'asc' | 'desc'
14545
14625
 
@@ -14547,6 +14627,8 @@ type PerfectionistSortDecorators =
14547
14627
  [k: string]: unknown | undefined
14548
14628
  }
14549
14629
 
14630
+ specialCharacters?: 'remove' | 'trim' | 'keep'
14631
+
14550
14632
  ignoreCase?: boolean
14551
14633
 
14552
14634
  alphabet?: string
@@ -14642,8 +14724,6 @@ type PerfectionistSortEnums =
14642
14724
  | []
14643
14725
  | [
14644
14726
  {
14645
- specialCharacters?: 'remove' | 'trim' | 'keep'
14646
-
14647
14727
  fallbackSort?: {
14648
14728
  order?: 'asc' | 'desc'
14649
14729
 
@@ -14651,6 +14731,8 @@ type PerfectionistSortEnums =
14651
14731
  [k: string]: unknown | undefined
14652
14732
  }
14653
14733
 
14734
+ specialCharacters?: 'remove' | 'trim' | 'keep'
14735
+
14654
14736
  ignoreCase?: boolean
14655
14737
 
14656
14738
  alphabet?: string
@@ -14668,13 +14750,20 @@ type PerfectionistSortEnums =
14668
14750
  }
14669
14751
  | (
14670
14752
  | {
14671
- groupName?: string
14753
+ newlinesInside?: 'always' | 'never'
14672
14754
 
14673
- type?: 'alphabetical' | 'line-length' | 'natural' | 'unsorted'
14755
+ fallbackSort?: {
14756
+ order?: 'asc' | 'desc'
14674
14757
 
14675
- order?: 'desc' | 'asc'
14758
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
14759
+ [k: string]: unknown | undefined
14760
+ }
14676
14761
 
14677
- newlinesInside?: 'always' | 'never'
14762
+ groupName?: string
14763
+
14764
+ order?: 'asc' | 'desc'
14765
+
14766
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
14678
14767
  anyOf?: {
14679
14768
  elementValuePattern?:
14680
14769
  | (
@@ -14710,13 +14799,20 @@ type PerfectionistSortEnums =
14710
14799
  }[]
14711
14800
  }
14712
14801
  | {
14713
- groupName?: string
14802
+ newlinesInside?: 'always' | 'never'
14714
14803
 
14715
- type?: 'alphabetical' | 'line-length' | 'natural' | 'unsorted'
14804
+ fallbackSort?: {
14805
+ order?: 'asc' | 'desc'
14716
14806
 
14717
- order?: 'desc' | 'asc'
14807
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
14808
+ [k: string]: unknown | undefined
14809
+ }
14718
14810
 
14719
- newlinesInside?: 'always' | 'never'
14811
+ groupName?: string
14812
+
14813
+ order?: 'asc' | 'desc'
14814
+
14815
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
14720
14816
 
14721
14817
  elementValuePattern?:
14722
14818
  | (
@@ -14829,8 +14925,6 @@ type PerfectionistSortExports =
14829
14925
  | []
14830
14926
  | [
14831
14927
  {
14832
- specialCharacters?: 'remove' | 'trim' | 'keep'
14833
-
14834
14928
  fallbackSort?: {
14835
14929
  order?: 'asc' | 'desc'
14836
14930
 
@@ -14838,6 +14932,8 @@ type PerfectionistSortExports =
14838
14932
  [k: string]: unknown | undefined
14839
14933
  }
14840
14934
 
14935
+ specialCharacters?: 'remove' | 'trim' | 'keep'
14936
+
14841
14937
  ignoreCase?: boolean
14842
14938
 
14843
14939
  alphabet?: string
@@ -14915,8 +15011,6 @@ type PerfectionistSortHeritageClauses =
14915
15011
  | []
14916
15012
  | [
14917
15013
  {
14918
- specialCharacters?: 'remove' | 'trim' | 'keep'
14919
-
14920
15014
  fallbackSort?: {
14921
15015
  order?: 'asc' | 'desc'
14922
15016
 
@@ -14924,6 +15018,8 @@ type PerfectionistSortHeritageClauses =
14924
15018
  [k: string]: unknown | undefined
14925
15019
  }
14926
15020
 
15021
+ specialCharacters?: 'remove' | 'trim' | 'keep'
15022
+
14927
15023
  ignoreCase?: boolean
14928
15024
 
14929
15025
  alphabet?: string
@@ -14951,8 +15047,6 @@ type PerfectionistSortHeritageClauses =
14951
15047
  type PerfectionistSortImports = [] | [_PerfectionistSortImportsSortImports]
14952
15048
  type _PerfectionistSortImportsSortImports =
14953
15049
  _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType & {
14954
- specialCharacters?: 'remove' | 'trim' | 'keep'
14955
-
14956
15050
  fallbackSort?: {
14957
15051
  order?: 'asc' | 'desc'
14958
15052
 
@@ -14960,6 +15054,8 @@ type _PerfectionistSortImportsSortImports =
14960
15054
  [k: string]: unknown | undefined
14961
15055
  }
14962
15056
 
15057
+ specialCharacters?: 'remove' | 'trim' | 'keep'
15058
+
14963
15059
  ignoreCase?: boolean
14964
15060
 
14965
15061
  alphabet?: string
@@ -15084,8 +15180,6 @@ interface _PerfectionistSortImports_IsLineLength {
15084
15180
  }
15085
15181
  // ----- perfectionist/sort-interfaces -----
15086
15182
  type PerfectionistSortInterfaces = {
15087
- specialCharacters?: 'remove' | 'trim' | 'keep'
15088
-
15089
15183
  fallbackSort?: {
15090
15184
  order?: 'asc' | 'desc'
15091
15185
 
@@ -15093,6 +15187,8 @@ type PerfectionistSortInterfaces = {
15093
15187
  [k: string]: unknown | undefined
15094
15188
  }
15095
15189
 
15190
+ specialCharacters?: 'remove' | 'trim' | 'keep'
15191
+
15096
15192
  ignoreCase?: boolean
15097
15193
 
15098
15194
  alphabet?: string
@@ -15108,18 +15204,42 @@ type PerfectionistSortInterfaces = {
15108
15204
  }
15109
15205
  | (
15110
15206
  | {
15111
- groupName?: string
15207
+ newlinesInside?: 'always' | 'never'
15112
15208
 
15113
- type?: 'alphabetical' | 'line-length' | 'natural' | 'unsorted'
15209
+ fallbackSort?: {
15210
+ order?: 'asc' | 'desc'
15114
15211
 
15115
- order?: 'desc' | 'asc'
15212
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15213
+ sortBy?: 'name' | 'value'
15214
+ [k: string]: unknown | undefined
15215
+ }
15116
15216
 
15117
- newlinesInside?: 'always' | 'never'
15217
+ groupName?: string
15218
+
15219
+ order?: 'asc' | 'desc'
15220
+
15221
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15118
15222
  anyOf?: {
15119
15223
  modifiers?: ('optional' | 'required' | 'multiline')[]
15120
15224
 
15121
15225
  selector?: 'index-signature' | 'member' | 'method' | 'multiline' | 'property'
15122
15226
 
15227
+ elementValuePattern?:
15228
+ | (
15229
+ | {
15230
+ pattern?: string
15231
+ flags?: string
15232
+ }
15233
+ | string
15234
+ )[]
15235
+ | (
15236
+ | {
15237
+ pattern?: string
15238
+ flags?: string
15239
+ }
15240
+ | string
15241
+ )
15242
+
15123
15243
  elementNamePattern?:
15124
15244
  | (
15125
15245
  | {
@@ -15135,21 +15255,46 @@ type PerfectionistSortInterfaces = {
15135
15255
  }
15136
15256
  | string
15137
15257
  )
15258
+ sortBy?: 'name' | 'value'
15138
15259
  }[]
15139
15260
  }
15140
15261
  | {
15141
- groupName?: string
15262
+ newlinesInside?: 'always' | 'never'
15142
15263
 
15143
- type?: 'alphabetical' | 'line-length' | 'natural' | 'unsorted'
15264
+ fallbackSort?: {
15265
+ order?: 'asc' | 'desc'
15144
15266
 
15145
- order?: 'desc' | 'asc'
15267
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15268
+ sortBy?: 'name' | 'value'
15269
+ [k: string]: unknown | undefined
15270
+ }
15146
15271
 
15147
- newlinesInside?: 'always' | 'never'
15272
+ groupName?: string
15273
+
15274
+ order?: 'asc' | 'desc'
15275
+
15276
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15148
15277
 
15149
15278
  modifiers?: ('optional' | 'required' | 'multiline')[]
15150
15279
 
15151
15280
  selector?: 'index-signature' | 'member' | 'method' | 'multiline' | 'property'
15152
15281
 
15282
+ elementValuePattern?:
15283
+ | (
15284
+ | {
15285
+ pattern?: string
15286
+ flags?: string
15287
+ }
15288
+ | string
15289
+ )[]
15290
+ | (
15291
+ | {
15292
+ pattern?: string
15293
+ flags?: string
15294
+ }
15295
+ | string
15296
+ )
15297
+
15153
15298
  elementNamePattern?:
15154
15299
  | (
15155
15300
  | {
@@ -15165,6 +15310,7 @@ type PerfectionistSortInterfaces = {
15165
15310
  }
15166
15311
  | string
15167
15312
  )
15313
+ sortBy?: 'name' | 'value'
15168
15314
  }
15169
15315
  )[]
15170
15316
  useConfigurationIf?: {
@@ -15279,6 +15425,7 @@ type PerfectionistSortInterfaces = {
15279
15425
  }
15280
15426
  | string
15281
15427
  )
15428
+ sortBy?: 'name' | 'value'
15282
15429
 
15283
15430
  groups?: (
15284
15431
  | string
@@ -15293,8 +15440,6 @@ type PerfectionistSortIntersectionTypes =
15293
15440
  | []
15294
15441
  | [
15295
15442
  {
15296
- specialCharacters?: 'remove' | 'trim' | 'keep'
15297
-
15298
15443
  fallbackSort?: {
15299
15444
  order?: 'asc' | 'desc'
15300
15445
 
@@ -15302,6 +15447,8 @@ type PerfectionistSortIntersectionTypes =
15302
15447
  [k: string]: unknown | undefined
15303
15448
  }
15304
15449
 
15450
+ specialCharacters?: 'remove' | 'trim' | 'keep'
15451
+
15305
15452
  ignoreCase?: boolean
15306
15453
 
15307
15454
  alphabet?: string
@@ -15384,8 +15531,6 @@ type PerfectionistSortIntersectionTypes =
15384
15531
  ]
15385
15532
  // ----- perfectionist/sort-jsx-props -----
15386
15533
  type PerfectionistSortJsxProps = {
15387
- specialCharacters?: 'remove' | 'trim' | 'keep'
15388
-
15389
15534
  fallbackSort?: {
15390
15535
  order?: 'asc' | 'desc'
15391
15536
 
@@ -15393,6 +15538,8 @@ type PerfectionistSortJsxProps = {
15393
15538
  [k: string]: unknown | undefined
15394
15539
  }
15395
15540
 
15541
+ specialCharacters?: 'remove' | 'trim' | 'keep'
15542
+
15396
15543
  ignoreCase?: boolean
15397
15544
 
15398
15545
  alphabet?: string
@@ -15470,8 +15617,6 @@ type PerfectionistSortJsxProps = {
15470
15617
  }[]
15471
15618
  // ----- perfectionist/sort-maps -----
15472
15619
  type PerfectionistSortMaps = {
15473
- specialCharacters?: 'remove' | 'trim' | 'keep'
15474
-
15475
15620
  fallbackSort?: {
15476
15621
  order?: 'asc' | 'desc'
15477
15622
 
@@ -15479,6 +15624,8 @@ type PerfectionistSortMaps = {
15479
15624
  [k: string]: unknown | undefined
15480
15625
  }
15481
15626
 
15627
+ specialCharacters?: 'remove' | 'trim' | 'keep'
15628
+
15482
15629
  ignoreCase?: boolean
15483
15630
 
15484
15631
  alphabet?: string
@@ -15491,13 +15638,20 @@ type PerfectionistSortMaps = {
15491
15638
 
15492
15639
  customGroups?: (
15493
15640
  | {
15494
- groupName?: string
15641
+ newlinesInside?: 'always' | 'never'
15642
+
15643
+ fallbackSort?: {
15644
+ order?: 'asc' | 'desc'
15645
+
15646
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15647
+ [k: string]: unknown | undefined
15648
+ }
15495
15649
 
15496
- type?: 'alphabetical' | 'line-length' | 'natural' | 'unsorted'
15650
+ groupName?: string
15497
15651
 
15498
- order?: 'desc' | 'asc'
15652
+ order?: 'asc' | 'desc'
15499
15653
 
15500
- newlinesInside?: 'always' | 'never'
15654
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15501
15655
  anyOf?: {
15502
15656
  elementNamePattern?:
15503
15657
  | (
@@ -15517,13 +15671,20 @@ type PerfectionistSortMaps = {
15517
15671
  }[]
15518
15672
  }
15519
15673
  | {
15520
- groupName?: string
15674
+ newlinesInside?: 'always' | 'never'
15521
15675
 
15522
- type?: 'alphabetical' | 'line-length' | 'natural' | 'unsorted'
15676
+ fallbackSort?: {
15677
+ order?: 'asc' | 'desc'
15523
15678
 
15524
- order?: 'desc' | 'asc'
15679
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15680
+ [k: string]: unknown | undefined
15681
+ }
15525
15682
 
15526
- newlinesInside?: 'always' | 'never'
15683
+ groupName?: string
15684
+
15685
+ order?: 'asc' | 'desc'
15686
+
15687
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15527
15688
 
15528
15689
  elementNamePattern?:
15529
15690
  | (
@@ -15634,8 +15795,6 @@ type PerfectionistSortModules =
15634
15795
  | []
15635
15796
  | [
15636
15797
  {
15637
- specialCharacters?: 'remove' | 'trim' | 'keep'
15638
-
15639
15798
  fallbackSort?: {
15640
15799
  order?: 'asc' | 'desc'
15641
15800
 
@@ -15643,6 +15802,8 @@ type PerfectionistSortModules =
15643
15802
  [k: string]: unknown | undefined
15644
15803
  }
15645
15804
 
15805
+ specialCharacters?: 'remove' | 'trim' | 'keep'
15806
+
15646
15807
  ignoreCase?: boolean
15647
15808
 
15648
15809
  alphabet?: string
@@ -15655,13 +15816,20 @@ type PerfectionistSortModules =
15655
15816
 
15656
15817
  customGroups?: (
15657
15818
  | {
15658
- groupName?: string
15819
+ newlinesInside?: 'always' | 'never'
15659
15820
 
15660
- type?: 'alphabetical' | 'line-length' | 'natural' | 'unsorted'
15821
+ fallbackSort?: {
15822
+ order?: 'asc' | 'desc'
15661
15823
 
15662
- order?: 'desc' | 'asc'
15824
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15825
+ [k: string]: unknown | undefined
15826
+ }
15663
15827
 
15664
- newlinesInside?: 'always' | 'never'
15828
+ groupName?: string
15829
+
15830
+ order?: 'asc' | 'desc'
15831
+
15832
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15665
15833
  anyOf?: {
15666
15834
  modifiers?: ('async' | 'declare' | 'decorated' | 'default' | 'export')[]
15667
15835
 
@@ -15701,13 +15869,20 @@ type PerfectionistSortModules =
15701
15869
  }[]
15702
15870
  }
15703
15871
  | {
15704
- groupName?: string
15872
+ newlinesInside?: 'always' | 'never'
15705
15873
 
15706
- type?: 'alphabetical' | 'line-length' | 'natural' | 'unsorted'
15874
+ fallbackSort?: {
15875
+ order?: 'asc' | 'desc'
15707
15876
 
15708
- order?: 'desc' | 'asc'
15877
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15878
+ [k: string]: unknown | undefined
15879
+ }
15709
15880
 
15710
- newlinesInside?: 'always' | 'never'
15881
+ groupName?: string
15882
+
15883
+ order?: 'asc' | 'desc'
15884
+
15885
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15711
15886
 
15712
15887
  modifiers?: ('async' | 'declare' | 'decorated' | 'default' | 'export')[]
15713
15888
 
@@ -15822,8 +15997,6 @@ type PerfectionistSortNamedExports =
15822
15997
  | []
15823
15998
  | [
15824
15999
  {
15825
- specialCharacters?: 'remove' | 'trim' | 'keep'
15826
-
15827
16000
  fallbackSort?: {
15828
16001
  order?: 'asc' | 'desc'
15829
16002
 
@@ -15831,6 +16004,8 @@ type PerfectionistSortNamedExports =
15831
16004
  [k: string]: unknown | undefined
15832
16005
  }
15833
16006
 
16007
+ specialCharacters?: 'remove' | 'trim' | 'keep'
16008
+
15834
16009
  ignoreCase?: boolean
15835
16010
 
15836
16011
  alphabet?: string
@@ -15910,8 +16085,6 @@ type PerfectionistSortNamedImports =
15910
16085
  | []
15911
16086
  | [
15912
16087
  {
15913
- specialCharacters?: 'remove' | 'trim' | 'keep'
15914
-
15915
16088
  fallbackSort?: {
15916
16089
  order?: 'asc' | 'desc'
15917
16090
 
@@ -15919,6 +16092,8 @@ type PerfectionistSortNamedImports =
15919
16092
  [k: string]: unknown | undefined
15920
16093
  }
15921
16094
 
16095
+ specialCharacters?: 'remove' | 'trim' | 'keep'
16096
+
15922
16097
  ignoreCase?: boolean
15923
16098
 
15924
16099
  alphabet?: string
@@ -15995,8 +16170,6 @@ type PerfectionistSortNamedImports =
15995
16170
  ]
15996
16171
  // ----- perfectionist/sort-object-types -----
15997
16172
  type PerfectionistSortObjectTypes = {
15998
- specialCharacters?: 'remove' | 'trim' | 'keep'
15999
-
16000
16173
  fallbackSort?: {
16001
16174
  order?: 'asc' | 'desc'
16002
16175
 
@@ -16004,6 +16177,8 @@ type PerfectionistSortObjectTypes = {
16004
16177
  [k: string]: unknown | undefined
16005
16178
  }
16006
16179
 
16180
+ specialCharacters?: 'remove' | 'trim' | 'keep'
16181
+
16007
16182
  ignoreCase?: boolean
16008
16183
 
16009
16184
  alphabet?: string
@@ -16019,18 +16194,42 @@ type PerfectionistSortObjectTypes = {
16019
16194
  }
16020
16195
  | (
16021
16196
  | {
16022
- groupName?: string
16197
+ newlinesInside?: 'always' | 'never'
16023
16198
 
16024
- type?: 'alphabetical' | 'line-length' | 'natural' | 'unsorted'
16199
+ fallbackSort?: {
16200
+ order?: 'asc' | 'desc'
16025
16201
 
16026
- order?: 'desc' | 'asc'
16202
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16203
+ sortBy?: 'name' | 'value'
16204
+ [k: string]: unknown | undefined
16205
+ }
16027
16206
 
16028
- newlinesInside?: 'always' | 'never'
16207
+ groupName?: string
16208
+
16209
+ order?: 'asc' | 'desc'
16210
+
16211
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16029
16212
  anyOf?: {
16030
16213
  modifiers?: ('optional' | 'required' | 'multiline')[]
16031
16214
 
16032
16215
  selector?: 'index-signature' | 'member' | 'method' | 'multiline' | 'property'
16033
16216
 
16217
+ elementValuePattern?:
16218
+ | (
16219
+ | {
16220
+ pattern?: string
16221
+ flags?: string
16222
+ }
16223
+ | string
16224
+ )[]
16225
+ | (
16226
+ | {
16227
+ pattern?: string
16228
+ flags?: string
16229
+ }
16230
+ | string
16231
+ )
16232
+
16034
16233
  elementNamePattern?:
16035
16234
  | (
16036
16235
  | {
@@ -16046,21 +16245,46 @@ type PerfectionistSortObjectTypes = {
16046
16245
  }
16047
16246
  | string
16048
16247
  )
16248
+ sortBy?: 'name' | 'value'
16049
16249
  }[]
16050
16250
  }
16051
16251
  | {
16052
- groupName?: string
16252
+ newlinesInside?: 'always' | 'never'
16053
16253
 
16054
- type?: 'alphabetical' | 'line-length' | 'natural' | 'unsorted'
16254
+ fallbackSort?: {
16255
+ order?: 'asc' | 'desc'
16055
16256
 
16056
- order?: 'desc' | 'asc'
16257
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16258
+ sortBy?: 'name' | 'value'
16259
+ [k: string]: unknown | undefined
16260
+ }
16057
16261
 
16058
- newlinesInside?: 'always' | 'never'
16262
+ groupName?: string
16263
+
16264
+ order?: 'asc' | 'desc'
16265
+
16266
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16059
16267
 
16060
16268
  modifiers?: ('optional' | 'required' | 'multiline')[]
16061
16269
 
16062
16270
  selector?: 'index-signature' | 'member' | 'method' | 'multiline' | 'property'
16063
16271
 
16272
+ elementValuePattern?:
16273
+ | (
16274
+ | {
16275
+ pattern?: string
16276
+ flags?: string
16277
+ }
16278
+ | string
16279
+ )[]
16280
+ | (
16281
+ | {
16282
+ pattern?: string
16283
+ flags?: string
16284
+ }
16285
+ | string
16286
+ )
16287
+
16064
16288
  elementNamePattern?:
16065
16289
  | (
16066
16290
  | {
@@ -16076,6 +16300,7 @@ type PerfectionistSortObjectTypes = {
16076
16300
  }
16077
16301
  | string
16078
16302
  )
16303
+ sortBy?: 'name' | 'value'
16079
16304
  }
16080
16305
  )[]
16081
16306
  useConfigurationIf?: {
@@ -16190,6 +16415,7 @@ type PerfectionistSortObjectTypes = {
16190
16415
  }
16191
16416
  | string
16192
16417
  )
16418
+ sortBy?: 'name' | 'value'
16193
16419
 
16194
16420
  groups?: (
16195
16421
  | string
@@ -16201,8 +16427,6 @@ type PerfectionistSortObjectTypes = {
16201
16427
  }[]
16202
16428
  // ----- perfectionist/sort-objects -----
16203
16429
  type PerfectionistSortObjects = {
16204
- specialCharacters?: 'remove' | 'trim' | 'keep'
16205
-
16206
16430
  fallbackSort?: {
16207
16431
  order?: 'asc' | 'desc'
16208
16432
 
@@ -16210,6 +16434,8 @@ type PerfectionistSortObjects = {
16210
16434
  [k: string]: unknown | undefined
16211
16435
  }
16212
16436
 
16437
+ specialCharacters?: 'remove' | 'trim' | 'keep'
16438
+
16213
16439
  ignoreCase?: boolean
16214
16440
 
16215
16441
  alphabet?: string
@@ -16231,13 +16457,20 @@ type PerfectionistSortObjects = {
16231
16457
  }
16232
16458
  | (
16233
16459
  | {
16234
- groupName?: string
16460
+ newlinesInside?: 'always' | 'never'
16235
16461
 
16236
- type?: 'alphabetical' | 'line-length' | 'natural' | 'unsorted'
16462
+ fallbackSort?: {
16463
+ order?: 'asc' | 'desc'
16237
16464
 
16238
- order?: 'desc' | 'asc'
16465
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16466
+ [k: string]: unknown | undefined
16467
+ }
16239
16468
 
16240
- newlinesInside?: 'always' | 'never'
16469
+ groupName?: string
16470
+
16471
+ order?: 'asc' | 'desc'
16472
+
16473
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16241
16474
  anyOf?: {
16242
16475
  modifiers?: ('optional' | 'required' | 'multiline')[]
16243
16476
 
@@ -16277,13 +16510,20 @@ type PerfectionistSortObjects = {
16277
16510
  }[]
16278
16511
  }
16279
16512
  | {
16280
- groupName?: string
16513
+ newlinesInside?: 'always' | 'never'
16281
16514
 
16282
- type?: 'alphabetical' | 'line-length' | 'natural' | 'unsorted'
16515
+ fallbackSort?: {
16516
+ order?: 'asc' | 'desc'
16283
16517
 
16284
- order?: 'desc' | 'asc'
16518
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16519
+ [k: string]: unknown | undefined
16520
+ }
16285
16521
 
16286
- newlinesInside?: 'always' | 'never'
16522
+ groupName?: string
16523
+
16524
+ order?: 'asc' | 'desc'
16525
+
16526
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16287
16527
 
16288
16528
  modifiers?: ('optional' | 'required' | 'multiline')[]
16289
16529
 
@@ -16449,8 +16689,6 @@ type PerfectionistSortObjects = {
16449
16689
  }[]
16450
16690
  // ----- perfectionist/sort-sets -----
16451
16691
  type PerfectionistSortSets = {
16452
- specialCharacters?: 'remove' | 'trim' | 'keep'
16453
-
16454
16692
  fallbackSort?: {
16455
16693
  order?: 'asc' | 'desc'
16456
16694
 
@@ -16458,6 +16696,8 @@ type PerfectionistSortSets = {
16458
16696
  [k: string]: unknown | undefined
16459
16697
  }
16460
16698
 
16699
+ specialCharacters?: 'remove' | 'trim' | 'keep'
16700
+
16461
16701
  ignoreCase?: boolean
16462
16702
 
16463
16703
  alphabet?: string
@@ -16472,13 +16712,20 @@ type PerfectionistSortSets = {
16472
16712
 
16473
16713
  customGroups?: (
16474
16714
  | {
16475
- groupName?: string
16715
+ newlinesInside?: 'always' | 'never'
16476
16716
 
16477
- type?: 'alphabetical' | 'line-length' | 'natural' | 'unsorted'
16717
+ fallbackSort?: {
16718
+ order?: 'asc' | 'desc'
16478
16719
 
16479
- order?: 'desc' | 'asc'
16720
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16721
+ [k: string]: unknown | undefined
16722
+ }
16480
16723
 
16481
- newlinesInside?: 'always' | 'never'
16724
+ groupName?: string
16725
+
16726
+ order?: 'asc' | 'desc'
16727
+
16728
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16482
16729
  anyOf?: {
16483
16730
  selector?: 'literal' | 'spread'
16484
16731
 
@@ -16500,13 +16747,20 @@ type PerfectionistSortSets = {
16500
16747
  }[]
16501
16748
  }
16502
16749
  | {
16503
- groupName?: string
16750
+ newlinesInside?: 'always' | 'never'
16504
16751
 
16505
- type?: 'alphabetical' | 'line-length' | 'natural' | 'unsorted'
16752
+ fallbackSort?: {
16753
+ order?: 'asc' | 'desc'
16506
16754
 
16507
- order?: 'desc' | 'asc'
16755
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16756
+ [k: string]: unknown | undefined
16757
+ }
16508
16758
 
16509
- newlinesInside?: 'always' | 'never'
16759
+ groupName?: string
16760
+
16761
+ order?: 'asc' | 'desc'
16762
+
16763
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16510
16764
 
16511
16765
  selector?: 'literal' | 'spread'
16512
16766
 
@@ -16619,8 +16873,6 @@ type PerfectionistSortSwitchCase =
16619
16873
  | []
16620
16874
  | [
16621
16875
  {
16622
- specialCharacters?: 'remove' | 'trim' | 'keep'
16623
-
16624
16876
  fallbackSort?: {
16625
16877
  order?: 'asc' | 'desc'
16626
16878
 
@@ -16628,6 +16880,8 @@ type PerfectionistSortSwitchCase =
16628
16880
  [k: string]: unknown | undefined
16629
16881
  }
16630
16882
 
16883
+ specialCharacters?: 'remove' | 'trim' | 'keep'
16884
+
16631
16885
  ignoreCase?: boolean
16632
16886
 
16633
16887
  alphabet?: string
@@ -16644,8 +16898,6 @@ type PerfectionistSortUnionTypes =
16644
16898
  | []
16645
16899
  | [
16646
16900
  {
16647
- specialCharacters?: 'remove' | 'trim' | 'keep'
16648
-
16649
16901
  fallbackSort?: {
16650
16902
  order?: 'asc' | 'desc'
16651
16903
 
@@ -16653,6 +16905,8 @@ type PerfectionistSortUnionTypes =
16653
16905
  [k: string]: unknown | undefined
16654
16906
  }
16655
16907
 
16908
+ specialCharacters?: 'remove' | 'trim' | 'keep'
16909
+
16656
16910
  ignoreCase?: boolean
16657
16911
 
16658
16912
  alphabet?: string
@@ -16738,8 +16992,6 @@ type PerfectionistSortVariableDeclarations =
16738
16992
  | []
16739
16993
  | [
16740
16994
  {
16741
- specialCharacters?: 'remove' | 'trim' | 'keep'
16742
-
16743
16995
  fallbackSort?: {
16744
16996
  order?: 'asc' | 'desc'
16745
16997
 
@@ -16747,6 +16999,8 @@ type PerfectionistSortVariableDeclarations =
16747
16999
  [k: string]: unknown | undefined
16748
17000
  }
16749
17001
 
17002
+ specialCharacters?: 'remove' | 'trim' | 'keep'
17003
+
16750
17004
  ignoreCase?: boolean
16751
17005
 
16752
17006
  alphabet?: string
@@ -17629,6 +17883,15 @@ type SvelteNoUnknownStyleDirectiveProperty =
17629
17883
  ignorePrefixed?: boolean
17630
17884
  },
17631
17885
  ]
17886
+ // ----- svelte/no-unnecessary-state-wrap -----
17887
+ type SvelteNoUnnecessaryStateWrap =
17888
+ | []
17889
+ | [
17890
+ {
17891
+ additionalReactiveClasses?: string[]
17892
+ allowReassign?: boolean
17893
+ },
17894
+ ]
17632
17895
  // ----- svelte/no-unused-class-name -----
17633
17896
  type SvelteNoUnusedClassName =
17634
17897
  | []
@@ -17637,6 +17900,16 @@ type SvelteNoUnusedClassName =
17637
17900
  allowedClassNames?: string[]
17638
17901
  },
17639
17902
  ]
17903
+ // ----- svelte/no-unused-props -----
17904
+ type SvelteNoUnusedProps =
17905
+ | []
17906
+ | [
17907
+ {
17908
+ checkImportedTypes?: boolean
17909
+ ignoreTypePatterns?: string[]
17910
+ ignorePropertyPatterns?: string[]
17911
+ },
17912
+ ]
17640
17913
  // ----- svelte/no-useless-mustaches -----
17641
17914
  type SvelteNoUselessMustaches =
17642
17915
  | []
@@ -17661,6 +17934,7 @@ type SveltePreferConst =
17661
17934
  {
17662
17935
  destructuring?: 'any' | 'all'
17663
17936
  ignoreReadBeforeAssign?: boolean
17937
+ excludedRunes?: string[]
17664
17938
  },
17665
17939
  ]
17666
17940
  // ----- svelte/shorthand-attribute -----
@@ -21794,6 +22068,8 @@ type UnicornConsistentFunctionScoping =
21794
22068
  checkArrowFunctions?: boolean
21795
22069
  },
21796
22070
  ]
22071
+ // ----- unicorn/escape-case -----
22072
+ type UnicornEscapeCase = [] | ['uppercase' | 'lowercase']
21797
22073
  // ----- unicorn/expiring-todo-comments -----
21798
22074
  type UnicornExpiringTodoComments =
21799
22075
  | []
@@ -21929,6 +22205,14 @@ type UnicornNoUselessUndefined =
21929
22205
  checkArrowFunctionBody?: boolean
21930
22206
  },
21931
22207
  ]
22208
+ // ----- unicorn/number-literal-case -----
22209
+ type UnicornNumberLiteralCase =
22210
+ | []
22211
+ | [
22212
+ {
22213
+ hexadecimalValue?: 'uppercase' | 'lowercase'
22214
+ },
22215
+ ]
21932
22216
  // ----- unicorn/numeric-separators-style -----
21933
22217
  type UnicornNumericSeparatorsStyle =
21934
22218
  | []