@2digits/eslint-config 4.4.10 → 4.4.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.d.mts +145 -133
  2. package/dist/index.d.ts +145 -133
  3. package/package.json +14 -14
package/dist/index.d.ts CHANGED
@@ -2903,6 +2903,11 @@ Backward pagination arguments
2903
2903
  * @see https://eslint-react.xyz/docs/rules/no-useless-forward-ref
2904
2904
  */
2905
2905
  'react-extra/ensure-forward-ref-using-ref'?: Linter.RuleEntry<[]>
2906
+ /**
2907
+ * Enforces that the 'key' attribute is placed before the spread attribute in JSX elements.
2908
+ * @see https://eslint-react.xyz/docs/rules/jsx-key-before-spread
2909
+ */
2910
+ 'react-extra/jsx-key-before-spread'?: Linter.RuleEntry<[]>
2906
2911
  /**
2907
2912
  * Disallow duplicate props in JSX elements.
2908
2913
  * @see https://eslint-react.xyz/docs/rules/jsx-no-duplicate-props
@@ -6197,6 +6202,11 @@ Backward pagination arguments
6197
6202
  * @see https://typescript-eslint.io/rules/no-unnecessary-type-constraint
6198
6203
  */
6199
6204
  'ts/no-unnecessary-type-constraint'?: Linter.RuleEntry<[]>
6205
+ /**
6206
+ * Disallow conversion idioms when they do not change the type or value of the expression
6207
+ * @see https://typescript-eslint.io/rules/no-unnecessary-type-conversion
6208
+ */
6209
+ 'ts/no-unnecessary-type-conversion'?: Linter.RuleEntry<[]>
6200
6210
  /**
6201
6211
  * Disallow type parameters that aren't used multiple times
6202
6212
  * @see https://typescript-eslint.io/rules/no-unnecessary-type-parameters
@@ -6487,670 +6497,670 @@ Backward pagination arguments
6487
6497
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>
6488
6498
  /**
6489
6499
  * Improve regexes by making them shorter, consistent, and safer.
6490
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/better-regex.md
6500
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/better-regex.md
6491
6501
  */
6492
6502
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
6493
6503
  /**
6494
6504
  * Enforce a specific parameter name in catch clauses.
6495
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/catch-error-name.md
6505
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/catch-error-name.md
6496
6506
  */
6497
6507
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
6498
6508
  /**
6499
6509
  * Enforce consistent assertion style with `node:assert`.
6500
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/consistent-assert.md
6510
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-assert.md
6501
6511
  */
6502
6512
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
6503
6513
  /**
6504
6514
  * Prefer passing `Date` directly to the constructor when cloning.
6505
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/consistent-date-clone.md
6515
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-date-clone.md
6506
6516
  */
6507
6517
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
6508
6518
  /**
6509
6519
  * Use destructured variables over properties.
6510
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/consistent-destructuring.md
6520
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-destructuring.md
6511
6521
  */
6512
6522
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
6513
6523
  /**
6514
6524
  * Prefer consistent types when spreading a ternary in an array literal.
6515
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/consistent-empty-array-spread.md
6525
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-empty-array-spread.md
6516
6526
  */
6517
6527
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
6518
6528
  /**
6519
6529
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
6520
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/consistent-existence-index-check.md
6530
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-existence-index-check.md
6521
6531
  */
6522
6532
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
6523
6533
  /**
6524
6534
  * Move function definitions to the highest possible scope.
6525
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/consistent-function-scoping.md
6535
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-function-scoping.md
6526
6536
  */
6527
6537
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
6528
6538
  /**
6529
6539
  * Enforce correct `Error` subclassing.
6530
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/custom-error-definition.md
6540
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/custom-error-definition.md
6531
6541
  */
6532
6542
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
6533
6543
  /**
6534
6544
  * Enforce no spaces between braces.
6535
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/empty-brace-spaces.md
6545
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/empty-brace-spaces.md
6536
6546
  */
