@eienjs/eslint-config 1.4.2 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/dist/cli/{constants_generated.js → constants_generated.mjs} +3 -3
  2. package/dist/cli/{index.js → index.mjs} +2 -2
  3. package/dist/cli/{run.js → run.mjs} +5 -5
  4. package/dist/cli/stages/{update_eslint_files.js → update_eslint_files.mjs} +1 -1
  5. package/dist/cli/stages/{update_package_json.js → update_package_json.mjs} +3 -3
  6. package/dist/cli/stages/{update_vscode_settings.js → update_vscode_settings.mjs} +1 -1
  7. package/dist/configs/{adonisjs.d.ts → adonisjs.d.mts} +1 -1
  8. package/dist/configs/{adonisjs.js → adonisjs.mjs} +2 -2
  9. package/dist/configs/{astro.d.ts → astro.d.mts} +1 -1
  10. package/dist/configs/{astro.js → astro.mjs} +2 -2
  11. package/dist/configs/{command.d.ts → command.d.mts} +1 -1
  12. package/dist/configs/{comments.d.ts → comments.d.mts} +1 -1
  13. package/dist/configs/{comments.js → comments.mjs} +1 -1
  14. package/dist/configs/{disables.d.ts → disables.d.mts} +1 -1
  15. package/dist/configs/{disables.js → disables.mjs} +1 -1
  16. package/dist/configs/{formatters.d.ts → formatters.d.mts} +1 -1
  17. package/dist/configs/{formatters.js → formatters.mjs} +3 -3
  18. package/dist/configs/ignores.d.mts +6 -0
  19. package/dist/configs/ignores.mjs +14 -0
  20. package/dist/configs/{imports.d.ts → imports.d.mts} +1 -1
  21. package/dist/configs/{imports.js → imports.mjs} +1 -1
  22. package/dist/configs/index.d.mts +26 -0
  23. package/dist/configs/index.mjs +27 -0
  24. package/dist/configs/{javascript.d.ts → javascript.d.mts} +1 -1
  25. package/dist/configs/{javascript.js → javascript.mjs} +1 -1
  26. package/dist/configs/{jsdoc.d.ts → jsdoc.d.mts} +1 -1
  27. package/dist/configs/{jsdoc.js → jsdoc.mjs} +1 -1
  28. package/dist/configs/{jsonc.d.ts → jsonc.d.mts} +1 -1
  29. package/dist/configs/{jsonc.js → jsonc.mjs} +2 -2
  30. package/dist/configs/{markdown.d.ts → markdown.d.mts} +1 -1
  31. package/dist/configs/{markdown.js → markdown.mjs} +2 -2
  32. package/dist/configs/{node.d.ts → node.d.mts} +1 -1
  33. package/dist/configs/{node.js → node.mjs} +1 -1
  34. package/dist/configs/{nuxt.d.ts → nuxt.d.mts} +1 -1
  35. package/dist/configs/{nuxt.js → nuxt.mjs} +2 -2
  36. package/dist/configs/{perfectionist.d.ts → perfectionist.d.mts} +1 -1
  37. package/dist/configs/{perfectionist.js → perfectionist.mjs} +1 -1
  38. package/dist/configs/{pnpm.d.ts → pnpm.d.mts} +1 -1
  39. package/dist/configs/{pnpm.js → pnpm.mjs} +1 -1
  40. package/dist/configs/{regexp.d.ts → regexp.d.mts} +1 -1
  41. package/dist/configs/{sort.d.ts → sort.d.mts} +1 -1
  42. package/dist/configs/{stylistic.d.ts → stylistic.d.mts} +1 -1
  43. package/dist/configs/{stylistic.js → stylistic.mjs} +2 -2
  44. package/dist/configs/{test.d.ts → test.d.mts} +1 -1
  45. package/dist/configs/{test.js → test.mjs} +2 -2
  46. package/dist/configs/{toml.d.ts → toml.d.mts} +1 -1
  47. package/dist/configs/{toml.js → toml.mjs} +2 -2
  48. package/dist/configs/{typescript.d.ts → typescript.d.mts} +1 -1
  49. package/dist/configs/{typescript.js → typescript.mjs} +3 -3
  50. package/dist/configs/{unicorn.d.ts → unicorn.d.mts} +1 -1
  51. package/dist/configs/{unicorn.js → unicorn.mjs} +2 -2
  52. package/dist/configs/{vue.d.ts → vue.d.mts} +1 -1
  53. package/dist/configs/{vue.js → vue.mjs} +2 -2
  54. package/dist/configs/{yaml.d.ts → yaml.d.mts} +1 -1
  55. package/dist/configs/{yaml.js → yaml.mjs} +2 -2
  56. package/dist/{factory.d.ts → factory.d.mts} +2 -2
  57. package/dist/{factory.js → factory.mjs} +29 -29
  58. package/dist/{index.d.ts → index.d.mts} +5 -5
  59. package/dist/{index.js → index.mjs} +3 -3
  60. package/dist/package.mjs +5 -0
  61. package/dist/{typegen.d.ts → typegen.d.mts} +256 -143
  62. package/dist/{types.d.ts → types.d.mts} +11 -2
  63. package/dist/{utils.d.ts → utils.d.mts} +1 -1
  64. package/package.json +24 -24
  65. package/dist/configs/ignores.d.ts +0 -6
  66. package/dist/configs/ignores.js +0 -12
  67. package/dist/configs/index.d.ts +0 -26
  68. package/dist/configs/index.js +0 -27
  69. package/dist/package.js +0 -5
  70. /package/dist/cli/{constants.js → constants.mjs} +0 -0
  71. /package/dist/cli/{index.d.ts → index.d.mts} +0 -0
  72. /package/dist/cli/{utils.js → utils.mjs} +0 -0
  73. /package/dist/configs/{command.js → command.mjs} +0 -0
  74. /package/dist/configs/{regexp.js → regexp.mjs} +0 -0
  75. /package/dist/configs/{sort.js → sort.mjs} +0 -0
  76. /package/dist/{globs.d.ts → globs.d.mts} +0 -0
  77. /package/dist/{globs.js → globs.mjs} +0 -0
  78. /package/dist/{plugins.js → plugins.mjs} +0 -0
  79. /package/dist/{utils.js → utils.mjs} +0 -0
  80. /package/dist/vendored/{prettier_types.d.ts → prettier_types.d.mts} +0 -0
