@kitschpatrol/eslint-config 5.3.1 → 5.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/bin/cli.js +102 -528
  2. package/dist/index.d.ts +1124 -648
  3. package/dist/index.js +45 -20
  4. package/package.json +31 -31
package/dist/index.d.ts CHANGED
@@ -598,6 +598,10 @@ interface RuleOptions {
598
598
  * Disallow to use duplicate attributes
599
599
  */
600
600
  'html/no-duplicate-attrs'?: Linter.RuleEntry<[]>
601
+ /**
602
+ * Disallow to use duplicate class
603
+ */
604
+ 'html/no-duplicate-class'?: Linter.RuleEntry<[]>
601
605
  /**
602
606
  * Disallow to use duplicate id
603
607
  */
@@ -746,6 +750,10 @@ interface RuleOptions {
746
750
  * Enforce attributes alphabetical sorting
747
751
  */
748
752
  'html/sort-attrs'?: Linter.RuleEntry<HtmlSortAttrs>
753
+ /**
754
+ * Enforce the use of baseline features.
755
+ */
756
+ 'html/use-baseline'?: Linter.RuleEntry<HtmlUseBaseline>
749
757
  /**
750
758
  * Disallow specified identifiers
751
759
  * @see https://eslint.org/docs/latest/rules/id-blacklist
@@ -775,233 +783,233 @@ interface RuleOptions {
775
783
  'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
776
784
  /**
777
785
  * 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
786
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/consistent-type-specifier-style.md
779
787
  */
780
788
  'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
781
789
  /**
782
790
  * 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
791
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/default.md
784
792
  */
785
793
  'import/default'?: Linter.RuleEntry<[]>
786
794
  /**
787
795
  * 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
796
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/dynamic-import-chunkname.md
789
797
  */
790
798
  'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
791
799
  /**
792
800
  * 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
801
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/export.md
794
802
  */
795
803
  'import/export'?: Linter.RuleEntry<[]>
796
804
  /**
797
805
  * 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
806
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/exports-last.md
799
807
  */
800
808
  'import/exports-last'?: Linter.RuleEntry<[]>
801
809
  /**
802
810
  * 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
811
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/extensions.md
804
812
  */
805
813
  'import/extensions'?: Linter.RuleEntry<ImportExtensions>
806
814
  /**
807
815
  * 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
816
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/first.md
809
817
  */
810
818
  'import/first'?: Linter.RuleEntry<ImportFirst>
811
819
  /**
812
820
  * 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
821
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/group-exports.md
814
822
  */
815
823
  'import/group-exports'?: Linter.RuleEntry<[]>
816
824
  /**
817
825
  * 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
826
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/imports-first.md
819
827
  * @deprecated
820
828
  */
821
829
  'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
822
830
  /**
823
831
  * 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
832
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/max-dependencies.md
825
833
  */
826
834
  'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
827
835
  /**
828
836
  * 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
837
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/named.md
830
838
  */
831
839
  'import/named'?: Linter.RuleEntry<ImportNamed>
832
840
  /**
833
841
  * 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
842
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/namespace.md
835
843
  */
836
844
  'import/namespace'?: Linter.RuleEntry<ImportNamespace>
837
845
  /**
838
846
  * 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
847
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/newline-after-import.md
840
848
  */
841
849
  'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
842
850
  /**
843
851
  * 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
852
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-absolute-path.md
845
853
  */
846
854
  'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
847
855
  /**
848
856
  * 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
857
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-amd.md
850
858
  */
851
859
  'import/no-amd'?: Linter.RuleEntry<[]>
852
860
  /**
853
861
  * 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
862
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-anonymous-default-export.md
855
863
  */
856
864
  'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
857
865
  /**
858
866
  * 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
867
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-commonjs.md
860
868
  */
861
869
  'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
862
870
  /**
863
871
  * 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
872
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-cycle.md
865
873
  */
866
874
  'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
867
875
  /**
868
876
  * Forbid default exports.
869
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-default-export.md
877
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-default-export.md
870
878
  */
871
879
  'import/no-default-export'?: Linter.RuleEntry<[]>
872
880
  /**
873
881
  * 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
882
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-deprecated.md
875
883
  */
876
884
  'import/no-deprecated'?: Linter.RuleEntry<[]>
877
885
  /**
878
886
  * 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
887
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-duplicates.md
880
888
  */
881
889
  'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
882
890
  /**
883
891
  * 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
892
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-dynamic-require.md
885
893
  */
886
894
  'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
887
895
  /**
888
896
  * 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
897
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-empty-named-blocks.md
890
898
  */
891
899
  'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
892
900
  /**
893
901
  * 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
902
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-extraneous-dependencies.md
895
903
  */
896
904
  'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
897
905
  /**
898
906
  * 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
907
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-import-module-exports.md
900
908
  */
901
909
  'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
902
910
  /**
903
911
  * 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
912
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-internal-modules.md
905
913
  */
906
914
  'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
907
915
  /**
908
916
  * 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
917
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-mutable-exports.md
910
918
  */
911
919
  'import/no-mutable-exports'?: Linter.RuleEntry<[]>
912
920
  /**
913
921
  * 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
922
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-named-as-default.md
915
923
  */
916
924
  'import/no-named-as-default'?: Linter.RuleEntry<[]>
917
925
  /**
918
926
  * 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
927
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-named-as-default-member.md
920
928
  */
921
929
  'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
922
930
  /**
923
931
  * 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
932
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-named-default.md
925
933
  */
926
934
  'import/no-named-default'?: Linter.RuleEntry<[]>
927
935
  /**
928
936
  * Forbid named exports.
929
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-export.md
937
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-named-export.md
930
938
  */
931
939
  'import/no-named-export'?: Linter.RuleEntry<[]>
932
940
  /**
933
941
  * 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
942
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-namespace.md
935
943
  */
936
944
  'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
937
945
  /**
938
946
  * 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
947
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-nodejs-modules.md
940
948
  */
941
949
  'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
942
950
  /**
943
951
  * 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
952
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-relative-packages.md
945
953
  */
946
954
  'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
947
955
  /**
948
956
  * 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
957
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-relative-parent-imports.md
950
958
  */
951
959
  'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
952
960
  /**
953
961
  * 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
962
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-rename-default.md
955
963
  */
956
964
  'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>
957
965
  /**
958
966
  * 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
967
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-restricted-paths.md
960
968
  */
961
969
  'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
962
970
  /**
963
971
  * 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
972
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-self-import.md
965
973
  */
966
974
  'import/no-self-import'?: Linter.RuleEntry<[]>
967
975
  /**
968
976
  * Forbid unassigned imports.
969
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unassigned-import.md
977
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-unassigned-import.md
970
978
  */
971
979
  'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
972
980
  /**
973
981
  * 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
982
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-unresolved.md
975
983
  */
976
984
  'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
977
985
  /**
978
986
  * 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
987
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-unused-modules.md
980
988
  */
981
989
  'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
982
990
  /**
983
991
  * 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
992
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-useless-path-segments.md
985
993
  */
986
994
  'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
987
995
  /**
988
996
  * 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
997
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/no-webpack-loader-syntax.md
990
998
  */
991
999
  'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
992
1000
  /**
993
1001
  * 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
1002
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/order.md
995
1003
  */
996
1004
  'import/order'?: Linter.RuleEntry<ImportOrder>
997
1005
  /**
998
1006
  * 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
1007
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/prefer-default-export.md
1000
1008
  */
1001
1009
  'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
1002
1010
  /**
1003
1011
  * 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
1012
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.11.1/docs/rules/unambiguous.md
1005
1013
  */
1006
1014
  'import/unambiguous'?: Linter.RuleEntry<[]>
1007
1015
  /**
@@ -1326,6 +1334,14 @@ interface RuleOptions {
1326
1334
  * Requires the `author` property to be present.
1327
1335
  */
1328
1336
  'json-package/require-author'?: Linter.RuleEntry<[]>
1337
+ /**
1338
+ * Requires the `description` property to be present.
1339
+ */
1340
+ 'json-package/require-description'?: Linter.RuleEntry<[]>
1341
+ /**
1342
+ * Requires the `engines` property to be present.
1343
+ */
1344
+ 'json-package/require-engines'?: Linter.RuleEntry<[]>
1329
1345
  /**
1330
1346
  * Requires the `files` property to be present.
1331
1347
  */
@@ -1338,10 +1354,18 @@ interface RuleOptions {
1338
1354
  * Requires the `name` property to be present.
1339
1355
  */
1340
1356
  'json-package/require-name'?: Linter.RuleEntry<[]>
1357
+ /**
1358
+ * Requires the `types` property to be present.
1359
+ */
1360
+ 'json-package/require-types'?: Linter.RuleEntry<[]>
1341
1361
  /**
1342
1362
  * Requires the `version` property to be present.
1343
1363
  */
1344
1364
  'json-package/require-version'?: Linter.RuleEntry<[]>
1365
+ /**
1366
+ * Restricts the range of dependencies to allow or disallow specific types of ranges.
1367
+ */
1368
+ 'json-package/restrict-dependency-ranges'?: Linter.RuleEntry<JsonPackageRestrictDependencyRanges>
1345
1369
  /**
1346
1370
  * Dependencies, scripts, and configuration values must be declared in alphabetical order.
1347
1371
  */
@@ -2528,7 +2552,7 @@ interface RuleOptions {
2528
2552
  * Disallow identifiers from shadowing restricted names
2529
2553
  * @see https://eslint.org/docs/latest/rules/no-shadow-restricted-names
2530
2554
  */
2531
- 'no-shadow-restricted-names'?: Linter.RuleEntry<[]>
2555
+ 'no-shadow-restricted-names'?: Linter.RuleEntry<NoShadowRestrictedNames>
2532
2556
  /**
2533
2557
  * Disallow spacing between function identifiers and their applications (deprecated)
2534
2558
  * @see https://eslint.org/docs/latest/rules/no-spaced-func
@@ -3193,468 +3217,528 @@ interface RuleOptions {
3193
3217
  */
3194
3218
  radix?: Linter.RuleEntry<Radix>
3195
3219
  /**
3196
- * report all class components, including anonymous ones
3220
+ * Reports all class components.
3197
3221
  * @see https://eslint-react.xyz/docs/rules/debug-class-component
3198
3222
  */
3199
3223
  'react-debug/class-component'?: Linter.RuleEntry<[]>
3200
3224
  /**
3201
- * report all function components, including anonymous ones
3225
+ * Reports all function components.
3202
3226
  * @see https://eslint-react.xyz/docs/rules/debug-function-component
3203
3227
  */
3204
3228
  'react-debug/function-component'?: Linter.RuleEntry<[]>
3205
3229
  /**
3206
- * report all React Hooks
3230
+ * Reports all React Hooks.
3207
3231
  * @see https://eslint-react.xyz/docs/rules/debug-hook
3208
3232
  */
3209
3233
  'react-debug/hook'?: Linter.RuleEntry<[]>
3210
3234
  /**
3211
- * report all identifiers that are initialized from React.
3235
+ * Reports all identifiers that are initialized from React.
3212
3236
  * @see https://eslint-react.xyz/docs/rules/debug-is-from-react
3213
3237
  */
3214
3238
  'react-debug/is-from-react'?: Linter.RuleEntry<[]>
3215
3239
  /**
3216
- * report all React Hooks
3240
+ * Reports all JSX elements and fragments.
3241
+ * @see https://eslint-react.xyz/docs/rules/debug-jsx
3242
+ */
3243
+ 'react-debug/jsx'?: Linter.RuleEntry<[]>
3244
+ /**
3245
+ * Reports all React Hooks.
3217
3246
  * @see https://eslint-react.xyz/docs/rules/debug-hook
3218
3247
  */
3219
3248
  'react-debug/react-hooks'?: Linter.RuleEntry<[]>
3220
3249
  /**
3221
- * disallow void elements (AKA self-closing elements) from having children
3250
+ * Disallow `children` in void DOM elements.
3222
3251
  * @see https://eslint-react.xyz/docs/rules/dom-no-void-elements-with-children
3223
3252
  */
3224
3253
  'react-dom/no-children-in-void-dom-elements'?: Linter.RuleEntry<[]>
3225
3254
  /**
3226
- * disallow when a DOM component is using 'dangerouslySetInnerHTML'
3255
+ * Disallow `dangerouslySetInnerHTML`.
3227
3256
  * @see https://eslint-react.xyz/docs/rules/dom-no-dangerously-set-innerhtml
3228
3257
  */
3229
3258
  'react-dom/no-dangerously-set-innerhtml'?: Linter.RuleEntry<[]>
3230
3259
  /**
3231
- * disallow when a DOM component is using both 'children' and 'dangerouslySetInnerHTML'
3260
+ * Disallow `dangerouslySetInnerHTML` and `children` at the same time.
3232
3261
  * @see https://eslint-react.xyz/docs/rules/dom-no-dangerously-set-innerhtml-with-children
3233
3262
  */
3234
3263
  'react-dom/no-dangerously-set-innerhtml-with-children'?: Linter.RuleEntry<[]>
3235
3264
  /**
3236
- * disallow 'findDOMNode'
3265
+ * Disallow `findDOMNode`.
3237
3266
  * @see https://eslint-react.xyz/docs/rules/dom-no-find-dom-node
3238
3267
  */
3239
3268
  'react-dom/no-find-dom-node'?: Linter.RuleEntry<[]>
3240
3269
  /**
3241
- * warns against using `flushSync`
3270
+ * Disallow `flushSync`.
3242
3271
  * @see https://eslint-react.xyz/docs/rules/dom-no-flush-sync
3243
3272
  */
3244
3273
  'react-dom/no-flush-sync'?: Linter.RuleEntry<[]>
3245
3274
  /**
3246
- * enforce that button component have an explicit 'type' attribute
3275
+ * Replaces usages of `ReactDom.hydrate()` with `hydrateRoot()`.
3276
+ * @see https://eslint-react.xyz/docs/rules/dom-no-hydrate
3277
+ */
3278
+ 'react-dom/no-hydrate'?: Linter.RuleEntry<[]>
3279
+ /**
3280
+ * Enforces explicit `type` attribute for `button` elements.
3247
3281
  * @see https://eslint-react.xyz/docs/rules/dom-no-missing-button-type
3248
3282
  */
3249
3283
  'react-dom/no-missing-button-type'?: Linter.RuleEntry<[]>
3250
3284
  /**
3251
- * enforce that 'iframe' component have an explicit 'sandbox' attribute
3285
+ * Enforces explicit `sandbox` attribute for `iframe` elements.
3252
3286
  * @see https://eslint-react.xyz/docs/rules/dom-no-missing-iframe-sandbox
3253
3287
  */
3254
3288
  'react-dom/no-missing-iframe-sandbox'?: Linter.RuleEntry<[]>
3255
3289
  /**
3256
- * enforce that namespaces are not used in React elements
3290
+ * Enforces the absence of a `namespace` in React elements.
3257
3291
  * @see https://eslint-react.xyz/docs/rules/dom-no-namespace
3258
3292
  */
3259
3293
  'react-dom/no-namespace'?: Linter.RuleEntry<[]>
3260
3294
  /**
3261
- * disallow usage of the return value of 'ReactDOM.render'
3295
+ * Replaces usages of `ReactDom.render()` with `createRoot(node).render()`.
3296
+ * @see https://eslint-react.xyz/docs/rules/dom-no-render
3297
+ */
3298
+ 'react-dom/no-render'?: Linter.RuleEntry<[]>
3299
+ /**
3300
+ * Disallow the return value of `ReactDOM.render`.
3262
3301
  * @see https://eslint-react.xyz/docs/rules/dom-no-render-return-value
3263
3302
  */
3264
3303
  'react-dom/no-render-return-value'?: Linter.RuleEntry<[]>
3265
3304
  /**
3266
- * disallow 'javascript:' URLs as JSX event handler prop's value
3305
+ * Disallow `javascript:` URLs as attribute values.
3267
3306
  * @see https://eslint-react.xyz/docs/rules/dom-no-script-url
3268
3307
  */
3269
3308
  'react-dom/no-script-url'?: Linter.RuleEntry<[]>
3270
3309
  /**
3271
- * disallow usage of unknown DOM property
3310
+ * Disallow unknown `DOM` property.
3272
3311
  * @see https://eslint-react.xyz/docs/rules/dom-no-unknown-property
3273
3312
  */
3274
3313
  'react-dom/no-unknown-property'?: Linter.RuleEntry<ReactDomNoUnknownProperty>
3275
3314
  /**
3276
- * disallow unsafe iframe 'sandbox' attribute combinations
3315
+ * Enforces `sandbox` attribute for `iframe` elements is not set to unsafe combinations.
3277
3316
  * @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-iframe-sandbox
3278
3317
  */
3279
3318
  'react-dom/no-unsafe-iframe-sandbox'?: Linter.RuleEntry<[]>
3280
3319
  /**
3281
- * disallow 'target="_blank"' on an external link without 'rel="noreferrer noopener"'
3320
+ * Disallow `target="_blank"` without `rel="noreferrer noopener"`.
3282
3321
  * @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-target-blank
3283
3322
  */
3284
3323
  'react-dom/no-unsafe-target-blank'?: Linter.RuleEntry<[]>
3285
3324
  /**
3286
- * disallow void elements (AKA self-closing elements) from having children
3325
+ * Replaces usages of `useFormState` with `useActionState`.
3326
+ * @see https://eslint-react.xyz/docs/rules/dom-no-use-form-state
3327
+ */
3328
+ 'react-dom/no-use-form-state'?: Linter.RuleEntry<[]>
3329
+ /**
3330
+ * Disallow `children` in void DOM elements.
3287
3331
  * @see https://eslint-react.xyz/docs/rules/dom-no-void-elements-with-children
3288
3332
  */
3289
3333
  'react-dom/no-void-elements-with-children'?: Linter.RuleEntry<[]>
3290
3334
  /**
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
3335
+ * Enforces that a function with the `use` prefix should use at least one Hook inside of it.
3336
+ * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-prefix
3293
3337
  */
3294
3338
  'react-hooks-extra/ensure-custom-hooks-using-other-hooks'?: Linter.RuleEntry<[]>
3295
3339
  /**
3296
- * disallow unnecessary usage of 'useCallback'
3340
+ * Disallow unnecessary usage of `useCallback`.
3297
3341
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-callback
3298
3342
  */
3299
3343
  'react-hooks-extra/ensure-use-callback-has-non-empty-deps'?: Linter.RuleEntry<[]>
3300
3344
  /**
3301
- * disallow unnecessary usage of 'useMemo'
3345
+ * Disallow unnecessary usage of `useMemo`.
3302
3346
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-memo
3303
3347
  */
3304
3348
  'react-hooks-extra/ensure-use-memo-has-non-empty-deps'?: Linter.RuleEntry<[]>
3305
3349
  /**
3306
- * disallow direct calls to the 'set' function of 'useState' in 'useEffect'
3350
+ * Disallow direct calls to the `set` function of `useState` in `useEffect`.
3307
3351
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-effect
3308
3352
  */
3309
3353
  'react-hooks-extra/no-direct-set-state-in-use-effect'?: Linter.RuleEntry<[]>
3310
3354
  /**
3311
- * disallow direct calls to the 'set' function of 'useState' in 'useLayoutEffect'
3355
+ * Disallow direct calls to the `set` function of `useState` in `useLayoutEffect`.
3312
3356
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-direct-set-state-in-use-layout-effect
3313
3357
  */
3314
3358
  'react-hooks-extra/no-direct-set-state-in-use-layout-effect'?: Linter.RuleEntry<[]>
3315
3359
  /**
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
3360
+ * Enforces that a function with the `use` prefix should use at least one Hook inside of it.
3361
+ * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-prefix
3318
3362
  */
3319
3363
  'react-hooks-extra/no-redundant-custom-hook'?: Linter.RuleEntry<[]>
3320
3364
  /**
3321
- * disallow unnecessary usage of 'useCallback'
3365
+ * Disallow unnecessary usage of `useCallback`.
3322
3366
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-callback
3323
3367
  */
3324
3368
  'react-hooks-extra/no-unnecessary-use-callback'?: Linter.RuleEntry<[]>
3325
3369
  /**
3326
- * disallow unnecessary usage of 'useMemo'
3370
+ * Disallow unnecessary usage of `useMemo`.
3327
3371
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-memo
3328
3372
  */
3329
3373
  'react-hooks-extra/no-unnecessary-use-memo'?: Linter.RuleEntry<[]>
3330
3374
  /**
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
3375
+ * Enforces that a function with the `use` prefix should use at least one Hook inside of it.
3376
+ * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-prefix
3377
+ */
3378
+ 'react-hooks-extra/no-unnecessary-use-prefix'?: Linter.RuleEntry<[]>
3379
+ /**
3380
+ * Enforces that a function with the `use` prefix should use at least one Hook inside of it.
3381
+ * @see https://eslint-react.xyz/docs/rules/hooks-extra-no-unnecessary-use-prefix
3333
3382
  */
3334
3383
  'react-hooks-extra/no-useless-custom-hooks'?: Linter.RuleEntry<[]>
3335
3384
  /**
3336
- * disallow function calls in 'useState' that aren't wrapped in an initializer function
3385
+ * Enforces function calls made inside `useState` to be wrapped in an `initializer function`.
3337
3386
  * @see https://eslint-react.xyz/docs/rules/hooks-extra-prefer-use-state-lazy-initialization
3338
3387
  */
3339
3388
  'react-hooks-extra/prefer-use-state-lazy-initialization'?: Linter.RuleEntry<[]>
3340
3389
  /**
3341
- * enforce naming convention for components
3390
+ * Enforces naming conventions for components.
3342
3391
  * @see https://eslint-react.xyz/docs/rules/naming-convention-component-name
3343
3392
  */
3344
3393
  'react-naming-convention/component-name'?: Linter.RuleEntry<ReactNamingConventionComponentName>
3345
3394
  /**
3346
- * enforce context name to be a valid component name with the suffix 'Context'
3395
+ * Enforces context name to be a valid component name with the suffix `Context`.
3347
3396
  * @see https://eslint-react.xyz/docs/rules/naming-convention-context-name
3348
3397
  */
3349
3398
  'react-naming-convention/context-name'?: Linter.RuleEntry<[]>
3350
3399
  /**
3351
- * enforce naming convention for JSX filenames
3400
+ * Enforces consistent file naming conventions.
3352
3401
  * @see https://eslint-react.xyz/docs/rules/naming-convention-filename
3353
3402
  */
3354
3403
  'react-naming-convention/filename'?: Linter.RuleEntry<ReactNamingConventionFilename>
3355
3404
  /**
3356
- * enforce naming convention for JSX file extensions
3405
+ * Enforces consistent file naming conventions.
3357
3406
  * @see https://eslint-react.xyz/docs/rules/naming-convention-filename-extension
3358
3407
  */
3359
3408
  'react-naming-convention/filename-extension'?: Linter.RuleEntry<ReactNamingConventionFilenameExtension>
3360
3409
  /**
3361
- * enforce destructuring and symmetric naming of 'useState' hook value and setter
3410
+ * Enforces destructuring and symmetric naming of `useState` hook value and setter.
3362
3411
  * @see https://eslint-react.xyz/docs/rules/naming-convention-use-state
3363
3412
  */
3364
3413
  'react-naming-convention/use-state'?: Linter.RuleEntry<[]>
3365
3414
  /**
3366
- * enforce that every 'addEventListener' in a component or custom Hook has a corresponding 'removeEventListener'.
3415
+ * Prevents leaked `addEventListener` in a component or custom Hook.
3367
3416
  * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-event-listener
3368
3417
  */
3369
3418
  'react-web-api/no-leaked-event-listener'?: Linter.RuleEntry<[]>
3370
3419
  /**
3371
- * enforce that every 'setInterval' in a component or custom Hook has a corresponding 'clearInterval'.
3420
+ * Prevents leaked `setInterval` in a component or custom Hook.
3372
3421
  * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-interval
3373
3422
  */
3374
3423
  'react-web-api/no-leaked-interval'?: Linter.RuleEntry<[]>
3375
3424
  /**
3376
- * enforce cleanup of 'ResizeObserver' instances in components and custom Hooks.
3425
+ * Prevents leaked `ResizeObserver` in a component or custom Hook.
3377
3426
  * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-resize-observer
3378
3427
  */
3379
3428
  'react-web-api/no-leaked-resize-observer'?: Linter.RuleEntry<[]>
3380
3429
  /**
3381
- * enforce that every 'setTimeout' in a component or custom Hook has a corresponding 'clearTimeout'.
3430
+ * Prevents leaked `setTimeout` in a component or custom Hook.
3382
3431
  * @see https://eslint-react.xyz/docs/rules/web-api-no-leaked-timeout
3383
3432
  */
3384
3433
  'react-web-api/no-leaked-timeout'?: Linter.RuleEntry<[]>
3385
3434
  /**
3386
- * disallow using shorthand boolean attributes
3435
+ * Enforces explicit boolean values for boolean attributes.
3387
3436
  * @see https://eslint-react.xyz/docs/rules/avoid-shorthand-boolean
3388
3437
  */
3389
3438
  'react/avoid-shorthand-boolean'?: Linter.RuleEntry<[]>
3390
3439
  /**
3391
- * disallow using shorthand fragment syntax
3440
+ * Enforces explicit `<Fragment>` components instead of the shorthand `<>` or `</>` syntax.
3392
3441
  * @see https://eslint-react.xyz/docs/rules/avoid-shorthand-fragment
3393
3442
  */
3394
3443
  'react/avoid-shorthand-fragment'?: Linter.RuleEntry<[]>
3395
3444
  /**
3396
- * require a 'ref' parameter to be set when using 'forwardRef'
3397
- * @see https://eslint-react.xyz/docs/rules/ensure-forward-ref-using-ref
3445
+ * Disallow useless `forwardRef` calls on components that don't use `ref`s.
3446
+ * @see https://eslint-react.xyz/docs/rules/no-useless-forward-ref
3398
3447
  */
3399
3448
  'react/ensure-forward-ref-using-ref'?: Linter.RuleEntry<[]>
3400
3449
  /**
3401
- * disallow duplicate props
3402
- * @see https://eslint-react.xyz/docs/rules/no-duplicate-jsx-props
3450
+ * Enforces that the 'key' attribute is placed before the spread attribute in JSX elements.
3451
+ * @see https://eslint-react.xyz/docs/rules/jsx-key-before-spread
3452
+ */
3453
+ 'react/jsx-key-before-spread'?: Linter.RuleEntry<[]>
3454
+ /**
3455
+ * Disallow duplicate props in JSX elements.
3456
+ * @see https://eslint-react.xyz/docs/rules/jsx-no-duplicate-props
3403
3457
  */
3404
3458
  'react/jsx-no-duplicate-props'?: Linter.RuleEntry<[]>
3405
3459
  /**
3406
- * marks variables used in JSX as used
3407
- * @see https://eslint-react.xyz/docs/rules/use-jsx-vars
3460
+ * Disallow undefined variables in JSX.
3461
+ * @see https://eslint-react.xyz/docs/rules/jsx-no-undef
3462
+ */
3463
+ 'react/jsx-no-undef'?: Linter.RuleEntry<[]>
3464
+ /**
3465
+ * Marks React variables as used when JSX is used.
3466
+ * @see https://eslint-react.xyz/docs/rules/jsx-uses-react
3467
+ */
3468
+ 'react/jsx-uses-react'?: Linter.RuleEntry<[]>
3469
+ /**
3470
+ * Marks variables used in JSX elements as used.
3471
+ * @see https://eslint-react.xyz/docs/rules/jsx-uses-vars
3408
3472
  */
3409
3473
  'react/jsx-uses-vars'?: Linter.RuleEntry<[]>
3410
3474
  /**
3411
- * disallow accessing 'this.state' within 'setState'
3475
+ * Disallow accessing `this.state` inside `setState` calls.
3412
3476
  * @see https://eslint-react.xyz/docs/rules/no-access-state-in-setstate
3413
3477
  */
3414
3478
  'react/no-access-state-in-setstate'?: Linter.RuleEntry<[]>
3415
3479
  /**
3416
- * disallow using an item's index in the array as its key
3480
+ * Disallow an item's index in the array as its key.
3417
3481
  * @see https://eslint-react.xyz/docs/rules/no-array-index-key
3418
3482
  */
3419
3483
  'react/no-array-index-key'?: Linter.RuleEntry<[]>
3420
3484
  /**
3421
- * disallow using 'Children.count'
3485
+ * Disallow `Children.count`.
3422
3486
  * @see https://eslint-react.xyz/docs/rules/no-children-count
3423
3487
  */
3424
3488
  'react/no-children-count'?: Linter.RuleEntry<[]>
3425
3489
  /**
3426
- * disallow using 'Children.forEach'
3490
+ * Disallow 'Children.forEach'.
3427
3491
  * @see https://eslint-react.xyz/docs/rules/no-children-for-each
3428
3492
  */
3429
3493
  'react/no-children-for-each'?: Linter.RuleEntry<[]>
3430
3494
  /**
3431
- * disallow using 'Children.map'
3495
+ * Disallow `Children.map`.
3432
3496
  * @see https://eslint-react.xyz/docs/rules/no-children-map
3433
3497
  */
3434
3498
  'react/no-children-map'?: Linter.RuleEntry<[]>
3435
3499
  /**
3436
- * disallow using 'Children.only'
3500
+ * Disallow `Children.only`.
3437
3501
  * @see https://eslint-react.xyz/docs/rules/no-children-only
3438
3502
  */
3439
3503
  'react/no-children-only'?: Linter.RuleEntry<[]>
3440
3504
  /**
3441
- * disallow passing 'children' as props
3505
+ * Disallow passing `children` as a prop.
3442
3506
  * @see https://eslint-react.xyz/docs/rules/no-children-prop
3443
3507
  */
3444
3508
  'react/no-children-prop'?: Linter.RuleEntry<[]>
3445
3509
  /**
3446
- * disallow using 'Children.toArray'
3510
+ * Disallow `Children.toArray`.
3447
3511
  * @see https://eslint-react.xyz/docs/rules/no-children-to-array
3448
3512
  */
3449
3513
  'react/no-children-to-array'?: Linter.RuleEntry<[]>
3450
3514
  /**
3451
- * disallow using class components
3515
+ * Disallow class components except for error boundaries.
3452
3516
  * @see https://eslint-react.xyz/docs/rules/no-class-component
3453
3517
  */
3454
3518
  'react/no-class-component'?: Linter.RuleEntry<[]>
3455
3519
  /**
3456
- * disallow using 'cloneElement'
3520
+ * Disallow `cloneElement`.
3457
3521
  * @see https://eslint-react.xyz/docs/rules/no-clone-element
3458
3522
  */
3459
3523
  'react/no-clone-element'?: Linter.RuleEntry<[]>
3460
3524
  /**
3461
- * disallow comments from being inserted as text nodes
3525
+ * Prevents comments from being inserted as text nodes.
3462
3526
  * @see https://eslint-react.xyz/docs/rules/no-comment-textnodes
3463
3527
  */
3464
3528
  'react/no-comment-textnodes'?: Linter.RuleEntry<[]>
3465
3529
  /**
3466
- * disallow complex conditional rendering
3530
+ * Disallow complex conditional rendering in JSX expressions.
3467
3531
  * @see https://eslint-react.xyz/docs/rules/no-complex-conditional-rendering
3468
3532
  */
3469
3533
  'react/no-complex-conditional-rendering'?: Linter.RuleEntry<[]>
3470
3534
  /**
3471
- * disallow complex conditional rendering
3535
+ * Disallow complex conditional rendering in JSX expressions.
3472
3536
  * @see https://eslint-react.xyz/docs/rules/no-complex-conditional-rendering
3473
3537
  */
3474
3538
  'react/no-complicated-conditional-rendering'?: Linter.RuleEntry<[]>
3475
3539
  /**
3476
- * replace 'componentWillMount' with 'UNSAFE_componentWillMount'
3540
+ * Replace usages of `componentWillMount` with `UNSAFE_componentWillMount`.
3477
3541
  * @see https://eslint-react.xyz/docs/rules/no-component-will-mount
3478
3542
  */
3479
3543
  'react/no-component-will-mount'?: Linter.RuleEntry<[]>
3480
3544
  /**
3481
- * replace 'componentWillReceiveProps' with 'UNSAFE_componentWillReceiveProps'
3545
+ * Replace usages of `componentWillReceiveProps` with `UNSAFE_componentWillReceiveProps`.
3482
3546
  * @see https://eslint-react.xyz/docs/rules/no-component-will-receive-props
3483
3547
  */
3484
3548
  'react/no-component-will-receive-props'?: Linter.RuleEntry<[]>
3485
3549
  /**
3486
- * replace 'componentWillUpdate' with 'UNSAFE_componentWillUpdate'
3550
+ * Replace usages of `componentWillUpdate` with `UNSAFE_componentWillUpdate`.
3487
3551
  * @see https://eslint-react.xyz/docs/rules/no-component-will-update
3488
3552
  */
3489
3553
  'react/no-component-will-update'?: Linter.RuleEntry<[]>
3490
3554
  /**
3491
- * replace '<Context.Provider>' with '<Context>'
3555
+ * Replace usages of `<Context.Provider>` with `<Context>`.
3492
3556
  * @see https://eslint-react.xyz/docs/rules/no-context-provider
3493
3557
  */
3494
3558
  'react/no-context-provider'?: Linter.RuleEntry<[]>
3495
3559
  /**
3496
- * disallow using 'createRef' in function components
3560
+ * Disallow `createRef` in function components.
3497
3561
  * @see https://eslint-react.xyz/docs/rules/no-create-ref
3498
3562
  */
3499
3563
  'react/no-create-ref'?: Linter.RuleEntry<[]>
3500
3564
  /**
3501
- * disallow using 'defaultProps' property in components
3565
+ * Disallow `defaultProps` property in favor of ES6 default parameters.
3502
3566
  * @see https://eslint-react.xyz/docs/rules/no-default-props
3503
3567
  */
3504
3568
  'react/no-default-props'?: Linter.RuleEntry<[]>
3505
3569
  /**
3506
- * disallow direct mutation of state
3570
+ * Disallow direct mutation of `this.state`.
3507
3571
  * @see https://eslint-react.xyz/docs/rules/no-direct-mutation-state
3508
3572
  */
3509
3573
  'react/no-direct-mutation-state'?: Linter.RuleEntry<[]>
3510
3574
  /**
3511
- * disallow duplicate props
3512
- * @see https://eslint-react.xyz/docs/rules/no-duplicate-jsx-props
3575
+ * Disallow duplicate props in JSX elements.
3576
+ * @see https://eslint-react.xyz/docs/rules/jsx-no-duplicate-props
3513
3577
  */
3514
3578
  'react/no-duplicate-jsx-props'?: Linter.RuleEntry<[]>
3515
3579
  /**
3516
- * disallow duplicate keys when rendering list
3580
+ * Disallow duplicate `key` on elements in the same array or a list of `children`.
3517
3581
  * @see https://eslint-react.xyz/docs/rules/no-duplicate-key
3518
3582
  */
3519
3583
  'react/no-duplicate-key'?: Linter.RuleEntry<[]>
3520
3584
  /**
3521
- * replace 'forwardRef' with passing 'ref' as a prop
3585
+ * Replaces usages of `forwardRef` with passing `ref` as a prop.
3522
3586
  * @see https://eslint-react.xyz/docs/rules/no-forward-ref
3523
3587
  */
3524
3588
  'react/no-forward-ref'?: Linter.RuleEntry<[]>
3525
3589
  /**
3526
- * disallow implicit 'key' props
3590
+ * Prevents `key` from not being explicitly specified (e.g. spreading `key` from objects).
3527
3591
  * @see https://eslint-react.xyz/docs/rules/no-implicit-key
3528
3592
  */
3529
3593
  'react/no-implicit-key'?: Linter.RuleEntry<[]>
3530
3594
  /**
3531
- * disallow problematic leaked values from being rendered
3595
+ * Prevents problematic leaked values from being rendered.
3532
3596
  * @see https://eslint-react.xyz/docs/rules/no-leaked-conditional-rendering
3533
3597
  */
3534
3598
  'react/no-leaked-conditional-rendering'?: Linter.RuleEntry<[]>
3535
3599
  /**
3536
- * require 'displayName' for 'memo' and 'forwardRef' components
3600
+ * Enforces that all components have a `displayName` which can be used in devtools.
3537
3601
  * @see https://eslint-react.xyz/docs/rules/no-missing-component-display-name
3538
3602
  */
3539
3603
  'react/no-missing-component-display-name'?: Linter.RuleEntry<[]>
3540
3604
  /**
3541
- * require 'displayName' for contexts.
3605
+ * Enforces that all contexts have a `displayName` which can be used in devtools.
3542
3606
  * @see https://eslint-react.xyz/docs/rules/no-missing-context-display-name
3543
3607
  */
3544
3608
  'react/no-missing-context-display-name'?: Linter.RuleEntry<[]>
3545
3609
  /**
3546
- * require 'key' when rendering list
3610
+ * Disallow missing `key` on items in list rendering.
3547
3611
  * @see https://eslint-react.xyz/docs/rules/no-missing-key
3548
3612
  */
3549
3613
  'react/no-missing-key'?: Linter.RuleEntry<[]>
3550
3614
  /**
3551
- * disallow using unstable nested components
3552
- * @see https://eslint-react.xyz/docs/rules/no-nested-components
3615
+ * Prevents incorrect usage of `captureOwnerStack`.
3616
+ * @see https://eslint-react.xyz/docs/rules/no-misused-capture-owner-stack
3617
+ */
3618
+ 'react/no-misused-capture-owner-stack'?: Linter.RuleEntry<[]>
3619
+ /**
3620
+ * Disallow nesting component definitions inside other components.
3621
+ * @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
3622
+ */
3623
+ 'react/no-nested-component-definitions'?: Linter.RuleEntry<[]>
3624
+ /**
3625
+ * Disallow nesting component definitions inside other components.
3626
+ * @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
3553
3627
  */
3554
3628
  'react/no-nested-components'?: Linter.RuleEntry<[]>
3555
3629
  /**
3556
- * disallow using 'propTypes' property in components
3630
+ * Disallow nesting lazy component declarations inside other components.
3631
+ * @see https://eslint-react.xyz/docs/rules/no-nested-component-definitions
3632
+ */
3633
+ 'react/no-nested-lazy-component-declarations'?: Linter.RuleEntry<[]>
3634
+ /**
3635
+ * Disallow `propTypes` in favor of TypeScript or another type-checking solution.
3557
3636
  * @see https://eslint-react.xyz/docs/rules/no-prop-types
3558
3637
  */
3559
3638
  'react/no-prop-types'?: Linter.RuleEntry<[]>
3560
3639
  /**
3561
- * disallow using 'shouldComponentUpdate' in class component extends 'React.PureComponent'
3640
+ * Disallow `shouldComponentUpdate` when extending `React.PureComponent`.
3562
3641
  * @see https://eslint-react.xyz/docs/rules/no-redundant-should-component-update
3563
3642
  */
3564
3643
  'react/no-redundant-should-component-update'?: Linter.RuleEntry<[]>
3565
3644
  /**
3566
- * disallow using 'setState' in 'componentDidMount'
3645
+ * Disallow calling `this.setState` in `componentDidMount` outside of functions, such as callbacks.
3567
3646
  * @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-did-mount
3568
3647
  */
3569
3648
  'react/no-set-state-in-component-did-mount'?: Linter.RuleEntry<[]>
3570
3649
  /**
3571
- * disallow using 'setState' in 'componentDidUpdate'
3650
+ * Disallow calling `this.setState` in `componentDidUpdate` outside of functions, such as callbacks.
3572
3651
  * @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-did-update
3573
3652
  */
3574
3653
  'react/no-set-state-in-component-did-update'?: Linter.RuleEntry<[]>
3575
3654
  /**
3576
- * disallow using 'setState' in 'componentWillUpdate'
3655
+ * Disallows calling `this.setState` in `componentWillUpdate` outside of functions, such as callbacks.
3577
3656
  * @see https://eslint-react.xyz/docs/rules/no-set-state-in-component-will-update
3578
3657
  */
3579
3658
  'react/no-set-state-in-component-will-update'?: Linter.RuleEntry<[]>
3580
3659
  /**
3581
- * disallow using deprecated string refs
3660
+ * Replaces string refs with callback refs.
3582
3661
  * @see https://eslint-react.xyz/docs/rules/no-string-refs
3583
3662
  */
3584
3663
  'react/no-string-refs'?: Linter.RuleEntry<[]>
3585
3664
  /**
3586
- * disallow using 'UNSAFE_componentWillMount'
3665
+ * Warns the usage of `UNSAFE_componentWillMount` in class components.
3587
3666
  * @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-mount
3588
3667
  */
3589
3668
  'react/no-unsafe-component-will-mount'?: Linter.RuleEntry<[]>
3590
3669
  /**
3591
- * disallow using 'UNSAFE_componentWillReceiveProps'
3670
+ * Warns the usage of `UNSAFE_componentWillReceiveProps` in class components.
3592
3671
  * @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-receive-props
3593
3672
  */
3594
3673
  'react/no-unsafe-component-will-receive-props'?: Linter.RuleEntry<[]>
3595
3674
  /**
3596
- * disallow using 'UNSAFE_componentWillUpdate'
3675
+ * Warns the usage of `UNSAFE_componentWillUpdate` in class components.
3597
3676
  * @see https://eslint-react.xyz/docs/rules/no-unsafe-component-will-update
3598
3677
  */
3599
3678
  'react/no-unsafe-component-will-update'?: Linter.RuleEntry<[]>
3600
3679
  /**
3601
- * disallow passing constructed values to context providers
3680
+ * Prevents non-stable values (i.e. object literals) from being used as a value for `Context.Provider`.
3602
3681
  * @see https://eslint-react.xyz/docs/rules/no-unstable-context-value
3603
3682
  */
3604
3683
  'react/no-unstable-context-value'?: Linter.RuleEntry<[]>
3605
3684
  /**
3606
- * disallow using unstable value as default param in function component
3685
+ * Prevents using referential-type values as default props in object destructuring.
3607
3686
  * @see https://eslint-react.xyz/docs/rules/no-unstable-default-props
3608
3687
  */
3609
3688
  'react/no-unstable-default-props'?: Linter.RuleEntry<[]>
3610
3689
  /**
3611
- * disallow unused class component members
3690
+ * Warns unused class component methods and properties.
3612
3691
  * @see https://eslint-react.xyz/docs/rules/no-unused-class-component-members
3613
3692
  */
3614
3693
  'react/no-unused-class-component-members'?: Linter.RuleEntry<[]>
3615
3694
  /**
3616
- * disallow unused state of class component
3695
+ * Warns unused class component state.
3617
3696
  * @see https://eslint-react.xyz/docs/rules/no-unused-state
3618
3697
  */
3619
3698
  'react/no-unused-state'?: Linter.RuleEntry<[]>
3620
3699
  /**
3621
- * replace 'useContext' with 'use'
3700
+ * Replaces usages of `useContext` with `use`.
3622
3701
  * @see https://eslint-react.xyz/docs/rules/no-use-context
3623
3702
  */
3624
3703
  'react/no-use-context'?: Linter.RuleEntry<[]>
3625
3704
  /**
3626
- * disallow useless fragments
3705
+ * Disallow useless `forwardRef` calls on components that don't use `ref`s.
3706
+ * @see https://eslint-react.xyz/docs/rules/no-useless-forward-ref
3707
+ */
3708
+ 'react/no-useless-forward-ref'?: Linter.RuleEntry<[]>
3709
+ /**
3710
+ * Disallow useless fragment elements.
3627
3711
  * @see https://eslint-react.xyz/docs/rules/no-useless-fragment
3628
3712
  */
3629
3713
  'react/no-useless-fragment'?: Linter.RuleEntry<ReactNoUselessFragment>
3630
3714
  /**
3631
- * enforce using destructuring assignment in component props and context
3715
+ * Enforces destructuring assignment for component props and context.
3632
3716
  * @see https://eslint-react.xyz/docs/rules/prefer-destructuring-assignment
3633
3717
  */
3634
3718
  'react/prefer-destructuring-assignment'?: Linter.RuleEntry<[]>
3635
3719
  /**
3636
- * enforce React is imported via a namespace import
3720
+ * Enforces React is imported via a namespace import.
3637
3721
  * @see https://eslint-react.xyz/docs/rules/prefer-react-namespace-import
3638
3722
  */
3639
3723
  'react/prefer-react-namespace-import'?: Linter.RuleEntry<[]>
3640
3724
  /**
3641
- * enforce read-only props in components
3725
+ * Enforces read-only props in components.
3642
3726
  * @see https://eslint-react.xyz/docs/rules/prefer-read-only-props
3643
3727
  */
3644
3728
  'react/prefer-read-only-props'?: Linter.RuleEntry<[]>
3645
3729
  /**
3646
- * enforce the use of shorthand syntax for boolean attributes
3730
+ * Enforces shorthand syntax for boolean attributes.
3647
3731
  * @see https://eslint-react.xyz/docs/rules/prefer-shorthand-boolean
3648
3732
  */
3649
3733
  'react/prefer-shorthand-boolean'?: Linter.RuleEntry<[]>
3650
3734
  /**
3651
- * enforce the use of shorthand syntax for fragments
3735
+ * Enforces shorthand syntax for fragments.
3652
3736
  * @see https://eslint-react.xyz/docs/rules/prefer-shorthand-fragment
3653
3737
  */
3654
3738
  'react/prefer-shorthand-fragment'?: Linter.RuleEntry<[]>
3655
3739
  /**
3656
- * marks variables used in JSX as used
3657
- * @see https://eslint-react.xyz/docs/rules/use-jsx-vars
3740
+ * Marks variables used in JSX elements as used.
3741
+ * @see https://eslint-react.xyz/docs/rules/jsx-uses-vars
3658
3742
  */
3659
3743
  'react/use-jsx-vars'?: Linter.RuleEntry<[]>
3660
3744
  /**
@@ -4410,11 +4494,21 @@ interface RuleOptions {
4410
4494
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-unknown-style-directive-property/
4411
4495
  */
4412
4496
  'svelte/no-unknown-style-directive-property'?: Linter.RuleEntry<SvelteNoUnknownStyleDirectiveProperty>
4497
+ /**
4498
+ * Disallow unnecessary $state wrapping of reactive classes
4499
+ * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-unnecessary-state-wrap/
4500
+ */
4501
+ 'svelte/no-unnecessary-state-wrap'?: Linter.RuleEntry<SvelteNoUnnecessaryStateWrap>
4413
4502
  /**
4414
4503
  * disallow the use of a class in the template without a corresponding style
4415
4504
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-unused-class-name/
4416
4505
  */
4417
4506
  'svelte/no-unused-class-name'?: Linter.RuleEntry<SvelteNoUnusedClassName>
4507
+ /**
4508
+ * Warns about defined Props properties that are unused
4509
+ * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-unused-props/
4510
+ */
4511
+ 'svelte/no-unused-props'?: Linter.RuleEntry<SvelteNoUnusedProps>
4418
4512
  /**
4419
4513
  * disallow unused svelte-ignore comments
4420
4514
  * @see https://sveltejs.github.io/eslint-plugin-svelte/rules/no-unused-svelte-ignore/
@@ -4670,7 +4764,7 @@ interface RuleOptions {
4670
4764
  */
4671
4765
  'test/no-standalone-expect'?: Linter.RuleEntry<TestNoStandaloneExpect>
4672
4766
  /**
4673
- * disallow using `test` as a prefix
4767
+ * Disallow using the `f` and `x` prefixes in favour of `.only` and `.skip`
4674
4768
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-prefixes.md
4675
4769
  */
4676
4770
  'test/no-test-prefixes'?: Linter.RuleEntry<[]>
@@ -4729,6 +4823,11 @@ interface RuleOptions {
4729
4823
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-comparison-matcher.md
4730
4824
  */
4731
4825
  'test/prefer-comparison-matcher'?: Linter.RuleEntry<[]>
4826
+ /**
4827
+ * enforce using a function as a describe title over an equivalent string
4828
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-describe-function-title.md
4829
+ */
4830
+ 'test/prefer-describe-function-title'?: Linter.RuleEntry<[]>
4732
4831
  /**
4733
4832
  * enforce using `each` rather than manual loops
4734
4833
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-each.md
@@ -5363,6 +5462,11 @@ interface RuleOptions {
5363
5462
  * @see https://typescript-eslint.io/rules/no-unnecessary-type-constraint
5364
5463
  */
5365
5464
  'ts/no-unnecessary-type-constraint'?: Linter.RuleEntry<[]>
5465
+ /**
5466
+ * Disallow conversion idioms when they do not change the type or value of the expression
5467
+ * @see https://typescript-eslint.io/rules/no-unnecessary-type-conversion
5468
+ */
5469
+ 'ts/no-unnecessary-type-conversion'?: Linter.RuleEntry<[]>
5366
5470
  /**
5367
5471
  * Disallow type parameters that aren't used multiple times
5368
5472
  * @see https://typescript-eslint.io/rules/no-unnecessary-type-parameters
@@ -5648,642 +5752,670 @@ interface RuleOptions {
5648
5752
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
5649
5753
  /**
5650
5754
  * 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
5755
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/better-regex.md
5652
5756
  */
5653
5757
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
5654
5758
  /**
5655
5759
  * 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
5760
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/catch-error-name.md
5657
5761
  */
5658
5762
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
5659
5763
  /**
5660
5764
  * 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
5765
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-assert.md
5662
5766
  */
5663
5767
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
5664
5768
  /**
5665
5769
  * 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
5770
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-date-clone.md
5667
5771
  */
5668
5772
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
5669
5773
  /**
5670
5774
  * Use destructured variables over properties.
5671
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/consistent-destructuring.md
5775
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-destructuring.md
5672
5776
  */
5673
5777
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
5674
5778
  /**
5675
5779
  * 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
5780
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-empty-array-spread.md
5677
5781
  */
5678
5782
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
5679
5783
  /**
5680
5784
  * 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
5785
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-existence-index-check.md
5682
5786
  */
5683
5787
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
5684
5788
  /**
5685
5789
  * 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
5790
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-function-scoping.md
5687
5791
  */
5688
5792
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
5689
5793
  /**
5690
5794
  * Enforce correct `Error` subclassing.
5691
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/custom-error-definition.md
5795
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/custom-error-definition.md
5692
5796
  */
5693
5797
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
5694
5798
  /**
5695
5799
  * Enforce no spaces between braces.
5696
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/empty-brace-spaces.md
5800
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/empty-brace-spaces.md
5697
5801
  */
5698
5802
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
5699
5803
  /**
5700
5804
  * 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
5805
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/error-message.md
5702
5806
  */
5703
5807
  'unicorn/error-message'?: Linter.RuleEntry<[]>
5704
5808
  /**
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
5809
+ * Require escape sequences to use uppercase or lowercase values.
5810
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/escape-case.md
5707
5811
  */
5708
- 'unicorn/escape-case'?: Linter.RuleEntry<[]>
5812
+ 'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>
5709
5813
  /**
5710
5814
  * 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
5815
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/expiring-todo-comments.md
5712
5816
  */
5713
5817
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
5714
5818
  /**
5715
5819
  * 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
5820
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/explicit-length-check.md
5717
5821
  */
5718
5822
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
5719
5823
  /**
5720
5824
  * Enforce a case style for filenames.
5721
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/filename-case.md
5825
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/filename-case.md
5722
5826
  */
5723
5827
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
5724
5828
  /**
5725
5829
  * Enforce specific import styles per module.
5726
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/import-style.md
5830
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/import-style.md
5727
5831
  */
5728
5832
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
5729
5833
  /**
5730
5834
  * 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
5835
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/new-for-builtins.md
5732
5836
  */
5733
5837
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
5734
5838
  /**
5735
5839
  * 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
5840
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-abusive-eslint-disable.md
5737
5841
  */
5738
5842
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
5739
5843
  /**
5740
5844
  * 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
5845
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-accessor-recursion.md
5742
5846
  */
5743
5847
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
5744
5848
  /**
5745
5849
  * 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
5850
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-anonymous-default-export.md
5747
5851
  */
5748
5852
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
5749
5853
  /**
5750
5854
  * 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
5855
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-callback-reference.md
5752
5856
  */
5753
5857
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
5754
5858
  /**
5755
5859
  * 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
5860
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-for-each.md
5757
5861
  */
5758
5862
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
5759
5863
  /**
5760
5864
  * 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
5865
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-method-this-argument.md
5762
5866
  */
5763
5867
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
5764
5868
  /**
5765
- * 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
5869
+ * Replaced by `unicorn/prefer-single-call` which covers more cases.
5870
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-array-push-push
5871
+ * @deprecated
5767
5872
  */
5768
- 'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>
5873
+ 'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>
5769
5874
  /**
5770
5875
  * 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
5876
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-reduce.md
5772
5877
  */
5773
5878
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
5774
5879
  /**
5775
5880
  * 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
5881
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-await-expression-member.md
5777
5882
  */
5778
5883
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
5779
5884
  /**
5780
5885
  * 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
5886
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-await-in-promise-methods.md
5782
5887
  */
5783
5888
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
5784
5889
  /**
5785
5890
  * 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
5891
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-console-spaces.md
5787
5892
  */
5788
5893
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
5789
5894
  /**
5790
5895
  * 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
5896
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-document-cookie.md
5792
5897
  */
5793
5898
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
5794
5899
  /**
5795
5900
  * Disallow empty files.
5796
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-empty-file.md
5901
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-empty-file.md
5797
5902
  */
5798
5903
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
5799
5904
  /**
5800
5905
  * 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
5906
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-for-loop.md
5802
5907
  */
5803
5908
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
5804
5909
  /**
5805
5910
  * 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
5911
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-hex-escape.md
5807
5912
  */
5808
5913
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
5809
5914
  /**
5810
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/deprecated-rules.md#no-instanceof-array
5915
+ * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
5916
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-instanceof-array
5811
5917
  * @deprecated
5812
5918
  */
5813
5919
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
5814
5920
  /**
5815
5921
  * 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
5922
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-instanceof-builtins.md
5817
5923
  */
5818
5924
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
5819
5925
  /**
5820
5926
  * 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
5927
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-invalid-fetch-options.md
5822
5928
  */
5823
5929
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
5824
5930
  /**
5825
5931
  * 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
5932
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-invalid-remove-event-listener.md
5827
5933
  */
5828
5934
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
5829
5935
  /**
5830
5936
  * 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
5937
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-keyword-prefix.md
5832
5938
  */
5833
5939
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
5834
5940
  /**
5835
- * 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
5941
+ * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
5942
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-length-as-slice-end
5943
+ * @deprecated
5837
5944
  */
5838
5945
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
5839
5946
  /**
5840
5947
  * 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
5948
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-lonely-if.md
5842
5949
  */
5843
5950
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
5844
5951
  /**
5845
5952
  * 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
5953
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-magic-array-flat-depth.md
5847
5954
  */
5848
5955
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
5849
5956
  /**
5850
5957
  * 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
5958
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-named-default.md
5852
5959
  */
5853
5960
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>
5854
5961
  /**
5855
5962
  * Disallow negated conditions.
5856
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-negated-condition.md
5963
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-negated-condition.md
5857
5964
  */
5858
5965
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
5859
5966
  /**
5860
5967
  * 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
5968
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-negation-in-equality-check.md
5862
5969
  */
5863
5970
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
5864
5971
  /**
5865
5972
  * Disallow nested ternary expressions.
5866
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-nested-ternary.md
5973
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-nested-ternary.md
5867
5974
  */
5868
5975
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
5869
5976
  /**
5870
5977
  * Disallow `new Array()`.
5871
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-new-array.md
5978
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-new-array.md
5872
5979
  */
5873
5980
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
5874
5981
  /**
5875
5982
  * 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
5983
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-new-buffer.md
5877
5984
  */
5878
5985
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
5879
5986
  /**
5880
5987
  * 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
5988
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-null.md
5882
5989
  */
5883
5990
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
5884
5991
  /**
5885
5992
  * 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
5993
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-object-as-default-parameter.md
5887
5994
  */
5888
5995
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
5889
5996
  /**
5890
5997
  * Disallow `process.exit()`.
5891
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-process-exit.md
5998
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-process-exit.md
5892
5999
  */
5893
6000
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
5894
6001
  /**
5895
6002
  * 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
6003
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-single-promise-in-promise-methods.md
5897
6004
  */
5898
6005
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
5899
6006
  /**
5900
6007
  * 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
6008
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-static-only-class.md
5902
6009
  */
5903
6010
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
5904
6011
  /**
5905
6012
  * Disallow `then` property.
5906
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-thenable.md
6013
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-thenable.md
5907
6014
  */
5908
6015
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
5909
6016
  /**
5910
6017
  * 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
6018
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-this-assignment.md
5912
6019
  */
5913
6020
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
5914
6021
  /**
5915
6022
  * Disallow comparing `undefined` using `typeof`.
5916
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-typeof-undefined.md
6023
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-typeof-undefined.md
5917
6024
  */
5918
6025
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
6026
+ /**
6027
+ * Disallow using `1` as the `depth` argument of `Array#flat()`.
6028
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-array-flat-depth.md
6029
+ */
6030
+ 'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>
6031
+ /**
6032
+ * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
6033
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-array-splice-count.md
6034
+ */
6035
+ 'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>
5919
6036
  /**
5920
6037
  * Disallow awaiting non-promise values.
5921
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unnecessary-await.md
6038
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-await.md
5922
6039
  */
5923
6040
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
5924
6041
  /**
5925
6042
  * 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
6043
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-polyfills.md
5927
6044
  */
5928
6045
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
6046
+ /**
6047
+ * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
6048
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-slice-end.md
6049
+ */
6050
+ 'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>
5929
6051
  /**
5930
6052
  * Disallow unreadable array destructuring.
5931
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-array-destructuring.md
6053
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unreadable-array-destructuring.md
5932
6054
  */
5933
6055
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
5934
6056
  /**
5935
6057
  * Disallow unreadable IIFEs.
5936
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unreadable-iife.md
6058
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unreadable-iife.md
5937
6059
  */
5938
6060
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
5939
6061
  /**
5940
6062
  * Disallow unused object properties.
5941
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-unused-properties.md
6063
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unused-properties.md
5942
6064
  */
5943
6065
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
5944
6066
  /**
5945
6067
  * 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
6068
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-fallback-in-spread.md
5947
6069
  */
5948
6070
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
5949
6071
  /**
5950
6072
  * 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
6073
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-length-check.md
5952
6074
  */
5953
6075
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
5954
6076
  /**
5955
6077
  * 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
6078
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-promise-resolve-reject.md
5957
6079
  */
5958
6080
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
5959
6081
  /**
5960
6082
  * Disallow unnecessary spread.
5961
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-spread.md
6083
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-spread.md
5962
6084
  */
5963
6085
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
5964
6086
  /**
5965
6087
  * 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
6088
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-switch-case.md
5967
6089
  */
5968
6090
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
5969
6091
  /**
5970
6092
  * Disallow useless `undefined`.
5971
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/no-useless-undefined.md
6093
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-undefined.md
5972
6094
  */
5973
6095
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
5974
6096
  /**
5975
6097
  * 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
6098
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-zero-fractions.md
5977
6099
  */
5978
6100
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
5979
6101
  /**
5980
6102
  * 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
6103
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/number-literal-case.md
5982
6104
  */
5983
- 'unicorn/number-literal-case'?: Linter.RuleEntry<[]>
6105
+ 'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>
5984
6106
  /**
5985
6107
  * 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
6108
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/numeric-separators-style.md
5987
6109
  */
5988
6110
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
5989
6111
  /**
5990
6112
  * 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
6113
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-add-event-listener.md
5992
6114
  */
5993
6115
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
5994
6116
  /**
5995
6117
  * 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
6118
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-find.md
5997
6119
  */
5998
6120
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
5999
6121
  /**
6000
6122
  * 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
6123
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-flat.md
6002
6124
  */
6003
6125
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
6004
6126
  /**
6005
6127
  * 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
6128
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-flat-map.md
6007
6129
  */
6008
6130
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
6009
6131
  /**
6010
6132
  * 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
6133
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-index-of.md
6012
6134
  */
6013
6135
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
6014
6136
  /**
6015
6137
  * 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
6138
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-some.md
6017
6139
  */
6018
6140
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
6019
6141
  /**
6020
6142
  * 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
6143
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-at.md
6022
6144
  */
6023
6145
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
6024
6146
  /**
6025
6147
  * 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
6148
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-blob-reading-methods.md
6027
6149
  */
6028
6150
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
6029
6151
  /**
6030
6152
  * 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
6153
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-code-point.md
6032
6154
  */
6033
6155
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
6034
6156
  /**
6035
6157
  * 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
6158
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-date-now.md
6037
6159
  */
6038
6160
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
6039
6161
  /**
6040
6162
  * Prefer default parameters over reassignment.
6041
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-default-parameters.md
6163
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-default-parameters.md
6042
6164
  */
6043
6165
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
6044
6166
  /**
6045
6167
  * 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
6168
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-append.md
6047
6169
  */
6048
6170
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
6049
6171
  /**
6050
6172
  * 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
6173
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-dataset.md
6052
6174
  */
6053
6175
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
6054
6176
  /**
6055
6177
  * 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
6178
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-remove.md
6057
6179
  */
6058
6180
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
6059
6181
  /**
6060
6182
  * 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
6183
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-text-content.md
6062
6184
  */
6063
6185
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
6064
6186
  /**
6065
6187
  * Prefer `EventTarget` over `EventEmitter`.
6066
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-event-target.md
6188
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-event-target.md
6067
6189
  */
6068
6190
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
6069
6191
  /**
6070
6192
  * 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
6193
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-export-from.md
6072
6194
  */
6073
6195
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
6074
6196
  /**
6075
6197
  * 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
6198
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-global-this.md
6077
6199
  */
6078
6200
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
6201
+ /**
6202
+ * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
6203
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-import-meta-properties.md
6204
+ */
6205
+ 'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>
6079
6206
  /**
6080
6207
  * 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
6208
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-includes.md
6082
6209
  */
6083
6210
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
6084
6211
  /**
6085
6212
  * 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
6213
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-json-parse-buffer.md
6087
6214
  */
6088
6215
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
6089
6216
  /**
6090
6217
  * 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
6218
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-keyboard-event-key.md
6092
6219
  */
6093
6220
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
6094
6221
  /**
6095
6222
  * 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
6223
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-logical-operator-over-ternary.md
6097
6224
  */
6098
6225
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
6099
6226
  /**
6100
6227
  * 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
6228
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-math-min-max.md
6102
6229
  */
6103
6230
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
6104
6231
  /**
6105
6232
  * 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
6233
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-math-trunc.md
6107
6234
  */
6108
6235
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
6109
6236
  /**
6110
6237
  * 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
6238
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-modern-dom-apis.md
6112
6239
  */
6113
6240
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
6114
6241
  /**
6115
6242
  * 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
6243
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-modern-math-apis.md
6117
6244
  */
6118
6245
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
6119
6246
  /**
6120
6247
  * Prefer JavaScript modules (ESM) over CommonJS.
6121
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-module.md
6248
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-module.md
6122
6249
  */
6123
6250
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
6124
6251
  /**
6125
6252
  * 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
6253
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-native-coercion-functions.md
6127
6254
  */
6128
6255
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
6129
6256
  /**
6130
6257
  * 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
6258
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-negative-index.md
6132
6259
  */
6133
6260
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
6134
6261
  /**
6135
6262
  * 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
6263
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-node-protocol.md
6137
6264
  */
6138
6265
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
6139
6266
  /**
6140
6267
  * 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
6268
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-number-properties.md
6142
6269
  */
6143
6270
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
6144
6271
  /**
6145
6272
  * 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
6273
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-object-from-entries.md
6147
6274
  */
6148
6275
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
6149
6276
  /**
6150
6277
  * 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
6278
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-optional-catch-binding.md
6152
6279
  */
6153
6280
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
6154
6281
  /**
6155
6282
  * 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
6283
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-prototype-methods.md
6157
6284
  */
6158
6285
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
6159
6286
  /**
6160
6287
  * 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
6288
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-query-selector.md
6162
6289
  */
6163
6290
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
6164
6291
  /**
6165
6292
  * 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
6293
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-reflect-apply.md
6167
6294
  */
6168
6295
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
6169
6296
  /**
6170
6297
  * 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
6298
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-regexp-test.md
6172
6299
  */
6173
6300
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
6174
6301
  /**
6175
6302
  * 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
6303
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-set-has.md
6177
6304
  */
6178
6305
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
6179
6306
  /**
6180
6307
  * 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
6308
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-set-size.md
6182
6309
  */
6183
6310
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
6311
+ /**
6312
+ * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
6313
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-single-call.md
6314
+ */
6315
+ 'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>
6184
6316
  /**
6185
6317
  * 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
6318
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-spread.md
6187
6319
  */
6188
6320
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
6189
6321
  /**
6190
6322
  * 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
6323
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-raw.md
6192
6324
  */
6193
6325
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
6194
6326
  /**
6195
6327
  * 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
6328
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-replace-all.md
6197
6329
  */
6198
6330
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
6199
6331
  /**
6200
6332
  * 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
6333
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-slice.md
6202
6334
  */
6203
6335
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
6204
6336
  /**
6205
6337
  * 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
6338
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-starts-ends-with.md
6207
6339
  */
6208
6340
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
6209
6341
  /**
6210
6342
  * 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
6343
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-trim-start-end.md
6212
6344
  */
6213
6345
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
6214
6346
  /**
6215
6347
  * 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
6348
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-structured-clone.md
6217
6349
  */
6218
6350
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
6219
6351
  /**
6220
6352
  * Prefer `switch` over multiple `else-if`.
6221
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prefer-switch.md
6353
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-switch.md
6222
6354
  */
6223
6355
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
6224
6356
  /**
6225
6357
  * 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
6358
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-ternary.md
6227
6359
  */
6228
6360
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
6229
6361
  /**
6230
6362
  * 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
6363
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-top-level-await.md
6232
6364
  */
6233
6365
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
6234
6366
  /**
6235
6367
  * 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
6368
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-type-error.md
6237
6369
  */
6238
6370
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
6239
6371
  /**
6240
6372
  * Prevent abbreviations.
6241
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/prevent-abbreviations.md
6373
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prevent-abbreviations.md
6242
6374
  */
6243
6375
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
6244
6376
  /**
6245
6377
  * Enforce consistent relative URL style.
6246
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/relative-url-style.md
6378
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/relative-url-style.md
6247
6379
  */
6248
6380
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
6249
6381
  /**
6250
6382
  * 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
6383
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-array-join-separator.md
6252
6384
  */
6253
6385
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
6254
6386
  /**
6255
6387
  * 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
6388
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-number-to-fixed-digits-argument.md
6257
6389
  */
6258
6390
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
6259
6391
  /**
6260
6392
  * 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
6393
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-post-message-target-origin.md
6262
6394
  */
6263
6395
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
6264
6396
  /**
6265
6397
  * Enforce better string content.
6266
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/string-content.md
6398
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/string-content.md
6267
6399
  */
6268
6400
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
6269
6401
  /**
6270
6402
  * 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
6403
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/switch-case-braces.md
6272
6404
  */
6273
6405
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
6274
6406
  /**
6275
6407
  * Fix whitespace-insensitive template indentation.
6276
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/docs/rules/template-indent.md
6408
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/template-indent.md
6277
6409
  */
6278
6410
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
6279
6411
  /**
6280
6412
  * 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
6413
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/text-encoding-identifier-case.md
6282
6414
  */
6283
6415
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
6284
6416
  /**
6285
6417
  * 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
6418
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/throw-new-error.md
6287
6419
  */
6288
6420
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
6289
6421
  /**
@@ -7023,6 +7155,8 @@ type ClassMethodsUseThis =
7023
7155
  {
7024
7156
  exceptMethods?: string[]
7025
7157
  enforceForClassFields?: boolean
7158
+ ignoreOverrideMethods?: boolean
7159
+ ignoreClassesWithImplements?: 'all' | 'public-fields'
7026
7160
  },
7027
7161
  ]
7028
7162
  // ----- comma-dangle -----
@@ -7439,6 +7573,14 @@ type HtmlSortAttrs =
7439
7573
  [k: string]: unknown | undefined
7440
7574
  },
7441
7575
  ]
7576
+ // ----- html/use-baseline -----
7577
+ type HtmlUseBaseline =
7578
+ | []
7579
+ | [
7580
+ {
7581
+ available?: ('widely' | 'newly') | number
7582
+ },
7583
+ ]
7442
7584
  // ----- id-blacklist -----
7443
7585
  type IdBlacklist = string[]
7444
7586
  // ----- id-denylist -----
@@ -7471,7 +7613,7 @@ type IdMatch =
7471
7613
  // ----- implicit-arrow-linebreak -----
7472
7614
  type ImplicitArrowLinebreak = [] | ['beside' | 'below']
7473
7615
  // ----- import/consistent-type-specifier-style -----
7474
- type ImportConsistentTypeSpecifierStyle = [] | ['prefer-inline' | 'prefer-top-level']
7616
+ type ImportConsistentTypeSpecifierStyle = [] | ['prefer-top-level' | 'prefer-inline']
7475
7617
  // ----- import/dynamic-import-chunkname -----
7476
7618
  type ImportDynamicImportChunkname =
7477
7619
  | []
@@ -7825,6 +7967,19 @@ type ImportOrder =
7825
7967
  position?: 'after' | 'before'
7826
7968
  }[]
7827
7969
  'newlines-between'?: 'ignore' | 'always' | 'always-and-inside-groups' | 'never'
7970
+ 'newlines-between-types'?: 'ignore' | 'always' | 'always-and-inside-groups' | 'never'
7971
+ consolidateIslands?: 'inside-groups' | 'never'
7972
+ sortTypesGroup?: boolean
7973
+ named?:
7974
+ | boolean
7975
+ | {
7976
+ enabled?: boolean
7977
+ import?: boolean
7978
+ export?: boolean
7979
+ require?: boolean
7980
+ cjsExports?: boolean
7981
+ types?: 'mixed' | 'types-first' | 'types-last'
7982
+ }
7828
7983
  alphabetize?: {
7829
7984
  caseInsensitive?: boolean
7830
7985
  order?: 'ignore' | 'asc' | 'desc'
@@ -8681,6 +8836,33 @@ type JsonPackageRepositoryShorthand =
8681
8836
  [k: string]: unknown | undefined
8682
8837
  },
8683
8838
  ]
8839
+ // ----- json-package/restrict-dependency-ranges -----
8840
+ type JsonPackageRestrictDependencyRanges =
8841
+ | []
8842
+ | [
8843
+ | {
8844
+ forDependencyTypes?: (
8845
+ | 'dependencies'
8846
+ | 'devDependencies'
8847
+ | 'optionalDependencies'
8848
+ | 'peerDependencies'
8849
+ )[]
8850
+ forPackages?: string[]
8851
+ forVersions?: string
8852
+ rangeType: ('caret' | 'pin' | 'tilde') | ('caret' | 'pin' | 'tilde')[]
8853
+ }
8854
+ | {
8855
+ forDependencyTypes?: (
8856
+ | 'dependencies'
8857
+ | 'devDependencies'
8858
+ | 'optionalDependencies'
8859
+ | 'peerDependencies'
8860
+ )[]
8861
+ forPackages?: string[]
8862
+ forVersions?: string
8863
+ rangeType: ('caret' | 'pin' | 'tilde') | ('caret' | 'pin' | 'tilde')[]
8864
+ }[],
8865
+ ]
8684
8866
  // ----- json-package/sort-collections -----
8685
8867
  type JsonPackageSortCollections = [] | [string[]]
8686
8868
  // ----- json/array-bracket-newline -----
@@ -10249,6 +10431,10 @@ type NoEmptyFunction =
10249
10431
  | 'constructors'
10250
10432
  | 'asyncFunctions'
10251
10433
  | 'asyncMethods'
10434
+ | 'privateConstructors'
10435
+ | 'protectedConstructors'
10436
+ | 'decoratedFunctions'
10437
+ | 'overrideMethods'
10252
10438
  )[]
10253
10439
  },
10254
10440
  ]
@@ -10690,14 +10876,10 @@ type NoRestrictedModules =
10690
10876
  // ----- no-restricted-properties -----
10691
10877
  type NoRestrictedProperties = (
10692
10878
  | {
10693
- object: string
10694
- property?: string
10695
- message?: string
10879
+ [k: string]: unknown | undefined
10696
10880
  }
10697
10881
  | {
10698
- object?: string
10699
- property: string
10700
- message?: string
10882
+ [k: string]: unknown | undefined
10701
10883
  }
10702
10884
  )[]
10703
10885
  // ----- no-restricted-syntax -----
@@ -10737,6 +10919,14 @@ type NoShadow =
10737
10919
  ignoreOnInitialization?: boolean
10738
10920
  },
10739
10921
  ]
10922
+ // ----- no-shadow-restricted-names -----
10923
+ type NoShadowRestrictedNames =
10924
+ | []
10925
+ | [
10926
+ {
10927
+ reportGlobalThis?: boolean
10928
+ },
10929
+ ]
10740
10930
  // ----- no-sync -----
10741
10931
  type NoSync =
10742
10932
  | []
@@ -10833,6 +11023,7 @@ type NoUnusedExpressions =
10833
11023
  allowTernary?: boolean
10834
11024
  allowTaggedTemplates?: boolean
10835
11025
  enforceForJSX?: boolean
11026
+ ignoreDirectives?: boolean
10836
11027
  },
10837
11028
  ]
10838
11029
  // ----- no-unused-vars -----
@@ -11324,6 +11515,7 @@ type NodeNoUnpublishedImport =
11324
11515
  resolverConfig?: {
11325
11516
  [k: string]: unknown | undefined
11326
11517
  }
11518
+ tryExtensions?: string[]
11327
11519
  ignoreTypeImport?: boolean
11328
11520
  ignorePrivate?: boolean
11329
11521
  },
@@ -13069,12 +13261,30 @@ type NodeNoUnsupportedFeaturesNodeBuiltins =
13069
13261
  | 'http2.Http2ServerRequest'
13070
13262
  | 'http2.Http2ServerResponse'
13071
13263
  | 'http'
13264
+ | 'http.METHODS'
13265
+ | 'http.STATUS_CODES'
13072
13266
  | 'http.globalAgent'
13267
+ | 'http.maxHeaderSize'
13073
13268
  | 'http.createServer'
13074
13269
  | 'http.get'
13075
13270
  | 'http.request'
13271
+ | 'http.validateHeaderName'
13272
+ | 'http.validateHeaderValue'
13273
+ | 'http.setMaxIdleHTTPParsers'
13076
13274
  | 'http.Agent'
13275
+ | 'http.ClientRequest'
13077
13276
  | 'http.Server'
13277
+ | 'http.ServerResponse'
13278
+ | 'http.IncomingMessage'
13279
+ | 'http.OutgoingMessage'
13280
+ | 'http.WebSocket'
13281
+ | 'https'
13282
+ | 'https.globalAgent'
13283
+ | 'https.createServer'
13284
+ | 'https.get'
13285
+ | 'https.request'
13286
+ | 'https.Agent'
13287
+ | 'https.Server'
13078
13288
  | 'inspector'
13079
13289
  | 'inspector.Session'
13080
13290
  | 'inspector.Network.loadingFailed'
@@ -13385,6 +13595,12 @@ type NodeNoUnsupportedFeaturesNodeBuiltins =
13385
13595
  | 'stream/consumers.text'
13386
13596
  | 'string_decoder'
13387
13597
  | 'string_decoder.StringDecoder'
13598
+ | 'sqlite'
13599
+ | 'sqlite.DatabaseSync'
13600
+ | 'sqlite.StatementSync'
13601
+ | 'sqlite.SQLITE_CHANGESET_OMIT'
13602
+ | 'sqlite.SQLITE_CHANGESET_REPLACE'
13603
+ | 'sqlite.SQLITE_CHANGESET_ABORT'
13388
13604
  | 'test'
13389
13605
  | 'test.after'
13390
13606
  | 'test.afterEach'
@@ -13729,6 +13945,9 @@ type NodeNoUnsupportedFeaturesNodeBuiltins =
13729
13945
  | 'zlib.Unzip()'
13730
13946
  | 'zlib.Unzip'
13731
13947
  | 'zlib'
13948
+ | 'import.meta.resolve'
13949
+ | 'import.meta.dirname'
13950
+ | 'import.meta.filename'
13732
13951
  )[]
13733
13952
  },
13734
13953
  ]
@@ -14851,96 +15070,32 @@ type PerfectionistSortEnums =
14851
15070
  },
14852
15071
  ]
14853
15072
  // ----- perfectionist/sort-exports -----
14854
- type PerfectionistSortExports =
14855
- | []
14856
- | [
14857
- {
14858
- fallbackSort?: {
14859
- order?: 'asc' | 'desc'
15073
+ type PerfectionistSortExports = {
15074
+ fallbackSort?: {
15075
+ order?: 'asc' | 'desc'
14860
15076
 
14861
- type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
14862
- [k: string]: unknown | undefined
14863
- }
15077
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15078
+ [k: string]: unknown | undefined
15079
+ }
14864
15080
 
14865
- specialCharacters?: 'remove' | 'trim' | 'keep'
15081
+ specialCharacters?: 'remove' | 'trim' | 'keep'
14866
15082
 
14867
- ignoreCase?: boolean
15083
+ ignoreCase?: boolean
14868
15084
 
14869
- alphabet?: string
15085
+ alphabet?: string
14870
15086
 
14871
- locales?: string | string[]
15087
+ locales?: string | string[]
14872
15088
 
14873
- order?: 'asc' | 'desc'
15089
+ order?: 'asc' | 'desc'
14874
15090
 
14875
- type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15091
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
14876
15092
 
14877
- groupKind?: 'mixed' | 'values-first' | 'types-first'
15093
+ groupKind?: 'mixed' | 'values-first' | 'types-first'
14878
15094
 
14879
- partitionByComment?:
14880
- | boolean
14881
- | (
14882
- | (
14883
- | {
14884
- pattern?: string
14885
- flags?: string
14886
- }
14887
- | string
14888
- )[]
14889
- | (
14890
- | {
14891
- pattern?: string
14892
- flags?: string
14893
- }
14894
- | string
14895
- )
14896
- )
14897
- | {
14898
- block?:
14899
- | boolean
14900
- | (
14901
- | (
14902
- | {
14903
- pattern?: string
14904
- flags?: string
14905
- }
14906
- | string
14907
- )[]
14908
- | (
14909
- | {
14910
- pattern?: string
14911
- flags?: string
14912
- }
14913
- | string
14914
- )
14915
- )
14916
- line?:
14917
- | boolean
14918
- | (
14919
- | (
14920
- | {
14921
- pattern?: string
14922
- flags?: string
14923
- }
14924
- | string
14925
- )[]
14926
- | (
14927
- | {
14928
- pattern?: string
14929
- flags?: string
14930
- }
14931
- | string
14932
- )
14933
- )
14934
- }
15095
+ customGroups?: (
15096
+ | {
15097
+ newlinesInside?: 'always' | 'never'
14935
15098
 
14936
- partitionByNewLine?: boolean
14937
- },
14938
- ]
14939
- // ----- perfectionist/sort-heritage-clauses -----
14940
- type PerfectionistSortHeritageClauses =
14941
- | []
14942
- | [
14943
- {
14944
15099
  fallbackSort?: {
14945
15100
  order?: 'asc' | 'desc'
14946
15101
 
@@ -14948,75 +15103,54 @@ type PerfectionistSortHeritageClauses =
14948
15103
  [k: string]: unknown | undefined
14949
15104
  }
14950
15105
 
14951
- specialCharacters?: 'remove' | 'trim' | 'keep'
14952
-
14953
- ignoreCase?: boolean
14954
-
14955
- alphabet?: string
14956
-
14957
- locales?: string | string[]
15106
+ groupName?: string
14958
15107
 
14959
15108
  order?: 'asc' | 'desc'
14960
15109
 
14961
15110
  type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15111
+ anyOf?: {
15112
+ modifiers?: ('value' | 'type')[]
14962
15113
 
14963
- customGroups?: {
14964
- [k: string]: (string | string[]) | undefined
14965
- }
14966
-
14967
- groups?: (
14968
- | string
14969
- | string[]
14970
- | {
14971
- newlinesBetween?: 'ignore' | 'always' | 'never'
14972
- }
14973
- )[]
14974
- },
14975
- ]
14976
- // ----- perfectionist/sort-imports -----
14977
- type PerfectionistSortImports = [] | [_PerfectionistSortImportsSortImports]
14978
- type _PerfectionistSortImportsSortImports =
14979
- _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType & {
14980
- fallbackSort?: {
14981
- order?: 'asc' | 'desc'
14982
-
14983
- type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
14984
- [k: string]: unknown | undefined
14985
- }
14986
-
14987
- specialCharacters?: 'remove' | 'trim' | 'keep'
14988
-
14989
- ignoreCase?: boolean
14990
-
14991
- alphabet?: string
14992
-
14993
- locales?: string | string[]
15114
+ selector?: 'export'
14994
15115
 
14995
- order?: 'asc' | 'desc'
15116
+ elementNamePattern?:
15117
+ | (
15118
+ | {
15119
+ pattern?: string
15120
+ flags?: string
15121
+ }
15122
+ | string
15123
+ )[]
15124
+ | (
15125
+ | {
15126
+ pattern?: string
15127
+ flags?: string
15128
+ }
15129
+ | string
15130
+ )
15131
+ }[]
15132
+ }
15133
+ | {
15134
+ newlinesInside?: 'always' | 'never'
14996
15135
 
14997
- type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15136
+ fallbackSort?: {
15137
+ order?: 'asc' | 'desc'
14998
15138
 
14999
- customGroups?: {
15000
- value?: {
15001
- [k: string]: unknown | undefined
15002
- }
15139
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15140
+ [k: string]: unknown | undefined
15141
+ }
15003
15142
 
15004
- type?: {
15005
- [k: string]: unknown | undefined
15006
- }
15007
- }
15143
+ groupName?: string
15008
15144
 
15009
- maxLineLength?: number
15145
+ order?: 'asc' | 'desc'
15010
15146
 
15011
- sortSideEffects?: boolean
15147
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15012
15148
 
15013
- environment?: 'node' | 'bun'
15149
+ modifiers?: ('value' | 'type')[]
15014
15150
 
15015
- tsconfigRootDir?: string
15151
+ selector?: 'export'
15016
15152
 
15017
- partitionByComment?:
15018
- | boolean
15019
- | (
15153
+ elementNamePattern?:
15020
15154
  | (
15021
15155
  | {
15022
15156
  pattern?: string
@@ -15031,83 +15165,115 @@ type _PerfectionistSortImportsSortImports =
15031
15165
  }
15032
15166
  | string
15033
15167
  )
15034
- )
15035
- | {
15036
- block?:
15037
- | boolean
15038
- | (
15039
- | (
15040
- | {
15041
- pattern?: string
15042
- flags?: string
15043
- }
15044
- | string
15045
- )[]
15046
- | (
15047
- | {
15048
- pattern?: string
15049
- flags?: string
15050
- }
15051
- | string
15052
- )
15053
- )
15054
- line?:
15055
- | boolean
15056
- | (
15057
- | (
15058
- | {
15059
- pattern?: string
15060
- flags?: string
15061
- }
15062
- | string
15063
- )[]
15064
- | (
15065
- | {
15066
- pattern?: string
15067
- flags?: string
15068
- }
15069
- | string
15070
- )
15071
- )
15072
- }
15168
+ }
15169
+ )[]
15170
+
15171
+ partitionByComment?:
15172
+ | boolean
15173
+ | (
15174
+ | (
15175
+ | {
15176
+ pattern?: string
15177
+ flags?: string
15178
+ }
15179
+ | string
15180
+ )[]
15181
+ | (
15182
+ | {
15183
+ pattern?: string
15184
+ flags?: string
15185
+ }
15186
+ | string
15187
+ )
15188
+ )
15189
+ | {
15190
+ block?:
15191
+ | boolean
15192
+ | (
15193
+ | (
15194
+ | {
15195
+ pattern?: string
15196
+ flags?: string
15197
+ }
15198
+ | string
15199
+ )[]
15200
+ | (
15201
+ | {
15202
+ pattern?: string
15203
+ flags?: string
15204
+ }
15205
+ | string
15206
+ )
15207
+ )
15208
+ line?:
15209
+ | boolean
15210
+ | (
15211
+ | (
15212
+ | {
15213
+ pattern?: string
15214
+ flags?: string
15215
+ }
15216
+ | string
15217
+ )[]
15218
+ | (
15219
+ | {
15220
+ pattern?: string
15221
+ flags?: string
15222
+ }
15223
+ | string
15224
+ )
15225
+ )
15226
+ }
15073
15227
 
15074
- partitionByNewLine?: boolean
15228
+ partitionByNewLine?: boolean
15075
15229
 
15076
- newlinesBetween?: 'ignore' | 'always' | 'never'
15230
+ newlinesBetween?: 'ignore' | 'always' | 'never'
15077
15231
 
15078
- internalPattern?:
15079
- | (
15080
- | {
15081
- pattern?: string
15082
- flags?: string
15083
- }
15232
+ groups?: (
15233
+ | string
15234
+ | string[]
15235
+ | {
15236
+ newlinesBetween?: 'ignore' | 'always' | 'never'
15237
+ }
15238
+ )[]
15239
+ }[]
15240
+ // ----- perfectionist/sort-heritage-clauses -----
15241
+ type PerfectionistSortHeritageClauses =
15242
+ | []
15243
+ | [
15244
+ {
15245
+ fallbackSort?: {
15246
+ order?: 'asc' | 'desc'
15247
+
15248
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15249
+ [k: string]: unknown | undefined
15250
+ }
15251
+
15252
+ specialCharacters?: 'remove' | 'trim' | 'keep'
15253
+
15254
+ ignoreCase?: boolean
15255
+
15256
+ alphabet?: string
15257
+
15258
+ locales?: string | string[]
15259
+
15260
+ order?: 'asc' | 'desc'
15261
+
15262
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15263
+
15264
+ customGroups?: {
15265
+ [k: string]: (string | string[]) | undefined
15266
+ }
15267
+
15268
+ groups?: (
15084
15269
  | string
15085
- )[]
15086
- | (
15270
+ | string[]
15087
15271
  | {
15088
- pattern?: string
15089
- flags?: string
15272
+ newlinesBetween?: 'ignore' | 'always' | 'never'
15090
15273
  }
15091
- | string
15092
- )
15093
-
15094
- groups?: (
15095
- | string
15096
- | string[]
15097
- | {
15098
- newlinesBetween?: 'ignore' | 'always' | 'never'
15099
- }
15100
- )[]
15101
- }
15102
- type _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType =
15103
- | {
15104
- [k: string]: unknown | undefined
15105
- }
15106
- | _PerfectionistSortImports_IsLineLength
15107
- interface _PerfectionistSortImports_IsLineLength {
15108
- type: 'line-length'
15109
- [k: string]: unknown | undefined
15110
- }
15274
+ )[]
15275
+ },
15276
+ ]
15111
15277
  // ----- perfectionist/sort-interfaces -----
15112
15278
  type PerfectionistSortInterfaces = {
15113
15279
  fallbackSort?: {
@@ -15243,6 +15409,8 @@ type PerfectionistSortInterfaces = {
15243
15409
  sortBy?: 'name' | 'value'
15244
15410
  }
15245
15411
  )[]
15412
+
15413
+ groupKind?: 'mixed' | 'required-first' | 'optional-first'
15246
15414
  useConfigurationIf?: {
15247
15415
  allNamesMatchPattern?:
15248
15416
  | (
@@ -15277,8 +15445,6 @@ type PerfectionistSortInterfaces = {
15277
15445
  )
15278
15446
  }
15279
15447
 
15280
- groupKind?: 'mixed' | 'required-first' | 'optional-first'
15281
-
15282
15448
  partitionByComment?:
15283
15449
  | boolean
15284
15450
  | (
@@ -15479,6 +15645,117 @@ type PerfectionistSortJsxProps = {
15479
15645
  order?: 'asc' | 'desc'
15480
15646
 
15481
15647
  type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15648
+ customGroups?:
15649
+ | {
15650
+ [k: string]: (string | string[]) | undefined
15651
+ }
15652
+ | (
15653
+ | {
15654
+ newlinesInside?: 'always' | 'never'
15655
+
15656
+ fallbackSort?: {
15657
+ order?: 'asc' | 'desc'
15658
+
15659
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15660
+ [k: string]: unknown | undefined
15661
+ }
15662
+
15663
+ groupName?: string
15664
+
15665
+ order?: 'asc' | 'desc'
15666
+
15667
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15668
+ anyOf?: {
15669
+ modifiers?: ('shorthand' | 'multiline')[]
15670
+
15671
+ selector?: 'multiline' | 'prop' | 'shorthand'
15672
+
15673
+ elementValuePattern?:
15674
+ | (
15675
+ | {
15676
+ pattern?: string
15677
+ flags?: string
15678
+ }
15679
+ | string
15680
+ )[]
15681
+ | (
15682
+ | {
15683
+ pattern?: string
15684
+ flags?: string
15685
+ }
15686
+ | string
15687
+ )
15688
+
15689
+ elementNamePattern?:
15690
+ | (
15691
+ | {
15692
+ pattern?: string
15693
+ flags?: string
15694
+ }
15695
+ | string
15696
+ )[]
15697
+ | (
15698
+ | {
15699
+ pattern?: string
15700
+ flags?: string
15701
+ }
15702
+ | string
15703
+ )
15704
+ }[]
15705
+ }
15706
+ | {
15707
+ newlinesInside?: 'always' | 'never'
15708
+
15709
+ fallbackSort?: {
15710
+ order?: 'asc' | 'desc'
15711
+
15712
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15713
+ [k: string]: unknown | undefined
15714
+ }
15715
+
15716
+ groupName?: string
15717
+
15718
+ order?: 'asc' | 'desc'
15719
+
15720
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15721
+
15722
+ modifiers?: ('shorthand' | 'multiline')[]
15723
+
15724
+ selector?: 'multiline' | 'prop' | 'shorthand'
15725
+
15726
+ elementValuePattern?:
15727
+ | (
15728
+ | {
15729
+ pattern?: string
15730
+ flags?: string
15731
+ }
15732
+ | string
15733
+ )[]
15734
+ | (
15735
+ | {
15736
+ pattern?: string
15737
+ flags?: string
15738
+ }
15739
+ | string
15740
+ )
15741
+
15742
+ elementNamePattern?:
15743
+ | (
15744
+ | {
15745
+ pattern?: string
15746
+ flags?: string
15747
+ }
15748
+ | string
15749
+ )[]
15750
+ | (
15751
+ | {
15752
+ pattern?: string
15753
+ flags?: string
15754
+ }
15755
+ | string
15756
+ )
15757
+ }
15758
+ )[]
15482
15759
  useConfigurationIf?: {
15483
15760
  allNamesMatchPattern?:
15484
15761
  | (
@@ -15517,10 +15794,6 @@ type PerfectionistSortJsxProps = {
15517
15794
 
15518
15795
  newlinesBetween?: 'ignore' | 'always' | 'never'
15519
15796
 
15520
- customGroups?: {
15521
- [k: string]: (string | string[]) | undefined
15522
- }
15523
-
15524
15797
  ignorePattern?:
15525
15798
  | (
15526
15799
  | {
@@ -15909,24 +16182,218 @@ type PerfectionistSortModules =
15909
16182
  )
15910
16183
  }
15911
16184
 
15912
- partitionByNewLine?: boolean
16185
+ partitionByNewLine?: boolean
16186
+
16187
+ newlinesBetween?: 'ignore' | 'always' | 'never'
16188
+
16189
+ groups?: (
16190
+ | string
16191
+ | string[]
16192
+ | {
16193
+ newlinesBetween?: 'ignore' | 'always' | 'never'
16194
+ }
16195
+ )[]
16196
+ },
16197
+ ]
16198
+ // ----- perfectionist/sort-named-exports -----
16199
+ type PerfectionistSortNamedExports = {
16200
+ fallbackSort?: {
16201
+ order?: 'asc' | 'desc'
16202
+
16203
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16204
+ [k: string]: unknown | undefined
16205
+ }
16206
+
16207
+ specialCharacters?: 'remove' | 'trim' | 'keep'
16208
+
16209
+ ignoreCase?: boolean
16210
+
16211
+ alphabet?: string
16212
+
16213
+ locales?: string | string[]
16214
+
16215
+ order?: 'asc' | 'desc'
16216
+
16217
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16218
+
16219
+ groupKind?: 'mixed' | 'values-first' | 'types-first'
16220
+
16221
+ ignoreAlias?: boolean
16222
+
16223
+ customGroups?: (
16224
+ | {
16225
+ newlinesInside?: 'always' | 'never'
16226
+
16227
+ fallbackSort?: {
16228
+ order?: 'asc' | 'desc'
16229
+
16230
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16231
+ [k: string]: unknown | undefined
16232
+ }
16233
+
16234
+ groupName?: string
16235
+
16236
+ order?: 'asc' | 'desc'
16237
+
16238
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16239
+ anyOf?: {
16240
+ modifiers?: ('value' | 'type')[]
16241
+
16242
+ selector?: 'export'
16243
+
16244
+ elementNamePattern?:
16245
+ | (
16246
+ | {
16247
+ pattern?: string
16248
+ flags?: string
16249
+ }
16250
+ | string
16251
+ )[]
16252
+ | (
16253
+ | {
16254
+ pattern?: string
16255
+ flags?: string
16256
+ }
16257
+ | string
16258
+ )
16259
+ }[]
16260
+ }
16261
+ | {
16262
+ newlinesInside?: 'always' | 'never'
16263
+
16264
+ fallbackSort?: {
16265
+ order?: 'asc' | 'desc'
16266
+
16267
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16268
+ [k: string]: unknown | undefined
16269
+ }
16270
+
16271
+ groupName?: string
16272
+
16273
+ order?: 'asc' | 'desc'
16274
+
16275
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16276
+
16277
+ modifiers?: ('value' | 'type')[]
16278
+
16279
+ selector?: 'export'
16280
+
16281
+ elementNamePattern?:
16282
+ | (
16283
+ | {
16284
+ pattern?: string
16285
+ flags?: string
16286
+ }
16287
+ | string
16288
+ )[]
16289
+ | (
16290
+ | {
16291
+ pattern?: string
16292
+ flags?: string
16293
+ }
16294
+ | string
16295
+ )
16296
+ }
16297
+ )[]
16298
+
16299
+ partitionByComment?:
16300
+ | boolean
16301
+ | (
16302
+ | (
16303
+ | {
16304
+ pattern?: string
16305
+ flags?: string
16306
+ }
16307
+ | string
16308
+ )[]
16309
+ | (
16310
+ | {
16311
+ pattern?: string
16312
+ flags?: string
16313
+ }
16314
+ | string
16315
+ )
16316
+ )
16317
+ | {
16318
+ block?:
16319
+ | boolean
16320
+ | (
16321
+ | (
16322
+ | {
16323
+ pattern?: string
16324
+ flags?: string
16325
+ }
16326
+ | string
16327
+ )[]
16328
+ | (
16329
+ | {
16330
+ pattern?: string
16331
+ flags?: string
16332
+ }
16333
+ | string
16334
+ )
16335
+ )
16336
+ line?:
16337
+ | boolean
16338
+ | (
16339
+ | (
16340
+ | {
16341
+ pattern?: string
16342
+ flags?: string
16343
+ }
16344
+ | string
16345
+ )[]
16346
+ | (
16347
+ | {
16348
+ pattern?: string
16349
+ flags?: string
16350
+ }
16351
+ | string
16352
+ )
16353
+ )
16354
+ }
16355
+
16356
+ partitionByNewLine?: boolean
16357
+
16358
+ newlinesBetween?: 'ignore' | 'always' | 'never'
16359
+
16360
+ groups?: (
16361
+ | string
16362
+ | string[]
16363
+ | {
16364
+ newlinesBetween?: 'ignore' | 'always' | 'never'
16365
+ }
16366
+ )[]
16367
+ }[]
16368
+ // ----- perfectionist/sort-named-imports -----
16369
+ type PerfectionistSortNamedImports = {
16370
+ fallbackSort?: {
16371
+ order?: 'asc' | 'desc'
16372
+
16373
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16374
+ [k: string]: unknown | undefined
16375
+ }
16376
+
16377
+ specialCharacters?: 'remove' | 'trim' | 'keep'
16378
+
16379
+ ignoreCase?: boolean
16380
+
16381
+ alphabet?: string
16382
+
16383
+ locales?: string | string[]
16384
+
16385
+ order?: 'asc' | 'desc'
15913
16386
 
15914
- newlinesBetween?: 'ignore' | 'always' | 'never'
16387
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16388
+
16389
+ groupKind?: 'mixed' | 'values-first' | 'types-first'
16390
+
16391
+ ignoreAlias?: boolean
16392
+
16393
+ customGroups?: (
16394
+ | {
16395
+ newlinesInside?: 'always' | 'never'
15915
16396
 
15916
- groups?: (
15917
- | string
15918
- | string[]
15919
- | {
15920
- newlinesBetween?: 'ignore' | 'always' | 'never'
15921
- }
15922
- )[]
15923
- },
15924
- ]
15925
- // ----- perfectionist/sort-named-exports -----
15926
- type PerfectionistSortNamedExports =
15927
- | []
15928
- | [
15929
- {
15930
16397
  fallbackSort?: {
15931
16398
  order?: 'asc' | 'desc'
15932
16399
 
@@ -15934,23 +16401,91 @@ type PerfectionistSortNamedExports =
15934
16401
  [k: string]: unknown | undefined
15935
16402
  }
15936
16403
 
15937
- specialCharacters?: 'remove' | 'trim' | 'keep'
16404
+ groupName?: string
15938
16405
 
15939
- ignoreCase?: boolean
16406
+ order?: 'asc' | 'desc'
15940
16407
 
15941
- alphabet?: string
16408
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16409
+ anyOf?: {
16410
+ modifiers?: ('value' | 'type')[]
15942
16411
 
15943
- locales?: string | string[]
16412
+ selector?: 'import'
16413
+
16414
+ elementNamePattern?:
16415
+ | (
16416
+ | {
16417
+ pattern?: string
16418
+ flags?: string
16419
+ }
16420
+ | string
16421
+ )[]
16422
+ | (
16423
+ | {
16424
+ pattern?: string
16425
+ flags?: string
16426
+ }
16427
+ | string
16428
+ )
16429
+ }[]
16430
+ }
16431
+ | {
16432
+ newlinesInside?: 'always' | 'never'
16433
+
16434
+ fallbackSort?: {
16435
+ order?: 'asc' | 'desc'
16436
+
16437
+ type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16438
+ [k: string]: unknown | undefined
16439
+ }
16440
+
16441
+ groupName?: string
15944
16442
 
15945
16443
  order?: 'asc' | 'desc'
15946
16444
 
15947
16445
  type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
15948
16446
 
15949
- groupKind?: 'mixed' | 'values-first' | 'types-first'
16447
+ modifiers?: ('value' | 'type')[]
15950
16448
 
15951
- ignoreAlias?: boolean
16449
+ selector?: 'import'
15952
16450
 
15953
- partitionByComment?:
16451
+ elementNamePattern?:
16452
+ | (
16453
+ | {
16454
+ pattern?: string
16455
+ flags?: string
16456
+ }
16457
+ | string
16458
+ )[]
16459
+ | (
16460
+ | {
16461
+ pattern?: string
16462
+ flags?: string
16463
+ }
16464
+ | string
16465
+ )
16466
+ }
16467
+ )[]
16468
+
16469
+ partitionByComment?:
16470
+ | boolean
16471
+ | (
16472
+ | (
16473
+ | {
16474
+ pattern?: string
16475
+ flags?: string
16476
+ }
16477
+ | string
16478
+ )[]
16479
+ | (
16480
+ | {
16481
+ pattern?: string
16482
+ flags?: string
16483
+ }
16484
+ | string
16485
+ )
16486
+ )
16487
+ | {
16488
+ block?:
15954
16489
  | boolean
15955
16490
  | (
15956
16491
  | (
@@ -15968,77 +16503,7 @@ type PerfectionistSortNamedExports =
15968
16503
  | string
15969
16504
  )
15970
16505
  )
15971
- | {
15972
- block?:
15973
- | boolean
15974
- | (
15975
- | (
15976
- | {
15977
- pattern?: string
15978
- flags?: string
15979
- }
15980
- | string
15981
- )[]
15982
- | (
15983
- | {
15984
- pattern?: string
15985
- flags?: string
15986
- }
15987
- | string
15988
- )
15989
- )
15990
- line?:
15991
- | boolean
15992
- | (
15993
- | (
15994
- | {
15995
- pattern?: string
15996
- flags?: string
15997
- }
15998
- | string
15999
- )[]
16000
- | (
16001
- | {
16002
- pattern?: string
16003
- flags?: string
16004
- }
16005
- | string
16006
- )
16007
- )
16008
- }
16009
-
16010
- partitionByNewLine?: boolean
16011
- },
16012
- ]
16013
- // ----- perfectionist/sort-named-imports -----
16014
- type PerfectionistSortNamedImports =
16015
- | []
16016
- | [
16017
- {
16018
- fallbackSort?: {
16019
- order?: 'asc' | 'desc'
16020
-
16021
- type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16022
- [k: string]: unknown | undefined
16023
- }
16024
-
16025
- specialCharacters?: 'remove' | 'trim' | 'keep'
16026
-
16027
- ignoreCase?: boolean
16028
-
16029
- alphabet?: string
16030
-
16031
- locales?: string | string[]
16032
-
16033
- order?: 'asc' | 'desc'
16034
-
16035
- type?: 'alphabetical' | 'natural' | 'line-length' | 'custom' | 'unsorted'
16036
-
16037
- groupKind?: 'mixed' | 'values-first' | 'types-first'
16038
-
16039
- ignoreAlias?: boolean
16040
-
16041
- partitionByComment?:
16506
+ line?:
16042
16507
  | boolean
16043
16508
  | (
16044
16509
  | (
@@ -16056,48 +16521,20 @@ type PerfectionistSortNamedImports =
16056
16521
  | string
16057
16522
  )
16058
16523
  )
16059
- | {
16060
- block?:
16061
- | boolean
16062
- | (
16063
- | (
16064
- | {
16065
- pattern?: string
16066
- flags?: string
16067
- }
16068
- | string
16069
- )[]
16070
- | (
16071
- | {
16072
- pattern?: string
16073
- flags?: string
16074
- }
16075
- | string
16076
- )
16077
- )
16078
- line?:
16079
- | boolean
16080
- | (
16081
- | (
16082
- | {
16083
- pattern?: string
16084
- flags?: string
16085
- }
16086
- | string
16087
- )[]
16088
- | (
16089
- | {
16090
- pattern?: string
16091
- flags?: string
16092
- }
16093
- | string
16094
- )
16095
- )
16096
- }
16524
+ }
16097
16525
 
16098
- partitionByNewLine?: boolean
16099
- },
16100
- ]
16526
+ partitionByNewLine?: boolean
16527
+
16528
+ newlinesBetween?: 'ignore' | 'always' | 'never'
16529
+
16530
+ groups?: (
16531
+ | string
16532
+ | string[]
16533
+ | {
16534
+ newlinesBetween?: 'ignore' | 'always' | 'never'
16535
+ }
16536
+ )[]
16537
+ }[]
16101
16538
  // ----- perfectionist/sort-object-types -----
16102
16539
  type PerfectionistSortObjectTypes = {
16103
16540
  fallbackSort?: {
@@ -16233,6 +16670,8 @@ type PerfectionistSortObjectTypes = {
16233
16670
  sortBy?: 'name' | 'value'
16234
16671
  }
16235
16672
  )[]
16673
+
16674
+ groupKind?: 'mixed' | 'required-first' | 'optional-first'
16236
16675
  useConfigurationIf?: {
16237
16676
  allNamesMatchPattern?:
16238
16677
  | (
@@ -16267,8 +16706,6 @@ type PerfectionistSortObjectTypes = {
16267
16706
  )
16268
16707
  }
16269
16708
 
16270
- groupKind?: 'mixed' | 'required-first' | 'optional-first'
16271
-
16272
16709
  partitionByComment?:
16273
16710
  | boolean
16274
16711
  | (
@@ -17813,6 +18250,15 @@ type SvelteNoUnknownStyleDirectiveProperty =
17813
18250
  ignorePrefixed?: boolean
17814
18251
  },
17815
18252
  ]
18253
+ // ----- svelte/no-unnecessary-state-wrap -----
18254
+ type SvelteNoUnnecessaryStateWrap =
18255
+ | []
18256
+ | [
18257
+ {
18258
+ additionalReactiveClasses?: string[]
18259
+ allowReassign?: boolean
18260
+ },
18261
+ ]
17816
18262
  // ----- svelte/no-unused-class-name -----
17817
18263
  type SvelteNoUnusedClassName =
17818
18264
  | []
@@ -17821,6 +18267,17 @@ type SvelteNoUnusedClassName =
17821
18267
  allowedClassNames?: string[]
17822
18268
  },
17823
18269
  ]
18270
+ // ----- svelte/no-unused-props -----
18271
+ type SvelteNoUnusedProps =
18272
+ | []
18273
+ | [
18274
+ {
18275
+ checkImportedTypes?: boolean
18276
+ ignoreTypePatterns?: string[]
18277
+ ignorePropertyPatterns?: string[]
18278
+ allowUnusedNestedProperties?: boolean
18279
+ },
18280
+ ]
17824
18281
  // ----- svelte/no-useless-mustaches -----
17825
18282
  type SvelteNoUselessMustaches =
17826
18283
  | []
@@ -17845,6 +18302,7 @@ type SveltePreferConst =
17845
18302
  {
17846
18303
  destructuring?: 'any' | 'all'
17847
18304
  ignoreReadBeforeAssign?: boolean
18305
+ excludedRunes?: string[]
17848
18306
  },
17849
18307
  ]
17850
18308
  // ----- svelte/shorthand-attribute -----
@@ -21472,6 +21930,8 @@ type TsNoUnnecessaryTypeAssertion =
21472
21930
  | []
21473
21931
  | [
21474
21932
  {
21933
+ checkLiteralConstAssertions?: boolean
21934
+
21475
21935
  typesToIgnore?: string[]
21476
21936
  },
21477
21937
  ]
@@ -21484,6 +21944,7 @@ type TsNoUnusedExpressions =
21484
21944
  allowTernary?: boolean
21485
21945
  allowTaggedTemplates?: boolean
21486
21946
  enforceForJSX?: boolean
21947
+ ignoreDirectives?: boolean
21487
21948
  },
21488
21949
  ]
21489
21950
  // ----- ts/no-unused-vars -----
@@ -21565,6 +22026,8 @@ type TsOnlyThrowError =
21565
22026
  }
21566
22027
  )[]
21567
22028
 
22029
+ allowRethrowing?: boolean
22030
+
21568
22031
  allowThrowingAny?: boolean
21569
22032
 
21570
22033
  allowThrowingUnknown?: boolean
@@ -21650,6 +22113,8 @@ type TsPreferNullishCoalescing =
21650
22113
 
21651
22114
  ignoreConditionalTests?: boolean
21652
22115
 
22116
+ ignoreIfStatements?: boolean
22117
+
21653
22118
  ignoreMixedLogicalExpressions?: boolean
21654
22119
 
21655
22120
  ignorePrimitives?:
@@ -21978,6 +22443,8 @@ type UnicornConsistentFunctionScoping =
21978
22443
  checkArrowFunctions?: boolean
21979
22444
  },
21980
22445
  ]
22446
+ // ----- unicorn/escape-case -----
22447
+ type UnicornEscapeCase = [] | ['uppercase' | 'lowercase']
21981
22448
  // ----- unicorn/expiring-todo-comments -----
21982
22449
  type UnicornExpiringTodoComments =
21983
22450
  | []
@@ -22038,14 +22505,6 @@ interface _UnicornImportStyle_ModuleStyles {
22038
22505
  interface _UnicornImportStyle_BooleanObject {
22039
22506
  [k: string]: boolean | undefined
22040
22507
  }
22041
- // ----- unicorn/no-array-push-push -----
22042
- type UnicornNoArrayPushPush =
22043
- | []
22044
- | [
22045
- {
22046
- ignore?: unknown[]
22047
- },
22048
- ]
22049
22508
  // ----- unicorn/no-array-reduce -----
22050
22509
  type UnicornNoArrayReduce =
22051
22510
  | []
@@ -22113,6 +22572,14 @@ type UnicornNoUselessUndefined =
22113
22572
  checkArrowFunctionBody?: boolean
22114
22573
  },
22115
22574
  ]
22575
+ // ----- unicorn/number-literal-case -----
22576
+ type UnicornNumberLiteralCase =
22577
+ | []
22578
+ | [
22579
+ {
22580
+ hexadecimalValue?: 'uppercase' | 'lowercase'
22581
+ },
22582
+ ]
22116
22583
  // ----- unicorn/numeric-separators-style -----
22117
22584
  type UnicornNumericSeparatorsStyle =
22118
22585
  | []
@@ -22199,6 +22666,14 @@ type UnicornPreferObjectFromEntries =
22199
22666
  functions?: unknown[]
22200
22667
  },
22201
22668
  ]
22669
+ // ----- unicorn/prefer-single-call -----
22670
+ type UnicornPreferSingleCall =
22671
+ | []
22672
+ | [
22673
+ {
22674
+ ignore?: unknown[]
22675
+ },
22676
+ ]
22202
22677
  // ----- unicorn/prefer-structured-clone -----
22203
22678
  type UnicornPreferStructuredClone =
22204
22679
  | []
@@ -22404,6 +22879,7 @@ type YamlIndent =
22404
22879
  {
22405
22880
  indentBlockSequences?: boolean
22406
22881
  indicatorValueIndent?: number
22882
+ alignMultilineFlowScalars?: boolean
22407
22883
  },
22408
22884
  ]
22409
22885
  // ----- yaml/key-name-casing -----