6537
6547
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
6538
6548
  /**
6539
6549
  * Enforce passing a `message` value when creating a built-in error.
6540
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/error-message.md
6550
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/error-message.md
6541
6551
  */
6542
6552
  'unicorn/error-message'?: Linter.RuleEntry<[]>
6543
6553
  /**
6544
6554
  * Require escape sequences to use uppercase or lowercase values.
6545
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/escape-case.md
6555
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/escape-case.md
6546
6556
  */
6547
6557
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>
6548
6558
  /**
6549
6559
  * Add expiration conditions to TODO comments.
6550
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/expiring-todo-comments.md
6560
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/expiring-todo-comments.md
6551
6561
  */
6552
6562
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
6553
6563
  /**
6554
6564
  * Enforce explicitly comparing the `length` or `size` property of a value.
6555
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/explicit-length-check.md
6565
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/explicit-length-check.md
6556
6566
  */
6557
6567
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
6558
6568
  /**
6559
6569
  * Enforce a case style for filenames.
6560
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/filename-case.md
6570
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/filename-case.md
6561
6571
  */
6562
6572
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
6563
6573
  /**
6564
6574
  * Enforce specific import styles per module.
6565
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/import-style.md
6575
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/import-style.md
6566
6576
  */
6567
6577
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
6568
6578
  /**
6569
6579
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
6570
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/new-for-builtins.md
6580
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/new-for-builtins.md
6571
6581
  */
6572
6582
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
6573
6583
  /**
6574
6584
  * Enforce specifying rules to disable in `eslint-disable` comments.
6575
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-abusive-eslint-disable.md
6585
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-abusive-eslint-disable.md
6576
6586
  */
6577
6587
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
6578
6588
  /**
6579
6589
  * Disallow recursive access to `this` within getters and setters.
6580
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-accessor-recursion.md
6590
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-accessor-recursion.md
6581
6591
  */
6582
6592
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
6583
6593
  /**
6584
6594
  * Disallow anonymous functions and classes as the default export.
6585
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-anonymous-default-export.md
6595
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-anonymous-default-export.md
6586
6596
  */
6587
6597
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
6588
6598
  /**
6589
6599
  * Prevent passing a function reference directly to iterator methods.
6590
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-array-callback-reference.md
6600
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-callback-reference.md
6591
6601
  */
6592
6602
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
6593
6603
  /**
6594
6604
  * Prefer `for…of` over the `forEach` method.
6595
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-array-for-each.md
6605
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-for-each.md
6596
6606
  */
6597
6607
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
6598
6608
  /**
6599
6609
  * Disallow using the `this` argument in array methods.
6600
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-array-method-this-argument.md
6610
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-method-this-argument.md
6601
6611
  */
6602
6612
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
6603
6613
  /**
6604
6614
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
6605
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/deprecated-rules.md#no-array-push-push
6615
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-array-push-push
6606
6616
  * @deprecated
6607
6617
  */
6608
6618
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>
6609
6619
  /**
6610
6620
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
6611
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-array-reduce.md
6621
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-reduce.md
6612
6622
  */
6613
6623
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
6614
6624
  /**
6615
6625
  * Disallow member access from await expression.
6616
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-await-expression-member.md
6626
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-await-expression-member.md
6617
6627
  */
6618
6628
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
6619
6629
  /**
6620
6630
  * Disallow using `await` in `Promise` method parameters.
6621
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-await-in-promise-methods.md
6631
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-await-in-promise-methods.md
6622
6632
  */
6623
6633
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
6624
6634
  /**
6625
6635
  * Do not use leading/trailing space between `console.log` parameters.
6626
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-console-spaces.md
6636
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-console-spaces.md
6627
6637
  */
6628
6638
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
6629
6639
  /**
6630
6640
  * Do not use `document.cookie` directly.
6631
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-document-cookie.md
6641
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-document-cookie.md
6632
6642
  */