@@ -1527,6 +1527,11 @@ interface RuleOptions {
1527
1527
  * @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-set-text-directive/
1528
1528
  */
1529
1529
  'astro/no-set-text-directive'?: Linter.RuleEntry<[]>;
1530
+ /**
1531
+ * disallow inline `<script>` without `src` to encourage CSP-safe patterns
1532
+ * @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-unsafe-inline-scripts/
1533
+ */
1534
+ 'astro/no-unsafe-inline-scripts'?: Linter.RuleEntry<AstroNoUnsafeInlineScripts>;
1530
1535
  /**
1531
1536
  * disallow selectors defined in `style` tag that don't use in HTML
1532
1537
  * @see https://ota-meshi.github.io/eslint-plugin-astro/rules/no-unused-css-selector/
@@ -1623,6 +1628,11 @@ interface RuleOptions {
1623
1628
  * @deprecated
1624
1629
  */
1625
1630
  'comma-style'?: Linter.RuleEntry<CommaStyle>;
1631
+ /**
1632
+ * Comment-as-command for one-off codemod with ESLint
1633
+ * @see https://github.com/antfu/eslint-plugin-command
1634
+ */
1635
+ 'command/command'?: Linter.RuleEntry<[]>;
1626
1636
  /**
1627
1637
  * Enforce a maximum cyclomatic complexity allowed in a program
1628
1638
  * @see https://eslint.org/docs/latest/rules/complexity
@@ -1691,6 +1701,26 @@ interface RuleOptions {
1691
1701
  * @see https://eslint.org/docs/latest/rules/eqeqeq
1692
1702
  */
1693
1703
  'eqeqeq'?: Linter.RuleEntry<Eqeqeq>;
1704
+ /**
1705
+ * Avoid using TypeScript's enums.
1706
+ * @see https://github.com/JoshuaKGoldberg/eslint-plugin-erasable-syntax-only/blob/main/docs/rules/enums.md
1707
+ */
1708
+ 'erasable-syntax-only/enums'?: Linter.RuleEntry<[]>;
1709
+ /**
1710
+ * Avoid using TypeScript's import aliases.
1711
+ * @see https://github.com/JoshuaKGoldberg/eslint-plugin-erasable-syntax-only/blob/main/docs/rules/import-aliases.md
1712
+ */
1713
+ 'erasable-syntax-only/import-aliases'?: Linter.RuleEntry<[]>;
1714
+ /**
1715
+ * Avoid using TypeScript's namespaces.
1716
+ * @see https://github.com/JoshuaKGoldberg/eslint-plugin-erasable-syntax-only/blob/main/docs/rules/namespaces.md
1717
+ */
1718
+ 'erasable-syntax-only/namespaces'?: Linter.RuleEntry<[]>;
1719
+ /**
1720
+ * Avoid using TypeScript's class parameter properties.
1721
+ * @see https://github.com/JoshuaKGoldberg/eslint-plugin-erasable-syntax-only/blob/main/docs/rules/parameter-properties.md
1722
+ */
1723
+ 'erasable-syntax-only/parameter-properties'?: Linter.RuleEntry<[]>;
1694
1724
  /**
1695
1725
  * Enforce `for` loop update clause moving the counter in the right direction
1696
1726
  * @see https://eslint.org/docs/latest/rules/for-direction
@@ -3866,6 +3896,36 @@ interface RuleOptions {
3866
3896
  * @see https://perfectionist.dev/rules/sort-variable-declarations
3867
3897
  */
3868
3898
  'perfectionist/sort-variable-declarations'?: Linter.RuleEntry<PerfectionistSortVariableDeclarations>;
3899
+ /**
3900
+ * Enforce using "catalog:" in `package.json`
3901
+ * @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/json/json-enforce-catalog.test.ts
3902
+ */
3903
+ 'pnpm/json-enforce-catalog'?: Linter.RuleEntry<PnpmJsonEnforceCatalog>;
3904
+ /**
3905
+ * Prefer having pnpm settings in `pnpm-workspace.yaml` instead of `package.json`. This requires pnpm v10.6+, see https://github.com/orgs/pnpm/discussions/9037.
3906
+ * @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/json/json-prefer-workspace-settings.test.ts
3907
+ */
3908
+ 'pnpm/json-prefer-workspace-settings'?: Linter.RuleEntry<PnpmJsonPreferWorkspaceSettings>;
3909
+ /**
3910
+ * Enforce using valid catalog in `package.json`
3911
+ * @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/json/json-valid-catalog.test.ts
3912
+ */
3913
+ 'pnpm/json-valid-catalog'?: Linter.RuleEntry<PnpmJsonValidCatalog>;
3914
+ /**
3915
+ * Disallow duplicate catalog items in `pnpm-workspace.yaml`
3916
+ * @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-no-duplicate-catalog-item.test.ts
3917
+ */
3918
+ 'pnpm/yaml-no-duplicate-catalog-item'?: Linter.RuleEntry<PnpmYamlNoDuplicateCatalogItem>;
3919
+ /**
3920
+ * Disallow unused catalogs in `pnpm-workspace.yaml`
3921
+ * @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-no-unused-catalog-item.test.ts
3922
+ */
3923
+ 'pnpm/yaml-no-unused-catalog-item'?: Linter.RuleEntry<[]>;
3924
+ /**
3925
+ * Ensure all package patterns in `pnpm-workspace.yaml` match at least one directory
3926
+ * @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-valid-packages.test.ts
3927
+ */
3928
+ 'pnpm/yaml-valid-packages'?: Linter.RuleEntry<[]>;
3869
3929
  /**
3870
3930
  * Require using arrow functions for callbacks
3871
3931
  * @see https://eslint.org/docs/latest/rules/prefer-arrow-callback
@@ -4991,710 +5051,725 @@ interface RuleOptions {
4991
5051
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
4992
5052
  /**
4993
5053
  * Improve regexes by making them shorter, consistent, and safer.
4994
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/better-regex.md
5054
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/better-regex.md
4995
5055
  */
4996
5056
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
4997
5057
  /**
4998
5058
  * Enforce a specific parameter name in catch clauses.
4999
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/catch-error-name.md
5059
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/catch-error-name.md
5000
5060
  */
5001
5061
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
5002
5062
  /**
5003
5063
  * Enforce consistent assertion style with `node:assert`.
5004
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-assert.md
5064
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-assert.md
5005
5065
  */
5006
5066
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
5007
5067
  /**
5008
5068
  * Prefer passing `Date` directly to the constructor when cloning.
5009
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-date-clone.md
5069
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-date-clone.md
5010
5070
  */
5011
5071
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
5012
5072
  /**
5013
5073
  * Use destructured variables over properties.
5014
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-destructuring.md
5074
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-destructuring.md
5015
5075
  */
5016
5076
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
5017
5077
  /**
5018
5078
  * Prefer consistent types when spreading a ternary in an array literal.
5019
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-empty-array-spread.md
5079
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-empty-array-spread.md
5020
5080
  */
5021
5081
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
5022
5082
  /**
5023
5083
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
5024
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-existence-index-check.md
5084
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-existence-index-check.md
5025
5085
  */
5026
5086
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
5027
5087
  /**
5028
5088
  * Move function definitions to the highest possible scope.
5029
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-function-scoping.md
5089
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-function-scoping.md
5030
5090
  */
5031
5091
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
5032
5092
  /**
5033
5093
  * Enforce correct `Error` subclassing.
5034
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/custom-error-definition.md
5094
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/custom-error-definition.md
5035
5095
  */
5036
5096
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
5037
5097
  /**
5038
5098
  * Enforce no spaces between braces.
5039
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/empty-brace-spaces.md
5099
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/empty-brace-spaces.md
5040
5100
  */
5041
5101
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
5042
5102
  /**
5043
5103
  * Enforce passing a `message` value when creating a built-in error.
5044
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/error-message.md
5104
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/error-message.md
5045
5105
  */
5046
5106
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
5047
5107
  /**
5048
5108
  * Require escape sequences to use uppercase or lowercase values.
5049
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/escape-case.md
5109
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/escape-case.md
5050
5110
  */
5051
5111
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
5052
5112
  /**
5053
5113
  * Add expiration conditions to TODO comments.
5054
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/expiring-todo-comments.md
5114
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/expiring-todo-comments.md
5055
5115
  */
5056
5116
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
5057
5117
  /**
5058
5118
  * Enforce explicitly comparing the `length` or `size` property of a value.
5059
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/explicit-length-check.md
5119
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/explicit-length-check.md
5060
5120
  */
5061
5121
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
5062
5122
  /**
5063
5123
  * Enforce a case style for filenames.
5064
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/filename-case.md
5124
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/filename-case.md
5065
5125
  */
5066
5126
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
5067
5127
  /**
5068
5128
  * Enforce specific import styles per module.
5069
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/import-style.md
5129
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/import-style.md
5070
5130
  */
5071
5131
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
5072
5132
  /**
5073
5133
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
5074
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/new-for-builtins.md
5134
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/new-for-builtins.md
5075
5135
  */
5076
5136
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
5077
5137
  /**
5078
5138
  * Enforce specifying rules to disable in `eslint-disable` comments.
5079
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-abusive-eslint-disable.md
5139
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-abusive-eslint-disable.md
5080
5140
  */
5081
5141
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
5082
5142
  /**
5083
5143
  * Disallow recursive access to `this` within getters and setters.
5084
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-accessor-recursion.md
5144
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-accessor-recursion.md
5085
5145
  */
5086
5146
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
5087
5147
  /**
5088
5148
  * Disallow anonymous functions and classes as the default export.
5089
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-anonymous-default-export.md
5149
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-anonymous-default-export.md
5090
5150
  */
5091
5151
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
5092
5152
  /**
5093
5153
  * Prevent passing a function reference directly to iterator methods.
5094
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-callback-reference.md
5154
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-callback-reference.md
5095
5155
  */
5096
5156
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
5097
5157
  /**
5098
5158
  * Prefer `for…of` over the `forEach` method.
5099
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-for-each.md
5159
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-for-each.md
5100
5160
  */
5101
5161
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
5102
5162
  /**
5103
5163
  * Disallow using the `this` argument in array methods.
5104
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-method-this-argument.md
5164
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-method-this-argument.md
5105
5165
  */
5106
5166
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
5107
5167
  /**
5108
5168
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
5109
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/deprecated-rules.md#no-array-push-push
5169
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-array-push-push
5110
5170
  * @deprecated
5111
5171
  */
5112
5172
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
5113
5173
  /**
5114
5174
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
5115
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-reduce.md
5175
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reduce.md
5116
5176
  */
5117
5177
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
5118
5178
  /**
5119
5179
  * Prefer `Array#toReversed()` over `Array#reverse()`.
5120
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-reverse.md
5180
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reverse.md
5121
5181
  */
5122
5182
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
5123
5183
  /**
5124
5184
  * Prefer `Array#toSorted()` over `Array#sort()`.
5125
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-sort.md
5185
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-sort.md
5126
5186
  */
5127
5187
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
5128
5188
  /**
5129
5189
  * Disallow member access from await expression.
5130
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-await-expression-member.md
5190
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-expression-member.md
5131
5191
  */
5132
5192
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
5133
5193
  /**
5134
5194
  * Disallow using `await` in `Promise` method parameters.
5135
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-await-in-promise-methods.md
5195
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-in-promise-methods.md
5136
5196
  */
5137
5197
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
5138
5198
  /**
5139
5199
  * Do not use leading/trailing space between `console.log` parameters.
5140
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-console-spaces.md
5200
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-console-spaces.md
5141
5201
  */
5142
5202
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
5143
5203
  /**
5144
5204
  * Do not use `document.cookie` directly.
5145
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-document-cookie.md
5205
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-document-cookie.md
5146
5206
  */
5147
5207
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
5148
5208
  /**
5149
5209
  * Disallow empty files.
5150
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-empty-file.md
5210
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-empty-file.md
5151
5211
  */
5152
5212
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
5153
5213
  /**
5154
5214
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
5155
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-for-loop.md
5215
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-for-loop.md
5156
5216
  */
5157
5217
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
5158
5218
  /**
5159
5219
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
5160
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-hex-escape.md
5220
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-hex-escape.md
5161
5221
  */
5162
5222
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
5223
+ /**
5224
+ * Disallow immediate mutation after variable assignment.
5225
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-immediate-mutation.md
5226
+ */
5227
+ 'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
5163
5228
  /**
5164
5229
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
5165
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/deprecated-rules.md#no-instanceof-array
5230
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-instanceof-array
5166
5231
  * @deprecated
5167
5232
  */
5168
5233
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
5169
5234
  /**
5170
5235
  * Disallow `instanceof` with built-in objects
5171
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-instanceof-builtins.md
5236
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-instanceof-builtins.md
5172
5237
  */
5173
5238
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
5174
5239
  /**
5175
5240
  * Disallow invalid options in `fetch()` and `new Request()`.
5176
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-invalid-fetch-options.md
5241
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-fetch-options.md
5177
5242
  */
5178
5243
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
5179
5244
  /**
5180
5245
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
5181
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-invalid-remove-event-listener.md
5246
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-remove-event-listener.md
5182
5247
  */
5183
5248
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
5184
5249
  /**
5185
5250
  * Disallow identifiers starting with `new` or `class`.
5186
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-keyword-prefix.md
5251
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-keyword-prefix.md
5187
5252
  */
5188
5253
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
5189
5254
  /**
5190
5255
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
5191
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/deprecated-rules.md#no-length-as-slice-end
5256
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-length-as-slice-end
5192
5257
  * @deprecated
5193
5258
  */
5194
5259
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
5195
5260
  /**
5196
5261
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
5197
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-lonely-if.md
5262
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-lonely-if.md
5198
5263
  */
5199
5264
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
5200
5265
  /**
5201
5266
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
5202
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-magic-array-flat-depth.md
5267
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-magic-array-flat-depth.md
5203
5268
  */
5204
5269
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
5205
5270
  /**
5206
5271
  * Disallow named usage of default import and export.
5207
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-named-default.md
5272
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-named-default.md
5208
5273
  */
5209
5274
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
5210
5275
  /**
5211
5276
  * Disallow negated conditions.
5212
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-negated-condition.md
5277
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negated-condition.md
5213
5278
  */
5214
5279
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
5215
5280
  /**
5216
5281
  * Disallow negated expression in equality check.
5217
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-negation-in-equality-check.md
5282
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negation-in-equality-check.md
5218
5283
  */
5219
5284
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
5220
5285
  /**
5221
5286
  * Disallow nested ternary expressions.
5222
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-nested-ternary.md
5287
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-nested-ternary.md
5223
5288
  */
5224
5289
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
5225
5290
  /**
5226
5291
  * Disallow `new Array()`.
5227
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-new-array.md
5292
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-array.md
5228
5293
  */
5229
5294
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
5230
5295
  /**
5231
5296
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
5232
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-new-buffer.md
5297
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-buffer.md
5233
5298
  */
5234
5299
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
5235
5300
  /**
5236
5301
  * Disallow the use of the `null` literal.
5237
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-null.md
5302
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-null.md
5238
5303
  */
5239
5304
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
5240
5305
  /**
5241
5306
  * Disallow the use of objects as default parameters.
5242
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-object-as-default-parameter.md
5307
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-object-as-default-parameter.md
5243
5308
  */
5244
5309
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
5245
5310
  /**
5246
5311
  * Disallow `process.exit()`.
5247
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-process-exit.md
5312
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-process-exit.md
5248
5313
  */
5249
5314
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
5250
5315
  /**
5251
5316
  * Disallow passing single-element arrays to `Promise` methods.
5252
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-single-promise-in-promise-methods.md
5317
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-single-promise-in-promise-methods.md
5253
5318
  */
5254
5319
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
5255
5320
  /**
5256
5321
  * Disallow classes that only have static members.
5257
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-static-only-class.md
5322
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-static-only-class.md
5258
5323
  */
5259
5324
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
5260
5325
  /**
5261
5326
  * Disallow `then` property.
5262
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-thenable.md
5327
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-thenable.md
5263
5328
  */
5264
5329
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
5265
5330
  /**
5266
5331
  * Disallow assigning `this` to a variable.
5267
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-this-assignment.md
5332
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-this-assignment.md
5268
5333
  */
5269
5334
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
5270
5335
  /**
5271
5336
  * Disallow comparing `undefined` using `typeof`.
5272
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-typeof-undefined.md
5337
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-typeof-undefined.md
5273
5338
  */
5274
5339
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
5275
5340
  /**
5276
5341
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
5277
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-array-flat-depth.md
5342
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-flat-depth.md
5278
5343
  */
5279
5344
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
5280
5345
  /**
5281
5346
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
5282
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-array-splice-count.md
5347
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-splice-count.md
5283
5348
  */
5284
5349
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
5285
5350
  /**
5286
5351
  * Disallow awaiting non-promise values.
5287
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-await.md
5352
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-await.md
5288
5353
  */
5289
5354
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
5290
5355
  /**
5291
5356
  * Enforce the use of built-in methods instead of unnecessary polyfills.
5292
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-polyfills.md
5357
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-polyfills.md
5293
5358
  */
5294
5359
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
5295
5360
  /**
5296
5361
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
5297
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-slice-end.md
5362
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-slice-end.md
5298
5363
  */
5299
5364
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
5300
5365
  /**
5301
5366
  * Disallow unreadable array destructuring.
5302
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unreadable-array-destructuring.md
5367
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-array-destructuring.md
5303
5368
  */
5304
5369
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
5305
5370
  /**
5306
5371
  * Disallow unreadable IIFEs.
5307
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unreadable-iife.md
5372
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-iife.md
5308
5373
  */
5309
5374
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
5310
5375
  /**
5311
5376
  * Disallow unused object properties.
5312
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unused-properties.md
5377
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unused-properties.md
5313
5378
  */
5314
5379
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
5380
+ /**
5381
+ * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
5382
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-collection-argument.md
5383
+ */
5384
+ 'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
5315
5385
  /**
5316
5386
  * Disallow unnecessary `Error.captureStackTrace(…)`.
5317
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-error-capture-stack-trace.md
5387
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-error-capture-stack-trace.md
5318
5388
  */
5319
5389
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
5320
5390
  /**
5321
5391
  * Disallow useless fallback when spreading in object literals.
5322
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-fallback-in-spread.md
5392
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-fallback-in-spread.md
5323
5393
  */
5324
5394
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
5325
5395
  /**
5326
5396
  * Disallow useless array length check.
5327
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-length-check.md
5397
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-length-check.md
5328
5398
  */
5329
5399
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
5330
5400
  /**
5331
5401
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
5332
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-promise-resolve-reject.md
5402
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-promise-resolve-reject.md
5333
5403
  */
5334
5404
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
5335
5405
  /**
5336
5406
  * Disallow unnecessary spread.
5337
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-spread.md
5407
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-spread.md
5338
5408
  */
5339
5409
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
5340
5410
  /**
5341
5411
  * Disallow useless case in switch statements.
5342
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-switch-case.md
5412
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-switch-case.md
5343
5413
  */
5344
5414
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
5345
5415
  /**
5346
5416
  * Disallow useless `undefined`.
5347
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-undefined.md
5417
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-undefined.md
5348
5418
  */
5349
5419
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
5350
5420
  /**
5351
5421
  * Disallow number literals with zero fractions or dangling dots.
5352
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-zero-fractions.md
5422
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-zero-fractions.md
5353
5423
  */
5354
5424
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
5355
5425
  /**
5356
5426
  * Enforce proper case for numeric literals.
5357
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/number-literal-case.md
5427
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/number-literal-case.md
5358
5428
  */
5359
5429
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
5360
5430
  /**
5361
5431
  * Enforce the style of numeric separators by correctly grouping digits.
5362
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/numeric-separators-style.md
5432
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/numeric-separators-style.md
5363
5433
  */
5364
5434
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
5365
5435
  /**
5366
5436
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
5367
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-add-event-listener.md
5437
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-add-event-listener.md
5368
5438
  */
5369
5439
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
5370
5440
  /**
5371
5441
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
5372
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-find.md
5442
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-find.md
5373
5443
  */
5374
5444
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
5375
5445
  /**
5376
5446
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
5377
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-flat.md
5447
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat.md
5378
5448
  */
5379
5449
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
5380
5450
  /**
5381
5451
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
5382
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-flat-map.md
5452
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat-map.md
5383
5453
  */
5384
5454
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
5385
5455
  /**
5386
5456
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
5387
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-index-of.md
5457
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-index-of.md
5388
5458
  */
5389
5459
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
5390
5460
  /**
5391
5461
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
5392
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-some.md
5462
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-some.md
5393
5463
  */
5394
5464
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
5395
5465
  /**
5396
5466
  * Prefer `.at()` method for index access and `String#charAt()`.
5397
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-at.md
5467
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-at.md
5398
5468
  */
5399
5469
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
5400
5470
  /**
5401
5471
  * Prefer `BigInt` literals over the constructor.
5402
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-bigint-literals.md
5472
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-bigint-literals.md
5403
5473
  */
5404
5474
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
5405
5475
  /**
5406
5476
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
5407
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-blob-reading-methods.md
5477
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-blob-reading-methods.md
5408
5478
  */
5409
5479
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
5410
5480
  /**
5411
5481
  * Prefer class field declarations over `this` assignments in constructors.
5412
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-class-fields.md
5482
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-class-fields.md
5413
5483
  */
5414
5484
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
5415
5485
  /**
5416
5486
  * Prefer using `Element#classList.toggle()` to toggle class names.
5417
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-classlist-toggle.md
5487
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-classlist-toggle.md
5418
5488
  */
5419
5489
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
5420
5490
  /**
5421
5491
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
5422
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-code-point.md
5492
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-code-point.md
5423
5493
  */
5424
5494
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
5425
5495
  /**
5426
5496
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
5427
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-date-now.md
5497
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-date-now.md
5428
5498
  */
5429
5499
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
5430
5500
  /**
5431
5501
  * Prefer default parameters over reassignment.
5432
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-default-parameters.md
5502
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-default-parameters.md
5433
5503
  */
5434
5504
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
5435
5505
  /**
5436
5506
  * Prefer `Node#append()` over `Node#appendChild()`.
5437
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-append.md
5507
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-append.md
5438
5508
  */
5439
5509
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
5440
5510
  /**
5441
5511
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
5442
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-dataset.md
5512
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-dataset.md
5443
5513
  */
5444
5514
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
5445
5515
  /**
5446
5516
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
5447
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-remove.md
5517
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-remove.md
5448
5518
  */
5449
5519
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
5450
5520
  /**
5451
5521
  * Prefer `.textContent` over `.innerText`.
5452
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-text-content.md
5522
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-text-content.md
5453
5523
  */
5454
5524
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
5455
5525
  /**
5456
5526
  * Prefer `EventTarget` over `EventEmitter`.
5457
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-event-target.md
5527
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-event-target.md
5458
5528
  */
5459
5529
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
5460
5530
  /**
5461
5531
  * Prefer `export…from` when re-exporting.
5462
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-export-from.md
5532
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-export-from.md
5463
5533
  */
5464
5534
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
5465
5535
  /**
5466
5536
  * Prefer `globalThis` over `window`, `self`, and `global`.
5467
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-global-this.md
5537
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-global-this.md
5468
5538
  */
5469
5539
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
5470
5540
  /**
5471
5541
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
5472
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-import-meta-properties.md
5542
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-import-meta-properties.md
5473
5543
  */
5474
5544
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
5475
5545
  /**
5476
5546
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
5477
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-includes.md
5547
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-includes.md
5478
5548
  */
5479
5549
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
5480
5550
  /**
5481
5551
  * Prefer reading a JSON file as a buffer.
5482
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-json-parse-buffer.md
5552
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-json-parse-buffer.md
5483
5553
  */
5484
5554
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
5485
5555
  /**
5486
5556
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
5487
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-keyboard-event-key.md
5557
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-keyboard-event-key.md
5488
5558
  */
5489
5559
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
5490
5560
  /**
5491
5561
  * Prefer using a logical operator over a ternary.
5492
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-logical-operator-over-ternary.md
5562
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-logical-operator-over-ternary.md
5493
5563
  */
5494
5564
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
5495
5565
  /**
5496
5566
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
5497
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-math-min-max.md
5567
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-min-max.md
5498
5568
  */
5499
5569
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
5500
5570
  /**
5501
5571
  * Enforce the use of `Math.trunc` instead of bitwise operators.
5502
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-math-trunc.md
5572
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-trunc.md
5503
5573
  */
5504
5574
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
5505
5575
  /**
5506
5576
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
5507
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-modern-dom-apis.md
5577
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-dom-apis.md
5508
5578
  */
5509
5579
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
5510
5580
  /**
5511
5581
  * Prefer modern `Math` APIs over legacy patterns.
5512
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-modern-math-apis.md
5582
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-math-apis.md
5513
5583
  */
5514
5584
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
5515
5585
  /**
5516
5586
  * Prefer JavaScript modules (ESM) over CommonJS.
5517
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-module.md
5587
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-module.md
5518
5588
  */
5519
5589
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
5520
5590
  /**
5521
5591
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
5522
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-native-coercion-functions.md
5592
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-native-coercion-functions.md
5523
5593
  */
5524
5594
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
5525
5595
  /**
5526
5596
  * Prefer negative index over `.length - index` when possible.
5527
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-negative-index.md
5597
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-negative-index.md
5528
5598
  */
5529
5599
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
5530
5600
  /**
5531
5601
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
5532
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-node-protocol.md
5602
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-node-protocol.md
5533
5603
  */
5534
5604
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
5535
5605
  /**
5536
5606
  * Prefer `Number` static properties over global ones.
5537
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-number-properties.md
5607
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-number-properties.md
5538
5608
  */
5539
5609
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
5540
5610
  /**
5541
5611
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
5542
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-object-from-entries.md
5612
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-object-from-entries.md
5543
5613
  */
5544
5614
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
5545
5615
  /**
5546
5616
  * Prefer omitting the `catch` binding parameter.
5547
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-optional-catch-binding.md
5617
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-optional-catch-binding.md
5548
5618
  */
5549
5619
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
5550
5620
  /**
5551
5621
  * Prefer borrowing methods from the prototype instead of the instance.
5552
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-prototype-methods.md
5622
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-prototype-methods.md
5553
5623
  */
5554
5624
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
5555
5625
  /**
5556
5626
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
5557
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-query-selector.md
5627
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-query-selector.md
5558
5628
  */
5559
5629
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
5560
5630
  /**
5561
5631
  * Prefer `Reflect.apply()` over `Function#apply()`.
5562
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-reflect-apply.md
5632
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-reflect-apply.md
5563
5633
  */
5564
5634
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
5565
5635
  /**
5566
5636
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
5567
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-regexp-test.md
5637
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-regexp-test.md
5568
5638
  */
5569
5639
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
5640
+ /**
5641
+ * Prefer `Response.json()` over `new Response(JSON.stringify())`.
5642
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-response-static-json.md
5643
+ */
5644
+ 'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
5570
5645
  /**
5571
5646
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
5572
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-set-has.md
5647
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-has.md
5573
5648
  */
5574
5649
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
5575
5650
  /**
5576
5651
  * Prefer using `Set#size` instead of `Array#length`.
5577
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-set-size.md
5652
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-size.md
5578
5653
  */
5579
5654
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
5580
5655
  /**
5581
5656
  * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
5582
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-single-call.md
5657
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-single-call.md
5583
5658
  */
5584
5659
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
5585
5660
  /**
5586
5661
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
5587
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-spread.md
5662
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-spread.md
5588
5663
  */
5589
5664
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
5590
5665
  /**
5591
5666
  * Prefer using the `String.raw` tag to avoid escaping `\`.
5592
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-raw.md
5667
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-raw.md
5593
5668
  */
5594
5669
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
5595
5670
  /**
5596
5671
  * Prefer `String#replaceAll()` over regex searches with the global flag.
5597
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-replace-all.md
5672
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-replace-all.md
5598
5673
  */
5599
5674
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
5600
5675
  /**
5601
5676
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
5602
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-slice.md
5677
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-slice.md
5603
5678
  */
5604
5679
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
5605
5680
  /**
5606
5681
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
5607
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-starts-ends-with.md
5682
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-starts-ends-with.md
5608
5683
  */
5609
5684
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
5610
5685
  /**
5611
5686
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
5612
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-trim-start-end.md
5687
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-trim-start-end.md
5613
5688
  */
5614
5689
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
5615
5690
  /**
5616
5691
  * Prefer using `structuredClone` to create a deep clone.
5617
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-structured-clone.md
5692
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-structured-clone.md
5618
5693
  */
5619
5694
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
5620
5695
  /**
5621
5696
  * Prefer `switch` over multiple `else-if`.
5622
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-switch.md
5697
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-switch.md
5623
5698
  */
5624
5699
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
5625
5700
  /**
5626
5701
  * Prefer ternary expressions over simple `if-else` statements.
5627
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-ternary.md
5702
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-ternary.md
5628
5703
  */
5629
5704
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
5630
5705
  /**
5631
5706
  * Prefer top-level await over top-level promises and async function calls.
5632
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-top-level-await.md
5707
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-top-level-await.md
5633
5708
  */
5634
5709
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
5635
5710
  /**
5636
5711
  * Enforce throwing `TypeError` in type checking conditions.
5637
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-type-error.md
5712
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-type-error.md
5638
5713
  */
5639
5714
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
5640
5715
  /**
5641
5716
  * Prevent abbreviations.
5642
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prevent-abbreviations.md
5717
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prevent-abbreviations.md
5643
5718
  */
5644
5719
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
5645
5720
  /**
5646
5721
  * Enforce consistent relative URL style.
5647
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/relative-url-style.md
5722
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/relative-url-style.md
5648
5723
  */
5649
5724
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
5650
5725
  /**
5651
5726
  * Enforce using the separator argument with `Array#join()`.
5652
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-array-join-separator.md
5727
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-array-join-separator.md
5653
5728
  */
5654
5729
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
5655
5730
  /**
5656
5731
  * Require non-empty module attributes for imports and exports
5657
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-module-attributes.md
5732
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-attributes.md
5658
5733
  */
5659
5734
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
5660
5735
  /**
5661
5736
  * Require non-empty specifier list in import and export statements.
5662
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-module-specifiers.md
5737
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-specifiers.md
5663
5738
  */
5664
5739
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
5665
5740
  /**
5666
5741
  * Enforce using the digits argument with `Number#toFixed()`.
5667
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-number-to-fixed-digits-argument.md
5742
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-number-to-fixed-digits-argument.md
5668
5743
  */
5669
5744
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
5670
5745
  /**
5671
5746
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
5672
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-post-message-target-origin.md
5747
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-post-message-target-origin.md
5673
5748
  */
5674
5749
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
5675
5750
  /**
5676
5751
  * Enforce better string content.
5677
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/string-content.md
5752
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/string-content.md
5678
5753
  */
5679
5754
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
5680
5755
  /**
5681
5756
  * Enforce consistent brace style for `case` clauses.
5682
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/switch-case-braces.md
5757
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/switch-case-braces.md
5683
5758
  */
5684
5759
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
5685
5760
  /**
5686
5761
  * Fix whitespace-insensitive template indentation.
5687
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/template-indent.md
5762
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/template-indent.md
5688
5763
  */
5689
5764
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
5690
5765
  /**
5691
5766
  * Enforce consistent case for text encoding identifiers.
5692
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/text-encoding-identifier-case.md
5767
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/text-encoding-identifier-case.md
5693
5768
  */
5694
- 'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>;
5769
+ 'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
5695
5770
  /**
5696
5771
  * Require `new` when creating an error.
5697
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/throw-new-error.md
5772
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/throw-new-error.md
5698
5773
  */
5699
5774
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
5700
5775
  /**
@@ -9409,6 +9484,13 @@ type ArrowSpacing = [] | [{
9409
9484
  before?: boolean;
9410
9485
  after?: boolean;
9411
9486
  }];
9487
+ // ----- astro/no-unsafe-inline-scripts -----
9488
+ type AstroNoUnsafeInlineScripts = [] | [{
9489
+ allowDefineVars?: boolean;
9490
+ allowModuleScripts?: boolean;
9491
+ allowNonExecutingTypes?: string[];
9492
+ allowNonce?: boolean;
9493
+ }];
9412
9494
  // ----- astro/prefer-split-class-list -----
9413
9495
  type AstroPreferSplitClassList = [] | [{
9414
9496
  splitLiteral?: boolean;
@@ -13537,6 +13619,33 @@ type PerfectionistSortVariableDeclarations = [] | [{
13537
13619
  commentAbove?: string;
13538
13620
  })[];
13539
13621
  }];
13622
+ // ----- pnpm/json-enforce-catalog -----
13623
+ type PnpmJsonEnforceCatalog = [] | [{
13624
+ allowedProtocols?: string[];
13625
+ autofix?: boolean;
13626
+ defaultCatalog?: string;
13627
+ reuseExistingCatalog?: boolean;
13628
+ conflicts?: ("new-catalog" | "overrides" | "error");
13629
+ fields?: string[];
13630
+ ignores?: string[];
13631
+ }];
13632
+ // ----- pnpm/json-prefer-workspace-settings -----
13633
+ type PnpmJsonPreferWorkspaceSettings = [] | [{
13634
+ autofix?: boolean;
13635
+ }];
13636
+ // ----- pnpm/json-valid-catalog -----
13637
+ type PnpmJsonValidCatalog = [] | [{
13638
+ autoInsert?: boolean;
13639
+ autoInsertDefaultSpecifier?: string;
13640
+ autofix?: boolean;
13641
+ enforceNoConflict?: boolean;
13642
+ fields?: unknown[];
13643
+ }];
13644
+ // ----- pnpm/yaml-no-duplicate-catalog-item -----
13645
+ type PnpmYamlNoDuplicateCatalogItem = [] | [{
13646
+ allow?: string[];
13647
+ checkDuplicates?: ("name-only" | "exact-version");
13648
+ }];
13540
13649
  // ----- prefer-arrow-callback -----
13541
13650
  type PreferArrowCallback = [] | [{
13542
13651
  allowNamedFunctions?: boolean;
@@ -14271,6 +14380,10 @@ type UnicornTemplateIndent = [] | [{
14271
14380
  selectors?: string[];
14272
14381
  comments?: string[];
14273
14382
  }];
14383
+ // ----- unicorn/text-encoding-identifier-case -----
14384
+ type UnicornTextEncodingIdentifierCase = [] | [{
14385
+ withDash?: boolean;
14386
+ }];
14274
14387
  // ----- unused-imports/no-unused-imports -----
14275
14388
  type UnusedImportsNoUnusedImports = [] | [(("all" | "local") | {
14276
14389
  args?: ("all" | "after-used" | "none");
@@ -15717,6 +15830,6 @@ type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
15717
15830
  onlyEquality?: boolean;
15718
15831
  }];
15719
15832
  // Names of all the configs
15720
- type ConfigNames = 'eienjs/adonisjs/rules' | 'eienjs/adonisjs/disables' | 'eienjs/adonisjs/database-disables' | 'eienjs/adonisjs/bin-disables' | 'eienjs/adonisjs/commands-disables' | 'eienjs/adonisjs/middleware-disables' | 'eienjs/adonisjs/exceptions-disables' | 'eienjs/adonisjs/controllers-disables' | 'eienjs/adonisjs/config-disables' | 'eienjs/adonisjs/providers-disables' | 'eienjs/adonisjs/tests-disables' | 'eienjs/astro/setup' | 'eienjs/astro/rules' | 'eienjs/eslint-comments/rules' | 'eienjs/formatter/setup' | 'eienjs/imports/rules' | 'eienjs/javascript/setup' | 'eienjs/javascript/rules' | 'eienjs/jsdoc/rules' | 'eienjs/jsonc/setup' | 'eienjs/jsonc/rules' | 'eienjs/markdown/setup' | 'eienjs/markdown/processor' | 'eienjs/markdown/parser' | 'eienjs/markdown/disables' | 'eienjs/node/rules' | 'eienjs/nuxt/setup' | 'eienjs/nuxt/vue/single-root' | 'eienjs/nuxt/rules' | 'eienjs/nuxt/utils-disables' | 'eienjs/nuxt/sort-config' | 'eienjs/nuxt/vue/rules' | 'eienjs/perfectionist/setup' | 'eienjs/sort/package-json' | 'eienjs/stylistic/rules' | 'eienjs/test/setup' | 'eienjs/test/rules' | 'eienjs/toml/setup' | 'eienjs/toml/rules' | 'eienjs/regexp/rules' | 'eienjs/typescript/setup' | 'eienjs/typescript/parser' | 'eienjs/typescript/rules' | 'eienjs/typescript/disables' | 'eienjs/unicorn/rules' | 'eienjs/unicorn/special-rules' | 'eienjs/vue/setup' | 'eienjs/vue/rules' | 'eienjs/vue/composables-disables' | 'eienjs/yaml/setup' | 'eienjs/yaml/rules' | 'eienjs/yaml/pnpm-workspace';
15833
+ type ConfigNames = 'eienjs/gitignore' | 'eienjs/ignores' | 'eienjs/javascript/setup' | 'eienjs/javascript/rules' | 'eienjs/eslint-comments/rules' | 'eienjs/node/rules' | 'eienjs/jsdoc/rules' | 'eienjs/imports/rules' | 'eienjs/command/rules' | 'eienjs/perfectionist/setup' | 'eienjs/imports/rules' | 'eienjs/unicorn/rules' | 'eienjs/unicorn/special-rules' | 'eienjs/typescript/setup' | 'eienjs/typescript/parser' | 'eienjs/typescript/type-aware-parser' | 'eienjs/typescript/rules' | 'eienjs/typescript/rules-type-aware' | 'eienjs/typescript/disables' | 'eienjs/typescript/erasable-syntax-only' | 'eienjs/stylistic/rules' | 'eienjs/regexp/rules' | 'eienjs/test/setup' | 'eienjs/test/rules' | 'eienjs/vue/setup' | 'eienjs/vue/rules' | 'eienjs/vue/composables-disables' | 'eienjs/astro/setup' | 'eienjs/astro/rules' | 'eienjs/adonisjs/rules' | 'eienjs/adonisjs/disables' | 'eienjs/adonisjs/database-disables' | 'eienjs/adonisjs/bin-disables' | 'eienjs/adonisjs/commands-disables' | 'eienjs/adonisjs/middleware-disables' | 'eienjs/adonisjs/exceptions-disables' | 'eienjs/adonisjs/controllers-disables' | 'eienjs/adonisjs/config-disables' | 'eienjs/adonisjs/providers-disables' | 'eienjs/adonisjs/tests-disables' | 'eienjs/nuxt/setup' | 'eienjs/nuxt/vue/single-root' | 'eienjs/nuxt/rules' | 'eienjs/nuxt/utils-disables' | 'eienjs/nuxt/sort-config' | 'eienjs/nuxt/vue/rules' | 'eienjs/jsonc/setup' | 'eienjs/jsonc/rules' | 'eienjs/sort/package-json' | 'eienjs/sort/tsconfig-json' | 'eienjs/pnpm/package-json' | 'eienjs/pnpm/pnpm-workspace-yaml' | 'eienjs/yaml/setup' | 'eienjs/yaml/rules' | 'eienjs/yaml/pnpm-workspace' | 'eienjs/toml/setup' | 'eienjs/toml/rules' | 'eienjs/markdown/setup' | 'eienjs/markdown/processor' | 'eienjs/markdown/parser' | 'eienjs/markdown/disables' | 'eienjs/formatter/setup' | 'eienjs/formatter/css' | 'eienjs/formatter/scss' | 'eienjs/formatter/less' | 'eienjs/formatter/html' | 'eienjs/formatter/xml' | 'eienjs/formatter/svg' | 'eienjs/formatter/markdown' | 'eienjs/formatter/astro' | 'eienjs/formatter/astro/disables' | 'eienjs/disables/scripts' | 'eienjs/disables/cli' | 'eienjs/disables/bin' | 'eienjs/disables/dts' | 'eienjs/disables/cjs' | 'eienjs/disables/config-files' | 'eienjs/disables/json' | 'eienjs/disables/yaml' | 'eienjs/disables/toml' | 'eienjs/disables/astro';
15721
15834
  //#endregion
15722
15835
  export { ConfigNames, RuleOptions };