@ntnyq/eslint-config 7.0.0-beta.13 → 7.0.0-beta.15

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.
Files changed (3) hide show
  1. package/dist/index.d.mts +629 -506
  2. package/dist/index.mjs +21 -15
  3. package/package.json +23 -24
package/dist/index.d.mts CHANGED
@@ -2491,6 +2491,16 @@ interface RuleOptions {
2491
2491
  * @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/no-identical-tests.md
2492
2492
  */
2493
2493
  'eslint-plugin/no-identical-tests'?: Linter.RuleEntry<[]>;
2494
+ /**
2495
+ * require explicit policy choices in rule options schemas
2496
+ * @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/no-incomplete-meta-schema.md
2497
+ */
2498
+ 'eslint-plugin/no-incomplete-meta-schema'?: Linter.RuleEntry<EslintPluginNoIncompleteMetaSchema>;
2499
+ /**
2500
+ * disallow rule options schema constructs that ESLint ignores
2501
+ * @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/no-incorrect-meta-schema.md
2502
+ */
2503
+ 'eslint-plugin/no-incorrect-meta-schema'?: Linter.RuleEntry<EslintPluginNoIncorrectMetaSchema>;
2494
2504
  /**
2495
2505
  * require suggestions to have different `messageId` than their parent report
2496
2506
  * @see https://github.com/eslint-community/eslint-plugin-eslint-plugin/tree/HEAD/docs/rules/no-matching-violation-suggest-message-ids.md
@@ -5214,6 +5224,11 @@ interface RuleOptions {
5214
5224
  * @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-enforce-settings.test.ts
5215
5225
  */
5216
5226
  'pnpm/yaml-enforce-settings'?: Linter.RuleEntry<PnpmYamlEnforceSettings>;
5227
+ /**
5228
+ * Disallow the anonymous `catalog:` in `pnpm-workspace.yaml` in favor of named catalogs
5229
+ * @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-no-anonymous-catalog.test.ts
5230
+ */
5231
+ 'pnpm/yaml-no-anonymous-catalog'?: Linter.RuleEntry<[]>;
5217
5232
  /**
5218
5233
  * Disallow duplicate catalog items in `pnpm-workspace.yaml`
5219
5234
  * @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-no-duplicate-catalog-item.test.ts
@@ -6421,1715 +6436,1740 @@ interface RuleOptions {
6421
6436
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
6422
6437
  /**
6423
6438
  * Prefer better DOM traversal APIs.
6424
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/better-dom-traversing.md
6439
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/better-dom-traversing.md
6425
6440
  */
6426
6441
  'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
6427
6442
  /**
6428
6443
  * Removed. Prefer `eslint-plugin-regexp`
6429
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#better-regex
6444
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#better-regex
6430
6445
  * @deprecated
6431
6446
  */
6432
6447
  'unicorn/better-regex'?: Linter.RuleEntry<[]>;
6433
6448
  /**
6434
6449
  * Enforce a specific parameter name in catch clauses.
6435
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/catch-error-name.md
6450
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/catch-error-name.md
6436
6451
  */
6437
6452
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
6438
6453
  /**
6439
6454
  * Enforce consistent class references in static methods.
6440
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/class-reference-in-static-methods.md
6455
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/class-reference-in-static-methods.md
6441
6456
  */
6442
6457
  'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
6443
6458
  /**
6444
6459
  * Enforce better comment content.
6445
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/comment-content.md
6460
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/comment-content.md
6446
6461
  */
6447
6462
  'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
6463
+ /**
6464
+ * Enforce a consistent return style for multiline arrow function bodies.
6465
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-arrow-return-style.md
6466
+ */
6467
+ 'unicorn/consistent-arrow-return-style'?: Linter.RuleEntry<[]>;
6448
6468
  /**
6449
6469
  * Enforce consistent assertion style with `node:assert`.
6450
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-assert.md
6470
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-assert.md
6451
6471
  */
6452
6472
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
6453
6473
  /**
6454
6474
  * Enforce consistent naming for boolean names.
6455
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-boolean-name.md
6475
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-boolean-name.md
6456
6476
  */
6457
6477
  'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
6458
6478
  /**
6459
6479
  * Enforce consistent class member order.
6460
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-class-member-order.md
6480
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-class-member-order.md
6461
6481
  */
6462
6482
  'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
6463
6483
  /**
6464
6484
  * Enforce consistent spelling of compound words in identifiers.
6465
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-compound-words.md
6485
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-compound-words.md
6466
6486
  */
6467
6487
  'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
6468
6488
  /**
6469
6489
  * Enforce consistent conditional object spread style.
6470
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-conditional-object-spread.md
6490
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-conditional-object-spread.md
6471
6491
  */
6472
6492
  'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
6473
6493
  /**
6474
6494
  * Prefer passing `Date` directly to the constructor when cloning.
6475
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-date-clone.md
6495
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-date-clone.md
6476
6496
  */
6477
6497
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
6478
6498
  /**
6479
6499
  * Use destructured variables over properties.
6480
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-destructuring.md
6500
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-destructuring.md
6481
6501
  */
6482
6502
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
6483
6503
  /**
6484
6504
  * Prefer consistent types when spreading a ternary in an array literal.
6485
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-empty-array-spread.md
6505
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-empty-array-spread.md
6486
6506
  */
6487
6507
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
6488
6508
  /**
6489
6509
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
6490
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-existence-index-check.md
6510
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-existence-index-check.md
6491
6511
  */
6492
6512
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
6493
6513
  /**
6494
6514
  * Enforce consistent decorator position on exported classes.
6495
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-export-decorator-position.md
6515
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-export-decorator-position.md
6496
6516
  */
6497
6517
  'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
6498
6518
  /**
6499
6519
  * Move function definitions to the highest possible scope.
6500
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-function-scoping.md
6520
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-function-scoping.md
6501
6521
  */
6502
6522
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
6503
6523
  /**
6504
6524
  * Enforce function syntax by role.
6505
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-function-style.md
6525
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-function-style.md
6506
6526
  */
6507
6527
  'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
6508
6528
  /**
6509
6529
  * Enforce consistent JSON file reads before `JSON.parse()`.
6510
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-json-file-read.md
6530
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-json-file-read.md
6511
6531
  */
6512
6532
  'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
6513
6533
  /**
6514
6534
  * Enforce consistent optional chaining for same-base member access.
6515
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-optional-chaining.md
6535
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-optional-chaining.md
6516
6536
  */
6517
6537
  'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
6518
6538
  /**
6519
6539
  * Enforce consistent style for escaping `${` in template literals.
6520
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-template-literal-escape.md
6540
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-template-literal-escape.md
6521
6541
  */
6522
6542
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
6523
6543
  /**
6524
6544
  * Enforce consistent labels on tuple type elements.
6525
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/consistent-tuple-labels.md
6545
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-tuple-labels.md
6526
6546
  */
6527
6547
  'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
6528
6548
  /**
6529
6549
  * Enforce correct `Error` subclassing.
6530
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/custom-error-definition.md
6550
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/custom-error-definition.md
6531
6551
  */
6532
6552
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
6533
6553
  /**
6534
6554
  * Enforce consistent default export declarations.
6535
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/default-export-style.md
6555
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/default-export-style.md
6536
6556
  */
6537
6557
  'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
6538
6558
  /**
6539
6559
  * Enforce consistent style for DOM element dataset access.
6540
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/dom-node-dataset.md
6560
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/dom-node-dataset.md
6541
6561
  */
6542
6562
  'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
6543
6563
  /**
6544
6564
  * Enforce no spaces between braces.
6545
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/empty-brace-spaces.md
6565
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/empty-brace-spaces.md
6546
6566
  */
6547
6567
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
6548
6568
  /**
6549
6569
  * Enforce passing a `message` value when creating a built-in error.
6550
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/error-message.md
6570
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/error-message.md
6551
6571
  */
6552
6572
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
6553
6573
  /**
6554
6574
  * Require escape sequences to use uppercase or lowercase values.
6555
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/escape-case.md
6575
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/escape-case.md
6556
6576
  */
6557
6577
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
6558
6578
  /**
6559
6579
  * Add expiration conditions to TODO comments.
6560
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/expiring-todo-comments.md
6580
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/expiring-todo-comments.md
6561
6581
  */
6562
6582
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
6563
6583
  /**
6564
6584
  * Enforce explicitly comparing the `length` or `size` property of a value.
6565
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/explicit-length-check.md
6585
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/explicit-length-check.md
6566
6586
  */
6567
6587
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
6568
6588
  /**
6569
6589
  * Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
6570
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/explicit-timer-delay.md
6590
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/explicit-timer-delay.md
6571
6591
  */
6572
6592
  'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
6573
6593
  /**
6574
6594
  * Enforce a case style for filenames and directory names.
6575
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/filename-case.md
6595
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/filename-case.md
6576
6596
  */
6577
6597
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
6578
6598
  /**
6579
6599
  * Require identifiers to match a specified regular expression.
6580
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/id-match.md
6600
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/id-match.md
6581
6601
  */
6582
6602
  'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
6583
6603
  /**
6584
6604
  * Enforce specific import styles per module.
6585
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/import-style.md
6605
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/import-style.md
6586
6606
  */
6587
6607
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
6588
6608
  /**
6589
6609
  * Prevent usage of variables from outside the scope of isolated functions.
6590
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/isolated-functions.md
6610
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/isolated-functions.md
6591
6611
  */
6592
6612
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
6613
+ /**
6614
+ * Enforce a consistent style for optional loop sources.
6615
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/iteration-fallback-style.md
6616
+ */
6617
+ 'unicorn/iteration-fallback-style'?: Linter.RuleEntry<UnicornIterationFallbackStyle>;
6593
6618
  /**
6594
6619
  * Require or disallow logical assignment operator shorthand
6595
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/logical-assignment-operators.md
6620
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/logical-assignment-operators.md
6596
6621
  */
6597
6622
  'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
6598
6623
  /**
6599
6624
  * Limit the depth of nested calls.
6600
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/max-nested-calls.md
6625
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/max-nested-calls.md
6601
6626
  */
6602
6627
  'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
6603
6628
  /**
6604
6629
  * Enforce replacements for variable, property, and filenames.
6605
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/name-replacements.md
6630
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/name-replacements.md
6606
6631
  */
6607
6632
  'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
6608
6633
  /**
6609
6634
  * Enforce correct use of `new` for builtin constructors.
6610
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/new-for-builtins.md
6635
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/new-for-builtins.md
6611
6636
  */
6612
6637
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
6613
6638
  /**
6614
6639
  * Enforce specifying rules to disable in `eslint-disable` comments.
6615
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-abusive-eslint-disable.md
6640
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-abusive-eslint-disable.md
6616
6641
  */
6617
6642
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
6618
6643
  /**
6619
6644
  * Disallow recursive access to `this` within getters and setters.
6620
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-accessor-recursion.md
6645
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-accessor-recursion.md
6621
6646
  */
6622
6647
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
6623
6648
  /**
6624
6649
  * Disallow bitwise operators where a logical operator was likely intended.
6625
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-accidental-bitwise-operator.md
6650
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-accidental-bitwise-operator.md
6626
6651
  */
6627
6652
  'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
6628
6653
  /**
6629
6654
  * Disallow anonymous functions and classes as the default export.
6630
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-anonymous-default-export.md
6655
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-anonymous-default-export.md
6631
6656
  */
6632
6657
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
6633
6658
  /**
6634
6659
  * Prevent passing a function reference directly to iterator methods.
6635
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-callback-reference.md
6660
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-callback-reference.md
6636
6661
  */
6637
6662
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
6638
6663
  /**
6639
6664
  * Disallow array accumulation with `Array#concat()` in loops.
6640
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-concat-in-loop.md
6665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-concat-in-loop.md
6641
6666
  */
6642
6667
  'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
6643
6668
  /**
6644
6669
  * Disallow using reference values as `Array#fill()` values.
6645
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-fill-with-reference-type.md
6670
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-fill-with-reference-type.md
6646
6671
  */
6647
6672
  'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
6648
6673
  /**
6649
6674
  * Disallow `.fill()` after `Array.from({length: …})`.
6650
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-from-fill.md
6675
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-from-fill.md
6651
6676
  */
6652
6677
  'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
6653
6678
  /**
6654
6679
  * Disallow front-of-array mutation.
6655
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-front-mutation.md
6680
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-front-mutation.md
6656
6681
  */
6657
6682
  'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
6658
6683
  /**
6659
6684
  * Disallow using the `this` argument in array methods.
6660
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-method-this-argument.md
6685
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-method-this-argument.md
6661
6686
  */
6662
6687
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
6663
6688
  /**
6664
6689
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
6665
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
6690
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
6666
6691
  * @deprecated
6667
6692
  */
6668
6693
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
6669
6694
  /**
6670
6695
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
6671
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-reduce.md
6696
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-reduce.md
6672
6697
  */
6673
6698
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
6674
6699
  /**
6675
6700
  * Prefer `Array#toReversed()` over `Array#reverse()`.
6676
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-reverse.md
6701
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-reverse.md
6677
6702
  */
6678
6703
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
6679
6704
  /**
6680
6705
  * Prefer `Array#toSorted()` over `Array#sort()`.
6681
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-sort.md
6706
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-sort.md
6682
6707
  */
6683
6708
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
6684
6709
  /**
6685
6710
  * Disallow sorting arrays to get the minimum or maximum value.
6686
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-sort-for-min-max.md
6711
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-sort-for-min-max.md
6687
6712
  */
6688
6713
  'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
6689
6714
  /**
6690
6715
  * Prefer `Array#toSpliced()` over `Array#splice()`.
6691
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-array-splice.md
6716
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-splice.md
6692
6717
  */
6693
6718
  'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
6694
6719
  /**
6695
6720
  * Disallow asterisk prefixes in documentation comments.
6696
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
6721
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
6697
6722
  */
6698
6723
  'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
6699
6724
  /**
6700
6725
  * Disallow async functions as `Promise#finally()` callbacks.
6701
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-async-promise-finally.md
6726
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-async-promise-finally.md
6702
6727
  */
6703
6728
  'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
6704
6729
  /**
6705
6730
  * Disallow member access from await expression.
6706
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-await-expression-member.md
6731
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-await-expression-member.md
6707
6732
  */
6708
6733
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
6709
6734
  /**
6710
6735
  * Disallow using `await` in `Promise` method parameters.
6711
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-await-in-promise-methods.md
6736
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-await-in-promise-methods.md
6712
6737
  */
6713
6738
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
6739
+ /**
6740
+ * Disallow barrel files.
6741
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-barrel-files.md
6742
+ */
6743
+ 'unicorn/no-barrel-files'?: Linter.RuleEntry<[]>;
6714
6744
  /**
6715
6745
  * Disallow unnecessary `Blob` to `File` conversion.
6716
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-blob-to-file.md
6746
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-blob-to-file.md
6717
6747
  */
6718
6748
  'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
6719
6749
  /**
6720
6750
  * Disallow boolean-returning sort comparators.
6721
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-boolean-sort-comparator.md
6751
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-boolean-sort-comparator.md
6722
6752
  */
6723
6753
  'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
6724
6754
  /**
6725
6755
  * Disallow `break` and `continue` in nested loops and switches inside loops.
6726
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-break-in-nested-loop.md
6756
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-break-in-nested-loop.md
6727
6757
  */
6728
6758
  'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<[]>;
6729
6759
  /**
6730
6760
  * Prefer drawing canvases directly instead of converting them to images.
6731
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-canvas-to-image.md
6761
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-canvas-to-image.md
6732
6762
  */
6733
6763
  'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
6734
6764
  /**
6735
6765
  * Disallow chained comparisons such as `a < b < c`.
6736
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-chained-comparison.md
6766
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-chained-comparison.md
6737
6767
  */
6738
6768
  'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
6739
6769
  /**
6740
6770
  * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
6741
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-collection-bracket-access.md
6771
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-collection-bracket-access.md
6742
6772
  */
6743
6773
  'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
6744
6774
  /**
6745
6775
  * Disallow dynamic object property existence checks.
6746
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-computed-property-existence-check.md
6776
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-computed-property-existence-check.md
6747
6777
  */
6748
6778
  'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
6749
6779
  /**
6750
6780
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
6751
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-confusing-array-splice.md
6781
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-confusing-array-splice.md
6752
6782
  */
6753
6783
  'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
6754
6784
  /**
6755
6785
  * Disallow confusing uses of `Array#with()`.
6756
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-confusing-array-with.md
6786
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-confusing-array-with.md
6757
6787
  */
6758
6788
  'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
6759
6789
  /**
6760
6790
  * Do not use leading/trailing space between `console.log` parameters.
6761
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-console-spaces.md
6791
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-console-spaces.md
6762
6792
  */
6763
6793
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
6764
6794
  /**
6765
6795
  * Disallow arithmetic and bitwise operations that always evaluate to `0`.
6766
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-constant-zero-expression.md
6796
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-constant-zero-expression.md
6767
6797
  */
6768
6798
  'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
6769
6799
  /**
6770
6800
  * Disallow declarations before conditional early exits when they are only used after the exit.
6771
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-declarations-before-early-exit.md
6801
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-declarations-before-early-exit.md
6772
6802
  */
6773
6803
  'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
6774
6804
  /**
6775
6805
  * Do not use `document.cookie` directly.
6776
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-document-cookie.md
6806
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-document-cookie.md
6777
6807
  */
6778
6808
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
6779
6809
  /**
6780
6810
  * Disallow two comparisons of the same operands that can be combined into one.
6781
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-double-comparison.md
6811
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-double-comparison.md
6782
6812
  */
6783
6813
  'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
6784
6814
  /**
6785
6815
  * Disallow duplicate adjacent branches in if chains.
6786
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-duplicate-if-branches.md
6816
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-if-branches.md
6787
6817
  */
6788
6818
  'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
6789
6819
  /**
6790
6820
  * Disallow adjacent duplicate operands in logical expressions.
6791
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-duplicate-logical-operands.md
6821
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-logical-operands.md
6792
6822
  */
6793
6823
  'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
6794
6824
  /**
6795
6825
  * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
6796
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-duplicate-loops.md
6826
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-loops.md
6797
6827
  */
6798
6828
  'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
6799
6829
  /**
6800
6830
  * Disallow duplicate values in `Set` constructor array literals.
6801
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-duplicate-set-values.md
6831
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-set-values.md
6802
6832
  */
6803
6833
  'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
6804
6834
  /**
6805
6835
  * Disallow empty files.
6806
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-empty-file.md
6836
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-empty-file.md
6807
6837
  */
6808
6838
  'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
6809
6839
  /**
6810
6840
  * Disallow assigning to built-in error properties.
6811
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-error-property-assignment.md
6841
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-error-property-assignment.md
6812
6842
  */
6813
6843
  'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
6814
6844
  /**
6815
6845
  * Disallow exports in scripts.
6816
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-exports-in-scripts.md
6846
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-exports-in-scripts.md
6817
6847
  */
6818
6848
  'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
6819
6849
  /**
6820
6850
  * Prefer `for…of` over the `forEach` method.
6821
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-for-each.md
6851
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-for-each.md
6822
6852
  */
6823
6853
  'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
6824
6854
  /**
6825
6855
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
6826
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-for-loop.md
6856
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-for-loop.md
6827
6857
  */
6828
6858
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
6829
6859
  /**
6830
6860
  * Disallow assigning properties on the global object.
6831
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-global-object-property-assignment.md
6861
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-global-object-property-assignment.md
6832
6862
  */
6833
6863
  'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
6834
6864
  /**
6835
6865
  * Replaced by `unicorn/prefer-unicode-code-point-escapes` which covers more cases.
6836
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
6866
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
6837
6867
  * @deprecated
6838
6868
  */
6839
6869
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
6840
6870
  /**
6841
6871
  * Disallow immediate mutation after variable assignment.
6842
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-immediate-mutation.md
6872
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-immediate-mutation.md
6843
6873
  */
6844
6874
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
6845
6875
  /**
6846
6876
  * Disallow impossible comparisons against `.length` or `.size`.
6847
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-impossible-length-comparison.md
6877
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-impossible-length-comparison.md
6848
6878
  */
6849
6879
  'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
6850
6880
  /**
6851
6881
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
6852
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-incorrect-query-selector.md
6882
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-incorrect-query-selector.md
6853
6883
  */
6854
6884
  'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
6855
6885
  /**
6856
6886
  * Disallow incorrect template literal interpolation syntax.
6857
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-incorrect-template-string-interpolation.md
6887
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-incorrect-template-string-interpolation.md
6858
6888
  */
6859
6889
  'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
6860
6890
  /**
6861
6891
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
6862
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
6892
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
6863
6893
  * @deprecated
6864
6894
  */
6865
6895
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
6866
6896
  /**
6867
6897
  * Disallow `instanceof` with built-in objects
6868
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-instanceof-builtins.md
6898
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-instanceof-builtins.md
6869
6899
  */
6870
6900
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
6871
6901
  /**
6872
6902
  * Disallow calling functions and constructors with an invalid number of arguments.
6873
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-argument-count.md
6903
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-argument-count.md
6874
6904
  */
6875
6905
  'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
6876
6906
  /**
6877
6907
  * Disallow comparing a single character from a string to a multi-character string.
6878
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-character-comparison.md
6908
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-character-comparison.md
6879
6909
  */
6880
6910
  'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
6881
6911
  /**
6882
6912
  * Disallow invalid options in `fetch()` and `new Request()`.
6883
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-fetch-options.md
6913
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-fetch-options.md
6884
6914
  */
6885
6915
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
6886
6916
  /**
6887
6917
  * Disallow invalid `accept` values on file inputs.
6888
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-file-input-accept.md
6918
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-file-input-accept.md
6889
6919
  */
6890
6920
  'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
6891
6921
  /**
6892
6922
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
6893
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-remove-event-listener.md
6923
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-remove-event-listener.md
6894
6924
  */
6895
6925
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
6896
6926
  /**
6897
6927
  * Disallow invalid implementations of well-known symbol methods.
6898
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
6928
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
6899
6929
  */
6900
6930
  'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
6901
6931
  /**
6902
6932
  * Disallow identifiers starting with `new` or `class`.
6903
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-keyword-prefix.md
6933
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-keyword-prefix.md
6904
6934
  */
6905
6935
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
6906
6936
  /**
6907
6937
  * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
6908
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-late-current-target-access.md
6938
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-late-current-target-access.md
6909
6939
  */
6910
6940
  'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
6911
6941
  /**
6912
6942
  * Disallow event-control method calls after the synchronous event dispatch has finished.
6913
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-late-event-control.md
6943
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-late-event-control.md
6914
6944
  */
6915
6945
  'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
6916
6946
  /**
6917
6947
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
6918
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
6948
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
6919
6949
  * @deprecated
6920
6950
  */
6921
6951
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
6922
6952
  /**
6923
6953
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
6924
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-lonely-if.md
6954
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-lonely-if.md
6925
6955
  */
6926
6956
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
6927
6957
  /**
6928
6958
  * Disallow mutating a loop iterable during iteration.
6929
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-loop-iterable-mutation.md
6959
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-loop-iterable-mutation.md
6930
6960
  */
6931
6961
  'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
6932
6962
  /**
6933
6963
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
6934
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-magic-array-flat-depth.md
6964
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-magic-array-flat-depth.md
6935
6965
  */
6936
6966
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
6937
6967
  /**
6938
6968
  * Disallow manually wrapped comments.
6939
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-manually-wrapped-comments.md
6969
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-manually-wrapped-comments.md
6940
6970
  */
6941
6971
  'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
6942
6972
  /**
6943
6973
  * Disallow checking a Map key before accessing a different key.
6944
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-mismatched-map-key.md
6974
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-mismatched-map-key.md
6945
6975
  */
6946
6976
  'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
6947
6977
  /**
6948
6978
  * Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
6949
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-misrefactored-assignment.md
6979
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-misrefactored-assignment.md
6950
6980
  */
6951
6981
  'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
6952
6982
  /**
6953
6983
  * Disallow references to missing local resources.
6954
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-missing-local-resource.md
6984
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-missing-local-resource.md
6955
6985
  */
6956
6986
  'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>;
6957
6987
  /**
6958
6988
  * Disallow calling Promise executor resolver functions more than once on the same execution path.
6959
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-multiple-promise-resolver-calls.md
6989
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-multiple-promise-resolver-calls.md
6960
6990
  */
6961
6991
  'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>;
6962
6992
  /**
6963
6993
  * Disallow named usage of default import and export.
6964
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-named-default.md
6994
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-named-default.md
6965
6995
  */
6966
6996
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
6967
6997
  /**
6968
6998
  * Disallow negated array predicate calls.
6969
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-negated-array-predicate.md
6999
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negated-array-predicate.md
6970
7000
  */
6971
7001
  'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
6972
7002
  /**
6973
7003
  * Disallow negated comparisons.
6974
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-negated-comparison.md
7004
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negated-comparison.md
6975
7005
  */
6976
7006
  'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
6977
7007
  /**
6978
7008
  * Disallow negated conditions.
6979
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-negated-condition.md
7009
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negated-condition.md
6980
7010
  */
6981
7011
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
6982
7012
  /**
6983
7013
  * Disallow negated expression in equality check.
6984
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-negation-in-equality-check.md
7014
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negation-in-equality-check.md
6985
7015
  */
6986
7016
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
6987
7017
  /**
6988
7018
  * Disallow nested ternary expressions.
6989
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-nested-ternary.md
7019
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-nested-ternary.md
6990
7020
  */
6991
7021
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
6992
7022
  /**
6993
7023
  * Disallow `new Array()`.
6994
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-new-array.md
7024
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-new-array.md
6995
7025
  */
6996
7026
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
6997
7027
  /**
6998
7028
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
6999
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-new-buffer.md
7029
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-new-buffer.md
7000
7030
  */
7001
7031
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
7002
7032
  /**
7003
7033
  * Disallow non-function values with function-style verb prefixes.
7004
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-non-function-verb-prefix.md
7034
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-non-function-verb-prefix.md
7005
7035
  */
7006
7036
  'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
7007
7037
  /**
7008
7038
  * Disallow non-standard properties on built-in objects.
7009
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-nonstandard-builtin-properties.md
7039
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-nonstandard-builtin-properties.md
7010
7040
  */
7011
7041
  'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
7012
7042
  /**
7013
7043
  * Disallow the use of the `null` literal.
7014
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-null.md
7044
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-null.md
7015
7045
  */
7016
7046
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
7017
7047
  /**
7018
7048
  * Disallow the use of objects as default parameters.
7019
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-object-as-default-parameter.md
7049
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-object-as-default-parameter.md
7020
7050
  */
7021
7051
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
7022
7052
  /**
7023
7053
  * Disallow `Object` methods with `Map` or `Set`.
7024
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-object-methods-with-collections.md
7054
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-object-methods-with-collections.md
7025
7055
  */
7026
7056
  'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
7027
7057
  /**
7028
7058
  * Disallow optional chaining on undeclared variables.
7029
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
7059
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
7030
7060
  */
7031
7061
  'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
7032
7062
  /**
7033
7063
  * Disallow `process.exit()`.
7034
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-process-exit.md
7064
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-process-exit.md
7035
7065
  */
7036
7066
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
7037
7067
  /**
7038
7068
  * Disallow comparisons made redundant by an equality check in the same logical AND.
7039
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-redundant-comparison.md
7069
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-redundant-comparison.md
7040
7070
  */
7041
7071
  'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
7042
7072
  /**
7043
7073
  * Disallow using the return value of `Array#push()` and `Array#unshift()`.
7044
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-return-array-push.md
7074
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-return-array-push.md
7045
7075
  */
7046
7076
  'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
7047
7077
  /**
7048
7078
  * Disallow selector syntax in DOM names.
7049
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-selector-as-dom-name.md
7079
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-selector-as-dom-name.md
7050
7080
  */
7051
7081
  'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
7052
7082
  /**
7053
7083
  * Disallow shorthand properties that override related longhand properties.
7054
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-shorthand-property-overrides.md
7084
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-shorthand-property-overrides.md
7055
7085
  */
7056
7086
  'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>;
7057
7087
  /**
7058
7088
  * Disallow passing single-element arrays to `Promise` methods.
7059
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-single-promise-in-promise-methods.md
7089
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-single-promise-in-promise-methods.md
7060
7090
  */
7061
7091
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
7062
7092
  /**
7063
7093
  * Disallow classes that only have static members.
7064
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-static-only-class.md
7094
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-static-only-class.md
7065
7095
  */
7066
7096
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
7067
7097
  /**
7068
7098
  * Prefer comparing values directly over subtracting and comparing to `0`.
7069
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-subtraction-comparison.md
7099
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-subtraction-comparison.md
7070
7100
  */
7071
7101
  'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
7072
7102
  /**
7073
7103
  * Disallow `then` property.
7074
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-thenable.md
7104
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-thenable.md
7075
7105
  */
7076
7106
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
7077
7107
  /**
7078
7108
  * Disallow assigning `this` to a variable.
7079
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-this-assignment.md
7109
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-this-assignment.md
7080
7110
  */
7081
7111
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
7082
7112
  /**
7083
7113
  * Disallow `this` outside of classes.
7084
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-this-outside-of-class.md
7114
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-this-outside-of-class.md
7085
7115
  */
7086
7116
  'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
7087
7117
  /**
7088
7118
  * Disallow assigning to top-level variables from inside functions.
7089
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-top-level-assignment-in-function.md
7119
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-top-level-assignment-in-function.md
7090
7120
  */
7091
7121
  'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
7092
7122
  /**
7093
7123
  * Disallow top-level side effects in exported modules.
7094
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-top-level-side-effects.md
7124
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-top-level-side-effects.md
7095
7125
  */
7096
7126
  'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>;
7097
7127
  /**
7098
7128
  * Disallow `all` as a transition property.
7099
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-transition-all.md
7129
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-transition-all.md
7100
7130
  */
7101
7131
  'unicorn/no-transition-all'?: Linter.RuleEntry<[]>;
7102
7132
  /**
7103
7133
  * Disallow comparing `undefined` using `typeof`.
7104
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-typeof-undefined.md
7134
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-typeof-undefined.md
7105
7135
  */
7106
7136
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
7107
7137
  /**
7108
7138
  * Disallow referencing methods without calling them.
7109
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-uncalled-method.md
7139
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-uncalled-method.md
7110
7140
  */
7111
7141
  'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
7112
7142
  /**
7113
7143
  * Require class members to be declared.
7114
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-undeclared-class-members.md
7144
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-undeclared-class-members.md
7115
7145
  */
7116
7146
  'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
7117
7147
  /**
7118
7148
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
7119
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-array-flat-depth.md
7149
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-array-flat-depth.md
7120
7150
  */
7121
7151
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
7122
7152
  /**
7123
7153
  * Disallow `Array#flatMap()` callbacks that only wrap a single item.
7124
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-array-flat-map.md
7154
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-array-flat-map.md
7125
7155
  */
7126
7156
  'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
7127
7157
  /**
7128
7158
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
7129
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-array-splice-count.md
7159
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-array-splice-count.md
7130
7160
  */
7131
7161
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
7132
7162
  /**
7133
7163
  * Disallow awaiting non-promise values.
7134
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-await.md
7164
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-await.md
7135
7165
  */
7136
7166
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
7137
7167
  /**
7138
7168
  * Disallow unnecessary comparisons against boolean literals.
7139
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-boolean-comparison.md
7169
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-boolean-comparison.md
7140
7170
  */
7141
7171
  'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
7142
7172
  /**
7143
7173
  * Disallow unnecessary options in `fetch()` and `new Request()`.
7144
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-fetch-options.md
7174
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-fetch-options.md
7145
7175
  */
7146
7176
  'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
7147
7177
  /**
7148
7178
  * Disallow unnecessary `globalThis` references.
7149
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-global-this.md
7179
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-global-this.md
7150
7180
  */
7151
7181
  'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
7152
7182
  /**
7153
7183
  * Disallow unnecessary nested ternary expressions.
7154
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-nested-ternary.md
7184
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-nested-ternary.md
7155
7185
  */
7156
7186
  'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
7157
7187
  /**
7158
7188
  * Enforce the use of built-in methods instead of unnecessary polyfills.
7159
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-polyfills.md
7189
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-polyfills.md
7160
7190
  */
7161
7191
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
7162
7192
  /**
7163
7193
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
7164
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-slice-end.md
7194
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-slice-end.md
7165
7195
  */
7166
7196
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
7167
7197
  /**
7168
7198
  * Disallow `Array#splice()` when simpler alternatives exist.
7169
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-splice.md
7199
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-splice.md
7170
7200
  */
7171
7201
  'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
7172
7202
  /**
7173
7203
  * Disallow `String#trim()` before `String#startsWith()` or `String#endsWith()`.
7174
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unnecessary-string-trim.md
7204
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-string-trim.md
7175
7205
  */
7176
7206
  'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>;
7177
7207
  /**
7178
7208
  * Disallow unreadable array destructuring.
7179
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-array-destructuring.md
7209
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-array-destructuring.md
7180
7210
  */
7181
7211
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
7182
7212
  /**
7183
7213
  * Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
7184
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-for-of-expression.md
7214
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-for-of-expression.md
7185
7215
  */
7186
7216
  'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
7187
7217
  /**
7188
7218
  * Disallow unreadable IIFEs.
7189
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-iife.md
7219
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-iife.md
7190
7220
  */
7191
7221
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
7192
7222
  /**
7193
7223
  * Disallow unreadable `new` expressions.
7194
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-new-expression.md
7224
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-new-expression.md
7195
7225
  */
7196
7226
  'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
7197
7227
  /**
7198
7228
  * Disallow unreadable object destructuring.
7199
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unreadable-object-destructuring.md
7229
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-object-destructuring.md
7200
7230
  */
7201
7231
  'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
7202
7232
  /**
7203
7233
  * Prevent unsafe use of ArrayBuffer view `.buffer`.
7204
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-buffer-conversion.md
7234
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-buffer-conversion.md
7205
7235
  */
7206
7236
  'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
7207
7237
  /**
7208
7238
  * Disallow unsafe DOM HTML APIs.
7209
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-dom-html.md
7239
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-dom-html.md
7210
7240
  */
7211
7241
  'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
7212
7242
  /**
7213
7243
  * Disallow reading `.value` from `Promise.allSettled()` results without a fulfilled status guard.
7214
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
7244
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
7215
7245
  */
7216
7246
  'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
7217
7247
  /**
7218
7248
  * Disallow unsafe values as property keys.
7219
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-property-key.md
7249
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-property-key.md
7220
7250
  */
7221
7251
  'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
7252
+ /**
7253
+ * Disallow interpolation into SQL strings passed to Node’s `node:sqlite` APIs.
7254
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
7255
+ */
7256
+ 'unicorn/no-unsafe-sqlite-interpolation'?: Linter.RuleEntry<[]>;
7222
7257
  /**
7223
7258
  * Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
7224
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unsafe-string-replacement.md
7259
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-string-replacement.md
7225
7260
  */
7226
7261
  'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
7227
7262
  /**
7228
7263
  * Disallow ignoring the return value of selected array methods.
7229
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unused-array-method-return.md
7264
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unused-array-method-return.md
7230
7265
  */
7231
7266
  'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
7232
7267
  /**
7233
7268
  * Disallow unused object properties.
7234
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-unused-properties.md
7269
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unused-properties.md
7235
7270
  */
7236
7271
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
7237
7272
  /**
7238
7273
  * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
7239
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-boolean-cast.md
7274
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-boolean-cast.md
7240
7275
  */
7241
7276
  'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
7242
7277
  /**
7243
7278
  * Disallow useless type coercions of values that are already of the target type.
7244
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-coercion.md
7279
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-coercion.md
7245
7280
  */
7246
7281
  'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
7247
7282
  /**
7248
7283
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
7249
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-collection-argument.md
7284
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-collection-argument.md
7250
7285
  */
7251
7286
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
7252
7287
  /**
7253
7288
  * Disallow useless compound assignments such as `x += 0`.
7254
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-compound-assignment.md
7289
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-compound-assignment.md
7255
7290
  */
7256
7291
  'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
7257
7292
  /**
7258
7293
  * Disallow useless concatenation of literals.
7259
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-concat.md
7294
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-concat.md
7260
7295
  */
7261
7296
  'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
7262
7297
  /**
7263
7298
  * Disallow useless `continue` statements.
7264
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-continue.md
7299
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-continue.md
7265
7300
  */
7266
7301
  'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
7267
7302
  /**
7268
7303
  * Disallow unnecessary existence checks before deletion.
7269
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-delete-check.md
7304
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-delete-check.md
7270
7305
  */
7271
7306
  'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
7272
7307
  /**
7273
7308
  * Disallow `else` after a statement that exits.
7274
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-else.md
7309
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-else.md
7275
7310
  */
7276
7311
  'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
7277
7312
  /**
7278
7313
  * Disallow unnecessary `Error.captureStackTrace(…)`.
7279
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-error-capture-stack-trace.md
7314
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-error-capture-stack-trace.md
7280
7315
  */
7281
7316
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
7282
7317
  /**
7283
7318
  * Disallow useless fallback when spreading in object literals.
7284
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-fallback-in-spread.md
7319
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-fallback-in-spread.md
7285
7320
  */
7286
7321
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
7287
7322
  /**
7288
7323
  * Disallow unnecessary `.toArray()` on iterators.
7289
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-iterator-to-array.md
7324
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-iterator-to-array.md
7290
7325
  */
7291
7326
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
7292
7327
  /**
7293
7328
  * Disallow useless array length check.
7294
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-length-check.md
7329
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-length-check.md
7295
7330
  */
7296
7331
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
7297
7332
  /**
7298
7333
  * Disallow unnecessary operands in logical expressions involving boolean literals.
7299
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-logical-operand.md
7334
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-logical-operand.md
7300
7335
  */
7301
7336
  'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
7302
7337
  /**
7303
7338
  * Disallow useless overrides of class methods.
7304
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-override.md
7339
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-override.md
7305
7340
  */
7306
7341
  'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
7307
7342
  /**
7308
7343
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
7309
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-promise-resolve-reject.md
7344
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-promise-resolve-reject.md
7310
7345
  */
7311
7346
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
7312
7347
  /**
7313
7348
  * Disallow redundant re-exports.
7314
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-re-export.md
7349
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-re-export.md
7315
7350
  */
7316
7351
  'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>;
7317
7352
  /**
7318
7353
  * Disallow simple recursive function calls that can be replaced with a loop.
7319
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-recursion.md
7354
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-recursion.md
7320
7355
  */
7321
7356
  'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
7322
7357
  /**
7323
7358
  * Disallow unnecessary spread.
7324
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-spread.md
7359
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-spread.md
7325
7360
  */
7326
7361
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
7327
7362
  /**
7328
7363
  * Disallow useless case in switch statements.
7329
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-switch-case.md
7364
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-switch-case.md
7330
7365
  */
7331
7366
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
7332
7367
  /**
7333
7368
  * Disallow useless template literal expressions.
7334
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-template-literals.md
7369
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-template-literals.md
7335
7370
  */
7336
7371
  'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
7337
7372
  /**
7338
7373
  * Disallow useless `undefined`.
7339
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-useless-undefined.md
7374
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-undefined.md
7340
7375
  */
7341
7376
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
7342
7377
  /**
7343
7378
  * Disallow the bitwise XOR operator where exponentiation was likely intended.
7344
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-xor-as-exponentiation.md
7379
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-xor-as-exponentiation.md
7345
7380
  */
7346
7381
  'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
7347
7382
  /**
7348
7383
  * Disallow number literals with zero fractions or dangling dots.
7349
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/no-zero-fractions.md
7384
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-zero-fractions.md
7350
7385
  */
7351
7386
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
7352
7387
  /**
7353
7388
  * Enforce proper case for numeric literals.
7354
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/number-literal-case.md
7389
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/number-literal-case.md
7355
7390
  */
7356
7391
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
7357
7392
  /**
7358
7393
  * Enforce the style of numeric separators by correctly grouping digits.
7359
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/numeric-separators-style.md
7394
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/numeric-separators-style.md
7360
7395
  */
7361
7396
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
7362
7397
  /**
7363
7398
  * Require assignment operator shorthand where possible.
7364
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/operator-assignment.md
7399
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/operator-assignment.md
7365
7400
  */
7366
7401
  'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
7367
7402
  /**
7368
7403
  * Prefer `AbortSignal.any()` over manually forwarding abort events between signals.
7369
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-abort-signal-any.md
7404
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-abort-signal-any.md
7370
7405
  */
7371
7406
  'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
7372
7407
  /**
7373
7408
  * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
7374
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-abort-signal-timeout.md
7409
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-abort-signal-timeout.md
7375
7410
  */
7376
7411
  'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
7377
7412
  /**
7378
7413
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
7379
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-add-event-listener.md
7414
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-add-event-listener.md
7380
7415
  */
7381
7416
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
7382
7417
  /**
7383
7418
  * Prefer an options object over a boolean in `.addEventListener()`.
7384
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-add-event-listener-options.md
7419
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-add-event-listener-options.md
7385
7420
  */
7386
7421
  'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
7387
7422
  /**
7388
7423
  * Prefer `AggregateError` when throwing collected errors.
7389
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-aggregate-error.md
7424
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-aggregate-error.md
7390
7425
  */
7391
7426
  'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
7392
7427
  /**
7393
7428
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
7394
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-find.md
7429
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-find.md
7395
7430
  */
7396
7431
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
7397
7432
  /**
7398
7433
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
7399
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-flat.md
7434
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-flat.md
7400
7435
  */
7401
7436
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
7402
7437
  /**
7403
7438
  * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
7404
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-flat-map.md
7439
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-flat-map.md
7405
7440
  */
7406
7441
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
7407
7442
  /**
7408
7443
  * Prefer `Array.fromAsync()` over `for await…of` array accumulation.
7409
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-from-async.md
7444
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-from-async.md
7410
7445
  */
7411
7446
  'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
7412
7447
  /**
7413
7448
  * Prefer using the `Array.from()` mapping function argument.
7414
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-from-map.md
7449
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-from-map.md
7415
7450
  */
7416
7451
  'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
7417
7452
  /**
7418
7453
  * Prefer `Array.from({length}, …)` when creating range arrays.
7419
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-from-range.md
7454
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-from-range.md
7420
7455
  */
7421
7456
  'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
7422
7457
  /**
7423
7458
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
7424
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-index-of.md
7459
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-index-of.md
7425
7460
  */
7426
7461
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
7427
7462
  /**
7428
7463
  * Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
7429
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-iterable-methods.md
7464
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-iterable-methods.md
7430
7465
  */
7431
7466
  'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
7432
7467
  /**
7433
7468
  * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
7434
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-last-methods.md
7469
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-last-methods.md
7435
7470
  */
7436
7471
  'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
7437
7472
  /**
7438
7473
  * Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
7439
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-slice.md
7474
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-slice.md
7440
7475
  */
7441
7476
  'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
7442
7477
  /**
7443
7478
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
7444
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-array-some.md
7479
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-some.md
7445
7480
  */
7446
7481
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
7447
7482
  /**
7448
7483
  * Prefer `.at()` method for index access and `String#charAt()`.
7449
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-at.md
7484
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-at.md
7450
7485
  */
7451
7486
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
7452
7487
  /**
7453
7488
  * Prefer `await` over promise chaining.
7454
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-await.md
7489
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-await.md
7455
7490
  */
7456
7491
  'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
7457
7492
  /**
7458
7493
  * Prefer `BigInt` literals over the constructor.
7459
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-bigint-literals.md
7494
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-bigint-literals.md
7460
7495
  */
7461
7496
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
7462
7497
  /**
7463
7498
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
7464
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-blob-reading-methods.md
7499
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-blob-reading-methods.md
7465
7500
  */
7466
7501
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
7467
7502
  /**
7468
7503
  * Prefer block statements over IIFEs used only for scoping.
7469
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-block-statement-over-iife.md
7504
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-block-statement-over-iife.md
7470
7505
  */
7471
7506
  'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
7472
7507
  /**
7473
7508
  * Prefer directly returning boolean expressions over `if` statements.
7474
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-boolean-return.md
7509
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-boolean-return.md
7475
7510
  */
7476
7511
  'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
7477
7512
  /**
7478
7513
  * Prefer class field declarations over `this` assignments in constructors.
7479
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-class-fields.md
7514
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-class-fields.md
7480
7515
  */
7481
7516
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
7482
7517
  /**
7483
7518
  * Prefer using `Element#classList.toggle()` to toggle class names.
7484
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-classlist-toggle.md
7519
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-classlist-toggle.md
7485
7520
  */
7486
7521
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
7487
7522
  /**
7488
7523
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
7489
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-code-point.md
7524
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-code-point.md
7490
7525
  */
7491
7526
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
7492
7527
  /**
7493
7528
  * Prefer early continues over whole-loop conditional wrapping.
7494
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-continue.md
7529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-continue.md
7495
7530
  */
7496
7531
  'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
7497
7532
  /**
7498
7533
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
7499
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-date-now.md
7534
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-date-now.md
7500
7535
  */
7501
7536
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
7502
7537
  /**
7503
7538
  * Prefer default parameters over reassignment.
7504
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-default-parameters.md
7539
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-default-parameters.md
7505
7540
  */
7506
7541
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
7507
7542
  /**
7508
7543
  * Prefer direct iteration over default iterator method calls.
7509
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-direct-iteration.md
7544
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-direct-iteration.md
7510
7545
  */
7511
7546
  'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
7512
7547
  /**
7513
7548
  * Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
7514
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dispose.md
7549
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dispose.md
7515
7550
  */
7516
7551
  'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
7517
7552
  /**
7518
7553
  * Prefer `Element#append()` over `Node#appendChild()`.
7519
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-append.md
7554
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-append.md
7520
7555
  */
7521
7556
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
7522
7557
  /**
7523
7558
  * Renamed to `unicorn/dom-node-dataset`.
7524
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
7559
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
7525
7560
  * @deprecated
7526
7561
  */
7527
7562
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
7528
7563
  /**
7529
7564
  * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
7530
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-html-methods.md
7565
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-html-methods.md
7531
7566
  */
7532
7567
  'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
7533
7568
  /**
7534
7569
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
7535
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-remove.md
7570
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-remove.md
7536
7571
  */
7537
7572
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
7538
7573
  /**
7539
7574
  * Prefer `.replaceChildren()` when emptying DOM children.
7540
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-replace-children.md
7575
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-replace-children.md
7541
7576
  */
7542
7577
  'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
7543
7578
  /**
7544
7579
  * Prefer `.textContent` over `.innerText`.
7545
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-dom-node-text-content.md
7580
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-text-content.md
7546
7581
  */
7547
7582
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
7548
7583
  /**
7549
7584
  * Prefer early returns over full-function conditional wrapping.
7550
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-early-return.md
7585
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-early-return.md
7551
7586
  */
7552
7587
  'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
7553
7588
  /**
7554
7589
  * Prefer `else if` over adjacent `if` statements with related conditions.
7555
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-else-if.md
7590
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-else-if.md
7556
7591
  */
7557
7592
  'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
7558
7593
  /**
7559
7594
  * Prefer `Error.isError()` when checking for errors.
7560
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-error-is-error.md
7595
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-error-is-error.md
7561
7596
  */
7562
7597
  'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
7563
7598
  /**
7564
7599
  * Prefer `EventTarget` over `EventEmitter`.
7565
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-event-target.md
7600
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-event-target.md
7566
7601
  */
7567
7602
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
7568
7603
  /**
7569
7604
  * Prefer explicit viewport units.
7570
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-explicit-viewport-units.md
7605
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-explicit-viewport-units.md
7571
7606
  */
7572
7607
  'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<UnicornPreferExplicitViewportUnits>;
7573
7608
  /**
7574
7609
  * Prefer `export…from` when re-exporting.
7575
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-export-from.md
7610
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-export-from.md
7576
7611
  */
7577
7612
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
7578
7613
  /**
7579
7614
  * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
7580
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-flat-math-min-max.md
7615
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-flat-math-min-max.md
7581
7616
  */
7582
7617
  'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
7583
7618
  /**
7584
7619
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
7585
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-get-or-insert-computed.md
7620
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-get-or-insert-computed.md
7586
7621
  */
7587
7622
  'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
7588
7623
  /**
7589
7624
  * Prefer global numeric constants over `Number` static properties.
7590
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-global-number-constants.md
7625
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-global-number-constants.md
7591
7626
  */
7592
7627
  'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
7593
7628
  /**
7594
7629
  * Prefer `globalThis` over `window`, `self`, and `global`.
7595
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-global-this.md
7630
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-global-this.md
7596
7631
  */
7597
7632
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
7598
7633
  /**
7599
7634
  * Prefer `Object.groupBy()` or `Map.groupBy()` over reduce-based grouping.
7600
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-group-by.md
7635
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-group-by.md
7601
7636
  */
7602
7637
  'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
7603
7638
  /**
7604
7639
  * Prefer `.has()` when checking existence.
7605
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-has-check.md
7640
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-has-check.md
7606
7641
  */
7607
7642
  'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
7608
7643
  /**
7609
7644
  * Prefer moving code shared by all branches of an `if` statement out of the branches.
7610
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-hoisting-branch-code.md
7645
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-hoisting-branch-code.md
7611
7646
  */
7612
7647
  'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
7613
7648
  /**
7614
7649
  * Prefer HTTPS over HTTP.
7615
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-https.md
7650
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-https.md
7616
7651
  */
7617
- 'unicorn/prefer-https'?: Linter.RuleEntry<[]>;
7652
+ 'unicorn/prefer-https'?: Linter.RuleEntry<UnicornPreferHttps>;
7618
7653
  /**
7619
7654
  * Prefer identifiers over string literals in import and export specifiers.
7620
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
7655
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
7621
7656
  */
7622
7657
  'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
7623
7658
  /**
7624
7659
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
7625
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-import-meta-properties.md
7660
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-import-meta-properties.md
7626
7661
  */
7627
7662
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
7628
7663
  /**
7629
7664
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
7630
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-includes.md
7665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-includes.md
7631
7666
  */
7632
7667
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
7633
7668
  /**
7634
7669
  * Prefer `.includes()` over repeated equality comparisons.
7635
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
7670
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
7636
7671
  */
7637
7672
  'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
7638
7673
  /**
7639
7674
  * Prefer passing iterables directly to constructors instead of filling empty collections.
7640
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterable-in-constructor.md
7675
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterable-in-constructor.md
7641
7676
  */
7642
7677
  'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
7643
7678
  /**
7644
7679
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
7645
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterator-concat.md
7680
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-concat.md
7646
7681
  */
7647
7682
  'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
7648
7683
  /**
7649
7684
  * Prefer iterator helpers over temporary arrays from iterators.
7650
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterator-helpers.md
7685
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-helpers.md
7651
7686
  */
7652
7687
  'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
7653
7688
  /**
7654
7689
  * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
7655
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterator-to-array.md
7690
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-to-array.md
7656
7691
  */
7657
7692
  'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
7658
7693
  /**
7659
7694
  * Prefer moving `.toArray()` to the end of iterator helper chains.
7660
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-iterator-to-array-at-end.md
7695
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-to-array-at-end.md
7661
7696
  */
7662
7697
  'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
7663
7698
  /**
7664
7699
  * Renamed to `unicorn/consistent-json-file-read`.
7665
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
7700
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
7666
7701
  * @deprecated
7667
7702
  */
7668
7703
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
7669
7704
  /**
7670
7705
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
7671
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-keyboard-event-key.md
7706
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-keyboard-event-key.md
7672
7707
  */
7673
7708
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
7674
7709
  /**
7675
7710
  * Prefer `location.assign()` over assigning to `location.href`.
7676
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-location-assign.md
7711
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-location-assign.md
7677
7712
  */
7678
7713
  'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
7679
7714
  /**
7680
7715
  * Prefer using a logical operator over a ternary.
7681
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-logical-operator-over-ternary.md
7716
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-logical-operator-over-ternary.md
7682
7717
  */
7683
7718
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
7684
7719
  /**
7685
7720
  * Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
7686
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-map-from-entries.md
7721
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-map-from-entries.md
7687
7722
  */
7688
7723
  'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
7689
7724
  /**
7690
7725
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
7691
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-math-abs.md
7726
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-abs.md
7692
7727
  */
7693
7728
  'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
7694
7729
  /**
7695
7730
  * Prefer `Math` constants over their approximate numeric values.
7696
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-math-constants.md
7731
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-constants.md
7697
7732
  */
7698
7733
  'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
7699
7734
  /**
7700
7735
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
7701
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-math-min-max.md
7736
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-min-max.md
7702
7737
  */
7703
7738
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
7704
7739
  /**
7705
7740
  * Prefer `Math.trunc()` for truncating numbers.
7706
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-math-trunc.md
7741
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-trunc.md
7707
7742
  */
7708
7743
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
7709
7744
  /**
7710
7745
  * Prefer moving ternaries into the minimal varying part of an expression.
7711
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-minimal-ternary.md
7746
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-minimal-ternary.md
7712
7747
  */
7713
7748
  'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
7714
7749
  /**
7715
7750
  * Prefer modern DOM APIs.
7716
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-modern-dom-apis.md
7751
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-modern-dom-apis.md
7717
7752
  */
7718
7753
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
7719
7754
  /**
7720
7755
  * Prefer modern `Math` APIs over legacy patterns.
7721
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-modern-math-apis.md
7756
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-modern-math-apis.md
7722
7757
  */
7723
7758
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
7724
7759
  /**
7725
7760
  * Prefer JavaScript modules (ESM) over CommonJS.
7726
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-module.md
7761
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-module.md
7727
7762
  */
7728
7763
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
7729
7764
  /**
7730
7765
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
7731
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-native-coercion-functions.md
7766
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-native-coercion-functions.md
7732
7767
  */
7733
7768
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
7734
7769
  /**
7735
7770
  * Prefer negative index over `.length - index` when possible.
7736
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-negative-index.md
7771
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-negative-index.md
7737
7772
  */
7738
7773
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
7739
7774
  /**
7740
7775
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
7741
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-node-protocol.md
7776
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-node-protocol.md
7742
7777
  */
7743
7778
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
7744
7779
  /**
7745
7780
  * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
7746
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-number-coercion.md
7781
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-number-coercion.md
7747
7782
  */
7748
7783
  'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
7749
7784
  /**
7750
7785
  * Prefer `Number.isSafeInteger()` over integer checks.
7751
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-number-is-safe-integer.md
7786
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-number-is-safe-integer.md
7752
7787
  */
7753
7788
  'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
7754
7789
  /**
7755
7790
  * Prefer `Number` static methods over global functions and optionally static properties over global constants.
7756
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-number-properties.md
7791
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-number-properties.md
7757
7792
  */
7758
7793
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
7759
7794
  /**
7760
7795
  * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
7761
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-object-define-properties.md
7796
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-define-properties.md
7762
7797
  */
7763
7798
  'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
7764
7799
  /**
7765
7800
  * Prefer object destructuring defaults over default object literals with spread.
7766
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-object-destructuring-defaults.md
7801
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-destructuring-defaults.md
7767
7802
  */
7768
7803
  'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
7769
7804
  /**
7770
7805
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
7771
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-object-from-entries.md
7806
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-from-entries.md
7772
7807
  */
7773
7808
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
7774
7809
  /**
7775
7810
  * Prefer the most specific `Object` iterable method.
7776
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-object-iterable-methods.md
7811
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-iterable-methods.md
7777
7812
  */
7778
7813
  'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
7779
7814
  /**
7780
7815
  * Prefer observer APIs over resize and scroll listeners with layout reads.
7781
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-observer-apis.md
7816
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-observer-apis.md
7782
7817
  */
7783
7818
  'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
7784
7819
  /**
7785
7820
  * Prefer omitting the `catch` binding parameter.
7786
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-optional-catch-binding.md
7821
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-optional-catch-binding.md
7787
7822
  */
7788
7823
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
7789
7824
  /**
7790
7825
  * Prefer `Path2D` for repeatedly drawn canvas paths.
7791
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-path2d.md
7826
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-path2d.md
7792
7827
  */
7793
7828
  'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
7794
7829
  /**
7795
7830
  * Prefer private class fields over the underscore-prefix convention.
7796
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-private-class-fields.md
7831
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-private-class-fields.md
7797
7832
  */
7798
7833
  'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
7799
7834
  /**
7800
7835
  * Prefer `Promise.try()` over promise-wrapping boilerplate.
7801
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-promise-try.md
7836
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-promise-try.md
7802
7837
  */
7803
7838
  'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
7804
7839
  /**
7805
7840
  * Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
7806
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-promise-with-resolvers.md
7841
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-promise-with-resolvers.md
7807
7842
  */
7808
7843
  'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
7809
7844
  /**
7810
7845
  * Prefer borrowing methods from the prototype instead of the instance.
7811
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-prototype-methods.md
7846
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-prototype-methods.md
7812
7847
  */
7813
7848
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
7814
7849
  /**
7815
7850
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
7816
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-query-selector.md
7851
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-query-selector.md
7817
7852
  */
7818
7853
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
7819
7854
  /**
7820
7855
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
7821
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-queue-microtask.md
7856
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-queue-microtask.md
7822
7857
  */
7823
7858
  'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
7824
7859
  /**
7825
7860
  * Prefer `Reflect.apply()` over `Function#apply()`.
7826
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-reflect-apply.md
7861
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-reflect-apply.md
7827
7862
  */
7828
7863
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
7829
7864
  /**
7830
7865
  * Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
7831
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-regexp-escape.md
7866
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-regexp-escape.md
7832
7867
  */
7833
7868
  'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
7834
7869
  /**
7835
7870
  * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
7836
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-regexp-test.md
7871
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-regexp-test.md
7837
7872
  */
7838
7873
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
7839
7874
  /**
7840
7875
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
7841
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-response-static-json.md
7876
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-response-static-json.md
7842
7877
  */
7843
7878
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
7844
7879
  /**
7845
7880
  * Prefer `:scope` when using element query selector methods.
7846
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-scoped-selector.md
7881
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-scoped-selector.md
7847
7882
  */
7848
7883
  'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
7849
7884
  /**
7850
7885
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
7851
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-set-has.md
7886
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-set-has.md
7852
7887
  */
7853
7888
  'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
7854
7889
  /**
7855
7890
  * Prefer `Set` methods for Set operations.
7856
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-set-methods.md
7891
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-set-methods.md
7857
7892
  */
7858
7893
  'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
7859
7894
  /**
7860
7895
  * Prefer using `Set#size` instead of `Array#length`.
7861
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-set-size.md
7896
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-set-size.md
7862
7897
  */
7863
7898
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
7864
7899
  /**
7865
7900
  * Prefer arrow function properties over methods with a single return.
7866
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-short-arrow-method.md
7901
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-short-arrow-method.md
7867
7902
  */
7868
7903
  'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
7869
7904
  /**
7870
7905
  * Prefer simple conditions first in logical expressions.
7871
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-simple-condition-first.md
7906
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-simple-condition-first.md
7872
7907
  */
7873
7908
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
7874
7909
  /**
7875
7910
  * Prefer a simple comparison function for `Array#sort()`.
7876
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-simple-sort-comparator.md
7911
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-simple-sort-comparator.md
7877
7912
  */
7878
7913
  'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
7879
7914
  /**
7880
7915
  * Prefer simplified conditions.
7881
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-simplified-conditions.md
7916
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-simplified-conditions.md
7882
7917
  */
7883
7918
  'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<[]>;
7884
7919
  /**
7885
7920
  * Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
7886
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-single-array-predicate.md
7921
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-array-predicate.md
7887
7922
  */
7888
7923
  'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
7889
7924
  /**
7890
7925
  * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
7891
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-single-call.md
7926
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-call.md
7892
7927
  */
7893
7928
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
7894
7929
  /**
7895
7930
  * Prefer a single object destructuring declaration per local const source.
7896
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-single-object-destructuring.md
7931
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-object-destructuring.md
7897
7932
  */
7898
7933
  'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
7899
7934
  /**
7900
7935
  * Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
7901
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-single-replace.md
7936
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-replace.md
7902
7937
  */
7903
7938
  'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
7904
7939
  /**
7905
7940
  * Prefer declaring variables in the smallest possible scope.
7906
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-smaller-scope.md
7941
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-smaller-scope.md
7907
7942
  */
7908
7943
  'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
7909
7944
  /**
7910
7945
  * Prefer `String#split()` with a limit.
7911
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-split-limit.md
7946
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-split-limit.md
7912
7947
  */
7913
7948
  'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
7914
7949
  /**
7915
7950
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
7916
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-spread.md
7951
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-spread.md
7917
7952
  */
7918
7953
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
7919
7954
  /**
7920
7955
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
7921
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-match-all.md
7956
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-match-all.md
7922
7957
  */
7923
7958
  'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
7924
7959
  /**
7925
7960
  * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
7926
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-pad-start-end.md
7961
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-pad-start-end.md
7927
7962
  */
7928
7963
  'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
7929
7964
  /**
7930
7965
  * Prefer using the `String.raw` tag to avoid escaping `\`.
7931
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-raw.md
7966
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-raw.md
7932
7967
  */
7933
7968
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
7934
7969
  /**
7935
7970
  * Prefer `String#repeat()` for repeated whitespace.
7936
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-repeat.md
7971
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-repeat.md
7937
7972
  */
7938
7973
  'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
7939
7974
  /**
7940
7975
  * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
7941
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-replace-all.md
7976
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-replace-all.md
7942
7977
  */
7943
7978
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
7944
7979
  /**
7945
7980
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
7946
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-slice.md
7981
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-slice.md
7947
7982
  */
7948
7983
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
7949
7984
  /**
7950
7985
  * Prefer `String#startsWith()` & `String#endsWith()` over regexes, `String#indexOf() === 0`, and slice checks.
7951
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-starts-ends-with.md
7986
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-starts-ends-with.md
7952
7987
  */
7953
7988
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
7954
7989
  /**
7955
7990
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
7956
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-string-trim-start-end.md
7991
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-trim-start-end.md
7957
7992
  */
7958
7993
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
7959
7994
  /**
7960
7995
  * Prefer using `structuredClone` to create a deep clone.
7961
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-structured-clone.md
7996
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-structured-clone.md
7962
7997
  */
7963
7998
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
7964
7999
  /**
7965
8000
  * Prefer `switch` over multiple `else-if`.
7966
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-switch.md
8001
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-switch.md
7967
8002
  */
7968
8003
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
7969
8004
  /**
7970
8005
  * Prefer `Temporal` over `Date`.
7971
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-temporal.md
8006
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-temporal.md
7972
8007
  */
7973
8008
  'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
7974
8009
  /**
7975
8010
  * Prefer ternary expressions over simple `if` statements that return or assign values.
7976
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-ternary.md
8011
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-ternary.md
7977
8012
  */
7978
8013
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
7979
8014
  /**
7980
8015
  * Prefer `.then().catch()` over `.then(…, …)` for error handling.
7981
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-then-catch.md
8016
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-then-catch.md
7982
8017
  */
7983
8018
  'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>;
7984
8019
  /**
7985
8020
  * Prefer using `Element#toggleAttribute()` to toggle attributes.
7986
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-toggle-attribute.md
8021
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-toggle-attribute.md
7987
8022
  */
7988
8023
  'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
7989
8024
  /**
7990
8025
  * Prefer top-level await over top-level promises and async function calls.
7991
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-top-level-await.md
8026
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-top-level-await.md
7992
8027
  */
7993
8028
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
7994
8029
  /**
7995
8030
  * Enforce throwing `TypeError` in type checking conditions.
7996
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-type-error.md
8031
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-type-error.md
7997
8032
  */
7998
8033
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
7999
8034
  /**
8000
8035
  * Require type literals to be last in union types.
8001
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-type-literal-last.md
8036
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-type-literal-last.md
8002
8037
  */
8003
8038
  'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
8004
8039
  /**
8005
8040
  * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over `atob()`, `btoa()`, and `Buffer` base64 conversions.
8006
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-uint8array-base64.md
8041
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-uint8array-base64.md
8007
8042
  */
8008
8043
  'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
8009
8044
  /**
8010
8045
  * Prefer the unary minus operator over multiplying or dividing by `-1`.
8011
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-unary-minus.md
8046
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-unary-minus.md
8012
8047
  */
8013
8048
  'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
8014
8049
  /**
8015
8050
  * Prefer Unicode code point escapes over legacy escape sequences.
8016
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-unicode-code-point-escapes.md
8051
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-unicode-code-point-escapes.md
8017
8052
  */
8018
8053
  'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
8019
8054
  /**
8020
8055
  * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
8021
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-url-can-parse.md
8056
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-url-can-parse.md
8022
8057
  */
8023
8058
  'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
8024
8059
  /**
8025
8060
  * Prefer `URL#href` over stringifying a `URL`.
8026
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-url-href.md
8061
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-url-href.md
8027
8062
  */
8028
8063
  'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
8029
8064
  /**
8030
8065
  * Prefer `URLSearchParams` over manually splitting query strings.
8031
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-url-search-parameters.md
8066
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-url-search-parameters.md
8032
8067
  */
8033
8068
  'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
8034
8069
  /**
8035
8070
  * Prefer putting the condition in the while statement.
8036
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/prefer-while-loop-condition.md
8071
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-while-loop-condition.md
8037
8072
  */
8038
8073
  'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
8039
8074
  /**
8040
8075
  * Renamed to `unicorn/name-replacements`.
8041
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
8076
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
8042
8077
  * @deprecated
8043
8078
  */
8044
8079
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
8045
8080
  /**
8046
8081
  * Enforce consistent relative URL style.
8047
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/relative-url-style.md
8082
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/relative-url-style.md
8048
8083
  */
8049
8084
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
8050
8085
  /**
8051
8086
  * Enforce using the separator argument with `Array#join()`.
8052
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-array-join-separator.md
8087
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-array-join-separator.md
8053
8088
  */
8054
8089
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
8055
8090
  /**
8056
8091
  * Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
8057
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-array-sort-compare.md
8092
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-array-sort-compare.md
8058
8093
  */
8059
8094
  'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
8060
8095
  /**
8061
8096
  * Require `CSS.escape()` for interpolated values in CSS selectors.
8062
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-css-escape.md
8097
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-css-escape.md
8063
8098
  */
8064
8099
  'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
8065
8100
  /**
8066
8101
  * Require configured YAML frontmatter fields.
8067
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-frontmatter-fields.md
8102
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-frontmatter-fields.md
8068
8103
  */
8069
8104
  'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
8070
8105
  /**
8071
8106
  * Require non-empty module attributes for imports and exports
8072
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-module-attributes.md
8107
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-module-attributes.md
8073
8108
  */
8074
8109
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
8075
8110
  /**
8076
8111
  * Require non-empty specifier list in import and export statements.
8077
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-module-specifiers.md
8112
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-module-specifiers.md
8078
8113
  */
8079
8114
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
8080
8115
  /**
8081
8116
  * Enforce using the digits argument with `Number#toFixed()`.
8082
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-number-to-fixed-digits-argument.md
8117
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-number-to-fixed-digits-argument.md
8083
8118
  */
8084
8119
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
8085
8120
  /**
8086
8121
  * Require passive event listeners for high-frequency events.
8087
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-passive-events.md
8122
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-passive-events.md
8088
8123
  */
8089
8124
  'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
8090
8125
  /**
8091
8126
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
8092
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-post-message-target-origin.md
8127
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-post-message-target-origin.md
8093
8128
  */
8094
8129
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
8095
8130
  /**
8096
8131
  * Require boolean-returning Proxy traps to return booleans.
8097
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/require-proxy-trap-boolean-return.md
8132
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-proxy-trap-boolean-return.md
8098
8133
  */
8099
8134
  'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
8135
+ /**
8136
+ * Enforce a consistent style for single-line block comments.
8137
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/single-line-block-comment-style.md
8138
+ */
8139
+ 'unicorn/single-line-block-comment-style'?: Linter.RuleEntry<UnicornSingleLineBlockCommentStyle>;
8100
8140
  /**
8101
8141
  * Enforce better string content.
8102
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/string-content.md
8142
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/string-content.md
8103
8143
  */
8104
8144
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
8105
8145
  /**
8106
8146
  * Enforce consistent brace style for `case` clauses.
8107
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/switch-case-braces.md
8147
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/switch-case-braces.md
8108
8148
  */
8109
8149
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
8110
8150
  /**
8111
8151
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
8112
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/switch-case-break-position.md
8152
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/switch-case-break-position.md
8113
8153
  */
8114
8154
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
8115
8155
  /**
8116
8156
  * Fix whitespace-insensitive template indentation.
8117
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/template-indent.md
8157
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/template-indent.md
8118
8158
  */
8119
8159
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
8120
8160
  /**
8121
8161
  * Enforce consistent case for text encoding identifiers.
8122
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/text-encoding-identifier-case.md
8162
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/text-encoding-identifier-case.md
8123
8163
  */
8124
8164
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
8125
8165
  /**
8126
8166
  * Require `new` when creating an error.
8127
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/throw-new-error.md
8167
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/throw-new-error.md
8128
8168
  */
8129
8169
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
8130
8170
  /**
8131
8171
  * Limit the complexity of `try` blocks.
8132
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v72.0.0/docs/rules/try-complexity.md
8172
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/try-complexity.md
8133
8173
  */
8134
8174
  'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
8135
8175
  /**
@@ -9925,6 +9965,11 @@ interface RuleOptions {
9925
9965
  * @see https://ota-meshi.github.io/eslint-plugin-yml/rules/key-spacing.html
9926
9966
  */
9927
9967
  'yml/key-spacing'?: Linter.RuleEntry<YmlKeySpacing>;
9968
+ /**
9969
+ * disallow boolean mapping keys
9970
+ * @see https://ota-meshi.github.io/eslint-plugin-yml/rules/no-boolean-key.html
9971
+ */
9972
+ 'yml/no-boolean-key'?: Linter.RuleEntry<[]>;
9928
9973
  /**
9929
9974
  * disallow empty document
9930
9975
  * @see https://ota-meshi.github.io/eslint-plugin-yml/rules/no-empty-document.html
@@ -11343,10 +11388,34 @@ type Eqeqeq = ([] | ["always"] | ["always", {
11343
11388
  // ----- eslint-plugin/consistent-output -----
11344
11389
  type EslintPluginConsistentOutput = [] | [("always" | "consistent")];
11345
11390
  // ----- eslint-plugin/meta-property-ordering -----
11346
- type EslintPluginMetaPropertyOrdering = [] | [unknown[]];
11391
+ type EslintPluginMetaPropertyOrdering = [] | [string[]];
11392
+ // ----- eslint-plugin/no-incomplete-meta-schema -----
11393
+ type EslintPluginNoIncompleteMetaSchema = [] | [{
11394
+ checks?: {
11395
+ explicitAdditionalProperties?: boolean;
11396
+ explicitItems?: boolean;
11397
+ typedItems?: boolean;
11398
+ boundedTuples?: boolean;
11399
+ };
11400
+ }];
11401
+ // ----- eslint-plugin/no-incorrect-meta-schema -----
11402
+ type EslintPluginNoIncorrectMetaSchema = [] | [{
11403
+ checks?: {
11404
+ emptyRoot?: boolean;
11405
+ bareArrayRoot?: boolean;
11406
+ nonArrayRootType?: boolean;
11407
+ nonConstrainingRoot?: boolean;
11408
+ ignoredKeywords?: boolean;
11409
+ ignoredRefSiblings?: boolean;
11410
+ unresolvedRefs?: boolean;
11411
+ ignoredAdditionalItems?: boolean;
11412
+ incompatibleTypeKeywords?: boolean;
11413
+ impossibleBounds?: boolean;
11414
+ };
11415
+ }];
11347
11416
  // ----- eslint-plugin/no-property-in-node -----
11348
11417
  type EslintPluginNoPropertyInNode = [] | [{
11349
- additionalNodeTypeFiles?: unknown[];
11418
+ additionalNodeTypeFiles?: string[];
11350
11419
  }];
11351
11420
  // ----- eslint-plugin/report-message-format -----
11352
11421
  type EslintPluginReportMessageFormat = [] | [string];
@@ -11375,7 +11444,7 @@ type EslintPluginRequireTestCaseName = [] | [{
11375
11444
  require?: ("always" | "objects" | "objects-with-config");
11376
11445
  }];
11377
11446
  // ----- eslint-plugin/test-case-property-ordering -----
11378
- type EslintPluginTestCasePropertyOrdering = [] | [unknown[]];
11447
+ type EslintPluginTestCasePropertyOrdering = [] | [string[]];
11379
11448
  // ----- eslint-plugin/test-case-shorthand-strings -----
11380
11449
  type EslintPluginTestCaseShorthandStrings = [] | [("as-needed" | "never" | "consistent" | "consistent-as-needed")];
11381
11450
  // ----- func-call-spacing -----
@@ -12600,15 +12669,19 @@ type JsoncSortKeys = ([{
12600
12669
  hasProperties?: string[];
12601
12670
  order: ((string | {
12602
12671
  keyPattern?: string;
12603
- order?: {
12672
+ order?: ({
12604
12673
  type?: ("asc" | "desc");
12605
12674
  caseSensitive?: boolean;
12606
12675
  natural?: boolean;
12607
- };
12676
+ } | {
12677
+ type: "ignore";
12678
+ });
12608
12679
  })[] | {
12609
12680
  type?: ("asc" | "desc");
12610
12681
  caseSensitive?: boolean;
12611
12682
  natural?: boolean;
12683
+ } | {
12684
+ type: "ignore";
12612
12685
  });
12613
12686
  minKeys?: number;
12614
12687
  allowLineSeparatedGroups?: boolean;
@@ -12617,15 +12690,19 @@ type JsoncSortKeys = ([{
12617
12690
  hasProperties?: string[];
12618
12691
  order: ((string | {
12619
12692
  keyPattern?: string;
12620
- order?: {
12693
+ order?: ({
12621
12694
  type?: ("asc" | "desc");
12622
12695
  caseSensitive?: boolean;
12623
12696
  natural?: boolean;
12624
- };
12697
+ } | {
12698
+ type: "ignore";
12699
+ });
12625
12700
  })[] | {
12626
12701
  type?: ("asc" | "desc");
12627
12702
  caseSensitive?: boolean;
12628
12703
  natural?: boolean;
12704
+ } | {
12705
+ type: "ignore";
12629
12706
  });
12630
12707
  minKeys?: number;
12631
12708
  allowLineSeparatedGroups?: boolean;
@@ -17461,9 +17538,9 @@ type SvgoSvgo = [] | [{
17461
17538
  textStart?: string;
17462
17539
  useShortTags?: boolean;
17463
17540
  };
17464
- plugins?: (("preset-default" | "cleanupAttrs" | "cleanupEnableBackground" | "cleanupIds" | "cleanupNumericValues" | "collapseGroups" | "convertColors" | "convertEllipseToCircle" | "convertPathData" | "convertShapeToPath" | "convertTransform" | "inlineStyles" | "mergePaths" | "mergeStyles" | "minifyStyles" | "moveElemsAttrsToGroup" | "moveGroupAttrsToElems" | "removeComments" | "removeDeprecatedAttrs" | "removeDesc" | "removeDoctype" | "removeEditorsNSData" | "removeEmptyAttrs" | "removeEmptyContainers" | "removeEmptyText" | "removeHiddenElems" | "removeMetadata" | "removeNonInheritableGroupAttrs" | "removeUnknownsAndDefaults" | "removeUnusedNS" | "removeUselessDefs" | "removeUselessStrokeAndFill" | "removeXMLProcInst" | "sortAttrs" | "sortDefsChildren" | "cleanupListOfValues" | "convertOneStopGradients" | "convertStyleToAttrs" | "prefixIds" | "removeDimensions" | "removeOffCanvasPaths" | "removeRasterImages" | "removeScripts" | "removeStyleElement" | "removeTitle" | "removeViewBox" | "removeXlink" | "removeXMLNS" | "reusePaths" | "addAttributesToSVGElement" | "addClassesToSVGElement" | "removeAttributesBySelector" | "removeAttrs" | "removeElementsByAttr") | {
17541
+ plugins?: (("cleanupAttrs" | "cleanupEnableBackground" | "cleanupIds" | "cleanupListOfValues" | "cleanupNumericValues" | "collapseGroups" | "convertColors" | "convertEllipseToCircle" | "convertOneStopGradients" | "convertPathData" | "convertShapeToPath" | "convertStyleToAttrs" | "convertTransform" | "inlineStyles" | "mergePaths" | "mergeStyles" | "minifyStyles" | "moveElemsAttrsToGroup" | "moveGroupAttrsToElems" | "prefixIds" | "removeComments" | "removeDeprecatedAttrs" | "removeDesc" | "removeDimensions" | "removeDoctype" | "removeEditorsNSData" | "removeEmptyAttrs" | "removeEmptyContainers" | "removeEmptyText" | "removeHiddenElems" | "removeMetadata" | "removeNonInheritableGroupAttrs" | "removeOffCanvasPaths" | "removeRasterImages" | "removeScripts" | "removeStyleElement" | "removeTitle" | "removeUnknownsAndDefaults" | "removeUnusedNS" | "removeUselessDefs" | "removeUselessStrokeAndFill" | "removeViewBox" | "removeXlink" | "removeXMLNS" | "removeXMLProcInst" | "reusePaths" | "sortAttrs" | "sortDefsChildren" | "preset-default") | {
17465
17542
  name: "addAttributesToSVGElement";
17466
- params?: {
17543
+ params: {
17467
17544
  attribute?: (string | {
17468
17545
  [k: string]: (string | null);
17469
17546
  });
@@ -17473,7 +17550,7 @@ type SvgoSvgo = [] | [{
17473
17550
  };
17474
17551
  } | {
17475
17552
  name: "addClassesToSVGElement";
17476
- params?: {
17553
+ params: {
17477
17554
  className?: string;
17478
17555
  classNames?: string[];
17479
17556
  };
@@ -17621,6 +17698,140 @@ type SvgoSvgo = [] | [{
17621
17698
  prefixIds?: boolean;
17622
17699
  prefixClassNames?: boolean;
17623
17700
  };
17701
+ } | {
17702
+ name: "removeAttributesBySelector";
17703
+ params: {
17704
+ selectors?: {
17705
+ selector?: string;
17706
+ attributes?: string[];
17707
+ [k: string]: unknown | undefined;
17708
+ }[];
17709
+ };
17710
+ } | {
17711
+ name: "removeAttrs";
17712
+ params: {
17713
+ attrs?: (string | string[]);
17714
+ elemSeparator?: string;
17715
+ preserveCurrentColor?: boolean;
17716
+ };
17717
+ } | {
17718
+ name: "removeComments";
17719
+ params?: {
17720
+ preservePatterns?: (false | string[]);
17721
+ };
17722
+ } | {
17723
+ name: "removeDeprecatedAttrs";
17724
+ params?: {
17725
+ removeUnsafe?: boolean;
17726
+ };
17727
+ } | {
17728
+ name: "removeDesc";
17729
+ params?: {
17730
+ removeAny?: boolean;
17731
+ };
17732
+ } | {
17733
+ name: "removeDimensions";
17734
+ } | {
17735
+ name: "removeDoctype";
17736
+ } | {
17737
+ name: "removeEditorsNSData";
17738
+ params?: {
17739
+ additionalNamespaces?: string[];
17740
+ };
17741
+ } | {
17742
+ name: "removeElementsByAttr";
17743
+ params: {
17744
+ id?: (string | string[]);
17745
+ class?: (string | string[]);
17746
+ };
17747
+ } | {
17748
+ name: "removeEmptyAttrs";
17749
+ } | {
17750
+ name: "removeEmptyContainers";
17751
+ } | {
17752
+ name: "removeEmptyText";
17753
+ params?: {
17754
+ text?: boolean;
17755
+ tspan?: boolean;
17756
+ tref?: boolean;
17757
+ };
17758
+ } | {
17759
+ name: "removeHiddenElems";
17760
+ params?: {
17761
+ isHidden?: boolean;
17762
+ displayNone?: boolean;
17763
+ opacity0?: boolean;
17764
+ circleR0?: boolean;
17765
+ ellipseRX0?: boolean;
17766
+ ellipseRY0?: boolean;
17767
+ rectWidth0?: boolean;
17768
+ rectHeight0?: boolean;
17769
+ patternWidth0?: boolean;
17770
+ patternHeight0?: boolean;
17771
+ imageWidth0?: boolean;
17772
+ imageHeight0?: boolean;
17773
+ pathEmptyD?: boolean;
17774
+ polylineEmptyPoints?: boolean;
17775
+ polygonEmptyPoints?: boolean;
17776
+ };
17777
+ } | {
17778
+ name: "removeMetadata";
17779
+ } | {
17780
+ name: "removeNonInheritableGroupAttrs";
17781
+ } | {
17782
+ name: "removeOffCanvasPaths";
17783
+ } | {
17784
+ name: "removeRasterImages";
17785
+ } | {
17786
+ name: "removeScripts";
17787
+ } | {
17788
+ name: "removeStyleElement";
17789
+ } | {
17790
+ name: "removeTitle";
17791
+ } | {
17792
+ name: "removeUnknownsAndDefaults";
17793
+ params?: {
17794
+ unknownContent?: boolean;
17795
+ unknownAttrs?: boolean;
17796
+ defaultAttrs?: boolean;
17797
+ defaultMarkupDeclarations?: boolean;
17798
+ uselessOverrides?: boolean;
17799
+ keepDataAttrs?: boolean;
17800
+ keepAriaAttrs?: boolean;
17801
+ keepRoleAttr?: boolean;
17802
+ };
17803
+ } | {
17804
+ name: "removeUnusedNS";
17805
+ } | {
17806
+ name: "removeUselessDefs";
17807
+ } | {
17808
+ name: "removeUselessStrokeAndFill";
17809
+ params?: {
17810
+ stroke?: boolean;
17811
+ fill?: boolean;
17812
+ removeNone?: boolean;
17813
+ };
17814
+ } | {
17815
+ name: "removeViewBox";
17816
+ } | {
17817
+ name: "removeXlink";
17818
+ params?: {
17819
+ includeLegacy?: boolean;
17820
+ };
17821
+ } | {
17822
+ name: "removeXMLNS";
17823
+ } | {
17824
+ name: "removeXMLProcInst";
17825
+ } | {
17826
+ name: "reusePaths";
17827
+ } | {
17828
+ name: "sortAttrs";
17829
+ params?: {
17830
+ order?: string[];
17831
+ xmlnsOrder?: ("front" | "alphabetical");
17832
+ };
17833
+ } | {
17834
+ name: "sortDefsChildren";
17624
17835
  } | {
17625
17836
  name: "preset-default";
17626
17837
  params?: {
@@ -17760,7 +17971,6 @@ type SvgoSvgo = [] | [{
17760
17971
  });
17761
17972
  removeMetadata?: false;
17762
17973
  removeNonInheritableGroupAttrs?: false;
17763
- removeTitle?: false;
17764
17974
  removeUnknownsAndDefaults?: (boolean | {
17765
17975
  unknownContent?: boolean;
17766
17976
  unknownAttrs?: boolean;
@@ -17778,7 +17988,6 @@ type SvgoSvgo = [] | [{
17778
17988
  fill?: boolean;
17779
17989
  removeNone?: boolean;
17780
17990
  });
17781
- removeViewBox?: false;
17782
17991
  removeXMLProcInst?: false;
17783
17992
  sortAttrs?: (boolean | {
17784
17993
  order?: string[];
@@ -17787,142 +17996,9 @@ type SvgoSvgo = [] | [{
17787
17996
  sortDefsChildren?: false;
17788
17997
  };
17789
17998
  };
17790
- } | {
17791
- name: "removeAttributesBySelector";
17792
- params?: {
17793
- selectors?: {
17794
- selector?: string;
17795
- attributes?: string[];
17796
- [k: string]: unknown | undefined;
17797
- }[];
17798
- };
17799
- } | {
17800
- name: "removeAttrs";
17801
- params?: {
17802
- attrs?: (string | string[]);
17803
- elemSeparator?: string;
17804
- preserveCurrentColor?: boolean;
17805
- };
17806
- } | {
17807
- name: "removeComments";
17808
- params?: {
17809
- preservePatterns?: (false | string[]);
17810
- };
17811
- } | {
17812
- name: "removeDeprecatedAttrs";
17813
- params?: {
17814
- removeUnsafe?: boolean;
17815
- };
17816
- } | {
17817
- name: "removeDesc";
17818
- params?: {
17819
- removeAny?: boolean;
17820
- };
17821
- } | {
17822
- name: "removeDimensions";
17823
- } | {
17824
- name: "removeDoctype";
17825
- } | {
17826
- name: "removeEditorsNSData";
17827
- params?: {
17828
- additionalNamespaces?: string[];
17829
- };
17830
- } | {
17831
- name: "removeElementsByAttr";
17832
- params?: {
17833
- id?: (string | string[]);
17834
- class?: (string | string[]);
17835
- };
17836
- } | {
17837
- name: "removeEmptyAttrs";
17838
- } | {
17839
- name: "removeEmptyContainers";
17840
- } | {
17841
- name: "removeEmptyText";
17842
- params?: {
17843
- text?: boolean;
17844
- tspan?: boolean;
17845
- tref?: boolean;
17846
- };
17847
- } | {
17848
- name: "removeHiddenElems";
17849
- params?: {
17850
- isHidden?: boolean;
17851
- displayNone?: boolean;
17852
- opacity0?: boolean;
17853
- circleR0?: boolean;
17854
- ellipseRX0?: boolean;
17855
- ellipseRY0?: boolean;
17856
- rectWidth0?: boolean;
17857
- rectHeight0?: boolean;
17858
- patternWidth0?: boolean;
17859
- patternHeight0?: boolean;
17860
- imageWidth0?: boolean;
17861
- imageHeight0?: boolean;
17862
- pathEmptyD?: boolean;
17863
- polylineEmptyPoints?: boolean;
17864
- polygonEmptyPoints?: boolean;
17865
- };
17866
- } | {
17867
- name: "removeMetadata";
17868
- } | {
17869
- name: "removeNonInheritableGroupAttrs";
17870
- } | {
17871
- name: "removeOffCanvasPaths";
17872
- } | {
17873
- name: "removeRasterImages";
17874
- } | {
17875
- name: "removeScripts";
17876
- } | {
17877
- name: "removeStyleElement";
17878
- } | {
17879
- name: "removeTitle";
17880
- } | {
17881
- name: "removeUnknownsAndDefaults";
17882
- params?: {
17883
- unknownContent?: boolean;
17884
- unknownAttrs?: boolean;
17885
- defaultAttrs?: boolean;
17886
- defaultMarkupDeclarations?: boolean;
17887
- uselessOverrides?: boolean;
17888
- keepDataAttrs?: boolean;
17889
- keepAriaAttrs?: boolean;
17890
- keepRoleAttr?: boolean;
17891
- };
17892
- } | {
17893
- name: "removeUnusedNS";
17894
- } | {
17895
- name: "removeUselessDefs";
17896
- } | {
17897
- name: "removeUselessStrokeAndFill";
17898
- params?: {
17899
- stroke?: boolean;
17900
- fill?: boolean;
17901
- removeNone?: boolean;
17902
- };
17903
- } | {
17904
- name: "removeViewBox";
17905
- } | {
17906
- name: "removeXlink";
17907
- params?: {
17908
- includeLegacy?: boolean;
17909
- };
17910
- } | {
17911
- name: "removeXMLNS";
17912
- } | {
17913
- name: "removeXMLProcInst";
17914
- } | {
17915
- name: "reusePaths";
17916
- } | {
17917
- name: "sortAttrs";
17918
- params?: {
17919
- order?: string[];
17920
- xmlnsOrder?: ("front" | "alphabetical");
17921
- };
17922
- } | {
17923
- name: "sortDefsChildren";
17924
17999
  })[];
17925
18000
  svgoConfig?: (boolean | string);
18001
+ reportMode?: ("diff" | "summary");
17926
18002
  }];
17927
18003
  // ----- switch-colon-spacing -----
17928
18004
  type SwitchColonSpacing = [] | [{
@@ -18073,7 +18149,9 @@ type UnicodeBom = [] | [("always" | "never")];
18073
18149
  // ----- unicorn/catch-error-name -----
18074
18150
  type UnicornCatchErrorName = [] | [{
18075
18151
  name?: string;
18076
- ignore?: unknown[];
18152
+ ignore?: (string | {
18153
+ [k: string]: unknown | undefined;
18154
+ })[];
18077
18155
  }];
18078
18156
  // ----- unicorn/class-reference-in-static-methods -----
18079
18157
  type UnicornClassReferenceInStaticMethods = [] | [{
@@ -18093,11 +18171,23 @@ type UnicornCommentContent = [] | [{
18093
18171
  }];
18094
18172
  // ----- unicorn/consistent-boolean-name -----
18095
18173
  type UnicornConsistentBooleanName = [] | [{
18096
- checkProperties?: boolean;
18174
+ checkVariables?: ("always" | "prohibit" | "never");
18175
+ checkArguments?: ("always" | "prohibit" | "never");
18176
+ checkFunctions?: ("always" | "prohibit" | "never");
18177
+ checkMethods?: ("always" | "prohibit" | "never");
18178
+ checkFields?: ("always" | "prohibit" | "never");
18097
18179
  prefixes?: {
18098
18180
  [k: string]: boolean | undefined;
18099
18181
  };
18182
+ wrappers?: {
18183
+ [k: string]: string | undefined;
18184
+ };
18100
18185
  ignore?: unknown[];
18186
+ [k: string]: (unknown | ("always" | "prohibit" | "never") | ("always" | "prohibit" | "never") | ("always" | "prohibit" | "never") | ("always" | "prohibit" | "never") | ("always" | "prohibit" | "never") | {
18187
+ [k: string]: boolean | undefined;
18188
+ } | {
18189
+ [k: string]: string | undefined;
18190
+ } | unknown[] | undefined);
18101
18191
  }];
18102
18192
  // ----- unicorn/consistent-class-member-order -----
18103
18193
  type UnicornConsistentClassMemberOrder = [] | [{
@@ -18131,6 +18221,7 @@ type UnicornConsistentFunctionScoping = [] | [{
18131
18221
  // ----- unicorn/consistent-function-style -----
18132
18222
  type UnicornConsistentFunctionStyle = [] | [{
18133
18223
  default?: ("declaration" | "function-expression" | "arrow-function" | "ignore");
18224
+ defaultExport?: ("declaration" | "function-expression" | "arrow-function" | "ignore");
18134
18225
  namedFunctions?: ("declaration" | "function-expression" | "arrow-function" | "ignore");
18135
18226
  namedExports?: ("declaration" | "function-expression" | "arrow-function" | "ignore");
18136
18227
  callbacks?: ("function-expression" | "arrow-function" | "ignore");
@@ -18154,7 +18245,9 @@ type UnicornEscapeCase = [] | [("uppercase" | "lowercase")];
18154
18245
  // ----- unicorn/expiring-todo-comments -----
18155
18246
  type UnicornExpiringTodoComments = [] | [{
18156
18247
  terms?: string[];
18157
- ignore?: unknown[];
18248
+ ignore?: (string | {
18249
+ [k: string]: unknown | undefined;
18250
+ })[];
18158
18251
  checkDates?: boolean;
18159
18252
  checkDatesOnPullRequests?: boolean;
18160
18253
  allowWarningComments?: boolean;
@@ -18169,7 +18262,9 @@ type UnicornExplicitTimerDelay = [] | [("always" | "never")];
18169
18262
  // ----- unicorn/filename-case -----
18170
18263
  type UnicornFilenameCase = [] | [({
18171
18264
  case?: ("camelCase" | "camelCaseWithAcronyms" | "snakeCase" | "kebabCase" | "pascalCase");
18172
- ignore?: unknown[];
18265
+ ignore?: (string | {
18266
+ [k: string]: unknown | undefined;
18267
+ })[];
18173
18268
  multipleFileExtensions?: boolean;
18174
18269
  checkDirectories?: boolean;
18175
18270
  } | {
@@ -18180,7 +18275,9 @@ type UnicornFilenameCase = [] | [({
18180
18275
  kebabCase?: boolean;
18181
18276
  pascalCase?: boolean;
18182
18277
  };
18183
- ignore?: unknown[];
18278
+ ignore?: (string | {
18279
+ [k: string]: unknown | undefined;
18280
+ })[];
18184
18281
  multipleFileExtensions?: boolean;
18185
18282
  checkDirectories?: boolean;
18186
18283
  })];
@@ -18217,6 +18314,8 @@ type UnicornIsolatedFunctions = [] | [{
18217
18314
  selectors?: string[];
18218
18315
  comments?: string[];
18219
18316
  }];
18317
+ // ----- unicorn/iteration-fallback-style -----
18318
+ type UnicornIterationFallbackStyle = [] | [("guard" | "fallback")];
18220
18319
  // ----- unicorn/logical-assignment-operators -----
18221
18320
  type UnicornLogicalAssignmentOperators = (([] | ["always"] | ["always", {
18222
18321
  enforceForIfStatements?: boolean;
@@ -18237,7 +18336,9 @@ type UnicornNameReplacements = [] | [{
18237
18336
  replacements?: _UnicornNameReplacements_NameReplacements;
18238
18337
  extendDefaultAllowList?: boolean;
18239
18338
  allowList?: _UnicornNameReplacements_BooleanObject1;
18240
- ignore?: unknown[];
18339
+ ignore?: (string | {
18340
+ [k: string]: unknown | undefined;
18341
+ })[];
18241
18342
  }];
18242
18343
  type _UnicornNameReplacementsReplacements = (false | _UnicornNameReplacements_BooleanObject) | undefined;
18243
18344
  interface _UnicornNameReplacements_NameReplacements {
@@ -18285,7 +18386,7 @@ type UnicornNoInvalidArgumentCount = [] | [{
18285
18386
  }];
18286
18387
  // ----- unicorn/no-keyword-prefix -----
18287
18388
  type UnicornNoKeywordPrefix = [] | [{
18288
- disallowedPrefixes?: [] | [string];
18389
+ disallowedPrefixes?: string[];
18289
18390
  checkProperties?: boolean;
18290
18391
  onlyCamelCase?: boolean;
18291
18392
  }];
@@ -18296,7 +18397,9 @@ type UnicornNoNegatedComparison = [] | [{
18296
18397
  // ----- unicorn/no-non-function-verb-prefix -----
18297
18398
  type UnicornNoNonFunctionVerbPrefix = [] | [{
18298
18399
  verbs?: string[];
18299
- ignore?: unknown[];
18400
+ ignore?: (string | {
18401
+ [k: string]: unknown | undefined;
18402
+ })[];
18300
18403
  }];
18301
18404
  // ----- unicorn/no-null -----
18302
18405
  type UnicornNoNull = [] | [{
@@ -18309,7 +18412,7 @@ type UnicornNoTypeofUndefined = [] | [{
18309
18412
  }];
18310
18413
  // ----- unicorn/no-unnecessary-polyfills -----
18311
18414
  type UnicornNoUnnecessaryPolyfills = [] | [{
18312
- targets?: (string | unknown[] | {
18415
+ targets?: (string | string[] | {
18313
18416
  [k: string]: unknown | undefined;
18314
18417
  });
18315
18418
  }];
@@ -18363,11 +18466,11 @@ type UnicornPreferArrayFind = [] | [{
18363
18466
  }];
18364
18467
  // ----- unicorn/prefer-array-flat -----
18365
18468
  type UnicornPreferArrayFlat = [] | [{
18366
- functions?: unknown[];
18469
+ functions?: string[];
18367
18470
  }];
18368
18471
  // ----- unicorn/prefer-at -----
18369
18472
  type UnicornPreferAt = [] | [{
18370
- getLastElementFunctions?: unknown[];
18473
+ getLastElementFunctions?: string[];
18371
18474
  checkAllIndexAccess?: boolean;
18372
18475
  }];
18373
18476
  // ----- unicorn/prefer-continue -----
@@ -18391,6 +18494,12 @@ type UnicornPreferExplicitViewportUnits = [] | [{
18391
18494
  type UnicornPreferExportFrom = [] | [{
18392
18495
  checkUsedVariables?: boolean;
18393
18496
  }];
18497
+ // ----- unicorn/prefer-https -----
18498
+ type UnicornPreferHttps = [] | [{
18499
+ ignore?: (string | {
18500
+ [k: string]: unknown | undefined;
18501
+ })[];
18502
+ }];
18394
18503
  // ----- unicorn/prefer-includes-over-repeated-comparisons -----
18395
18504
  type UnicornPreferIncludesOverRepeatedComparisons = [] | [{
18396
18505
  minimumComparisons?: number;
@@ -18407,7 +18516,7 @@ type UnicornPreferNumberProperties = [] | [{
18407
18516
  }];
18408
18517
  // ----- unicorn/prefer-object-from-entries -----
18409
18518
  type UnicornPreferObjectFromEntries = [] | [{
18410
- functions?: unknown[];
18519
+ functions?: string[];
18411
18520
  }];
18412
18521
  // ----- unicorn/prefer-query-selector -----
18413
18522
  type UnicornPreferQuerySelector = [] | [{
@@ -18426,7 +18535,7 @@ type UnicornPreferSetHas = [] | [{
18426
18535
  type UnicornPreferShortArrowMethod = [] | [("always" | "consistent-as-needed")];
18427
18536
  // ----- unicorn/prefer-single-call -----
18428
18537
  type UnicornPreferSingleCall = [] | [{
18429
- ignore?: unknown[];
18538
+ ignore?: string[];
18430
18539
  }];
18431
18540
  // ----- unicorn/prefer-string-repeat -----
18432
18541
  type UnicornPreferStringRepeat = [] | [{
@@ -18434,7 +18543,7 @@ type UnicornPreferStringRepeat = [] | [{
18434
18543
  }];
18435
18544
  // ----- unicorn/prefer-structured-clone -----
18436
18545
  type UnicornPreferStructuredClone = [] | [{
18437
- functions?: unknown[];
18546
+ functions?: string[];
18438
18547
  }];
18439
18548
  // ----- unicorn/prefer-switch -----
18440
18549
  type UnicornPreferSwitch = [] | [{
@@ -18459,6 +18568,12 @@ type UnicornRequireCssEscape = [] | [{
18459
18568
  type UnicornRequireFrontmatterFields = [] | [{
18460
18569
  fields?: string[];
18461
18570
  }];
18571
+ // ----- unicorn/single-line-block-comment-style -----
18572
+ type UnicornSingleLineBlockCommentStyle = [] | [("multiline" | "single-line")] | [("multiline" | "single-line"), {
18573
+ ignore?: (string | {
18574
+ [k: string]: unknown | undefined;
18575
+ })[];
18576
+ }];
18462
18577
  // ----- unicorn/string-content -----
18463
18578
  type UnicornStringContent = [] | [{
18464
18579
  patterns?: {
@@ -19978,15 +20093,19 @@ type YmlSortKeys = ([{
19978
20093
  hasProperties?: string[];
19979
20094
  order: ((string | {
19980
20095
  keyPattern?: string;
19981
- order?: {
20096
+ order?: ({
19982
20097
  type?: ("asc" | "desc");
19983
20098
  caseSensitive?: boolean;
19984
20099
  natural?: boolean;
19985
- };
20100
+ } | {
20101
+ type: "ignore";
20102
+ });
19986
20103
  })[] | {
19987
20104
  type?: ("asc" | "desc");
19988
20105
  caseSensitive?: boolean;
19989
20106
  natural?: boolean;
20107
+ } | {
20108
+ type: "ignore";
19990
20109
  });
19991
20110
  minKeys?: number;
19992
20111
  allowLineSeparatedGroups?: boolean;
@@ -19995,15 +20114,19 @@ type YmlSortKeys = ([{
19995
20114
  hasProperties?: string[];
19996
20115
  order: ((string | {
19997
20116
  keyPattern?: string;
19998
- order?: {
20117
+ order?: ({
19999
20118
  type?: ("asc" | "desc");
20000
20119
  caseSensitive?: boolean;
20001
20120
  natural?: boolean;
20002
- };
20121
+ } | {
20122
+ type: "ignore";
20123
+ });
20003
20124
  })[] | {
20004
20125
  type?: ("asc" | "desc");
20005
20126
  caseSensitive?: boolean;
20006
20127
  natural?: boolean;
20128
+ } | {
20129
+ type: "ignore";
20007
20130
  });
20008
20131
  minKeys?: number;
20009
20132
  allowLineSeparatedGroups?: boolean;