6633
6643
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
6634
6644
  /**
6635
6645
  * Disallow empty files.
6636
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-empty-file.md
6646
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-empty-file.md
6637
6647
  */
6638
6648
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
6639
6649
  /**
6640
6650
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
6641
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-for-loop.md
6651
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-for-loop.md
6642
6652
  */
6643
6653
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
6644
6654
  /**
6645
6655
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
6646
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-hex-escape.md
6656
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-hex-escape.md
6647
6657
  */
6648
6658
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
6649
6659
  /**
6650
6660
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
6651
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/deprecated-rules.md#no-instanceof-array
6661
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-instanceof-array
6652
6662
  * @deprecated
6653
6663
  */
6654
6664
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
6655
6665
  /**
6656
6666
  * Disallow `instanceof` with built-in objects
6657
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-instanceof-builtins.md
6667
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-instanceof-builtins.md
6658
6668
  */
6659
6669
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
6660
6670
  /**
6661
6671
  * Disallow invalid options in `fetch()` and `new Request()`.
6662
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-invalid-fetch-options.md
6672
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-invalid-fetch-options.md
6663
6673
  */
6664
6674
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
6665
6675
  /**
6666
6676
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
6667
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-invalid-remove-event-listener.md
6677
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-invalid-remove-event-listener.md
6668
6678
  */
6669
6679
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
6670
6680
  /**
6671
6681
  * Disallow identifiers starting with `new` or `class`.
6672
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-keyword-prefix.md
6682
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-keyword-prefix.md
6673
6683
  */
6674
6684
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
6675
6685
  /**
6676
6686
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
6677
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/deprecated-rules.md#no-length-as-slice-end
6687
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-length-as-slice-end
6678
6688
  * @deprecated
6679
6689
  */
6680
6690
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
6681
6691
  /**
6682
6692
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
6683
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-lonely-if.md
6693
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-lonely-if.md
6684
6694
  */
6685
6695
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
6686
6696
  /**
6687
6697
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
6688
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-magic-array-flat-depth.md
6698
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-magic-array-flat-depth.md
6689
6699
  */
6690
6700
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
6691
6701
  /**
6692
6702
  * Disallow named usage of default import and export.
6693
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-named-default.md
6703
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-named-default.md
6694
6704
  */
6695
6705
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>
6696
6706
  /**
6697
6707
  * Disallow negated conditions.
6698
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-negated-condition.md
6708
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-negated-condition.md
6699
6709
  */
6700
6710
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
6701
6711
  /**
6702
6712
  * Disallow negated expression in equality check.
6703
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-negation-in-equality-check.md
6713
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-negation-in-equality-check.md
6704
6714
  */
6705
6715
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
6706
6716
  /**
6707
6717
  * Disallow nested ternary expressions.
6708
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-nested-ternary.md
6718
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-nested-ternary.md
6709
6719
  */
6710
6720
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
6711
6721
  /**
6712
6722
  * Disallow `new Array()`.
6713
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-new-array.md
6723
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-new-array.md
6714
6724
  */
6715
6725
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
6716
6726
  /**
6717
6727
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
6718
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-new-buffer.md
6728
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-new-buffer.md
6719
6729
  */
6720
6730
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
6721
6731
  /**
6722
6732
  * Disallow the use of the `null` literal.
6723
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-null.md
6733
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-null.md
6724
6734
  */
6725
6735
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
6726
6736
  /**
6727
6737
  * Disallow the use of objects as default parameters.
6728
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-object-as-default-parameter.md
6738
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-object-as-default-parameter.md
6729
6739
  */
6730
6740
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
6731
6741
  /**
6732
6742
  * Disallow `process.exit()`.
6733
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-process-exit.md
6743
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-process-exit.md
6734
6744
  */
6735
6745
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
6736
6746
  /**
6737
6747
  * Disallow passing single-element arrays to `Promise` methods.
6738
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-single-promise-in-promise-methods.md
6748
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-single-promise-in-promise-methods.md
6739
6749
  */
