@shayanthenerd/eslint-config 0.28.4 → 0.29.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.
@@ -4017,6 +4017,11 @@ interface ESLintSchema {
4017
4017
  * @see https://nextjs.org/docs/messages/no-img-element
4018
4018
  */
4019
4019
  'next/no-img-element'?: Linter.RuleEntry<[]>;
4020
+ /**
4021
+ * Prevent usage of `location.assign` or `location.href` assignment to navigate to internal Next.js pages.
4022
+ * @see https://nextjs.org/docs/messages/no-location-assign-relative-destination
4023
+ */
4024
+ 'next/no-location-assign-relative-destination'?: Linter.RuleEntry<[]>;
4020
4025
  /**
4021
4026
  * Prevent page-only custom fonts.
4022
4027
  * @see https://nextjs.org/docs/messages/no-page-custom-font
@@ -5670,6 +5675,11 @@ interface ESLintSchema {
5670
5675
  * @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/no-standalone-expect.md
5671
5676
  */
5672
5677
  'playwright/no-standalone-expect'?: Linter.RuleEntry<[]>;
5678
+ /**
5679
+ * Disallow assertions on a Locator that can never fail
5680
+ * @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/no-unnecessary-assertions.md
5681
+ */
5682
+ 'playwright/no-unnecessary-assertions'?: Linter.RuleEntry<[]>;
5673
5683
  /**
5674
5684
  * Prevent unsafe variable references in page.evaluate() and page.addInitScript()
5675
5685
  * @see https://github.com/mskelton/eslint-plugin-playwright/tree/main/docs/rules/no-unsafe-references.md
@@ -6213,1715 +6223,1740 @@ interface ESLintSchema {
6213
6223
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
6214
6224
  /**
6215
6225
  * Prefer better DOM traversal APIs.
6216
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/better-dom-traversing.md
6226
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/better-dom-traversing.md
6217
6227
  */
6218
6228
  'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
6219
6229
  /**
6220
6230
  * Removed. Prefer `eslint-plugin-regexp`
6221
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#better-regex
6231
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#better-regex
6222
6232
  * @deprecated
6223
6233
  */
6224
6234
  'unicorn/better-regex'?: Linter.RuleEntry<[]>;
6225
6235
  /**
6226
6236
  * Enforce a specific parameter name in catch clauses.
6227
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/catch-error-name.md
6237
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/catch-error-name.md
6228
6238
  */
6229
6239
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
6230
6240
  /**
6231
6241
  * Enforce consistent class references in static methods.
6232
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/class-reference-in-static-methods.md
6242
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/class-reference-in-static-methods.md
6233
6243
  */
6234
6244
  'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
6235
6245
  /**
6236
6246
  * Enforce better comment content.
6237
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/comment-content.md
6247
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/comment-content.md
6238
6248
  */
6239
6249
  'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
6250
+ /**
6251
+ * Enforce a consistent return style for multiline arrow function bodies.
6252
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-arrow-return-style.md
6253
+ */
6254
+ 'unicorn/consistent-arrow-return-style'?: Linter.RuleEntry<[]>;
6240
6255
  /**
6241
6256
  * Enforce consistent assertion style with `node:assert`.
6242
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-assert.md
6257
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-assert.md
6243
6258
  */
6244
6259
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
6245
6260
  /**
6246
6261
  * Enforce consistent naming for boolean names.
6247
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-boolean-name.md
6262
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-boolean-name.md
6248
6263
  */
6249
6264
  'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
6250
6265
  /**
6251
6266
  * Enforce consistent class member order.
6252
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-class-member-order.md
6267
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-class-member-order.md
6253
6268
  */
6254
6269
  'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
6255
6270
  /**
6256
6271
  * Enforce consistent spelling of compound words in identifiers.
6257
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-compound-words.md
6272
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-compound-words.md
6258
6273
  */
6259
6274
  'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
6260
6275
  /**
6261
6276
  * Enforce consistent conditional object spread style.
6262
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-conditional-object-spread.md
6277
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-conditional-object-spread.md
6263
6278
  */
6264
6279
  'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
6265
6280
  /**
6266
6281
  * Prefer passing `Date` directly to the constructor when cloning.
6267
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-date-clone.md
6282
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-date-clone.md
6268
6283
  */
6269
6284
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
6270
6285
  /**
6271
6286
  * Use destructured variables over properties.
6272
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-destructuring.md
6287
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-destructuring.md
6273
6288
  */
6274
6289
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
6275
6290
  /**
6276
6291
  * Prefer consistent types when spreading a ternary in an array literal.
6277
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-empty-array-spread.md
6292
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-empty-array-spread.md
6278
6293
  */
6279
6294
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
6280
6295
  /**
6281
6296
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
6282
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-existence-index-check.md
6297
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-existence-index-check.md
6283
6298
  */
6284
6299
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
6285
6300
  /**
6286
6301
  * Enforce consistent decorator position on exported classes.
6287
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-export-decorator-position.md
6302
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-export-decorator-position.md
6288
6303
  */
6289
6304
  'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
6290
6305
  /**
6291
6306
  * Move function definitions to the highest possible scope.
6292
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-function-scoping.md
6307
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-function-scoping.md
6293
6308
  */
6294
6309
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
6295
6310
  /**
6296
6311
  * Enforce function syntax by role.
6297
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-function-style.md
6312
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-function-style.md
6298
6313
  */
6299
6314
  'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
6300
6315
  /**
6301
6316
  * Enforce consistent JSON file reads before `JSON.parse()`.
6302
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-json-file-read.md
6317
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-json-file-read.md
6303
6318
  */
6304
6319
  'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
6305
6320
  /**
6306
6321
  * Enforce consistent optional chaining for same-base member access.
6307
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-optional-chaining.md
6322
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-optional-chaining.md
6308
6323
  */
6309
6324
  'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
6310
6325
  /**
6311
6326
  * Enforce consistent style for escaping `${` in template literals.
6312
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-template-literal-escape.md
6327
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-template-literal-escape.md
6313
6328
  */
6314
6329
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
6315
6330
  /**
6316
6331
  * Enforce consistent labels on tuple type elements.
6317
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-tuple-labels.md
6332
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-tuple-labels.md
6318
6333
  */
6319
6334
  'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
6320
6335
  /**
6321
6336
  * Enforce correct `Error` subclassing.
6322
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/custom-error-definition.md
6337
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/custom-error-definition.md
6323
6338
  */
6324
6339
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
6325
6340
  /**
6326
6341
  * Enforce consistent default export declarations.
6327
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/default-export-style.md
6342
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/default-export-style.md
6328
6343
  */
6329
6344
  'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
6330
6345
  /**
6331
6346
  * Enforce consistent style for DOM element dataset access.
6332
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/dom-node-dataset.md
6347
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/dom-node-dataset.md
6333
6348
  */
6334
6349
  'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
6335
6350
  /**
6336
6351
  * Enforce no spaces between braces.
6337
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/empty-brace-spaces.md
6352
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/empty-brace-spaces.md
6338
6353
  */
6339
6354
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
6340
6355
  /**
6341
6356
  * Enforce passing a `message` value when creating a built-in error.
6342
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/error-message.md
6357
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/error-message.md
6343
6358
  */
6344
6359
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
6345
6360
  /**
6346
6361
  * Require escape sequences to use uppercase or lowercase values.
6347
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/escape-case.md
6362
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/escape-case.md
6348
6363
  */
6349
6364
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
6350
6365
  /**
6351
6366
  * Add expiration conditions to TODO comments.
6352
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/expiring-todo-comments.md
6367
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/expiring-todo-comments.md
6353
6368
  */
6354
6369
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
6355
6370
  /**
6356
6371
  * Enforce explicitly comparing the `length` or `size` property of a value.
6357
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/explicit-length-check.md
6372
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/explicit-length-check.md
6358
6373
  */
6359
6374
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
6360
6375
  /**
6361
6376
  * Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
6362
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/explicit-timer-delay.md
6377
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/explicit-timer-delay.md
6363
6378
  */
6364
6379
  'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
6365
6380
  /**
6366
6381
  * Enforce a case style for filenames and directory names.
6367
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/filename-case.md
6382
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/filename-case.md
6368
6383
  */
6369
6384
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
6370
6385
  /**
6371
6386
  * Require identifiers to match a specified regular expression.
6372
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/id-match.md
6387
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/id-match.md
6373
6388
  */
6374
6389
  'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
6375
6390
  /**
6376
6391
  * Enforce specific import styles per module.
6377
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/import-style.md
6392
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/import-style.md
6378
6393
  */
6379
6394
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
6380
6395
  /**
6381
6396
  * Prevent usage of variables from outside the scope of isolated functions.
6382
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/isolated-functions.md
6397
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/isolated-functions.md
6383
6398
  */
6384
6399
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
6400
+ /**
6401
+ * Enforce a consistent style for optional loop sources.
6402
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/iteration-fallback-style.md
6403
+ */
6404
+ 'unicorn/iteration-fallback-style'?: Linter.RuleEntry<UnicornIterationFallbackStyle>;
6385
6405
  /**
6386
6406
  * Require or disallow logical assignment operator shorthand
6387
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/logical-assignment-operators.md
6407
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/logical-assignment-operators.md
6388
6408
  */
6389
6409
  'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
6390
6410
  /**
6391
6411
  * Limit the depth of nested calls.
6392
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/max-nested-calls.md
6412
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/max-nested-calls.md
6393
6413
  */
6394
6414
  'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
6395
6415
  /**
6396
6416
  * Enforce replacements for variable, property, and filenames.
6397
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/name-replacements.md
6417
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/name-replacements.md
6398
6418
  */
6399
6419
  'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
6400
6420
  /**
6401
6421
  * Enforce correct use of `new` for builtin constructors.
6402
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/new-for-builtins.md
6422
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/new-for-builtins.md
6403
6423
  */
6404
6424
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
6405
6425
  /**
6406
6426
  * Enforce specifying rules to disable in `eslint-disable` comments.
6407
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-abusive-eslint-disable.md
6427
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-abusive-eslint-disable.md
6408
6428
  */
6409
6429
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
6410
6430
  /**
6411
6431
  * Disallow recursive access to `this` within getters and setters.
6412
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-accessor-recursion.md
6432
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-accessor-recursion.md
6413
6433
  */
6414
6434
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
6415
6435
  /**
6416
6436
  * Disallow bitwise operators where a logical operator was likely intended.
6417
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-accidental-bitwise-operator.md
6437
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-accidental-bitwise-operator.md
6418
6438
  */
6419
6439
  'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
6420
6440
  /**
6421
6441
  * Disallow anonymous functions and classes as the default export.
6422
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-anonymous-default-export.md
6442
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-anonymous-default-export.md
6423
6443
  */
6424
6444
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
6425
6445
  /**
6426
6446
  * Prevent passing a function reference directly to iterator methods.
6427
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-callback-reference.md
6447
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-callback-reference.md
6428
6448
  */
6429
6449
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
6430
6450
  /**
6431
6451
  * Disallow array accumulation with `Array#concat()` in loops.
6432
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-concat-in-loop.md
6452
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-concat-in-loop.md
6433
6453
  */
6434
6454
  'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
6435
6455
  /**
6436
6456
  * Disallow using reference values as `Array#fill()` values.
6437
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-fill-with-reference-type.md
6457
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-fill-with-reference-type.md
6438
6458
  */
6439
6459
  'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
6440
6460
  /**
6441
6461
  * Disallow `.fill()` after `Array.from({length: …})`.
6442
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-from-fill.md
6462
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-from-fill.md
6443
6463
  */
6444
6464
  'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
6445
6465
  /**
6446
6466
  * Disallow front-of-array mutation.
6447
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-front-mutation.md
6467
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-front-mutation.md
6448
6468
  */
6449
6469
  'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
6450
6470
  /**
6451
6471
  * Disallow using the `this` argument in array methods.
6452
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-method-this-argument.md
6472
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-method-this-argument.md
6453
6473
  */
6454
6474
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
6455
6475
  /**
6456
6476
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
6457
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
6477
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
6458
6478
  * @deprecated
6459
6479
  */
6460
6480
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
6461
6481
  /**
6462
6482
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
6463
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-reduce.md
6483
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-reduce.md
6464
6484
  */
6465
6485
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
6466
6486
  /**
6467
6487
  * Prefer `Array#toReversed()` over `Array#reverse()`.
6468
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-reverse.md
6488
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-reverse.md
6469
6489
  */
6470
6490
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
6471
6491
  /**
6472
6492
  * Prefer `Array#toSorted()` over `Array#sort()`.
6473
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-sort.md
6493
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-sort.md
6474
6494
  */
6475
6495
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
6476
6496
  /**
6477
6497
  * Disallow sorting arrays to get the minimum or maximum value.
6478
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-sort-for-min-max.md
6498
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-sort-for-min-max.md
6479
6499
  */
6480
6500
  'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
6481
6501
  /**
6482
6502
  * Prefer `Array#toSpliced()` over `Array#splice()`.
6483
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-splice.md
6503
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-splice.md
6484
6504
  */
6485
6505
  'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
6486
6506
  /**
6487
6507
  * Disallow asterisk prefixes in documentation comments.
6488
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
6508
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
6489
6509
  */
6490
6510
  'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
6491
6511
  /**
6492
6512
  * Disallow async functions as `Promise#finally()` callbacks.
6493
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-async-promise-finally.md
6513
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-async-promise-finally.md
6494
6514
  */
6495
6515
  'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
6496
6516
  /**
6497
6517
  * Disallow member access from await expression.
6498
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-await-expression-member.md
6518
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-await-expression-member.md
6499
6519
  */
6500
6520
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
6501
6521
  /**
6502
6522
  * Disallow using `await` in `Promise` method parameters.
6503
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-await-in-promise-methods.md
6523
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-await-in-promise-methods.md
6504
6524
  */
6505
6525
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
6526
+ /**
6527
+ * Disallow barrel files.
6528
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-barrel-files.md
6529
+ */
6530
+ 'unicorn/no-barrel-files'?: Linter.RuleEntry<[]>;
6506
6531
  /**
6507
6532
  * Disallow unnecessary `Blob` to `File` conversion.
6508
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-blob-to-file.md
6533
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-blob-to-file.md
6509
6534
  */
6510
6535
  'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
6511
6536
  /**
6512
6537
  * Disallow boolean-returning sort comparators.
6513
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-boolean-sort-comparator.md
6538
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-boolean-sort-comparator.md
6514
6539
  */
6515
6540
  'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
6516
6541
  /**
6517
6542
  * Disallow `break` and `continue` in nested loops and switches inside loops.
6518
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-break-in-nested-loop.md
6543
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-break-in-nested-loop.md
6519
6544
  */
6520
6545
  'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<[]>;
6521
6546
  /**
6522
6547
  * Prefer drawing canvases directly instead of converting them to images.
6523
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-canvas-to-image.md
6548
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-canvas-to-image.md
6524
6549
  */
6525
6550
  'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
6526
6551
  /**
6527
6552
  * Disallow chained comparisons such as `a < b < c`.
6528
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-chained-comparison.md
6553
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-chained-comparison.md
6529
6554
  */
6530
6555
  'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
6531
6556
  /**
6532
6557
  * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
6533
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-collection-bracket-access.md
6558
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-collection-bracket-access.md
6534
6559
  */
6535
6560
  'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
6536
6561
  /**
6537
6562
  * Disallow dynamic object property existence checks.
6538
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-computed-property-existence-check.md
6563
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-computed-property-existence-check.md
6539
6564
  */
6540
6565
  'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
6541
6566
  /**
6542
6567
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
6543
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-confusing-array-splice.md
6568
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-confusing-array-splice.md
6544
6569
  */
6545
6570
  'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
6546
6571
  /**
6547
6572
  * Disallow confusing uses of `Array#with()`.
6548
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-confusing-array-with.md
6573
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-confusing-array-with.md
6549
6574
  */
6550
6575
  'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
6551
6576
  /**
6552
6577
  * Do not use leading/trailing space between `console.log` parameters.
6553
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-console-spaces.md
6578
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-console-spaces.md
6554
6579
  */
6555
6580
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
6556
6581
  /**
6557
6582
  * Disallow arithmetic and bitwise operations that always evaluate to `0`.
6558
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-constant-zero-expression.md
6583
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-constant-zero-expression.md
6559
6584
  */
6560
6585
  'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
6561
6586
  /**
6562
6587
  * Disallow declarations before conditional early exits when they are only used after the exit.
6563
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-declarations-before-early-exit.md
6588
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-declarations-before-early-exit.md
6564
6589
  */
6565
6590
  'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
6566
6591
  /**
6567
6592
  * Do not use `document.cookie` directly.
6568
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-document-cookie.md
6593
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-document-cookie.md
6569
6594
  */
6570
6595
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
6571
6596
  /**
6572
6597
  * Disallow two comparisons of the same operands that can be combined into one.
6573
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-double-comparison.md
6598
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-double-comparison.md
6574
6599
  */
6575
6600
  'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
6576
6601
  /**
6577
6602
  * Disallow duplicate adjacent branches in if chains.
6578
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-duplicate-if-branches.md
6603
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-if-branches.md
6579
6604
  */
6580
6605
  'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
6581
6606
  /**
6582
6607
  * Disallow adjacent duplicate operands in logical expressions.
6583
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-duplicate-logical-operands.md
6608
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-logical-operands.md
6584
6609
  */
6585
6610
  'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
6586
6611
  /**
6587
6612
  * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
6588
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-duplicate-loops.md
6613
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-loops.md
6589
6614
  */
6590
6615
  'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
6591
6616
  /**
6592
6617
  * Disallow duplicate values in `Set` constructor array literals.
6593
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-duplicate-set-values.md
6618
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-set-values.md
6594
6619
  */
6595
6620
  'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
6596
6621
  /**
6597
6622
  * Disallow empty files.
6598
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-empty-file.md
6623
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-empty-file.md
6599
6624
  */
6600
6625
  'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
6601
6626
  /**
6602
6627
  * Disallow assigning to built-in error properties.
6603
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-error-property-assignment.md
6628
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-error-property-assignment.md
6604
6629
  */
6605
6630
  'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
6606
6631
  /**
6607
6632
  * Disallow exports in scripts.
6608
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-exports-in-scripts.md
6633
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-exports-in-scripts.md
6609
6634
  */
6610
6635
  'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
6611
6636
  /**
6612
6637
  * Prefer `for…of` over the `forEach` method.
6613
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-for-each.md
6638
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-for-each.md
6614
6639
  */
6615
6640
  'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
6616
6641
  /**
6617
6642
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
6618
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-for-loop.md
6643
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-for-loop.md
6619
6644
  */
6620
6645
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
6621
6646
  /**
6622
6647
  * Disallow assigning properties on the global object.
6623
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-global-object-property-assignment.md
6648
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-global-object-property-assignment.md
6624
6649
  */
6625
6650
  'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
6626
6651
  /**
6627
6652
  * Replaced by `unicorn/prefer-unicode-code-point-escapes` which covers more cases.
6628
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
6653
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
6629
6654
  * @deprecated
6630
6655
  */
6631
6656
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
6632
6657
  /**
6633
6658
  * Disallow immediate mutation after variable assignment.
6634
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-immediate-mutation.md
6659
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-immediate-mutation.md
6635
6660
  */
6636
6661
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
6637
6662
  /**
6638
6663
  * Disallow impossible comparisons against `.length` or `.size`.
6639
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-impossible-length-comparison.md
6664
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-impossible-length-comparison.md
6640
6665
  */
6641
6666
  'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
6642
6667
  /**
6643
6668
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
6644
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-incorrect-query-selector.md
6669
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-incorrect-query-selector.md
6645
6670
  */
6646
6671
  'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
6647
6672
  /**
6648
6673
  * Disallow incorrect template literal interpolation syntax.
6649
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-incorrect-template-string-interpolation.md
6674
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-incorrect-template-string-interpolation.md
6650
6675
  */
6651
6676
  'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
6652
6677
  /**
6653
6678
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
6654
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
6679
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
6655
6680
  * @deprecated
6656
6681
  */
6657
6682
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
6658
6683
  /**
6659
6684
  * Disallow `instanceof` with built-in objects
6660
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-instanceof-builtins.md
6685
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-instanceof-builtins.md
6661
6686
  */
6662
6687
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
6663
6688
  /**
6664
6689
  * Disallow calling functions and constructors with an invalid number of arguments.
6665
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-argument-count.md
6690
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-argument-count.md
6666
6691
  */
6667
6692
  'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
6668
6693
  /**
6669
6694
  * Disallow comparing a single character from a string to a multi-character string.
6670
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-character-comparison.md
6695
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-character-comparison.md
6671
6696
  */
6672
6697
  'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
6673
6698
  /**
6674
6699
  * Disallow invalid options in `fetch()` and `new Request()`.
6675
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-fetch-options.md
6700
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-fetch-options.md
6676
6701
  */
6677
6702
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
6678
6703
  /**
6679
6704
  * Disallow invalid `accept` values on file inputs.
6680
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-file-input-accept.md
6705
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-file-input-accept.md
6681
6706
  */
6682
6707
  'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
6683
6708
  /**
6684
6709
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
6685
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-remove-event-listener.md
6710
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-remove-event-listener.md
6686
6711
  */
6687
6712
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
6688
6713
  /**
6689
6714
  * Disallow invalid implementations of well-known symbol methods.
6690
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
6715
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
6691
6716
  */
6692
6717
  'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
6693
6718
  /**
6694
6719
  * Disallow identifiers starting with `new` or `class`.
6695
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-keyword-prefix.md
6720
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-keyword-prefix.md
6696
6721
  */
6697
6722
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
6698
6723
  /**
6699
6724
  * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
6700
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-late-current-target-access.md
6725
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-late-current-target-access.md
6701
6726
  */
6702
6727
  'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
6703
6728
  /**
6704
6729
  * Disallow event-control method calls after the synchronous event dispatch has finished.
6705
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-late-event-control.md
6730
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-late-event-control.md
6706
6731
  */
6707
6732
  'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
6708
6733
  /**
6709
6734
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
6710
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
6735
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
6711
6736
  * @deprecated
6712
6737
  */
6713
6738
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
6714
6739
  /**
6715
6740
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
6716
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-lonely-if.md
6741
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-lonely-if.md
6717
6742
  */
6718
6743
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
6719
6744
  /**
6720
6745
  * Disallow mutating a loop iterable during iteration.
6721
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-loop-iterable-mutation.md
6746
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-loop-iterable-mutation.md
6722
6747
  */
6723
6748
  'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
6724
6749
  /**
6725
6750
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
6726
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-magic-array-flat-depth.md
6751
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-magic-array-flat-depth.md
6727
6752
  */
6728
6753
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
6729
6754
  /**
6730
6755
  * Disallow manually wrapped comments.
6731
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-manually-wrapped-comments.md
6756
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-manually-wrapped-comments.md
6732
6757
  */
6733
6758
  'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
6734
6759
  /**
6735
6760
  * Disallow checking a Map key before accessing a different key.
6736
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-mismatched-map-key.md
6761
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-mismatched-map-key.md
6737
6762
  */
6738
6763
  'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
6739
6764
  /**
6740
6765
  * Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
6741
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-misrefactored-assignment.md
6766
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-misrefactored-assignment.md
6742
6767
  */
6743
6768
  'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
6744
6769
  /**
6745
6770
  * Disallow references to missing local resources.
6746
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-missing-local-resource.md
6771
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-missing-local-resource.md
6747
6772
  */
6748
6773
  'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>;
6749
6774
  /**
6750
6775
  * Disallow calling Promise executor resolver functions more than once on the same execution path.
6751
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-multiple-promise-resolver-calls.md
6776
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-multiple-promise-resolver-calls.md
6752
6777
  */
6753
6778
  'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>;
6754
6779
  /**
6755
6780
  * Disallow named usage of default import and export.
6756
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-named-default.md
6781
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-named-default.md
6757
6782
  */
6758
6783
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
6759
6784
  /**
6760
6785
  * Disallow negated array predicate calls.
6761
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-negated-array-predicate.md
6786
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negated-array-predicate.md
6762
6787
  */
6763
6788
  'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
6764
6789
  /**
6765
6790
  * Disallow negated comparisons.
6766
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-negated-comparison.md
6791
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negated-comparison.md
6767
6792
  */
6768
6793
  'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
6769
6794
  /**
6770
6795
  * Disallow negated conditions.
6771
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-negated-condition.md
6796
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negated-condition.md
6772
6797
  */
6773
6798
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
6774
6799
  /**
6775
6800
  * Disallow negated expression in equality check.
6776
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-negation-in-equality-check.md
6801
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negation-in-equality-check.md
6777
6802
  */
6778
6803
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
6779
6804
  /**
6780
6805
  * Disallow nested ternary expressions.
6781
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-nested-ternary.md
6806
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-nested-ternary.md
6782
6807
  */
6783
6808
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
6784
6809
  /**
6785
6810
  * Disallow `new Array()`.
6786
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-new-array.md
6811
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-new-array.md
6787
6812
  */
6788
6813
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
6789
6814
  /**
6790
6815
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
6791
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-new-buffer.md
6816
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-new-buffer.md
6792
6817
  */
6793
6818
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
6794
6819
  /**
6795
6820
  * Disallow non-function values with function-style verb prefixes.
6796
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-non-function-verb-prefix.md
6821
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-non-function-verb-prefix.md
6797
6822
  */
6798
6823
  'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
6799
6824
  /**
6800
6825
  * Disallow non-standard properties on built-in objects.
6801
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-nonstandard-builtin-properties.md
6826
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-nonstandard-builtin-properties.md
6802
6827
  */
6803
6828
  'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
6804
6829
  /**
6805
6830
  * Disallow the use of the `null` literal.
6806
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-null.md
6831
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-null.md
6807
6832
  */
6808
6833
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
6809
6834
  /**
6810
6835
  * Disallow the use of objects as default parameters.
6811
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-object-as-default-parameter.md
6836
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-object-as-default-parameter.md
6812
6837
  */
6813
6838
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
6814
6839
  /**
6815
6840
  * Disallow `Object` methods with `Map` or `Set`.
6816
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-object-methods-with-collections.md
6841
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-object-methods-with-collections.md
6817
6842
  */
6818
6843
  'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
6819
6844
  /**
6820
6845
  * Disallow optional chaining on undeclared variables.
6821
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
6846
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
6822
6847
  */
6823
6848
  'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
6824
6849
  /**
6825
6850
  * Disallow `process.exit()`.
6826
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-process-exit.md
6851
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-process-exit.md
6827
6852
  */
6828
6853
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
6829
6854
  /**
6830
6855
  * Disallow comparisons made redundant by an equality check in the same logical AND.
6831
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-redundant-comparison.md
6856
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-redundant-comparison.md
6832
6857
  */
6833
6858
  'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
6834
6859
  /**
6835
6860
  * Disallow using the return value of `Array#push()` and `Array#unshift()`.
6836
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-return-array-push.md
6861
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-return-array-push.md
6837
6862
  */
6838
6863
  'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
6839
6864
  /**
6840
6865
  * Disallow selector syntax in DOM names.
6841
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-selector-as-dom-name.md
6866
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-selector-as-dom-name.md
6842
6867
  */
6843
6868
  'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
6844
6869
  /**
6845
6870
  * Disallow shorthand properties that override related longhand properties.
6846
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-shorthand-property-overrides.md
6871
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-shorthand-property-overrides.md
6847
6872
  */
6848
6873
  'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>;
6849
6874
  /**
6850
6875
  * Disallow passing single-element arrays to `Promise` methods.
6851
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-single-promise-in-promise-methods.md
6876
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-single-promise-in-promise-methods.md
6852
6877
  */
6853
6878
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
6854
6879
  /**
6855
6880
  * Disallow classes that only have static members.
6856
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-static-only-class.md
6881
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-static-only-class.md
6857
6882
  */
6858
6883
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
6859
6884
  /**
6860
6885
  * Prefer comparing values directly over subtracting and comparing to `0`.
6861
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-subtraction-comparison.md
6886
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-subtraction-comparison.md
6862
6887
  */
6863
6888
  'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
6864
6889
  /**
6865
6890
  * Disallow `then` property.
6866
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-thenable.md
6891
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-thenable.md
6867
6892
  */
6868
6893
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
6869
6894
  /**
6870
6895
  * Disallow assigning `this` to a variable.
6871
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-this-assignment.md
6896
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-this-assignment.md
6872
6897
  */
6873
6898
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
6874
6899
  /**
6875
6900
  * Disallow `this` outside of classes.
6876
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-this-outside-of-class.md
6901
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-this-outside-of-class.md
6877
6902
  */
6878
6903
  'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
6879
6904
  /**
6880
6905
  * Disallow assigning to top-level variables from inside functions.
6881
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-top-level-assignment-in-function.md
6906
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-top-level-assignment-in-function.md
6882
6907
  */
6883
6908
  'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
6884
6909
  /**
6885
6910
  * Disallow top-level side effects in exported modules.
6886
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-top-level-side-effects.md
6911
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-top-level-side-effects.md
6887
6912
  */
6888
6913
  'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>;
6889
6914
  /**
6890
6915
  * Disallow `all` as a transition property.
6891
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-transition-all.md
6916
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-transition-all.md
6892
6917
  */
6893
6918
  'unicorn/no-transition-all'?: Linter.RuleEntry<[]>;
6894
6919
  /**
6895
6920
  * Disallow comparing `undefined` using `typeof`.
6896
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-typeof-undefined.md
6921
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-typeof-undefined.md
6897
6922
  */
6898
6923
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
6899
6924
  /**
6900
6925
  * Disallow referencing methods without calling them.
6901
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-uncalled-method.md
6926
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-uncalled-method.md
6902
6927
  */
6903
6928
  'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
6904
6929
  /**
6905
6930
  * Require class members to be declared.
6906
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-undeclared-class-members.md
6931
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-undeclared-class-members.md
6907
6932
  */
6908
6933
  'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
6909
6934
  /**
6910
6935
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
6911
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-array-flat-depth.md
6936
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-array-flat-depth.md
6912
6937
  */
6913
6938
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
6914
6939
  /**
6915
6940
  * Disallow `Array#flatMap()` callbacks that only wrap a single item.
6916
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-array-flat-map.md
6941
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-array-flat-map.md
6917
6942
  */
6918
6943
  'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
6919
6944
  /**
6920
6945
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
6921
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-array-splice-count.md
6946
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-array-splice-count.md
6922
6947
  */
6923
6948
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
6924
6949
  /**
6925
6950
  * Disallow awaiting non-promise values.
6926
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-await.md
6951
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-await.md
6927
6952
  */
6928
6953
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
6929
6954
  /**
6930
6955
  * Disallow unnecessary comparisons against boolean literals.
6931
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-boolean-comparison.md
6956
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-boolean-comparison.md
6932
6957
  */
6933
6958
  'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
6934
6959
  /**
6935
6960
  * Disallow unnecessary options in `fetch()` and `new Request()`.
6936
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-fetch-options.md
6961
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-fetch-options.md
6937
6962
  */
6938
6963
  'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
6939
6964
  /**
6940
6965
  * Disallow unnecessary `globalThis` references.
6941
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-global-this.md
6966
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-global-this.md
6942
6967
  */
6943
6968
  'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
6944
6969
  /**
6945
6970
  * Disallow unnecessary nested ternary expressions.
6946
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-nested-ternary.md
6971
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-nested-ternary.md
6947
6972
  */
6948
6973
  'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
6949
6974
  /**
6950
6975
  * Enforce the use of built-in methods instead of unnecessary polyfills.
6951
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-polyfills.md
6976
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-polyfills.md
6952
6977
  */
6953
6978
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
6954
6979
  /**
6955
6980
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
6956
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-slice-end.md
6981
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-slice-end.md
6957
6982
  */
6958
6983
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
6959
6984
  /**
6960
6985
  * Disallow `Array#splice()` when simpler alternatives exist.
6961
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-splice.md
6986
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-splice.md
6962
6987
  */
6963
6988
  'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
6964
6989
  /**
6965
6990
  * Disallow `String#trim()` before `String#startsWith()` or `String#endsWith()`.
6966
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-string-trim.md
6991
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-string-trim.md
6967
6992
  */
6968
6993
  'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>;
6969
6994
  /**
6970
6995
  * Disallow unreadable array destructuring.
6971
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-array-destructuring.md
6996
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-array-destructuring.md
6972
6997
  */
6973
6998
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
6974
6999
  /**
6975
7000
  * Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
6976
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-for-of-expression.md
7001
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-for-of-expression.md
6977
7002
  */
6978
7003
  'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
6979
7004
  /**
6980
7005
  * Disallow unreadable IIFEs.
6981
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-iife.md
7006
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-iife.md
6982
7007
  */
6983
7008
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
6984
7009
  /**
6985
7010
  * Disallow unreadable `new` expressions.
6986
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-new-expression.md
7011
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-new-expression.md
6987
7012
  */
6988
7013
  'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
6989
7014
  /**
6990
7015
  * Disallow unreadable object destructuring.
6991
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-object-destructuring.md
7016
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-object-destructuring.md
6992
7017
  */
6993
7018
  'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
6994
7019
  /**
6995
7020
  * Prevent unsafe use of ArrayBuffer view `.buffer`.
6996
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-buffer-conversion.md
7021
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-buffer-conversion.md
6997
7022
  */
6998
7023
  'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
6999
7024
  /**
7000
7025
  * Disallow unsafe DOM HTML APIs.
7001
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-dom-html.md
7026
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-dom-html.md
7002
7027
  */
7003
7028
  'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
7004
7029
  /**
7005
7030
  * Disallow reading `.value` from `Promise.allSettled()` results without a fulfilled status guard.
7006
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
7031
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
7007
7032
  */
7008
7033
  'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
7009
7034
  /**
7010
7035
  * Disallow unsafe values as property keys.
7011
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-property-key.md
7036
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-property-key.md
7012
7037
  */
7013
7038
  'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
7039
+ /**
7040
+ * Disallow interpolation into SQL strings passed to Node’s `node:sqlite` APIs.
7041
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
7042
+ */
7043
+ 'unicorn/no-unsafe-sqlite-interpolation'?: Linter.RuleEntry<[]>;
7014
7044
  /**
7015
7045
  * Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
7016
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-string-replacement.md
7046
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-string-replacement.md
7017
7047
  */
7018
7048
  'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
7019
7049
  /**
7020
7050
  * Disallow ignoring the return value of selected array methods.
7021
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unused-array-method-return.md
7051
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unused-array-method-return.md
7022
7052
  */
7023
7053
  'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
7024
7054
  /**
7025
7055
  * Disallow unused object properties.
7026
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unused-properties.md
7056
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unused-properties.md
7027
7057
  */
7028
7058
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
7029
7059
  /**
7030
7060
  * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
7031
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-boolean-cast.md
7061
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-boolean-cast.md
7032
7062
  */
7033
7063
  'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
7034
7064
  /**
7035
7065
  * Disallow useless type coercions of values that are already of the target type.
7036
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-coercion.md
7066
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-coercion.md
7037
7067
  */
7038
7068
  'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
7039
7069
  /**
7040
7070
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
7041
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-collection-argument.md
7071
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-collection-argument.md
7042
7072
  */
7043
7073
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
7044
7074
  /**
7045
7075
  * Disallow useless compound assignments such as `x += 0`.
7046
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-compound-assignment.md
7076
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-compound-assignment.md
7047
7077
  */
7048
7078
  'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
7049
7079
  /**
7050
7080
  * Disallow useless concatenation of literals.
7051
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-concat.md
7081
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-concat.md
7052
7082
  */
7053
7083
  'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
7054
7084
  /**
7055
7085
  * Disallow useless `continue` statements.
7056
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-continue.md
7086
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-continue.md
7057
7087
  */
7058
7088
  'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
7059
7089
  /**
7060
7090
  * Disallow unnecessary existence checks before deletion.
7061
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-delete-check.md
7091
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-delete-check.md
7062
7092
  */
7063
7093
  'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
7064
7094
  /**
7065
7095
  * Disallow `else` after a statement that exits.
7066
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-else.md
7096
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-else.md
7067
7097
  */
7068
7098
  'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
7069
7099
  /**
7070
7100
  * Disallow unnecessary `Error.captureStackTrace(…)`.
7071
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-error-capture-stack-trace.md
7101
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-error-capture-stack-trace.md
7072
7102
  */
7073
7103
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
7074
7104
  /**
7075
7105
  * Disallow useless fallback when spreading in object literals.
7076
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-fallback-in-spread.md
7106
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-fallback-in-spread.md
7077
7107
  */
7078
7108
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
7079
7109
  /**
7080
7110
  * Disallow unnecessary `.toArray()` on iterators.
7081
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-iterator-to-array.md
7111
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-iterator-to-array.md
7082
7112
  */
7083
7113
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
7084
7114
  /**
7085
7115
  * Disallow useless array length check.
7086
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-length-check.md
7116
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-length-check.md
7087
7117
  */
7088
7118
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
7089
7119
  /**
7090
7120
  * Disallow unnecessary operands in logical expressions involving boolean literals.
7091
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-logical-operand.md
7121
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-logical-operand.md
7092
7122
  */
7093
7123
  'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
7094
7124
  /**
7095
7125
  * Disallow useless overrides of class methods.
7096
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-override.md
7126
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-override.md
7097
7127
  */
7098
7128
  'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
7099
7129
  /**
7100
7130
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
7101
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-promise-resolve-reject.md
7131
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-promise-resolve-reject.md
7102
7132
  */
7103
7133
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
7104
7134
  /**
7105
7135
  * Disallow redundant re-exports.
7106
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-re-export.md
7136
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-re-export.md
7107
7137
  */
7108
7138
  'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>;
7109
7139
  /**
7110
7140
  * Disallow simple recursive function calls that can be replaced with a loop.
7111
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-recursion.md
7141
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-recursion.md
7112
7142
  */
7113
7143
  'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
7114
7144
  /**
7115
7145
  * Disallow unnecessary spread.
7116
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-spread.md
7146
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-spread.md
7117
7147
  */
7118
7148
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
7119
7149
  /**
7120
7150
  * Disallow useless case in switch statements.
7121
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-switch-case.md
7151
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-switch-case.md
7122
7152
  */
7123
7153
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
7124
7154
  /**
7125
7155
  * Disallow useless template literal expressions.
7126
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-template-literals.md
7156
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-template-literals.md
7127
7157
  */
7128
7158
  'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
7129
7159
  /**
7130
7160
  * Disallow useless `undefined`.
7131
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-undefined.md
7161
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-undefined.md
7132
7162
  */
7133
7163
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
7134
7164
  /**
7135
7165
  * Disallow the bitwise XOR operator where exponentiation was likely intended.
7136
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-xor-as-exponentiation.md
7166
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-xor-as-exponentiation.md
7137
7167
  */
7138
7168
  'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
7139
7169
  /**
7140
7170
  * Disallow number literals with zero fractions or dangling dots.
7141
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-zero-fractions.md
7171
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-zero-fractions.md
7142
7172
  */
7143
7173
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
7144
7174
  /**
7145
7175
  * Enforce proper case for numeric literals.
7146
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/number-literal-case.md
7176
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/number-literal-case.md
7147
7177
  */
7148
7178
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
7149
7179
  /**
7150
7180
  * Enforce the style of numeric separators by correctly grouping digits.
7151
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/numeric-separators-style.md
7181
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/numeric-separators-style.md
7152
7182
  */
7153
7183
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
7154
7184
  /**
7155
7185
  * Require assignment operator shorthand where possible.
7156
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/operator-assignment.md
7186
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/operator-assignment.md
7157
7187
  */
7158
7188
  'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
7159
7189
  /**
7160
7190
  * Prefer `AbortSignal.any()` over manually forwarding abort events between signals.
7161
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-abort-signal-any.md
7191
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-abort-signal-any.md
7162
7192
  */
7163
7193
  'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
7164
7194
  /**
7165
7195
  * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
7166
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-abort-signal-timeout.md
7196
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-abort-signal-timeout.md
7167
7197
  */
7168
7198
  'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
7169
7199
  /**
7170
7200
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
7171
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-add-event-listener.md
7201
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-add-event-listener.md
7172
7202
  */
7173
7203
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
7174
7204
  /**
7175
7205
  * Prefer an options object over a boolean in `.addEventListener()`.
7176
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-add-event-listener-options.md
7206
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-add-event-listener-options.md
7177
7207
  */
7178
7208
  'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
7179
7209
  /**
7180
7210
  * Prefer `AggregateError` when throwing collected errors.
7181
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-aggregate-error.md
7211
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-aggregate-error.md
7182
7212
  */
7183
7213
  'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
7184
7214
  /**
7185
7215
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
7186
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-find.md
7216
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-find.md
7187
7217
  */
7188
7218
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
7189
7219
  /**
7190
7220
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
7191
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-flat.md
7221
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-flat.md
7192
7222
  */
7193
7223
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
7194
7224
  /**
7195
7225
  * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
7196
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-flat-map.md
7226
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-flat-map.md
7197
7227
  */
7198
7228
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
7199
7229
  /**
7200
7230
  * Prefer `Array.fromAsync()` over `for await…of` array accumulation.
7201
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-from-async.md
7231
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-from-async.md
7202
7232
  */
7203
7233
  'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
7204
7234
  /**
7205
7235
  * Prefer using the `Array.from()` mapping function argument.
7206
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-from-map.md
7236
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-from-map.md
7207
7237
  */
7208
7238
  'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
7209
7239
  /**
7210
7240
  * Prefer `Array.from({length}, …)` when creating range arrays.
7211
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-from-range.md
7241
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-from-range.md
7212
7242
  */
7213
7243
  'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
7214
7244
  /**
7215
7245
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
7216
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-index-of.md
7246
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-index-of.md
7217
7247
  */
7218
7248
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
7219
7249
  /**
7220
7250
  * Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
7221
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-iterable-methods.md
7251
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-iterable-methods.md
7222
7252
  */
7223
7253
  'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
7224
7254
  /**
7225
7255
  * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
7226
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-last-methods.md
7256
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-last-methods.md
7227
7257
  */
7228
7258
  'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
7229
7259
  /**
7230
7260
  * Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
7231
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-slice.md
7261
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-slice.md
7232
7262
  */
7233
7263
  'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
7234
7264
  /**
7235
7265
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
7236
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-some.md
7266
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-some.md
7237
7267
  */
7238
7268
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
7239
7269
  /**
7240
7270
  * Prefer `.at()` method for index access and `String#charAt()`.
7241
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-at.md
7271
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-at.md
7242
7272
  */
7243
7273
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
7244
7274
  /**
7245
7275
  * Prefer `await` over promise chaining.
7246
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-await.md
7276
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-await.md
7247
7277
  */
7248
7278
  'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
7249
7279
  /**
7250
7280
  * Prefer `BigInt` literals over the constructor.
7251
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-bigint-literals.md
7281
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-bigint-literals.md
7252
7282
  */
7253
7283
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
7254
7284
  /**
7255
7285
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
7256
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-blob-reading-methods.md
7286
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-blob-reading-methods.md
7257
7287
  */
7258
7288
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
7259
7289
  /**
7260
7290
  * Prefer block statements over IIFEs used only for scoping.
7261
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-block-statement-over-iife.md
7291
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-block-statement-over-iife.md
7262
7292
  */
7263
7293
  'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
7264
7294
  /**
7265
7295
  * Prefer directly returning boolean expressions over `if` statements.
7266
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-boolean-return.md
7296
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-boolean-return.md
7267
7297
  */
7268
7298
  'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
7269
7299
  /**
7270
7300
  * Prefer class field declarations over `this` assignments in constructors.
7271
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-class-fields.md
7301
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-class-fields.md
7272
7302
  */
7273
7303
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
7274
7304
  /**
7275
7305
  * Prefer using `Element#classList.toggle()` to toggle class names.
7276
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-classlist-toggle.md
7306
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-classlist-toggle.md
7277
7307
  */
7278
7308
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
7279
7309
  /**
7280
7310
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
7281
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-code-point.md
7311
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-code-point.md
7282
7312
  */
7283
7313
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
7284
7314
  /**
7285
7315
  * Prefer early continues over whole-loop conditional wrapping.
7286
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-continue.md
7316
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-continue.md
7287
7317
  */
7288
7318
  'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
7289
7319
  /**
7290
7320
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
7291
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-date-now.md
7321
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-date-now.md
7292
7322
  */
7293
7323
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
7294
7324
  /**
7295
7325
  * Prefer default parameters over reassignment.
7296
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-default-parameters.md
7326
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-default-parameters.md
7297
7327
  */
7298
7328
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
7299
7329
  /**
7300
7330
  * Prefer direct iteration over default iterator method calls.
7301
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-direct-iteration.md
7331
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-direct-iteration.md
7302
7332
  */
7303
7333
  'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
7304
7334
  /**
7305
7335
  * Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
7306
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dispose.md
7336
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dispose.md
7307
7337
  */
7308
7338
  'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
7309
7339
  /**
7310
7340
  * Prefer `Element#append()` over `Node#appendChild()`.
7311
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-append.md
7341
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-append.md
7312
7342
  */
7313
7343
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
7314
7344
  /**
7315
7345
  * Renamed to `unicorn/dom-node-dataset`.
7316
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
7346
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
7317
7347
  * @deprecated
7318
7348
  */
7319
7349
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
7320
7350
  /**
7321
7351
  * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
7322
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-html-methods.md
7352
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-html-methods.md
7323
7353
  */
7324
7354
  'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
7325
7355
  /**
7326
7356
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
7327
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-remove.md
7357
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-remove.md
7328
7358
  */
7329
7359
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
7330
7360
  /**
7331
7361
  * Prefer `.replaceChildren()` when emptying DOM children.
7332
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-replace-children.md
7362
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-replace-children.md
7333
7363
  */
7334
7364
  'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
7335
7365
  /**
7336
7366
  * Prefer `.textContent` over `.innerText`.
7337
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-text-content.md
7367
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-text-content.md
7338
7368
  */
7339
7369
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
7340
7370
  /**
7341
7371
  * Prefer early returns over full-function conditional wrapping.
7342
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-early-return.md
7372
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-early-return.md
7343
7373
  */
7344
7374
  'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
7345
7375
  /**
7346
7376
  * Prefer `else if` over adjacent `if` statements with related conditions.
7347
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-else-if.md
7377
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-else-if.md
7348
7378
  */
7349
7379
  'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
7350
7380
  /**
7351
7381
  * Prefer `Error.isError()` when checking for errors.
7352
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-error-is-error.md
7382
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-error-is-error.md
7353
7383
  */
7354
7384
  'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
7355
7385
  /**
7356
7386
  * Prefer `EventTarget` over `EventEmitter`.
7357
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-event-target.md
7387
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-event-target.md
7358
7388
  */
7359
7389
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
7360
7390
  /**
7361
7391
  * Prefer explicit viewport units.
7362
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-explicit-viewport-units.md
7392
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-explicit-viewport-units.md
7363
7393
  */
7364
7394
  'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<UnicornPreferExplicitViewportUnits>;
7365
7395
  /**
7366
7396
  * Prefer `export…from` when re-exporting.
7367
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-export-from.md
7397
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-export-from.md
7368
7398
  */
7369
7399
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
7370
7400
  /**
7371
7401
  * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
7372
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-flat-math-min-max.md
7402
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-flat-math-min-max.md
7373
7403
  */
7374
7404
  'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
7375
7405
  /**
7376
7406
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
7377
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-get-or-insert-computed.md
7407
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-get-or-insert-computed.md
7378
7408
  */
7379
7409
  'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
7380
7410
  /**
7381
7411
  * Prefer global numeric constants over `Number` static properties.
7382
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-global-number-constants.md
7412
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-global-number-constants.md
7383
7413
  */
7384
7414
  'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
7385
7415
  /**
7386
7416
  * Prefer `globalThis` over `window`, `self`, and `global`.
7387
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-global-this.md
7417
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-global-this.md
7388
7418
  */
7389
7419
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
7390
7420
  /**
7391
7421
  * Prefer `Object.groupBy()` or `Map.groupBy()` over reduce-based grouping.
7392
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-group-by.md
7422
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-group-by.md
7393
7423
  */
7394
7424
  'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
7395
7425
  /**
7396
7426
  * Prefer `.has()` when checking existence.
7397
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-has-check.md
7427
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-has-check.md
7398
7428
  */
7399
7429
  'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
7400
7430
  /**
7401
7431
  * Prefer moving code shared by all branches of an `if` statement out of the branches.
7402
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-hoisting-branch-code.md
7432
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-hoisting-branch-code.md
7403
7433
  */
7404
7434
  'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
7405
7435
  /**
7406
7436
  * Prefer HTTPS over HTTP.
7407
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-https.md
7437
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-https.md
7408
7438
  */
7409
- 'unicorn/prefer-https'?: Linter.RuleEntry<[]>;
7439
+ 'unicorn/prefer-https'?: Linter.RuleEntry<UnicornPreferHttps>;
7410
7440
  /**
7411
7441
  * Prefer identifiers over string literals in import and export specifiers.
7412
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
7442
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
7413
7443
  */
7414
7444
  'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
7415
7445
  /**
7416
7446
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
7417
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-import-meta-properties.md
7447
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-import-meta-properties.md
7418
7448
  */
7419
7449
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
7420
7450
  /**
7421
7451
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
7422
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-includes.md
7452
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-includes.md
7423
7453
  */
7424
7454
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
7425
7455
  /**
7426
7456
  * Prefer `.includes()` over repeated equality comparisons.
7427
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
7457
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
7428
7458
  */
7429
7459
  'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
7430
7460
  /**
7431
7461
  * Prefer passing iterables directly to constructors instead of filling empty collections.
7432
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterable-in-constructor.md
7462
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterable-in-constructor.md
7433
7463
  */
7434
7464
  'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
7435
7465
  /**
7436
7466
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
7437
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterator-concat.md
7467
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-concat.md
7438
7468
  */
7439
7469
  'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
7440
7470
  /**
7441
7471
  * Prefer iterator helpers over temporary arrays from iterators.
7442
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterator-helpers.md
7472
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-helpers.md
7443
7473
  */
7444
7474
  'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
7445
7475
  /**
7446
7476
  * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
7447
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterator-to-array.md
7477
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-to-array.md
7448
7478
  */
7449
7479
  'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
7450
7480
  /**
7451
7481
  * Prefer moving `.toArray()` to the end of iterator helper chains.
7452
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterator-to-array-at-end.md
7482
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-to-array-at-end.md
7453
7483
  */
7454
7484
  'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
7455
7485
  /**
7456
7486
  * Renamed to `unicorn/consistent-json-file-read`.
7457
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
7487
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
7458
7488
  * @deprecated
7459
7489
  */
7460
7490
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
7461
7491
  /**
7462
7492
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
7463
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-keyboard-event-key.md
7493
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-keyboard-event-key.md
7464
7494
  */
7465
7495
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
7466
7496
  /**
7467
7497
  * Prefer `location.assign()` over assigning to `location.href`.
7468
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-location-assign.md
7498
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-location-assign.md
7469
7499
  */
7470
7500
  'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
7471
7501
  /**
7472
7502
  * Prefer using a logical operator over a ternary.
7473
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-logical-operator-over-ternary.md
7503
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-logical-operator-over-ternary.md
7474
7504
  */
7475
7505
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
7476
7506
  /**
7477
7507
  * Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
7478
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-map-from-entries.md
7508
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-map-from-entries.md
7479
7509
  */
7480
7510
  'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
7481
7511
  /**
7482
7512
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
7483
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-math-abs.md
7513
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-abs.md
7484
7514
  */
7485
7515
  'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
7486
7516
  /**
7487
7517
  * Prefer `Math` constants over their approximate numeric values.
7488
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-math-constants.md
7518
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-constants.md
7489
7519
  */
7490
7520
  'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
7491
7521
  /**
7492
7522
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
7493
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-math-min-max.md
7523
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-min-max.md
7494
7524
  */
7495
7525
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
7496
7526
  /**
7497
7527
  * Prefer `Math.trunc()` for truncating numbers.
7498
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-math-trunc.md
7528
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-trunc.md
7499
7529
  */
7500
7530
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
7501
7531
  /**
7502
7532
  * Prefer moving ternaries into the minimal varying part of an expression.
7503
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-minimal-ternary.md
7533
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-minimal-ternary.md
7504
7534
  */
7505
7535
  'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
7506
7536
  /**
7507
7537
  * Prefer modern DOM APIs.
7508
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-modern-dom-apis.md
7538
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-modern-dom-apis.md
7509
7539
  */
7510
7540
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
7511
7541
  /**
7512
7542
  * Prefer modern `Math` APIs over legacy patterns.
7513
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-modern-math-apis.md
7543
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-modern-math-apis.md
7514
7544
  */
7515
7545
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
7516
7546
  /**
7517
7547
  * Prefer JavaScript modules (ESM) over CommonJS.
7518
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-module.md
7548
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-module.md
7519
7549
  */
7520
7550
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
7521
7551
  /**
7522
7552
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
7523
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-native-coercion-functions.md
7553
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-native-coercion-functions.md
7524
7554
  */
7525
7555
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
7526
7556
  /**
7527
7557
  * Prefer negative index over `.length - index` when possible.
7528
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-negative-index.md
7558
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-negative-index.md
7529
7559
  */
7530
7560
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
7531
7561
  /**
7532
7562
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
7533
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-node-protocol.md
7563
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-node-protocol.md
7534
7564
  */
7535
7565
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
7536
7566
  /**
7537
7567
  * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
7538
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-number-coercion.md
7568
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-number-coercion.md
7539
7569
  */
7540
7570
  'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
7541
7571
  /**
7542
7572
  * Prefer `Number.isSafeInteger()` over integer checks.
7543
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-number-is-safe-integer.md
7573
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-number-is-safe-integer.md
7544
7574
  */
7545
7575
  'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
7546
7576
  /**
7547
7577
  * Prefer `Number` static methods over global functions and optionally static properties over global constants.
7548
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-number-properties.md
7578
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-number-properties.md
7549
7579
  */
7550
7580
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
7551
7581
  /**
7552
7582
  * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
7553
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-object-define-properties.md
7583
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-define-properties.md
7554
7584
  */
7555
7585
  'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
7556
7586
  /**
7557
7587
  * Prefer object destructuring defaults over default object literals with spread.
7558
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-object-destructuring-defaults.md
7588
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-destructuring-defaults.md
7559
7589
  */
7560
7590
  'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
7561
7591
  /**
7562
7592
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
7563
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-object-from-entries.md
7593
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-from-entries.md
7564
7594
  */
7565
7595
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
7566
7596
  /**
7567
7597
  * Prefer the most specific `Object` iterable method.
7568
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-object-iterable-methods.md
7598
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-iterable-methods.md
7569
7599
  */
7570
7600
  'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
7571
7601
  /**
7572
7602
  * Prefer observer APIs over resize and scroll listeners with layout reads.
7573
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-observer-apis.md
7603
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-observer-apis.md
7574
7604
  */
7575
7605
  'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
7576
7606
  /**
7577
7607
  * Prefer omitting the `catch` binding parameter.
7578
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-optional-catch-binding.md
7608
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-optional-catch-binding.md
7579
7609
  */
7580
7610
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
7581
7611
  /**
7582
7612
  * Prefer `Path2D` for repeatedly drawn canvas paths.
7583
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-path2d.md
7613
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-path2d.md
7584
7614
  */
7585
7615
  'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
7586
7616
  /**
7587
7617
  * Prefer private class fields over the underscore-prefix convention.
7588
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-private-class-fields.md
7618
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-private-class-fields.md
7589
7619
  */
7590
7620
  'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
7591
7621
  /**
7592
7622
  * Prefer `Promise.try()` over promise-wrapping boilerplate.
7593
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-promise-try.md
7623
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-promise-try.md
7594
7624
  */
7595
7625
  'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
7596
7626
  /**
7597
7627
  * Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
7598
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-promise-with-resolvers.md
7628
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-promise-with-resolvers.md
7599
7629
  */
7600
7630
  'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
7601
7631
  /**
7602
7632
  * Prefer borrowing methods from the prototype instead of the instance.
7603
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-prototype-methods.md
7633
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-prototype-methods.md
7604
7634
  */
7605
7635
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
7606
7636
  /**
7607
7637
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
7608
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-query-selector.md
7638
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-query-selector.md
7609
7639
  */
7610
7640
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
7611
7641
  /**
7612
7642
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
7613
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-queue-microtask.md
7643
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-queue-microtask.md
7614
7644
  */
7615
7645
  'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
7616
7646
  /**
7617
7647
  * Prefer `Reflect.apply()` over `Function#apply()`.
7618
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-reflect-apply.md
7648
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-reflect-apply.md
7619
7649
  */
7620
7650
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
7621
7651
  /**
7622
7652
  * Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
7623
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-regexp-escape.md
7653
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-regexp-escape.md
7624
7654
  */
7625
7655
  'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
7626
7656
  /**
7627
7657
  * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
7628
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-regexp-test.md
7658
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-regexp-test.md
7629
7659
  */
7630
7660
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
7631
7661
  /**
7632
7662
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
7633
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-response-static-json.md
7663
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-response-static-json.md
7634
7664
  */
7635
7665
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
7636
7666
  /**
7637
7667
  * Prefer `:scope` when using element query selector methods.
7638
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-scoped-selector.md
7668
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-scoped-selector.md
7639
7669
  */
7640
7670
  'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
7641
7671
  /**
7642
7672
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
7643
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-set-has.md
7673
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-set-has.md
7644
7674
  */
7645
7675
  'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
7646
7676
  /**
7647
7677
  * Prefer `Set` methods for Set operations.
7648
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-set-methods.md
7678
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-set-methods.md
7649
7679
  */
7650
7680
  'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
7651
7681
  /**
7652
7682
  * Prefer using `Set#size` instead of `Array#length`.
7653
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-set-size.md
7683
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-set-size.md
7654
7684
  */
7655
7685
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
7656
7686
  /**
7657
7687
  * Prefer arrow function properties over methods with a single return.
7658
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-short-arrow-method.md
7688
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-short-arrow-method.md
7659
7689
  */
7660
7690
  'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
7661
7691
  /**
7662
7692
  * Prefer simple conditions first in logical expressions.
7663
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-simple-condition-first.md
7693
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-simple-condition-first.md
7664
7694
  */
7665
7695
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
7666
7696
  /**
7667
7697
  * Prefer a simple comparison function for `Array#sort()`.
7668
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-simple-sort-comparator.md
7698
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-simple-sort-comparator.md
7669
7699
  */
7670
7700
  'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
7671
7701
  /**
7672
7702
  * Prefer simplified conditions.
7673
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-simplified-conditions.md
7703
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-simplified-conditions.md
7674
7704
  */
7675
7705
  'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<[]>;
7676
7706
  /**
7677
7707
  * Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
7678
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-single-array-predicate.md
7708
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-array-predicate.md
7679
7709
  */
7680
7710
  'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
7681
7711
  /**
7682
7712
  * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
7683
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-single-call.md
7713
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-call.md
7684
7714
  */
7685
7715
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
7686
7716
  /**
7687
7717
  * Prefer a single object destructuring declaration per local const source.
7688
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-single-object-destructuring.md
7718
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-object-destructuring.md
7689
7719
  */
7690
7720
  'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
7691
7721
  /**
7692
7722
  * Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
7693
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-single-replace.md
7723
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-replace.md
7694
7724
  */
7695
7725
  'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
7696
7726
  /**
7697
7727
  * Prefer declaring variables in the smallest possible scope.
7698
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-smaller-scope.md
7728
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-smaller-scope.md
7699
7729
  */
7700
7730
  'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
7701
7731
  /**
7702
7732
  * Prefer `String#split()` with a limit.
7703
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-split-limit.md
7733
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-split-limit.md
7704
7734
  */
7705
7735
  'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
7706
7736
  /**
7707
7737
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
7708
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-spread.md
7738
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-spread.md
7709
7739
  */
7710
7740
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
7711
7741
  /**
7712
7742
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
7713
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-match-all.md
7743
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-match-all.md
7714
7744
  */
7715
7745
  'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
7716
7746
  /**
7717
7747
  * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
7718
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-pad-start-end.md
7748
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-pad-start-end.md
7719
7749
  */
7720
7750
  'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
7721
7751
  /**
7722
7752
  * Prefer using the `String.raw` tag to avoid escaping `\`.
7723
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-raw.md
7753
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-raw.md
7724
7754
  */
7725
7755
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
7726
7756
  /**
7727
7757
  * Prefer `String#repeat()` for repeated whitespace.
7728
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-repeat.md
7758
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-repeat.md
7729
7759
  */
7730
7760
  'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
7731
7761
  /**
7732
7762
  * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
7733
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-replace-all.md
7763
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-replace-all.md
7734
7764
  */
7735
7765
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
7736
7766
  /**
7737
7767
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
7738
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-slice.md
7768
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-slice.md
7739
7769
  */
7740
7770
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
7741
7771
  /**
7742
7772
  * Prefer `String#startsWith()` & `String#endsWith()` over regexes, `String#indexOf() === 0`, and slice checks.
7743
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-starts-ends-with.md
7773
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-starts-ends-with.md
7744
7774
  */
7745
7775
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
7746
7776
  /**
7747
7777
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
7748
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-trim-start-end.md
7778
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-trim-start-end.md
7749
7779
  */
7750
7780
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
7751
7781
  /**
7752
7782
  * Prefer using `structuredClone` to create a deep clone.
7753
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-structured-clone.md
7783
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-structured-clone.md
7754
7784
  */
7755
7785
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
7756
7786
  /**
7757
7787
  * Prefer `switch` over multiple `else-if`.
7758
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-switch.md
7788
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-switch.md
7759
7789
  */
7760
7790
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
7761
7791
  /**
7762
7792
  * Prefer `Temporal` over `Date`.
7763
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-temporal.md
7793
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-temporal.md
7764
7794
  */
7765
7795
  'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
7766
7796
  /**
7767
7797
  * Prefer ternary expressions over simple `if` statements that return or assign values.
7768
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-ternary.md
7798
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-ternary.md
7769
7799
  */
7770
7800
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
7771
7801
  /**
7772
7802
  * Prefer `.then().catch()` over `.then(…, …)` for error handling.
7773
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-then-catch.md
7803
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-then-catch.md
7774
7804
  */
7775
7805
  'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>;
7776
7806
  /**
7777
7807
  * Prefer using `Element#toggleAttribute()` to toggle attributes.
7778
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-toggle-attribute.md
7808
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-toggle-attribute.md
7779
7809
  */
7780
7810
  'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
7781
7811
  /**
7782
7812
  * Prefer top-level await over top-level promises and async function calls.
7783
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-top-level-await.md
7813
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-top-level-await.md
7784
7814
  */
7785
7815
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
7786
7816
  /**
7787
7817
  * Enforce throwing `TypeError` in type checking conditions.
7788
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-type-error.md
7818
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-type-error.md
7789
7819
  */
7790
7820
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
7791
7821
  /**
7792
7822
  * Require type literals to be last in union types.
7793
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-type-literal-last.md
7823
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-type-literal-last.md
7794
7824
  */
7795
7825
  'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
7796
7826
  /**
7797
7827
  * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over `atob()`, `btoa()`, and `Buffer` base64 conversions.
7798
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-uint8array-base64.md
7828
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-uint8array-base64.md
7799
7829
  */
7800
7830
  'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
7801
7831
  /**
7802
7832
  * Prefer the unary minus operator over multiplying or dividing by `-1`.
7803
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-unary-minus.md
7833
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-unary-minus.md
7804
7834
  */
7805
7835
  'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
7806
7836
  /**
7807
7837
  * Prefer Unicode code point escapes over legacy escape sequences.
7808
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-unicode-code-point-escapes.md
7838
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-unicode-code-point-escapes.md
7809
7839
  */
7810
7840
  'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
7811
7841
  /**
7812
7842
  * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
7813
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-url-can-parse.md
7843
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-url-can-parse.md
7814
7844
  */
7815
7845
  'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
7816
7846
  /**
7817
7847
  * Prefer `URL#href` over stringifying a `URL`.
7818
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-url-href.md
7848
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-url-href.md
7819
7849
  */
7820
7850
  'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
7821
7851
  /**
7822
7852
  * Prefer `URLSearchParams` over manually splitting query strings.
7823
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-url-search-parameters.md
7853
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-url-search-parameters.md
7824
7854
  */
7825
7855
  'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
7826
7856
  /**
7827
7857
  * Prefer putting the condition in the while statement.
7828
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-while-loop-condition.md
7858
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-while-loop-condition.md
7829
7859
  */
7830
7860
  'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
7831
7861
  /**
7832
7862
  * Renamed to `unicorn/name-replacements`.
7833
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
7863
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
7834
7864
  * @deprecated
7835
7865
  */
7836
7866
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
7837
7867
  /**
7838
7868
  * Enforce consistent relative URL style.
7839
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/relative-url-style.md
7869
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/relative-url-style.md
7840
7870
  */
7841
7871
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
7842
7872
  /**
7843
7873
  * Enforce using the separator argument with `Array#join()`.
7844
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-array-join-separator.md
7874
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-array-join-separator.md
7845
7875
  */
7846
7876
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
7847
7877
  /**
7848
7878
  * Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
7849
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-array-sort-compare.md
7879
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-array-sort-compare.md
7850
7880
  */
7851
7881
  'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
7852
7882
  /**
7853
7883
  * Require `CSS.escape()` for interpolated values in CSS selectors.
7854
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-css-escape.md
7884
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-css-escape.md
7855
7885
  */
7856
7886
  'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
7857
7887
  /**
7858
7888
  * Require configured YAML frontmatter fields.
7859
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-frontmatter-fields.md
7889
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-frontmatter-fields.md
7860
7890
  */
7861
7891
  'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
7862
7892
  /**
7863
7893
  * Require non-empty module attributes for imports and exports
7864
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-module-attributes.md
7894
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-module-attributes.md
7865
7895
  */
7866
7896
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
7867
7897
  /**
7868
7898
  * Require non-empty specifier list in import and export statements.
7869
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-module-specifiers.md
7899
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-module-specifiers.md
7870
7900
  */
7871
7901
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
7872
7902
  /**
7873
7903
  * Enforce using the digits argument with `Number#toFixed()`.
7874
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-number-to-fixed-digits-argument.md
7904
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-number-to-fixed-digits-argument.md
7875
7905
  */
7876
7906
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
7877
7907
  /**
7878
7908
  * Require passive event listeners for high-frequency events.
7879
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-passive-events.md
7909
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-passive-events.md
7880
7910
  */
7881
7911
  'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
7882
7912
  /**
7883
7913
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
7884
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-post-message-target-origin.md
7914
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-post-message-target-origin.md
7885
7915
  */
7886
7916
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
7887
7917
  /**
7888
7918
  * Require boolean-returning Proxy traps to return booleans.
7889
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-proxy-trap-boolean-return.md
7919
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-proxy-trap-boolean-return.md
7890
7920
  */
7891
7921
  'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
7922
+ /**
7923
+ * Enforce a consistent style for single-line block comments.
7924
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/single-line-block-comment-style.md
7925
+ */
7926
+ 'unicorn/single-line-block-comment-style'?: Linter.RuleEntry<UnicornSingleLineBlockCommentStyle>;
7892
7927
  /**
7893
7928
  * Enforce better string content.
7894
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/string-content.md
7929
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/string-content.md
7895
7930
  */
7896
7931
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
7897
7932
  /**
7898
7933
  * Enforce consistent brace style for `case` clauses.
7899
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/switch-case-braces.md
7934
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/switch-case-braces.md
7900
7935
  */
7901
7936
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
7902
7937
  /**
7903
7938
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
7904
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/switch-case-break-position.md
7939
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/switch-case-break-position.md
7905
7940
  */
7906
7941
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
7907
7942
  /**
7908
7943
  * Fix whitespace-insensitive template indentation.
7909
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/template-indent.md
7944
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/template-indent.md
7910
7945
  */
7911
7946
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
7912
7947
  /**
7913
7948
  * Enforce consistent case for text encoding identifiers.
7914
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/text-encoding-identifier-case.md
7949
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/text-encoding-identifier-case.md
7915
7950
  */
7916
7951
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
7917
7952
  /**
7918
7953
  * Require `new` when creating an error.
7919
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/throw-new-error.md
7954
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/throw-new-error.md
7920
7955
  */
7921
7956
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
7922
7957
  /**
7923
7958
  * Limit the complexity of `try` blocks.
7924
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/try-complexity.md
7959
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/try-complexity.md
7925
7960
  */
7926
7961
  'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
7927
7962
  /**
@@ -9810,6 +9845,11 @@ interface ESLintSchema {
9810
9845
  * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod-mini/docs/rules/prefer-meta.md
9811
9846
  */
9812
9847
  'zod-mini/prefer-meta'?: Linter.RuleEntry<[]>;
9848
+ /**
9849
+ * Enforce `z.nullish()` instead of combining `z.optional()` and `z.nullable()`
9850
+ * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod-mini/docs/rules/prefer-nullish.md
9851
+ */
9852
+ 'zod-mini/prefer-nullish'?: Linter.RuleEntry<[]>;
9813
9853
  /**
9814
9854
  * Prefer `z.tuple()` over a length-constrained `z.array()` so the length is preserved in the inferred type.
9815
9855
  * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod-mini/docs/rules/prefer-tuple-over-array-length.md
@@ -9986,6 +10026,11 @@ interface ESLintSchema {
9986
10026
  * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/prefer-meta-last.md
9987
10027
  */
9988
10028
  'zod/prefer-meta-last'?: Linter.RuleEntry<[]>;
10029
+ /**
10030
+ * Enforce `.nullish()` instead of combining `.optional()` and `.nullable()`
10031
+ * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/prefer-nullish.md
10032
+ */
10033
+ 'zod/prefer-nullish'?: Linter.RuleEntry<[]>;
9989
10034
  /**
9990
10035
  * Prefer `z.strictObject()` over `z.object().strict()`
9991
10036
  * @see https://github.com/marcalexiei/eslint-zod/blob/HEAD/plugins/eslint-plugin-zod/docs/rules/prefer-strict-object.md
@@ -21457,7 +21502,9 @@ type UnicodeBom = [] | [("always" | "never")];
21457
21502
  // ----- unicorn/catch-error-name -----
21458
21503
  type UnicornCatchErrorName = [] | [{
21459
21504
  name?: string;
21460
- ignore?: unknown[];
21505
+ ignore?: (string | {
21506
+ [k: string]: unknown | undefined;
21507
+ })[];
21461
21508
  }];
21462
21509
  // ----- unicorn/class-reference-in-static-methods -----
21463
21510
  type UnicornClassReferenceInStaticMethods = [] | [{
@@ -21477,11 +21524,19 @@ type UnicornCommentContent = [] | [{
21477
21524
  }];
21478
21525
  // ----- unicorn/consistent-boolean-name -----
21479
21526
  type UnicornConsistentBooleanName = [] | [{
21480
- checkProperties?: boolean;
21527
+ checkVariables?: ("always" | "prohibit" | "never");
21528
+ checkArguments?: ("always" | "prohibit" | "never");
21529
+ checkFunctions?: ("always" | "prohibit" | "never");
21530
+ checkMethods?: ("always" | "prohibit" | "never");
21531
+ checkFields?: ("always" | "prohibit" | "never");
21481
21532
  prefixes?: {
21482
21533
  [k: string]: boolean | undefined;
21483
21534
  };
21535
+ wrappers?: {
21536
+ [k: string]: string | undefined;
21537
+ };
21484
21538
  ignore?: unknown[];
21539
+ [k: string]: unknown;
21485
21540
  }];
21486
21541
  // ----- unicorn/consistent-class-member-order -----
21487
21542
  type UnicornConsistentClassMemberOrder = [] | [{
@@ -21515,6 +21570,7 @@ type UnicornConsistentFunctionScoping = [] | [{
21515
21570
  // ----- unicorn/consistent-function-style -----
21516
21571
  type UnicornConsistentFunctionStyle = [] | [{
21517
21572
  default?: ("declaration" | "function-expression" | "arrow-function" | "ignore");
21573
+ defaultExport?: ("declaration" | "function-expression" | "arrow-function" | "ignore");
21518
21574
  namedFunctions?: ("declaration" | "function-expression" | "arrow-function" | "ignore");
21519
21575
  namedExports?: ("declaration" | "function-expression" | "arrow-function" | "ignore");
21520
21576
  callbacks?: ("function-expression" | "arrow-function" | "ignore");
@@ -21538,7 +21594,9 @@ type UnicornEscapeCase = [] | [("uppercase" | "lowercase")];
21538
21594
  // ----- unicorn/expiring-todo-comments -----
21539
21595
  type UnicornExpiringTodoComments = [] | [{
21540
21596
  terms?: string[];
21541
- ignore?: unknown[];
21597
+ ignore?: (string | {
21598
+ [k: string]: unknown | undefined;
21599
+ })[];
21542
21600
  checkDates?: boolean;
21543
21601
  checkDatesOnPullRequests?: boolean;
21544
21602
  allowWarningComments?: boolean;
@@ -21553,7 +21611,9 @@ type UnicornExplicitTimerDelay = [] | [("always" | "never")];
21553
21611
  // ----- unicorn/filename-case -----
21554
21612
  type UnicornFilenameCase = [] | [({
21555
21613
  case?: ("camelCase" | "camelCaseWithAcronyms" | "snakeCase" | "kebabCase" | "pascalCase");
21556
- ignore?: unknown[];
21614
+ ignore?: (string | {
21615
+ [k: string]: unknown | undefined;
21616
+ })[];
21557
21617
  multipleFileExtensions?: boolean;
21558
21618
  checkDirectories?: boolean;
21559
21619
  } | {
@@ -21564,7 +21624,9 @@ type UnicornFilenameCase = [] | [({
21564
21624
  kebabCase?: boolean;
21565
21625
  pascalCase?: boolean;
21566
21626
  };
21567
- ignore?: unknown[];
21627
+ ignore?: (string | {
21628
+ [k: string]: unknown | undefined;
21629
+ })[];
21568
21630
  multipleFileExtensions?: boolean;
21569
21631
  checkDirectories?: boolean;
21570
21632
  })];
@@ -21601,6 +21663,8 @@ type UnicornIsolatedFunctions = [] | [{
21601
21663
  selectors?: string[];
21602
21664
  comments?: string[];
21603
21665
  }];
21666
+ // ----- unicorn/iteration-fallback-style -----
21667
+ type UnicornIterationFallbackStyle = [] | [("guard" | "fallback")];
21604
21668
  // ----- unicorn/logical-assignment-operators -----
21605
21669
  type UnicornLogicalAssignmentOperators = (([] | ["always"] | ["always", {
21606
21670
  enforceForIfStatements?: boolean;
@@ -21621,7 +21685,9 @@ type UnicornNameReplacements = [] | [{
21621
21685
  replacements?: _UnicornNameReplacements_NameReplacements;
21622
21686
  extendDefaultAllowList?: boolean;
21623
21687
  allowList?: _UnicornNameReplacements_BooleanObject;
21624
- ignore?: unknown[];
21688
+ ignore?: (string | {
21689
+ [k: string]: unknown | undefined;
21690
+ })[];
21625
21691
  }];
21626
21692
  type _UnicornNameReplacementsReplacements = (false | _UnicornNameReplacements_BooleanObject) | undefined;
21627
21693
  interface _UnicornNameReplacements_NameReplacements {
@@ -21669,7 +21735,7 @@ type UnicornNoInvalidArgumentCount = [] | [{
21669
21735
  }];
21670
21736
  // ----- unicorn/no-keyword-prefix -----
21671
21737
  type UnicornNoKeywordPrefix = [] | [{
21672
- disallowedPrefixes?: [] | [string];
21738
+ disallowedPrefixes?: string[];
21673
21739
  checkProperties?: boolean;
21674
21740
  onlyCamelCase?: boolean;
21675
21741
  }];
@@ -21680,7 +21746,9 @@ type UnicornNoNegatedComparison = [] | [{
21680
21746
  // ----- unicorn/no-non-function-verb-prefix -----
21681
21747
  type UnicornNoNonFunctionVerbPrefix = [] | [{
21682
21748
  verbs?: string[];
21683
- ignore?: unknown[];
21749
+ ignore?: (string | {
21750
+ [k: string]: unknown | undefined;
21751
+ })[];
21684
21752
  }];
21685
21753
  // ----- unicorn/no-null -----
21686
21754
  type UnicornNoNull = [] | [{
@@ -21693,7 +21761,7 @@ type UnicornNoTypeofUndefined = [] | [{
21693
21761
  }];
21694
21762
  // ----- unicorn/no-unnecessary-polyfills -----
21695
21763
  type UnicornNoUnnecessaryPolyfills = [] | [{
21696
- targets?: (string | unknown[] | {
21764
+ targets?: (string | string[] | {
21697
21765
  [k: string]: unknown | undefined;
21698
21766
  });
21699
21767
  }];
@@ -21747,11 +21815,11 @@ type UnicornPreferArrayFind = [] | [{
21747
21815
  }];
21748
21816
  // ----- unicorn/prefer-array-flat -----
21749
21817
  type UnicornPreferArrayFlat = [] | [{
21750
- functions?: unknown[];
21818
+ functions?: string[];
21751
21819
  }];
21752
21820
  // ----- unicorn/prefer-at -----
21753
21821
  type UnicornPreferAt = [] | [{
21754
- getLastElementFunctions?: unknown[];
21822
+ getLastElementFunctions?: string[];
21755
21823
  checkAllIndexAccess?: boolean;
21756
21824
  }];
21757
21825
  // ----- unicorn/prefer-continue -----
@@ -21775,6 +21843,12 @@ type UnicornPreferExplicitViewportUnits = [] | [{
21775
21843
  type UnicornPreferExportFrom = [] | [{
21776
21844
  checkUsedVariables?: boolean;
21777
21845
  }];
21846
+ // ----- unicorn/prefer-https -----
21847
+ type UnicornPreferHttps = [] | [{
21848
+ ignore?: (string | {
21849
+ [k: string]: unknown | undefined;
21850
+ })[];
21851
+ }];
21778
21852
  // ----- unicorn/prefer-includes-over-repeated-comparisons -----
21779
21853
  type UnicornPreferIncludesOverRepeatedComparisons = [] | [{
21780
21854
  minimumComparisons?: number;
@@ -21791,7 +21865,7 @@ type UnicornPreferNumberProperties = [] | [{
21791
21865
  }];
21792
21866
  // ----- unicorn/prefer-object-from-entries -----
21793
21867
  type UnicornPreferObjectFromEntries = [] | [{
21794
- functions?: unknown[];
21868
+ functions?: string[];
21795
21869
  }];
21796
21870
  // ----- unicorn/prefer-query-selector -----
21797
21871
  type UnicornPreferQuerySelector = [] | [{
@@ -21810,7 +21884,7 @@ type UnicornPreferSetHas = [] | [{
21810
21884
  type UnicornPreferShortArrowMethod = [] | [("always" | "consistent-as-needed")];
21811
21885
  // ----- unicorn/prefer-single-call -----
21812
21886
  type UnicornPreferSingleCall = [] | [{
21813
- ignore?: unknown[];
21887
+ ignore?: string[];
21814
21888
  }];
21815
21889
  // ----- unicorn/prefer-string-repeat -----
21816
21890
  type UnicornPreferStringRepeat = [] | [{
@@ -21818,7 +21892,7 @@ type UnicornPreferStringRepeat = [] | [{
21818
21892
  }];
21819
21893
  // ----- unicorn/prefer-structured-clone -----
21820
21894
  type UnicornPreferStructuredClone = [] | [{
21821
- functions?: unknown[];
21895
+ functions?: string[];
21822
21896
  }];
21823
21897
  // ----- unicorn/prefer-switch -----
21824
21898
  type UnicornPreferSwitch = [] | [{
@@ -21843,6 +21917,12 @@ type UnicornRequireCssEscape = [] | [{
21843
21917
  type UnicornRequireFrontmatterFields = [] | [{
21844
21918
  fields?: string[];
21845
21919
  }];
21920
+ // ----- unicorn/single-line-block-comment-style -----
21921
+ type UnicornSingleLineBlockCommentStyle = [] | [("multiline" | "single-line")] | [("multiline" | "single-line"), {
21922
+ ignore?: (string | {
21923
+ [k: string]: unknown | undefined;
21924
+ })[];
21925
+ }];
21846
21926
  // ----- unicorn/string-content -----
21847
21927
  type UnicornStringContent = [] | [{
21848
21928
  patterns?: {