@kitschpatrol/eslint-config 8.9.0 → 8.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -517,7 +517,7 @@ interface RuleOptions {
517
517
  *
518
518
  * @see https://github.com/azat-io/eslint-plugin-de-morgan/blob/main/docs/no-negated-disjunction.md
519
519
  */
520
- 'de-morgan/no-negated-disjunction'?: Linter.RuleEntry<[]>;
520
+ 'de-morgan/no-negated-disjunction'?: Linter.RuleEntry<DeMorganNoNegatedDisjunction>;
521
521
  /**
522
522
  * Require `default` cases in `switch` statements
523
523
  *
@@ -2390,6 +2390,13 @@ interface RuleOptions {
2390
2390
  * @see https://eslint-plugin-package-json.dev/rules/restrict-dependency-ranges
2391
2391
  */
2392
2392
  'json-package/restrict-dependency-ranges'?: Linter.RuleEntry<JsonPackageRestrictDependencyRanges>;
2393
+ /**
2394
+ * Restricts dependency dist-tags to an allowed list and selected dependency
2395
+ * types.
2396
+ *
2397
+ * @see https://eslint-plugin-package-json.dev/rules/restrict-dist-tags
2398
+ */
2399
+ 'json-package/restrict-dist-tags'?: Linter.RuleEntry<JsonPackageRestrictDistTags>;
2393
2400
  /**
2394
2401
  * Disallows unnecessary properties in private packages.
2395
2402
  *
@@ -9288,543 +9295,544 @@ interface RuleOptions {
9288
9295
  /**
9289
9296
  * Prefer better DOM traversal APIs.
9290
9297
  *
9291
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/better-dom-traversing.md
9298
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/better-dom-traversing.md
9292
9299
  */
9293
9300
  'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
9294
9301
  /**
9295
9302
  * Removed. Prefer `eslint-plugin-regexp`
9296
9303
  *
9297
9304
  * @deprecated
9298
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/deleted-and-deprecated-rules.md#better-regex
9305
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#better-regex
9299
9306
  */
9300
9307
  'unicorn/better-regex'?: Linter.RuleEntry<[]>;
9301
9308
  /**
9302
9309
  * Enforce a specific parameter name in catch clauses.
9303
9310
  *
9304
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/catch-error-name.md
9311
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/catch-error-name.md
9305
9312
  */
9306
9313
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
9307
9314
  /**
9308
9315
  * Enforce consistent class references in static methods.
9309
9316
  *
9310
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/class-reference-in-static-methods.md
9317
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/class-reference-in-static-methods.md
9311
9318
  */
9312
9319
  'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
9313
9320
  /**
9314
9321
  * Enforce better comment content.
9315
9322
  *
9316
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/comment-content.md
9323
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/comment-content.md
9317
9324
  */
9318
9325
  'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
9319
9326
  /**
9320
9327
  * Enforce a consistent return style for multiline arrow function bodies.
9321
9328
  *
9322
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/consistent-arrow-return-style.md
9329
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-arrow-return-style.md
9323
9330
  */
9324
9331
  'unicorn/consistent-arrow-return-style'?: Linter.RuleEntry<[]>;
9325
9332
  /**
9326
9333
  * Enforce consistent assertion style with `node:assert`.
9327
9334
  *
9328
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/consistent-assert.md
9335
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-assert.md
9329
9336
  */
9330
9337
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
9331
9338
  /**
9332
9339
  * Enforce consistent naming for boolean names.
9333
9340
  *
9334
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/consistent-boolean-name.md
9341
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-boolean-name.md
9335
9342
  */
9336
9343
  'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
9337
9344
  /**
9338
9345
  * Enforce consistent class member order.
9339
9346
  *
9340
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/consistent-class-member-order.md
9347
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-class-member-order.md
9341
9348
  */
9342
9349
  'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
9343
9350
  /**
9344
9351
  * Enforce consistent spelling of compound words in identifiers.
9345
9352
  *
9346
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/consistent-compound-words.md
9353
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-compound-words.md
9347
9354
  */
9348
9355
  'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
9349
9356
  /**
9350
9357
  * Enforce consistent conditional object spread style.
9351
9358
  *
9352
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/consistent-conditional-object-spread.md
9359
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-conditional-object-spread.md
9353
9360
  */
9354
9361
  'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
9355
9362
  /**
9356
9363
  * Prefer passing `Date` directly to the constructor when cloning.
9357
9364
  *
9358
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/consistent-date-clone.md
9365
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-date-clone.md
9359
9366
  */
9360
9367
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
9361
9368
  /**
9362
9369
  * Use destructured variables over properties.
9363
9370
  *
9364
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/consistent-destructuring.md
9371
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-destructuring.md
9365
9372
  */
9366
9373
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
9367
9374
  /**
9368
9375
  * Prefer consistent types when spreading a ternary in an array literal.
9369
9376
  *
9370
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/consistent-empty-array-spread.md
9377
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-empty-array-spread.md
9371
9378
  */
9372
9379
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
9373
9380
  /**
9374
9381
  * Enforce consistent style for element existence checks with `indexOf()`,
9375
9382
  * `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
9376
9383
  *
9377
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/consistent-existence-index-check.md
9384
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-existence-index-check.md
9378
9385
  */
9379
9386
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
9380
9387
  /**
9381
9388
  * Enforce consistent decorator position on exported classes.
9382
9389
  *
9383
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/consistent-export-decorator-position.md
9390
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-export-decorator-position.md
9384
9391
  */
9385
9392
  'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
9386
9393
  /**
9387
9394
  * Move function definitions to the highest possible scope.
9388
9395
  *
9389
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/consistent-function-scoping.md
9396
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-function-scoping.md
9390
9397
  */
9391
9398
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
9392
9399
  /**
9393
9400
  * Enforce function syntax by role.
9394
9401
  *
9395
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/consistent-function-style.md
9402
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-function-style.md
9396
9403
  */
9397
9404
  'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
9398
9405
  /**
9399
9406
  * Enforce consistent JSON file reads before `JSON.parse()`.
9400
9407
  *
9401
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/consistent-json-file-read.md
9408
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-json-file-read.md
9402
9409
  */
9403
9410
  'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
9404
9411
  /**
9405
9412
  * Enforce consistent optional chaining for same-base member access.
9406
9413
  *
9407
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/consistent-optional-chaining.md
9414
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-optional-chaining.md
9408
9415
  */
9409
9416
  'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
9410
9417
  /**
9411
9418
  * Enforce consistent style for escaping `${` in template literals.
9412
9419
  *
9413
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/consistent-template-literal-escape.md
9420
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-template-literal-escape.md
9414
9421
  */
9415
9422
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
9416
9423
  /**
9417
9424
  * Enforce consistent labels on tuple type elements.
9418
9425
  *
9419
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/consistent-tuple-labels.md
9426
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-tuple-labels.md
9420
9427
  */
9421
9428
  'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
9422
9429
  /**
9423
9430
  * Enforce correct `Error` subclassing.
9424
9431
  *
9425
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/custom-error-definition.md
9432
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/custom-error-definition.md
9426
9433
  */
9427
9434
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
9428
9435
  /**
9429
9436
  * Enforce consistent default export declarations.
9430
9437
  *
9431
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/default-export-style.md
9438
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/default-export-style.md
9432
9439
  */
9433
9440
  'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
9434
9441
  /**
9435
9442
  * Enforce consistent style for DOM element dataset access.
9436
9443
  *
9437
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/dom-node-dataset.md
9444
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/dom-node-dataset.md
9438
9445
  */
9439
9446
  'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
9440
9447
  /**
9441
9448
  * Enforce no spaces between braces.
9442
9449
  *
9443
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/empty-brace-spaces.md
9450
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/empty-brace-spaces.md
9444
9451
  */
9445
9452
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
9446
9453
  /**
9447
9454
  * Enforce passing a `message` value when creating a built-in error.
9448
9455
  *
9449
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/error-message.md
9456
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/error-message.md
9450
9457
  */
9451
9458
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
9452
9459
  /**
9453
9460
  * Require escape sequences to use uppercase or lowercase values.
9454
9461
  *
9455
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/escape-case.md
9462
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/escape-case.md
9456
9463
  */
9457
9464
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
9458
9465
  /**
9459
9466
  * Add expiration conditions to TODO comments.
9460
9467
  *
9461
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/expiring-todo-comments.md
9468
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/expiring-todo-comments.md
9462
9469
  */
9463
9470
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
9464
9471
  /**
9465
9472
  * Enforce explicitly comparing the `length` or `size` property of a value.
9466
9473
  *
9467
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/explicit-length-check.md
9474
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/explicit-length-check.md
9468
9475
  */
9469
9476
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
9470
9477
  /**
9471
9478
  * Enforce or disallow explicit `delay` argument for `setTimeout()` and
9472
9479
  * `setInterval()`.
9473
9480
  *
9474
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/explicit-timer-delay.md
9481
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/explicit-timer-delay.md
9475
9482
  */
9476
9483
  'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
9477
9484
  /**
9478
9485
  * Enforce a case style for filenames and directory names.
9479
9486
  *
9480
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/filename-case.md
9487
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/filename-case.md
9481
9488
  */
9482
9489
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
9483
9490
  /**
9484
9491
  * Require identifiers to match a specified regular expression.
9485
9492
  *
9486
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/id-match.md
9493
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/id-match.md
9487
9494
  */
9488
9495
  'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
9489
9496
  /**
9490
9497
  * Enforce specific import styles per module.
9491
9498
  *
9492
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/import-style.md
9499
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/import-style.md
9493
9500
  */
9494
9501
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
9495
9502
  /**
9496
9503
  * Prevent usage of variables from outside the scope of isolated functions.
9497
9504
  *
9498
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/isolated-functions.md
9505
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/isolated-functions.md
9499
9506
  */
9500
9507
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
9501
9508
  /**
9502
9509
  * Enforce a consistent style for optional loop sources.
9503
9510
  *
9504
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/iteration-fallback-style.md
9511
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/iteration-fallback-style.md
9505
9512
  */
9506
9513
  'unicorn/iteration-fallback-style'?: Linter.RuleEntry<UnicornIterationFallbackStyle>;
9507
9514
  /**
9508
9515
  * Require or disallow logical assignment operator shorthand
9509
9516
  *
9510
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/logical-assignment-operators.md
9517
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/logical-assignment-operators.md
9511
9518
  */
9512
9519
  'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
9513
9520
  /**
9514
9521
  * Limit the depth of nested calls.
9515
9522
  *
9516
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/max-nested-calls.md
9523
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/max-nested-calls.md
9517
9524
  */
9518
9525
  'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
9519
9526
  /**
9520
9527
  * Enforce replacements for variable, property, and filenames.
9521
9528
  *
9522
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/name-replacements.md
9529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/name-replacements.md
9523
9530
  */
9524
9531
  'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
9525
9532
  /**
9526
9533
  * Enforce correct use of `new` for builtin constructors.
9527
9534
  *
9528
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/new-for-builtins.md
9535
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/new-for-builtins.md
9529
9536
  */
9530
9537
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
9531
9538
  /**
9532
9539
  * Enforce specifying rules to disable in `eslint-disable` comments.
9533
9540
  *
9534
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-abusive-eslint-disable.md
9541
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-abusive-eslint-disable.md
9535
9542
  */
9536
9543
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
9537
9544
  /**
9538
9545
  * Disallow recursive access to `this` within getters and setters.
9539
9546
  *
9540
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-accessor-recursion.md
9547
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-accessor-recursion.md
9541
9548
  */
9542
9549
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
9543
9550
  /**
9544
9551
  * Disallow bitwise operators where a logical operator was likely intended.
9545
9552
  *
9546
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-accidental-bitwise-operator.md
9553
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-accidental-bitwise-operator.md
9547
9554
  */
9548
9555
  'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
9549
9556
  /**
9550
9557
  * Disallow anonymous functions and classes as the default export.
9551
9558
  *
9552
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-anonymous-default-export.md
9559
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-anonymous-default-export.md
9553
9560
  */
9554
9561
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
9555
9562
  /**
9556
9563
  * Prevent passing a function reference directly to iterator methods.
9557
9564
  *
9558
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-array-callback-reference.md
9565
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-callback-reference.md
9559
9566
  */
9560
9567
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
9561
9568
  /**
9562
9569
  * Disallow array accumulation with `Array#concat()` in loops.
9563
9570
  *
9564
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-array-concat-in-loop.md
9571
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-concat-in-loop.md
9565
9572
  */
9566
9573
  'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
9567
9574
  /**
9568
9575
  * Disallow using reference values as `Array#fill()` values.
9569
9576
  *
9570
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-array-fill-with-reference-type.md
9577
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-fill-with-reference-type.md
9571
9578
  */
9572
9579
  'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
9573
9580
  /**
9574
9581
  * Disallow `.fill()` after `Array.from({length: …})`.
9575
9582
  *
9576
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-array-from-fill.md
9583
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-from-fill.md
9577
9584
  */
9578
9585
  'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
9579
9586
  /**
9580
9587
  * Disallow front-of-array mutation.
9581
9588
  *
9582
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-array-front-mutation.md
9589
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-front-mutation.md
9583
9590
  */
9584
9591
  'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
9585
9592
  /**
9586
9593
  * Disallow using the `this` argument in array methods.
9587
9594
  *
9588
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-array-method-this-argument.md
9595
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-method-this-argument.md
9589
9596
  */
9590
9597
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
9591
9598
  /**
9592
9599
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
9593
9600
  *
9594
9601
  * @deprecated
9595
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
9602
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
9596
9603
  */
9597
9604
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
9598
9605
  /**
9599
9606
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
9600
9607
  *
9601
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-array-reduce.md
9608
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-reduce.md
9602
9609
  */
9603
9610
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
9604
9611
  /**
9605
9612
  * Prefer `Array#toReversed()` over `Array#reverse()`.
9606
9613
  *
9607
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-array-reverse.md
9614
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-reverse.md
9608
9615
  */
9609
9616
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
9610
9617
  /**
9611
9618
  * Prefer `Array#toSorted()` over `Array#sort()`.
9612
9619
  *
9613
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-array-sort.md
9620
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-sort.md
9614
9621
  */
9615
9622
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
9616
9623
  /**
9617
9624
  * Disallow sorting arrays to get the minimum or maximum value.
9618
9625
  *
9619
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-array-sort-for-min-max.md
9626
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-sort-for-min-max.md
9620
9627
  */
9621
9628
  'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
9622
9629
  /**
9623
9630
  * Prefer `Array#toSpliced()` over `Array#splice()`.
9624
9631
  *
9625
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-array-splice.md
9632
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-splice.md
9626
9633
  */
9627
9634
  'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
9628
9635
  /**
9629
9636
  * Disallow asterisk prefixes in documentation comments.
9630
9637
  *
9631
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
9638
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
9632
9639
  */
9633
9640
  'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
9634
9641
  /**
9635
9642
  * Disallow asynchronous callbacks in synchronous iterator helpers.
9636
9643
  *
9637
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-async-iterator-callback.md
9644
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-async-iterator-callback.md
9638
9645
  */
9639
9646
  'unicorn/no-async-iterator-callback'?: Linter.RuleEntry<[]>;
9640
9647
  /**
9641
9648
  * Disallow async functions as `Promise#finally()` callbacks.
9642
9649
  *
9643
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-async-promise-finally.md
9650
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-async-promise-finally.md
9644
9651
  */
9645
9652
  'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
9646
9653
  /**
9647
9654
  * Disallow member access from await expression.
9648
9655
  *
9649
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-await-expression-member.md
9656
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-await-expression-member.md
9650
9657
  */
9651
9658
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
9652
9659
  /**
9653
9660
  * Disallow using `await` in `Promise` method parameters.
9654
9661
  *
9655
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-await-in-promise-methods.md
9662
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-await-in-promise-methods.md
9656
9663
  */
9657
9664
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
9658
9665
  /**
9659
9666
  * Disallow barrel files.
9660
9667
  *
9661
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-barrel-files.md
9668
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-barrel-files.md
9662
9669
  */
9663
9670
  'unicorn/no-barrel-files'?: Linter.RuleEntry<[]>;
9664
9671
  /**
9665
9672
  * Disallow unnecessary `Blob` to `File` conversion.
9666
9673
  *
9667
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-blob-to-file.md
9674
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-blob-to-file.md
9668
9675
  */
9669
9676
  'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
9670
9677
  /**
9671
9678
  * Disallow boolean-returning sort comparators.
9672
9679
  *
9673
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-boolean-sort-comparator.md
9680
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-boolean-sort-comparator.md
9674
9681
  */
9675
9682
  'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
9676
9683
  /**
9677
- * Disallow `break` and `continue` in nested loops and switches inside loops.
9684
+ * Disallow `break` and optionally `continue` in nested loops and switches
9685
+ * inside loops.
9678
9686
  *
9679
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-break-in-nested-loop.md
9687
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-break-in-nested-loop.md
9680
9688
  */
9681
- 'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<[]>;
9689
+ 'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<UnicornNoBreakInNestedLoop>;
9682
9690
  /**
9683
9691
  * Prefer drawing canvases directly instead of converting them to images.
9684
9692
  *
9685
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-canvas-to-image.md
9693
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-canvas-to-image.md
9686
9694
  */
9687
9695
  'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
9688
9696
  /**
9689
9697
  * Disallow chained comparisons such as `a < b < c`.
9690
9698
  *
9691
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-chained-comparison.md
9699
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-chained-comparison.md
9692
9700
  */
9693
9701
  'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
9694
9702
  /**
9695
9703
  * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with
9696
9704
  * bracket notation.
9697
9705
  *
9698
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-collection-bracket-access.md
9706
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-collection-bracket-access.md
9699
9707
  */
9700
9708
  'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
9701
9709
  /**
9702
9710
  * Disallow dynamic object property existence checks.
9703
9711
  *
9704
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-computed-property-existence-check.md
9712
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-computed-property-existence-check.md
9705
9713
  */
9706
9714
  'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
9707
9715
  /**
9708
9716
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
9709
9717
  *
9710
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-confusing-array-splice.md
9718
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-confusing-array-splice.md
9711
9719
  */
9712
9720
  'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
9713
9721
  /**
9714
9722
  * Disallow confusing uses of `Array#with()`.
9715
9723
  *
9716
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-confusing-array-with.md
9724
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-confusing-array-with.md
9717
9725
  */
9718
9726
  'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
9719
9727
  /**
9720
9728
  * Do not use leading/trailing space between `console.log` parameters.
9721
9729
  *
9722
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-console-spaces.md
9730
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-console-spaces.md
9723
9731
  */
9724
9732
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
9725
9733
  /**
9726
9734
  * Disallow arithmetic and bitwise operations that always evaluate to `0`.
9727
9735
  *
9728
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-constant-zero-expression.md
9736
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-constant-zero-expression.md
9729
9737
  */
9730
9738
  'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
9731
9739
  /**
9732
9740
  * Disallow declarations before conditional early exits when they are only
9733
9741
  * used after the exit.
9734
9742
  *
9735
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-declarations-before-early-exit.md
9743
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-declarations-before-early-exit.md
9736
9744
  */
9737
9745
  'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
9738
9746
  /**
9739
9747
  * Disallow deprecated CSS features.
9740
9748
  *
9741
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-deprecated-css-features.md
9749
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-deprecated-css-features.md
9742
9750
  */
9743
9751
  'unicorn/no-deprecated-css-features'?: Linter.RuleEntry<UnicornNoDeprecatedCssFeatures>;
9744
9752
  /**
9745
9753
  * Do not use `document.cookie` directly.
9746
9754
  *
9747
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-document-cookie.md
9755
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-document-cookie.md
9748
9756
  */
9749
9757
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
9750
9758
  /**
9751
9759
  * Disallow two comparisons of the same operands that can be combined into
9752
9760
  * one.
9753
9761
  *
9754
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-double-comparison.md
9762
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-double-comparison.md
9755
9763
  */
9756
9764
  'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
9757
9765
  /**
9758
9766
  * Disallow duplicate CSS selectors.
9759
9767
  *
9760
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-duplicate-css-selectors.md
9768
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-css-selectors.md
9761
9769
  */
9762
9770
  'unicorn/no-duplicate-css-selectors'?: Linter.RuleEntry<[]>;
9763
9771
  /**
9764
9772
  * Disallow duplicate font family names.
9765
9773
  *
9766
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-duplicate-font-family-names.md
9774
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-font-family-names.md
9767
9775
  */
9768
9776
  'unicorn/no-duplicate-font-family-names'?: Linter.RuleEntry<[]>;
9769
9777
  /**
9770
9778
  * Disallow duplicate adjacent branches in if chains.
9771
9779
  *
9772
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-duplicate-if-branches.md
9780
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-if-branches.md
9773
9781
  */
9774
9782
  'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
9775
9783
  /**
9776
9784
  * Disallow adjacent duplicate operands in logical expressions.
9777
9785
  *
9778
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-duplicate-logical-operands.md
9786
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-logical-operands.md
9779
9787
  */
9780
9788
  'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
9781
9789
  /**
9782
9790
  * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop
9783
9791
  * headers.
9784
9792
  *
9785
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-duplicate-loops.md
9793
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-loops.md
9786
9794
  */
9787
9795
  'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
9788
9796
  /**
9789
9797
  * Disallow duplicate values in `Set` constructor array literals.
9790
9798
  *
9791
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-duplicate-set-values.md
9799
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-set-values.md
9792
9800
  */
9793
9801
  'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
9794
9802
  /**
9795
9803
  * Disallow empty files.
9796
9804
  *
9797
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-empty-file.md
9805
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-empty-file.md
9798
9806
  */
9799
9807
  'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
9800
9808
  /**
9801
9809
  * Disallow assigning to built-in error properties.
9802
9810
  *
9803
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-error-property-assignment.md
9811
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-error-property-assignment.md
9804
9812
  */
9805
9813
  'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
9806
9814
  /**
9807
9815
  * Disallow exports in scripts.
9808
9816
  *
9809
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-exports-in-scripts.md
9817
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-exports-in-scripts.md
9810
9818
  */
9811
9819
  'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
9812
9820
  /**
9813
9821
  * Prefer `for…of` over the `forEach` method.
9814
9822
  *
9815
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-for-each.md
9823
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-for-each.md
9816
9824
  */
9817
9825
  'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
9818
9826
  /**
9819
9827
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
9820
9828
  *
9821
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-for-loop.md
9829
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-for-loop.md
9822
9830
  */
9823
9831
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
9824
9832
  /**
9825
9833
  * Disallow assigning properties on the global object.
9826
9834
  *
9827
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-global-object-property-assignment.md
9835
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-global-object-property-assignment.md
9828
9836
  */
9829
9837
  'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
9830
9838
  /**
@@ -9832,531 +9840,531 @@ interface RuleOptions {
9832
9840
  * cases.
9833
9841
  *
9834
9842
  * @deprecated
9835
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
9843
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
9836
9844
  */
9837
9845
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
9838
9846
  /**
9839
9847
  * Disallow immediate mutation after variable assignment.
9840
9848
  *
9841
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-immediate-mutation.md
9849
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-immediate-mutation.md
9842
9850
  */
9843
- 'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
9851
+ 'unicorn/no-immediate-mutation'?: Linter.RuleEntry<UnicornNoImmediateMutation>;
9844
9852
  /**
9845
9853
  * Disallow impossible comparisons against `.length` or `.size`.
9846
9854
  *
9847
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-impossible-length-comparison.md
9855
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-impossible-length-comparison.md
9848
9856
  */
9849
9857
  'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
9850
9858
  /**
9851
9859
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
9852
9860
  *
9853
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-incorrect-query-selector.md
9861
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-incorrect-query-selector.md
9854
9862
  */
9855
9863
  'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
9856
9864
  /**
9857
9865
  * Disallow incorrect template literal interpolation syntax.
9858
9866
  *
9859
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-incorrect-template-string-interpolation.md
9867
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-incorrect-template-string-interpolation.md
9860
9868
  */
9861
9869
  'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
9862
9870
  /**
9863
9871
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
9864
9872
  *
9865
9873
  * @deprecated
9866
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
9874
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
9867
9875
  */
9868
9876
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
9869
9877
  /**
9870
9878
  * Disallow `instanceof` with built-in objects
9871
9879
  *
9872
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-instanceof-builtins.md
9880
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-instanceof-builtins.md
9873
9881
  */
9874
9882
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
9875
9883
  /**
9876
9884
  * Disallow calling functions and constructors with an invalid number of
9877
9885
  * arguments.
9878
9886
  *
9879
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-invalid-argument-count.md
9887
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-argument-count.md
9880
9888
  */
9881
9889
  'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
9882
9890
  /**
9883
9891
  * Disallow comparing a single character from a string to a multi-character
9884
9892
  * string.
9885
9893
  *
9886
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-invalid-character-comparison.md
9894
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-character-comparison.md
9887
9895
  */
9888
9896
  'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
9889
9897
  /**
9890
9898
  * Disallow invalid options in `fetch()` and `new Request()`.
9891
9899
  *
9892
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-invalid-fetch-options.md
9900
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-fetch-options.md
9893
9901
  */
9894
9902
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
9895
9903
  /**
9896
9904
  * Disallow invalid `accept` values on file inputs.
9897
9905
  *
9898
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-invalid-file-input-accept.md
9906
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-file-input-accept.md
9899
9907
  */
9900
9908
  'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
9901
9909
  /**
9902
9910
  * Disallow unknown media features and invalid values for known media
9903
9911
  * features.
9904
9912
  *
9905
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-invalid-media-features.md
9913
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-media-features.md
9906
9914
  */
9907
9915
  'unicorn/no-invalid-media-features'?: Linter.RuleEntry<[]>;
9908
9916
  /**
9909
9917
  * Prevent calling `EventTarget#removeEventListener()` with the result of an
9910
9918
  * expression.
9911
9919
  *
9912
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-invalid-remove-event-listener.md
9920
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-remove-event-listener.md
9913
9921
  */
9914
9922
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
9915
9923
  /**
9916
9924
  * Disallow invalid implementations of well-known symbol methods.
9917
9925
  *
9918
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
9926
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
9919
9927
  */
9920
9928
  'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
9921
9929
  /**
9922
9930
  * Disallow identifiers starting with `new` or `class`.
9923
9931
  *
9924
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-keyword-prefix.md
9932
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-keyword-prefix.md
9925
9933
  */
9926
9934
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
9927
9935
  /**
9928
9936
  * Disallow accessing `event.currentTarget` after the synchronous event
9929
9937
  * dispatch has finished.
9930
9938
  *
9931
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-late-current-target-access.md
9939
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-late-current-target-access.md
9932
9940
  */
9933
9941
  'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
9934
9942
  /**
9935
9943
  * Disallow event-control method calls after the synchronous event dispatch
9936
9944
  * has finished.
9937
9945
  *
9938
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-late-event-control.md
9946
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-late-event-control.md
9939
9947
  */
9940
9948
  'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
9941
9949
  /**
9942
9950
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
9943
9951
  *
9944
9952
  * @deprecated
9945
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
9953
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
9946
9954
  */
9947
9955
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
9948
9956
  /**
9949
9957
  * Disallow `if` statements as the only statement in `if` blocks without
9950
9958
  * `else`.
9951
9959
  *
9952
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-lonely-if.md
9960
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-lonely-if.md
9953
9961
  */
9954
9962
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
9955
9963
  /**
9956
9964
  * Disallow mutating a loop iterable during iteration.
9957
9965
  *
9958
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-loop-iterable-mutation.md
9966
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-loop-iterable-mutation.md
9959
9967
  */
9960
9968
  'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
9961
9969
  /**
9962
9970
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
9963
9971
  *
9964
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-magic-array-flat-depth.md
9972
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-magic-array-flat-depth.md
9965
9973
  */
9966
9974
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
9967
9975
  /**
9968
9976
  * Disallow manually wrapped comments.
9969
9977
  *
9970
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-manually-wrapped-comments.md
9978
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-manually-wrapped-comments.md
9971
9979
  */
9972
9980
  'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
9973
9981
  /**
9974
9982
  * Disallow checking a Map key before accessing a different key.
9975
9983
  *
9976
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-mismatched-map-key.md
9984
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-mismatched-map-key.md
9977
9985
  */
9978
9986
  'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
9979
9987
  /**
9980
9988
  * Disallow misrefactored compound assignments where the target is duplicated
9981
9989
  * in the right-hand side.
9982
9990
  *
9983
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-misrefactored-assignment.md
9991
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-misrefactored-assignment.md
9984
9992
  */
9985
9993
  'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
9986
9994
  /**
9987
9995
  * Disallow references to missing local resources.
9988
9996
  *
9989
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-missing-local-resource.md
9997
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-missing-local-resource.md
9990
9998
  */
9991
9999
  'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>;
9992
10000
  /**
9993
10001
  * Disallow calling Promise executor resolver functions more than once on the
9994
10002
  * same execution path.
9995
10003
  *
9996
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-multiple-promise-resolver-calls.md
10004
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-multiple-promise-resolver-calls.md
9997
10005
  */
9998
10006
  'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>;
9999
10007
  /**
10000
10008
  * Disallow named usage of default import and export.
10001
10009
  *
10002
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-named-default.md
10010
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-named-default.md
10003
10011
  */
10004
10012
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
10005
10013
  /**
10006
10014
  * Disallow negated array predicate calls.
10007
10015
  *
10008
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-negated-array-predicate.md
10016
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negated-array-predicate.md
10009
10017
  */
10010
10018
  'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
10011
10019
  /**
10012
10020
  * Disallow negated comparisons.
10013
10021
  *
10014
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-negated-comparison.md
10022
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negated-comparison.md
10015
10023
  */
10016
10024
  'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
10017
10025
  /**
10018
10026
  * Disallow negated conditions.
10019
10027
  *
10020
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-negated-condition.md
10028
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negated-condition.md
10021
10029
  */
10022
10030
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
10023
10031
  /**
10024
10032
  * Disallow negated expression in equality check.
10025
10033
  *
10026
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-negation-in-equality-check.md
10034
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negation-in-equality-check.md
10027
10035
  */
10028
10036
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
10029
10037
  /**
10030
10038
  * Disallow nested ternary expressions.
10031
10039
  *
10032
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-nested-ternary.md
10040
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-nested-ternary.md
10033
10041
  */
10034
10042
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
10035
10043
  /**
10036
10044
  * Disallow nesting under selector lists with mixed specificity.
10037
10045
  *
10038
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-nesting-with-mixed-specificity.md
10046
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-nesting-with-mixed-specificity.md
10039
10047
  */
10040
10048
  'unicorn/no-nesting-with-mixed-specificity'?: Linter.RuleEntry<[]>;
10041
10049
  /**
10042
10050
  * Disallow `new Array()`.
10043
10051
  *
10044
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-new-array.md
10052
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-new-array.md
10045
10053
  */
10046
10054
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
10047
10055
  /**
10048
10056
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the
10049
10057
  * deprecated `new Buffer()`.
10050
10058
  *
10051
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-new-buffer.md
10059
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-new-buffer.md
10052
10060
  */
10053
10061
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
10054
10062
  /**
10055
10063
  * Disallow non-function values with function-style verb prefixes.
10056
10064
  *
10057
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-non-function-verb-prefix.md
10065
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-non-function-verb-prefix.md
10058
10066
  */
10059
10067
  'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
10060
10068
  /**
10061
10069
  * Disallow non-standard properties on built-in objects.
10062
10070
  *
10063
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-nonstandard-builtin-properties.md
10071
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-nonstandard-builtin-properties.md
10064
10072
  */
10065
10073
  'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
10066
10074
  /**
10067
10075
  * Disallow the use of the `null` literal.
10068
10076
  *
10069
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-null.md
10077
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-null.md
10070
10078
  */
10071
10079
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
10072
10080
  /**
10073
10081
  * Disallow the use of objects as default parameters.
10074
10082
  *
10075
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-object-as-default-parameter.md
10083
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-object-as-default-parameter.md
10076
10084
  */
10077
10085
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
10078
10086
  /**
10079
10087
  * Disallow `Object` methods with `Map` or `Set`.
10080
10088
  *
10081
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-object-methods-with-collections.md
10089
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-object-methods-with-collections.md
10082
10090
  */
10083
10091
  'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
10084
10092
  /**
10085
10093
  * Disallow optional chaining on undeclared variables.
10086
10094
  *
10087
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
10095
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
10088
10096
  */
10089
10097
  'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
10090
10098
  /**
10091
10099
  * Disallow `process.exit()`.
10092
10100
  *
10093
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-process-exit.md
10101
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-process-exit.md
10094
10102
  */
10095
10103
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
10096
10104
  /**
10097
10105
  * Disallow comparisons made redundant by an equality check in the same
10098
10106
  * logical AND.
10099
10107
  *
10100
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-redundant-comparison.md
10108
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-redundant-comparison.md
10101
10109
  */
10102
10110
  'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
10103
10111
  /**
10104
10112
  * Disallow nested style rules that do not modify the parent selector.
10105
10113
  *
10106
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-redundant-nested-style-rules.md
10114
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-redundant-nested-style-rules.md
10107
10115
  */
10108
10116
  'unicorn/no-redundant-nested-style-rules'?: Linter.RuleEntry<[]>;
10109
10117
  /**
10110
10118
  * Disallow using the return value of `Array#push()` and `Array#unshift()`.
10111
10119
  *
10112
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-return-array-push.md
10120
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-return-array-push.md
10113
10121
  */
10114
10122
  'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
10115
10123
  /**
10116
10124
  * Disallow selector syntax in DOM names.
10117
10125
  *
10118
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-selector-as-dom-name.md
10126
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-selector-as-dom-name.md
10119
10127
  */
10120
10128
  'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
10121
10129
  /**
10122
10130
  * Disallow shorthand properties that override related longhand properties.
10123
10131
  *
10124
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-shorthand-property-overrides.md
10132
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-shorthand-property-overrides.md
10125
10133
  */
10126
10134
  'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>;
10127
10135
  /**
10128
10136
  * Disallow passing single-element arrays to `Promise` methods.
10129
10137
  *
10130
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-single-promise-in-promise-methods.md
10138
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-single-promise-in-promise-methods.md
10131
10139
  */
10132
10140
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
10133
10141
  /**
10134
10142
  * Disallow classes that only have static members.
10135
10143
  *
10136
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-static-only-class.md
10144
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-static-only-class.md
10137
10145
  */
10138
10146
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
10139
10147
  /**
10140
10148
  * Prefer comparing values directly over subtracting and comparing to `0`.
10141
10149
  *
10142
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-subtraction-comparison.md
10150
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-subtraction-comparison.md
10143
10151
  */
10144
10152
  'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
10145
10153
  /**
10146
10154
  * Disallow `then` property.
10147
10155
  *
10148
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-thenable.md
10156
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-thenable.md
10149
10157
  */
10150
10158
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
10151
10159
  /**
10152
10160
  * Disallow assigning `this` to a variable.
10153
10161
  *
10154
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-this-assignment.md
10162
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-this-assignment.md
10155
10163
  */
10156
10164
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
10157
10165
  /**
10158
10166
  * Disallow `this` outside of classes.
10159
10167
  *
10160
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-this-outside-of-class.md
10168
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-this-outside-of-class.md
10161
10169
  */
10162
10170
  'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
10163
10171
  /**
10164
10172
  * Disallow assigning to top-level variables from inside functions.
10165
10173
  *
10166
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-top-level-assignment-in-function.md
10174
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-top-level-assignment-in-function.md
10167
10175
  */
10168
10176
  'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
10169
10177
  /**
10170
10178
  * Disallow top-level side effects in exported modules.
10171
10179
  *
10172
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-top-level-side-effects.md
10180
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-top-level-side-effects.md
10173
10181
  */
10174
10182
  'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>;
10175
10183
  /**
10176
10184
  * Disallow `all` as a transition property.
10177
10185
  *
10178
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-transition-all.md
10186
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-transition-all.md
10179
10187
  */
10180
10188
  'unicorn/no-transition-all'?: Linter.RuleEntry<[]>;
10181
10189
  /**
10182
10190
  * Disallow comparing `undefined` using `typeof`.
10183
10191
  *
10184
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-typeof-undefined.md
10192
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-typeof-undefined.md
10185
10193
  */
10186
10194
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
10187
10195
  /**
10188
10196
  * Disallow referencing methods without calling them.
10189
10197
  *
10190
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-uncalled-method.md
10198
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-uncalled-method.md
10191
10199
  */
10192
10200
  'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
10193
10201
  /**
10194
10202
  * Require class members to be declared.
10195
10203
  *
10196
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-undeclared-class-members.md
10204
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-undeclared-class-members.md
10197
10205
  */
10198
10206
  'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
10199
10207
  /**
10200
10208
  * Disallow unknown and noncanonical CSS annotations.
10201
10209
  *
10202
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-unknown-css-annotations.md
10210
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unknown-css-annotations.md
10203
10211
  */
10204
10212
  'unicorn/no-unknown-css-annotations'?: Linter.RuleEntry<[]>;
10205
10213
  /**
10206
10214
  * Disallow unknown pseudo-class and pseudo-element selectors.
10207
10215
  *
10208
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-unknown-pseudo-selectors.md
10216
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unknown-pseudo-selectors.md
10209
10217
  */
10210
10218
  'unicorn/no-unknown-pseudo-selectors'?: Linter.RuleEntry<UnicornNoUnknownPseudoSelectors>;
10211
10219
  /**
10212
10220
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
10213
10221
  *
10214
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-unnecessary-array-flat-depth.md
10222
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-array-flat-depth.md
10215
10223
  */
10216
10224
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
10217
10225
  /**
10218
10226
  * Disallow `Array#flatMap()` callbacks that only wrap a single item.
10219
10227
  *
10220
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-unnecessary-array-flat-map.md
10228
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-array-flat-map.md
10221
10229
  */
10222
10230
  'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
10223
10231
  /**
10224
10232
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount`
10225
10233
  * argument of `Array#{splice,toSpliced}()`.
10226
10234
  *
10227
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-unnecessary-array-splice-count.md
10235
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-array-splice-count.md
10228
10236
  */
10229
10237
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
10230
10238
  /**
10231
10239
  * Disallow awaiting non-promise values.
10232
10240
  *
10233
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-unnecessary-await.md
10241
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-await.md
10234
10242
  */
10235
10243
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
10236
10244
  /**
10237
10245
  * Disallow unnecessary comparisons against boolean literals.
10238
10246
  *
10239
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-unnecessary-boolean-comparison.md
10247
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-boolean-comparison.md
10240
10248
  */
10241
10249
  'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
10242
10250
  /**
10243
10251
  * Disallow unnecessary options in `fetch()` and `new Request()`.
10244
10252
  *
10245
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-unnecessary-fetch-options.md
10253
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-fetch-options.md
10246
10254
  */
10247
10255
  'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
10248
10256
  /**
10249
10257
  * Disallow unnecessary `globalThis` references.
10250
10258
  *
10251
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-unnecessary-global-this.md
10259
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-global-this.md
10252
10260
  */
10253
10261
  'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
10254
10262
  /**
10255
10263
  * Disallow unnecessary nested ternary expressions.
10256
10264
  *
10257
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-unnecessary-nested-ternary.md
10265
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-nested-ternary.md
10258
10266
  */
10259
10267
  'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
10260
10268
  /**
10261
10269
  * Enforce the use of built-in methods instead of unnecessary polyfills.
10262
10270
  *
10263
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-unnecessary-polyfills.md
10271
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-polyfills.md
10264
10272
  */
10265
10273
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
10266
10274
  /**
10267
10275
  * Disallow using `.length` or `Infinity` as the `end` argument of
10268
10276
  * `{Array,String,TypedArray}#slice()`.
10269
10277
  *
10270
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-unnecessary-slice-end.md
10278
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-slice-end.md
10271
10279
  */
10272
10280
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
10273
10281
  /**
10274
10282
  * Disallow `Array#splice()` when simpler alternatives exist.
10275
10283
  *
10276
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-unnecessary-splice.md
10284
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-splice.md
10277
10285
  */
10278
10286
  'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
10279
10287
  /**
10280
10288
  * Disallow `String#trim()` before `String#startsWith()` or
10281
10289
  * `String#endsWith()`.
10282
10290
  *
10283
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-unnecessary-string-trim.md
10291
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-string-trim.md
10284
10292
  */
10285
10293
  'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>;
10286
10294
  /**
10287
10295
  * Disallow unreadable array destructuring.
10288
10296
  *
10289
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-unreadable-array-destructuring.md
10297
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-array-destructuring.md
10290
10298
  */
10291
10299
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
10292
10300
  /**
10293
10301
  * Disallow unreadable iterable expressions in `for…of` and `for await…of`
10294
10302
  * loop headers.
10295
10303
  *
10296
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-unreadable-for-of-expression.md
10304
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-for-of-expression.md
10297
10305
  */
10298
10306
  'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
10299
10307
  /**
10300
10308
  * Disallow unreadable IIFEs.
10301
10309
  *
10302
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-unreadable-iife.md
10310
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-iife.md
10303
10311
  */
10304
10312
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
10305
10313
  /**
10306
10314
  * Disallow unreadable `new` expressions.
10307
10315
  *
10308
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-unreadable-new-expression.md
10316
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-new-expression.md
10309
10317
  */
10310
10318
  'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
10311
10319
  /**
10312
10320
  * Disallow unreadable object destructuring.
10313
10321
  *
10314
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-unreadable-object-destructuring.md
10322
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-object-destructuring.md
10315
10323
  */
10316
10324
  'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
10317
10325
  /**
10318
10326
  * Prevent unsafe use of ArrayBuffer view `.buffer`.
10319
10327
  *
10320
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-unsafe-buffer-conversion.md
10328
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-buffer-conversion.md
10321
10329
  */
10322
10330
  'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
10323
10331
  /**
10324
10332
  * Disallow unsafe DOM HTML APIs.
10325
10333
  *
10326
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-unsafe-dom-html.md
10334
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-dom-html.md
10327
10335
  */
10328
10336
  'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
10329
10337
  /**
10330
10338
  * Disallow reading `.value` from `Promise.allSettled()` results without a
10331
10339
  * fulfilled status guard.
10332
10340
  *
10333
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
10341
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
10334
10342
  */
10335
10343
  'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
10336
10344
  /**
10337
10345
  * Disallow unsafe values as property keys.
10338
10346
  *
10339
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-unsafe-property-key.md
10347
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-property-key.md
10340
10348
  */
10341
10349
  'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
10342
10350
  /**
10343
10351
  * Disallow interpolation into SQL strings passed to Node’s `node:sqlite`
10344
10352
  * APIs.
10345
10353
  *
10346
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
10354
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
10347
10355
  */
10348
10356
  'unicorn/no-unsafe-sqlite-interpolation'?: Linter.RuleEntry<[]>;
10349
10357
  /**
10350
10358
  * Disallow non-literal replacement values in `String#replace()` and
10351
10359
  * `String#replaceAll()`.
10352
10360
  *
10353
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-unsafe-string-replacement.md
10361
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-string-replacement.md
10354
10362
  */
10355
10363
  'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
10356
10364
  /**
10357
10365
  * Disallow unscoped CSS nesting selectors.
10358
10366
  *
10359
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-unscoped-css-nesting-selector.md
10367
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unscoped-css-nesting-selector.md
10360
10368
  */
10361
10369
  'unicorn/no-unscoped-css-nesting-selector'?: Linter.RuleEntry<UnicornNoUnscopedCssNestingSelector>;
10362
10370
  /**
@@ -10364,1206 +10372,1206 @@ interface RuleOptions {
10364
10372
  * cases.
10365
10373
  *
10366
10374
  * @deprecated
10367
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/deleted-and-deprecated-rules.md#no-unused-array-method-return
10375
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-unused-array-method-return
10368
10376
  */
10369
10377
  'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
10370
10378
  /**
10371
10379
  * Disallow ignoring the return value of selected built-in methods.
10372
10380
  *
10373
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-unused-builtin-method-return.md
10381
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unused-builtin-method-return.md
10374
10382
  */
10375
10383
  'unicorn/no-unused-builtin-method-return'?: Linter.RuleEntry<[]>;
10376
10384
  /**
10377
10385
  * Disallow discarding lazy iterator helpers.
10378
10386
  *
10379
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-unused-iterator-helper.md
10387
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unused-iterator-helper.md
10380
10388
  */
10381
10389
  'unicorn/no-unused-iterator-helper'?: Linter.RuleEntry<[]>;
10382
10390
  /**
10383
10391
  * Disallow unused object properties.
10384
10392
  *
10385
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-unused-properties.md
10393
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unused-properties.md
10386
10394
  */
10387
10395
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
10388
10396
  /**
10389
10397
  * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
10390
10398
  *
10391
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-useless-boolean-cast.md
10399
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-boolean-cast.md
10392
10400
  */
10393
10401
  'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
10394
10402
  /**
10395
10403
  * Disallow useless type coercions of values that are already of the target
10396
10404
  * type.
10397
10405
  *
10398
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-useless-coercion.md
10406
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-coercion.md
10399
10407
  */
10400
10408
  'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
10401
10409
  /**
10402
10410
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or
10403
10411
  * `WeakMap`.
10404
10412
  *
10405
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-useless-collection-argument.md
10413
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-collection-argument.md
10406
10414
  */
10407
10415
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
10408
10416
  /**
10409
10417
  * Disallow useless compound assignments such as `x += 0`.
10410
10418
  *
10411
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-useless-compound-assignment.md
10419
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-compound-assignment.md
10412
10420
  */
10413
10421
  'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
10414
10422
  /**
10415
10423
  * Disallow useless concatenation of literals.
10416
10424
  *
10417
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-useless-concat.md
10425
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-concat.md
10418
10426
  */
10419
10427
  'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
10420
10428
  /**
10421
10429
  * Disallow useless `continue` statements.
10422
10430
  *
10423
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-useless-continue.md
10431
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-continue.md
10424
10432
  */
10425
10433
  'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
10426
10434
  /**
10427
10435
  * Disallow unnecessary existence checks before deletion.
10428
10436
  *
10429
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-useless-delete-check.md
10437
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-delete-check.md
10430
10438
  */
10431
10439
  'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
10432
10440
  /**
10433
10441
  * Disallow `else` after a statement that exits.
10434
10442
  *
10435
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-useless-else.md
10443
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-else.md
10436
10444
  */
10437
10445
  'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
10438
10446
  /**
10439
10447
  * Disallow unnecessary `Error.captureStackTrace(…)`.
10440
10448
  *
10441
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-useless-error-capture-stack-trace.md
10449
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-error-capture-stack-trace.md
10442
10450
  */
10443
10451
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
10444
10452
  /**
10445
10453
  * Disallow useless fallback when spreading in object literals.
10446
10454
  *
10447
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-useless-fallback-in-spread.md
10455
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-fallback-in-spread.md
10448
10456
  */
10449
10457
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
10450
10458
  /**
10451
10459
  * Disallow unnecessary `.toArray()` on iterators.
10452
10460
  *
10453
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-useless-iterator-to-array.md
10461
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-iterator-to-array.md
10454
10462
  */
10455
10463
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
10456
10464
  /**
10457
10465
  * Disallow useless array length check.
10458
10466
  *
10459
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-useless-length-check.md
10467
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-length-check.md
10460
10468
  */
10461
10469
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
10462
10470
  /**
10463
10471
  * Disallow unnecessary operands in logical expressions involving boolean
10464
10472
  * literals.
10465
10473
  *
10466
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-useless-logical-operand.md
10474
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-logical-operand.md
10467
10475
  */
10468
10476
  'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
10469
10477
  /**
10470
10478
  * Disallow useless overrides of class methods.
10471
10479
  *
10472
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-useless-override.md
10480
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-override.md
10473
10481
  */
10474
10482
  'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
10475
10483
  /**
10476
10484
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions
10477
10485
  * or promise callbacks
10478
10486
  *
10479
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-useless-promise-resolve-reject.md
10487
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-promise-resolve-reject.md
10480
10488
  */
10481
10489
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
10482
10490
  /**
10483
10491
  * Disallow redundant re-exports.
10484
10492
  *
10485
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-useless-re-export.md
10493
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-re-export.md
10486
10494
  */
10487
10495
  'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>;
10488
10496
  /**
10489
10497
  * Disallow simple recursive function calls that can be replaced with a loop.
10490
10498
  *
10491
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-useless-recursion.md
10499
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-recursion.md
10492
10500
  */
10493
10501
  'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
10494
10502
  /**
10495
10503
  * Disallow unnecessary `Set` construction around `Set` methods.
10496
10504
  *
10497
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-useless-set-construction.md
10505
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-set-construction.md
10498
10506
  */
10499
10507
  'unicorn/no-useless-set-construction'?: Linter.RuleEntry<[]>;
10500
10508
  /**
10501
10509
  * Disallow unnecessary spread.
10502
10510
  *
10503
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-useless-spread.md
10511
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-spread.md
10504
10512
  */
10505
10513
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
10506
10514
  /**
10507
10515
  * Disallow useless case in switch statements.
10508
10516
  *
10509
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-useless-switch-case.md
10517
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-switch-case.md
10510
10518
  */
10511
10519
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
10512
10520
  /**
10513
10521
  * Disallow useless template literal expressions.
10514
10522
  *
10515
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-useless-template-literals.md
10523
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-template-literals.md
10516
10524
  */
10517
10525
  'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
10518
10526
  /**
10519
10527
  * Disallow useless `undefined`.
10520
10528
  *
10521
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-useless-undefined.md
10529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-undefined.md
10522
10530
  */
10523
10531
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
10524
10532
  /**
10525
10533
  * Disallow returning or exporting resources declared with `using`, including
10526
10534
  * through capturing functions.
10527
10535
  *
10528
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-using-resource-escape.md
10536
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-using-resource-escape.md
10529
10537
  */
10530
10538
  'unicorn/no-using-resource-escape'?: Linter.RuleEntry<[]>;
10531
10539
  /**
10532
10540
  * Disallow the bitwise XOR operator where exponentiation was likely intended.
10533
10541
  *
10534
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-xor-as-exponentiation.md
10542
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-xor-as-exponentiation.md
10535
10543
  */
10536
10544
  'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
10537
10545
  /**
10538
10546
  * Disallow number literals with zero fractions or dangling dots.
10539
10547
  *
10540
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/no-zero-fractions.md
10548
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-zero-fractions.md
10541
10549
  */
10542
10550
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
10543
10551
  /**
10544
10552
  * Enforce proper case for numeric literals.
10545
10553
  *
10546
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/number-literal-case.md
10554
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/number-literal-case.md
10547
10555
  */
10548
10556
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
10549
10557
  /**
10550
10558
  * Enforce the style of numeric separators by correctly grouping digits.
10551
10559
  *
10552
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/numeric-separators-style.md
10560
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/numeric-separators-style.md
10553
10561
  */
10554
10562
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
10555
10563
  /**
10556
10564
  * Require assignment operator shorthand where possible.
10557
10565
  *
10558
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/operator-assignment.md
10566
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/operator-assignment.md
10559
10567
  */
10560
10568
  'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
10561
10569
  /**
10562
10570
  * Prefer `AbortSignal.any()` over manually forwarding abort events between
10563
10571
  * signals.
10564
10572
  *
10565
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-abort-signal-any.md
10573
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-abort-signal-any.md
10566
10574
  */
10567
10575
  'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
10568
10576
  /**
10569
10577
  * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController`
10570
10578
  * with `setTimeout()`.
10571
10579
  *
10572
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-abort-signal-timeout.md
10580
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-abort-signal-timeout.md
10573
10581
  */
10574
10582
  'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
10575
10583
  /**
10576
10584
  * Prefer `.addEventListener()` and `.removeEventListener()` over
10577
10585
  * `on`-functions.
10578
10586
  *
10579
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-add-event-listener.md
10587
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-add-event-listener.md
10580
10588
  */
10581
10589
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
10582
10590
  /**
10583
10591
  * Prefer an options object over a boolean in `.addEventListener()`.
10584
10592
  *
10585
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-add-event-listener-options.md
10593
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-add-event-listener-options.md
10586
10594
  */
10587
10595
  'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
10588
10596
  /**
10589
10597
  * Prefer `AggregateError` when throwing collected errors.
10590
10598
  *
10591
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-aggregate-error.md
10599
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-aggregate-error.md
10592
10600
  */
10593
10601
  'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
10594
10602
  /**
10595
10603
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from
10596
10604
  * `.filter(…)`.
10597
10605
  *
10598
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-array-find.md
10606
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-find.md
10599
10607
  */
10600
10608
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
10601
10609
  /**
10602
10610
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
10603
10611
  *
10604
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-array-flat.md
10612
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-flat.md
10605
10613
  */
10606
10614
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
10607
10615
  /**
10608
10616
  * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
10609
10617
  *
10610
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-array-flat-map.md
10618
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-flat-map.md
10611
10619
  */
10612
10620
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
10613
10621
  /**
10614
10622
  * Prefer `Array.fromAsync()` over array accumulation loops.
10615
10623
  *
10616
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-array-from-async.md
10624
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-from-async.md
10617
10625
  */
10618
10626
  'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
10619
10627
  /**
10620
10628
  * Prefer using the `Array.from()` mapping function argument.
10621
10629
  *
10622
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-array-from-map.md
10630
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-from-map.md
10623
10631
  */
10624
10632
  'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
10625
10633
  /**
10626
10634
  * Prefer `Array.from({length}, …)` when creating range arrays.
10627
10635
  *
10628
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-array-from-range.md
10636
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-from-range.md
10629
10637
  */
10630
10638
  'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
10631
10639
  /**
10632
10640
  * Prefer `Array#{indexOf,lastIndexOf}()` over
10633
10641
  * `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
10634
10642
  *
10635
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-array-index-of.md
10643
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-index-of.md
10636
10644
  */
10637
10645
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
10638
10646
  /**
10639
10647
  * Prefer iterating an array directly or with `Array#keys()` over
10640
10648
  * `Array#entries()` when the index or value is unused.
10641
10649
  *
10642
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-array-iterable-methods.md
10650
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-iterable-methods.md
10643
10651
  */
10644
10652
  'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
10645
10653
  /**
10646
10654
  * Prefer last-oriented array methods over `Array#reverse()` or
10647
10655
  * `Array#toReversed()` followed by a method.
10648
10656
  *
10649
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-array-last-methods.md
10657
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-last-methods.md
10650
10658
  */
10651
10659
  'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
10652
10660
  /**
10653
10661
  * Prefer `Array#slice()` over `Array#splice()` when reading from the returned
10654
10662
  * array.
10655
10663
  *
10656
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-array-slice.md
10664
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-slice.md
10657
10665
  */
10658
10666
  'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
10659
10667
  /**
10660
10668
  * Prefer `.some(…)` over `.filter(…).length` check and
10661
10669
  * `.{find,findLast,findIndex,findLastIndex}(…)`.
10662
10670
  *
10663
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-array-some.md
10671
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-some.md
10664
10672
  */
10665
10673
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
10666
10674
  /**
10667
10675
  * Prefer `.at()` method for index access and `String#charAt()`.
10668
10676
  *
10669
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-at.md
10677
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-at.md
10670
10678
  */
10671
10679
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
10672
10680
  /**
10673
10681
  * Prefer `await` over promise chaining.
10674
10682
  *
10675
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-await.md
10683
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-await.md
10676
10684
  */
10677
10685
  'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
10678
10686
  /**
10679
10687
  * Prefer `BigInt` literals over the constructor.
10680
10688
  *
10681
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-bigint-literals.md
10689
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-bigint-literals.md
10682
10690
  */
10683
10691
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
10684
10692
  /**
10685
10693
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and
10686
10694
  * `Blob#text()` over `FileReader#readAsText(…)`.
10687
10695
  *
10688
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-blob-reading-methods.md
10696
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-blob-reading-methods.md
10689
10697
  */
10690
10698
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
10691
10699
  /**
10692
10700
  * Prefer block statements over IIFEs used only for scoping.
10693
10701
  *
10694
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-block-statement-over-iife.md
10702
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-block-statement-over-iife.md
10695
10703
  */
10696
10704
  'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
10697
10705
  /**
10698
10706
  * Prefer directly returning boolean expressions over `if` statements.
10699
10707
  *
10700
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-boolean-return.md
10708
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-boolean-return.md
10701
10709
  */
10702
10710
  'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
10703
10711
  /**
10704
10712
  * Prefer class field declarations over `this` assignments in constructors.
10705
10713
  *
10706
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-class-fields.md
10714
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-class-fields.md
10707
10715
  */
10708
10716
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
10709
10717
  /**
10710
10718
  * Prefer using `Element#classList.toggle()` to toggle class names.
10711
10719
  *
10712
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-classlist-toggle.md
10720
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-classlist-toggle.md
10713
10721
  */
10714
10722
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
10715
10723
  /**
10716
10724
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and
10717
10725
  * `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
10718
10726
  *
10719
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-code-point.md
10727
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-code-point.md
10720
10728
  */
10721
10729
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
10722
10730
  /**
10723
10731
  * Prefer combining consecutive guards with identical exit statements.
10724
10732
  *
10725
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-combined-guards.md
10733
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-combined-guards.md
10726
10734
  */
10727
- 'unicorn/prefer-combined-guards'?: Linter.RuleEntry<[]>;
10735
+ 'unicorn/prefer-combined-guards'?: Linter.RuleEntry<UnicornPreferCombinedGuards>;
10728
10736
  /**
10729
10737
  * Prefer early continues over conditionals wrapping the remainder of the loop
10730
10738
  * body.
10731
10739
  *
10732
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-continue.md
10740
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-continue.md
10733
10741
  */
10734
10742
  'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
10735
10743
  /**
10736
10744
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
10737
10745
  *
10738
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-date-now.md
10746
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-date-now.md
10739
10747
  */
10740
10748
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
10741
10749
  /**
10742
10750
  * Prefer default parameters over reassignment.
10743
10751
  *
10744
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-default-parameters.md
10752
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-default-parameters.md
10745
10753
  */
10746
10754
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
10747
10755
  /**
10748
10756
  * Prefer direct iteration over default iterator method calls.
10749
10757
  *
10750
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-direct-iteration.md
10758
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-direct-iteration.md
10751
10759
  */
10752
10760
  'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
10753
10761
  /**
10754
10762
  * Prefer using `using`/`await using` over manual `try`/`finally` resource
10755
10763
  * disposal.
10756
10764
  *
10757
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-dispose.md
10765
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dispose.md
10758
10766
  */
10759
10767
  'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
10760
10768
  /**
10761
10769
  * Prefer `Element#append()` over `Node#appendChild()`.
10762
10770
  *
10763
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-dom-node-append.md
10771
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-append.md
10764
10772
  */
10765
10773
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
10766
10774
  /**
10767
10775
  * Renamed to `unicorn/dom-node-dataset`.
10768
10776
  *
10769
10777
  * @deprecated
10770
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
10778
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
10771
10779
  */
10772
10780
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
10773
10781
  /**
10774
10782
  * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
10775
10783
  *
10776
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-dom-node-html-methods.md
10784
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-html-methods.md
10777
10785
  */
10778
10786
  'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
10779
10787
  /**
10780
10788
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
10781
10789
  *
10782
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-dom-node-remove.md
10790
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-remove.md
10783
10791
  */
10784
10792
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
10785
10793
  /**
10786
10794
  * Prefer `.replaceChildren()` when replacing DOM children.
10787
10795
  *
10788
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-dom-node-replace-children.md
10796
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-replace-children.md
10789
10797
  */
10790
10798
  'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
10791
10799
  /**
10792
10800
  * Prefer `.textContent` over `.innerText`.
10793
10801
  *
10794
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-dom-node-text-content.md
10802
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-text-content.md
10795
10803
  */
10796
10804
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
10797
10805
  /**
10798
10806
  * Prefer early returns over conditionals wrapping the remainder of the
10799
10807
  * function body.
10800
10808
  *
10801
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-early-return.md
10809
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-early-return.md
10802
10810
  */
10803
10811
  'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
10804
10812
  /**
10805
10813
  * Prefer `else if` over adjacent `if` statements with related conditions.
10806
10814
  *
10807
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-else-if.md
10815
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-else-if.md
10808
10816
  */
10809
10817
  'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
10810
10818
  /**
10811
10819
  * Prefer `Error.isError()` when checking for errors.
10812
10820
  *
10813
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-error-is-error.md
10821
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-error-is-error.md
10814
10822
  */
10815
10823
  'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
10816
10824
  /**
10817
10825
  * Prefer `EventTarget` over `EventEmitter`.
10818
10826
  *
10819
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-event-target.md
10827
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-event-target.md
10820
10828
  */
10821
10829
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
10822
10830
  /**
10823
10831
  * Prefer explicit viewport units.
10824
10832
  *
10825
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-explicit-viewport-units.md
10833
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-explicit-viewport-units.md
10826
10834
  */
10827
10835
  'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<UnicornPreferExplicitViewportUnits>;
10828
10836
  /**
10829
10837
  * Prefer `export…from` when re-exporting.
10830
10838
  *
10831
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-export-from.md
10839
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-export-from.md
10832
10840
  */
10833
10841
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
10834
10842
  /**
10835
10843
  * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
10836
10844
  *
10837
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-flat-math-min-max.md
10845
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-flat-math-min-max.md
10838
10846
  */
10839
10847
  'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
10840
10848
  /**
10841
10849
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
10842
10850
  *
10843
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-get-or-insert-computed.md
10851
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-get-or-insert-computed.md
10844
10852
  */
10845
10853
  'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
10846
10854
  /**
10847
10855
  * Prefer global numeric constants over `Number` static properties.
10848
10856
  *
10849
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-global-number-constants.md
10857
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-global-number-constants.md
10850
10858
  */
10851
10859
  'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
10852
10860
  /**
10853
10861
  * Prefer `globalThis` over `window`, `self`, and `global`.
10854
10862
  *
10855
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-global-this.md
10863
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-global-this.md
10856
10864
  */
10857
10865
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
10858
10866
  /**
10859
10867
  * Prefer `Object.groupBy()` or `Map.groupBy()` over manual grouping.
10860
10868
  *
10861
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-group-by.md
10869
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-group-by.md
10862
10870
  */
10863
10871
  'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
10864
10872
  /**
10865
10873
  * Prefer `.has()` when checking existence.
10866
10874
  *
10867
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-has-check.md
10875
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-has-check.md
10868
10876
  */
10869
10877
  'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
10870
10878
  /**
10871
10879
  * Prefer moving code shared by all branches of an `if` statement out of the
10872
10880
  * branches.
10873
10881
  *
10874
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-hoisting-branch-code.md
10882
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-hoisting-branch-code.md
10875
10883
  */
10876
10884
  'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
10877
10885
  /**
10878
10886
  * Prefer HTTPS over HTTP.
10879
10887
  *
10880
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-https.md
10888
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-https.md
10881
10889
  */
10882
10890
  'unicorn/prefer-https'?: Linter.RuleEntry<UnicornPreferHttps>;
10883
10891
  /**
10884
10892
  * Prefer identifiers over string literals in import and export specifiers.
10885
10893
  *
10886
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
10894
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
10887
10895
  */
10888
10896
  'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
10889
10897
  /**
10890
10898
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting
10891
10899
  * file paths.
10892
10900
  *
10893
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-import-meta-properties.md
10901
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-import-meta-properties.md
10894
10902
  */
10895
10903
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
10896
10904
  /**
10897
10905
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and
10898
10906
  * `Array#some()` when checking for existence or non-existence.
10899
10907
  *
10900
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-includes.md
10908
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-includes.md
10901
10909
  */
10902
10910
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
10903
10911
  /**
10904
10912
  * Prefer `.includes()` over repeated equality comparisons.
10905
10913
  *
10906
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
10914
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
10907
10915
  */
10908
10916
  'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
10909
10917
  /**
10910
10918
  * Prefer passing iterables directly to constructors instead of filling empty
10911
10919
  * collections.
10912
10920
  *
10913
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-iterable-in-constructor.md
10921
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterable-in-constructor.md
10914
10922
  */
10915
10923
  'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
10916
10924
  /**
10917
10925
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
10918
10926
  *
10919
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-iterator-concat.md
10927
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-concat.md
10920
10928
  */
10921
10929
  'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
10922
10930
  /**
10923
10931
  * Prefer iterator helpers over temporary arrays from iterators.
10924
10932
  *
10925
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-iterator-helpers.md
10933
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-helpers.md
10926
10934
  */
10927
10935
  'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
10928
10936
  /**
10929
10937
  * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
10930
10938
  *
10931
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-iterator-to-array.md
10939
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-to-array.md
10932
10940
  */
10933
10941
  'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
10934
10942
  /**
10935
10943
  * Prefer moving `.toArray()` to the end of iterator helper chains.
10936
10944
  *
10937
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-iterator-to-array-at-end.md
10945
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-to-array-at-end.md
10938
10946
  */
10939
10947
  'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
10940
10948
  /**
10941
10949
  * Prefer `Iterator.zip()` over parallel-array indexing.
10942
10950
  *
10943
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-iterator-zip.md
10951
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-zip.md
10944
10952
  */
10945
10953
  'unicorn/prefer-iterator-zip'?: Linter.RuleEntry<[]>;
10946
10954
  /**
10947
10955
  * Prefer JSON imports over reading and parsing JSON files.
10948
10956
  *
10949
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-json-import.md
10957
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-json-import.md
10950
10958
  */
10951
10959
  'unicorn/prefer-json-import'?: Linter.RuleEntry<[]>;
10952
10960
  /**
10953
10961
  * Renamed to `unicorn/consistent-json-file-read`.
10954
10962
  *
10955
10963
  * @deprecated
10956
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
10964
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
10957
10965
  */
10958
10966
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
10959
10967
  /**
10960
10968
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
10961
10969
  *
10962
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-keyboard-event-key.md
10970
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-keyboard-event-key.md
10963
10971
  */
10964
10972
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
10965
10973
  /**
10966
10974
  * Prefer `location.assign()` over assigning to `location.href`.
10967
10975
  *
10968
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-location-assign.md
10976
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-location-assign.md
10969
10977
  */
10970
10978
  'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
10971
10979
  /**
10972
10980
  * Prefer using a logical operator over a ternary.
10973
10981
  *
10974
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-logical-operator-over-ternary.md
10982
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-logical-operator-over-ternary.md
10975
10983
  */
10976
10984
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
10977
10985
  /**
10978
10986
  * Prefer `new Map()` over `Object.fromEntries()` when using the result as a
10979
10987
  * map.
10980
10988
  *
10981
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-map-from-entries.md
10989
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-map-from-entries.md
10982
10990
  */
10983
10991
  'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
10984
10992
  /**
10985
10993
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric
10986
10994
  * range checks.
10987
10995
  *
10988
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-math-abs.md
10996
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-abs.md
10989
10997
  */
10990
10998
  'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
10991
10999
  /**
10992
11000
  * Prefer `Math` constants over their approximate numeric values.
10993
11001
  *
10994
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-math-constants.md
11002
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-constants.md
10995
11003
  */
10996
11004
  'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
10997
11005
  /**
10998
11006
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
10999
11007
  *
11000
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-math-min-max.md
11008
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-min-max.md
11001
11009
  */
11002
11010
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
11003
11011
  /**
11004
11012
  * Prefer `Math.trunc()` for truncating numbers.
11005
11013
  *
11006
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-math-trunc.md
11014
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-trunc.md
11007
11015
  */
11008
11016
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
11009
11017
  /**
11010
11018
  * Prefer modern media feature range syntax.
11011
11019
  *
11012
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-media-feature-range-syntax.md
11020
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-media-feature-range-syntax.md
11013
11021
  */
11014
11022
  'unicorn/prefer-media-feature-range-syntax'?: Linter.RuleEntry<[]>;
11015
11023
  /**
11016
11024
  * Prefer moving ternaries into the minimal varying part of an expression.
11017
11025
  *
11018
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-minimal-ternary.md
11026
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-minimal-ternary.md
11019
11027
  */
11020
11028
  'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
11021
11029
  /**
11022
11030
  * Prefer modern DOM APIs.
11023
11031
  *
11024
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-modern-dom-apis.md
11032
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-modern-dom-apis.md
11025
11033
  */
11026
11034
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
11027
11035
  /**
11028
11036
  * Prefer modern `Math` APIs over legacy patterns.
11029
11037
  *
11030
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-modern-math-apis.md
11038
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-modern-math-apis.md
11031
11039
  */
11032
11040
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
11033
11041
  /**
11034
11042
  * Prefer JavaScript modules (ESM) over CommonJS.
11035
11043
  *
11036
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-module.md
11044
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-module.md
11037
11045
  */
11038
11046
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
11039
11047
  /**
11040
11048
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol`
11041
11049
  * directly.
11042
11050
  *
11043
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-native-coercion-functions.md
11051
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-native-coercion-functions.md
11044
11052
  */
11045
11053
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
11046
11054
  /**
11047
11055
  * Prefer negative index over `.length - index` when possible.
11048
11056
  *
11049
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-negative-index.md
11057
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-negative-index.md
11050
11058
  */
11051
11059
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
11052
11060
  /**
11053
11061
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
11054
11062
  *
11055
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-node-protocol.md
11063
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-node-protocol.md
11056
11064
  */
11057
11065
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
11058
11066
  /**
11059
11067
  * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
11060
11068
  *
11061
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-number-coercion.md
11069
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-number-coercion.md
11062
11070
  */
11063
11071
  'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
11064
11072
  /**
11065
11073
  * Prefer `Number.isSafeInteger()` over integer checks.
11066
11074
  *
11067
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-number-is-safe-integer.md
11075
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-number-is-safe-integer.md
11068
11076
  */
11069
11077
  'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
11070
11078
  /**
11071
11079
  * Prefer `Number` static methods over global functions and optionally static
11072
11080
  * properties over global constants.
11073
11081
  *
11074
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-number-properties.md
11082
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-number-properties.md
11075
11083
  */
11076
11084
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
11077
11085
  /**
11078
11086
  * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()`
11079
11087
  * calls.
11080
11088
  *
11081
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-object-define-properties.md
11089
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-define-properties.md
11082
11090
  */
11083
11091
  'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
11084
11092
  /**
11085
11093
  * Prefer object destructuring defaults over default object literals with
11086
11094
  * spread.
11087
11095
  *
11088
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-object-destructuring-defaults.md
11096
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-destructuring-defaults.md
11089
11097
  */
11090
11098
  'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
11091
11099
  /**
11092
11100
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs
11093
11101
  * into an object.
11094
11102
  *
11095
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-object-from-entries.md
11103
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-from-entries.md
11096
11104
  */
11097
11105
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
11098
11106
  /**
11099
11107
  * Prefer the most specific `Object` iterable method.
11100
11108
  *
11101
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-object-iterable-methods.md
11109
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-iterable-methods.md
11102
11110
  */
11103
11111
  'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
11104
11112
  /**
11105
11113
  * Prefer observer APIs over resize and scroll listeners with layout reads.
11106
11114
  *
11107
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-observer-apis.md
11115
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-observer-apis.md
11108
11116
  */
11109
11117
  'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
11110
11118
  /**
11111
11119
  * Prefer omitting the `catch` binding parameter.
11112
11120
  *
11113
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-optional-catch-binding.md
11121
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-optional-catch-binding.md
11114
11122
  */
11115
11123
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
11116
11124
  /**
11117
11125
  * Prefer `Path2D` for repeatedly drawn canvas paths.
11118
11126
  *
11119
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-path2d.md
11127
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-path2d.md
11120
11128
  */
11121
11129
  'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
11122
11130
  /**
11123
11131
  * Prefer private class fields over the underscore-prefix convention.
11124
11132
  *
11125
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-private-class-fields.md
11133
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-private-class-fields.md
11126
11134
  */
11127
11135
  'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
11128
11136
  /**
11129
11137
  * Prefer `Promise.try()` over promise-wrapping boilerplate.
11130
11138
  *
11131
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-promise-try.md
11139
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-promise-try.md
11132
11140
  */
11133
11141
  'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
11134
11142
  /**
11135
11143
  * Prefer `Promise.withResolvers()` when extracting resolver functions from
11136
11144
  * `new Promise()`.
11137
11145
  *
11138
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-promise-with-resolvers.md
11146
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-promise-with-resolvers.md
11139
11147
  */
11140
11148
  'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
11141
11149
  /**
11142
11150
  * Prefer borrowing methods from the prototype instead of the instance.
11143
11151
  *
11144
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-prototype-methods.md
11152
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-prototype-methods.md
11145
11153
  */
11146
11154
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
11147
11155
  /**
11148
11156
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query
11149
11157
  * methods.
11150
11158
  *
11151
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-query-selector.md
11159
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-query-selector.md
11152
11160
  */
11153
11161
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
11154
11162
  /**
11155
11163
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and
11156
11164
  * `setTimeout(…, 0)`.
11157
11165
  *
11158
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-queue-microtask.md
11166
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-queue-microtask.md
11159
11167
  */
11160
11168
  'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
11161
11169
  /**
11162
11170
  * Prefer `Reflect.apply()` over `Function#apply()`.
11163
11171
  *
11164
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-reflect-apply.md
11172
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-reflect-apply.md
11165
11173
  */
11166
11174
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
11167
11175
  /**
11168
11176
  * Prefer `RegExp.escape()` for escaping strings to use in regular
11169
11177
  * expressions.
11170
11178
  *
11171
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-regexp-escape.md
11179
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-regexp-escape.md
11172
11180
  */
11173
11181
  'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
11174
11182
  /**
11175
11183
  * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and
11176
11184
  * `RegExp#exec()`.
11177
11185
  *
11178
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-regexp-test.md
11186
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-regexp-test.md
11179
11187
  */
11180
11188
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
11181
11189
  /**
11182
11190
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
11183
11191
  *
11184
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-response-static-json.md
11192
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-response-static-json.md
11185
11193
  */
11186
11194
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
11187
11195
  /**
11188
11196
  * Prefer `:scope` when using element query selector methods.
11189
11197
  *
11190
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-scoped-selector.md
11198
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-scoped-selector.md
11191
11199
  */
11192
11200
  'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
11193
11201
  /**
11194
11202
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or
11195
11203
  * non-existence.
11196
11204
  *
11197
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-set-has.md
11205
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-set-has.md
11198
11206
  */
11199
11207
  'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
11200
11208
  /**
11201
11209
  * Prefer `Set` methods for Set operations.
11202
11210
  *
11203
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-set-methods.md
11211
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-set-methods.md
11204
11212
  */
11205
11213
  'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
11206
11214
  /**
11207
11215
  * Prefer using `Set#size` instead of `Array#length`.
11208
11216
  *
11209
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-set-size.md
11217
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-set-size.md
11210
11218
  */
11211
11219
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
11212
11220
  /**
11213
11221
  * Prefer arrow function properties over methods with a single return.
11214
11222
  *
11215
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-short-arrow-method.md
11223
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-short-arrow-method.md
11216
11224
  */
11217
11225
  'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
11218
11226
  /**
11219
11227
  * Prefer simple conditions first in logical expressions.
11220
11228
  *
11221
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-simple-condition-first.md
11229
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-simple-condition-first.md
11222
11230
  */
11223
11231
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
11224
11232
  /**
11225
11233
  * Prefer a simple comparison function for `Array#sort()`.
11226
11234
  *
11227
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-simple-sort-comparator.md
11235
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-simple-sort-comparator.md
11228
11236
  */
11229
11237
  'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
11230
11238
  /**
11231
11239
  * Prefer simplified conditions.
11232
11240
  *
11233
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-simplified-conditions.md
11241
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-simplified-conditions.md
11234
11242
  */
11235
11243
  'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<[]>;
11236
11244
  /**
11237
11245
  * Prefer a single `Array#some()` or `Array#every()` with a combined
11238
11246
  * predicate.
11239
11247
  *
11240
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-single-array-predicate.md
11248
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-array-predicate.md
11241
11249
  */
11242
11250
  'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
11243
11251
  /**
11244
11252
  * Enforce combining multiple `Array#{push,unshift}()`,
11245
11253
  * `Element#classList.{add,remove}()`, and `importScripts()` into one call.
11246
11254
  *
11247
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-single-call.md
11255
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-call.md
11248
11256
  */
11249
11257
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
11250
11258
  /**
11251
11259
  * Prefer a single object destructuring declaration per local const source.
11252
11260
  *
11253
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-single-object-destructuring.md
11261
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-object-destructuring.md
11254
11262
  */
11255
11263
  'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
11256
11264
  /**
11257
11265
  * Enforce combining multiple single-character replacements into a single
11258
11266
  * `String#replaceAll()` with a regular expression.
11259
11267
  *
11260
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-single-replace.md
11268
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-replace.md
11261
11269
  */
11262
11270
  'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
11263
11271
  /**
11264
11272
  * Prefer declaring variables in the smallest possible scope.
11265
11273
  *
11266
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-smaller-scope.md
11274
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-smaller-scope.md
11267
11275
  */
11268
11276
  'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
11269
11277
  /**
11270
11278
  * Prefer `String#split()` with a limit.
11271
11279
  *
11272
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-split-limit.md
11280
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-split-limit.md
11273
11281
  */
11274
11282
  'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
11275
11283
  /**
11276
11284
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`,
11277
11285
  * `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
11278
11286
  *
11279
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-spread.md
11287
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-spread.md
11280
11288
  */
11281
11289
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
11282
11290
  /**
11283
11291
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
11284
11292
  *
11285
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-string-match-all.md
11293
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-match-all.md
11286
11294
  */
11287
11295
  'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
11288
11296
  /**
11289
11297
  * Prefer `String#padStart()` and `String#padEnd()` over manual string
11290
11298
  * padding.
11291
11299
  *
11292
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-string-pad-start-end.md
11300
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-pad-start-end.md
11293
11301
  */
11294
11302
  'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
11295
11303
  /**
11296
11304
  * Prefer using the `String.raw` tag to avoid escaping `\`.
11297
11305
  *
11298
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-string-raw.md
11306
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-raw.md
11299
11307
  */
11300
11308
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
11301
11309
  /**
11302
11310
  * Prefer `String#repeat()` for repeated whitespace.
11303
11311
  *
11304
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-string-repeat.md
11312
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-repeat.md
11305
11313
  */
11306
11314
  'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
11307
11315
  /**
11308
11316
  * Prefer `String#replaceAll()` over regex searches with the global flag and
11309
11317
  * `String#split().join()`.
11310
11318
  *
11311
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-string-replace-all.md
11319
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-replace-all.md
11312
11320
  */
11313
11321
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
11314
11322
  /**
11315
11323
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
11316
11324
  *
11317
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-string-slice.md
11325
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-slice.md
11318
11326
  */
11319
11327
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
11320
11328
  /**
11321
11329
  * Prefer `String#startsWith()` & `String#endsWith()` over regexes,
11322
11330
  * `String#indexOf() === 0`, and slice checks.
11323
11331
  *
11324
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-string-starts-ends-with.md
11332
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-starts-ends-with.md
11325
11333
  */
11326
11334
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
11327
11335
  /**
11328
11336
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` /
11329
11337
  * `String#trimRight()`.
11330
11338
  *
11331
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-string-trim-start-end.md
11339
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-trim-start-end.md
11332
11340
  */
11333
11341
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
11334
11342
  /**
11335
11343
  * Prefer using `structuredClone` to create a deep clone.
11336
11344
  *
11337
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-structured-clone.md
11345
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-structured-clone.md
11338
11346
  */
11339
11347
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
11340
11348
  /**
11341
11349
  * Prefer `switch` over multiple `else-if`.
11342
11350
  *
11343
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-switch.md
11351
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-switch.md
11344
11352
  */
11345
11353
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
11346
11354
  /**
11347
11355
  * Prefer `Temporal` over `Date`.
11348
11356
  *
11349
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-temporal.md
11357
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-temporal.md
11350
11358
  */
11351
11359
  'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
11352
11360
  /**
11353
11361
  * Prefer direct Temporal conversion methods.
11354
11362
  *
11355
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-temporal-conversion.md
11363
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-temporal-conversion.md
11356
11364
  */
11357
11365
  'unicorn/prefer-temporal-conversion'?: Linter.RuleEntry<[]>;
11358
11366
  /**
11359
11367
  * Prefer ternary expressions over simple `if` statements that return or
11360
11368
  * assign values.
11361
11369
  *
11362
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-ternary.md
11370
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-ternary.md
11363
11371
  */
11364
11372
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
11365
11373
  /**
11366
11374
  * Prefer `.then().catch()` over `.then(…, …)` for error handling.
11367
11375
  *
11368
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-then-catch.md
11376
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-then-catch.md
11369
11377
  */
11370
11378
  'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>;
11371
11379
  /**
11372
11380
  * Prefer using `Element#toggleAttribute()` to toggle attributes.
11373
11381
  *
11374
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-toggle-attribute.md
11382
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-toggle-attribute.md
11375
11383
  */
11376
11384
  'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
11377
11385
  /**
11378
11386
  * Prefer top-level await over top-level promises and async function calls.
11379
11387
  *
11380
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-top-level-await.md
11388
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-top-level-await.md
11381
11389
  */
11382
11390
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
11383
11391
  /**
11384
11392
  * Enforce throwing `TypeError` in type checking conditions.
11385
11393
  *
11386
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-type-error.md
11394
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-type-error.md
11387
11395
  */
11388
11396
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
11389
11397
  /**
11390
11398
  * Require type literals to be last in union types.
11391
11399
  *
11392
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-type-literal-last.md
11400
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-type-literal-last.md
11393
11401
  */
11394
11402
  'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
11395
11403
  /**
11396
11404
  * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over legacy
11397
11405
  * base64 conversions and manual postprocessing.
11398
11406
  *
11399
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-uint8array-base64.md
11407
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-uint8array-base64.md
11400
11408
  */
11401
11409
  'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
11402
11410
  /**
11403
11411
  * Prefer `Uint8Array#toHex()` and `Uint8Array.fromHex()` over manual and
11404
11412
  * Buffer hex conversions.
11405
11413
  *
11406
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-uint8array-hex.md
11414
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-uint8array-hex.md
11407
11415
  */
11408
11416
  'unicorn/prefer-uint8array-hex'?: Linter.RuleEntry<[]>;
11409
11417
  /**
11410
11418
  * Prefer the unary minus operator over multiplying or dividing by `-1`.
11411
11419
  *
11412
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-unary-minus.md
11420
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-unary-minus.md
11413
11421
  */
11414
11422
  'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
11415
11423
  /**
11416
11424
  * Prefer Unicode code point escapes over legacy escape sequences.
11417
11425
  *
11418
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-unicode-code-point-escapes.md
11426
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-unicode-code-point-escapes.md
11419
11427
  */
11420
11428
  'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
11421
11429
  /**
11422
11430
  * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for
11423
11431
  * validation.
11424
11432
  *
11425
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-url-can-parse.md
11433
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-url-can-parse.md
11426
11434
  */
11427
11435
  'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
11428
11436
  /**
11429
11437
  * Prefer `URL#href` over stringifying a `URL`.
11430
11438
  *
11431
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-url-href.md
11439
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-url-href.md
11432
11440
  */
11433
11441
  'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
11434
11442
  /**
11435
11443
  * Prefer `URLSearchParams` over manually splitting query strings.
11436
11444
  *
11437
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-url-search-parameters.md
11445
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-url-search-parameters.md
11438
11446
  */
11439
11447
  'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
11440
11448
  /**
11441
11449
  * Prefer putting the condition in the while statement.
11442
11450
  *
11443
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/prefer-while-loop-condition.md
11451
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-while-loop-condition.md
11444
11452
  */
11445
11453
  'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
11446
11454
  /**
11447
11455
  * Renamed to `unicorn/name-replacements`.
11448
11456
  *
11449
11457
  * @deprecated
11450
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
11458
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
11451
11459
  */
11452
11460
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
11453
11461
  /**
11454
11462
  * Enforce consistent relative URL style.
11455
11463
  *
11456
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/relative-url-style.md
11464
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/relative-url-style.md
11457
11465
  */
11458
11466
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
11459
11467
  /**
11460
11468
  * Enforce using the separator argument with `Array#join()`.
11461
11469
  *
11462
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/require-array-join-separator.md
11470
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-array-join-separator.md
11463
11471
  */
11464
11472
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
11465
11473
  /**
11466
11474
  * Require a compare function when calling `Array#sort()` or
11467
11475
  * `Array#toSorted()`.
11468
11476
  *
11469
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/require-array-sort-compare.md
11477
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-array-sort-compare.md
11470
11478
  */
11471
11479
  'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
11472
11480
  /**
11473
11481
  * Require `CSS.escape()` for interpolated values in CSS selectors.
11474
11482
  *
11475
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/require-css-escape.md
11483
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-css-escape.md
11476
11484
  */
11477
11485
  'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
11478
11486
  /**
11479
11487
  * Require configured YAML frontmatter fields.
11480
11488
  *
11481
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/require-frontmatter-fields.md
11489
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-frontmatter-fields.md
11482
11490
  */
11483
11491
  'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
11484
11492
  /**
11485
11493
  * Require non-empty module attributes for imports and exports
11486
11494
  *
11487
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/require-module-attributes.md
11495
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-module-attributes.md
11488
11496
  */
11489
11497
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
11490
11498
  /**
11491
11499
  * Require non-empty specifier list in import and export statements.
11492
11500
  *
11493
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/require-module-specifiers.md
11501
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-module-specifiers.md
11494
11502
  */
11495
11503
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
11496
11504
  /**
11497
11505
  * Enforce using the digits argument with `Number#toFixed()`.
11498
11506
  *
11499
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/require-number-to-fixed-digits-argument.md
11507
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-number-to-fixed-digits-argument.md
11500
11508
  */
11501
11509
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
11502
11510
  /**
11503
11511
  * Require passive event listeners for high-frequency events.
11504
11512
  *
11505
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/require-passive-events.md
11513
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-passive-events.md
11506
11514
  */
11507
11515
  'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
11508
11516
  /**
11509
11517
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
11510
11518
  *
11511
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/require-post-message-target-origin.md
11519
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-post-message-target-origin.md
11512
11520
  */
11513
11521
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
11514
11522
  /**
11515
11523
  * Require boolean-returning Proxy traps to return booleans.
11516
11524
  *
11517
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/require-proxy-trap-boolean-return.md
11525
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-proxy-trap-boolean-return.md
11518
11526
  */
11519
11527
  'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
11520
11528
  /**
11521
11529
  * Enforce a consistent style for single-line block comments.
11522
11530
  *
11523
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/single-line-block-comment-style.md
11531
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/single-line-block-comment-style.md
11524
11532
  */
11525
11533
  'unicorn/single-line-block-comment-style'?: Linter.RuleEntry<UnicornSingleLineBlockCommentStyle>;
11526
11534
  /**
11527
11535
  * Enforce better string content.
11528
11536
  *
11529
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/string-content.md
11537
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/string-content.md
11530
11538
  */
11531
11539
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
11532
11540
  /**
11533
11541
  * Enforce consistent brace style for `case` clauses.
11534
11542
  *
11535
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/switch-case-braces.md
11543
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/switch-case-braces.md
11536
11544
  */
11537
11545
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
11538
11546
  /**
11539
11547
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case`
11540
11548
  * clauses.
11541
11549
  *
11542
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/switch-case-break-position.md
11550
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/switch-case-break-position.md
11543
11551
  */
11544
11552
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
11545
11553
  /**
11546
11554
  * Fix whitespace-insensitive template indentation.
11547
11555
  *
11548
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/template-indent.md
11556
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/template-indent.md
11549
11557
  */
11550
11558
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
11551
11559
  /**
11552
11560
  * Enforce consistent case for text encoding identifiers.
11553
11561
  *
11554
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/text-encoding-identifier-case.md
11562
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/text-encoding-identifier-case.md
11555
11563
  */
11556
11564
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
11557
11565
  /**
11558
11566
  * Require `new` when creating an error.
11559
11567
  *
11560
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/throw-new-error.md
11568
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/throw-new-error.md
11561
11569
  */
11562
11570
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
11563
11571
  /**
11564
11572
  * Limit the complexity of `try` blocks.
11565
11573
  *
11566
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v75.0.0/docs/rules/try-complexity.md
11574
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/try-complexity.md
11567
11575
  */
11568
11576
  'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
11569
11577
  /**
@@ -12124,6 +12132,10 @@ type ConsistentReturn = [] | [{
12124
12132
  type ConsistentThis = string[];
12125
12133
  // ----- curly -----
12126
12134
  type Curly = [] | ['all'] | [] | ['multi' | 'multi-line' | 'multi-or-nest'] | ['multi' | 'multi-line' | 'multi-or-nest', 'consistent'];
12135
+ // ----- de-morgan/no-negated-disjunction -----
12136
+ type DeMorganNoNegatedDisjunction = [] | [{
12137
+ enforceForMixedOperators?: boolean;
12138
+ }];
12127
12139
  // ----- default-case -----
12128
12140
  type DefaultCase = [] | [{
12129
12141
  commentPattern?: string;
@@ -13472,6 +13484,11 @@ type JsonPackageRestrictDependencyRanges = [] | [{
13472
13484
  forVersions?: string;
13473
13485
  rangeType: ('^' | '~' | '<' | '<=' | '>' | '>=' | 'caret' | 'pin' | 'tilde' | 'lt' | 'le' | 'gt' | 'ge') | ('^' | '~' | '<' | '<=' | '>' | '>=' | 'caret' | 'pin' | 'tilde' | 'lt' | 'le' | 'gt' | 'ge')[];
13474
13486
  }[]];
13487
+ // ----- json-package/restrict-dist-tags -----
13488
+ type JsonPackageRestrictDistTags = [] | [{
13489
+ allowed?: string[];
13490
+ allowedFor?: ('dependencies' | 'devDependencies' | 'optionalDependencies' | 'peerDependencies')[];
13491
+ }];
13475
13492
  // ----- json-package/restrict-private-properties -----
13476
13493
  type JsonPackageRestrictPrivateProperties = [] | [{
13477
13494
  blockedProperties?: string[];
@@ -21297,6 +21314,10 @@ type UnicornNoArrayReverse = [] | [{
21297
21314
  type UnicornNoArraySort = [] | [{
21298
21315
  allowExpressionStatement?: boolean;
21299
21316
  }];
21317
+ // ----- unicorn/no-break-in-nested-loop -----
21318
+ type UnicornNoBreakInNestedLoop = [] | [{
21319
+ checkContinue?: boolean;
21320
+ }];
21300
21321
  // ----- unicorn/no-deprecated-css-features -----
21301
21322
  type UnicornNoDeprecatedCssFeatures = [] | [{
21302
21323
  allow?: string[];
@@ -21305,6 +21326,10 @@ type UnicornNoDeprecatedCssFeatures = [] | [{
21305
21326
  type UnicornNoEmptyFile = [] | [{
21306
21327
  allowComments?: boolean;
21307
21328
  }];
21329
+ // ----- unicorn/no-immediate-mutation -----
21330
+ type UnicornNoImmediateMutation = [] | [{
21331
+ checkConditionals?: boolean;
21332
+ }];
21308
21333
  // ----- unicorn/no-instanceof-builtins -----
21309
21334
  type UnicornNoInstanceofBuiltins = [] | [{
21310
21335
  useErrorIsError?: boolean;
@@ -21416,6 +21441,10 @@ type UnicornPreferAt = [] | [{
21416
21441
  getLastElementFunctions?: string[];
21417
21442
  checkAllIndexAccess?: boolean;
21418
21443
  }];
21444
+ // ----- unicorn/prefer-combined-guards -----
21445
+ type UnicornPreferCombinedGuards = [] | [{
21446
+ checkCompoundConditions?: boolean;
21447
+ }];
21419
21448
  // ----- unicorn/prefer-continue -----
21420
21449
  type UnicornPreferContinue = [] | [{
21421
21450
  maximumStatements?: number;