6740
6750
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
6741
6751
  /**
6742
6752
  * Disallow classes that only have static members.
6743
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-static-only-class.md
6753
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-static-only-class.md
6744
6754
  */
6745
6755
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
6746
6756
  /**
6747
6757
  * Disallow `then` property.
6748
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-thenable.md
6758
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-thenable.md
6749
6759
  */
6750
6760
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
6751
6761
  /**
6752
6762
  * Disallow assigning `this` to a variable.
6753
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-this-assignment.md
6763
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-this-assignment.md
6754
6764
  */
6755
6765
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
6756
6766
  /**
6757
6767
  * Disallow comparing `undefined` using `typeof`.
6758
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-typeof-undefined.md
6768
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-typeof-undefined.md
6759
6769
  */
6760
6770
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
6761
6771
  /**
6762
6772
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
6763
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-unnecessary-array-flat-depth.md
6773
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-array-flat-depth.md
6764
6774
  */
6765
6775
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>
6766
6776
  /**
6767
6777
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
6768
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-unnecessary-array-splice-count.md
6778
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-array-splice-count.md
6769
6779
  */
6770
6780
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>
6771
6781
  /**
6772
6782
  * Disallow awaiting non-promise values.
6773
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-unnecessary-await.md
6783
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-await.md
6774
6784
  */
6775
6785
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
6776
6786
  /**
6777
6787
  * Enforce the use of built-in methods instead of unnecessary polyfills.
6778
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-unnecessary-polyfills.md
6788
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-polyfills.md
6779
6789
  */
6780
6790
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
6781
6791
  /**
6782
6792
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
6783
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-unnecessary-slice-end.md
6793
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-slice-end.md
6784
6794
  */
6785
6795
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>
6786
6796
  /**
6787
6797
  * Disallow unreadable array destructuring.
6788
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-unreadable-array-destructuring.md
6798
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unreadable-array-destructuring.md
6789
6799
  */
6790
6800
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
6791
6801
  /**
6792
6802
  * Disallow unreadable IIFEs.
6793
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-unreadable-iife.md
6803
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unreadable-iife.md
6794
6804
  */
6795
6805
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
6796
6806
  /**
6797
6807
  * Disallow unused object properties.
6798
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-unused-properties.md
6808
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unused-properties.md
6799
6809
  */
6800
6810
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
6801
6811
  /**
6802
6812
  * Disallow useless fallback when spreading in object literals.
6803
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-useless-fallback-in-spread.md
6813
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-fallback-in-spread.md
6804
6814
  */
6805
6815
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
6806
6816
  /**
6807
6817
  * Disallow useless array length check.
6808
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-useless-length-check.md
6818
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-length-check.md
6809
6819
  */
6810
6820
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
6811
6821
  /**
6812
6822
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
6813
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-useless-promise-resolve-reject.md
6823
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-promise-resolve-reject.md
6814
6824
  */
6815
6825
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
6816
6826
  /**
6817
6827
  * Disallow unnecessary spread.
6818
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-useless-spread.md
6828
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-spread.md
6819
6829
  */
6820
6830
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
6821
6831
  /**
6822
6832
  * Disallow useless case in switch statements.
6823
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-useless-switch-case.md
6833
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-switch-case.md
6824
6834
  */
6825
6835
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
6826
6836
  /**
6827
6837
  * Disallow useless `undefined`.
6828
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-useless-undefined.md
6838
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-undefined.md
6829
6839
  */
6830
6840
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
6831
6841
  /**
6832
6842
  * Disallow number literals with zero fractions or dangling dots.
6833
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/no-zero-fractions.md
6843
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-zero-fractions.md
6834
6844
  */
6835
6845
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
6836
6846
  /**
6837
6847
  * Enforce proper case for numeric literals.
6838
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/number-literal-case.md
6848
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/number-literal-case.md
6839
6849
  */
