@ntnyq/eslint-config 7.0.0-beta.11 → 7.0.0-beta.12

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