@anolilab/eslint-config 16.2.25 → 16.2.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1811,7 +1811,7 @@ interface RuleOptions {
1811
1811
  * Reports invalid alignment of JSDoc block asterisks.
1812
1812
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-alignment.md#repos-sticky-header
1813
1813
  */
1814
- 'jsdoc/check-alignment'?: Linter.RuleEntry<[]>
1814
+ 'jsdoc/check-alignment'?: Linter.RuleEntry<JsdocCheckAlignment>
1815
1815
  /**
1816
1816
  * Ensures that (JavaScript) examples within JSDoc adhere to ESLint rules.
1817
1817
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-examples.md#repos-sticky-header
@@ -2082,6 +2082,11 @@ interface RuleOptions {
2082
2082
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/text-escaping.md#repos-sticky-header
2083
2083
  */
2084
2084
  'jsdoc/text-escaping'?: Linter.RuleEntry<JsdocTextEscaping>
2085
+ /**
2086
+ * Formats JSDoc type values.
2087
+ * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/type-formatting.md#repos-sticky-header
2088
+ */
2089
+ 'jsdoc/type-formatting'?: Linter.RuleEntry<JsdocTypeFormatting>
2085
2090
  /**
2086
2091
  * Requires all types to be valid JSDoc or Closure compiler types without syntax errors.
2087
2092
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/valid-types.md#repos-sticky-header
@@ -3796,6 +3801,11 @@ interface RuleOptions {
3796
3801
  * @see https://eslint-react.xyz/docs/rules/jsx-uses-vars
3797
3802
  */
3798
3803
  'react-x/use-jsx-vars'?: Linter.RuleEntry<[]>
3804
+ /**
3805
+ * Disallow adjusting state in an effect when a prop changes.
3806
+ * @see https://react.dev/learn/you-might-not-need-an-effect#adjusting-some-state-when-a-prop-changes
3807
+ */
3808
+ 'react-you-might-not-need-an-effect/no-adjust-state-on-prop-change'?: Linter.RuleEntry<[]>
3799
3809
  /**
3800
3810
  * Disallow chaining state changes in an effect.
3801
3811
  * @see https://react.dev/learn/you-might-not-need-an-effect#chains-of-computations
@@ -3807,7 +3817,7 @@ interface RuleOptions {
3807
3817
  */
3808
3818
  'react-you-might-not-need-an-effect/no-derived-state'?: Linter.RuleEntry<[]>
3809
3819
  /**
3810
- * Disallow empty React effects.
3820
+ * Disallow empty effects.
3811
3821
  */
3812
3822
  'react-you-might-not-need-an-effect/no-empty-effect'?: Linter.RuleEntry<[]>
3813
3823
  /**
@@ -3837,7 +3847,7 @@ interface RuleOptions {
3837
3847
  * Disallow resetting all state in an effect when a prop changes.
3838
3848
  * @see https://react.dev/learn/you-might-not-need-an-effect#resetting-all-state-when-a-prop-changes
3839
3849
  */
3840
- 'react-you-might-not-need-an-effect/no-reset-all-state-when-a-prop-changes'?: Linter.RuleEntry<[]>
3850
+ 'react-you-might-not-need-an-effect/no-reset-all-state-on-prop-change'?: Linter.RuleEntry<[]>
3841
3851
  /**
3842
3852
  * Enforces consistent naming for boolean props
3843
3853
  * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/boolean-prop-naming.md
@@ -6501,690 +6511,710 @@ interface RuleOptions {
6501
6511
  'tsdoc/syntax'?: Linter.RuleEntry<[]>
6502
6512
  /**
6503
6513
  * Improve regexes by making them shorter, consistent, and safer.
6504
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/better-regex.md
6514
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/better-regex.md
6505
6515
  */
6506
6516
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
6507
6517
  /**
6508
6518
  * Enforce a specific parameter name in catch clauses.
6509
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/catch-error-name.md
6519
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/catch-error-name.md
6510
6520
  */
6511
6521
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
6512
6522
  /**
6513
6523
  * Enforce consistent assertion style with `node:assert`.
6514
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-assert.md
6524
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-assert.md
6515
6525
  */
6516
6526
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
6517
6527
  /**
6518
6528
  * Prefer passing `Date` directly to the constructor when cloning.
6519
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-date-clone.md
6529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-date-clone.md
6520
6530
  */
6521
6531
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
6522
6532
  /**
6523
6533
  * Use destructured variables over properties.
6524
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-destructuring.md
6534
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-destructuring.md
6525
6535
  */
6526
6536
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
6527
6537
  /**
6528
6538
  * Prefer consistent types when spreading a ternary in an array literal.
6529
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-empty-array-spread.md
6539
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-empty-array-spread.md
6530
6540
  */
6531
6541
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
6532
6542
  /**
6533
6543
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
6534
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-existence-index-check.md
6544
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-existence-index-check.md
6535
6545
  */
6536
6546
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
6537
6547
  /**
6538
6548
  * Move function definitions to the highest possible scope.
6539
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-function-scoping.md
6549
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/consistent-function-scoping.md
6540
6550
  */
6541
6551
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
6542
6552
  /**
6543
6553
  * Enforce correct `Error` subclassing.
6544
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/custom-error-definition.md
6554
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/custom-error-definition.md
6545
6555
  */
6546
6556
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
6547
6557
  /**
6548
6558
  * Enforce no spaces between braces.
6549
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/empty-brace-spaces.md
6559
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/empty-brace-spaces.md
6550
6560
  */
6551
6561
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
6552
6562
  /**
6553
6563
  * Enforce passing a `message` value when creating a built-in error.
6554
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/error-message.md
6564
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/error-message.md
6555
6565
  */
6556
6566
  'unicorn/error-message'?: Linter.RuleEntry<[]>
6557
6567
  /**
6558
6568
  * Require escape sequences to use uppercase or lowercase values.
6559
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/escape-case.md
6569
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/escape-case.md
6560
6570
  */
6561
6571
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>
6562
6572
  /**
6563
6573
  * Add expiration conditions to TODO comments.
6564
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/expiring-todo-comments.md
6574
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/expiring-todo-comments.md
6565
6575
  */
6566
6576
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
6567
6577
  /**
6568
6578
  * Enforce explicitly comparing the `length` or `size` property of a value.
6569
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/explicit-length-check.md
6579
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/explicit-length-check.md
6570
6580
  */
6571
6581
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
6572
6582
  /**
6573
6583
  * Enforce a case style for filenames.
6574
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/filename-case.md
6584
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/filename-case.md
6575
6585
  */
6576
6586
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
6577
6587
  /**
6578
6588
  * Enforce specific import styles per module.
6579
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/import-style.md
6589
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/import-style.md
6580
6590
  */
6581
6591
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
6582
6592
  /**
6583
6593
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
6584
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/new-for-builtins.md
6594
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/new-for-builtins.md
6585
6595
  */
6586
6596
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
6587
6597
  /**
6588
6598
  * Enforce specifying rules to disable in `eslint-disable` comments.
6589
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-abusive-eslint-disable.md
6599
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-abusive-eslint-disable.md
6590
6600
  */
6591
6601
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
6592
6602
  /**
6593
6603
  * Disallow recursive access to `this` within getters and setters.
6594
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-accessor-recursion.md
6604
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-accessor-recursion.md
6595
6605
  */
6596
6606
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
6597
6607
  /**
6598
6608
  * Disallow anonymous functions and classes as the default export.
6599
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-anonymous-default-export.md
6609
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-anonymous-default-export.md
6600
6610
  */
6601
6611
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
6602
6612
  /**
6603
6613
  * Prevent passing a function reference directly to iterator methods.
6604
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-callback-reference.md
6614
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-callback-reference.md
6605
6615
  */
6606
6616
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
6607
6617
  /**
6608
6618
  * Prefer `for…of` over the `forEach` method.
6609
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-for-each.md
6619
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-for-each.md
6610
6620
  */
6611
6621
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
6612
6622
  /**
6613
6623
  * Disallow using the `this` argument in array methods.
6614
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-method-this-argument.md
6624
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-method-this-argument.md
6615
6625
  */
6616
6626
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
6617
6627
  /**
6618
6628
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
6619
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/deprecated-rules.md#no-array-push-push
6629
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/deprecated-rules.md#no-array-push-push
6620
6630
  * @deprecated
6621
6631
  */
6622
6632
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>
6623
6633
  /**
6624
6634
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
6625
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-reduce.md
6635
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-reduce.md
6626
6636
  */
6627
6637
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
6628
6638
  /**
6629
6639
  * Prefer `Array#toReversed()` over `Array#reverse()`.
6630
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-reverse.md
6640
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-reverse.md
6631
6641
  */
6632
6642
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>
6643
+ /**
6644
+ * Prefer `Array#toSorted()` over `Array#sort()`.
6645
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-array-sort.md
6646
+ */
6647
+ 'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>
6633
6648
  /**
6634
6649
  * Disallow member access from await expression.
6635
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-await-expression-member.md
6650
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-await-expression-member.md
6636
6651
  */
6637
6652
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
6638
6653
  /**
6639
6654
  * Disallow using `await` in `Promise` method parameters.
6640
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-await-in-promise-methods.md
6655
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-await-in-promise-methods.md
6641
6656
  */
6642
6657
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
6643
6658
  /**
6644
6659
  * Do not use leading/trailing space between `console.log` parameters.
6645
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-console-spaces.md
6660
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-console-spaces.md
6646
6661
  */
6647
6662
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
6648
6663
  /**
6649
6664
  * Do not use `document.cookie` directly.
6650
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-document-cookie.md
6665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-document-cookie.md
6651
6666
  */
6652
6667
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
6653
6668
  /**
6654
6669
  * Disallow empty files.
6655
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-empty-file.md
6670
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-empty-file.md
6656
6671
  */
6657
6672
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
6658
6673
  /**
6659
6674
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
6660
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-for-loop.md
6675
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-for-loop.md
6661
6676
  */
6662
6677
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
6663
6678
  /**
6664
6679
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
6665
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-hex-escape.md
6680
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-hex-escape.md
6666
6681
  */
6667
6682
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
6668
6683
  /**
6669
6684
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
6670
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/deprecated-rules.md#no-instanceof-array
6685
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/deprecated-rules.md#no-instanceof-array
6671
6686
  * @deprecated
6672
6687
  */
6673
6688
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
6674
6689
  /**
6675
6690
  * Disallow `instanceof` with built-in objects
6676
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-instanceof-builtins.md
6691
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-instanceof-builtins.md
6677
6692
  */
6678
6693
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
6679
6694
  /**
6680
6695
  * Disallow invalid options in `fetch()` and `new Request()`.
6681
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-invalid-fetch-options.md
6696
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-invalid-fetch-options.md
6682
6697
  */
6683
6698
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
6684
6699
  /**
6685
6700
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
6686
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-invalid-remove-event-listener.md
6701
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-invalid-remove-event-listener.md
6687
6702
  */
6688
6703
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
6689
6704
  /**
6690
6705
  * Disallow identifiers starting with `new` or `class`.
6691
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-keyword-prefix.md
6706
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-keyword-prefix.md
6692
6707
  */
6693
6708
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
6694
6709
  /**
6695
6710
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
6696
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/deprecated-rules.md#no-length-as-slice-end
6711
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/deprecated-rules.md#no-length-as-slice-end
6697
6712
  * @deprecated
6698
6713
  */
6699
6714
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
6700
6715
  /**
6701
6716
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
6702
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-lonely-if.md
6717
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-lonely-if.md
6703
6718
  */
6704
6719
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
6705
6720
  /**
6706
6721
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
6707
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-magic-array-flat-depth.md
6722
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-magic-array-flat-depth.md
6708
6723
  */
6709
6724
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
6710
6725
  /**
6711
6726
  * Disallow named usage of default import and export.
6712
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-named-default.md
6727
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-named-default.md
6713
6728
  */
6714
6729
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>
6715
6730
  /**
6716
6731
  * Disallow negated conditions.
6717
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-negated-condition.md
6732
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-negated-condition.md
6718
6733
  */
6719
6734
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
6720
6735
  /**
6721
6736
  * Disallow negated expression in equality check.
6722
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-negation-in-equality-check.md
6737
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-negation-in-equality-check.md
6723
6738
  */
6724
6739
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
6725
6740
  /**
6726
6741
  * Disallow nested ternary expressions.
6727
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-nested-ternary.md
6742
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-nested-ternary.md
6728
6743
  */
6729
6744
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
6730
6745
  /**
6731
6746
  * Disallow `new Array()`.
6732
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-new-array.md
6747
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-new-array.md
6733
6748
  */
6734
6749
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
6735
6750
  /**
6736
6751
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
6737
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-new-buffer.md
6752
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-new-buffer.md
6738
6753
  */
6739
6754
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
6740
6755
  /**
6741
6756
  * Disallow the use of the `null` literal.
6742
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-null.md
6757
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-null.md
6743
6758
  */
6744
6759
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
6745
6760
  /**
6746
6761
  * Disallow the use of objects as default parameters.
6747
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-object-as-default-parameter.md
6762
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-object-as-default-parameter.md
6748
6763
  */
6749
6764
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
6750
6765
  /**
6751
6766
  * Disallow `process.exit()`.
6752
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-process-exit.md
6767
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-process-exit.md
6753
6768
  */
6754
6769
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
6755
6770
  /**
6756
6771
  * Disallow passing single-element arrays to `Promise` methods.
6757
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-single-promise-in-promise-methods.md
6772
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-single-promise-in-promise-methods.md
6758
6773
  */
6759
6774
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
6760
6775
  /**
6761
6776
  * Disallow classes that only have static members.
6762
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-static-only-class.md
6777
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-static-only-class.md
6763
6778
  */
6764
6779
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
6765
6780
  /**
6766
6781
  * Disallow `then` property.
6767
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-thenable.md
6782
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-thenable.md
6768
6783
  */
6769
6784
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
6770
6785
  /**
6771
6786
  * Disallow assigning `this` to a variable.
6772
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-this-assignment.md
6787
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-this-assignment.md
6773
6788
  */
6774
6789
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
6775
6790
  /**
6776
6791
  * Disallow comparing `undefined` using `typeof`.
6777
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-typeof-undefined.md
6792
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-typeof-undefined.md
6778
6793
  */
6779
6794
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
6780
6795
  /**
6781
6796
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
6782
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-array-flat-depth.md
6797
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-array-flat-depth.md
6783
6798
  */
6784
6799
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>
6785
6800
  /**
6786
6801
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
6787
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-array-splice-count.md
6802
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-array-splice-count.md
6788
6803
  */
6789
6804
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>
6790
6805
  /**
6791
6806
  * Disallow awaiting non-promise values.
6792
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-await.md
6807
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-await.md
6793
6808
  */
6794
6809
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
6795
6810
  /**
6796
6811
  * Enforce the use of built-in methods instead of unnecessary polyfills.
6797
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-polyfills.md
6812
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-polyfills.md
6798
6813
  */
6799
6814
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
6800
6815
  /**
6801
6816
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
6802
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-slice-end.md
6817
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unnecessary-slice-end.md
6803
6818
  */
6804
6819
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>
6805
6820
  /**
6806
6821
  * Disallow unreadable array destructuring.
6807
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unreadable-array-destructuring.md
6822
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unreadable-array-destructuring.md
6808
6823
  */
6809
6824
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
6810
6825
  /**
6811
6826
  * Disallow unreadable IIFEs.
6812
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unreadable-iife.md
6827
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unreadable-iife.md
6813
6828
  */
6814
6829
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
6815
6830
  /**
6816
6831
  * Disallow unused object properties.
6817
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unused-properties.md
6832
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-unused-properties.md
6818
6833
  */
6819
6834
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
6820
6835
  /**
6821
6836
  * Disallow unnecessary `Error.captureStackTrace(…)`.
6822
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-error-capture-stack-trace.md
6837
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-error-capture-stack-trace.md
6823
6838
  */
6824
6839
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>
6825
6840
  /**
6826
6841
  * Disallow useless fallback when spreading in object literals.
6827
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-fallback-in-spread.md
6842
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-fallback-in-spread.md
6828
6843
  */
6829
6844
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
6830
6845
  /**
6831
6846
  * Disallow useless array length check.
6832
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-length-check.md
6847
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-length-check.md
6833
6848
  */
6834
6849
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
6835
6850
  /**
6836
6851
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
6837
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-promise-resolve-reject.md
6852
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-promise-resolve-reject.md
6838
6853
  */
6839
6854
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
6840
6855
  /**
6841
6856
  * Disallow unnecessary spread.
6842
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-spread.md
6857
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-spread.md
6843
6858
  */
6844
6859
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
6845
6860
  /**
6846
6861
  * Disallow useless case in switch statements.
6847
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-switch-case.md
6862
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-switch-case.md
6848
6863
  */
6849
6864
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
6850
6865
  /**
6851
6866
  * Disallow useless `undefined`.
6852
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-undefined.md
6867
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-useless-undefined.md
6853
6868
  */
6854
6869
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
6855
6870
  /**
6856
6871
  * Disallow number literals with zero fractions or dangling dots.
6857
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-zero-fractions.md
6872
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/no-zero-fractions.md
6858
6873
  */
6859
6874
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
6860
6875
  /**
6861
6876
  * Enforce proper case for numeric literals.
6862
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/number-literal-case.md
6877
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/number-literal-case.md
6863
6878
  */
6864
6879
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>
6865
6880
  /**
6866
6881
  * Enforce the style of numeric separators by correctly grouping digits.
6867
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/numeric-separators-style.md
6882
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/numeric-separators-style.md
6868
6883
  */
6869
6884
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
6870
6885
  /**
6871
6886
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
6872
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-add-event-listener.md
6887
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-add-event-listener.md
6873
6888
  */
6874
6889
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
6875
6890
  /**
6876
6891
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
6877
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-find.md
6892
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-find.md
6878
6893
  */
6879
6894
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
6880
6895
  /**
6881
6896
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
6882
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-flat.md
6897
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-flat.md
6883
6898
  */
6884
6899
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
6885
6900
  /**
6886
6901
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
6887
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-flat-map.md
6902
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-flat-map.md
6888
6903
  */
6889
6904
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
6890
6905
  /**
6891
6906
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
6892
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-index-of.md
6907
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-index-of.md
6893
6908
  */
6894
6909
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
6895
6910
  /**
6896
6911
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
6897
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-some.md
6912
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-array-some.md
6898
6913
  */
6899
6914
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
6900
6915
  /**
6901
6916
  * Prefer `.at()` method for index access and `String#charAt()`.
6902
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-at.md
6917
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-at.md
6903
6918
  */
6904
6919
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
6920
+ /**
6921
+ * Prefer `BigInt` literals over the constructor.
6922
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-bigint-literals.md
6923
+ */
6924
+ 'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>
6905
6925
  /**
6906
6926
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
6907
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-blob-reading-methods.md
6927
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-blob-reading-methods.md
6908
6928
  */
6909
6929
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
6910
6930
  /**
6911
6931
  * Prefer class field declarations over `this` assignments in constructors.
6912
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-class-fields.md
6932
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-class-fields.md
6913
6933
  */
6914
6934
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>
6935
+ /**
6936
+ * Prefer using `Element#classList.toggle()` to toggle class names.
6937
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-classlist-toggle.md
6938
+ */
6939
+ 'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>
6915
6940
  /**
6916
6941
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
6917
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-code-point.md
6942
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-code-point.md
6918
6943
  */
6919
6944
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
6920
6945
  /**
6921
6946
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
6922
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-date-now.md
6947
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-date-now.md
6923
6948
  */
6924
6949
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
6925
6950
  /**
6926
6951
  * Prefer default parameters over reassignment.
6927
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-default-parameters.md
6952
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-default-parameters.md
6928
6953
  */
6929
6954
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
6930
6955
  /**
6931
6956
  * Prefer `Node#append()` over `Node#appendChild()`.
6932
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-append.md
6957
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-append.md
6933
6958
  */
6934
6959
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
6935
6960
  /**
6936
6961
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
6937
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-dataset.md
6962
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-dataset.md
6938
6963
  */
6939
6964
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
6940
6965
  /**
6941
6966
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
6942
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-remove.md
6967
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-remove.md
6943
6968
  */
6944
6969
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
6945
6970
  /**
6946
6971
  * Prefer `.textContent` over `.innerText`.
6947
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-text-content.md
6972
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-dom-node-text-content.md
6948
6973
  */
6949
6974
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
6950
6975
  /**
6951
6976
  * Prefer `EventTarget` over `EventEmitter`.
6952
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-event-target.md
6977
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-event-target.md
6953
6978
  */
6954
6979
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
6955
6980
  /**
6956
6981
  * Prefer `export…from` when re-exporting.
6957
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-export-from.md
6982
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-export-from.md
6958
6983
  */
6959
6984
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
6960
6985
  /**
6961
6986
  * Prefer `globalThis` over `window`, `self`, and `global`.
6962
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-global-this.md
6987
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-global-this.md
6963
6988
  */
6964
6989
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
6965
6990
  /**
6966
6991
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
6967
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-import-meta-properties.md
6992
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-import-meta-properties.md
6968
6993
  */
6969
6994
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>
6970
6995
  /**
6971
6996
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
6972
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-includes.md
6997
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-includes.md
6973
6998
  */
6974
6999
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
6975
7000
  /**
6976
7001
  * Prefer reading a JSON file as a buffer.
6977
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-json-parse-buffer.md
7002
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-json-parse-buffer.md
6978
7003
  */
6979
7004
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
6980
7005
  /**
6981
7006
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
6982
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-keyboard-event-key.md
7007
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-keyboard-event-key.md
6983
7008
  */
6984
7009
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
6985
7010
  /**
6986
7011
  * Prefer using a logical operator over a ternary.
6987
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-logical-operator-over-ternary.md
7012
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-logical-operator-over-ternary.md
6988
7013
  */
6989
7014
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
6990
7015
  /**
6991
7016
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
6992
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-math-min-max.md
7017
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-math-min-max.md
6993
7018
  */
6994
7019
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
6995
7020
  /**
6996
7021
  * Enforce the use of `Math.trunc` instead of bitwise operators.
6997
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-math-trunc.md
7022
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-math-trunc.md
6998
7023
  */
6999
7024
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
7000
7025
  /**
7001
7026
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
7002
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-modern-dom-apis.md
7027
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-modern-dom-apis.md
7003
7028
  */
7004
7029
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
7005
7030
  /**
7006
7031
  * Prefer modern `Math` APIs over legacy patterns.
7007
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-modern-math-apis.md
7032
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-modern-math-apis.md
7008
7033
  */
7009
7034
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
7010
7035
  /**
7011
7036
  * Prefer JavaScript modules (ESM) over CommonJS.
7012
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-module.md
7037
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-module.md
7013
7038
  */
7014
7039
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
7015
7040
  /**
7016
7041
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
7017
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-native-coercion-functions.md
7042
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-native-coercion-functions.md
7018
7043
  */
7019
7044
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
7020
7045
  /**
7021
7046
  * Prefer negative index over `.length - index` when possible.
7022
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-negative-index.md
7047
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-negative-index.md
7023
7048
  */
7024
7049
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
7025
7050
  /**
7026
7051
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
7027
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-node-protocol.md
7052
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-node-protocol.md
7028
7053
  */
7029
7054
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
7030
7055
  /**
7031
7056
  * Prefer `Number` static properties over global ones.
7032
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-number-properties.md
7057
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-number-properties.md
7033
7058
  */
7034
7059
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
7035
7060
  /**
7036
7061
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
7037
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-object-from-entries.md
7062
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-object-from-entries.md
7038
7063
  */
7039
7064
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
7040
7065
  /**
7041
7066
  * Prefer omitting the `catch` binding parameter.
7042
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-optional-catch-binding.md
7067
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-optional-catch-binding.md
7043
7068
  */
7044
7069
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
7045
7070
  /**
7046
7071
  * Prefer borrowing methods from the prototype instead of the instance.
7047
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-prototype-methods.md
7072
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-prototype-methods.md
7048
7073
  */
7049
7074
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
7050
7075
  /**
7051
7076
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
7052
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-query-selector.md
7077
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-query-selector.md
7053
7078
  */
7054
7079
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
7055
7080
  /**
7056
7081
  * Prefer `Reflect.apply()` over `Function#apply()`.
7057
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-reflect-apply.md
7082
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-reflect-apply.md
7058
7083
  */
7059
7084
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
7060
7085
  /**
7061
7086
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
7062
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-regexp-test.md
7087
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-regexp-test.md
7063
7088
  */
7064
7089
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
7065
7090
  /**
7066
7091
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
7067
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-set-has.md
7092
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-set-has.md
7068
7093
  */
7069
7094
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
7070
7095
  /**
7071
7096
  * Prefer using `Set#size` instead of `Array#length`.
7072
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-set-size.md
7097
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-set-size.md
7073
7098
  */
7074
7099
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
7075
7100
  /**
7076
7101
  * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
7077
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-single-call.md
7102
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-single-call.md
7078
7103
  */
7079
7104
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>
7080
7105
  /**
7081
7106
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
7082
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-spread.md
7107
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-spread.md
7083
7108
  */
7084
7109
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
7085
7110
  /**
7086
7111
  * Prefer using the `String.raw` tag to avoid escaping `\`.
7087
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-raw.md
7112
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-raw.md
7088
7113
  */
7089
7114
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
7090
7115
  /**
7091
7116
  * Prefer `String#replaceAll()` over regex searches with the global flag.
7092
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-replace-all.md
7117
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-replace-all.md
7093
7118
  */
7094
7119
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
7095
7120
  /**
7096
7121
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
7097
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-slice.md
7122
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-slice.md
7098
7123
  */
7099
7124
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
7100
7125
  /**
7101
7126
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
7102
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-starts-ends-with.md
7127
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-starts-ends-with.md
7103
7128
  */
7104
7129
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
7105
7130
  /**
7106
7131
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
7107
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-trim-start-end.md
7132
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-string-trim-start-end.md
7108
7133
  */
7109
7134
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
7110
7135
  /**
7111
7136
  * Prefer using `structuredClone` to create a deep clone.
7112
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-structured-clone.md
7137
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-structured-clone.md
7113
7138
  */
7114
7139
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
7115
7140
  /**
7116
7141
  * Prefer `switch` over multiple `else-if`.
7117
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-switch.md
7142
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-switch.md
7118
7143
  */
7119
7144
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
7120
7145
  /**
7121
7146
  * Prefer ternary expressions over simple `if-else` statements.
7122
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-ternary.md
7147
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-ternary.md
7123
7148
  */
7124
7149
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
7125
7150
  /**
7126
7151
  * Prefer top-level await over top-level promises and async function calls.
7127
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-top-level-await.md
7152
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-top-level-await.md
7128
7153
  */
7129
7154
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
7130
7155
  /**
7131
7156
  * Enforce throwing `TypeError` in type checking conditions.
7132
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-type-error.md
7157
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prefer-type-error.md
7133
7158
  */
7134
7159
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
7135
7160
  /**
7136
7161
  * Prevent abbreviations.
7137
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prevent-abbreviations.md
7162
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/prevent-abbreviations.md
7138
7163
  */
7139
7164
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
7140
7165
  /**
7141
7166
  * Enforce consistent relative URL style.
7142
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/relative-url-style.md
7167
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/relative-url-style.md
7143
7168
  */
7144
7169
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
7145
7170
  /**
7146
7171
  * Enforce using the separator argument with `Array#join()`.
7147
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-array-join-separator.md
7172
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-array-join-separator.md
7148
7173
  */
7149
7174
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
7175
+ /**
7176
+ * Require non-empty module attributes for imports and exports
7177
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-module-attributes.md
7178
+ */
7179
+ 'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>
7150
7180
  /**
7151
7181
  * Require non-empty specifier list in import and export statements.
7152
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-module-specifiers.md
7182
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-module-specifiers.md
7153
7183
  */
7154
7184
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>
7155
7185
  /**
7156
7186
  * Enforce using the digits argument with `Number#toFixed()`.
7157
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-number-to-fixed-digits-argument.md
7187
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-number-to-fixed-digits-argument.md
7158
7188
  */
7159
7189
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
7160
7190
  /**
7161
7191
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
7162
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-post-message-target-origin.md
7192
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/require-post-message-target-origin.md
7163
7193
  */
7164
7194
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
7165
7195
  /**
7166
7196
  * Enforce better string content.
7167
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/string-content.md
7197
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/string-content.md
7168
7198
  */
7169
7199
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
7170
7200
  /**
7171
7201
  * Enforce consistent brace style for `case` clauses.
7172
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/switch-case-braces.md
7202
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/switch-case-braces.md
7173
7203
  */
7174
7204
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
7175
7205
  /**
7176
7206
  * Fix whitespace-insensitive template indentation.
7177
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/template-indent.md
7207
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/template-indent.md
7178
7208
  */
7179
7209
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
7180
7210
  /**
7181
7211
  * Enforce consistent case for text encoding identifiers.
7182
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/text-encoding-identifier-case.md
7212
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/text-encoding-identifier-case.md
7183
7213
  */
7184
7214
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
7185
7215
  /**
7186
7216
  * Require `new` when creating an error.
7187
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/throw-new-error.md
7217
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v61.0.2/docs/rules/throw-new-error.md
7188
7218
  */
7189
7219
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
7190
7220
  /**
@@ -10692,6 +10722,10 @@ type ImportPreferDefaultExport = []|[{
10692
10722
  type ImportPreferNamespaceImport = []|[{
10693
10723
  patterns?: string[]
10694
10724
  }]
10725
+ // ----- jsdoc/check-alignment -----
10726
+ type JsdocCheckAlignment = []|[{
10727
+ innerIndent?: number
10728
+ }]
10695
10729
  // ----- jsdoc/check-examples -----
10696
10730
  type JsdocCheckExamples = []|[{
10697
10731
  allowInlineConfig?: boolean
@@ -10981,6 +11015,7 @@ type JsdocRequireJsdoc = []|[{
10981
11015
  enableFixer?: boolean
10982
11016
  exemptEmptyConstructors?: boolean
10983
11017
  exemptEmptyFunctions?: boolean
11018
+ exemptOverloadedImplementations?: boolean
10984
11019
  fixerMessage?: string
10985
11020
  minLineCount?: number
10986
11021
  publicOnly?: (boolean | {
@@ -10997,6 +11032,7 @@ type JsdocRequireJsdoc = []|[{
10997
11032
  FunctionExpression?: boolean
10998
11033
  MethodDefinition?: boolean
10999
11034
  }
11035
+ skipInterveningOverloadedDeclarations?: boolean
11000
11036
  }]
11001
11037
  // ----- jsdoc/require-param -----
11002
11038
  type JsdocRequireParam = []|[{
@@ -11149,6 +11185,21 @@ type JsdocTextEscaping = []|[{
11149
11185
  escapeHTML?: boolean
11150
11186
  escapeMarkdown?: boolean
11151
11187
  }]
11188
+ // ----- jsdoc/type-formatting -----
11189
+ type JsdocTypeFormatting = []|[{
11190
+ arrayBrackets?: ("angle" | "square")
11191
+ enableFixer?: boolean
11192
+ genericDot?: boolean
11193
+ objectFieldIndent?: string
11194
+ objectFieldQuote?: ("double" | "single" | null)
11195
+ objectFieldSeparator?: ("comma" | "comma-and-linebreak" | "linebreak" | "semicolon" | "semicolon-and-linebreak")
11196
+ objectFieldSeparatorTrailingPunctuation?: boolean
11197
+ propertyQuotes?: ("double" | "single" | null)
11198
+ separatorForSingleObjectField?: boolean
11199
+ stringQuotes?: ("double" | "single")
11200
+ typeBracketSpacing?: string
11201
+ unionSpacing?: string
11202
+ }]
11152
11203
  // ----- jsdoc/valid-types -----
11153
11204
  type JsdocValidTypes = []|[{
11154
11205
  allowEmptyNamepaths?: boolean
@@ -16103,6 +16154,10 @@ type UnicornNoArrayReduce = []|[{
16103
16154
  type UnicornNoArrayReverse = []|[{
16104
16155
  allowExpressionStatement?: boolean
16105
16156
  }]
16157
+ // ----- unicorn/no-array-sort -----
16158
+ type UnicornNoArraySort = []|[{
16159
+ allowExpressionStatement?: boolean
16160
+ }]
16106
16161
  // ----- unicorn/no-instanceof-builtins -----
16107
16162
  type UnicornNoInstanceofBuiltins = []|[{
16108
16163
  useErrorIsError?: boolean
@@ -16676,7 +16731,9 @@ interface OptionsConfig extends OptionsComponentExtensions, OptionsSilentConsole
16676
16731
  sonarjs?: OptionsFiles & OptionsOverrides;
16677
16732
  storybook?: boolean | (OptionsFiles & OptionsOverrides);
16678
16733
  stylistic?: boolean | (OptionsFiles & OptionsOverrides & StylisticConfig);
16679
- tailwindcss?: boolean | (OptionsFiles & OptionsOverrides);
16734
+ tailwindcss?: boolean | "v3" | "v4" | (OptionsFiles & OptionsOverrides & {
16735
+ version?: "v3" | "v4";
16736
+ });
16680
16737
  tanstackQuery?: boolean | (OptionsFiles & OptionsOverrides);
16681
16738
  tanstackRouter?: boolean | (OptionsFiles & OptionsOverrides);
16682
16739
  testingLibrary?: boolean | (OptionsFiles & OptionsOverrides & OptionsPackageJson);