6840
6850
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>
6841
6851
  /**
6842
6852
  * Enforce the style of numeric separators by correctly grouping digits.
6843
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/numeric-separators-style.md
6853
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/numeric-separators-style.md
6844
6854
  */
6845
6855
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
6846
6856
  /**
6847
6857
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
6848
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-add-event-listener.md
6858
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-add-event-listener.md
6849
6859
  */
6850
6860
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
6851
6861
  /**
6852
6862
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
6853
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-array-find.md
6863
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-find.md
6854
6864
  */
6855
6865
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
6856
6866
  /**
6857
6867
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
6858
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-array-flat.md
6868
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-flat.md
6859
6869
  */
6860
6870
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
6861
6871
  /**
6862
6872
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
6863
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-array-flat-map.md
6873
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-flat-map.md
6864
6874
  */
6865
6875
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
6866
6876
  /**
6867
6877
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
6868
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-array-index-of.md
6878
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-index-of.md
6869
6879
  */
6870
6880
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
6871
6881
  /**
6872
6882
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
6873
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-array-some.md
6883
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-some.md
6874
6884
  */
6875
6885
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
6876
6886
  /**
6877
6887
  * Prefer `.at()` method for index access and `String#charAt()`.
6878
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-at.md
6888
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-at.md
6879
6889
  */
6880
6890
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
6881
6891
  /**
6882
6892
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
6883
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-blob-reading-methods.md
6893
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-blob-reading-methods.md
6884
6894
  */
6885
6895
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
6886
6896
  /**
6887
6897
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
6888
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-code-point.md
6898
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-code-point.md
6889
6899
  */
6890
6900
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
6891
6901
  /**
6892
6902
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
6893
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-date-now.md
6903
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-date-now.md
6894
6904
  */
6895
6905
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
6896
6906
  /**
6897
6907
  * Prefer default parameters over reassignment.
6898
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-default-parameters.md
6908
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-default-parameters.md
6899
6909
  */
6900
6910
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
6901
6911
  /**
6902
6912
  * Prefer `Node#append()` over `Node#appendChild()`.
6903
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-dom-node-append.md
6913
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-append.md
6904
6914
  */
6905
6915
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
6906
6916
  /**
6907
6917
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
6908
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-dom-node-dataset.md
6918
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-dataset.md
6909
6919
  */
6910
6920
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
6911
6921
  /**
6912
6922
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
6913
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-dom-node-remove.md
6923
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-remove.md
6914
6924
  */
6915
6925
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
6916
6926
  /**
6917
6927
  * Prefer `.textContent` over `.innerText`.
6918
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-dom-node-text-content.md
6928
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-text-content.md
6919
6929
  */
6920
6930
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
6921
6931
  /**
6922
6932
  * Prefer `EventTarget` over `EventEmitter`.
6923
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-event-target.md
6933
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-event-target.md
6924
6934
  */
6925
6935
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
6926
6936
  /**
6927
6937
  * Prefer `export…from` when re-exporting.
6928
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-export-from.md
6938
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-export-from.md
6929
6939
  */
6930
6940
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
6931
6941
  /**
6932
6942
  * Prefer `globalThis` over `window`, `self`, and `global`.
6933
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-global-this.md
6943
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-global-this.md
6934
6944
  */
6935
6945
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
6936
6946
  /**
6937
6947
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
6938
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-import-meta-properties.md
6948
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-import-meta-properties.md
6939
6949
  */
6940
6950
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>
6941
6951
  /**
6942
6952
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
6943
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-includes.md
6953
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-includes.md
6944
6954
  */
6945
6955
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
6946
6956
  /**
6947
6957
  * Prefer reading a JSON file as a buffer.
6948
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-json-parse-buffer.md
6958
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-json-parse-buffer.md
6949
6959
  */
6950
6960
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
6951
6961
  /**
6952
6962
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
6953
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-keyboard-event-key.md
6963
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-keyboard-event-key.md
6954
6964
  */
