@2digits/eslint-config 4.7.2 → 4.7.3

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 (2) hide show
  1. package/dist/index.d.mts +167 -140
  2. package/package.json +14 -14
package/dist/index.d.mts CHANGED
@@ -1566,7 +1566,7 @@ interface RuleOptions {
1566
1566
  * Disallow data rows in a GitHub Flavored Markdown table from having more cells than the header row
1567
1567
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/table-column-count.md
1568
1568
  */
1569
- 'markdown/table-column-count'?: Linter.RuleEntry<[]>;
1569
+ 'markdown/table-column-count'?: Linter.RuleEntry<MarkdownTableColumnCount>;
1570
1570
  /**
1571
1571
  * Enforce a maximum number of classes per file
1572
1572
  * @see https://eslint.org/docs/latest/rules/max-classes-per-file
@@ -6653,670 +6653,690 @@ interface RuleOptions {
6653
6653
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
6654
6654
  /**
6655
6655
  * Improve regexes by making them shorter, consistent, and safer.
6656
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/better-regex.md
6656
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/better-regex.md
6657
6657
  */
6658
6658
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
6659
6659
  /**
6660
6660
  * Enforce a specific parameter name in catch clauses.
6661
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/catch-error-name.md
6661
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/catch-error-name.md
6662
6662
  */
6663
6663
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
6664
6664
  /**
6665
6665
  * Enforce consistent assertion style with `node:assert`.
6666
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-assert.md
6666
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-assert.md
6667
6667
  */
6668
6668
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
6669
6669
  /**
6670
6670
  * Prefer passing `Date` directly to the constructor when cloning.
6671
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-date-clone.md
6671
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-date-clone.md
6672
6672
  */
6673
6673
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
6674
6674
  /**
6675
6675
  * Use destructured variables over properties.
6676
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-destructuring.md
6676
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-destructuring.md
6677
6677
  */
6678
6678
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
6679
6679
  /**
6680
6680
  * Prefer consistent types when spreading a ternary in an array literal.
6681
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-empty-array-spread.md
6681
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-empty-array-spread.md
6682
6682
  */
6683
6683
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
6684
6684
  /**
6685
6685
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
6686
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-existence-index-check.md
6686
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-existence-index-check.md
6687
6687
  */
6688
6688
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
6689
6689
  /**
6690
6690
  * Move function definitions to the highest possible scope.
6691
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/consistent-function-scoping.md
6691
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-function-scoping.md
6692
6692
  */
6693
6693
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
6694
6694
  /**
6695
6695
  * Enforce correct `Error` subclassing.
6696
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/custom-error-definition.md
6696
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/custom-error-definition.md
6697
6697
  */
6698
6698
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
6699
6699
  /**
6700
6700
  * Enforce no spaces between braces.
6701
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/empty-brace-spaces.md
6701
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/empty-brace-spaces.md
6702
6702
  */
6703
6703
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
6704
6704
  /**
6705
6705
  * Enforce passing a `message` value when creating a built-in error.
6706
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/error-message.md
6706
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/error-message.md
6707
6707
  */
6708
6708
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
6709
6709
  /**
6710
6710
  * Require escape sequences to use uppercase or lowercase values.
6711
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/escape-case.md
6711
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/escape-case.md
6712
6712
  */
6713
6713
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
6714
6714
  /**
6715
6715
  * Add expiration conditions to TODO comments.
6716
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/expiring-todo-comments.md
6716
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/expiring-todo-comments.md
6717
6717
  */
6718
6718
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
6719
6719
  /**
6720
6720
  * Enforce explicitly comparing the `length` or `size` property of a value.
6721
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/explicit-length-check.md
6721
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/explicit-length-check.md
6722
6722
  */
6723
6723
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
6724
6724
  /**
6725
6725
  * Enforce a case style for filenames.
6726
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/filename-case.md
6726
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/filename-case.md
6727
6727
  */
6728
6728
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
6729
6729
  /**
6730
6730
  * Enforce specific import styles per module.
6731
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/import-style.md
6731
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/import-style.md
6732
6732
  */
6733
6733
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
6734
6734
  /**
6735
6735
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
6736
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/new-for-builtins.md
6736
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/new-for-builtins.md
6737
6737
  */
6738
6738
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
6739
6739
  /**
6740
6740
  * Enforce specifying rules to disable in `eslint-disable` comments.
6741
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-abusive-eslint-disable.md
6741
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-abusive-eslint-disable.md
6742
6742
  */
6743
6743
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
6744
6744
  /**
6745
6745
  * Disallow recursive access to `this` within getters and setters.
6746
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-accessor-recursion.md
6746
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-accessor-recursion.md
6747
6747
  */
6748
6748
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
6749
6749
  /**
6750
6750
  * Disallow anonymous functions and classes as the default export.
6751
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-anonymous-default-export.md
6751
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-anonymous-default-export.md
6752
6752
  */
6753
6753
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
6754
6754
  /**
6755
6755
  * Prevent passing a function reference directly to iterator methods.
6756
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-callback-reference.md
6756
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-callback-reference.md
6757
6757
  */
6758
6758
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
6759
6759
  /**
6760
6760
  * Prefer `for…of` over the `forEach` method.
6761
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-for-each.md
6761
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-for-each.md
6762
6762
  */
6763
6763
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
6764
6764
  /**
6765
6765
  * Disallow using the `this` argument in array methods.
6766
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-method-this-argument.md
6766
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-method-this-argument.md
6767
6767
  */
6768
6768
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
6769
6769
  /**
6770
6770
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
6771
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-array-push-push
6771
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/deprecated-rules.md#no-array-push-push
6772
6772
  * @deprecated
6773
6773
  */
6774
6774
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
6775
6775
  /**
6776
6776
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
6777
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-array-reduce.md
6777
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-reduce.md
6778
6778
  */
6779
6779
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
6780
+ /**
6781
+ * Prefer `Array#toReversed()` over `Array#reverse()`.
6782
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-reverse.md
6783
+ */
6784
+ 'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
6780
6785
  /**
6781
6786
  * Disallow member access from await expression.
6782
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-await-expression-member.md
6787
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-await-expression-member.md
6783
6788
  */
6784
6789
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
6785
6790
  /**
6786
6791
  * Disallow using `await` in `Promise` method parameters.
6787
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-await-in-promise-methods.md
6792
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-await-in-promise-methods.md
6788
6793
  */
6789
6794
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
6790
6795
  /**
6791
6796
  * Do not use leading/trailing space between `console.log` parameters.
6792
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-console-spaces.md
6797
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-console-spaces.md
6793
6798
  */
6794
6799
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
6795
6800
  /**
6796
6801
  * Do not use `document.cookie` directly.
6797
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-document-cookie.md
6802
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-document-cookie.md
6798
6803
  */
6799
6804
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
6800
6805
  /**
6801
6806
  * Disallow empty files.
6802
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-empty-file.md
6807
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-empty-file.md
6803
6808
  */
6804
6809
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
6805
6810
  /**
6806
6811
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
6807
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-for-loop.md
6812
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-for-loop.md
6808
6813
  */
6809
6814
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
6810
6815
  /**
6811
6816
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
6812
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-hex-escape.md
6817
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-hex-escape.md
6813
6818
  */
6814
6819
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
6815
6820
  /**
6816
6821
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
6817
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-instanceof-array
6822
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/deprecated-rules.md#no-instanceof-array
6818
6823
  * @deprecated
6819
6824
  */
6820
6825
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
6821
6826
  /**
6822
6827
  * Disallow `instanceof` with built-in objects
6823
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-instanceof-builtins.md
6828
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-instanceof-builtins.md
6824
6829
  */
6825
6830
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
6826
6831
  /**
6827
6832
  * Disallow invalid options in `fetch()` and `new Request()`.
6828
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-invalid-fetch-options.md
6833
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-invalid-fetch-options.md
6829
6834
  */
6830
6835
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
6831
6836
  /**
6832
6837
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
6833
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-invalid-remove-event-listener.md
6838
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-invalid-remove-event-listener.md
6834
6839
  */
6835
6840
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
6836
6841
  /**
6837
6842
  * Disallow identifiers starting with `new` or `class`.
6838
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-keyword-prefix.md
6843
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-keyword-prefix.md
6839
6844
  */
6840
6845
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
6841
6846
  /**
6842
6847
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
6843
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/deprecated-rules.md#no-length-as-slice-end
6848
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/deprecated-rules.md#no-length-as-slice-end
6844
6849
  * @deprecated
6845
6850
  */
6846
6851
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
6847
6852
  /**
6848
6853
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
6849
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-lonely-if.md
6854
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-lonely-if.md
6850
6855
  */
6851
6856
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
6852
6857
  /**
6853
6858
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
6854
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-magic-array-flat-depth.md
6859
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-magic-array-flat-depth.md
6855
6860
  */
6856
6861
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
6857
6862
  /**
6858
6863
  * Disallow named usage of default import and export.
6859
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-named-default.md
6864
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-named-default.md
6860
6865
  */
6861
6866
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
6862
6867
  /**
6863
6868
  * Disallow negated conditions.
6864
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-negated-condition.md
6869
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-negated-condition.md
6865
6870
  */
6866
6871
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
6867
6872
  /**
6868
6873
  * Disallow negated expression in equality check.
6869
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-negation-in-equality-check.md
6874
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-negation-in-equality-check.md
6870
6875
  */
6871
6876
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
6872
6877
  /**
6873
6878
  * Disallow nested ternary expressions.
6874
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-nested-ternary.md
6879
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-nested-ternary.md
6875
6880
  */
6876
6881
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
6877
6882
  /**
6878
6883
  * Disallow `new Array()`.
6879
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-new-array.md
6884
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-new-array.md
6880
6885
  */
6881
6886
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
6882
6887
  /**
6883
6888
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
6884
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-new-buffer.md
6889
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-new-buffer.md
6885
6890
  */
6886
6891
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
6887
6892
  /**
6888
6893
  * Disallow the use of the `null` literal.
6889
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-null.md
6894
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-null.md
6890
6895
  */
6891
6896
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
6892
6897
  /**
6893
6898
  * Disallow the use of objects as default parameters.
6894
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-object-as-default-parameter.md
6899
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-object-as-default-parameter.md
6895
6900
  */
6896
6901
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
6897
6902
  /**
6898
6903
  * Disallow `process.exit()`.
6899
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-process-exit.md
6904
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-process-exit.md
6900
6905
  */
6901
6906
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
6902
6907
  /**
6903
6908
  * Disallow passing single-element arrays to `Promise` methods.
6904
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-single-promise-in-promise-methods.md
6909
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-single-promise-in-promise-methods.md
6905
6910
  */
6906
6911
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
6907
6912
  /**
6908
6913
  * Disallow classes that only have static members.
6909
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-static-only-class.md
6914
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-static-only-class.md
6910
6915
  */
6911
6916
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
6912
6917
  /**
6913
6918
  * Disallow `then` property.
6914
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-thenable.md
6919
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-thenable.md
6915
6920
  */
6916
6921
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
6917
6922
  /**
6918
6923
  * Disallow assigning `this` to a variable.
6919
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-this-assignment.md
6924
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-this-assignment.md
6920
6925
  */
6921
6926
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
6922
6927
  /**
6923
6928
  * Disallow comparing `undefined` using `typeof`.
6924
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-typeof-undefined.md
6929
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-typeof-undefined.md
6925
6930
  */
6926
6931
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
6927
6932
  /**
6928
6933
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
6929
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-array-flat-depth.md
6934
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-array-flat-depth.md
6930
6935
  */
6931
6936
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
6932
6937
  /**
6933
6938
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
6934
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-array-splice-count.md
6939
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-array-splice-count.md
6935
6940
  */
6936
6941
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
6937
6942
  /**
6938
6943
  * Disallow awaiting non-promise values.
6939
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-await.md
6944
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-await.md
6940
6945
  */
6941
6946
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
6942
6947
  /**
6943
6948
  * Enforce the use of built-in methods instead of unnecessary polyfills.
6944
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-polyfills.md
6949
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-polyfills.md
6945
6950
  */
6946
6951
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
6947
6952
  /**
6948
6953
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
6949
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unnecessary-slice-end.md
6954
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-slice-end.md
6950
6955
  */
6951
6956
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
6952
6957
  /**
6953
6958
  * Disallow unreadable array destructuring.
6954
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unreadable-array-destructuring.md
6959
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unreadable-array-destructuring.md
6955
6960
  */
6956
6961
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
6957
6962
  /**
6958
6963
  * Disallow unreadable IIFEs.
6959
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unreadable-iife.md
6964
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unreadable-iife.md
6960
6965
  */
6961
6966
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
6962
6967
  /**
6963
6968
  * Disallow unused object properties.
6964
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-unused-properties.md
6969
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unused-properties.md
6965
6970
  */
6966
6971
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
6972
+ /**
6973
+ * Disallow unnecessary `Error.captureStackTrace(…)`.
6974
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-error-capture-stack-trace.md
6975
+ */
6976
+ 'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
6967
6977
  /**
6968
6978
  * Disallow useless fallback when spreading in object literals.
6969
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-fallback-in-spread.md
6979
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-fallback-in-spread.md
6970
6980
  */
6971
6981
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
6972
6982
  /**
6973
6983
  * Disallow useless array length check.
6974
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-length-check.md
6984
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-length-check.md
6975
6985
  */
6976
6986
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
6977
6987
  /**
6978
6988
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
6979
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-promise-resolve-reject.md
6989
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-promise-resolve-reject.md
6980
6990
  */
6981
6991
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
6982
6992
  /**
6983
6993
  * Disallow unnecessary spread.
6984
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-spread.md
6994
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-spread.md
6985
6995
  */
6986
6996
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
6987
6997
  /**
6988
6998
  * Disallow useless case in switch statements.
6989
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-switch-case.md
6999
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-switch-case.md
6990
7000
  */
6991
7001
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
6992
7002
  /**
6993
7003
  * Disallow useless `undefined`.
6994
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-useless-undefined.md
7004
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-undefined.md
6995
7005
  */
6996
7006
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
6997
7007
  /**
6998
7008
  * Disallow number literals with zero fractions or dangling dots.
6999
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/no-zero-fractions.md
7009
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-zero-fractions.md
7000
7010
  */
7001
7011
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
7002
7012
  /**
7003
7013
  * Enforce proper case for numeric literals.
7004
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/number-literal-case.md
7014
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/number-literal-case.md
7005
7015
  */
7006
7016
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
7007
7017
  /**
7008
7018
  * Enforce the style of numeric separators by correctly grouping digits.
7009
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/numeric-separators-style.md
7019
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/numeric-separators-style.md
7010
7020
  */
7011
7021
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
7012
7022
  /**
7013
7023
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
7014
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-add-event-listener.md
7024
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-add-event-listener.md
7015
7025
  */
7016
7026
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
7017
7027
  /**
7018
7028
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
7019
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-find.md
7029
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-find.md
7020
7030
  */
7021
7031
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
7022
7032
  /**
7023
7033
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
7024
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-flat.md
7034
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-flat.md
7025
7035
  */
7026
7036
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
7027
7037
  /**
7028
7038
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
7029
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-flat-map.md
7039
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-flat-map.md
7030
7040
  */
7031
7041
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
7032
7042
  /**
7033
7043
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
7034
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-index-of.md
7044
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-index-of.md
7035
7045
  */
7036
7046
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
7037
7047
  /**
7038
7048
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
7039
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-array-some.md
7049
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-some.md
7040
7050
  */
7041
7051
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
7042
7052
  /**
7043
7053
  * Prefer `.at()` method for index access and `String#charAt()`.
7044
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-at.md
7054
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-at.md
7045
7055
  */
7046
7056
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
7047
7057
  /**
7048
7058
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
7049
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-blob-reading-methods.md
7059
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-blob-reading-methods.md
7050
7060
  */
7051
7061
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
7062
+ /**
7063
+ * Prefer class field declarations over `this` assignments in constructors.
7064
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-class-fields.md
7065
+ */
7066
+ 'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
7052
7067
  /**
7053
7068
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
7054
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-code-point.md
7069
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-code-point.md
7055
7070
  */
7056
7071
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
7057
7072
  /**
7058
7073
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
7059
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-date-now.md
7074
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-date-now.md
7060
7075
  */
7061
7076
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
7062
7077
  /**
7063
7078
  * Prefer default parameters over reassignment.
7064
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-default-parameters.md
7079
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-default-parameters.md
7065
7080
  */
7066
7081
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
7067
7082
  /**
7068
7083
  * Prefer `Node#append()` over `Node#appendChild()`.
7069
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-append.md
7084
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-append.md
7070
7085
  */
7071
7086
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
7072
7087
  /**
7073
7088
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
7074
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-dataset.md
7089
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-dataset.md
7075
7090
  */
7076
7091
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
7077
7092
  /**
7078
7093
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
7079
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-remove.md
7094
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-remove.md
7080
7095
  */
7081
7096
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
7082
7097
  /**
7083
7098
  * Prefer `.textContent` over `.innerText`.
7084
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-dom-node-text-content.md
7099
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-text-content.md
7085
7100
  */
7086
7101
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
7087
7102
  /**
7088
7103
  * Prefer `EventTarget` over `EventEmitter`.
7089
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-event-target.md
7104
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-event-target.md
7090
7105
  */
7091
7106
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
7092
7107
  /**
7093
7108
  * Prefer `export…from` when re-exporting.
7094
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-export-from.md
7109
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-export-from.md
7095
7110
  */
7096
7111
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
7097
7112
  /**
7098
7113
  * Prefer `globalThis` over `window`, `self`, and `global`.
7099
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-global-this.md
7114
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-global-this.md
7100
7115
  */
7101
7116
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
7102
7117
  /**
7103
7118
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
7104
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-import-meta-properties.md
7119
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-import-meta-properties.md
7105
7120
  */
7106
7121
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
7107
7122
  /**
7108
7123
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
7109
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-includes.md
7124
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-includes.md
7110
7125
  */
7111
7126
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
7112
7127
  /**
7113
7128
  * Prefer reading a JSON file as a buffer.
7114
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-json-parse-buffer.md
7129
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-json-parse-buffer.md
7115
7130
  */
7116
7131
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
7117
7132
  /**
7118
7133
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
7119
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-keyboard-event-key.md
7134
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-keyboard-event-key.md
7120
7135
  */
7121
7136
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
7122
7137
  /**
7123
7138
  * Prefer using a logical operator over a ternary.
7124
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-logical-operator-over-ternary.md
7139
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-logical-operator-over-ternary.md
7125
7140
  */
7126
7141
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
7127
7142
  /**
7128
7143
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
7129
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-math-min-max.md
7144
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-math-min-max.md
7130
7145
  */
7131
7146
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
7132
7147
  /**
7133
7148
  * Enforce the use of `Math.trunc` instead of bitwise operators.
7134
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-math-trunc.md
7149
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-math-trunc.md
7135
7150
  */
7136
7151
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
7137
7152
  /**
7138
7153
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
7139
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-modern-dom-apis.md
7154
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-modern-dom-apis.md
7140
7155
  */
7141
7156
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
7142
7157
  /**
7143
7158
  * Prefer modern `Math` APIs over legacy patterns.
7144
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-modern-math-apis.md
7159
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-modern-math-apis.md
7145
7160
  */
7146
7161
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
7147
7162
  /**
7148
7163
  * Prefer JavaScript modules (ESM) over CommonJS.
7149
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-module.md
7164
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-module.md
7150
7165
  */
7151
7166
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
7152
7167
  /**
7153
7168
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
7154
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-native-coercion-functions.md
7169
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-native-coercion-functions.md
7155
7170
  */
7156
7171
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
7157
7172
  /**
7158
7173
  * Prefer negative index over `.length - index` when possible.
7159
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-negative-index.md
7174
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-negative-index.md
7160
7175
  */
7161
7176
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
7162
7177
  /**
7163
7178
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
7164
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-node-protocol.md
7179
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-node-protocol.md
7165
7180
  */
7166
7181
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
7167
7182
  /**
7168
7183
  * Prefer `Number` static properties over global ones.
7169
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-number-properties.md
7184
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-number-properties.md
7170
7185
  */
7171
7186
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
7172
7187
  /**
7173
7188
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
7174
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-object-from-entries.md
7189
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-object-from-entries.md
7175
7190
  */
7176
7191
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
7177
7192
  /**
7178
7193
  * Prefer omitting the `catch` binding parameter.
7179
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-optional-catch-binding.md
7194
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-optional-catch-binding.md
7180
7195
  */
7181
7196
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
7182
7197
  /**
7183
7198
  * Prefer borrowing methods from the prototype instead of the instance.
7184
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-prototype-methods.md
7199
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-prototype-methods.md
7185
7200
  */
7186
7201
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
7187
7202
  /**
7188
7203
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
7189
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-query-selector.md
7204
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-query-selector.md
7190
7205
  */
7191
7206
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
7192
7207
  /**
7193
7208
  * Prefer `Reflect.apply()` over `Function#apply()`.
7194
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-reflect-apply.md
7209
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-reflect-apply.md
7195
7210
  */
7196
7211
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
7197
7212
  /**
7198
7213
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
7199
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-regexp-test.md
7214
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-regexp-test.md
7200
7215
  */
7201
7216
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
7202
7217
  /**
7203
7218
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
7204
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-set-has.md
7219
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-set-has.md
7205
7220
  */
7206
7221
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
7207
7222
  /**
7208
7223
  * Prefer using `Set#size` instead of `Array#length`.
7209
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-set-size.md
7224
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-set-size.md
7210
7225
  */
7211
7226
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
7212
7227
  /**
7213
7228
  * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
7214
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-single-call.md
7229
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-single-call.md
7215
7230
  */
7216
7231
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
7217
7232
  /**
7218
7233
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
7219
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-spread.md
7234
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-spread.md
7220
7235
  */
7221
7236
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
7222
7237
  /**
7223
7238
  * Prefer using the `String.raw` tag to avoid escaping `\`.
7224
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-raw.md
7239
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-raw.md
7225
7240
  */
7226
7241
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
7227
7242
  /**
7228
7243
  * Prefer `String#replaceAll()` over regex searches with the global flag.
7229
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-replace-all.md
7244
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-replace-all.md
7230
7245
  */
7231
7246
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
7232
7247
  /**
7233
7248
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
7234
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-slice.md
7249
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-slice.md
7235
7250
  */
7236
7251
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
7237
7252
  /**
7238
7253
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
7239
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-starts-ends-with.md
7254
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-starts-ends-with.md
7240
7255
  */
7241
7256
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
7242
7257
  /**
7243
7258
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
7244
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-string-trim-start-end.md
7259
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-trim-start-end.md
7245
7260
  */
7246
7261
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
7247
7262
  /**
7248
7263
  * Prefer using `structuredClone` to create a deep clone.
7249
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-structured-clone.md
7264
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-structured-clone.md
7250
7265
  */
7251
7266
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
7252
7267
  /**
7253
7268
  * Prefer `switch` over multiple `else-if`.
7254
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-switch.md
7269
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-switch.md
7255
7270
  */
7256
7271
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
7257
7272
  /**
7258
7273
  * Prefer ternary expressions over simple `if-else` statements.
7259
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-ternary.md
7274
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-ternary.md
7260
7275
  */
7261
7276
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
7262
7277
  /**
7263
7278
  * Prefer top-level await over top-level promises and async function calls.
7264
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-top-level-await.md
7279
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-top-level-await.md
7265
7280
  */
7266
7281
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
7267
7282
  /**
7268
7283
  * Enforce throwing `TypeError` in type checking conditions.
7269
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prefer-type-error.md
7284
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-type-error.md
7270
7285
  */
7271
7286
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
7272
7287
  /**
7273
7288
  * Prevent abbreviations.
7274
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/prevent-abbreviations.md
7289
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prevent-abbreviations.md
7275
7290
  */
7276
7291
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
7277
7292
  /**
7278
7293
  * Enforce consistent relative URL style.
7279
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/relative-url-style.md
7294
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/relative-url-style.md
7280
7295
  */
7281
7296
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
7282
7297
  /**
7283
7298
  * Enforce using the separator argument with `Array#join()`.
7284
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-array-join-separator.md
7299
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-array-join-separator.md
7285
7300
  */
7286
7301
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
7302
+ /**
7303
+ * Require non-empty specifier list in import and export statements.
7304
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-module-specifiers.md
7305
+ */
7306
+ 'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
7287
7307
  /**
7288
7308
  * Enforce using the digits argument with `Number#toFixed()`.
7289
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-number-to-fixed-digits-argument.md
7309
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-number-to-fixed-digits-argument.md
7290
7310
  */
7291
7311
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
7292
7312
  /**
7293
7313
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
7294
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/require-post-message-target-origin.md
7314
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-post-message-target-origin.md
7295
7315
  */
7296
7316
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
7297
7317
  /**
7298
7318
  * Enforce better string content.
7299
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/string-content.md
7319
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/string-content.md
7300
7320
  */
7301
7321
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
7302
7322
  /**
7303
7323
  * Enforce consistent brace style for `case` clauses.
7304
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/switch-case-braces.md
7324
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/switch-case-braces.md
7305
7325
  */
7306
7326
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
7307
7327
  /**
7308
7328
  * Fix whitespace-insensitive template indentation.
7309
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/template-indent.md
7329
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/template-indent.md
7310
7330
  */
7311
7331
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
7312
7332
  /**
7313
7333
  * Enforce consistent case for text encoding identifiers.
7314
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/text-encoding-identifier-case.md
7334
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/text-encoding-identifier-case.md
7315
7335
  */
7316
7336
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>;
7317
7337
  /**
7318
7338
  * Require `new` when creating an error.
7319
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v59.0.1/docs/rules/throw-new-error.md
7339
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/throw-new-error.md
7320
7340
  */
7321
7341
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
7322
7342
  /**
@@ -9203,6 +9223,10 @@ type MarkdownNoUnusedDefinitions = [] | [{
9203
9223
  allowDefinitions?: string[];
9204
9224
  allowFootnoteDefinitions?: string[];
9205
9225
  }];
9226
+ // ----- markdown/table-column-count -----
9227
+ type MarkdownTableColumnCount = [] | [{
9228
+ checkMissingCells?: boolean;
9229
+ }];
9206
9230
  // ----- max-classes-per-file -----
9207
9231
  type MaxClassesPerFile = [] | [(number | {
9208
9232
  ignoreExpressions?: boolean;
@@ -11585,11 +11609,12 @@ type StylisticPaddedBlocks = [] | [(("always" | "never" | "start" | "end") | {
11585
11609
  }];
11586
11610
  // ----- stylistic/padding-line-between-statements -----
11587
11611
  type _StylisticPaddingLineBetweenStatementsPaddingType = ("any" | "never" | "always");
11588
- type _StylisticPaddingLineBetweenStatementsStatementType = (("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-export" | "multiline-let" | "multiline-using" | "multiline-var" | "singleline-const" | "singleline-export" | "singleline-let" | "singleline-using" | "singleline-var" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "using" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload") | [("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-export" | "multiline-let" | "multiline-using" | "multiline-var" | "singleline-const" | "singleline-export" | "singleline-let" | "singleline-using" | "singleline-var" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "using" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload"), ...(("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-export" | "multiline-let" | "multiline-using" | "multiline-var" | "singleline-const" | "singleline-export" | "singleline-let" | "singleline-using" | "singleline-var" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "using" | "var" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload"))[]]);
11612
+ type _StylisticPaddingLineBetweenStatementsStatementOption = (_StylisticPaddingLineBetweenStatementsStatementType | [_StylisticPaddingLineBetweenStatementsStatementType, ...(_StylisticPaddingLineBetweenStatementsStatementType)[]]);
11613
+ type _StylisticPaddingLineBetweenStatementsStatementType = ("*" | "exports" | "require" | "directive" | "iife" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "continue" | "debugger" | "default" | "do" | "for" | "if" | "import" | "return" | "switch" | "throw" | "try" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload" | "block-like" | "singleline-block-like" | "multiline-block-like" | "expression" | "singleline-expression" | "multiline-expression" | "export" | "singleline-export" | "multiline-export" | "var" | "singleline-var" | "multiline-var" | "let" | "singleline-let" | "multiline-let" | "const" | "singleline-const" | "multiline-const" | "using" | "singleline-using" | "multiline-using");
11589
11614
  type StylisticPaddingLineBetweenStatements = {
11590
11615
  blankLine: _StylisticPaddingLineBetweenStatementsPaddingType;
11591
- prev: _StylisticPaddingLineBetweenStatementsStatementType;
11592
- next: _StylisticPaddingLineBetweenStatementsStatementType;
11616
+ prev: _StylisticPaddingLineBetweenStatementsStatementOption;
11617
+ next: _StylisticPaddingLineBetweenStatementsStatementOption;
11593
11618
  }[];
11594
11619
  // ----- stylistic/quote-props -----
11595
11620
  type StylisticQuoteProps = ([] | [("always" | "as-needed" | "consistent" | "consistent-as-needed")] | [] | [("always" | "as-needed" | "consistent" | "consistent-as-needed")] | [("always" | "as-needed" | "consistent" | "consistent-as-needed"), {
@@ -12575,7 +12600,6 @@ type TsPreferDestructuring = [] | [({
12575
12600
  }), {
12576
12601
  enforceForDeclarationWithTypeAnnotation?: boolean;
12577
12602
  enforceForRenamedProperties?: boolean;
12578
- [k: string]: unknown | undefined;
12579
12603
  }];
12580
12604
  // ----- ts/prefer-literal-enum-member -----
12581
12605
  type TsPreferLiteralEnumMember = [] | [{
@@ -12593,7 +12617,6 @@ type TsPreferNullishCoalescing = [] | [{
12593
12617
  boolean?: boolean;
12594
12618
  number?: boolean;
12595
12619
  string?: boolean;
12596
- [k: string]: unknown | undefined;
12597
12620
  } | true);
12598
12621
  ignoreTernaryTests?: boolean;
12599
12622
  }];
@@ -12807,6 +12830,10 @@ interface _UnicornImportStyle_BooleanObject {
12807
12830
  type UnicornNoArrayReduce = [] | [{
12808
12831
  allowSimpleOperations?: boolean;
12809
12832
  }];
12833
+ // ----- unicorn/no-array-reverse -----
12834
+ type UnicornNoArrayReverse = [] | [{
12835
+ allowExpressionStatement?: boolean;
12836
+ }];
12810
12837
  // ----- unicorn/no-instanceof-builtins -----
12811
12838
  type UnicornNoInstanceofBuiltins = [] | [{
12812
12839
  useErrorIsError?: boolean;
@@ -13269,4 +13296,4 @@ interface ESLint2DigitsOptions {
13269
13296
  }
13270
13297
  declare function twoDigits(options?: ESLint2DigitsOptions, ...userConfig: Array<TypedFlatConfigItem>): Promise<Array<TypedFlatConfigItem>>;
13271
13298
  //#endregion
13272
- export { ConfigNames, OptionsOverrides, OptionsTypeScriptWithTypes, OptionsWithDrizzle, OptionsWithFiles, OptionsWithIgnores, OptionsWithReact, OptionsWithStorybook, Rules, TypedFlatConfigItem, twoDigits as default, twoDigits };
13299
+ export { type ConfigNames, OptionsOverrides, OptionsTypeScriptWithTypes, OptionsWithDrizzle, OptionsWithFiles, OptionsWithIgnores, OptionsWithReact, OptionsWithStorybook, Rules, TypedFlatConfigItem, twoDigits as default, twoDigits };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2digits/eslint-config",
3
- "version": "4.7.2",
3
+ "version": "4.7.3",
4
4
  "description": "Effortlessly enforce best practices and catch errors with this comprehensive ESLint configuration for TypeScript, featuring popular plugins like @typescript-eslint, eslint-plugin-react, and eslint-plugin-unicorn.",
5
5
  "homepage": "https://2d-configs.vercel.app/",
6
6
  "repository": {
@@ -31,15 +31,15 @@
31
31
  "@eslint/compat": "1.3.1",
32
32
  "@eslint/css": "0.10.0",
33
33
  "@eslint/js": "9.31.0",
34
- "@eslint/markdown": "7.0.0",
34
+ "@eslint/markdown": "7.1.0",
35
35
  "@graphql-eslint/eslint-plugin": "4.4.0",
36
- "@next/eslint-plugin-next": "15.4.1",
37
- "@stylistic/eslint-plugin": "5.2.0",
36
+ "@next/eslint-plugin-next": "15.4.3",
37
+ "@stylistic/eslint-plugin": "5.2.2",
38
38
  "@tanstack/eslint-plugin-query": "5.81.2",
39
- "@typescript-eslint/parser": "8.37.0",
40
- "@typescript-eslint/utils": "8.37.0",
39
+ "@typescript-eslint/parser": "8.38.0",
40
+ "@typescript-eslint/utils": "8.38.0",
41
41
  "eslint-config-flat-gitignore": "2.1.0",
42
- "eslint-config-prettier": "10.1.5",
42
+ "eslint-config-prettier": "10.1.8",
43
43
  "eslint-flat-config-utils": "2.1.0",
44
44
  "eslint-merge-processors": "2.0.0",
45
45
  "eslint-plugin-antfu": "3.1.1",
@@ -49,15 +49,15 @@
49
49
  "eslint-plugin-jsdoc": "51.4.1",
50
50
  "eslint-plugin-jsonc": "2.20.1",
51
51
  "eslint-plugin-n": "17.21.0",
52
- "eslint-plugin-pnpm": "1.0.0",
52
+ "eslint-plugin-pnpm": "1.1.0",
53
53
  "eslint-plugin-react-compiler": "19.1.0-rc.2",
54
54
  "eslint-plugin-react-hooks": "5.2.0",
55
55
  "eslint-plugin-regexp": "2.9.0",
56
56
  "eslint-plugin-sonarjs": "3.0.4",
57
- "eslint-plugin-storybook": "9.0.17",
57
+ "eslint-plugin-storybook": "9.0.18",
58
58
  "eslint-plugin-tailwindcss": "3.18.2",
59
59
  "eslint-plugin-turbo": "2.5.5",
60
- "eslint-plugin-unicorn": "59.0.1",
60
+ "eslint-plugin-unicorn": "60.0.0",
61
61
  "eslint-plugin-yml": "1.18.0",
62
62
  "find-up": "7.0.0",
63
63
  "globals": "16.3.0",
@@ -65,10 +65,10 @@
65
65
  "jsonc-eslint-parser": "2.4.0",
66
66
  "local-pkg": "1.1.1",
67
67
  "tailwind-csstree": "0.1.1",
68
- "typescript-eslint": "8.37.0",
68
+ "typescript-eslint": "8.38.0",
69
69
  "yaml-eslint-parser": "1.3.0",
70
- "@2digits/eslint-plugin": "3.1.11",
71
- "@2digits/constants": "1.1.3"
70
+ "@2digits/constants": "1.1.4",
71
+ "@2digits/eslint-plugin": "3.1.12"
72
72
  },
73
73
  "devDependencies": {
74
74
  "@eslint/config-inspector": "1.1.0",
@@ -79,7 +79,7 @@
79
79
  "execa": "9.6.0",
80
80
  "react": "19.1.0",
81
81
  "tinyglobby": "0.2.14",
82
- "tsdown": "0.12.9",
82
+ "tsdown": "0.13.0",
83
83
  "typescript": "5.8.3",
84
84
  "vitest": "3.2.4",
85
85
  "@2digits/tsconfig": "0.8.0"