@ntnyq/eslint-config 7.0.0-beta.23 → 7.0.0-beta.25

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