6955
6965
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
6956
6966
  /**
6957
6967
  * Prefer using a logical operator over a ternary.
6958
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-logical-operator-over-ternary.md
6968
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-logical-operator-over-ternary.md
6959
6969
  */
6960
6970
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
6961
6971
  /**
6962
6972
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
6963
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-math-min-max.md
6973
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-math-min-max.md
6964
6974
  */
6965
6975
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
6966
6976
  /**
6967
6977
  * Enforce the use of `Math.trunc` instead of bitwise operators.
6968
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-math-trunc.md
6978
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-math-trunc.md
6969
6979
  */
6970
6980
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
6971
6981
  /**
6972
6982
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
6973
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-modern-dom-apis.md
6983
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-modern-dom-apis.md
6974
6984
  */
6975
6985
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
6976
6986
  /**
6977
6987
  * Prefer modern `Math` APIs over legacy patterns.
6978
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-modern-math-apis.md
6988
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-modern-math-apis.md
6979
6989
  */
6980
6990
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
6981
6991
  /**
6982
6992
  * Prefer JavaScript modules (ESM) over CommonJS.
6983
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-module.md
6993
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-module.md
6984
6994
  */
6985
6995
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
6986
6996
  /**
6987
6997
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
6988
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-native-coercion-functions.md
6998
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-native-coercion-functions.md
6989
6999
  */
6990
7000
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
6991
7001
  /**
6992
7002
  * Prefer negative index over `.length - index` when possible.
6993
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-negative-index.md
7003
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-negative-index.md
6994
7004
  */
6995
7005
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
6996
7006
  /**
6997
7007
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
6998
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-node-protocol.md
7008
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-node-protocol.md
6999
7009
  */
7000
7010
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
7001
7011
  /**
7002
7012
  * Prefer `Number` static properties over global ones.
7003
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-number-properties.md
7013
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-number-properties.md
7004
7014
  */
7005
7015
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
7006
7016
  /**
7007
7017
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
7008
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-object-from-entries.md
7018
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-object-from-entries.md
7009
7019
  */
7010
7020
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
7011
7021
  /**
7012
7022
  * Prefer omitting the `catch` binding parameter.
7013
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-optional-catch-binding.md
7023
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-optional-catch-binding.md
7014
7024
  */
7015
7025
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
7016
7026
  /**
7017
7027
  * Prefer borrowing methods from the prototype instead of the instance.
7018
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-prototype-methods.md
7028
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-prototype-methods.md
7019
7029
  */
7020
7030
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
7021
7031
  /**
7022
7032
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
7023
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-query-selector.md
7033
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-query-selector.md
7024
7034
  */
7025
7035
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
7026
7036
  /**
7027
7037
  * Prefer `Reflect.apply()` over `Function#apply()`.
7028
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-reflect-apply.md
7038
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-reflect-apply.md
7029
7039
  */
7030
7040
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
7031
7041
  /**
7032
7042
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
7033
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-regexp-test.md
7043
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-regexp-test.md
7034
7044
  */
7035
7045
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
7036
7046
  /**
7037
7047
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
7038
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-set-has.md
7048
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-set-has.md
7039
7049
  */
7040
7050
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
7041
7051
  /**
7042
7052
  * Prefer using `Set#size` instead of `Array#length`.
7043
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-set-size.md
7053
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-set-size.md
7044
7054
  */
7045
7055
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
7046
7056
  /**
7047
7057
  * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
7048
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-single-call.md
7058
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-single-call.md
7049
7059
  */
7050
7060
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>
7051
7061
  /**
7052
7062
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
7053
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-spread.md
7063
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-spread.md
7054
7064
  */
7055
7065
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
7056
7066
  /**
7057
7067
  * Prefer using the `String.raw` tag to avoid escaping `\`.
7058
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-string-raw.md
7068
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-raw.md
7059
7069
  */
7060
7070
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
7061
7071
  /**
7062
7072
  * Prefer `String#replaceAll()` over regex searches with the global flag.
7063
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-string-replace-all.md
7073
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-replace-all.md
7064
7074
  */
