@2digits/eslint-config 4.7.1 → 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.
package/dist/index.d.mts CHANGED
@@ -262,16 +262,26 @@ interface RuleOptions {
262
262
  * @see https://github.com/eslint/css/blob/main/docs/rules/no-important.md
263
263
  */
264
264
  'css/no-important'?: Linter.RuleEntry<[]>;
265
+ /**
266
+ * Disallow invalid placement of at-rules
267
+ * @see https://github.com/eslint/css/blob/main/docs/rules/no-invalid-at-rule-placement.md
268
+ */
269
+ 'css/no-invalid-at-rule-placement'?: Linter.RuleEntry<[]>;
265
270
  /**
266
271
  * Disallow invalid at-rules
267
272
  * @see https://github.com/eslint/css/blob/main/docs/rules/no-invalid-at-rules.md
268
273
  */
269
274
  'css/no-invalid-at-rules'?: Linter.RuleEntry<[]>;
275
+ /**
276
+ * Disallow invalid named grid areas
277
+ * @see https://github.com/eslint/css/blob/main/docs/rules/no-invalid-named-grid-areas.md
278
+ */
279
+ 'css/no-invalid-named-grid-areas'?: Linter.RuleEntry<[]>;
270
280
  /**
271
281
  * Disallow invalid properties
272
282
  * @see https://github.com/eslint/css/blob/main/docs/rules/no-invalid-properties.md
273
283
  */
274
- 'css/no-invalid-properties'?: Linter.RuleEntry<[]>;
284
+ 'css/no-invalid-properties'?: Linter.RuleEntry<CssNoInvalidProperties>;
275
285
  /**
276
286
  * Enforce the use of logical properties
277
287
  * @see https://github.com/eslint/css/blob/main/docs/rules/prefer-logical-properties.md
@@ -1496,7 +1506,7 @@ interface RuleOptions {
1496
1506
  * Disallow empty definitions
1497
1507
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-definitions.md
1498
1508
  */
1499
- 'markdown/no-empty-definitions'?: Linter.RuleEntry<[]>;
1509
+ 'markdown/no-empty-definitions'?: Linter.RuleEntry<MarkdownNoEmptyDefinitions>;
1500
1510
  /**
1501
1511
  * Disallow empty images
1502
1512
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-images.md
@@ -1542,6 +1552,11 @@ interface RuleOptions {
1542
1552
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-reversed-media-syntax.md
1543
1553
  */
1544
1554
  'markdown/no-reversed-media-syntax'?: Linter.RuleEntry<[]>;
1555
+ /**
1556
+ * Disallow unused definitions
1557
+ * @see https://github.com/eslint/markdown/blob/main/docs/rules/no-unused-definitions.md
1558
+ */
1559
+ 'markdown/no-unused-definitions'?: Linter.RuleEntry<MarkdownNoUnusedDefinitions>;
1545
1560
  /**
1546
1561
  * Require alternative text for images
1547
1562
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/require-alt-text.md
@@ -1551,7 +1566,7 @@ interface RuleOptions {
1551
1566
  * Disallow data rows in a GitHub Flavored Markdown table from having more cells than the header row
1552
1567
  * @see https://github.com/eslint/markdown/blob/main/docs/rules/table-column-count.md
1553
1568
  */
1554
- 'markdown/table-column-count'?: Linter.RuleEntry<[]>;
1569
+ 'markdown/table-column-count'?: Linter.RuleEntry<MarkdownTableColumnCount>;
1555
1570
  /**
1556
1571
  * Enforce a maximum number of classes per file
1557
1572
  * @see https://eslint.org/docs/latest/rules/max-classes-per-file
@@ -1666,7 +1681,7 @@ interface RuleOptions {
1666
1681
  */
1667
1682
  'next/no-assign-module-variable'?: Linter.RuleEntry<[]>;
1668
1683
  /**
1669
- * Prevent client components from being async functions.
1684
+ * Prevent Client Components from being async functions.
1670
1685
  * @see https://nextjs.org/docs/messages/no-async-client-component
1671
1686
  */
1672
1687
  'next/no-async-client-component'?: Linter.RuleEntry<[]>;
@@ -1818,7 +1833,7 @@ interface RuleOptions {
1818
1833
  */
1819
1834
  'no-console'?: Linter.RuleEntry<NoConsole>;
1820
1835
  /**
1821
- * Disallow reassigning `const` variables
1836
+ * Disallow reassigning `const`, `using`, and `await using` variables
1822
1837
  * @see https://eslint.org/docs/latest/rules/no-const-assign
1823
1838
  */
1824
1839
  'no-const-assign'?: Linter.RuleEntry<[]>;
@@ -6638,670 +6653,690 @@ interface RuleOptions {
6638
6653
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
6639
6654
  /**
6640
6655
  * Improve regexes by making them shorter, consistent, and safer.
6641
- * @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
6642
6657
  */
6643
6658
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>;
6644
6659
  /**
6645
6660
  * Enforce a specific parameter name in catch clauses.
6646
- * @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
6647
6662
  */
6648
6663
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
6649
6664
  /**
6650
6665
  * Enforce consistent assertion style with `node:assert`.
6651
- * @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
6652
6667
  */
6653
6668
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
6654
6669
  /**
6655
6670
  * Prefer passing `Date` directly to the constructor when cloning.
6656
- * @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
6657
6672
  */
6658
6673
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
6659
6674
  /**
6660
6675
  * Use destructured variables over properties.
6661
- * @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
6662
6677
  */
6663
6678
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
6664
6679
  /**
6665
6680
  * Prefer consistent types when spreading a ternary in an array literal.
6666
- * @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
6667
6682
  */
6668
6683
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
6669
6684
  /**
6670
6685
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
6671
- * @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
6672
6687
  */
6673
6688
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
6674
6689
  /**
6675
6690
  * Move function definitions to the highest possible scope.
6676
- * @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
6677
6692
  */
6678
6693
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
6679
6694
  /**
6680
6695
  * Enforce correct `Error` subclassing.
6681
- * @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
6682
6697
  */
6683
6698
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
6684
6699
  /**
6685
6700
  * Enforce no spaces between braces.
6686
- * @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
6687
6702
  */
6688
6703
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
6689
6704
  /**
6690
6705
  * Enforce passing a `message` value when creating a built-in error.
6691
- * @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
6692
6707
  */
6693
6708
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
6694
6709
  /**
6695
6710
  * Require escape sequences to use uppercase or lowercase values.
6696
- * @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
6697
6712
  */
6698
6713
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
6699
6714
  /**
6700
6715
  * Add expiration conditions to TODO comments.
6701
- * @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
6702
6717
  */
6703
6718
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
6704
6719
  /**
6705
6720
  * Enforce explicitly comparing the `length` or `size` property of a value.
6706
- * @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
6707
6722
  */
6708
6723
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
6709
6724
  /**
6710
6725
  * Enforce a case style for filenames.
6711
- * @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
6712
6727
  */
6713
6728
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
6714
6729
  /**
6715
6730
  * Enforce specific import styles per module.
6716
- * @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
6717
6732
  */
6718
6733
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
6719
6734
  /**
6720
6735
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
6721
- * @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
6722
6737
  */
6723
6738
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
6724
6739
  /**
6725
6740
  * Enforce specifying rules to disable in `eslint-disable` comments.
6726
- * @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
6727
6742
  */
6728
6743
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
6729
6744
  /**
6730
6745
  * Disallow recursive access to `this` within getters and setters.
6731
- * @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
6732
6747
  */
6733
6748
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
6734
6749
  /**
6735
6750
  * Disallow anonymous functions and classes as the default export.
6736
- * @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
6737
6752
  */
6738
6753
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
6739
6754
  /**
6740
6755
  * Prevent passing a function reference directly to iterator methods.
6741
- * @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
6742
6757
  */
6743
6758
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>;
6744
6759
  /**
6745
6760
  * Prefer `for…of` over the `forEach` method.
6746
- * @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
6747
6762
  */
6748
6763
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>;
6749
6764
  /**
6750
6765
  * Disallow using the `this` argument in array methods.
6751
- * @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
6752
6767
  */
6753
6768
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
6754
6769
  /**
6755
6770
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
6756
- * @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
6757
6772
  * @deprecated
6758
6773
  */
6759
6774
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
6760
6775
  /**
6761
6776
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
6762
- * @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
6763
6778
  */
6764
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>;
6765
6785
  /**
6766
6786
  * Disallow member access from await expression.
6767
- * @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
6768
6788
  */
6769
6789
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
6770
6790
  /**
6771
6791
  * Disallow using `await` in `Promise` method parameters.
6772
- * @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
6773
6793
  */
6774
6794
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
6775
6795
  /**
6776
6796
  * Do not use leading/trailing space between `console.log` parameters.
6777
- * @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
6778
6798
  */
6779
6799
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
6780
6800
  /**
6781
6801
  * Do not use `document.cookie` directly.
6782
- * @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
6783
6803
  */
6784
6804
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
6785
6805
  /**
6786
6806
  * Disallow empty files.
6787
- * @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
6788
6808
  */
6789
6809
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>;
6790
6810
  /**
6791
6811
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
6792
- * @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
6793
6813
  */
6794
6814
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
6795
6815
  /**
6796
6816
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
6797
- * @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
6798
6818
  */
6799
6819
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
6800
6820
  /**
6801
6821
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
6802
- * @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
6803
6823
  * @deprecated
6804
6824
  */
6805
6825
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
6806
6826
  /**
6807
6827
  * Disallow `instanceof` with built-in objects
6808
- * @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
6809
6829
  */
6810
6830
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
6811
6831
  /**
6812
6832
  * Disallow invalid options in `fetch()` and `new Request()`.
6813
- * @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
6814
6834
  */
6815
6835
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
6816
6836
  /**
6817
6837
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
6818
- * @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
6819
6839
  */
6820
6840
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
6821
6841
  /**
6822
6842
  * Disallow identifiers starting with `new` or `class`.
6823
- * @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
6824
6844
  */
6825
6845
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
6826
6846
  /**
6827
6847
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
6828
- * @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
6829
6849
  * @deprecated
6830
6850
  */
6831
6851
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
6832
6852
  /**
6833
6853
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
6834
- * @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
6835
6855
  */
6836
6856
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
6837
6857
  /**
6838
6858
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
6839
- * @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
6840
6860
  */
6841
6861
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
6842
6862
  /**
6843
6863
  * Disallow named usage of default import and export.
6844
- * @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
6845
6865
  */
6846
6866
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
6847
6867
  /**
6848
6868
  * Disallow negated conditions.
6849
- * @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
6850
6870
  */
6851
6871
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
6852
6872
  /**
6853
6873
  * Disallow negated expression in equality check.
6854
- * @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
6855
6875
  */
6856
6876
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
6857
6877
  /**
6858
6878
  * Disallow nested ternary expressions.
6859
- * @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
6860
6880
  */
6861
6881
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
6862
6882
  /**
6863
6883
  * Disallow `new Array()`.
6864
- * @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
6865
6885
  */
6866
6886
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
6867
6887
  /**
6868
6888
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
6869
- * @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
6870
6890
  */
6871
6891
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
6872
6892
  /**
6873
6893
  * Disallow the use of the `null` literal.
6874
- * @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
6875
6895
  */
6876
6896
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
6877
6897
  /**
6878
6898
  * Disallow the use of objects as default parameters.
6879
- * @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
6880
6900
  */
6881
6901
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
6882
6902
  /**
6883
6903
  * Disallow `process.exit()`.
6884
- * @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
6885
6905
  */
6886
6906
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
6887
6907
  /**
6888
6908
  * Disallow passing single-element arrays to `Promise` methods.
6889
- * @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
6890
6910
  */
6891
6911
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
6892
6912
  /**
6893
6913
  * Disallow classes that only have static members.
6894
- * @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
6895
6915
  */
6896
6916
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
6897
6917
  /**
6898
6918
  * Disallow `then` property.
6899
- * @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
6900
6920
  */
6901
6921
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
6902
6922
  /**
6903
6923
  * Disallow assigning `this` to a variable.
6904
- * @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
6905
6925
  */
6906
6926
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
6907
6927
  /**
6908
6928
  * Disallow comparing `undefined` using `typeof`.
6909
- * @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
6910
6930
  */
6911
6931
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
6912
6932
  /**
6913
6933
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
6914
- * @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
6915
6935
  */
6916
6936
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
6917
6937
  /**
6918
6938
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
6919
- * @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
6920
6940
  */
6921
6941
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
6922
6942
  /**
6923
6943
  * Disallow awaiting non-promise values.
6924
- * @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
6925
6945
  */
6926
6946
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
6927
6947
  /**
6928
6948
  * Enforce the use of built-in methods instead of unnecessary polyfills.
6929
- * @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
6930
6950
  */
6931
6951
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
6932
6952
  /**
6933
6953
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
6934
- * @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
6935
6955
  */
6936
6956
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
6937
6957
  /**
6938
6958
  * Disallow unreadable array destructuring.
6939
- * @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
6940
6960
  */
6941
6961
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>;
6942
6962
  /**
6943
6963
  * Disallow unreadable IIFEs.
6944
- * @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
6945
6965
  */
6946
6966
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
6947
6967
  /**
6948
6968
  * Disallow unused object properties.
6949
- * @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
6950
6970
  */
6951
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<[]>;
6952
6977
  /**
6953
6978
  * Disallow useless fallback when spreading in object literals.
6954
- * @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
6955
6980
  */
6956
6981
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
6957
6982
  /**
6958
6983
  * Disallow useless array length check.
6959
- * @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
6960
6985
  */
6961
6986
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
6962
6987
  /**
6963
6988
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
6964
- * @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
6965
6990
  */
6966
6991
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
6967
6992
  /**
6968
6993
  * Disallow unnecessary spread.
6969
- * @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
6970
6995
  */
6971
6996
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
6972
6997
  /**
6973
6998
  * Disallow useless case in switch statements.
6974
- * @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
6975
7000
  */
6976
7001
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
6977
7002
  /**
6978
7003
  * Disallow useless `undefined`.
6979
- * @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
6980
7005
  */
6981
7006
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
6982
7007
  /**
6983
7008
  * Disallow number literals with zero fractions or dangling dots.
6984
- * @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
6985
7010
  */
6986
7011
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
6987
7012
  /**
6988
7013
  * Enforce proper case for numeric literals.
6989
- * @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
6990
7015
  */
6991
7016
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
6992
7017
  /**
6993
7018
  * Enforce the style of numeric separators by correctly grouping digits.
6994
- * @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
6995
7020
  */
6996
7021
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
6997
7022
  /**
6998
7023
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
6999
- * @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
7000
7025
  */
7001
7026
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
7002
7027
  /**
7003
7028
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
7004
- * @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
7005
7030
  */
7006
7031
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
7007
7032
  /**
7008
7033
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
7009
- * @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
7010
7035
  */
7011
7036
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
7012
7037
  /**
7013
7038
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
7014
- * @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
7015
7040
  */
7016
7041
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
7017
7042
  /**
7018
7043
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
7019
- * @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
7020
7045
  */
7021
7046
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
7022
7047
  /**
7023
7048
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
7024
- * @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
7025
7050
  */
7026
7051
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
7027
7052
  /**
7028
7053
  * Prefer `.at()` method for index access and `String#charAt()`.
7029
- * @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
7030
7055
  */
7031
7056
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
7032
7057
  /**
7033
7058
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
7034
- * @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
7035
7060
  */
7036
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<[]>;
7037
7067
  /**
7038
7068
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
7039
- * @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
7040
7070
  */
7041
7071
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
7042
7072
  /**
7043
7073
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
7044
- * @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
7045
7075
  */
7046
7076
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
7047
7077
  /**
7048
7078
  * Prefer default parameters over reassignment.
7049
- * @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
7050
7080
  */
7051
7081
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
7052
7082
  /**
7053
7083
  * Prefer `Node#append()` over `Node#appendChild()`.
7054
- * @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
7055
7085
  */
7056
7086
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
7057
7087
  /**
7058
7088
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
7059
- * @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
7060
7090
  */
7061
7091
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
7062
7092
  /**
7063
7093
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
7064
- * @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
7065
7095
  */
7066
7096
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
7067
7097
  /**
7068
7098
  * Prefer `.textContent` over `.innerText`.
7069
- * @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
7070
7100
  */
7071
7101
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
7072
7102
  /**
7073
7103
  * Prefer `EventTarget` over `EventEmitter`.
7074
- * @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
7075
7105
  */
7076
7106
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
7077
7107
  /**
7078
7108
  * Prefer `export…from` when re-exporting.
7079
- * @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
7080
7110
  */
7081
7111
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
7082
7112
  /**
7083
7113
  * Prefer `globalThis` over `window`, `self`, and `global`.
7084
- * @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
7085
7115
  */
7086
7116
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
7087
7117
  /**
7088
7118
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
7089
- * @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
7090
7120
  */
7091
7121
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
7092
7122
  /**
7093
7123
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
7094
- * @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
7095
7125
  */
7096
7126
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
7097
7127
  /**
7098
7128
  * Prefer reading a JSON file as a buffer.
7099
- * @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
7100
7130
  */
7101
7131
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
7102
7132
  /**
7103
7133
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
7104
- * @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
7105
7135
  */
7106
7136
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
7107
7137
  /**
7108
7138
  * Prefer using a logical operator over a ternary.
7109
- * @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
7110
7140
  */
7111
7141
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
7112
7142
  /**
7113
7143
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
7114
- * @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
7115
7145
  */
7116
7146
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
7117
7147
  /**
7118
7148
  * Enforce the use of `Math.trunc` instead of bitwise operators.
7119
- * @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
7120
7150
  */
7121
7151
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
7122
7152
  /**
7123
7153
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
7124
- * @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
7125
7155
  */
7126
7156
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
7127
7157
  /**
7128
7158
  * Prefer modern `Math` APIs over legacy patterns.
7129
- * @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
7130
7160
  */
7131
7161
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
7132
7162
  /**
7133
7163
  * Prefer JavaScript modules (ESM) over CommonJS.
7134
- * @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
7135
7165
  */
7136
7166
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
7137
7167
  /**
7138
7168
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
7139
- * @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
7140
7170
  */
7141
7171
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
7142
7172
  /**
7143
7173
  * Prefer negative index over `.length - index` when possible.
7144
- * @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
7145
7175
  */
7146
7176
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
7147
7177
  /**
7148
7178
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
7149
- * @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
7150
7180
  */
7151
7181
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
7152
7182
  /**
7153
7183
  * Prefer `Number` static properties over global ones.
7154
- * @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
7155
7185
  */
7156
7186
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
7157
7187
  /**
7158
7188
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
7159
- * @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
7160
7190
  */
7161
7191
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
7162
7192
  /**
7163
7193
  * Prefer omitting the `catch` binding parameter.
7164
- * @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
7165
7195
  */
7166
7196
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
7167
7197
  /**
7168
7198
  * Prefer borrowing methods from the prototype instead of the instance.
7169
- * @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
7170
7200
  */
7171
7201
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
7172
7202
  /**
7173
7203
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
7174
- * @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
7175
7205
  */
7176
7206
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>;
7177
7207
  /**
7178
7208
  * Prefer `Reflect.apply()` over `Function#apply()`.
7179
- * @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
7180
7210
  */
7181
7211
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
7182
7212
  /**
7183
7213
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
7184
- * @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
7185
7215
  */
7186
7216
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
7187
7217
  /**
7188
7218
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
7189
- * @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
7190
7220
  */
7191
7221
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>;
7192
7222
  /**
7193
7223
  * Prefer using `Set#size` instead of `Array#length`.
7194
- * @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
7195
7225
  */
7196
7226
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
7197
7227
  /**
7198
7228
  * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
7199
- * @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
7200
7230
  */
7201
7231
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
7202
7232
  /**
7203
7233
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
7204
- * @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
7205
7235
  */
7206
7236
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
7207
7237
  /**
7208
7238
  * Prefer using the `String.raw` tag to avoid escaping `\`.
7209
- * @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
7210
7240
  */
7211
7241
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
7212
7242
  /**
7213
7243
  * Prefer `String#replaceAll()` over regex searches with the global flag.
7214
- * @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
7215
7245
  */
7216
7246
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
7217
7247
  /**
7218
7248
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
7219
- * @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
7220
7250
  */
7221
7251
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
7222
7252
  /**
7223
7253
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
7224
- * @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
7225
7255
  */
7226
7256
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
7227
7257
  /**
7228
7258
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
7229
- * @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
7230
7260
  */
7231
7261
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
7232
7262
  /**
7233
7263
  * Prefer using `structuredClone` to create a deep clone.
7234
- * @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
7235
7265
  */
7236
7266
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
7237
7267
  /**
7238
7268
  * Prefer `switch` over multiple `else-if`.
7239
- * @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
7240
7270
  */
7241
7271
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
7242
7272
  /**
7243
7273
  * Prefer ternary expressions over simple `if-else` statements.
7244
- * @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
7245
7275
  */
7246
7276
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
7247
7277
  /**
7248
7278
  * Prefer top-level await over top-level promises and async function calls.
7249
- * @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
7250
7280
  */
7251
7281
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
7252
7282
  /**
7253
7283
  * Enforce throwing `TypeError` in type checking conditions.
7254
- * @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
7255
7285
  */
7256
7286
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
7257
7287
  /**
7258
7288
  * Prevent abbreviations.
7259
- * @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
7260
7290
  */
7261
7291
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>;
7262
7292
  /**
7263
7293
  * Enforce consistent relative URL style.
7264
- * @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
7265
7295
  */
7266
7296
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
7267
7297
  /**
7268
7298
  * Enforce using the separator argument with `Array#join()`.
7269
- * @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
7270
7300
  */
7271
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<[]>;
7272
7307
  /**
7273
7308
  * Enforce using the digits argument with `Number#toFixed()`.
7274
- * @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
7275
7310
  */
7276
7311
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
7277
7312
  /**
7278
7313
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
7279
- * @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
7280
7315
  */
7281
7316
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
7282
7317
  /**
7283
7318
  * Enforce better string content.
7284
- * @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
7285
7320
  */
7286
7321
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
7287
7322
  /**
7288
7323
  * Enforce consistent brace style for `case` clauses.
7289
- * @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
7290
7325
  */
7291
7326
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
7292
7327
  /**
7293
7328
  * Fix whitespace-insensitive template indentation.
7294
- * @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
7295
7330
  */
7296
7331
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
7297
7332
  /**
7298
7333
  * Enforce consistent case for text encoding identifiers.
7299
- * @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
7300
7335
  */
7301
7336
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>;
7302
7337
  /**
7303
7338
  * Require `new` when creating an error.
7304
- * @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
7305
7340
  */
7306
7341
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
7307
7342
  /**
@@ -7653,6 +7688,10 @@ type ConsistentReturn = [] | [{
7653
7688
  }];
7654
7689
  // ----- consistent-this -----
7655
7690
  type ConsistentThis = string[];
7691
+ // ----- css/no-invalid-properties -----
7692
+ type CssNoInvalidProperties = [] | [{
7693
+ allowUnknownVariables?: boolean;
7694
+ }];
7656
7695
  // ----- css/prefer-logical-properties -----
7657
7696
  type CssPreferLogicalProperties = [] | [{
7658
7697
  allowProperties?: string[];
@@ -8187,8 +8226,8 @@ type JsdocMatchName = [] | [{
8187
8226
  context?: string;
8188
8227
  disallowName?: string;
8189
8228
  message?: string;
8229
+ replacement?: string;
8190
8230
  tags?: string[];
8191
- [k: string]: unknown | undefined;
8192
8231
  }[];
8193
8232
  }];
8194
8233
  // ----- jsdoc/multiline-blocks -----
@@ -8262,7 +8301,6 @@ type JsdocRequireAsteriskPrefix = [] | [("always" | "never" | "any")] | [("alway
8262
8301
  always?: string[];
8263
8302
  any?: string[];
8264
8303
  never?: string[];
8265
- [k: string]: unknown | undefined;
8266
8304
  };
8267
8305
  }];
8268
8306
  // ----- jsdoc/require-description -----
@@ -8472,7 +8510,6 @@ type JsdocSortTags = [] | [{
8472
8510
  reportTagGroupSpacing?: boolean;
8473
8511
  tagSequence?: {
8474
8512
  tags?: string[];
8475
- [k: string]: unknown | undefined;
8476
8513
  }[];
8477
8514
  }];
8478
8515
  // ----- jsdoc/tag-lines -----
@@ -9162,6 +9199,12 @@ type MarkdownNoDuplicateDefinitions = [] | [{
9162
9199
  type MarkdownNoDuplicateHeadings = [] | [{
9163
9200
  checkSiblingsOnly?: boolean;
9164
9201
  }];
9202
+ // ----- markdown/no-empty-definitions -----
9203
+ type MarkdownNoEmptyDefinitions = [] | [{
9204
+ allowDefinitions?: string[];
9205
+ allowFootnoteDefinitions?: string[];
9206
+ checkFootnoteDefinitions?: boolean;
9207
+ }];
9165
9208
  // ----- markdown/no-html -----
9166
9209
  type MarkdownNoHtml = [] | [{
9167
9210
  allowed?: string[];
@@ -9175,6 +9218,15 @@ type MarkdownNoMissingLinkFragments = [] | [{
9175
9218
  type MarkdownNoMultipleH1 = [] | [{
9176
9219
  frontmatterTitle?: string;
9177
9220
  }];
9221
+ // ----- markdown/no-unused-definitions -----
9222
+ type MarkdownNoUnusedDefinitions = [] | [{
9223
+ allowDefinitions?: string[];
9224
+ allowFootnoteDefinitions?: string[];
9225
+ }];
9226
+ // ----- markdown/table-column-count -----
9227
+ type MarkdownTableColumnCount = [] | [{
9228
+ checkMissingCells?: boolean;
9229
+ }];
9178
9230
  // ----- max-classes-per-file -----
9179
9231
  type MaxClassesPerFile = [] | [(number | {
9180
9232
  ignoreExpressions?: boolean;
@@ -10733,10 +10785,12 @@ type StylisticIndent = [] | [("tab" | number)] | [("tab" | number), {
10733
10785
  FunctionDeclaration?: {
10734
10786
  parameters?: (number | ("first" | "off"));
10735
10787
  body?: number;
10788
+ returnType?: number;
10736
10789
  };
10737
10790
  FunctionExpression?: {
10738
10791
  parameters?: (number | ("first" | "off"));
10739
10792
  body?: number;
10793
+ returnType?: number;
10740
10794
  };
10741
10795
  StaticBlock?: {
10742
10796
  body?: number;
@@ -10777,31 +10831,52 @@ type StylisticJsxCurlyNewline = [] | [(("consistent" | "never") | {
10777
10831
  multiline?: ("consistent" | "require" | "forbid");
10778
10832
  })];
10779
10833
  // ----- stylistic/jsx-curly-spacing -----
10780
- type StylisticJsxCurlySpacing = [] | [((_StylisticJsxCurlySpacing_BasicConfig & {
10781
- attributes?: _StylisticJsxCurlySpacingBasicConfigOrBoolean;
10782
- children?: _StylisticJsxCurlySpacingBasicConfigOrBoolean;
10783
- [k: string]: unknown | undefined;
10784
- }) | ("always" | "never"))] | [((_StylisticJsxCurlySpacing_BasicConfig & {
10785
- attributes?: _StylisticJsxCurlySpacingBasicConfigOrBoolean;
10786
- children?: _StylisticJsxCurlySpacingBasicConfigOrBoolean;
10787
- [k: string]: unknown | undefined;
10788
- }) | ("always" | "never")), {
10834
+ type StylisticJsxCurlySpacing = [] | [({
10835
+ when?: ("always" | "never");
10789
10836
  allowMultiline?: boolean;
10790
10837
  spacing?: {
10791
10838
  objectLiterals?: ("always" | "never");
10792
- [k: string]: unknown | undefined;
10793
10839
  };
10794
- }];
10795
- type _StylisticJsxCurlySpacingBasicConfigOrBoolean = (_StylisticJsxCurlySpacing_BasicConfig | boolean);
10796
- interface _StylisticJsxCurlySpacing_BasicConfig {
10840
+ attributes?: ({
10841
+ when?: ("always" | "never");
10842
+ allowMultiline?: boolean;
10843
+ spacing?: {
10844
+ objectLiterals?: ("always" | "never");
10845
+ };
10846
+ } | boolean);
10847
+ children?: ({
10848
+ when?: ("always" | "never");
10849
+ allowMultiline?: boolean;
10850
+ spacing?: {
10851
+ objectLiterals?: ("always" | "never");
10852
+ };
10853
+ } | boolean);
10854
+ } | ("always" | "never"))] | [({
10797
10855
  when?: ("always" | "never");
10798
10856
  allowMultiline?: boolean;
10799
10857
  spacing?: {
10800
10858
  objectLiterals?: ("always" | "never");
10801
- [k: string]: unknown | undefined;
10802
10859
  };
10803
- [k: string]: unknown | undefined;
10804
- }
10860
+ attributes?: ({
10861
+ when?: ("always" | "never");
10862
+ allowMultiline?: boolean;
10863
+ spacing?: {
10864
+ objectLiterals?: ("always" | "never");
10865
+ };
10866
+ } | boolean);
10867
+ children?: ({
10868
+ when?: ("always" | "never");
10869
+ allowMultiline?: boolean;
10870
+ spacing?: {
10871
+ objectLiterals?: ("always" | "never");
10872
+ };
10873
+ } | boolean);
10874
+ } | ("always" | "never")), {
10875
+ allowMultiline?: boolean;
10876
+ spacing?: {
10877
+ objectLiterals?: ("always" | "never");
10878
+ };
10879
+ }];
10805
10880
  // ----- stylistic/jsx-equals-spacing -----
10806
10881
  type StylisticJsxEqualsSpacing = [] | [("always" | "never")];
10807
10882
  // ----- stylistic/jsx-first-prop-new-line -----
@@ -10817,14 +10892,12 @@ type StylisticJsxIndent = [] | [("tab" | number)] | [("tab" | number), {
10817
10892
  type StylisticJsxIndentProps = [] | [(("tab" | "first") | number | {
10818
10893
  indentMode?: (("tab" | "first") | number);
10819
10894
  ignoreTernaryOperator?: boolean;
10820
- [k: string]: unknown | undefined;
10821
10895
  })];
10822
10896
  // ----- stylistic/jsx-max-props-per-line -----
10823
10897
  type StylisticJsxMaxPropsPerLine = [] | [({
10824
10898
  maximum?: {
10825
10899
  single?: number;
10826
10900
  multi?: number;
10827
- [k: string]: unknown | undefined;
10828
10901
  };
10829
10902
  } | {
10830
10903
  maximum?: number;
@@ -11171,6 +11244,10 @@ type StylisticKeywordSpacing = [] | [{
11171
11244
  before?: boolean;
11172
11245
  after?: boolean;
11173
11246
  };
11247
+ accessor?: {
11248
+ before?: boolean;
11249
+ after?: boolean;
11250
+ };
11174
11251
  as?: {
11175
11252
  before?: boolean;
11176
11253
  after?: boolean;
@@ -11383,11 +11460,11 @@ interface _StylisticMemberDelimiterStyle_DelimiterConfig {
11383
11460
  // ----- stylistic/multiline-comment-style -----
11384
11461
  type StylisticMultilineCommentStyle = ([] | [("starred-block" | "bare-block")] | [] | ["separate-lines"] | ["separate-lines", {
11385
11462
  checkJSDoc?: boolean;
11463
+ checkExclamation?: boolean;
11386
11464
  }]);
11387
11465
  // ----- stylistic/multiline-ternary -----
11388
11466
  type StylisticMultilineTernary = [] | [("always" | "always-multiline" | "never")] | [("always" | "always-multiline" | "never"), {
11389
11467
  ignoreJSX?: boolean;
11390
- [k: string]: unknown | undefined;
11391
11468
  }];
11392
11469
  // ----- stylistic/new-parens -----
11393
11470
  type StylisticNewParens = [] | [("always" | "never")];
@@ -11532,11 +11609,12 @@ type StylisticPaddedBlocks = [] | [(("always" | "never" | "start" | "end") | {
11532
11609
  }];
11533
11610
  // ----- stylistic/padding-line-between-statements -----
11534
11611
  type _StylisticPaddingLineBetweenStatementsPaddingType = ("any" | "never" | "always");
11535
- 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");
11536
11614
  type StylisticPaddingLineBetweenStatements = {
11537
11615
  blankLine: _StylisticPaddingLineBetweenStatementsPaddingType;
11538
- prev: _StylisticPaddingLineBetweenStatementsStatementType;
11539
- next: _StylisticPaddingLineBetweenStatementsStatementType;
11616
+ prev: _StylisticPaddingLineBetweenStatementsStatementOption;
11617
+ next: _StylisticPaddingLineBetweenStatementsStatementOption;
11540
11618
  }[];
11541
11619
  // ----- stylistic/quote-props -----
11542
11620
  type StylisticQuoteProps = ([] | [("always" | "as-needed" | "consistent" | "consistent-as-needed")] | [] | [("always" | "as-needed" | "consistent" | "consistent-as-needed")] | [("always" | "as-needed" | "consistent" | "consistent-as-needed"), {
@@ -12522,7 +12600,6 @@ type TsPreferDestructuring = [] | [({
12522
12600
  }), {
12523
12601
  enforceForDeclarationWithTypeAnnotation?: boolean;
12524
12602
  enforceForRenamedProperties?: boolean;
12525
- [k: string]: unknown | undefined;
12526
12603
  }];
12527
12604
  // ----- ts/prefer-literal-enum-member -----
12528
12605
  type TsPreferLiteralEnumMember = [] | [{
@@ -12540,7 +12617,6 @@ type TsPreferNullishCoalescing = [] | [{
12540
12617
  boolean?: boolean;
12541
12618
  number?: boolean;
12542
12619
  string?: boolean;
12543
- [k: string]: unknown | undefined;
12544
12620
  } | true);
12545
12621
  ignoreTernaryTests?: boolean;
12546
12622
  }];
@@ -12754,6 +12830,10 @@ interface _UnicornImportStyle_BooleanObject {
12754
12830
  type UnicornNoArrayReduce = [] | [{
12755
12831
  allowSimpleOperations?: boolean;
12756
12832
  }];
12833
+ // ----- unicorn/no-array-reverse -----
12834
+ type UnicornNoArrayReverse = [] | [{
12835
+ allowExpressionStatement?: boolean;
12836
+ }];
12757
12837
  // ----- unicorn/no-instanceof-builtins -----
12758
12838
  type UnicornNoInstanceofBuiltins = [] | [{
12759
12839
  useErrorIsError?: boolean;
@@ -13216,4 +13296,4 @@ interface ESLint2DigitsOptions {
13216
13296
  }
13217
13297
  declare function twoDigits(options?: ESLint2DigitsOptions, ...userConfig: Array<TypedFlatConfigItem>): Promise<Array<TypedFlatConfigItem>>;
13218
13298
  //#endregion
13219
- 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 };