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