7065
7075
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
7066
7076
  /**
7067
7077
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
7068
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-string-slice.md
7078
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-slice.md
7069
7079
  */
7070
7080
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
7071
7081
  /**
7072
7082
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
7073
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-string-starts-ends-with.md
7083
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-starts-ends-with.md
7074
7084
  */
7075
7085
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
7076
7086
  /**
7077
7087
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
7078
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-string-trim-start-end.md
7088
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-trim-start-end.md
7079
7089
  */
7080
7090
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
7081
7091
  /**
7082
7092
  * Prefer using `structuredClone` to create a deep clone.
7083
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-structured-clone.md
7093
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-structured-clone.md
7084
7094
  */
7085
7095
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
7086
7096
  /**
7087
7097
  * Prefer `switch` over multiple `else-if`.
7088
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-switch.md
7098
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-switch.md
7089
7099
  */
7090
7100
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
7091
7101
  /**
7092
7102
  * Prefer ternary expressions over simple `if-else` statements.
7093
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-ternary.md
7103
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-ternary.md
7094
7104
  */
7095
7105
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
7096
7106
  /**
7097
7107
  * Prefer top-level await over top-level promises and async function calls.
7098
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-top-level-await.md
7108
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-top-level-await.md
7099
7109
  */
7100
7110
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
7101
7111
  /**
7102
7112
  * Enforce throwing `TypeError` in type checking conditions.
7103
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prefer-type-error.md
7113
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-type-error.md
7104
7114
  */
7105
7115
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
7106
7116
  /**
7107
7117
  * Prevent abbreviations.
7108
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/prevent-abbreviations.md
7118
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prevent-abbreviations.md
7109
7119
  */
7110
7120
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
7111
7121
  /**
7112
7122
  * Enforce consistent relative URL style.
7113
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/relative-url-style.md
7123
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/relative-url-style.md
7114
7124
  */
7115
7125
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
7116
7126
  /**
7117
7127
  * Enforce using the separator argument with `Array#join()`.
7118
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/require-array-join-separator.md
7128
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-array-join-separator.md
7119
7129
  */
7120
7130
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
7121
7131
  /**
7122
7132
  * Enforce using the digits argument with `Number#toFixed()`.
7123
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/require-number-to-fixed-digits-argument.md
7133
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-number-to-fixed-digits-argument.md
7124
7134
  */
7125
7135
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
7126
7136
  /**
7127
7137
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
7128
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/require-post-message-target-origin.md
7138
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-post-message-target-origin.md
7129
7139
  */
7130
7140
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
7131
7141
  /**
7132
7142
  * Enforce better string content.
7133
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/string-content.md
7143
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/string-content.md
7134
7144
  */
7135
7145
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
7136
7146
  /**
7137
7147
  * Enforce consistent brace style for `case` clauses.
7138
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/switch-case-braces.md
7148
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/switch-case-braces.md
7139
7149
  */
7140
7150
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
7141
7151
  /**
7142
7152
  * Fix whitespace-insensitive template indentation.
7143
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/template-indent.md
7153
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/template-indent.md
7144
7154
  */
7145
7155
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
7146
7156
  /**
7147
7157
  * Enforce consistent case for text encoding identifiers.
7148
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/text-encoding-identifier-case.md
7158
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/text-encoding-identifier-case.md
7149
7159
  */
7150
7160
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
7151
7161
  /**
7152
7162
  * Require `new` when creating an error.
7153
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.0/docs/rules/throw-new-error.md
7163
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/throw-new-error.md
7154
7164
  */
7155
7165
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
7156
7166
  /**
@@ -12625,6 +12635,8 @@ type TsOnlyThrowError = []|[{
12625
12635
  package: string
12626
12636
  })[]
12627
12637
 
12638
+ allowRethrowing?: boolean
12639
+
12628
12640
  allowThrowingAny?: boolean
12629
12641
 
12630
12642
  allowThrowingUnknown?: boolean