@coderwyd/eslint-config 4.7.2 → 4.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -2345,6 +2345,36 @@ interface RuleOptions {
2345
2345
  * @see https://perfectionist.dev/rules/sort-variable-declarations
2346
2346
  */
2347
2347
  'perfectionist/sort-variable-declarations'?: Linter.RuleEntry<PerfectionistSortVariableDeclarations>;
2348
+ /**
2349
+ * Enforce using "catalog:" in `package.json`
2350
+ * @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/json/json-enforce-catalog.test.ts
2351
+ */
2352
+ 'pnpm/json-enforce-catalog'?: Linter.RuleEntry<PnpmJsonEnforceCatalog>;
2353
+ /**
2354
+ * 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.
2355
+ * @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/json/json-prefer-workspace-settings.test.ts
2356
+ */
2357
+ 'pnpm/json-prefer-workspace-settings'?: Linter.RuleEntry<PnpmJsonPreferWorkspaceSettings>;
2358
+ /**
2359
+ * Enforce using valid catalog in `package.json`
2360
+ * @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/json/json-valid-catalog.test.ts
2361
+ */
2362
+ 'pnpm/json-valid-catalog'?: Linter.RuleEntry<PnpmJsonValidCatalog>;
2363
+ /**
2364
+ * Disallow duplicate catalog items in `pnpm-workspace.yaml`
2365
+ * @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-no-duplicate-catalog-item.test.ts
2366
+ */
2367
+ 'pnpm/yaml-no-duplicate-catalog-item'?: Linter.RuleEntry<PnpmYamlNoDuplicateCatalogItem>;
2368
+ /**
2369
+ * Disallow unused catalogs in `pnpm-workspace.yaml`
2370
+ * @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-no-unused-catalog-item.test.ts
2371
+ */
2372
+ 'pnpm/yaml-no-unused-catalog-item'?: Linter.RuleEntry<[]>;
2373
+ /**
2374
+ * Ensure all package patterns in `pnpm-workspace.yaml` match at least one directory
2375
+ * @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-valid-packages.test.ts
2376
+ */
2377
+ 'pnpm/yaml-valid-packages'?: Linter.RuleEntry<[]>;
2348
2378
  /**
2349
2379
  * Require using arrow functions for callbacks
2350
2380
  * @see https://eslint.org/docs/latest/rules/prefer-arrow-callback
@@ -2648,7 +2678,7 @@ interface RuleOptions {
2648
2678
  */
2649
2679
  'react-hooks/use-memo'?: Linter.RuleEntry<ReactHooksUseMemo>;
2650
2680
  /**
2651
- * Validates that useMemos always return a value. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
2681
+ * Validates that useMemos always return a value and that the result of the useMemo is used by the component/hook. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
2652
2682
  */
2653
2683
  'react-hooks/void-use-memo'?: Linter.RuleEntry<ReactHooksVoidUseMemo>;
2654
2684
  /**
@@ -5029,710 +5059,725 @@ interface RuleOptions {
5029
5059
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
5030
5060
  /**
5031
5061
  * Improve regexes by making them shorter, consistent, and safer.
5032
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/better-regex.md
5062
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/better-regex.md
5033
5063
  */
5034
5064
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
5035
5065
  /**
5036
5066
  * Enforce a specific parameter name in catch clauses.
5037
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/catch-error-name.md
5067
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/catch-error-name.md
5038
5068
  */
5039
5069
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
5040
5070
  /**
5041
5071
  * Enforce consistent assertion style with `node:assert`.
5042
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-assert.md
5072
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-assert.md
5043
5073
  */
5044
5074
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
5045
5075
  /**
5046
5076
  * Prefer passing `Date` directly to the constructor when cloning.
5047
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-date-clone.md
5077
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-date-clone.md
5048
5078
  */
5049
5079
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
5050
5080
  /**
5051
5081
  * Use destructured variables over properties.
5052
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-destructuring.md
5082
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-destructuring.md
5053
5083
  */
5054
5084
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
5055
5085
  /**
5056
5086
  * Prefer consistent types when spreading a ternary in an array literal.
5057
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-empty-array-spread.md
5087
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-empty-array-spread.md
5058
5088
  */
5059
5089
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
5060
5090
  /**
5061
5091
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
5062
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-existence-index-check.md
5092
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-existence-index-check.md
5063
5093
  */
5064
5094
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
5065
5095
  /**
5066
5096
  * Move function definitions to the highest possible scope.
5067
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-function-scoping.md
5097
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-function-scoping.md
5068
5098
  */
5069
5099
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
5070
5100
  /**
5071
5101
  * Enforce correct `Error` subclassing.
5072
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/custom-error-definition.md
5102
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/custom-error-definition.md
5073
5103
  */
5074
5104
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
5075
5105
  /**
5076
5106
  * Enforce no spaces between braces.
5077
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/empty-brace-spaces.md
5107
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/empty-brace-spaces.md
5078
5108
  */
5079
5109
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
5080
5110
  /**
5081
5111
  * Enforce passing a `message` value when creating a built-in error.
5082
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/error-message.md
5112
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/error-message.md
5083
5113
  */
5084
5114
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
5085
5115
  /**
5086
5116
  * Require escape sequences to use uppercase or lowercase values.
5087
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/escape-case.md
5117
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/escape-case.md
5088
5118
  */
5089
5119
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
5090
5120
  /**
5091
5121
  * Add expiration conditions to TODO comments.
5092
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/expiring-todo-comments.md
5122
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/expiring-todo-comments.md
5093
5123
  */
5094
5124
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
5095
5125
  /**
5096
5126
  * Enforce explicitly comparing the `length` or `size` property of a value.
5097
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/explicit-length-check.md
5127
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/explicit-length-check.md
5098
5128
  */
5099
5129
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
5100
5130
  /**
5101
5131
  * Enforce a case style for filenames.
5102
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/filename-case.md
5132
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/filename-case.md
5103
5133
  */
5104
5134
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
5105
5135
  /**
5106
5136
  * Enforce specific import styles per module.
5107
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/import-style.md
5137
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/import-style.md
5108
5138
  */
5109
5139
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
5110
5140
  /**
5111
5141
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
5112
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/new-for-builtins.md
5142
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/new-for-builtins.md
5113
5143
  */
5114
5144
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
5115
5145
  /**
5116
5146
  * Enforce specifying rules to disable in `eslint-disable` comments.
5117
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-abusive-eslint-disable.md
5147
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-abusive-eslint-disable.md
5118
5148
  */
5119
5149
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
5120
5150
  /**
5121
5151
  * Disallow recursive access to `this` within getters and setters.
5122
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-accessor-recursion.md
5152
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-accessor-recursion.md
5123
5153
  */
5124
5154
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
5125
5155
  /**
5126
5156
  * Disallow anonymous functions and classes as the default export.
5127
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-anonymous-default-export.md
5157
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-anonymous-default-export.md
5128
5158
  */
5129
5159
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
5130
5160
  /**
5131
5161
  * Prevent passing a function reference directly to iterator methods.
5132
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-callback-reference.md
5162
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-callback-reference.md
5133
5163
  */
5134
5164
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
5135
5165
  /**
5136
5166
  * Prefer `for…of` over the `forEach` method.
5137
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-for-each.md
5167
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-for-each.md
5138
5168
  */
5139
5169
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
5140
5170
  /**
5141
5171
  * Disallow using the `this` argument in array methods.
5142
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-method-this-argument.md
5172
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-method-this-argument.md
5143
5173
  */
5144
5174
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
5145
5175
  /**
5146
5176
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
5147
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/deprecated-rules.md#no-array-push-push
5177
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-array-push-push
5148
5178
  * @deprecated
5149
5179
  */
5150
5180
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
5151
5181
  /**
5152
5182
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
5153
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-reduce.md
5183
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reduce.md
5154
5184
  */
5155
5185
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
5156
5186
  /**
5157
5187
  * Prefer `Array#toReversed()` over `Array#reverse()`.
5158
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-reverse.md
5188
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reverse.md
5159
5189
  */
5160
5190
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
5161
5191
  /**
5162
5192
  * Prefer `Array#toSorted()` over `Array#sort()`.
5163
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-sort.md
5193
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-sort.md
5164
5194
  */
5165
5195
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
5166
5196
  /**
5167
5197
  * Disallow member access from await expression.
5168
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-await-expression-member.md
5198
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-expression-member.md
5169
5199
  */
5170
5200
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
5171
5201
  /**
5172
5202
  * Disallow using `await` in `Promise` method parameters.
5173
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-await-in-promise-methods.md
5203
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-in-promise-methods.md
5174
5204
  */
5175
5205
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
5176
5206
  /**
5177
5207
  * Do not use leading/trailing space between `console.log` parameters.
5178
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-console-spaces.md
5208
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-console-spaces.md
5179
5209
  */
5180
5210
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
5181
5211
  /**
5182
5212
  * Do not use `document.cookie` directly.
5183
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-document-cookie.md
5213
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-document-cookie.md
5184
5214
  */
5185
5215
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
5186
5216
  /**
5187
5217
  * Disallow empty files.
5188
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-empty-file.md
5218
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-empty-file.md
5189
5219
  */
5190
5220
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
5191
5221
  /**
5192
5222
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
5193
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-for-loop.md
5223
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-for-loop.md
5194
5224
  */
5195
5225
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
5196
5226
  /**
5197
5227
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
5198
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-hex-escape.md
5228
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-hex-escape.md
5199
5229
  */
5200
5230
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
5231
+ /**
5232
+ * Disallow immediate mutation after variable assignment.
5233
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-immediate-mutation.md
5234
+ */
5235
+ 'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
5201
5236
  /**
5202
5237
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
5203
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/deprecated-rules.md#no-instanceof-array
5238
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-instanceof-array
5204
5239
  * @deprecated
5205
5240
  */
5206
5241
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
5207
5242
  /**
5208
5243
  * Disallow `instanceof` with built-in objects
5209
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-instanceof-builtins.md
5244
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-instanceof-builtins.md
5210
5245
  */
5211
5246
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
5212
5247
  /**
5213
5248
  * Disallow invalid options in `fetch()` and `new Request()`.
5214
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-invalid-fetch-options.md
5249
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-fetch-options.md
5215
5250
  */
5216
5251
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
5217
5252
  /**
5218
5253
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
5219
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-invalid-remove-event-listener.md
5254
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-remove-event-listener.md
5220
5255
  */
5221
5256
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
5222
5257
  /**
5223
5258
  * Disallow identifiers starting with `new` or `class`.
5224
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-keyword-prefix.md
5259
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-keyword-prefix.md
5225
5260
  */
5226
5261
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
5227
5262
  /**
5228
5263
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
5229
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/deprecated-rules.md#no-length-as-slice-end
5264
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-length-as-slice-end
5230
5265
  * @deprecated
5231
5266
  */
5232
5267
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
5233
5268
  /**
5234
5269
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
5235
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-lonely-if.md
5270
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-lonely-if.md
5236
5271
  */
5237
5272
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
5238
5273
  /**
5239
5274
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
5240
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-magic-array-flat-depth.md
5275
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-magic-array-flat-depth.md
5241
5276
  */
5242
5277
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
5243
5278
  /**
5244
5279
  * Disallow named usage of default import and export.
5245
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-named-default.md
5280
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-named-default.md
5246
5281
  */
5247
5282
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
5248
5283
  /**
5249
5284
  * Disallow negated conditions.
5250
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-negated-condition.md
5285
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negated-condition.md
5251
5286
  */
5252
5287
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
5253
5288
  /**
5254
5289
  * Disallow negated expression in equality check.
5255
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-negation-in-equality-check.md
5290
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negation-in-equality-check.md
5256
5291
  */
5257
5292
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
5258
5293
  /**
5259
5294
  * Disallow nested ternary expressions.
5260
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-nested-ternary.md
5295
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-nested-ternary.md
5261
5296
  */
5262
5297
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
5263
5298
  /**
5264
5299
  * Disallow `new Array()`.
5265
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-new-array.md
5300
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-array.md
5266
5301
  */
5267
5302
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
5268
5303
  /**
5269
5304
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
5270
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-new-buffer.md
5305
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-buffer.md
5271
5306
  */
5272
5307
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
5273
5308
  /**
5274
5309
  * Disallow the use of the `null` literal.
5275
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-null.md
5310
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-null.md
5276
5311
  */
5277
5312
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
5278
5313
  /**
5279
5314
  * Disallow the use of objects as default parameters.
5280
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-object-as-default-parameter.md
5315
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-object-as-default-parameter.md
5281
5316
  */
5282
5317
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
5283
5318
  /**
5284
5319
  * Disallow `process.exit()`.
5285
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-process-exit.md
5320
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-process-exit.md
5286
5321
  */
5287
5322
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
5288
5323
  /**
5289
5324
  * Disallow passing single-element arrays to `Promise` methods.
5290
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-single-promise-in-promise-methods.md
5325
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-single-promise-in-promise-methods.md
5291
5326
  */
5292
5327
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
5293
5328
  /**
5294
5329
  * Disallow classes that only have static members.
5295
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-static-only-class.md
5330
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-static-only-class.md
5296
5331
  */
5297
5332
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
5298
5333
  /**
5299
5334
  * Disallow `then` property.
5300
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-thenable.md
5335
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-thenable.md
5301
5336
  */
5302
5337
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
5303
5338
  /**
5304
5339
  * Disallow assigning `this` to a variable.
5305
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-this-assignment.md
5340
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-this-assignment.md
5306
5341
  */
5307
5342
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
5308
5343
  /**
5309
5344
  * Disallow comparing `undefined` using `typeof`.
5310
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-typeof-undefined.md
5345
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-typeof-undefined.md
5311
5346
  */
5312
5347
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
5313
5348
  /**
5314
5349
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
5315
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-array-flat-depth.md
5350
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-flat-depth.md
5316
5351
  */
5317
5352
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
5318
5353
  /**
5319
5354
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
5320
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-array-splice-count.md
5355
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-splice-count.md
5321
5356
  */
5322
5357
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
5323
5358
  /**
5324
5359
  * Disallow awaiting non-promise values.
5325
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-await.md
5360
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-await.md
5326
5361
  */
5327
5362
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
5328
5363
  /**
5329
5364
  * Enforce the use of built-in methods instead of unnecessary polyfills.
5330
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-polyfills.md
5365
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-polyfills.md
5331
5366
  */
5332
5367
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
5333
5368
  /**
5334
5369
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
5335
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-slice-end.md
5370
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-slice-end.md
5336
5371
  */
5337
5372
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
5338
5373
  /**
5339
5374
  * Disallow unreadable array destructuring.
5340
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unreadable-array-destructuring.md
5375
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-array-destructuring.md
5341
5376
  */
5342
5377
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
5343
5378
  /**
5344
5379
  * Disallow unreadable IIFEs.
5345
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unreadable-iife.md
5380
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-iife.md
5346
5381
  */
5347
5382
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
5348
5383
  /**
5349
5384
  * Disallow unused object properties.
5350
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unused-properties.md
5385
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unused-properties.md
5351
5386
  */
5352
5387
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
5388
+ /**
5389
+ * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
5390
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-collection-argument.md
5391
+ */
5392
+ 'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
5353
5393
  /**
5354
5394
  * Disallow unnecessary `Error.captureStackTrace(…)`.
5355
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-error-capture-stack-trace.md
5395
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-error-capture-stack-trace.md
5356
5396
  */
5357
5397
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
5358
5398
  /**
5359
5399
  * Disallow useless fallback when spreading in object literals.
5360
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-fallback-in-spread.md
5400
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-fallback-in-spread.md
5361
5401
  */
5362
5402
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
5363
5403
  /**
5364
5404
  * Disallow useless array length check.
5365
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-length-check.md
5405
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-length-check.md
5366
5406
  */
5367
5407
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
5368
5408
  /**
5369
5409
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
5370
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-promise-resolve-reject.md
5410
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-promise-resolve-reject.md
5371
5411
  */
5372
5412
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
5373
5413
  /**
5374
5414
  * Disallow unnecessary spread.
5375
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-spread.md
5415
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-spread.md
5376
5416
  */
5377
5417
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
5378
5418
  /**
5379
5419
  * Disallow useless case in switch statements.
5380
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-switch-case.md
5420
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-switch-case.md
5381
5421
  */
5382
5422
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
5383
5423
  /**
5384
5424
  * Disallow useless `undefined`.
5385
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-undefined.md
5425
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-undefined.md
5386
5426
  */
5387
5427
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
5388
5428
  /**
5389
5429
  * Disallow number literals with zero fractions or dangling dots.
5390
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-zero-fractions.md
5430
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-zero-fractions.md
5391
5431
  */
5392
5432
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
5393
5433
  /**
5394
5434
  * Enforce proper case for numeric literals.
5395
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/number-literal-case.md
5435
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/number-literal-case.md
5396
5436
  */
5397
5437
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
5398
5438
  /**
5399
5439
  * Enforce the style of numeric separators by correctly grouping digits.
5400
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/numeric-separators-style.md
5440
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/numeric-separators-style.md
5401
5441
  */
5402
5442
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
5403
5443
  /**
5404
5444
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
5405
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-add-event-listener.md
5445
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-add-event-listener.md
5406
5446
  */
5407
5447
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
5408
5448
  /**
5409
5449
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
5410
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-find.md
5450
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-find.md
5411
5451
  */
5412
5452
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
5413
5453
  /**
5414
5454
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
5415
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-flat.md
5455
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat.md
5416
5456
  */
5417
5457
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
5418
5458
  /**
5419
5459
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
5420
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-flat-map.md
5460
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat-map.md
5421
5461
  */
5422
5462
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
5423
5463
  /**
5424
5464
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
5425
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-index-of.md
5465
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-index-of.md
5426
5466
  */
5427
5467
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
5428
5468
  /**
5429
5469
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
5430
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-some.md
5470
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-some.md
5431
5471
  */
5432
5472
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
5433
5473
  /**
5434
5474
  * Prefer `.at()` method for index access and `String#charAt()`.
5435
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-at.md
5475
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-at.md
5436
5476
  */
5437
5477
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
5438
5478
  /**
5439
5479
  * Prefer `BigInt` literals over the constructor.
5440
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-bigint-literals.md
5480
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-bigint-literals.md
5441
5481
  */
5442
5482
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
5443
5483
  /**
5444
5484
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
5445
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-blob-reading-methods.md
5485
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-blob-reading-methods.md
5446
5486
  */
5447
5487
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
5448
5488
  /**
5449
5489
  * Prefer class field declarations over `this` assignments in constructors.
5450
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-class-fields.md
5490
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-class-fields.md
5451
5491
  */
5452
5492
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
5453
5493
  /**
5454
5494
  * Prefer using `Element#classList.toggle()` to toggle class names.
5455
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-classlist-toggle.md
5495
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-classlist-toggle.md
5456
5496
  */
5457
5497
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
5458
5498
  /**
5459
5499
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
5460
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-code-point.md
5500
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-code-point.md
5461
5501
  */
5462
5502
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
5463
5503
  /**
5464
5504
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
5465
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-date-now.md
5505
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-date-now.md
5466
5506
  */
5467
5507
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
5468
5508
  /**
5469
5509
  * Prefer default parameters over reassignment.
5470
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-default-parameters.md
5510
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-default-parameters.md
5471
5511
  */
5472
5512
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
5473
5513
  /**
5474
5514
  * Prefer `Node#append()` over `Node#appendChild()`.
5475
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-append.md
5515
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-append.md
5476
5516
  */
5477
5517
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
5478
5518
  /**
5479
5519
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
5480
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-dataset.md
5520
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-dataset.md
5481
5521
  */
5482
5522
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
5483
5523
  /**
5484
5524
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
5485
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-remove.md
5525
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-remove.md
5486
5526
  */
5487
5527
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
5488
5528
  /**
5489
5529
  * Prefer `.textContent` over `.innerText`.
5490
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-text-content.md
5530
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-text-content.md
5491
5531
  */
5492
5532
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
5493
5533
  /**
5494
5534
  * Prefer `EventTarget` over `EventEmitter`.
5495
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-event-target.md
5535
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-event-target.md
5496
5536
  */
5497
5537
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
5498
5538
  /**
5499
5539
  * Prefer `export…from` when re-exporting.
5500
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-export-from.md
5540
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-export-from.md
5501
5541
  */
5502
5542
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
5503
5543
  /**
5504
5544
  * Prefer `globalThis` over `window`, `self`, and `global`.
5505
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-global-this.md
5545
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-global-this.md
5506
5546
  */
5507
5547
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
5508
5548
  /**
5509
5549
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
5510
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-import-meta-properties.md
5550
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-import-meta-properties.md
5511
5551
  */
5512
5552
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
5513
5553
  /**
5514
5554
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
5515
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-includes.md
5555
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-includes.md
5516
5556
  */
5517
5557
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
5518
5558
  /**
5519
5559
  * Prefer reading a JSON file as a buffer.
5520
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-json-parse-buffer.md
5560
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-json-parse-buffer.md
5521
5561
  */
5522
5562
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
5523
5563
  /**
5524
5564
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
5525
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-keyboard-event-key.md
5565
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-keyboard-event-key.md
5526
5566
  */
5527
5567
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
5528
5568
  /**
5529
5569
  * Prefer using a logical operator over a ternary.
5530
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-logical-operator-over-ternary.md
5570
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-logical-operator-over-ternary.md
5531
5571
  */
5532
5572
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
5533
5573
  /**
5534
5574
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
5535
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-math-min-max.md
5575
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-min-max.md
5536
5576
  */
5537
5577
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
5538
5578
  /**
5539
5579
  * Enforce the use of `Math.trunc` instead of bitwise operators.
5540
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-math-trunc.md
5580
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-trunc.md
5541
5581
  */
5542
5582
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
5543
5583
  /**
5544
5584
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
5545
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-modern-dom-apis.md
5585
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-dom-apis.md
5546
5586
  */
5547
5587
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
5548
5588
  /**
5549
5589
  * Prefer modern `Math` APIs over legacy patterns.
5550
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-modern-math-apis.md
5590
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-math-apis.md
5551
5591
  */
5552
5592
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
5553
5593
  /**
5554
5594
  * Prefer JavaScript modules (ESM) over CommonJS.
5555
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-module.md
5595
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-module.md
5556
5596
  */
5557
5597
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
5558
5598
  /**
5559
5599
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
5560
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-native-coercion-functions.md
5600
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-native-coercion-functions.md
5561
5601
  */
5562
5602
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
5563
5603
  /**
5564
5604
  * Prefer negative index over `.length - index` when possible.
5565
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-negative-index.md
5605
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-negative-index.md
5566
5606
  */
5567
5607
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
5568
5608
  /**
5569
5609
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
5570
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-node-protocol.md
5610
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-node-protocol.md
5571
5611
  */
5572
5612
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
5573
5613
  /**
5574
5614
  * Prefer `Number` static properties over global ones.
5575
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-number-properties.md
5615
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-number-properties.md
5576
5616
  */
5577
5617
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
5578
5618
  /**
5579
5619
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
5580
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-object-from-entries.md
5620
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-object-from-entries.md
5581
5621
  */
5582
5622
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
5583
5623
  /**
5584
5624
  * Prefer omitting the `catch` binding parameter.
5585
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-optional-catch-binding.md
5625
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-optional-catch-binding.md
5586
5626
  */
5587
5627
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
5588
5628
  /**
5589
5629
  * Prefer borrowing methods from the prototype instead of the instance.
5590
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-prototype-methods.md
5630
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-prototype-methods.md
5591
5631
  */
5592
5632
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
5593
5633
  /**
5594
5634
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
5595
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-query-selector.md
5635
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-query-selector.md
5596
5636
  */
5597
5637
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
5598
5638
  /**
5599
5639
  * Prefer `Reflect.apply()` over `Function#apply()`.
5600
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-reflect-apply.md
5640
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-reflect-apply.md
5601
5641
  */
5602
5642
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
5603
5643
  /**
5604
5644
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
5605
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-regexp-test.md
5645
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-regexp-test.md
5606
5646
  */
5607
5647
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
5648
+ /**
5649
+ * Prefer `Response.json()` over `new Response(JSON.stringify())`.
5650
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-response-static-json.md
5651
+ */
5652
+ 'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
5608
5653
  /**
5609
5654
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
5610
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-set-has.md
5655
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-has.md
5611
5656
  */
5612
5657
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
5613
5658
  /**
5614
5659
  * Prefer using `Set#size` instead of `Array#length`.
5615
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-set-size.md
5660
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-size.md
5616
5661
  */
5617
5662
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
5618
5663
  /**
5619
5664
  * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
5620
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-single-call.md
5665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-single-call.md
5621
5666
  */
5622
5667
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
5623
5668
  /**
5624
5669
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
5625
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-spread.md
5670
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-spread.md
5626
5671
  */
5627
5672
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
5628
5673
  /**
5629
5674
  * Prefer using the `String.raw` tag to avoid escaping `\`.
5630
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-raw.md
5675
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-raw.md
5631
5676
  */
5632
5677
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
5633
5678
  /**
5634
5679
  * Prefer `String#replaceAll()` over regex searches with the global flag.
5635
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-replace-all.md
5680
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-replace-all.md
5636
5681
  */
5637
5682
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
5638
5683
  /**
5639
5684
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
5640
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-slice.md
5685
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-slice.md
5641
5686
  */
5642
5687
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
5643
5688
  /**
5644
5689
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
5645
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-starts-ends-with.md
5690
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-starts-ends-with.md
5646
5691
  */
5647
5692
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
5648
5693
  /**
5649
5694
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
5650
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-trim-start-end.md
5695
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-trim-start-end.md
5651
5696
  */
5652
5697
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
5653
5698
  /**
5654
5699
  * Prefer using `structuredClone` to create a deep clone.
5655
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-structured-clone.md
5700
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-structured-clone.md
5656
5701
  */
5657
5702
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
5658
5703
  /**
5659
5704
  * Prefer `switch` over multiple `else-if`.
5660
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-switch.md
5705
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-switch.md
5661
5706
  */
5662
5707
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
5663
5708
  /**
5664
5709
  * Prefer ternary expressions over simple `if-else` statements.
5665
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-ternary.md
5710
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-ternary.md
5666
5711
  */
5667
5712
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
5668
5713
  /**
5669
5714
  * Prefer top-level await over top-level promises and async function calls.
5670
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-top-level-await.md
5715
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-top-level-await.md
5671
5716
  */
5672
5717
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
5673
5718
  /**
5674
5719
  * Enforce throwing `TypeError` in type checking conditions.
5675
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-type-error.md
5720
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-type-error.md
5676
5721
  */
5677
5722
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
5678
5723
  /**
5679
5724
  * Prevent abbreviations.
5680
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prevent-abbreviations.md
5725
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prevent-abbreviations.md
5681
5726
  */
5682
5727
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
5683
5728
  /**
5684
5729
  * Enforce consistent relative URL style.
5685
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/relative-url-style.md
5730
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/relative-url-style.md
5686
5731
  */
5687
5732
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
5688
5733
  /**
5689
5734
  * Enforce using the separator argument with `Array#join()`.
5690
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-array-join-separator.md
5735
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-array-join-separator.md
5691
5736
  */
5692
5737
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
5693
5738
  /**
5694
5739
  * Require non-empty module attributes for imports and exports
5695
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-module-attributes.md
5740
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-attributes.md
5696
5741
  */
5697
5742
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
5698
5743
  /**
5699
5744
  * Require non-empty specifier list in import and export statements.
5700
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-module-specifiers.md
5745
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-specifiers.md
5701
5746
  */
5702
5747
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
5703
5748
  /**
5704
5749
  * Enforce using the digits argument with `Number#toFixed()`.
5705
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-number-to-fixed-digits-argument.md
5750
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-number-to-fixed-digits-argument.md
5706
5751
  */
5707
5752
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
5708
5753
  /**
5709
5754
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
5710
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-post-message-target-origin.md
5755
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-post-message-target-origin.md
5711
5756
  */
5712
5757
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
5713
5758
  /**
5714
5759
  * Enforce better string content.
5715
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/string-content.md
5760
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/string-content.md
5716
5761
  */
5717
5762
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
5718
5763
  /**
5719
5764
  * Enforce consistent brace style for `case` clauses.
5720
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/switch-case-braces.md
5765
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/switch-case-braces.md
5721
5766
  */
5722
5767
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
5723
5768
  /**
5724
5769
  * Fix whitespace-insensitive template indentation.
5725
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/template-indent.md
5770
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/template-indent.md
5726
5771
  */
5727
5772
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
5728
5773
  /**
5729
5774
  * Enforce consistent case for text encoding identifiers.
5730
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/text-encoding-identifier-case.md
5775
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/text-encoding-identifier-case.md
5731
5776
  */
5732
- 'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>;
5777
+ 'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
5733
5778
  /**
5734
5779
  * Require `new` when creating an error.
5735
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/throw-new-error.md
5780
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/throw-new-error.md
5736
5781
  */
5737
5782
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
5738
5783
  /**
@@ -11176,6 +11221,33 @@ type PerfectionistSortVariableDeclarations = [] | [{
11176
11221
  commentAbove?: string;
11177
11222
  })[];
11178
11223
  }];
11224
+ // ----- pnpm/json-enforce-catalog -----
11225
+ type PnpmJsonEnforceCatalog = [] | [{
11226
+ allowedProtocols?: string[];
11227
+ autofix?: boolean;
11228
+ defaultCatalog?: string;
11229
+ reuseExistingCatalog?: boolean;
11230
+ conflicts?: ("new-catalog" | "overrides" | "error");
11231
+ fields?: string[];
11232
+ ignores?: string[];
11233
+ }];
11234
+ // ----- pnpm/json-prefer-workspace-settings -----
11235
+ type PnpmJsonPreferWorkspaceSettings = [] | [{
11236
+ autofix?: boolean;
11237
+ }];
11238
+ // ----- pnpm/json-valid-catalog -----
11239
+ type PnpmJsonValidCatalog = [] | [{
11240
+ autoInsert?: boolean;
11241
+ autoInsertDefaultSpecifier?: string;
11242
+ autofix?: boolean;
11243
+ enforceNoConflict?: boolean;
11244
+ fields?: unknown[];
11245
+ }];
11246
+ // ----- pnpm/yaml-no-duplicate-catalog-item -----
11247
+ type PnpmYamlNoDuplicateCatalogItem = [] | [{
11248
+ allow?: string[];
11249
+ checkDuplicates?: ("name-only" | "exact-version");
11250
+ }];
11179
11251
  // ----- prefer-arrow-callback -----
11180
11252
  type PreferArrowCallback = [] | [{
11181
11253
  allowNamedFunctions?: boolean;
@@ -13184,6 +13256,10 @@ type UnicornTemplateIndent = [] | [{
13184
13256
  selectors?: string[];
13185
13257
  comments?: string[];
13186
13258
  }];
13259
+ // ----- unicorn/text-encoding-identifier-case -----
13260
+ type UnicornTextEncodingIdentifierCase = [] | [{
13261
+ withDash?: boolean;
13262
+ }];
13187
13263
  // ----- unocss/enforce-class-compile -----
13188
13264
  type UnocssEnforceClassCompile = [] | [{
13189
13265
  prefix?: string;
@@ -14605,6 +14681,13 @@ interface OptionsConfig extends OptionsComponentExts {
14605
14681
  */
14606
14682
  unocss?: boolean | OptionsUnoCSS;
14607
14683
  /**
14684
+ * Enable pnpm (workspace/catalogs) support.
14685
+ *
14686
+ * @see https://github.com/antfu/pnpm-workspace-utils
14687
+ * @default false
14688
+ */
14689
+ pnpm?: boolean;
14690
+ /**
14608
14691
  * Enable regexp rules.
14609
14692
  *
14610
14693
  * @see https://ota-meshi.github.io/eslint-plugin-regexp/