@luxass/eslint-config 4.3.4 → 4.3.6

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
@@ -5097,637 +5097,652 @@ interface RuleOptions {
5097
5097
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
5098
5098
  /**
5099
5099
  * Improve regexes by making them shorter, consistent, and safer.
5100
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/better-regex.md
5100
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/better-regex.md
5101
5101
  */
5102
5102
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
5103
5103
  /**
5104
5104
  * Enforce a specific parameter name in catch clauses.
5105
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/catch-error-name.md
5105
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/catch-error-name.md
5106
5106
  */
5107
5107
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
5108
5108
  /**
5109
5109
  * Use destructured variables over properties.
5110
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/consistent-destructuring.md
5110
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/consistent-destructuring.md
5111
5111
  */
5112
5112
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
5113
5113
  /**
5114
5114
  * Move function definitions to the highest possible scope.
5115
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/consistent-function-scoping.md
5115
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/consistent-function-scoping.md
5116
5116
  */
5117
5117
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
5118
5118
  /**
5119
5119
  * Enforce correct `Error` subclassing.
5120
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/custom-error-definition.md
5120
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/custom-error-definition.md
5121
5121
  */
5122
5122
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
5123
5123
  /**
5124
5124
  * Enforce no spaces between braces.
5125
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/empty-brace-spaces.md
5125
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/empty-brace-spaces.md
5126
5126
  */
5127
5127
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
5128
5128
  /**
5129
5129
  * Enforce passing a `message` value when creating a built-in error.
5130
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/error-message.md
5130
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/error-message.md
5131
5131
  */
5132
5132
  'unicorn/error-message'?: Linter.RuleEntry<[]>
5133
5133
  /**
5134
5134
  * Require escape sequences to use uppercase values.
5135
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/escape-case.md
5135
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/escape-case.md
5136
5136
  */
5137
5137
  'unicorn/escape-case'?: Linter.RuleEntry<[]>
5138
5138
  /**
5139
5139
  * Add expiration conditions to TODO comments.
5140
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/expiring-todo-comments.md
5140
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/expiring-todo-comments.md
5141
5141
  */
5142
5142
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
5143
5143
  /**
5144
5144
  * Enforce explicitly comparing the `length` or `size` property of a value.
5145
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/explicit-length-check.md
5145
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/explicit-length-check.md
5146
5146
  */
5147
5147
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
5148
5148
  /**
5149
5149
  * Enforce a case style for filenames.
5150
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/filename-case.md
5150
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/filename-case.md
5151
5151
  */
5152
5152
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
5153
5153
  /**
5154
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/deprecated-rules.md#import-index
5154
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#import-index
5155
5155
  * @deprecated
5156
5156
  */
5157
5157
  'unicorn/import-index'?: Linter.RuleEntry<[]>
5158
5158
  /**
5159
5159
  * Enforce specific import styles per module.
5160
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/import-style.md
5160
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/import-style.md
5161
5161
  */
5162
5162
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
5163
5163
  /**
5164
5164
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
5165
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/new-for-builtins.md
5165
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/new-for-builtins.md
5166
5166
  */
5167
5167
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
5168
5168
  /**
5169
5169
  * Enforce specifying rules to disable in `eslint-disable` comments.
5170
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-abusive-eslint-disable.md
5170
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-abusive-eslint-disable.md
5171
5171
  */
5172
5172
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
5173
+ /**
5174
+ * Disallow anonymous functions and classes as the default export.
5175
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-anonymous-default-export.md
5176
+ */
5177
+ 'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
5173
5178
  /**
5174
5179
  * Prevent passing a function reference directly to iterator methods.
5175
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-array-callback-reference.md
5180
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-array-callback-reference.md
5176
5181
  */
5177
5182
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
5178
5183
  /**
5179
5184
  * Prefer `for…of` over the `forEach` method.
5180
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-array-for-each.md
5185
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-array-for-each.md
5181
5186
  */
5182
5187
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
5183
5188
  /**
5184
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/deprecated-rules.md#no-array-instanceof
5189
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#no-array-instanceof
5185
5190
  * @deprecated
5186
5191
  */
5187
5192
  'unicorn/no-array-instanceof'?: Linter.RuleEntry<[]>
5188
5193
  /**
5189
5194
  * Disallow using the `this` argument in array methods.
5190
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-array-method-this-argument.md
5195
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-array-method-this-argument.md
5191
5196
  */
5192
5197
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
5193
5198
  /**
5194
5199
  * Enforce combining multiple `Array#push()` into one call.
5195
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-array-push-push.md
5200
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-array-push-push.md
5196
5201
  */
5197
5202
  'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>
5198
5203
  /**
5199
5204
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
5200
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-array-reduce.md
5205
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-array-reduce.md
5201
5206
  */
5202
5207
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
5203
5208
  /**
5204
5209
  * Disallow member access from await expression.
5205
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-await-expression-member.md
5210
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-await-expression-member.md
5206
5211
  */
5207
5212
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
5213
+ /**
5214
+ * Disallow using `await` in `Promise` method parameters.
5215
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-await-in-promise-methods.md
5216
+ */
5217
+ 'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
5208
5218
  /**
5209
5219
  * Do not use leading/trailing space between `console.log` parameters.
5210
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-console-spaces.md
5220
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-console-spaces.md
5211
5221
  */
5212
5222
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
5213
5223
  /**
5214
5224
  * Do not use `document.cookie` directly.
5215
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-document-cookie.md
5225
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-document-cookie.md
5216
5226
  */
5217
5227
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
5218
5228
  /**
5219
5229
  * Disallow empty files.
5220
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-empty-file.md
5230
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-empty-file.md
5221
5231
  */
5222
5232
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
5223
5233
  /**
5224
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/deprecated-rules.md#no-fn-reference-in-iterator
5234
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#no-fn-reference-in-iterator
5225
5235
  * @deprecated
5226
5236
  */
5227
5237
  'unicorn/no-fn-reference-in-iterator'?: Linter.RuleEntry<[]>
5228
5238
  /**
5229
5239
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
5230
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-for-loop.md
5240
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-for-loop.md
5231
5241
  */
5232
5242
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
5233
5243
  /**
5234
5244
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
5235
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-hex-escape.md
5245
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-hex-escape.md
5236
5246
  */
5237
5247
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
5238
5248
  /**
5239
5249
  * Require `Array.isArray()` instead of `instanceof Array`.
5240
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-instanceof-array.md
5250
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-instanceof-array.md
5241
5251
  */
5242
5252
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
5243
5253
  /**
5244
5254
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
5245
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-invalid-remove-event-listener.md
5255
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-invalid-remove-event-listener.md
5246
5256
  */
5247
5257
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
5248
5258
  /**
5249
5259
  * Disallow identifiers starting with `new` or `class`.
5250
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-keyword-prefix.md
5260
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-keyword-prefix.md
5251
5261
  */
5252
5262
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
5253
5263
  /**
5254
5264
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
5255
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-lonely-if.md
5265
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-lonely-if.md
5256
5266
  */
5257
5267
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
5258
5268
  /**
5259
5269
  * Disallow negated conditions.
5260
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-negated-condition.md
5270
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-negated-condition.md
5261
5271
  */
5262
5272
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
5263
5273
  /**
5264
5274
  * Disallow nested ternary expressions.
5265
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-nested-ternary.md
5275
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-nested-ternary.md
5266
5276
  */
5267
5277
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
5268
5278
  /**
5269
5279
  * Disallow `new Array()`.
5270
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-new-array.md
5280
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-new-array.md
5271
5281
  */
5272
5282
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
5273
5283
  /**
5274
5284
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
5275
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-new-buffer.md
5285
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-new-buffer.md
5276
5286
  */
5277
5287
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
5278
5288
  /**
5279
5289
  * Disallow the use of the `null` literal.
5280
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-null.md
5290
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-null.md
5281
5291
  */
5282
5292
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
5283
5293
  /**
5284
5294
  * Disallow the use of objects as default parameters.
5285
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-object-as-default-parameter.md
5295
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-object-as-default-parameter.md
5286
5296
  */
5287
5297
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
5288
5298
  /**
5289
5299
  * Disallow `process.exit()`.
5290
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-process-exit.md
5300
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-process-exit.md
5291
5301
  */
5292
5302
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
5293
5303
  /**
5294
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/deprecated-rules.md#no-reduce
5304
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#no-reduce
5295
5305
  * @deprecated
5296
5306
  */
5297
5307
  'unicorn/no-reduce'?: Linter.RuleEntry<[]>
5308
+ /**
5309
+ * Disallow passing single-element arrays to `Promise` methods.
5310
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-single-promise-in-promise-methods.md
5311
+ */
5312
+ 'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
5298
5313
  /**
5299
5314
  * Disallow classes that only have static members.
5300
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-static-only-class.md
5315
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-static-only-class.md
5301
5316
  */
5302
5317
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
5303
5318
  /**
5304
5319
  * Disallow `then` property.
5305
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-thenable.md
5320
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-thenable.md
5306
5321
  */
5307
5322
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
5308
5323
  /**
5309
5324
  * Disallow assigning `this` to a variable.
5310
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-this-assignment.md
5325
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-this-assignment.md
5311
5326
  */
5312
5327
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
5313
5328
  /**
5314
5329
  * Disallow comparing `undefined` using `typeof`.
5315
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-typeof-undefined.md
5330
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-typeof-undefined.md
5316
5331
  */
5317
5332
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
5318
5333
  /**
5319
5334
  * Disallow awaiting non-promise values.
5320
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-unnecessary-await.md
5335
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-unnecessary-await.md
5321
5336
  */
5322
5337
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
5323
5338
  /**
5324
5339
  * Enforce the use of built-in methods instead of unnecessary polyfills.
5325
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-unnecessary-polyfills.md
5340
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-unnecessary-polyfills.md
5326
5341
  */
5327
5342
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
5328
5343
  /**
5329
5344
  * Disallow unreadable array destructuring.
5330
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-unreadable-array-destructuring.md
5345
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-unreadable-array-destructuring.md
5331
5346
  */
5332
5347
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
5333
5348
  /**
5334
5349
  * Disallow unreadable IIFEs.
5335
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-unreadable-iife.md
5350
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-unreadable-iife.md
5336
5351
  */
5337
5352
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
5338
5353
  /**
5339
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/deprecated-rules.md#no-unsafe-regex
5354
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#no-unsafe-regex
5340
5355
  * @deprecated
5341
5356
  */
5342
5357
  'unicorn/no-unsafe-regex'?: Linter.RuleEntry<[]>
5343
5358
  /**
5344
5359
  * Disallow unused object properties.
5345
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-unused-properties.md
5360
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-unused-properties.md
5346
5361
  */
5347
5362
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
5348
5363
  /**
5349
5364
  * Disallow useless fallback when spreading in object literals.
5350
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-useless-fallback-in-spread.md
5365
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-useless-fallback-in-spread.md
5351
5366
  */
5352
5367
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
5353
5368
  /**
5354
5369
  * Disallow useless array length check.
5355
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-useless-length-check.md
5370
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-useless-length-check.md
5356
5371
  */
5357
5372
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
5358
5373
  /**
5359
5374
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
5360
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-useless-promise-resolve-reject.md
5375
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-useless-promise-resolve-reject.md
5361
5376
  */
5362
5377
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
5363
5378
  /**
5364
5379
  * Disallow unnecessary spread.
5365
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-useless-spread.md
5380
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-useless-spread.md
5366
5381
  */
5367
5382
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
5368
5383
  /**
5369
5384
  * Disallow useless case in switch statements.
5370
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-useless-switch-case.md
5385
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-useless-switch-case.md
5371
5386
  */
5372
5387
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
5373
5388
  /**
5374
5389
  * Disallow useless `undefined`.
5375
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-useless-undefined.md
5390
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-useless-undefined.md
5376
5391
  */
5377
5392
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
5378
5393
  /**
5379
5394
  * Disallow number literals with zero fractions or dangling dots.
5380
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/no-zero-fractions.md
5395
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/no-zero-fractions.md
5381
5396
  */
5382
5397
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
5383
5398
  /**
5384
5399
  * Enforce proper case for numeric literals.
5385
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/number-literal-case.md
5400
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/number-literal-case.md
5386
5401
  */
5387
5402
  'unicorn/number-literal-case'?: Linter.RuleEntry<[]>
5388
5403
  /**
5389
5404
  * Enforce the style of numeric separators by correctly grouping digits.
5390
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/numeric-separators-style.md
5405
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/numeric-separators-style.md
5391
5406
  */
5392
5407
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
5393
5408
  /**
5394
5409
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
5395
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-add-event-listener.md
5410
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-add-event-listener.md
5396
5411
  */
5397
5412
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
5398
5413
  /**
5399
5414
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
5400
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-array-find.md
5415
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-array-find.md
5401
5416
  */
5402
5417
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
5403
5418
  /**
5404
5419
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
5405
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-array-flat.md
5420
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-array-flat.md
5406
5421
  */
5407
5422
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
5408
5423
  /**
5409
5424
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
5410
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-array-flat-map.md
5425
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-array-flat-map.md
5411
5426
  */
5412
5427
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
5413
5428
  /**
5414
5429
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
5415
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-array-index-of.md
5430
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-array-index-of.md
5416
5431
  */
5417
5432
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
5418
5433
  /**
5419
5434
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast}(…)`.
5420
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-array-some.md
5435
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-array-some.md
5421
5436
  */
5422
5437
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
5423
5438
  /**
5424
5439
  * Prefer `.at()` method for index access and `String#charAt()`.
5425
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-at.md
5440
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-at.md
5426
5441
  */
5427
5442
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
5428
5443
  /**
5429
5444
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
5430
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-blob-reading-methods.md
5445
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-blob-reading-methods.md
5431
5446
  */
5432
5447
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
5433
5448
  /**
5434
5449
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
5435
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-code-point.md
5450
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-code-point.md
5436
5451
  */
5437
5452
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
5438
5453
  /**
5439
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/deprecated-rules.md#prefer-dataset
5454
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-dataset
5440
5455
  * @deprecated
5441
5456
  */
5442
5457
  'unicorn/prefer-dataset'?: Linter.RuleEntry<[]>
5443
5458
  /**
5444
5459
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
5445
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-date-now.md
5460
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-date-now.md
5446
5461
  */
5447
5462
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
5448
5463
  /**
5449
5464
  * Prefer default parameters over reassignment.
5450
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-default-parameters.md
5465
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-default-parameters.md
5451
5466
  */
5452
5467
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
5453
5468
  /**
5454
5469
  * Prefer `Node#append()` over `Node#appendChild()`.
5455
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-dom-node-append.md
5470
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-dom-node-append.md
5456
5471
  */
5457
5472
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
5458
5473
  /**
5459
5474
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
5460
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-dom-node-dataset.md
5475
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-dom-node-dataset.md
5461
5476
  */
5462
5477
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
5463
5478
  /**
5464
5479
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
5465
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-dom-node-remove.md
5480
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-dom-node-remove.md
5466
5481
  */
5467
5482
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
5468
5483
  /**
5469
5484
  * Prefer `.textContent` over `.innerText`.
5470
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-dom-node-text-content.md
5485
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-dom-node-text-content.md
5471
5486
  */
5472
5487
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
5473
5488
  /**
5474
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/deprecated-rules.md#prefer-event-key
5489
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-event-key
5475
5490
  * @deprecated
5476
5491
  */
5477
5492
  'unicorn/prefer-event-key'?: Linter.RuleEntry<[]>
5478
5493
  /**
5479
5494
  * Prefer `EventTarget` over `EventEmitter`.
5480
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-event-target.md
5495
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-event-target.md
5481
5496
  */
5482
5497
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
5483
5498
  /**
5484
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/deprecated-rules.md#prefer-exponentiation-operator
5499
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-exponentiation-operator
5485
5500
  * @deprecated
5486
5501
  */
5487
5502
  'unicorn/prefer-exponentiation-operator'?: Linter.RuleEntry<[]>
5488
5503
  /**
5489
5504
  * Prefer `export…from` when re-exporting.
5490
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-export-from.md
5505
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-export-from.md
5491
5506
  */
5492
5507
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
5493
5508
  /**
5494
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/deprecated-rules.md#prefer-flat-map
5509
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-flat-map
5495
5510
  * @deprecated
5496
5511
  */
5497
5512
  'unicorn/prefer-flat-map'?: Linter.RuleEntry<[]>
5498
5513
  /**
5499
5514
  * Prefer `.includes()` over `.indexOf()` and `Array#some()` when checking for existence or non-existence.
5500
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-includes.md
5515
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-includes.md
5501
5516
  */
5502
5517
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
5503
5518
  /**
5504
5519
  * Prefer reading a JSON file as a buffer.
5505
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-json-parse-buffer.md
5520
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-json-parse-buffer.md
5506
5521
  */
5507
5522
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
5508
5523
  /**
5509
5524
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
5510
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-keyboard-event-key.md
5525
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-keyboard-event-key.md
5511
5526
  */
5512
5527
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
5513
5528
  /**
5514
5529
  * Prefer using a logical operator over a ternary.
5515
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-logical-operator-over-ternary.md
5530
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-logical-operator-over-ternary.md
5516
5531
  */
5517
5532
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
5518
5533
  /**
5519
5534
  * Enforce the use of `Math.trunc` instead of bitwise operators.
5520
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-math-trunc.md
5535
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-math-trunc.md
5521
5536
  */
5522
5537
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
5523
5538
  /**
5524
5539
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
5525
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-modern-dom-apis.md
5540
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-modern-dom-apis.md
5526
5541
  */
5527
5542
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
5528
5543
  /**
5529
5544
  * Prefer modern `Math` APIs over legacy patterns.
5530
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-modern-math-apis.md
5545
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-modern-math-apis.md
5531
5546
  */
5532
5547
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
5533
5548
  /**
5534
5549
  * Prefer JavaScript modules (ESM) over CommonJS.
5535
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-module.md
5550
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-module.md
5536
5551
  */
5537
5552
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
5538
5553
  /**
5539
5554
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
5540
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-native-coercion-functions.md
5555
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-native-coercion-functions.md
5541
5556
  */
5542
5557
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
5543
5558
  /**
5544
5559
  * Prefer negative index over `.length - index` when possible.
5545
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-negative-index.md
5560
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-negative-index.md
5546
5561
  */
5547
5562
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
5548
5563
  /**
5549
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/deprecated-rules.md#prefer-node-append
5564
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-node-append
5550
5565
  * @deprecated
5551
5566
  */
5552
5567
  'unicorn/prefer-node-append'?: Linter.RuleEntry<[]>
5553
5568
  /**
5554
5569
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
5555
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-node-protocol.md
5570
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-node-protocol.md
5556
5571
  */
5557
5572
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
5558
5573
  /**
5559
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/deprecated-rules.md#prefer-node-remove
5574
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-node-remove
5560
5575
  * @deprecated
5561
5576
  */
5562
5577
  'unicorn/prefer-node-remove'?: Linter.RuleEntry<[]>
5563
5578
  /**
5564
5579
  * Prefer `Number` static properties over global ones.
5565
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-number-properties.md
5580
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-number-properties.md
5566
5581
  */
5567
5582
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
5568
5583
  /**
5569
5584
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
5570
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-object-from-entries.md
5585
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-object-from-entries.md
5571
5586
  */
5572
5587
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
5573
5588
  /**
5574
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/deprecated-rules.md#prefer-object-has-own
5589
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-object-has-own
5575
5590
  * @deprecated
5576
5591
  */
5577
5592
  'unicorn/prefer-object-has-own'?: Linter.RuleEntry<[]>
5578
5593
  /**
5579
5594
  * Prefer omitting the `catch` binding parameter.
5580
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-optional-catch-binding.md
5595
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-optional-catch-binding.md
5581
5596
  */
5582
5597
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
5583
5598
  /**
5584
5599
  * Prefer borrowing methods from the prototype instead of the instance.
5585
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-prototype-methods.md
5600
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-prototype-methods.md
5586
5601
  */
5587
5602
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
5588
5603
  /**
5589
5604
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()`.
5590
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-query-selector.md
5605
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-query-selector.md
5591
5606
  */
5592
5607
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
5593
5608
  /**
5594
5609
  * Prefer `Reflect.apply()` over `Function#apply()`.
5595
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-reflect-apply.md
5610
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-reflect-apply.md
5596
5611
  */
5597
5612
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
5598
5613
  /**
5599
5614
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
5600
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-regexp-test.md
5615
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-regexp-test.md
5601
5616
  */
5602
5617
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
5603
5618
  /**
5604
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/deprecated-rules.md#prefer-replace-all
5619
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-replace-all
5605
5620
  * @deprecated
5606
5621
  */
5607
5622
  'unicorn/prefer-replace-all'?: Linter.RuleEntry<[]>
5608
5623
  /**
5609
5624
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
5610
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-set-has.md
5625
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-set-has.md
5611
5626
  */
5612
5627
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
5613
5628
  /**
5614
5629
  * Prefer using `Set#size` instead of `Array#length`.
5615
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-set-size.md
5630
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-set-size.md
5616
5631
  */
5617
5632
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
5618
5633
  /**
5619
5634
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
5620
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-spread.md
5635
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-spread.md
5621
5636
  */
5622
5637
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
5623
5638
  /**
5624
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/deprecated-rules.md#prefer-starts-ends-with
5639
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-starts-ends-with
5625
5640
  * @deprecated
5626
5641
  */
5627
5642
  'unicorn/prefer-starts-ends-with'?: Linter.RuleEntry<[]>
5628
5643
  /**
5629
5644
  * Prefer `String#replaceAll()` over regex searches with the global flag.
5630
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-string-replace-all.md
5645
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-string-replace-all.md
5631
5646
  */
5632
5647
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
5633
5648
  /**
5634
5649
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
5635
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-string-slice.md
5650
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-string-slice.md
5636
5651
  */
5637
5652
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
5638
5653
  /**
5639
5654
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
5640
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-string-starts-ends-with.md
5655
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-string-starts-ends-with.md
5641
5656
  */
5642
5657
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
5643
5658
  /**
5644
5659
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
5645
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-string-trim-start-end.md
5660
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-string-trim-start-end.md
5646
5661
  */
5647
5662
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
5648
5663
  /**
5649
5664
  * Prefer `switch` over multiple `else-if`.
5650
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-switch.md
5665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-switch.md
5651
5666
  */
5652
5667
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
5653
5668
  /**
5654
5669
  * Prefer ternary expressions over simple `if-else` statements.
5655
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-ternary.md
5670
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-ternary.md
5656
5671
  */
5657
5672
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
5658
5673
  /**
5659
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/deprecated-rules.md#prefer-text-content
5674
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-text-content
5660
5675
  * @deprecated
5661
5676
  */
5662
5677
  'unicorn/prefer-text-content'?: Linter.RuleEntry<[]>
5663
5678
  /**
5664
5679
  * Prefer top-level await over top-level promises and async function calls.
5665
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-top-level-await.md
5680
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-top-level-await.md
5666
5681
  */
5667
5682
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
5668
5683
  /**
5669
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/deprecated-rules.md#prefer-trim-start-end
5684
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#prefer-trim-start-end
5670
5685
  * @deprecated
5671
5686
  */
5672
5687
  'unicorn/prefer-trim-start-end'?: Linter.RuleEntry<[]>
5673
5688
  /**
5674
5689
  * Enforce throwing `TypeError` in type checking conditions.
5675
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prefer-type-error.md
5690
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prefer-type-error.md
5676
5691
  */
5677
5692
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
5678
5693
  /**
5679
5694
  * Prevent abbreviations.
5680
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/prevent-abbreviations.md
5695
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/prevent-abbreviations.md
5681
5696
  */
5682
5697
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
5683
5698
  /**
5684
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/deprecated-rules.md#regex-shorthand
5699
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/deprecated-rules.md#regex-shorthand
5685
5700
  * @deprecated
5686
5701
  */
5687
5702
  'unicorn/regex-shorthand'?: Linter.RuleEntry<[]>
5688
5703
  /**
5689
5704
  * Enforce consistent relative URL style.
5690
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/relative-url-style.md
5705
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/relative-url-style.md
5691
5706
  */
5692
5707
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
5693
5708
  /**
5694
5709
  * Enforce using the separator argument with `Array#join()`.
5695
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/require-array-join-separator.md
5710
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/require-array-join-separator.md
5696
5711
  */
5697
5712
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
5698
5713
  /**
5699
5714
  * Enforce using the digits argument with `Number#toFixed()`.
5700
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/require-number-to-fixed-digits-argument.md
5715
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/require-number-to-fixed-digits-argument.md
5701
5716
  */
5702
5717
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
5703
5718
  /**
5704
5719
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
5705
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/require-post-message-target-origin.md
5720
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/require-post-message-target-origin.md
5706
5721
  */
5707
5722
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
5708
5723
  /**
5709
5724
  * Enforce better string content.
5710
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/string-content.md
5725
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/string-content.md
5711
5726
  */
5712
5727
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
5713
5728
  /**
5714
5729
  * Enforce consistent brace style for `case` clauses.
5715
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/switch-case-braces.md
5730
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/switch-case-braces.md
5716
5731
  */
5717
5732
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
5718
5733
  /**
5719
5734
  * Fix whitespace-insensitive template indentation.
5720
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/template-indent.md
5735
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/template-indent.md
5721
5736
  */
5722
5737
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
5723
5738
  /**
5724
5739
  * Enforce consistent case for text encoding identifiers.
5725
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/text-encoding-identifier-case.md
5740
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/text-encoding-identifier-case.md
5726
5741
  */
5727
5742
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
5728
5743
  /**
5729
5744
  * Require `new` when throwing an error.
5730
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v51.0.1/docs/rules/throw-new-error.md
5745
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v52.0.0/docs/rules/throw-new-error.md
5731
5746
  */
5732
5747
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
5733
5748
  /**
@@ -13037,6 +13052,7 @@ type UnicornExplicitLengthCheck = []|[{
13037
13052
  type UnicornFilenameCase = []|[({
13038
13053
  case?: ("camelCase" | "snakeCase" | "kebabCase" | "pascalCase")
13039
13054
  ignore?: unknown[]
13055
+ multipleFileExtensions?: boolean
13040
13056
  } | {
13041
13057
  cases?: {
13042
13058
  camelCase?: boolean
@@ -13045,6 +13061,7 @@ type UnicornFilenameCase = []|[({
13045
13061
  pascalCase?: boolean
13046
13062
  }
13047
13063
  ignore?: unknown[]
13064
+ multipleFileExtensions?: boolean
13048
13065
  })]
13049
13066
  // ----- unicorn/import-style -----
13050
13067
  type UnicornImportStyle = []|[{