@ntnyq/eslint-config 7.0.0-beta.22 → 7.0.0-beta.24

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
@@ -1687,6 +1687,11 @@ interface RuleOptions {
1687
1687
  * @see https://typescript-eslint.io/rules/no-unsafe-declaration-merging
1688
1688
  */
1689
1689
  '@typescript-eslint/no-unsafe-declaration-merging'?: Linter.RuleEntry<[]>;
1690
+ /**
1691
+ * Disallow assigning non-enum values to enum typed locations
1692
+ * @see https://typescript-eslint.io/rules/no-unsafe-enum-assignment
1693
+ */
1694
+ '@typescript-eslint/no-unsafe-enum-assignment'?: Linter.RuleEntry<[]>;
1690
1695
  /**
1691
1696
  * Disallow comparing an enum value with a non-enum value
1692
1697
  * @see https://typescript-eslint.io/rules/no-unsafe-enum-comparison
@@ -3162,7 +3167,7 @@ interface RuleOptions {
3162
3167
  * Reports against syntax not valid for the mode (e.g., Google Closure Compiler in non-Closure mode).
3163
3168
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-syntax.md#repos-sticky-header
3164
3169
  */
3165
- 'jsdoc/check-syntax'?: Linter.RuleEntry<[]>;
3170
+ 'jsdoc/check-syntax'?: Linter.RuleEntry<JsdocCheckSyntax>;
3166
3171
  /**
3167
3172
  * Reports invalid block tag names.
3168
3173
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-tag-names.md#repos-sticky-header
@@ -5062,6 +5067,11 @@ interface RuleOptions {
5062
5067
  * @see https://eslint-plugin.ntnyq.com/rules/prefer-object-method-syntax.html
5063
5068
  */
5064
5069
  'ntnyq/prefer-object-method-syntax'?: Linter.RuleEntry<NtnyqPreferObjectMethodSyntax>;
5070
+ /**
5071
+ * require multiline formatting for directly returned objects
5072
+ * @see https://eslint-plugin.ntnyq.com/rules/return-object-multiline.html
5073
+ */
5074
+ 'ntnyq/return-object-multiline'?: Linter.RuleEntry<[]>;
5065
5075
  /**
5066
5076
  * Enforce consistent line breaks after opening and before closing braces
5067
5077
  * @see https://eslint.org/docs/latest/rules/object-curly-newline
@@ -6516,1841 +6526,1992 @@ interface RuleOptions {
6516
6526
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
6517
6527
  /**
6518
6528
  * Prefer better DOM traversal APIs.
6519
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/better-dom-traversing.md
6529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/better-dom-traversing.md
6520
6530
  */
6521
6531
  'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
6522
6532
  /**
6523
6533
  * Removed. Prefer `eslint-plugin-regexp`
6524
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#better-regex
6534
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#better-regex
6525
6535
  * @deprecated
6526
6536
  */
6527
6537
  'unicorn/better-regex'?: Linter.RuleEntry<[]>;
6528
6538
  /**
6529
6539
  * Enforce a specific parameter name in catch clauses.
6530
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/catch-error-name.md
6540
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/catch-error-name.md
6531
6541
  */
6532
6542
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
6533
6543
  /**
6534
6544
  * Enforce consistent class references in static methods.
6535
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/class-reference-in-static-methods.md
6545
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/class-reference-in-static-methods.md
6536
6546
  */
6537
6547
  'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
6548
+ /**
6549
+ * Enforce consistent spacing before and after commas in JSON.
6550
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/comma-spacing.md
6551
+ */
6552
+ 'unicorn/comma-spacing'?: Linter.RuleEntry<[]>;
6538
6553
  /**
6539
6554
  * Enforce better comment content.
6540
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/comment-content.md
6555
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/comment-content.md
6541
6556
  */
6542
6557
  'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
6543
6558
  /**
6544
6559
  * Enforce a consistent return style for multiline arrow function bodies.
6545
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-arrow-return-style.md
6560
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-arrow-return-style.md
6546
6561
  */
6547
6562
  'unicorn/consistent-arrow-return-style'?: Linter.RuleEntry<[]>;
6548
6563
  /**
6549
6564
  * Enforce consistent assertion style with `node:assert`.
6550
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-assert.md
6565
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-assert.md
6551
6566
  */
6552
6567
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
6553
6568
  /**
6554
6569
  * Enforce consistent naming for boolean names.
6555
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-boolean-name.md
6570
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-boolean-name.md
6556
6571
  */
6557
6572
  'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
6558
6573
  /**
6559
6574
  * Enforce consistent class member order.
6560
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-class-member-order.md
6575
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-class-member-order.md
6561
6576
  */
6562
6577
  'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
6563
6578
  /**
6564
6579
  * Enforce consistent spelling of compound words in identifiers.
6565
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-compound-words.md
6580
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-compound-words.md
6566
6581
  */
6567
6582
  'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
6568
6583
  /**
6569
6584
  * Enforce consistent conditional object spread style.
6570
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-conditional-object-spread.md
6585
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-conditional-object-spread.md
6571
6586
  */
6572
6587
  'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
6573
6588
  /**
6574
6589
  * Prefer passing `Date` directly to the constructor when cloning.
6575
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-date-clone.md
6590
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-date-clone.md
6576
6591
  */
6577
6592
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
6578
6593
  /**
6579
6594
  * Use destructured variables over properties.
6580
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-destructuring.md
6595
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-destructuring.md
6581
6596
  */
6582
6597
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
6583
6598
  /**
6584
6599
  * Prefer consistent types when spreading a ternary in an array literal.
6585
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-empty-array-spread.md
6600
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-empty-array-spread.md
6586
6601
  */
6587
6602
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
6588
6603
  /**
6589
6604
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
6590
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-existence-index-check.md
6605
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-existence-index-check.md
6591
6606
  */
6592
6607
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
6593
6608
  /**
6594
6609
  * Enforce consistent decorator position on exported classes.
6595
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-export-decorator-position.md
6610
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-export-decorator-position.md
6596
6611
  */
6597
6612
  'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
6598
6613
  /**
6599
6614
  * Move function definitions to the highest possible scope.
6600
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-function-scoping.md
6615
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-function-scoping.md
6601
6616
  */
6602
6617
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
6603
6618
  /**
6604
6619
  * Enforce function syntax by role.
6605
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-function-style.md
6620
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-function-style.md
6606
6621
  */
6607
6622
  'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
6608
6623
  /**
6609
6624
  * Enforce consistent JSON file reads before `JSON.parse()`.
6610
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-json-file-read.md
6625
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-json-file-read.md
6611
6626
  */
6612
6627
  'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
6613
6628
  /**
6614
6629
  * Enforce consistent optional chaining for same-base member access.
6615
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-optional-chaining.md
6630
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-optional-chaining.md
6616
6631
  */
6617
6632
  'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
6618
6633
  /**
6619
6634
  * Enforce consistent style for escaping `${` in template literals.
6620
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-template-literal-escape.md
6635
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-template-literal-escape.md
6621
6636
  */
6622
6637
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
6623
6638
  /**
6624
6639
  * Enforce consistent labels on tuple type elements.
6625
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-tuple-labels.md
6640
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-tuple-labels.md
6626
6641
  */
6627
6642
  'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
6628
6643
  /**
6629
6644
  * Enforce correct `Error` subclassing.
6630
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/custom-error-definition.md
6645
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/custom-error-definition.md
6631
6646
  */
6632
6647
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
6633
6648
  /**
6634
6649
  * Enforce consistent default export declarations.
6635
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/default-export-style.md
6650
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/default-export-style.md
6636
6651
  */
6637
6652
  'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
6638
6653
  /**
6639
6654
  * Enforce consistent style for DOM element dataset access.
6640
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/dom-node-dataset.md
6655
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/dom-node-dataset.md
6641
6656
  */
6642
6657
  'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
6643
6658
  /**
6644
6659
  * Enforce no spaces between braces.
6645
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/empty-brace-spaces.md
6660
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/empty-brace-spaces.md
6646
6661
  */
6647
6662
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
6648
6663
  /**
6649
6664
  * Enforce passing a `message` value when creating a built-in error.
6650
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/error-message.md
6665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/error-message.md
6651
6666
  */
6652
6667
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
6653
6668
  /**
6654
6669
  * Require escape sequences to use uppercase or lowercase values.
6655
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/escape-case.md
6670
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/escape-case.md
6656
6671
  */
6657
6672
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
6658
6673
  /**
6659
6674
  * Add expiration conditions to TODO comments.
6660
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/expiring-todo-comments.md
6675
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/expiring-todo-comments.md
6661
6676
  */
6662
6677
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
6663
6678
  /**
6664
6679
  * Enforce explicitly comparing the `length` or `size` property of a value.
6665
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/explicit-length-check.md
6680
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/explicit-length-check.md
6666
6681
  */
6667
6682
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
6668
6683
  /**
6669
6684
  * Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
6670
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/explicit-timer-delay.md
6685
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/explicit-timer-delay.md
6671
6686
  */
6672
6687
  'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
6673
6688
  /**
6674
6689
  * Enforce a case style for filenames and directory names.
6675
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/filename-case.md
6690
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/filename-case.md
6676
6691
  */
6677
6692
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
6678
6693
  /**
6679
6694
  * Require identifiers to match a specified regular expression.
6680
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/id-match.md
6695
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/id-match.md
6681
6696
  */
6682
6697
  'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
6683
6698
  /**
6684
6699
  * Enforce specific import styles per module.
6685
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/import-style.md
6700
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/import-style.md
6686
6701
  */
6687
6702
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
6703
+ /**
6704
+ * Enforce consistent indentation in JSON and CSS.
6705
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/indent.md
6706
+ */
6707
+ 'unicorn/indent'?: Linter.RuleEntry<UnicornIndent>;
6688
6708
  /**
6689
6709
  * Prevent usage of variables from outside the scope of isolated functions.
6690
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/isolated-functions.md
6710
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/isolated-functions.md
6691
6711
  */
6692
6712
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
6693
6713
  /**
6694
6714
  * Enforce a consistent style for optional loop sources.
6695
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/iteration-fallback-style.md
6715
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/iteration-fallback-style.md
6696
6716
  */
6697
6717
  'unicorn/iteration-fallback-style'?: Linter.RuleEntry<UnicornIterationFallbackStyle>;
6718
+ /**
6719
+ * Enforce a case style for data keys.
6720
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/key-name-casing.md
6721
+ */
6722
+ 'unicorn/key-name-casing'?: Linter.RuleEntry<UnicornKeyNameCasing>;
6698
6723
  /**
6699
6724
  * Require or disallow logical assignment operator shorthand
6700
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/logical-assignment-operators.md
6725
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/logical-assignment-operators.md
6701
6726
  */
6702
6727
  'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
6703
6728
  /**
6704
6729
  * Limit the depth of nested calls.
6705
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/max-nested-calls.md
6730
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/max-nested-calls.md
6706
6731
  */
6707
6732
  'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
6708
6733
  /**
6709
6734
  * Enforce replacements for variable, property, and filenames.
6710
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/name-replacements.md
6735
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/name-replacements.md
6711
6736
  */
6712
6737
  'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
6713
6738
  /**
6714
6739
  * Enforce correct use of `new` for builtin constructors.
6715
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/new-for-builtins.md
6740
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/new-for-builtins.md
6716
6741
  */
6717
6742
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
6718
6743
  /**
6719
6744
  * Enforce specifying rules to disable in `eslint-disable` comments.
6720
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-abusive-eslint-disable.md
6745
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-abusive-eslint-disable.md
6721
6746
  */
6722
6747
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
6723
6748
  /**
6724
6749
  * Disallow recursive access to `this` within getters and setters.
6725
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-accessor-recursion.md
6750
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-accessor-recursion.md
6726
6751
  */
6727
6752
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
6728
6753
  /**
6729
6754
  * Disallow bitwise operators where a logical operator was likely intended.
6730
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-accidental-bitwise-operator.md
6755
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-accidental-bitwise-operator.md
6731
6756
  */
6732
6757
  'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
6733
6758
  /**
6734
6759
  * Disallow anonymous functions and classes as the default export.
6735
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-anonymous-default-export.md
6760
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-anonymous-default-export.md
6736
6761
  */
6737
6762
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
6738
6763
  /**
6739
6764
  * Prevent passing a function reference directly to iterator methods.
6740
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-callback-reference.md
6765
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-callback-reference.md
6741
6766
  */
6742
6767
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
6743
6768
  /**
6744
6769
  * Disallow array accumulation with `Array#concat()` in loops.
6745
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-concat-in-loop.md
6770
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-concat-in-loop.md
6746
6771
  */
6747
6772
  'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
6748
6773
  /**
6749
6774
  * Disallow using reference values as `Array#fill()` values.
6750
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-fill-with-reference-type.md
6775
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-fill-with-reference-type.md
6751
6776
  */
6752
6777
  'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
6753
6778
  /**
6754
6779
  * Disallow `.fill()` after `Array.from({length: …})`.
6755
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-from-fill.md
6780
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-from-fill.md
6756
6781
  */
6757
6782
  'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
6758
6783
  /**
6759
6784
  * Disallow front-of-array mutation.
6760
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-front-mutation.md
6785
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-front-mutation.md
6761
6786
  */
6762
6787
  'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
6763
6788
  /**
6764
6789
  * Disallow using the `this` argument in array methods.
6765
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-method-this-argument.md
6790
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-method-this-argument.md
6766
6791
  */
6767
6792
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
6768
6793
  /**
6769
6794
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
6770
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
6795
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
6771
6796
  * @deprecated
6772
6797
  */
6773
6798
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
6774
6799
  /**
6775
6800
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
6776
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-reduce.md
6801
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-reduce.md
6777
6802
  */
6778
6803
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
6779
6804
  /**
6780
6805
  * Prefer `Array#toReversed()` over `Array#reverse()`.
6781
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-reverse.md
6806
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-reverse.md
6782
6807
  */
6783
6808
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
6784
6809
  /**
6785
6810
  * Prefer `Array#toSorted()` over `Array#sort()`.
6786
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-sort.md
6811
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-sort.md
6787
6812
  */
6788
6813
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
6789
6814
  /**
6790
6815
  * Disallow sorting arrays to get the minimum or maximum value.
6791
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-sort-for-min-max.md
6816
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-sort-for-min-max.md
6792
6817
  */
6793
6818
  'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
6794
6819
  /**
6795
6820
  * Prefer `Array#toSpliced()` over `Array#splice()`.
6796
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-splice.md
6821
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-splice.md
6797
6822
  */
6798
6823
  'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
6799
6824
  /**
6800
- * Disallow asterisk prefixes in documentation comments.
6801
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
6825
+ * Disallow asterisk prefixes in multiline comments.
6826
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
6802
6827
  */
6803
6828
  'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
6804
6829
  /**
6805
6830
  * Disallow asynchronous callbacks in synchronous iterator helpers.
6806
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-async-iterator-callback.md
6831
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-async-iterator-callback.md
6807
6832
  */
6808
6833
  'unicorn/no-async-iterator-callback'?: Linter.RuleEntry<[]>;
6809
6834
  /**
6810
6835
  * Disallow async functions as `Promise#finally()` callbacks.
6811
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-async-promise-finally.md
6836
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-async-promise-finally.md
6812
6837
  */
6813
6838
  'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
6814
6839
  /**
6815
6840
  * Disallow member access from await expression.
6816
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-await-expression-member.md
6841
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-await-expression-member.md
6817
6842
  */
6818
6843
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
6819
6844
  /**
6820
6845
  * Disallow using `await` in `Promise` method parameters.
6821
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-await-in-promise-methods.md
6846
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-await-in-promise-methods.md
6822
6847
  */
6823
6848
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
6824
6849
  /**
6825
6850
  * Disallow barrel files.
6826
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-barrel-files.md
6851
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-barrel-files.md
6827
6852
  */
6828
6853
  'unicorn/no-barrel-files'?: Linter.RuleEntry<[]>;
6829
6854
  /**
6830
6855
  * Disallow unnecessary `Blob` to `File` conversion.
6831
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-blob-to-file.md
6856
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-blob-to-file.md
6832
6857
  */
6833
6858
  'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
6834
6859
  /**
6835
6860
  * Disallow boolean-returning sort comparators.
6836
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-boolean-sort-comparator.md
6861
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-boolean-sort-comparator.md
6837
6862
  */
6838
6863
  'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
6839
6864
  /**
6840
6865
  * Disallow `break` and optionally `continue` in nested loops and switches inside loops.
6841
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-break-in-nested-loop.md
6866
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-break-in-nested-loop.md
6842
6867
  */
6843
6868
  'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<UnicornNoBreakInNestedLoop>;
6844
6869
  /**
6845
6870
  * Prefer drawing canvases directly instead of converting them to images.
6846
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-canvas-to-image.md
6871
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-canvas-to-image.md
6847
6872
  */
6848
6873
  'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
6849
6874
  /**
6850
6875
  * Disallow chained comparisons such as `a < b < c`.
6851
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-chained-comparison.md
6876
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-chained-comparison.md
6852
6877
  */
6853
6878
  'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
6854
6879
  /**
6855
6880
  * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
6856
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-collection-bracket-access.md
6881
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-collection-bracket-access.md
6857
6882
  */
6858
6883
  'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
6859
6884
  /**
6860
6885
  * Disallow dynamic object property existence checks.
6861
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-computed-property-existence-check.md
6886
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-computed-property-existence-check.md
6862
6887
  */
6863
6888
  'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
6889
+ /**
6890
+ * Disallow conflicting CSS query and HTML form constraints.
6891
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-conflicting-constraints.md
6892
+ */
6893
+ 'unicorn/no-conflicting-constraints'?: Linter.RuleEntry<[]>;
6864
6894
  /**
6865
6895
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
6866
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-confusing-array-splice.md
6896
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-confusing-array-splice.md
6867
6897
  */
6868
6898
  'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
6869
6899
  /**
6870
6900
  * Disallow confusing uses of `Array#with()`.
6871
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-confusing-array-with.md
6901
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-confusing-array-with.md
6872
6902
  */
6873
6903
  'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
6874
6904
  /**
6875
6905
  * Do not use leading/trailing space between `console.log` parameters.
6876
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-console-spaces.md
6906
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-console-spaces.md
6877
6907
  */
6878
6908
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
6879
6909
  /**
6880
6910
  * Disallow arithmetic and bitwise operations that always evaluate to `0`.
6881
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-constant-zero-expression.md
6911
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-constant-zero-expression.md
6882
6912
  */
6883
6913
  'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
6884
6914
  /**
6885
6915
  * Disallow declarations before conditional early exits when they are only used after the exit.
6886
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-declarations-before-early-exit.md
6916
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-declarations-before-early-exit.md
6887
6917
  */
6888
6918
  'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
6889
6919
  /**
6890
- * Disallow deprecated CSS features.
6891
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-deprecated-css-features.md
6920
+ * Moved to `eslint-cssicorn` as `cssicorn/no-deprecated-features`.
6921
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-deprecated-css-features
6922
+ * @deprecated
6892
6923
  */
6893
- 'unicorn/no-deprecated-css-features'?: Linter.RuleEntry<UnicornNoDeprecatedCssFeatures>;
6924
+ 'unicorn/no-deprecated-css-features'?: Linter.RuleEntry<[]>;
6894
6925
  /**
6895
6926
  * Do not use `document.cookie` directly.
6896
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-document-cookie.md
6927
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-document-cookie.md
6897
6928
  */
6898
6929
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
6899
6930
  /**
6900
6931
  * Disallow two comparisons of the same operands that can be combined into one.
6901
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-double-comparison.md
6932
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-double-comparison.md
6902
6933
  */
6903
6934
  'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
6904
6935
  /**
6905
- * Disallow duplicate CSS selectors.
6906
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-css-selectors.md
6936
+ * Moved to `eslint-cssicorn` as `cssicorn/no-duplicate-selectors`.
6937
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-css-selectors
6938
+ * @deprecated
6907
6939
  */
6908
6940
  'unicorn/no-duplicate-css-selectors'?: Linter.RuleEntry<[]>;
6909
6941
  /**
6910
- * Disallow duplicate font family names.
6911
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-font-family-names.md
6942
+ * Moved to `eslint-cssicorn` as `cssicorn/no-duplicate-font-family-names`.
6943
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-font-family-names
6944
+ * @deprecated
6912
6945
  */
6913
6946
  'unicorn/no-duplicate-font-family-names'?: Linter.RuleEntry<[]>;
6914
6947
  /**
6915
6948
  * Disallow duplicate adjacent branches in if chains.
6916
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-if-branches.md
6949
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-if-branches.md
6917
6950
  */
6918
6951
  'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
6919
6952
  /**
6920
6953
  * Disallow adjacent duplicate operands in logical expressions.
6921
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-logical-operands.md
6954
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-logical-operands.md
6922
6955
  */
6923
6956
  'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
6924
6957
  /**
6925
6958
  * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
6926
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-loops.md
6959
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-loops.md
6927
6960
  */
6928
6961
  'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
6929
6962
  /**
6930
6963
  * Disallow duplicate values in `Set` constructor array literals.
6931
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-set-values.md
6964
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-set-values.md
6932
6965
  */
6933
6966
  'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
6934
6967
  /**
6935
6968
  * Disallow empty files.
6936
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-empty-file.md
6969
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-empty-file.md
6937
6970
  */
6938
6971
  'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
6972
+ /**
6973
+ * Disallow empty link text in Markdown.
6974
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-empty-link-text.md
6975
+ */
6976
+ 'unicorn/no-empty-link-text'?: Linter.RuleEntry<[]>;
6939
6977
  /**
6940
6978
  * Disallow assigning to built-in error properties.
6941
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-error-property-assignment.md
6979
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-error-property-assignment.md
6942
6980
  */
6943
6981
  'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
6944
6982
  /**
6945
6983
  * Disallow exports in scripts.
6946
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-exports-in-scripts.md
6984
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-exports-in-scripts.md
6947
6985
  */
6948
6986
  'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
6949
6987
  /**
6950
6988
  * Prefer `for…of` over the `forEach` method.
6951
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-for-each.md
6989
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-for-each.md
6952
6990
  */
6953
6991
  'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
6954
6992
  /**
6955
6993
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
6956
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-for-loop.md
6994
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-for-loop.md
6957
6995
  */
6958
6996
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
6959
6997
  /**
6960
6998
  * Disallow assigning properties on the global object.
6961
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-global-object-property-assignment.md
6999
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-global-object-property-assignment.md
6962
7000
  */
6963
7001
  'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
6964
7002
  /**
6965
- * Replaced by `unicorn/prefer-unicode-code-point-escapes` which covers more cases.
6966
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
7003
+ * Replaced by `unicorn/prefer-literal-ascii` and `unicorn/prefer-unicode-code-point-escapes`, which cover more cases.
7004
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
6967
7005
  * @deprecated
6968
7006
  */
6969
7007
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
6970
7008
  /**
6971
7009
  * Disallow immediate mutation after variable assignment.
6972
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-immediate-mutation.md
7010
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-immediate-mutation.md
6973
7011
  */
6974
7012
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<UnicornNoImmediateMutation>;
6975
7013
  /**
6976
7014
  * Disallow impossible comparisons against `.length` or `.size`.
6977
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-impossible-length-comparison.md
7015
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-impossible-length-comparison.md
6978
7016
  */
6979
7017
  'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
7018
+ /**
7019
+ * Disallow class accessors that hide an inherited getter or setter.
7020
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-incomplete-accessor-override.md
7021
+ */
7022
+ 'unicorn/no-incomplete-accessor-override'?: Linter.RuleEntry<[]>;
6980
7023
  /**
6981
7024
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
6982
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-incorrect-query-selector.md
7025
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-incorrect-query-selector.md
6983
7026
  */
6984
7027
  'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
6985
7028
  /**
6986
7029
  * Disallow incorrect template literal interpolation syntax.
6987
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-incorrect-template-string-interpolation.md
7030
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-incorrect-template-string-interpolation.md
6988
7031
  */
6989
7032
  'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
7033
+ /**
7034
+ * Disallow ineffective CSP directives in `<meta>` elements.
7035
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-ineffective-csp-directives.md
7036
+ */
7037
+ 'unicorn/no-ineffective-csp-directives'?: Linter.RuleEntry<[]>;
6990
7038
  /**
6991
7039
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
6992
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
7040
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
6993
7041
  * @deprecated
6994
7042
  */
6995
7043
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
6996
7044
  /**
6997
7045
  * Disallow `instanceof` with built-in objects
6998
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-instanceof-builtins.md
7046
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-instanceof-builtins.md
6999
7047
  */
7000
7048
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
7001
7049
  /**
7002
7050
  * Disallow calling functions and constructors with an invalid number of arguments.
7003
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-argument-count.md
7051
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-argument-count.md
7004
7052
  */
7005
7053
  'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
7054
+ /**
7055
+ * Disallow invalid values for HTML boolean attributes.
7056
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-boolean-attribute-value.md
7057
+ */
7058
+ 'unicorn/no-invalid-boolean-attribute-value'?: Linter.RuleEntry<[]>;
7006
7059
  /**
7007
7060
  * Disallow comparing a single character from a string to a multi-character string.
7008
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-character-comparison.md
7061
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-character-comparison.md
7009
7062
  */
7010
7063
  'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
7064
+ /**
7065
+ * Disallow invalid DOM tokens.
7066
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-dom-token.md
7067
+ */
7068
+ 'unicorn/no-invalid-dom-token'?: Linter.RuleEntry<[]>;
7011
7069
  /**
7012
7070
  * Disallow invalid options in `fetch()` and `new Request()`.
7013
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-fetch-options.md
7071
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-fetch-options.md
7014
7072
  */
7015
7073
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
7016
7074
  /**
7017
7075
  * Disallow invalid `accept` values on file inputs.
7018
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-file-input-accept.md
7076
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-file-input-accept.md
7019
7077
  */
7020
7078
  'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
7021
7079
  /**
7022
- * Disallow unknown media features and invalid values for known media features.
7023
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-media-features.md
7080
+ * Disallow invalid subresource integrity metadata.
7081
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-integrity.md
7082
+ */
7083
+ 'unicorn/no-invalid-integrity'?: Linter.RuleEntry<[]>;
7084
+ /**
7085
+ * Disallow invalid or ignored Intl options.
7086
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-intl-options.md
7087
+ */
7088
+ 'unicorn/no-invalid-intl-options'?: Linter.RuleEntry<[]>;
7089
+ /**
7090
+ * Moved to `eslint-cssicorn` as `cssicorn/no-invalid-media-features`.
7091
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-invalid-media-features
7092
+ * @deprecated
7024
7093
  */
7025
7094
  'unicorn/no-invalid-media-features'?: Linter.RuleEntry<[]>;
7095
+ /**
7096
+ * Disallow invalid property descriptors.
7097
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-property-descriptor.md
7098
+ */
7099
+ 'unicorn/no-invalid-property-descriptor'?: Linter.RuleEntry<[]>;
7026
7100
  /**
7027
7101
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
7028
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-remove-event-listener.md
7102
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-remove-event-listener.md
7029
7103
  */
7030
7104
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
7105
+ /**
7106
+ * Disallow invalid options in `new Response()`, `Response.json()`, and `Response.redirect()`.
7107
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-response-options.md
7108
+ */
7109
+ 'unicorn/no-invalid-response-options'?: Linter.RuleEntry<[]>;
7110
+ /**
7111
+ * Disallow invalid arguments to `CSSStyleDeclaration#setProperty()`.
7112
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-style-set-property.md
7113
+ */
7114
+ 'unicorn/no-invalid-style-set-property'?: Linter.RuleEntry<[]>;
7115
+ /**
7116
+ * Disallow statically known invalid Temporal arithmetic.
7117
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-temporal-arithmetic.md
7118
+ */
7119
+ 'unicorn/no-invalid-temporal-arithmetic'?: Linter.RuleEntry<[]>;
7120
+ /**
7121
+ * Disallow invalid protocol strings in comparisons with `URL#protocol`.
7122
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-url-protocol-comparison.md
7123
+ */
7124
+ 'unicorn/no-invalid-url-protocol-comparison'?: Linter.RuleEntry<[]>;
7031
7125
  /**
7032
7126
  * Disallow invalid implementations of well-known symbol methods.
7033
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
7127
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
7034
7128
  */
7035
7129
  'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
7130
+ /**
7131
+ * Disallow `javascript:` URLs in Markdown.
7132
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-javascript-url.md
7133
+ */
7134
+ 'unicorn/no-javascript-url'?: Linter.RuleEntry<[]>;
7036
7135
  /**
7037
7136
  * Disallow identifiers starting with `new` or `class`.
7038
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-keyword-prefix.md
7137
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-keyword-prefix.md
7039
7138
  */
7040
7139
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
7041
7140
  /**
7042
7141
  * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
7043
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-late-current-target-access.md
7142
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-late-current-target-access.md
7044
7143
  */
7045
7144
  'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
7046
7145
  /**
7047
7146
  * Disallow event-control method calls after the synchronous event dispatch has finished.
7048
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-late-event-control.md
7147
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-late-event-control.md
7049
7148
  */
7050
7149
  'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
7150
+ /**
7151
+ * Disallow empty lines at the beginning of a file.
7152
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-leading-empty-lines.md
7153
+ */
7154
+ 'unicorn/no-leading-empty-lines'?: Linter.RuleEntry<[]>;
7051
7155
  /**
7052
7156
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
7053
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
7157
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
7054
7158
  * @deprecated
7055
7159
  */
7056
7160
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
7057
7161
  /**
7058
7162
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
7059
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-lonely-if.md
7163
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-lonely-if.md
7060
7164
  */
7061
7165
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
7062
7166
  /**
7063
7167
  * Disallow mutating a loop iterable during iteration.
7064
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-loop-iterable-mutation.md
7168
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-loop-iterable-mutation.md
7065
7169
  */
7066
7170
  'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
7171
+ /**
7172
+ * Disallow numeric literals that lose precision when represented as IEEE 754 binary64 values.
7173
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-loss-of-precision.md
7174
+ */
7175
+ 'unicorn/no-loss-of-precision'?: Linter.RuleEntry<[]>;
7067
7176
  /**
7068
7177
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
7069
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-magic-array-flat-depth.md
7178
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-magic-array-flat-depth.md
7070
7179
  */
7071
7180
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
7072
7181
  /**
7073
7182
  * Disallow manually wrapped comments.
7074
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-manually-wrapped-comments.md
7183
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-manually-wrapped-comments.md
7075
7184
  */
7076
7185
  'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
7077
7186
  /**
7078
7187
  * Disallow checking a Map key before accessing a different key.
7079
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-mismatched-map-key.md
7188
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-mismatched-map-key.md
7080
7189
  */
7081
7190
  'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
7082
7191
  /**
7083
7192
  * Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
7084
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-misrefactored-assignment.md
7193
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-misrefactored-assignment.md
7085
7194
  */
7086
7195
  'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
7087
7196
  /**
7088
7197
  * Disallow references to missing local resources.
7089
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-missing-local-resource.md
7198
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-missing-local-resource.md
7090
7199
  */
7091
7200
  'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>;
7092
7201
  /**
7093
7202
  * Disallow calling Promise executor resolver functions more than once on the same execution path.
7094
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-multiple-promise-resolver-calls.md
7203
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-multiple-promise-resolver-calls.md
7095
7204
  */
7096
7205
  'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>;
7097
7206
  /**
7098
7207
  * Disallow named usage of default import and export.
7099
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-named-default.md
7208
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-named-default.md
7100
7209
  */
7101
7210
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
7102
7211
  /**
7103
7212
  * Disallow negated array predicate calls.
7104
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negated-array-predicate.md
7213
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negated-array-predicate.md
7105
7214
  */
7106
7215
  'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
7107
7216
  /**
7108
7217
  * Disallow negated comparisons.
7109
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negated-comparison.md
7218
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negated-comparison.md
7110
7219
  */
7111
7220
  'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
7112
7221
  /**
7113
7222
  * Disallow negated conditions.
7114
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negated-condition.md
7223
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negated-condition.md
7115
7224
  */
7116
7225
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
7117
7226
  /**
7118
7227
  * Disallow negated expression in equality check.
7119
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negation-in-equality-check.md
7228
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negation-in-equality-check.md
7120
7229
  */
7121
7230
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
7122
7231
  /**
7123
7232
  * Disallow nested ternary expressions.
7124
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-nested-ternary.md
7233
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-nested-ternary.md
7125
7234
  */
7126
7235
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
7127
7236
  /**
7128
- * Disallow nesting under selector lists with mixed specificity.
7129
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-nesting-with-mixed-specificity.md
7237
+ * Moved to `eslint-cssicorn` as `cssicorn/no-nesting-with-mixed-specificity`.
7238
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-nesting-with-mixed-specificity
7239
+ * @deprecated
7130
7240
  */
7131
7241
  'unicorn/no-nesting-with-mixed-specificity'?: Linter.RuleEntry<[]>;
7132
7242
  /**
7133
7243
  * Disallow `new Array()`.
7134
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-new-array.md
7244
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-new-array.md
7135
7245
  */
7136
7246
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
7137
7247
  /**
7138
7248
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
7139
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-new-buffer.md
7249
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-new-buffer.md
7140
7250
  */
7141
7251
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
7142
7252
  /**
7143
7253
  * Disallow non-function values with function-style verb prefixes.
7144
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-non-function-verb-prefix.md
7254
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-non-function-verb-prefix.md
7145
7255
  */
7146
7256
  'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
7147
7257
  /**
7148
7258
  * Disallow non-standard properties on built-in objects.
7149
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-nonstandard-builtin-properties.md
7259
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-nonstandard-builtin-properties.md
7150
7260
  */
7151
7261
  'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
7152
7262
  /**
7153
7263
  * Disallow the use of the `null` literal.
7154
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-null.md
7264
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-null.md
7155
7265
  */
7156
7266
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
7157
7267
  /**
7158
7268
  * Disallow the use of objects as default parameters.
7159
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-object-as-default-parameter.md
7269
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-object-as-default-parameter.md
7160
7270
  */
7161
7271
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
7162
7272
  /**
7163
7273
  * Disallow `Object` methods with `Map` or `Set`.
7164
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-object-methods-with-collections.md
7274
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-object-methods-with-collections.md
7165
7275
  */
7166
7276
  'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
7167
7277
  /**
7168
7278
  * Disallow optional chaining on undeclared variables.
7169
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
7279
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
7170
7280
  */
7171
7281
  'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
7282
+ /**
7283
+ * Disallow ineffective `preventDefault()` calls in passive event listeners.
7284
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-prevent-default-in-passive-listener.md
7285
+ */
7286
+ 'unicorn/no-prevent-default-in-passive-listener'?: Linter.RuleEntry<[]>;
7172
7287
  /**
7173
7288
  * Disallow `process.exit()`.
7174
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-process-exit.md
7289
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-process-exit.md
7175
7290
  */
7176
7291
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
7177
7292
  /**
7178
7293
  * Disallow comparisons made redundant by an equality check in the same logical AND.
7179
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-redundant-comparison.md
7294
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-redundant-comparison.md
7180
7295
  */
7181
7296
  'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
7182
7297
  /**
7183
- * Disallow nested style rules that do not modify the parent selector.
7184
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-redundant-nested-style-rules.md
7298
+ * Moved to `eslint-cssicorn` as `cssicorn/no-redundant-nested-style-rules`.
7299
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-redundant-nested-style-rules
7300
+ * @deprecated
7185
7301
  */
7186
7302
  'unicorn/no-redundant-nested-style-rules'?: Linter.RuleEntry<[]>;
7187
7303
  /**
7188
7304
  * Disallow using the return value of `Array#push()` and `Array#unshift()`.
7189
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-return-array-push.md
7305
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-return-array-push.md
7190
7306
  */
7191
7307
  'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
7192
7308
  /**
7193
7309
  * Disallow selector syntax in DOM names.
7194
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-selector-as-dom-name.md
7310
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-selector-as-dom-name.md
7195
7311
  */
7196
7312
  'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
7197
7313
  /**
7198
7314
  * Disallow shorthand properties that override related longhand properties.
7199
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-shorthand-property-overrides.md
7315
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-shorthand-property-overrides.md
7200
7316
  */
7201
7317
  'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>;
7202
7318
  /**
7203
7319
  * Disallow passing single-element arrays to `Promise` methods.
7204
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-single-promise-in-promise-methods.md
7320
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-single-promise-in-promise-methods.md
7205
7321
  */
7206
7322
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
7207
7323
  /**
7208
7324
  * Disallow classes that only have static members.
7209
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-static-only-class.md
7325
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-static-only-class.md
7210
7326
  */
7211
7327
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
7212
7328
  /**
7213
7329
  * Prefer comparing values directly over subtracting and comparing to `0`.
7214
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-subtraction-comparison.md
7330
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-subtraction-comparison.md
7215
7331
  */
7216
7332
  'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
7217
7333
  /**
7218
7334
  * Disallow `then` property.
7219
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-thenable.md
7335
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-thenable.md
7220
7336
  */
7221
7337
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
7222
7338
  /**
7223
7339
  * Disallow assigning `this` to a variable.
7224
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-this-assignment.md
7340
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-this-assignment.md
7225
7341
  */
7226
7342
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
7227
7343
  /**
7228
7344
  * Disallow `this` outside of classes.
7229
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-this-outside-of-class.md
7345
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-this-outside-of-class.md
7230
7346
  */
7231
7347
  'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
7232
7348
  /**
7233
7349
  * Disallow assigning to top-level variables from inside functions.
7234
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-top-level-assignment-in-function.md
7350
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-top-level-assignment-in-function.md
7235
7351
  */
7236
7352
  'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
7237
7353
  /**
7238
7354
  * Disallow top-level side effects in exported modules.
7239
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-top-level-side-effects.md
7355
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-top-level-side-effects.md
7240
7356
  */
7241
7357
  'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>;
7242
7358
  /**
7243
7359
  * Disallow `all` as a transition property.
7244
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-transition-all.md
7360
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-transition-all.md
7245
7361
  */
7246
7362
  'unicorn/no-transition-all'?: Linter.RuleEntry<[]>;
7247
7363
  /**
7248
7364
  * Disallow comparing `undefined` using `typeof`.
7249
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-typeof-undefined.md
7365
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-typeof-undefined.md
7250
7366
  */
7251
7367
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
7252
7368
  /**
7253
7369
  * Disallow referencing methods without calling them.
7254
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-uncalled-method.md
7370
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-uncalled-method.md
7255
7371
  */
7256
7372
  'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
7257
7373
  /**
7258
7374
  * Require class members to be declared.
7259
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-undeclared-class-members.md
7375
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-undeclared-class-members.md
7260
7376
  */
7261
7377
  'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
7262
7378
  /**
7263
- * Disallow unknown and noncanonical CSS annotations.
7264
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unknown-css-annotations.md
7379
+ * Moved to `eslint-cssicorn` as `cssicorn/no-unknown-annotations`.
7380
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-css-annotations
7381
+ * @deprecated
7265
7382
  */
7266
7383
  'unicorn/no-unknown-css-annotations'?: Linter.RuleEntry<[]>;
7267
7384
  /**
7268
- * Disallow unknown pseudo-class and pseudo-element selectors.
7269
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unknown-pseudo-selectors.md
7385
+ * Moved to `eslint-cssicorn` as `cssicorn/no-unknown-pseudo-selectors`.
7386
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-pseudo-selectors
7387
+ * @deprecated
7270
7388
  */
7271
- 'unicorn/no-unknown-pseudo-selectors'?: Linter.RuleEntry<UnicornNoUnknownPseudoSelectors>;
7389
+ 'unicorn/no-unknown-pseudo-selectors'?: Linter.RuleEntry<[]>;
7272
7390
  /**
7273
7391
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
7274
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-array-flat-depth.md
7392
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-array-flat-depth.md
7275
7393
  */
7276
7394
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
7277
7395
  /**
7278
- * Disallow `Array#flatMap()` callbacks that only wrap a single item.
7279
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-array-flat-map.md
7396
+ * Disallow unnecessary use of `Array#flatMap()`.
7397
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-array-flat-map.md
7280
7398
  */
7281
7399
  'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
7282
7400
  /**
7283
7401
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
7284
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-array-splice-count.md
7402
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-array-splice-count.md
7285
7403
  */
7286
7404
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
7287
7405
  /**
7288
7406
  * Disallow awaiting non-promise values.
7289
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-await.md
7407
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-await.md
7290
7408
  */
7291
7409
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
7292
7410
  /**
7293
7411
  * Disallow unnecessary comparisons against boolean literals.
7294
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-boolean-comparison.md
7412
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-boolean-comparison.md
7295
7413
  */
7296
7414
  'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
7297
7415
  /**
7298
7416
  * Disallow unnecessary options in `fetch()` and `new Request()`.
7299
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-fetch-options.md
7417
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-fetch-options.md
7300
7418
  */
7301
7419
  'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
7302
7420
  /**
7303
7421
  * Disallow unnecessary `globalThis` references.
7304
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-global-this.md
7422
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-global-this.md
7305
7423
  */
7306
7424
  'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
7307
7425
  /**
7308
7426
  * Disallow unnecessary nested ternary expressions.
7309
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-nested-ternary.md
7427
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-nested-ternary.md
7310
7428
  */
7311
7429
  'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
7430
+ /**
7431
+ * Disallow parameters that receive the same value at every call.
7432
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-parameters.md
7433
+ */
7434
+ 'unicorn/no-unnecessary-parameters'?: Linter.RuleEntry<UnicornNoUnnecessaryParameters>;
7312
7435
  /**
7313
7436
  * Enforce the use of built-in methods instead of unnecessary polyfills.
7314
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-polyfills.md
7437
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-polyfills.md
7315
7438
  */
7316
7439
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
7317
7440
  /**
7318
7441
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
7319
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-slice-end.md
7442
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-slice-end.md
7320
7443
  */
7321
7444
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
7322
7445
  /**
7323
7446
  * Disallow `Array#splice()` when simpler alternatives exist.
7324
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-splice.md
7447
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-splice.md
7325
7448
  */
7326
7449
  'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
7327
7450
  /**
7328
7451
  * Disallow `String#trim()` before `String#startsWith()` or `String#endsWith()`.
7329
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-string-trim.md
7452
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-string-trim.md
7330
7453
  */
7331
7454
  'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>;
7332
7455
  /**
7333
7456
  * Disallow unreadable array destructuring.
7334
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-array-destructuring.md
7457
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-array-destructuring.md
7335
7458
  */
7336
7459
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
7337
7460
  /**
7338
7461
  * Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
7339
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-for-of-expression.md
7462
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-for-of-expression.md
7340
7463
  */
7341
7464
  'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
7342
7465
  /**
7343
7466
  * Disallow unreadable IIFEs.
7344
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-iife.md
7467
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-iife.md
7345
7468
  */
7346
7469
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
7347
7470
  /**
7348
7471
  * Disallow unreadable `new` expressions.
7349
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-new-expression.md
7472
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-new-expression.md
7350
7473
  */
7351
7474
  'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
7352
7475
  /**
7353
7476
  * Disallow unreadable object destructuring.
7354
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-object-destructuring.md
7477
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-object-destructuring.md
7355
7478
  */
7356
7479
  'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
7357
7480
  /**
7358
7481
  * Prevent unsafe use of ArrayBuffer view `.buffer`.
7359
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-buffer-conversion.md
7482
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-buffer-conversion.md
7360
7483
  */
7361
7484
  'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
7362
7485
  /**
7363
7486
  * Disallow unsafe DOM HTML APIs.
7364
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-dom-html.md
7487
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-dom-html.md
7365
7488
  */
7366
7489
  'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
7490
+ /**
7491
+ * Disallow known values that JSON serialization cannot represent faithfully.
7492
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-json-serialization.md
7493
+ */
7494
+ 'unicorn/no-unsafe-json-serialization'?: Linter.RuleEntry<[]>;
7367
7495
  /**
7368
7496
  * Disallow reading `.value` from `Promise.allSettled()` results without a fulfilled status guard.
7369
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
7497
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
7370
7498
  */
7371
7499
  'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
7372
7500
  /**
7373
7501
  * Disallow unsafe values as property keys.
7374
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-property-key.md
7502
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-property-key.md
7375
7503
  */
7376
7504
  'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
7377
7505
  /**
7378
7506
  * Disallow interpolation into SQL strings passed to Node’s `node:sqlite` APIs.
7379
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
7507
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
7380
7508
  */
7381
7509
  'unicorn/no-unsafe-sqlite-interpolation'?: Linter.RuleEntry<[]>;
7382
7510
  /**
7383
7511
  * Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
7384
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-string-replacement.md
7512
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-string-replacement.md
7385
7513
  */
7386
7514
  'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
7387
7515
  /**
7388
- * Disallow unscoped CSS nesting selectors.
7389
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unscoped-css-nesting-selector.md
7516
+ * Moved to `eslint-cssicorn` as `cssicorn/no-unscoped-nesting-selector`.
7517
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unscoped-css-nesting-selector
7518
+ * @deprecated
7390
7519
  */
7391
- 'unicorn/no-unscoped-css-nesting-selector'?: Linter.RuleEntry<UnicornNoUnscopedCssNestingSelector>;
7520
+ 'unicorn/no-unscoped-css-nesting-selector'?: Linter.RuleEntry<[]>;
7392
7521
  /**
7393
7522
  * Replaced by `unicorn/no-unused-builtin-method-return` which covers more cases.
7394
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-unused-array-method-return
7523
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unused-array-method-return
7395
7524
  * @deprecated
7396
7525
  */
7397
7526
  'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
7398
7527
  /**
7399
7528
  * Disallow ignoring the return value of selected built-in methods.
7400
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unused-builtin-method-return.md
7529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unused-builtin-method-return.md
7401
7530
  */
7402
7531
  'unicorn/no-unused-builtin-method-return'?: Linter.RuleEntry<[]>;
7403
7532
  /**
7404
7533
  * Disallow discarding lazy iterator helpers.
7405
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unused-iterator-helper.md
7534
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unused-iterator-helper.md
7406
7535
  */
7407
7536
  'unicorn/no-unused-iterator-helper'?: Linter.RuleEntry<[]>;
7408
7537
  /**
7409
7538
  * Disallow unused object properties.
7410
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unused-properties.md
7539
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unused-properties.md
7411
7540
  */
7412
7541
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
7542
+ /**
7543
+ * Disallow passing full URLs to `URLSearchParams`.
7544
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-url-in-search-params.md
7545
+ */
7546
+ 'unicorn/no-url-in-search-params'?: Linter.RuleEntry<[]>;
7413
7547
  /**
7414
7548
  * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
7415
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-boolean-cast.md
7549
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-boolean-cast.md
7416
7550
  */
7417
7551
  'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
7418
7552
  /**
7419
7553
  * Disallow useless type coercions of values that are already of the target type.
7420
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-coercion.md
7554
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-coercion.md
7421
7555
  */
7422
7556
  'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
7423
7557
  /**
7424
7558
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
7425
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-collection-argument.md
7559
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-collection-argument.md
7426
7560
  */
7427
7561
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
7428
7562
  /**
7429
7563
  * Disallow useless compound assignments such as `x += 0`.
7430
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-compound-assignment.md
7564
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-compound-assignment.md
7431
7565
  */
7432
7566
  'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
7433
7567
  /**
7434
7568
  * Disallow useless concatenation of literals.
7435
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-concat.md
7569
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-concat.md
7436
7570
  */
7437
7571
  'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
7438
7572
  /**
7439
7573
  * Disallow useless `continue` statements.
7440
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-continue.md
7574
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-continue.md
7441
7575
  */
7442
7576
  'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
7443
7577
  /**
7444
7578
  * Disallow unnecessary existence checks before deletion.
7445
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-delete-check.md
7579
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-delete-check.md
7446
7580
  */
7447
7581
  'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
7448
7582
  /**
7449
7583
  * Disallow `else` after a statement that exits.
7450
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-else.md
7584
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-else.md
7451
7585
  */
7452
7586
  'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
7453
7587
  /**
7454
7588
  * Disallow unnecessary `Error.captureStackTrace(…)`.
7455
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-error-capture-stack-trace.md
7589
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-error-capture-stack-trace.md
7456
7590
  */
7457
7591
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
7458
7592
  /**
7459
7593
  * Disallow useless fallback when spreading in object literals.
7460
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-fallback-in-spread.md
7594
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-fallback-in-spread.md
7461
7595
  */
7462
7596
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
7463
7597
  /**
7464
7598
  * Disallow unnecessary `.toArray()` on iterators.
7465
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-iterator-to-array.md
7599
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-iterator-to-array.md
7466
7600
  */
7467
7601
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
7468
7602
  /**
7469
7603
  * Disallow useless array length check.
7470
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-length-check.md
7604
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-length-check.md
7471
7605
  */
7472
7606
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
7473
7607
  /**
7474
7608
  * Disallow unnecessary operands in logical expressions involving boolean literals.
7475
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-logical-operand.md
7609
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-logical-operand.md
7476
7610
  */
7477
7611
  'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
7478
7612
  /**
7479
7613
  * Disallow useless overrides of class methods.
7480
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-override.md
7614
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-override.md
7481
7615
  */
7482
7616
  'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
7483
7617
  /**
7484
7618
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
7485
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-promise-resolve-reject.md
7619
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-promise-resolve-reject.md
7486
7620
  */
7487
7621
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
7488
7622
  /**
7489
7623
  * Disallow redundant re-exports.
7490
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-re-export.md
7624
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-re-export.md
7491
7625
  */
7492
7626
  'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>;
7493
7627
  /**
7494
7628
  * Disallow simple recursive function calls that can be replaced with a loop.
7495
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-recursion.md
7629
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-recursion.md
7496
7630
  */
7497
7631
  'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
7498
7632
  /**
7499
7633
  * Disallow unnecessary `Set` construction around `Set` methods.
7500
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-set-construction.md
7634
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-set-construction.md
7501
7635
  */
7502
7636
  'unicorn/no-useless-set-construction'?: Linter.RuleEntry<[]>;
7503
7637
  /**
7504
7638
  * Disallow unnecessary spread.
7505
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-spread.md
7639
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-spread.md
7506
7640
  */
7507
7641
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
7508
7642
  /**
7509
7643
  * Disallow useless case in switch statements.
7510
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-switch-case.md
7644
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-switch-case.md
7511
7645
  */
7512
7646
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
7513
7647
  /**
7514
7648
  * Disallow useless template literal expressions.
7515
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-template-literals.md
7649
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-template-literals.md
7516
7650
  */
7517
7651
  'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
7518
7652
  /**
7519
7653
  * Disallow useless `undefined`.
7520
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-undefined.md
7654
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-undefined.md
7521
7655
  */
7522
7656
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
7523
7657
  /**
7524
7658
  * Disallow returning or exporting resources declared with `using`, including through capturing functions.
7525
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-using-resource-escape.md
7659
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-using-resource-escape.md
7526
7660
  */
7527
7661
  'unicorn/no-using-resource-escape'?: Linter.RuleEntry<[]>;
7528
7662
  /**
7529
7663
  * Disallow the bitwise XOR operator where exponentiation was likely intended.
7530
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-xor-as-exponentiation.md
7664
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-xor-as-exponentiation.md
7531
7665
  */
7532
7666
  'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
7533
7667
  /**
7534
- * Disallow number literals with zero fractions or dangling dots.
7535
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-zero-fractions.md
7668
+ * Require consistent decimal numbers without redundant zeros.
7669
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-zero-fractions.md
7536
7670
  */
7537
7671
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
7538
7672
  /**
7539
7673
  * Enforce proper case for numeric literals.
7540
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/number-literal-case.md
7674
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/number-literal-case.md
7541
7675
  */
7542
7676
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
7543
7677
  /**
7544
7678
  * Enforce the style of numeric separators by correctly grouping digits.
7545
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/numeric-separators-style.md
7679
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/numeric-separators-style.md
7546
7680
  */
7547
7681
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
7548
7682
  /**
7549
7683
  * Require assignment operator shorthand where possible.
7550
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/operator-assignment.md
7684
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/operator-assignment.md
7551
7685
  */
7552
7686
  'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
7553
7687
  /**
7554
7688
  * Prefer `AbortSignal.any()` over manually forwarding abort events between signals.
7555
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-abort-signal-any.md
7689
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-abort-signal-any.md
7556
7690
  */
7557
7691
  'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
7558
7692
  /**
7559
7693
  * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
7560
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-abort-signal-timeout.md
7694
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-abort-signal-timeout.md
7561
7695
  */
7562
7696
  'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
7563
7697
  /**
7564
7698
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
7565
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-add-event-listener.md
7699
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-add-event-listener.md
7566
7700
  */
7567
7701
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
7568
7702
  /**
7569
7703
  * Prefer an options object over a boolean in `.addEventListener()`.
7570
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-add-event-listener-options.md
7704
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-add-event-listener-options.md
7571
7705
  */
7572
7706
  'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
7573
7707
  /**
7574
7708
  * Prefer `AggregateError` when throwing collected errors.
7575
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-aggregate-error.md
7709
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-aggregate-error.md
7576
7710
  */
7577
7711
  'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
7578
7712
  /**
7579
7713
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
7580
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-find.md
7714
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-find.md
7581
7715
  */
7582
7716
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
7583
7717
  /**
7584
7718
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
7585
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-flat.md
7719
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-flat.md
7586
7720
  */
7587
7721
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
7588
7722
  /**
7589
7723
  * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
7590
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-flat-map.md
7724
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-flat-map.md
7591
7725
  */
7592
7726
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
7593
7727
  /**
7594
7728
  * Prefer `Array.fromAsync()` over array accumulation loops.
7595
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-from-async.md
7729
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-from-async.md
7596
7730
  */
7597
7731
  'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
7598
7732
  /**
7599
7733
  * Prefer using the `Array.from()` mapping function argument.
7600
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-from-map.md
7734
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-from-map.md
7601
7735
  */
7602
7736
  'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
7603
7737
  /**
7604
7738
  * Prefer `Array.from({length}, …)` when creating range arrays.
7605
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-from-range.md
7739
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-from-range.md
7606
7740
  */
7607
7741
  'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
7608
7742
  /**
7609
7743
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
7610
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-index-of.md
7744
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-index-of.md
7611
7745
  */
7612
7746
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
7613
7747
  /**
7614
7748
  * Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
7615
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-iterable-methods.md
7749
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-iterable-methods.md
7616
7750
  */
7617
7751
  'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
7618
7752
  /**
7619
7753
  * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
7620
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-last-methods.md
7754
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-last-methods.md
7621
7755
  */
7622
7756
  'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
7623
7757
  /**
7624
7758
  * Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
7625
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-slice.md
7759
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-slice.md
7626
7760
  */
7627
7761
  'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
7628
7762
  /**
7629
7763
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
7630
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-some.md
7764
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-some.md
7631
7765
  */
7632
7766
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
7633
7767
  /**
7634
7768
  * Prefer `.at()` method for index access and `String#charAt()`.
7635
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-at.md
7769
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-at.md
7636
7770
  */
7637
7771
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
7638
7772
  /**
7639
7773
  * Prefer `await` over promise chaining.
7640
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-await.md
7774
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-await.md
7641
7775
  */
7642
7776
  'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
7643
7777
  /**
7644
7778
  * Prefer `BigInt` literals over the constructor.
7645
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-bigint-literals.md
7779
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-bigint-literals.md
7646
7780
  */
7647
7781
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
7648
7782
  /**
7649
7783
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
7650
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-blob-reading-methods.md
7784
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-blob-reading-methods.md
7651
7785
  */
7652
7786
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
7653
7787
  /**
7654
7788
  * Prefer block statements over IIFEs used only for scoping.
7655
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-block-statement-over-iife.md
7789
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-block-statement-over-iife.md
7656
7790
  */
7657
7791
  'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
7658
7792
  /**
7659
7793
  * Prefer directly returning boolean expressions over `if` statements.
7660
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-boolean-return.md
7794
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-boolean-return.md
7661
7795
  */
7662
7796
  'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
7663
7797
  /**
7664
7798
  * Prefer class field declarations over `this` assignments in constructors.
7665
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-class-fields.md
7799
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-class-fields.md
7666
7800
  */
7667
7801
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
7668
7802
  /**
7669
7803
  * Prefer using `Element#classList.toggle()` to toggle class names.
7670
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-classlist-toggle.md
7804
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-classlist-toggle.md
7671
7805
  */
7672
7806
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
7673
7807
  /**
7674
7808
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
7675
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-code-point.md
7809
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-code-point.md
7676
7810
  */
7677
7811
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
7678
7812
  /**
7679
7813
  * Prefer combining consecutive guards with identical exit statements.
7680
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-combined-guards.md
7814
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-combined-guards.md
7681
7815
  */
7682
7816
  'unicorn/prefer-combined-guards'?: Linter.RuleEntry<UnicornPreferCombinedGuards>;
7683
7817
  /**
7684
7818
  * Prefer early continues over conditionals wrapping the remainder of the loop body.
7685
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-continue.md
7819
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-continue.md
7686
7820
  */
7687
7821
  'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
7688
7822
  /**
7689
7823
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
7690
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-date-now.md
7824
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-date-now.md
7691
7825
  */
7692
7826
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
7693
7827
  /**
7694
- * Prefer default parameters over reassignment.
7695
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-default-parameters.md
7828
+ * Prefer default parameters and destructuring defaults over reassignment and fallback expressions.
7829
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-default-parameters.md
7696
7830
  */
7697
7831
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
7698
7832
  /**
7699
7833
  * Prefer direct iteration over default iterator method calls.
7700
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-direct-iteration.md
7834
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-direct-iteration.md
7701
7835
  */
7702
7836
  'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
7703
7837
  /**
7704
7838
  * Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
7705
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dispose.md
7839
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dispose.md
7706
7840
  */
7707
7841
  'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
7708
7842
  /**
7709
7843
  * Prefer `Element#append()` over `Node#appendChild()`.
7710
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-append.md
7844
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-append.md
7711
7845
  */
7712
7846
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
7713
7847
  /**
7714
7848
  * Renamed to `unicorn/dom-node-dataset`.
7715
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
7849
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
7716
7850
  * @deprecated
7717
7851
  */
7718
7852
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
7719
7853
  /**
7720
7854
  * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
7721
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-html-methods.md
7855
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-html-methods.md
7722
7856
  */
7723
7857
  'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
7724
7858
  /**
7725
7859
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
7726
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-remove.md
7860
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-remove.md
7727
7861
  */
7728
7862
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
7729
7863
  /**
7730
7864
  * Prefer `.replaceChildren()` when replacing DOM children.
7731
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-replace-children.md
7865
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-replace-children.md
7732
7866
  */
7733
7867
  'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
7734
7868
  /**
7735
7869
  * Prefer `.textContent` over `.innerText`.
7736
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-text-content.md
7870
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-text-content.md
7737
7871
  */
7738
7872
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
7739
7873
  /**
7740
7874
  * Prefer early returns over conditionals wrapping the remainder of the function body.
7741
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-early-return.md
7875
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-early-return.md
7742
7876
  */
7743
7877
  'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
7744
7878
  /**
7745
7879
  * Prefer `else if` over adjacent `if` statements with related conditions.
7746
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-else-if.md
7880
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-else-if.md
7747
7881
  */
7748
7882
  'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
7749
7883
  /**
7750
7884
  * Prefer `Error.isError()` when checking for errors.
7751
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-error-is-error.md
7885
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-error-is-error.md
7752
7886
  */
7753
7887
  'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
7888
+ /**
7889
+ * Prefer escape sequences for irregular whitespace characters.
7890
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-escaped-irregular-whitespace.md
7891
+ */
7892
+ 'unicorn/prefer-escaped-irregular-whitespace'?: Linter.RuleEntry<[]>;
7754
7893
  /**
7755
7894
  * Prefer `EventTarget` over `EventEmitter`.
7756
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-event-target.md
7895
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-event-target.md
7757
7896
  */
7758
7897
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
7759
7898
  /**
7760
- * Prefer explicit viewport units.
7761
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-explicit-viewport-units.md
7899
+ * Moved to `eslint-cssicorn` as `cssicorn/prefer-explicit-viewport-units`.
7900
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-explicit-viewport-units
7901
+ * @deprecated
7762
7902
  */
7763
- 'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<UnicornPreferExplicitViewportUnits>;
7903
+ 'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<[]>;
7764
7904
  /**
7765
7905
  * Prefer `export…from` when re-exporting.
7766
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-export-from.md
7906
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-export-from.md
7767
7907
  */
7768
7908
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
7769
7909
  /**
7770
7910
  * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
7771
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-flat-math-min-max.md
7911
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-flat-math-min-max.md
7772
7912
  */
7773
7913
  'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
7774
7914
  /**
7775
7915
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
7776
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-get-or-insert-computed.md
7916
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-get-or-insert-computed.md
7777
7917
  */
7778
7918
  'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
7779
7919
  /**
7780
7920
  * Prefer global numeric constants over `Number` static properties.
7781
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-global-number-constants.md
7921
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-global-number-constants.md
7782
7922
  */
7783
7923
  'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
7784
7924
  /**
7785
7925
  * Prefer `globalThis` over `window`, `self`, and `global`.
7786
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-global-this.md
7926
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-global-this.md
7787
7927
  */
7788
7928
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
7789
7929
  /**
7790
7930
  * Prefer `Object.groupBy()` or `Map.groupBy()` over manual grouping.
7791
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-group-by.md
7931
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-group-by.md
7792
7932
  */
7793
7933
  'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
7794
7934
  /**
7795
7935
  * Prefer `.has()` when checking existence.
7796
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-has-check.md
7936
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-has-check.md
7797
7937
  */
7798
7938
  'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
7799
7939
  /**
7800
7940
  * Prefer moving code shared by all branches of an `if` statement out of the branches.
7801
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-hoisting-branch-code.md
7941
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-hoisting-branch-code.md
7802
7942
  */
7803
7943
  'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
7804
7944
  /**
7805
7945
  * Prefer HTTPS over HTTP.
7806
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-https.md
7946
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-https.md
7807
7947
  */
7808
7948
  'unicorn/prefer-https'?: Linter.RuleEntry<UnicornPreferHttps>;
7809
7949
  /**
7810
7950
  * Prefer identifiers over string literals in import and export specifiers.
7811
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
7951
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
7812
7952
  */
7813
7953
  'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
7814
7954
  /**
7815
7955
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
7816
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-import-meta-properties.md
7956
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-import-meta-properties.md
7817
7957
  */
7818
7958
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
7819
7959
  /**
7820
7960
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
7821
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-includes.md
7961
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-includes.md
7822
7962
  */
7823
7963
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
7824
7964
  /**
7825
7965
  * Prefer `.includes()` over repeated equality comparisons.
7826
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
7966
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
7827
7967
  */
7828
7968
  'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
7829
7969
  /**
7830
7970
  * Prefer passing iterables directly to constructors instead of filling empty collections.
7831
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterable-in-constructor.md
7971
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterable-in-constructor.md
7832
7972
  */
7833
7973
  'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
7834
7974
  /**
7835
7975
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
7836
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-concat.md
7976
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-concat.md
7837
7977
  */
7838
7978
  'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
7839
7979
  /**
7840
7980
  * Prefer iterator helpers over temporary arrays from iterators.
7841
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-helpers.md
7981
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-helpers.md
7842
7982
  */
7843
7983
  'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
7844
7984
  /**
7845
7985
  * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
7846
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-to-array.md
7986
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-to-array.md
7847
7987
  */
7848
7988
  'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
7849
7989
  /**
7850
7990
  * Prefer moving `.toArray()` to the end of iterator helper chains.
7851
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-to-array-at-end.md
7991
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-to-array-at-end.md
7852
7992
  */
7853
7993
  'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
7854
7994
  /**
7855
7995
  * Prefer `Iterator.zip()` over parallel-array indexing.
7856
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-zip.md
7996
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-zip.md
7857
7997
  */
7858
7998
  'unicorn/prefer-iterator-zip'?: Linter.RuleEntry<[]>;
7859
7999
  /**
7860
8000
  * Prefer JSON imports over reading and parsing JSON files.
7861
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-json-import.md
8001
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-json-import.md
7862
8002
  */
7863
8003
  'unicorn/prefer-json-import'?: Linter.RuleEntry<[]>;
7864
8004
  /**
7865
8005
  * Renamed to `unicorn/consistent-json-file-read`.
7866
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
8006
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
7867
8007
  * @deprecated
7868
8008
  */
7869
8009
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
7870
8010
  /**
7871
8011
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
7872
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-keyboard-event-key.md
8012
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-keyboard-event-key.md
7873
8013
  */
7874
8014
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
8015
+ /**
8016
+ * Prefer literal printable ASCII characters over escape sequences.
8017
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-literal-ascii.md
8018
+ */
8019
+ 'unicorn/prefer-literal-ascii'?: Linter.RuleEntry<[]>;
7875
8020
  /**
7876
8021
  * Prefer `location.assign()` over assigning to `location.href`.
7877
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-location-assign.md
8022
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-location-assign.md
7878
8023
  */
7879
8024
  'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
7880
8025
  /**
7881
8026
  * Prefer using a logical operator over a ternary.
7882
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-logical-operator-over-ternary.md
8027
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-logical-operator-over-ternary.md
7883
8028
  */
7884
8029
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
7885
8030
  /**
7886
8031
  * Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
7887
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-map-from-entries.md
8032
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-map-from-entries.md
7888
8033
  */
7889
8034
  'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
7890
8035
  /**
7891
8036
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
7892
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-abs.md
8037
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-abs.md
7893
8038
  */
7894
8039
  'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
7895
8040
  /**
7896
8041
  * Prefer `Math` constants over their approximate numeric values.
7897
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-constants.md
8042
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-constants.md
7898
8043
  */
7899
8044
  'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
7900
8045
  /**
7901
8046
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
7902
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-min-max.md
8047
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-min-max.md
7903
8048
  */
7904
8049
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
7905
8050
  /**
7906
8051
  * Prefer `Math.trunc()` for truncating numbers.
7907
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-trunc.md
8052
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-trunc.md
7908
8053
  */
7909
8054
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
7910
8055
  /**
7911
- * Prefer modern media feature range syntax.
7912
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-media-feature-range-syntax.md
8056
+ * Moved to `eslint-cssicorn` as `cssicorn/prefer-media-feature-range-syntax`.
8057
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-media-feature-range-syntax
8058
+ * @deprecated
7913
8059
  */
7914
8060
  'unicorn/prefer-media-feature-range-syntax'?: Linter.RuleEntry<[]>;
7915
8061
  /**
7916
8062
  * Prefer moving ternaries into the minimal varying part of an expression.
7917
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-minimal-ternary.md
8063
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-minimal-ternary.md
7918
8064
  */
7919
8065
  'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
7920
8066
  /**
7921
8067
  * Prefer modern DOM APIs.
7922
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-modern-dom-apis.md
8068
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-modern-dom-apis.md
7923
8069
  */
7924
8070
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
7925
8071
  /**
7926
8072
  * Prefer modern `Math` APIs over legacy patterns.
7927
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-modern-math-apis.md
8073
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-modern-math-apis.md
7928
8074
  */
7929
8075
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
7930
8076
  /**
7931
8077
  * Prefer JavaScript modules (ESM) over CommonJS.
7932
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-module.md
8078
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-module.md
7933
8079
  */
7934
8080
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
7935
8081
  /**
7936
8082
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
7937
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-native-coercion-functions.md
8083
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-native-coercion-functions.md
7938
8084
  */
7939
8085
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
7940
8086
  /**
7941
8087
  * Prefer negative index over `.length - index` when possible.
7942
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-negative-index.md
8088
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-negative-index.md
7943
8089
  */
7944
8090
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
7945
8091
  /**
7946
8092
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
7947
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-node-protocol.md
8093
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-node-protocol.md
7948
8094
  */
7949
8095
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
7950
8096
  /**
7951
8097
  * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
7952
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-number-coercion.md
8098
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-number-coercion.md
7953
8099
  */
7954
8100
  'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
7955
8101
  /**
7956
8102
  * Prefer `Number.isSafeInteger()` over integer checks.
7957
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-number-is-safe-integer.md
8103
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-number-is-safe-integer.md
7958
8104
  */
7959
8105
  'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
7960
8106
  /**
7961
8107
  * Prefer `Number` static methods over global functions and optionally static properties over global constants.
7962
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-number-properties.md
8108
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-number-properties.md
7963
8109
  */
7964
8110
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
7965
8111
  /**
7966
8112
  * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
7967
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-define-properties.md
8113
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-define-properties.md
7968
8114
  */
7969
8115
  'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
7970
8116
  /**
7971
8117
  * Prefer object destructuring defaults over default object literals with spread.
7972
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-destructuring-defaults.md
8118
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-destructuring-defaults.md
7973
8119
  */
7974
8120
  'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
7975
8121
  /**
7976
8122
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
7977
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-from-entries.md
8123
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-from-entries.md
7978
8124
  */
7979
8125
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
7980
8126
  /**
7981
8127
  * Prefer the most specific `Object` iterable method.
7982
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-iterable-methods.md
8128
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-iterable-methods.md
7983
8129
  */
7984
8130
  'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
7985
8131
  /**
7986
8132
  * Prefer observer APIs over resize and scroll listeners with layout reads.
7987
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-observer-apis.md
8133
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-observer-apis.md
7988
8134
  */
7989
8135
  'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
7990
8136
  /**
7991
8137
  * Prefer omitting the `catch` binding parameter.
7992
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-optional-catch-binding.md
8138
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-optional-catch-binding.md
7993
8139
  */
7994
8140
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
7995
8141
  /**
7996
8142
  * Prefer `Path2D` for repeatedly drawn canvas paths.
7997
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-path2d.md
8143
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-path2d.md
7998
8144
  */
7999
8145
  'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
8000
8146
  /**
8001
8147
  * Prefer private class fields over the underscore-prefix convention.
8002
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-private-class-fields.md
8148
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-private-class-fields.md
8003
8149
  */
8004
8150
  'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
8151
+ /**
8152
+ * Prefer `Promise.resolve()` and `Promise.reject()` over trivial `new Promise()` calls.
8153
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-promise-static-methods.md
8154
+ */
8155
+ 'unicorn/prefer-promise-static-methods'?: Linter.RuleEntry<[]>;
8005
8156
  /**
8006
8157
  * Prefer `Promise.try()` over promise-wrapping boilerplate.
8007
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-promise-try.md
8158
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-promise-try.md
8008
8159
  */
8009
8160
  'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
8010
8161
  /**
8011
8162
  * Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
8012
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-promise-with-resolvers.md
8163
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-promise-with-resolvers.md
8013
8164
  */
8014
8165
  'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
8015
8166
  /**
8016
8167
  * Prefer borrowing methods from the prototype instead of the instance.
8017
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-prototype-methods.md
8168
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-prototype-methods.md
8018
8169
  */
8019
8170
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
8020
8171
  /**
8021
8172
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
8022
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-query-selector.md
8173
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-query-selector.md
8023
8174
  */
8024
8175
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
8025
8176
  /**
8026
8177
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
8027
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-queue-microtask.md
8178
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-queue-microtask.md
8028
8179
  */
8029
8180
  'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
8030
8181
  /**
8031
8182
  * Prefer `Reflect.apply()` over `Function#apply()`.
8032
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-reflect-apply.md
8183
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-reflect-apply.md
8033
8184
  */
8034
8185
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
8035
8186
  /**
8036
8187
  * Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
8037
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-regexp-escape.md
8188
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-regexp-escape.md
8038
8189
  */
8039
8190
  'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
8040
8191
  /**
8041
8192
  * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
8042
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-regexp-test.md
8193
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-regexp-test.md
8043
8194
  */
8044
8195
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
8045
8196
  /**
8046
8197
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
8047
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-response-static-json.md
8198
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-response-static-json.md
8048
8199
  */
8049
8200
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
8050
8201
  /**
8051
8202
  * Prefer `:scope` when using element query selector methods.
8052
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-scoped-selector.md
8203
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-scoped-selector.md
8053
8204
  */
8054
8205
  'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
8055
8206
  /**
8056
8207
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
8057
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-set-has.md
8208
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-set-has.md
8058
8209
  */
8059
8210
  'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
8060
8211
  /**
8061
8212
  * Prefer `Set` methods for Set operations.
8062
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-set-methods.md
8213
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-set-methods.md
8063
8214
  */
8064
8215
  'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
8065
8216
  /**
8066
8217
  * Prefer using `Set#size` instead of `Array#length`.
8067
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-set-size.md
8218
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-set-size.md
8068
8219
  */
8069
8220
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
8070
8221
  /**
8071
8222
  * Prefer arrow function properties over methods with a single return.
8072
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-short-arrow-method.md
8223
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-short-arrow-method.md
8073
8224
  */
8074
8225
  'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
8226
+ /**
8227
+ * Prefer shorter alternatives to Unicode escape sequences.
8228
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-short-escape-sequences.md
8229
+ */
8230
+ 'unicorn/prefer-short-escape-sequences'?: Linter.RuleEntry<[]>;
8075
8231
  /**
8076
8232
  * Prefer simple conditions first in logical expressions.
8077
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-simple-condition-first.md
8233
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-simple-condition-first.md
8078
8234
  */
8079
8235
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
8080
8236
  /**
8081
8237
  * Prefer a simple comparison function for `Array#sort()`.
8082
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-simple-sort-comparator.md
8238
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-simple-sort-comparator.md
8083
8239
  */
8084
8240
  'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
8085
8241
  /**
8086
8242
  * Prefer simplified conditions.
8087
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-simplified-conditions.md
8243
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-simplified-conditions.md
8088
8244
  */
8089
- 'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<[]>;
8245
+ 'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<UnicornPreferSimplifiedConditions>;
8090
8246
  /**
8091
8247
  * Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
8092
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-array-predicate.md
8248
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-array-predicate.md
8093
8249
  */
8094
8250
  'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
8095
8251
  /**
8096
8252
  * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
8097
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-call.md
8253
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-call.md
8098
8254
  */
8099
8255
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
8100
8256
  /**
8101
8257
  * Prefer a single object destructuring declaration per local const source.
8102
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-object-destructuring.md
8258
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-object-destructuring.md
8103
8259
  */
8104
8260
  'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
8105
8261
  /**
8106
8262
  * Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
8107
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-replace.md
8263
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-replace.md
8108
8264
  */
8109
8265
  'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
8110
8266
  /**
8111
8267
  * Prefer declaring variables in the smallest possible scope.
8112
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-smaller-scope.md
8268
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-smaller-scope.md
8113
8269
  */
8114
8270
  'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
8115
8271
  /**
8116
8272
  * Prefer `String#split()` with a limit.
8117
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-split-limit.md
8273
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-split-limit.md
8118
8274
  */
8119
8275
  'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
8120
8276
  /**
8121
8277
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
8122
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-spread.md
8278
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-spread.md
8123
8279
  */
8124
8280
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
8125
8281
  /**
8126
8282
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
8127
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-match-all.md
8283
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-match-all.md
8128
8284
  */
8129
8285
  'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
8130
8286
  /**
8131
8287
  * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
8132
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-pad-start-end.md
8288
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-pad-start-end.md
8133
8289
  */
8134
8290
  'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
8135
8291
  /**
8136
8292
  * Prefer using the `String.raw` tag to avoid escaping `\`.
8137
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-raw.md
8293
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-raw.md
8138
8294
  */
8139
8295
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
8140
8296
  /**
8141
8297
  * Prefer `String#repeat()` for repeated whitespace.
8142
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-repeat.md
8298
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-repeat.md
8143
8299
  */
8144
8300
  'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
8145
8301
  /**
8146
8302
  * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
8147
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-replace-all.md
8303
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-replace-all.md
8148
8304
  */
8149
8305
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
8150
8306
  /**
8151
8307
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
8152
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-slice.md
8308
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-slice.md
8153
8309
  */
8154
8310
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
8155
8311
  /**
8156
8312
  * Prefer `String#startsWith()` & `String#endsWith()` over regexes, `String#indexOf() === 0`, and slice checks.
8157
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-starts-ends-with.md
8313
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-starts-ends-with.md
8158
8314
  */
8159
8315
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
8160
8316
  /**
8161
8317
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
8162
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-trim-start-end.md
8318
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-trim-start-end.md
8163
8319
  */
8164
8320
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
8165
8321
  /**
8166
8322
  * Prefer using `structuredClone` to create a deep clone.
8167
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-structured-clone.md
8323
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-structured-clone.md
8168
8324
  */
8169
8325
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
8170
8326
  /**
8171
8327
  * Prefer `switch` over multiple `else-if`.
8172
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-switch.md
8328
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-switch.md
8173
8329
  */
8174
8330
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
8175
8331
  /**
8176
8332
  * Prefer `Temporal` over `Date`.
8177
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-temporal.md
8333
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-temporal.md
8178
8334
  */
8179
8335
  'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
8180
8336
  /**
8181
8337
  * Prefer direct Temporal conversion methods.
8182
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-temporal-conversion.md
8338
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-temporal-conversion.md
8183
8339
  */
8184
8340
  'unicorn/prefer-temporal-conversion'?: Linter.RuleEntry<[]>;
8185
8341
  /**
8186
8342
  * Prefer ternary expressions over simple `if` statements that return or assign values.
8187
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-ternary.md
8343
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-ternary.md
8188
8344
  */
8189
8345
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
8190
8346
  /**
8191
8347
  * Prefer `.then().catch()` over `.then(…, …)` for error handling.
8192
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-then-catch.md
8348
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-then-catch.md
8193
8349
  */
8194
8350
  'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>;
8195
8351
  /**
8196
8352
  * Prefer using `Element#toggleAttribute()` to toggle attributes.
8197
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-toggle-attribute.md
8353
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-toggle-attribute.md
8198
8354
  */
8199
8355
  'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
8200
8356
  /**
8201
8357
  * Prefer top-level await over top-level promises and async function calls.
8202
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-top-level-await.md
8358
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-top-level-await.md
8203
8359
  */
8204
8360
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
8205
8361
  /**
8206
8362
  * Enforce throwing `TypeError` in type checking conditions.
8207
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-type-error.md
8363
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-type-error.md
8208
8364
  */
8209
8365
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
8210
8366
  /**
8211
8367
  * Require type literals to be last in union types.
8212
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-type-literal-last.md
8368
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-type-literal-last.md
8213
8369
  */
8214
8370
  'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
8215
8371
  /**
8216
8372
  * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over legacy base64 conversions and manual postprocessing.
8217
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-uint8array-base64.md
8373
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-uint8array-base64.md
8218
8374
  */
8219
8375
  'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
8220
8376
  /**
8221
8377
  * Prefer `Uint8Array#toHex()` and `Uint8Array.fromHex()` over manual and Buffer hex conversions.
8222
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-uint8array-hex.md
8378
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-uint8array-hex.md
8223
8379
  */
8224
8380
  'unicorn/prefer-uint8array-hex'?: Linter.RuleEntry<[]>;
8225
8381
  /**
8226
8382
  * Prefer the unary minus operator over multiplying or dividing by `-1`.
8227
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-unary-minus.md
8383
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-unary-minus.md
8228
8384
  */
8229
8385
  'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
8230
8386
  /**
8231
8387
  * Prefer Unicode code point escapes over legacy escape sequences.
8232
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-unicode-code-point-escapes.md
8388
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-unicode-code-point-escapes.md
8233
8389
  */
8234
8390
  'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
8235
8391
  /**
8236
8392
  * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
8237
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-url-can-parse.md
8393
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-url-can-parse.md
8238
8394
  */
8239
8395
  'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
8240
8396
  /**
8241
8397
  * Prefer `URL#href` over stringifying a `URL`.
8242
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-url-href.md
8398
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-url-href.md
8243
8399
  */
8244
8400
  'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
8245
8401
  /**
8246
8402
  * Prefer `URLSearchParams` over manually splitting query strings.
8247
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-url-search-parameters.md
8403
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-url-search-parameters.md
8248
8404
  */
8249
8405
  'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
8250
8406
  /**
8251
8407
  * Prefer putting the condition in the while statement.
8252
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-while-loop-condition.md
8408
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-while-loop-condition.md
8253
8409
  */
8254
8410
  'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
8255
8411
  /**
8256
8412
  * Renamed to `unicorn/name-replacements`.
8257
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
8413
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
8258
8414
  * @deprecated
8259
8415
  */
8260
8416
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
8261
8417
  /**
8262
8418
  * Enforce consistent relative URL style.
8263
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/relative-url-style.md
8419
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/relative-url-style.md
8264
8420
  */
8265
8421
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
8266
8422
  /**
8267
8423
  * Enforce using the separator argument with `Array#join()`.
8268
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-array-join-separator.md
8424
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-array-join-separator.md
8269
8425
  */
8270
8426
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
8271
8427
  /**
8272
8428
  * Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
8273
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-array-sort-compare.md
8429
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-array-sort-compare.md
8274
8430
  */
8275
8431
  'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
8276
8432
  /**
8277
8433
  * Require `CSS.escape()` for interpolated values in CSS selectors.
8278
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-css-escape.md
8434
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-css-escape.md
8279
8435
  */
8280
8436
  'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
8281
8437
  /**
8282
8438
  * Require configured YAML frontmatter fields.
8283
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-frontmatter-fields.md
8439
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-frontmatter-fields.md
8284
8440
  */
8285
8441
  'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
8286
8442
  /**
8287
8443
  * Require non-empty module attributes for imports and exports
8288
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-module-attributes.md
8444
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-module-attributes.md
8289
8445
  */
8290
8446
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
8291
8447
  /**
8292
8448
  * Require non-empty specifier list in import and export statements.
8293
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-module-specifiers.md
8449
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-module-specifiers.md
8294
8450
  */
8295
8451
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
8296
8452
  /**
8297
8453
  * Enforce using the digits argument with `Number#toFixed()`.
8298
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-number-to-fixed-digits-argument.md
8454
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-number-to-fixed-digits-argument.md
8299
8455
  */
8300
8456
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
8301
8457
  /**
8302
8458
  * Require passive event listeners for high-frequency events.
8303
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-passive-events.md
8459
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-passive-events.md
8304
8460
  */
8305
8461
  'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
8306
8462
  /**
8307
8463
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
8308
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-post-message-target-origin.md
8464
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-post-message-target-origin.md
8309
8465
  */
8310
8466
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
8311
8467
  /**
8312
8468
  * Require boolean-returning Proxy traps to return booleans.
8313
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-proxy-trap-boolean-return.md
8469
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-proxy-trap-boolean-return.md
8314
8470
  */
8315
8471
  'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
8472
+ /**
8473
+ * Require streaming decoding of fetch-body chunks with `TextDecoder`.
8474
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-text-decoder-streaming.md
8475
+ */
8476
+ 'unicorn/require-text-decoder-streaming'?: Linter.RuleEntry<[]>;
8316
8477
  /**
8317
8478
  * Enforce a consistent style for single-line block comments.
8318
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/single-line-block-comment-style.md
8479
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/single-line-block-comment-style.md
8319
8480
  */
8320
8481
  'unicorn/single-line-block-comment-style'?: Linter.RuleEntry<UnicornSingleLineBlockCommentStyle>;
8321
8482
  /**
8322
8483
  * Enforce better string content.
8323
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/string-content.md
8484
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/string-content.md
8324
8485
  */
8325
8486
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
8326
8487
  /**
8327
8488
  * Enforce consistent brace style for `case` clauses.
8328
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/switch-case-braces.md
8489
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/switch-case-braces.md
8329
8490
  */
8330
8491
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
8331
8492
  /**
8332
8493
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
8333
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/switch-case-break-position.md
8494
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/switch-case-break-position.md
8334
8495
  */
8335
8496
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
8336
8497
  /**
8337
8498
  * Fix whitespace-insensitive template indentation.
8338
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/template-indent.md
8499
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/template-indent.md
8339
8500
  */
8340
8501
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
8341
8502
  /**
8342
8503
  * Enforce consistent case for text encoding identifiers.
8343
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/text-encoding-identifier-case.md
8504
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/text-encoding-identifier-case.md
8344
8505
  */
8345
8506
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
8346
8507
  /**
8347
8508
  * Require `new` when creating an error.
8348
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/throw-new-error.md
8509
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/throw-new-error.md
8349
8510
  */
8350
8511
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
8351
8512
  /**
8352
8513
  * Limit the complexity of `try` blocks.
8353
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/try-complexity.md
8514
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/try-complexity.md
8354
8515
  */
8355
8516
  'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
8356
8517
  /**
@@ -8824,16 +8985,36 @@ interface RuleOptions {
8824
8985
  * @see https://github.com/ntnyq/eslint-plugin-vue-perfectionist/blob/main/docs/rules/define-macros-newline.md
8825
8986
  */
8826
8987
  'vue-perfectionist/define-macros-newline'?: Linter.RuleEntry<VuePerfectionistDefineMacrosNewline>;
8988
+ /**
8989
+ * enforce declaration styles for Vue macro type arguments.
8990
+ * @see https://github.com/ntnyq/eslint-plugin-vue-perfectionist/blob/main/docs/rules/define-macros-type-style.md
8991
+ */
8992
+ 'vue-perfectionist/define-macros-type-style'?: Linter.RuleEntry<VuePerfectionistDefineMacrosTypeStyle>;
8993
+ /**
8994
+ * enforce naming patterns for function result bindings.
8995
+ * @see https://github.com/ntnyq/eslint-plugin-vue-perfectionist/blob/main/docs/rules/prefer-function-result-pattern.md
8996
+ */
8997
+ 'vue-perfectionist/prefer-function-result-pattern'?: Linter.RuleEntry<VuePerfectionistPreferFunctionResultPattern>;
8827
8998
  /**
8828
8999
  * enforce a naming pattern for Vue template references.
8829
9000
  * @see https://github.com/ntnyq/eslint-plugin-vue-perfectionist/blob/main/docs/rules/prefer-ref-pattern.md
8830
9001
  */
8831
9002
  'vue-perfectionist/prefer-ref-pattern'?: Linter.RuleEntry<VuePerfectionistPreferRefPattern>;
9003
+ /**
9004
+ * require simple expressions in Vue template event handlers.
9005
+ * @see https://github.com/ntnyq/eslint-plugin-vue-perfectionist/blob/main/docs/rules/prefer-simple-event-handler.md
9006
+ */
9007
+ 'vue-perfectionist/prefer-simple-event-handler'?: Linter.RuleEntry<VuePerfectionistPreferSimpleEventHandler>;
8832
9008
  /**
8833
9009
  * require configured props at Vue component usage sites.
8834
9010
  * @see https://github.com/ntnyq/eslint-plugin-vue-perfectionist/blob/main/docs/rules/require-component-props.md
8835
9011
  */
8836
9012
  'vue-perfectionist/require-component-props'?: Linter.RuleEntry<VuePerfectionistRequireComponentProps>;
9013
+ /**
9014
+ * require exact call-site names for Vue macro type arguments.
9015
+ * @see https://github.com/ntnyq/eslint-plugin-vue-perfectionist/blob/main/docs/rules/require-macro-type-name.md
9016
+ */
9017
+ 'vue-perfectionist/require-macro-type-name'?: Linter.RuleEntry<VuePerfectionistRequireMacroTypeName>;
8837
9018
  /**
8838
9019
  * enforce consistent ordering of Vue 3 script setup statements.
8839
9020
  * @see https://github.com/ntnyq/eslint-plugin-vue-perfectionist/blob/main/docs/rules/sort-script-setup.md
@@ -12127,6 +12308,7 @@ type InitDeclarations = ([] | ["always"] | [] | ["never"] | ["never", {
12127
12308
  }]);
12128
12309
  // ----- jsdoc/check-alignment -----
12129
12310
  type JsdocCheckAlignment = [] | [{
12311
+ ignoreEmptyLines?: boolean;
12130
12312
  innerIndent?: number;
12131
12313
  }];
12132
12314
  // ----- jsdoc/check-examples -----
@@ -12154,6 +12336,7 @@ type JsdocCheckExamples = [] | [{
12154
12336
  // ----- jsdoc/check-indentation -----
12155
12337
  type JsdocCheckIndentation = [] | [{
12156
12338
  allowIndentedSections?: boolean;
12339
+ allowNoSpaceAfterAsterisk?: boolean;
12157
12340
  excludeTags?: string[];
12158
12341
  }];
12159
12342
  // ----- jsdoc/check-line-alignment -----
@@ -12189,6 +12372,10 @@ type JsdocCheckParamNames = [] | [{
12189
12372
  type JsdocCheckPropertyNames = [] | [{
12190
12373
  enableFixer?: boolean;
12191
12374
  }];
12375
+ // ----- jsdoc/check-syntax -----
12376
+ type JsdocCheckSyntax = [] | [{
12377
+ enableFixer?: boolean;
12378
+ }];
12192
12379
  // ----- jsdoc/check-tag-names -----
12193
12380
  type JsdocCheckTagNames = [] | [{
12194
12381
  definedTags?: string[];
@@ -12573,7 +12760,6 @@ type JsdocRequireTags = [] | [{
12573
12760
  tags?: (string | {
12574
12761
  context?: string;
12575
12762
  tag?: string;
12576
- [k: string]: unknown | undefined;
12577
12763
  })[];
12578
12764
  }];
12579
12765
  // ----- jsdoc/require-template -----
@@ -18636,6 +18822,11 @@ interface _UnicornImportStyle_ModuleStyles {
18636
18822
  interface _UnicornImportStyle_BooleanObject {
18637
18823
  [k: string]: boolean | undefined;
18638
18824
  }
18825
+ // ----- unicorn/indent -----
18826
+ type UnicornIndent = [] | [{
18827
+ indent?: ("tab" | number);
18828
+ tabWidth?: number;
18829
+ }];
18639
18830
  // ----- unicorn/isolated-functions -----
18640
18831
  type UnicornIsolatedFunctions = [] | [{
18641
18832
  overrideGlobals?: {
@@ -18647,6 +18838,15 @@ type UnicornIsolatedFunctions = [] | [{
18647
18838
  }];
18648
18839
  // ----- unicorn/iteration-fallback-style -----
18649
18840
  type UnicornIterationFallbackStyle = [] | [("guard" | "fallback")];
18841
+ // ----- unicorn/key-name-casing -----
18842
+ type UnicornKeyNameCasing = [] | [{
18843
+ camelCase?: boolean;
18844
+ PascalCase?: boolean;
18845
+ SCREAMING_SNAKE_CASE?: boolean;
18846
+ "kebab-case"?: boolean;
18847
+ snake_case?: boolean;
18848
+ ignore?: string[];
18849
+ }];
18650
18850
  // ----- unicorn/logical-assignment-operators -----
18651
18851
  type UnicornLogicalAssignmentOperators = (([] | ["always"] | ["always", {
18652
18852
  enforceForIfStatements?: boolean;
@@ -18701,10 +18901,6 @@ type UnicornNoArraySort = [] | [{
18701
18901
  type UnicornNoBreakInNestedLoop = [] | [{
18702
18902
  checkContinue?: boolean;
18703
18903
  }];
18704
- // ----- unicorn/no-deprecated-css-features -----
18705
- type UnicornNoDeprecatedCssFeatures = [] | [{
18706
- allow?: string[];
18707
- }];
18708
18904
  // ----- unicorn/no-empty-file -----
18709
18905
  type UnicornNoEmptyFile = [] | [{
18710
18906
  allowComments?: boolean;
@@ -18753,9 +18949,9 @@ type UnicornNoNull = [] | [{
18753
18949
  type UnicornNoTypeofUndefined = [] | [{
18754
18950
  checkGlobalVariables?: boolean;
18755
18951
  }];
18756
- // ----- unicorn/no-unknown-pseudo-selectors -----
18757
- type UnicornNoUnknownPseudoSelectors = [] | [{
18758
- allow?: string[];
18952
+ // ----- unicorn/no-unnecessary-parameters -----
18953
+ type UnicornNoUnnecessaryParameters = [] | [{
18954
+ minimumCallCount?: number;
18759
18955
  }];
18760
18956
  // ----- unicorn/no-unnecessary-polyfills -----
18761
18957
  type UnicornNoUnnecessaryPolyfills = [] | [{
@@ -18767,10 +18963,6 @@ type UnicornNoUnnecessaryPolyfills = [] | [{
18767
18963
  type UnicornNoUnreadableArrayDestructuring = [] | [{
18768
18964
  maximumIgnoredElements?: number;
18769
18965
  }];
18770
- // ----- unicorn/no-unscoped-css-nesting-selector -----
18771
- type UnicornNoUnscopedCssNestingSelector = [] | [{
18772
- scopingRootAtRules?: string[];
18773
- }];
18774
18966
  // ----- unicorn/no-useless-undefined -----
18775
18967
  type UnicornNoUselessUndefined = [] | [{
18776
18968
  checkArguments?: boolean;
@@ -18827,6 +19019,7 @@ type UnicornPreferAt = [] | [{
18827
19019
  // ----- unicorn/prefer-combined-guards -----
18828
19020
  type UnicornPreferCombinedGuards = [] | [{
18829
19021
  checkCompoundConditions?: boolean;
19022
+ checkMultiStatementBodies?: boolean;
18830
19023
  }];
18831
19024
  // ----- unicorn/prefer-continue -----
18832
19025
  type UnicornPreferContinue = [] | [{
@@ -18843,10 +19036,6 @@ type UnicornPreferEarlyReturn = [] | [{
18843
19036
  maximumStatements?: number;
18844
19037
  checkShortBodies?: boolean;
18845
19038
  }];
18846
- // ----- unicorn/prefer-explicit-viewport-units -----
18847
- type UnicornPreferExplicitViewportUnits = [] | [{
18848
- unit?: ("dvh" | "svh" | "lvh");
18849
- }];
18850
19039
  // ----- unicorn/prefer-export-from -----
18851
19040
  type UnicornPreferExportFrom = [] | [{
18852
19041
  checkUsedVariables?: boolean;
@@ -18890,6 +19079,10 @@ type UnicornPreferSetHas = [] | [{
18890
19079
  }];
18891
19080
  // ----- unicorn/prefer-short-arrow-method -----
18892
19081
  type UnicornPreferShortArrowMethod = [] | [("always" | "consistent-as-needed")];
19082
+ // ----- unicorn/prefer-simplified-conditions -----
19083
+ type UnicornPreferSimplifiedConditions = [] | [{
19084
+ negatedConditions?: ("simplify" | "expand");
19085
+ }];
18893
19086
  // ----- unicorn/prefer-single-call -----
18894
19087
  type UnicornPreferSingleCall = [] | [{
18895
19088
  ignore?: string[];
@@ -19147,11 +19340,36 @@ type VuePerfectionistComponentPropValues = [] | [{
19147
19340
  type VuePerfectionistDefineMacrosNewline = [] | [{
19148
19341
  macros?: ("defineProps" | "defineEmits" | "defineSlots" | "defineExpose" | "defineOptions")[];
19149
19342
  }];
19343
+ // ----- vue-perfectionist/define-macros-type-style -----
19344
+ type VuePerfectionistDefineMacrosTypeStyle = [] | [{
19345
+ macros?: {
19346
+ defineProps?: (("inline" | "local" | "imported") | [("inline" | "local" | "imported"), ...(("inline" | "local" | "imported"))[]] | false);
19347
+ defineEmits?: (("inline" | "local" | "imported") | [("inline" | "local" | "imported"), ...(("inline" | "local" | "imported"))[]] | false);
19348
+ defineSlots?: (("inline" | "local" | "imported") | [("inline" | "local" | "imported"), ...(("inline" | "local" | "imported"))[]] | false);
19349
+ };
19350
+ }];
19351
+ // ----- vue-perfectionist/prefer-function-result-pattern -----
19352
+ type VuePerfectionistPreferFunctionResultPattern = [] | [{
19353
+ targets?: {
19354
+ source: string;
19355
+ names: [string, ...(string)[]];
19356
+ pattern: string;
19357
+ returnIndex?: number;
19358
+ booleanOnly?: boolean;
19359
+ autoImport?: boolean;
19360
+ }[];
19361
+ }];
19150
19362
  // ----- vue-perfectionist/prefer-ref-pattern -----
19151
19363
  type VuePerfectionistPreferRefPattern = [] | [{
19152
19364
  pattern?: string;
19153
19365
  targets?: ("template" | "useTemplateRef" | "render")[];
19154
19366
  }];
19367
+ // ----- vue-perfectionist/prefer-simple-event-handler -----
19368
+ type VuePerfectionistPreferSimpleEventHandler = [] | [{
19369
+ allowInlineFunctions?: boolean;
19370
+ allowConditional?: boolean;
19371
+ allowLogical?: boolean;
19372
+ }];
19155
19373
  // ----- vue-perfectionist/require-component-props -----
19156
19374
  type VuePerfectionistRequireComponentProps = [] | [{
19157
19375
  targets?: {
@@ -19160,6 +19378,14 @@ type VuePerfectionistRequireComponentProps = [] | [{
19160
19378
  }[];
19161
19379
  unknownBindings?: ("report" | "ignore");
19162
19380
  }];
19381
+ // ----- vue-perfectionist/require-macro-type-name -----
19382
+ type VuePerfectionistRequireMacroTypeName = [] | [{
19383
+ macros?: {
19384
+ defineProps?: (string | false);
19385
+ defineEmits?: (string | false);
19386
+ defineSlots?: (string | false);
19387
+ };
19388
+ }];
19163
19389
  // ----- vue-perfectionist/sort-script-setup -----
19164
19390
  type VuePerfectionistSortScriptSetup = [] | [{
19165
19391
  newlinesInside?: ((number | "ignore") | "newlinesBetween");