@shayanthenerd/eslint-config 0.30.1 → 0.30.3

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