@infernodesign/eslint-config 2.14.2 → 2.15.0

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.ts CHANGED
@@ -3831,7 +3831,7 @@ interface RuleOptions {
3831
3831
  * Disallows 'target="_blank"' without 'rel="noreferrer noopener"'.
3832
3832
  * @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-target-blank
3833
3833
  */
3834
- 'react/dom-no-unsafe-target-blank'?: Linter.RuleEntry<[]>;
3834
+ 'react/dom-no-unsafe-target-blank'?: Linter.RuleEntry<ReactDomNoUnsafeTargetBlank>;
3835
3835
  /**
3836
3836
  * Replaces usage of 'useFormState' with 'useActionState'.
3837
3837
  * @see https://eslint-react.xyz/docs/rules/dom-no-use-form-state
@@ -5032,6 +5032,36 @@ interface RuleOptions {
5032
5032
  * @deprecated
5033
5033
  */
5034
5034
  'semi-style'?: Linter.RuleEntry<SemiStyle>;
5035
+ /**
5036
+ * Disallow arbitrary values on appearance utilities; use theme tokens and scale values.
5037
+ * @see https://github.com/shadcn-ui/lint/blob/main/docs/rules/no-arbitrary-values.md
5038
+ */
5039
+ 'shadcn/no-arbitrary-values'?: Linter.RuleEntry<ShadcnNoArbitraryValues>;
5040
+ /**
5041
+ * Disallow inline style attributes, except CSS custom properties.
5042
+ * @see https://github.com/shadcn-ui/lint/blob/main/docs/rules/no-inline-styles.md
5043
+ */
5044
+ 'shadcn/no-inline-styles'?: Linter.RuleEntry<ShadcnNoInlineStyles>;
5045
+ /**
5046
+ * Require theme tokens for color utilities instead of the raw Tailwind palette.
5047
+ * @see https://github.com/shadcn-ui/lint/blob/main/docs/rules/no-raw-colors.md
5048
+ */
5049
+ 'shadcn/no-raw-colors'?: Linter.RuleEntry<ShadcnNoRawColors>;
5050
+ /**
5051
+ * Disallow classes on design-system components except what the rule's allow list and the component's contract permit.
5052
+ * @see https://github.com/shadcn-ui/lint/blob/main/docs/rules/no-restyle.md
5053
+ */
5054
+ 'shadcn/no-restyle'?: Linter.RuleEntry<ShadcnNoRestyle>;
5055
+ /**
5056
+ * Disallow classes Tailwind does not know; no CSS is generated for them.
5057
+ * @see https://github.com/shadcn-ui/lint/blob/main/docs/rules/no-unknown-classes.md
5058
+ */
5059
+ 'shadcn/no-unknown-classes'?: Linter.RuleEntry<ShadcnNoUnknownClasses>;
5060
+ /**
5061
+ * Require statically analyzable className values on design-system components.
5062
+ * @see https://github.com/shadcn-ui/lint/blob/main/docs/rules/require-static-classes.md
5063
+ */
5064
+ 'shadcn/require-static-classes'?: Linter.RuleEntry<ShadcnRequireStaticClasses>;
5035
5065
  /**
5036
5066
  * Disallow early returns in components. Solid components only run once, and so conditionals should be inside JSX.
5037
5067
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/components-return-once.md
@@ -7522,1992 +7552,2002 @@ interface RuleOptions {
7522
7552
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
7523
7553
  /**
7524
7554
  * Prefer better DOM traversal APIs.
7525
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/better-dom-traversing.md
7555
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/better-dom-traversing.md
7526
7556
  */
7527
7557
  'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
7528
7558
  /**
7529
7559
  * Removed. Prefer `eslint-plugin-regexp`
7530
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#better-regex
7560
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#better-regex
7531
7561
  * @deprecated
7532
7562
  */
7533
7563
  'unicorn/better-regex'?: Linter.RuleEntry<[]>;
7534
7564
  /**
7535
7565
  * Enforce a specific parameter name in catch clauses.
7536
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/catch-error-name.md
7566
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/catch-error-name.md
7537
7567
  */
7538
7568
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
7539
7569
  /**
7540
7570
  * Enforce consistent class references in static methods.
7541
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/class-reference-in-static-methods.md
7571
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/class-reference-in-static-methods.md
7542
7572
  */
7543
7573
  'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
7544
7574
  /**
7545
- * Enforce consistent spacing before and after commas in JSON.
7546
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/comma-spacing.md
7575
+ * Enforce consistent spacing before and after commas in JSON and SOML.
7576
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/comma-spacing.md
7547
7577
  */
7548
7578
  'unicorn/comma-spacing'?: Linter.RuleEntry<[]>;
7549
7579
  /**
7550
7580
  * Enforce better comment content.
7551
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/comment-content.md
7581
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/comment-content.md
7552
7582
  */
7553
7583
  'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
7554
7584
  /**
7555
7585
  * Enforce a consistent return style for multiline arrow function bodies.
7556
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-arrow-return-style.md
7586
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-arrow-return-style.md
7557
7587
  */
7558
7588
  'unicorn/consistent-arrow-return-style'?: Linter.RuleEntry<[]>;
7559
7589
  /**
7560
7590
  * Enforce consistent assertion style with `node:assert`.
7561
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-assert.md
7591
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-assert.md
7562
7592
  */
7563
7593
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
7564
7594
  /**
7565
7595
  * Enforce consistent naming for boolean names.
7566
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-boolean-name.md
7596
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-boolean-name.md
7567
7597
  */
7568
7598
  'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
7569
7599
  /**
7570
7600
  * Enforce consistent class member order.
7571
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-class-member-order.md
7601
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-class-member-order.md
7572
7602
  */
7573
7603
  'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
7574
7604
  /**
7575
7605
  * Enforce consistent spelling of compound words in identifiers.
7576
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-compound-words.md
7606
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-compound-words.md
7577
7607
  */
7578
7608
  'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
7579
7609
  /**
7580
7610
  * Enforce consistent conditional object spread style.
7581
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-conditional-object-spread.md
7611
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-conditional-object-spread.md
7582
7612
  */
7583
7613
  'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
7584
7614
  /**
7585
7615
  * Prefer passing `Date` directly to the constructor when cloning.
7586
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-date-clone.md
7616
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-date-clone.md
7587
7617
  */
7588
7618
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
7589
7619
  /**
7590
7620
  * Use destructured variables over properties.
7591
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-destructuring.md
7621
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-destructuring.md
7592
7622
  */
7593
7623
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
7594
7624
  /**
7595
7625
  * Prefer consistent types when spreading a ternary in an array literal.
7596
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-empty-array-spread.md
7626
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-empty-array-spread.md
7597
7627
  */
7598
7628
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
7599
7629
  /**
7600
7630
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
7601
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-existence-index-check.md
7631
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-existence-index-check.md
7602
7632
  */
7603
7633
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
7604
7634
  /**
7605
7635
  * Enforce consistent decorator position on exported classes.
7606
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-export-decorator-position.md
7636
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-export-decorator-position.md
7607
7637
  */
7608
7638
  'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
7609
7639
  /**
7610
7640
  * Move function definitions to the highest possible scope.
7611
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-function-scoping.md
7641
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-function-scoping.md
7612
7642
  */
7613
7643
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
7614
7644
  /**
7615
7645
  * Enforce function syntax by role.
7616
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-function-style.md
7646
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-function-style.md
7617
7647
  */
7618
7648
  'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
7619
7649
  /**
7620
7650
  * Enforce consistent JSON file reads before `JSON.parse()`.
7621
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-json-file-read.md
7651
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-json-file-read.md
7622
7652
  */
7623
7653
  'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
7624
7654
  /**
7625
7655
  * Enforce consistent optional chaining for same-base member access.
7626
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-optional-chaining.md
7656
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-optional-chaining.md
7627
7657
  */
7628
7658
  'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
7629
7659
  /**
7630
7660
  * Enforce consistent style for escaping `${` in template literals.
7631
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-template-literal-escape.md
7661
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-template-literal-escape.md
7632
7662
  */
7633
7663
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
7634
7664
  /**
7635
7665
  * Enforce consistent labels on tuple type elements.
7636
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-tuple-labels.md
7666
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-tuple-labels.md
7637
7667
  */
7638
7668
  'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
7639
7669
  /**
7640
7670
  * Enforce correct `Error` subclassing.
7641
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/custom-error-definition.md
7671
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/custom-error-definition.md
7642
7672
  */
7643
7673
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
7644
7674
  /**
7645
7675
  * Enforce consistent default export declarations.
7646
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/default-export-style.md
7676
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/default-export-style.md
7647
7677
  */
7648
7678
  'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
7649
7679
  /**
7650
7680
  * Enforce consistent style for DOM element dataset access.
7651
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/dom-node-dataset.md
7681
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/dom-node-dataset.md
7652
7682
  */
7653
7683
  'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
7654
7684
  /**
7655
7685
  * Enforce no spaces between braces.
7656
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/empty-brace-spaces.md
7686
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/empty-brace-spaces.md
7657
7687
  */
7658
7688
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
7659
7689
  /**
7660
7690
  * Enforce passing a `message` value when creating a built-in error.
7661
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/error-message.md
7691
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/error-message.md
7662
7692
  */
7663
7693
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
7664
7694
  /**
7665
7695
  * Require escape sequences to use uppercase or lowercase values.
7666
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/escape-case.md
7696
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/escape-case.md
7667
7697
  */
7668
7698
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
7669
7699
  /**
7670
7700
  * Add expiration conditions to TODO comments.
7671
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/expiring-todo-comments.md
7701
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/expiring-todo-comments.md
7672
7702
  */
7673
7703
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
7674
7704
  /**
7675
7705
  * Enforce explicitly comparing the `length` or `size` property of a value.
7676
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/explicit-length-check.md
7706
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/explicit-length-check.md
7677
7707
  */
7678
7708
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
7679
7709
  /**
7680
7710
  * Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
7681
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/explicit-timer-delay.md
7711
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/explicit-timer-delay.md
7682
7712
  */
7683
7713
  'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
7684
7714
  /**
7685
7715
  * Enforce a case style for filenames and directory names.
7686
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/filename-case.md
7716
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/filename-case.md
7687
7717
  */
7688
7718
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
7689
7719
  /**
7690
7720
  * Require identifiers to match a specified regular expression.
7691
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/id-match.md
7721
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/id-match.md
7692
7722
  */
7693
7723
  'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
7694
7724
  /**
7695
7725
  * Enforce specific import styles per module.
7696
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/import-style.md
7726
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/import-style.md
7697
7727
  */
7698
7728
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
7699
7729
  /**
7700
7730
  * Enforce consistent indentation in JSON and CSS.
7701
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/indent.md
7731
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/indent.md
7702
7732
  */
7703
7733
  'unicorn/indent'?: Linter.RuleEntry<UnicornIndent>;
7704
7734
  /**
7705
7735
  * Prevent usage of variables from outside the scope of isolated functions.
7706
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/isolated-functions.md
7736
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/isolated-functions.md
7707
7737
  */
7708
7738
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
7709
7739
  /**
7710
7740
  * Enforce a consistent style for optional loop sources.
7711
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/iteration-fallback-style.md
7741
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/iteration-fallback-style.md
7712
7742
  */
7713
7743
  'unicorn/iteration-fallback-style'?: Linter.RuleEntry<UnicornIterationFallbackStyle>;
7714
7744
  /**
7715
7745
  * Enforce a case style for data keys.
7716
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/key-name-casing.md
7746
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/key-name-casing.md
7717
7747
  */
7718
7748
  'unicorn/key-name-casing'?: Linter.RuleEntry<UnicornKeyNameCasing>;
7719
7749
  /**
7720
7750
  * Require or disallow logical assignment operator shorthand
7721
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/logical-assignment-operators.md
7751
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/logical-assignment-operators.md
7722
7752
  */
7723
7753
  'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
7724
7754
  /**
7725
7755
  * Limit the depth of nested calls.
7726
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/max-nested-calls.md
7756
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/max-nested-calls.md
7727
7757
  */
7728
7758
  'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
7729
7759
  /**
7730
7760
  * Enforce replacements for variable, property, and filenames.
7731
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/name-replacements.md
7761
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/name-replacements.md
7732
7762
  */
7733
7763
  'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
7734
7764
  /**
7735
7765
  * Enforce correct use of `new` for builtin constructors.
7736
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/new-for-builtins.md
7766
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/new-for-builtins.md
7737
7767
  */
7738
7768
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
7739
7769
  /**
7740
7770
  * Enforce specifying rules to disable in `eslint-disable` comments.
7741
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-abusive-eslint-disable.md
7771
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-abusive-eslint-disable.md
7742
7772
  */
7743
7773
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
7744
7774
  /**
7745
7775
  * Disallow recursive access to `this` within getters and setters.
7746
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-accessor-recursion.md
7776
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-accessor-recursion.md
7747
7777
  */
7748
7778
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
7749
7779
  /**
7750
7780
  * Disallow bitwise operators where a logical operator was likely intended.
7751
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-accidental-bitwise-operator.md
7781
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-accidental-bitwise-operator.md
7752
7782
  */
7753
7783
  'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
7754
7784
  /**
7755
7785
  * Disallow anonymous functions and classes as the default export.
7756
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-anonymous-default-export.md
7786
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-anonymous-default-export.md
7757
7787
  */
7758
7788
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
7759
7789
  /**
7760
7790
  * Prevent passing a function reference directly to iterator methods.
7761
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-callback-reference.md
7791
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-callback-reference.md
7762
7792
  */
7763
7793
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
7764
7794
  /**
7765
7795
  * Disallow array accumulation with `Array#concat()` in loops.
7766
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-concat-in-loop.md
7796
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-concat-in-loop.md
7767
7797
  */
7768
7798
  'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
7769
7799
  /**
7770
7800
  * Disallow using reference values as `Array#fill()` values.
7771
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-fill-with-reference-type.md
7801
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-fill-with-reference-type.md
7772
7802
  */
7773
7803
  'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
7774
7804
  /**
7775
7805
  * Disallow `.fill()` after `Array.from({length: …})`.
7776
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-from-fill.md
7806
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-from-fill.md
7777
7807
  */
7778
7808
  'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
7779
7809
  /**
7780
7810
  * Disallow front-of-array mutation.
7781
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-front-mutation.md
7811
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-front-mutation.md
7782
7812
  */
7783
7813
  'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
7784
7814
  /**
7785
7815
  * Disallow using the `this` argument in array methods.
7786
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-method-this-argument.md
7816
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-method-this-argument.md
7787
7817
  */
7788
7818
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
7789
7819
  /**
7790
7820
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
7791
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
7821
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
7792
7822
  * @deprecated
7793
7823
  */
7794
7824
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
7795
7825
  /**
7796
7826
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
7797
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-reduce.md
7827
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-reduce.md
7798
7828
  */
7799
7829
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
7800
7830
  /**
7801
7831
  * Prefer `Array#toReversed()` over `Array#reverse()`.
7802
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-reverse.md
7832
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-reverse.md
7803
7833
  */
7804
7834
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
7805
7835
  /**
7806
7836
  * Prefer `Array#toSorted()` over `Array#sort()`.
7807
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-sort.md
7837
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-sort.md
7808
7838
  */
7809
7839
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
7810
7840
  /**
7811
7841
  * Disallow sorting arrays to get the minimum or maximum value.
7812
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-sort-for-min-max.md
7842
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-sort-for-min-max.md
7813
7843
  */
7814
7844
  'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
7815
7845
  /**
7816
7846
  * Prefer `Array#toSpliced()` over `Array#splice()`.
7817
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-splice.md
7847
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-splice.md
7818
7848
  */
7819
7849
  'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
7820
7850
  /**
7821
- * Disallow asterisk prefixes in multiline comments.
7822
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
7851
+ * Disallow asterisk prefixes and shared indentation in multiline comments.
7852
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
7823
7853
  */
7824
7854
  'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
7825
7855
  /**
7826
7856
  * Disallow asynchronous callbacks in synchronous iterator helpers.
7827
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-async-iterator-callback.md
7857
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-async-iterator-callback.md
7828
7858
  */
7829
7859
  'unicorn/no-async-iterator-callback'?: Linter.RuleEntry<[]>;
7830
7860
  /**
7831
7861
  * Disallow async functions as `Promise#finally()` callbacks.
7832
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-async-promise-finally.md
7862
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-async-promise-finally.md
7833
7863
  */
7834
7864
  'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
7835
7865
  /**
7836
7866
  * Disallow member access from await expression.
7837
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-await-expression-member.md
7867
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-await-expression-member.md
7838
7868
  */
7839
7869
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
7840
7870
  /**
7841
7871
  * Disallow using `await` in `Promise` method parameters.
7842
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-await-in-promise-methods.md
7872
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-await-in-promise-methods.md
7843
7873
  */
7844
7874
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
7845
7875
  /**
7846
7876
  * Disallow barrel files.
7847
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-barrel-files.md
7877
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-barrel-files.md
7848
7878
  */
7849
7879
  'unicorn/no-barrel-files'?: Linter.RuleEntry<[]>;
7850
7880
  /**
7851
7881
  * Disallow unnecessary `Blob` to `File` conversion.
7852
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-blob-to-file.md
7882
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-blob-to-file.md
7853
7883
  */
7854
7884
  'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
7855
7885
  /**
7856
7886
  * Disallow boolean-returning sort comparators.
7857
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-boolean-sort-comparator.md
7887
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-boolean-sort-comparator.md
7858
7888
  */
7859
7889
  'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
7860
7890
  /**
7861
7891
  * Disallow `break` and optionally `continue` in nested loops and switches inside loops.
7862
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-break-in-nested-loop.md
7892
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-break-in-nested-loop.md
7863
7893
  */
7864
7894
  'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<UnicornNoBreakInNestedLoop>;
7865
7895
  /**
7866
7896
  * Prefer drawing canvases directly instead of converting them to images.
7867
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-canvas-to-image.md
7897
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-canvas-to-image.md
7868
7898
  */
7869
7899
  'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
7870
7900
  /**
7871
7901
  * Disallow chained comparisons such as `a < b < c`.
7872
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-chained-comparison.md
7902
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-chained-comparison.md
7873
7903
  */
7874
7904
  'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
7875
7905
  /**
7876
7906
  * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
7877
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-collection-bracket-access.md
7907
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-collection-bracket-access.md
7878
7908
  */
7879
7909
  'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
7880
7910
  /**
7881
7911
  * Disallow dynamic object property existence checks.
7882
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-computed-property-existence-check.md
7912
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-computed-property-existence-check.md
7883
7913
  */
7884
7914
  'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
7885
7915
  /**
7886
7916
  * Disallow conflicting CSS query and HTML form constraints.
7887
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-conflicting-constraints.md
7917
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-conflicting-constraints.md
7888
7918
  */
7889
7919
  'unicorn/no-conflicting-constraints'?: Linter.RuleEntry<[]>;
7890
7920
  /**
7891
7921
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
7892
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-confusing-array-splice.md
7922
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-confusing-array-splice.md
7893
7923
  */
7894
7924
  'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
7895
7925
  /**
7896
7926
  * Disallow confusing uses of `Array#with()`.
7897
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-confusing-array-with.md
7927
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-confusing-array-with.md
7898
7928
  */
7899
7929
  'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
7900
7930
  /**
7901
7931
  * Do not use leading/trailing space between `console.log` parameters.
7902
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-console-spaces.md
7932
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-console-spaces.md
7903
7933
  */
7904
7934
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
7905
7935
  /**
7906
7936
  * Disallow arithmetic and bitwise operations that always evaluate to `0`.
7907
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-constant-zero-expression.md
7937
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-constant-zero-expression.md
7908
7938
  */
7909
7939
  'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
7910
7940
  /**
7911
7941
  * Disallow declarations before conditional early exits when they are only used after the exit.
7912
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-declarations-before-early-exit.md
7942
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-declarations-before-early-exit.md
7913
7943
  */
7914
7944
  'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
7915
7945
  /**
7916
7946
  * Moved to `eslint-cssicorn` as `cssicorn/no-deprecated-features`.
7917
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-deprecated-css-features
7947
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-deprecated-css-features
7918
7948
  * @deprecated
7919
7949
  */
7920
7950
  'unicorn/no-deprecated-css-features'?: Linter.RuleEntry<[]>;
7921
7951
  /**
7922
7952
  * Do not use `document.cookie` directly.
7923
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-document-cookie.md
7953
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-document-cookie.md
7924
7954
  */
7925
7955
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
7926
7956
  /**
7927
7957
  * Disallow two comparisons of the same operands that can be combined into one.
7928
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-double-comparison.md
7958
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-double-comparison.md
7929
7959
  */
7930
7960
  'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
7931
7961
  /**
7932
7962
  * Moved to `eslint-cssicorn` as `cssicorn/no-duplicate-selectors`.
7933
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-css-selectors
7963
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-css-selectors
7934
7964
  * @deprecated
7935
7965
  */
7936
7966
  'unicorn/no-duplicate-css-selectors'?: Linter.RuleEntry<[]>;
7937
7967
  /**
7938
7968
  * Moved to `eslint-cssicorn` as `cssicorn/no-duplicate-font-family-names`.
7939
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-font-family-names
7969
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-font-family-names
7940
7970
  * @deprecated
7941
7971
  */
7942
7972
  'unicorn/no-duplicate-font-family-names'?: Linter.RuleEntry<[]>;
7943
7973
  /**
7944
7974
  * Disallow duplicate adjacent branches in if chains.
7945
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-if-branches.md
7975
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-duplicate-if-branches.md
7946
7976
  */
7947
7977
  'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
7948
7978
  /**
7949
7979
  * Disallow adjacent duplicate operands in logical expressions.
7950
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-logical-operands.md
7980
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-duplicate-logical-operands.md
7951
7981
  */
7952
7982
  'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
7953
7983
  /**
7954
7984
  * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
7955
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-loops.md
7985
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-duplicate-loops.md
7956
7986
  */
7957
7987
  'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
7958
7988
  /**
7959
7989
  * Disallow duplicate values in `Set` constructor array literals.
7960
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-set-values.md
7990
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-duplicate-set-values.md
7961
7991
  */
7962
7992
  'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
7963
7993
  /**
7964
7994
  * Disallow empty files.
7965
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-empty-file.md
7995
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-empty-file.md
7966
7996
  */
7967
7997
  'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
7968
7998
  /**
7969
7999
  * Disallow empty link text in Markdown.
7970
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-empty-link-text.md
8000
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-empty-link-text.md
7971
8001
  */
7972
8002
  'unicorn/no-empty-link-text'?: Linter.RuleEntry<[]>;
7973
8003
  /**
7974
8004
  * Disallow assigning to built-in error properties.
7975
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-error-property-assignment.md
8005
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-error-property-assignment.md
7976
8006
  */
7977
8007
  'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
7978
8008
  /**
7979
8009
  * Disallow exports in scripts.
7980
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-exports-in-scripts.md
8010
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-exports-in-scripts.md
7981
8011
  */
7982
8012
  'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
7983
8013
  /**
7984
8014
  * Prefer `for…of` over the `forEach` method.
7985
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-for-each.md
8015
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-for-each.md
7986
8016
  */
7987
8017
  'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
7988
8018
  /**
7989
8019
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
7990
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-for-loop.md
8020
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-for-loop.md
7991
8021
  */
7992
8022
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
7993
8023
  /**
7994
8024
  * Disallow assigning properties on the global object.
7995
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-global-object-property-assignment.md
8025
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-global-object-property-assignment.md
7996
8026
  */
7997
8027
  'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
7998
8028
  /**
7999
8029
  * Replaced by `unicorn/prefer-literal-ascii` and `unicorn/prefer-unicode-code-point-escapes`, which cover more cases.
8000
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
8030
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
8001
8031
  * @deprecated
8002
8032
  */
8003
8033
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
8004
8034
  /**
8005
- * Disallow immediate mutation after variable assignment.
8006
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-immediate-mutation.md
8035
+ * Disallow immediate mutation after assignment and initialization immediately after declaration.
8036
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-immediate-mutation.md
8007
8037
  */
8008
8038
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<UnicornNoImmediateMutation>;
8009
8039
  /**
8010
8040
  * Disallow impossible comparisons against `.length` or `.size`.
8011
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-impossible-length-comparison.md
8041
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-impossible-length-comparison.md
8012
8042
  */
8013
8043
  'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
8014
8044
  /**
8015
8045
  * Disallow class accessors that hide an inherited getter or setter.
8016
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-incomplete-accessor-override.md
8046
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-incomplete-accessor-override.md
8017
8047
  */
8018
8048
  'unicorn/no-incomplete-accessor-override'?: Linter.RuleEntry<[]>;
8019
8049
  /**
8020
8050
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
8021
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-incorrect-query-selector.md
8051
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-incorrect-query-selector.md
8022
8052
  */
8023
8053
  'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
8024
8054
  /**
8025
8055
  * Disallow incorrect template literal interpolation syntax.
8026
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-incorrect-template-string-interpolation.md
8056
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-incorrect-template-string-interpolation.md
8027
8057
  */
8028
8058
  'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
8029
8059
  /**
8030
8060
  * Disallow ineffective CSP directives in `<meta>` elements.
8031
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-ineffective-csp-directives.md
8061
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-ineffective-csp-directives.md
8032
8062
  */
8033
8063
  'unicorn/no-ineffective-csp-directives'?: Linter.RuleEntry<[]>;
8034
8064
  /**
8035
8065
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
8036
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
8066
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
8037
8067
  * @deprecated
8038
8068
  */
8039
8069
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
8040
8070
  /**
8041
8071
  * Disallow `instanceof` with built-in objects
8042
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-instanceof-builtins.md
8072
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-instanceof-builtins.md
8043
8073
  */
8044
8074
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
8045
8075
  /**
8046
8076
  * Disallow calling functions and constructors with an invalid number of arguments.
8047
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-argument-count.md
8077
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-argument-count.md
8048
8078
  */
8049
8079
  'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
8050
8080
  /**
8051
8081
  * Disallow invalid values for HTML boolean attributes.
8052
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-boolean-attribute-value.md
8082
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-boolean-attribute-value.md
8053
8083
  */
8054
8084
  'unicorn/no-invalid-boolean-attribute-value'?: Linter.RuleEntry<[]>;
8055
8085
  /**
8056
8086
  * Disallow comparing a single character from a string to a multi-character string.
8057
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-character-comparison.md
8087
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-character-comparison.md
8058
8088
  */
8059
8089
  'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
8060
8090
  /**
8061
8091
  * Disallow invalid DOM tokens.
8062
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-dom-token.md
8092
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-dom-token.md
8063
8093
  */
8064
8094
  'unicorn/no-invalid-dom-token'?: Linter.RuleEntry<[]>;
8065
8095
  /**
8066
8096
  * Disallow invalid options in `fetch()` and `new Request()`.
8067
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-fetch-options.md
8097
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-fetch-options.md
8068
8098
  */
8069
8099
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
8070
8100
  /**
8071
8101
  * Disallow invalid `accept` values on file inputs.
8072
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-file-input-accept.md
8102
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-file-input-accept.md
8073
8103
  */
8074
8104
  'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
8075
8105
  /**
8076
8106
  * Disallow invalid subresource integrity metadata.
8077
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-integrity.md
8107
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-integrity.md
8078
8108
  */
8079
8109
  'unicorn/no-invalid-integrity'?: Linter.RuleEntry<[]>;
8080
8110
  /**
8081
8111
  * Disallow invalid or ignored Intl options.
8082
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-intl-options.md
8112
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-intl-options.md
8083
8113
  */
8084
8114
  'unicorn/no-invalid-intl-options'?: Linter.RuleEntry<[]>;
8085
8115
  /**
8086
8116
  * Moved to `eslint-cssicorn` as `cssicorn/no-invalid-media-features`.
8087
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-invalid-media-features
8117
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-invalid-media-features
8088
8118
  * @deprecated
8089
8119
  */
8090
8120
  'unicorn/no-invalid-media-features'?: Linter.RuleEntry<[]>;
8091
8121
  /**
8092
8122
  * Disallow invalid property descriptors.
8093
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-property-descriptor.md
8123
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-property-descriptor.md
8094
8124
  */
8095
8125
  'unicorn/no-invalid-property-descriptor'?: Linter.RuleEntry<[]>;
8096
8126
  /**
8097
8127
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
8098
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-remove-event-listener.md
8128
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-remove-event-listener.md
8099
8129
  */
8100
8130
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
8101
8131
  /**
8102
8132
  * Disallow invalid options in `new Response()`, `Response.json()`, and `Response.redirect()`.
8103
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-response-options.md
8133
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-response-options.md
8104
8134
  */
8105
8135
  'unicorn/no-invalid-response-options'?: Linter.RuleEntry<[]>;
8106
8136
  /**
8107
8137
  * Disallow invalid arguments to `CSSStyleDeclaration#setProperty()`.
8108
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-style-set-property.md
8138
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-style-set-property.md
8109
8139
  */
8110
8140
  'unicorn/no-invalid-style-set-property'?: Linter.RuleEntry<[]>;
8111
8141
  /**
8112
8142
  * Disallow statically known invalid Temporal arithmetic.
8113
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-temporal-arithmetic.md
8143
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-temporal-arithmetic.md
8114
8144
  */
8115
8145
  'unicorn/no-invalid-temporal-arithmetic'?: Linter.RuleEntry<[]>;
8116
8146
  /**
8117
8147
  * Disallow invalid protocol strings in comparisons with `URL#protocol`.
8118
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-url-protocol-comparison.md
8148
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-url-protocol-comparison.md
8119
8149
  */
8120
8150
  'unicorn/no-invalid-url-protocol-comparison'?: Linter.RuleEntry<[]>;
8121
8151
  /**
8122
8152
  * Disallow invalid implementations of well-known symbol methods.
8123
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
8153
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
8124
8154
  */
8125
8155
  'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
8126
8156
  /**
8127
8157
  * Disallow `javascript:` URLs in Markdown.
8128
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-javascript-url.md
8158
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-javascript-url.md
8129
8159
  */
8130
8160
  'unicorn/no-javascript-url'?: Linter.RuleEntry<[]>;
8131
8161
  /**
8132
8162
  * Disallow identifiers starting with `new` or `class`.
8133
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-keyword-prefix.md
8163
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-keyword-prefix.md
8134
8164
  */
8135
8165
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
8136
8166
  /**
8137
8167
  * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
8138
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-late-current-target-access.md
8168
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-late-current-target-access.md
8139
8169
  */
8140
8170
  'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
8141
8171
  /**
8142
8172
  * Disallow event-control method calls after the synchronous event dispatch has finished.
8143
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-late-event-control.md
8173
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-late-event-control.md
8144
8174
  */
8145
8175
  'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
8146
8176
  /**
8147
8177
  * Disallow empty lines at the beginning of a file.
8148
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-leading-empty-lines.md
8178
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-leading-empty-lines.md
8149
8179
  */
8150
8180
  'unicorn/no-leading-empty-lines'?: Linter.RuleEntry<[]>;
8151
8181
  /**
8152
8182
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
8153
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
8183
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
8154
8184
  * @deprecated
8155
8185
  */
8156
8186
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
8157
8187
  /**
8158
8188
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
8159
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-lonely-if.md
8189
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-lonely-if.md
8160
8190
  */
8161
8191
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
8162
8192
  /**
8163
8193
  * Disallow mutating a loop iterable during iteration.
8164
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-loop-iterable-mutation.md
8194
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-loop-iterable-mutation.md
8165
8195
  */
8166
8196
  'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
8167
8197
  /**
8168
8198
  * Disallow numeric literals that lose precision when represented as IEEE 754 binary64 values.
8169
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-loss-of-precision.md
8199
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-loss-of-precision.md
8170
8200
  */
8171
8201
  'unicorn/no-loss-of-precision'?: Linter.RuleEntry<[]>;
8172
8202
  /**
8173
8203
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
8174
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-magic-array-flat-depth.md
8204
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-magic-array-flat-depth.md
8175
8205
  */
8176
8206
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
8177
8207
  /**
8178
8208
  * Disallow manually wrapped comments.
8179
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-manually-wrapped-comments.md
8209
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-manually-wrapped-comments.md
8180
8210
  */
8181
8211
  'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
8182
8212
  /**
8183
8213
  * Disallow checking a Map key before accessing a different key.
8184
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-mismatched-map-key.md
8214
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-mismatched-map-key.md
8185
8215
  */
8186
8216
  'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
8187
8217
  /**
8188
8218
  * Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
8189
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-misrefactored-assignment.md
8219
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-misrefactored-assignment.md
8190
8220
  */
8191
8221
  'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
8192
8222
  /**
8193
8223
  * Disallow references to missing local resources.
8194
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-missing-local-resource.md
8224
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-missing-local-resource.md
8195
8225
  */
8196
8226
  'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>;
8197
8227
  /**
8198
8228
  * Disallow calling Promise executor resolver functions more than once on the same execution path.
8199
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-multiple-promise-resolver-calls.md
8229
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-multiple-promise-resolver-calls.md
8200
8230
  */
8201
8231
  'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>;
8202
8232
  /**
8203
8233
  * Disallow named usage of default import and export.
8204
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-named-default.md
8234
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-named-default.md
8205
8235
  */
8206
8236
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
8207
8237
  /**
8208
8238
  * Disallow negated array predicate calls.
8209
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negated-array-predicate.md
8239
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-negated-array-predicate.md
8210
8240
  */
8211
8241
  'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
8212
8242
  /**
8213
8243
  * Disallow negated comparisons.
8214
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negated-comparison.md
8244
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-negated-comparison.md
8215
8245
  */
8216
8246
  'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
8217
8247
  /**
8218
8248
  * Disallow negated conditions.
8219
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negated-condition.md
8249
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-negated-condition.md
8220
8250
  */
8221
8251
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
8222
8252
  /**
8223
8253
  * Disallow negated expression in equality check.
8224
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negation-in-equality-check.md
8254
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-negation-in-equality-check.md
8225
8255
  */
8226
8256
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
8227
8257
  /**
8228
8258
  * Disallow nested ternary expressions.
8229
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-nested-ternary.md
8259
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-nested-ternary.md
8230
8260
  */
8231
8261
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
8232
8262
  /**
8233
8263
  * Moved to `eslint-cssicorn` as `cssicorn/no-nesting-with-mixed-specificity`.
8234
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-nesting-with-mixed-specificity
8264
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-nesting-with-mixed-specificity
8235
8265
  * @deprecated
8236
8266
  */
8237
8267
  'unicorn/no-nesting-with-mixed-specificity'?: Linter.RuleEntry<[]>;
8238
8268
  /**
8239
8269
  * Disallow `new Array()`.
8240
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-new-array.md
8270
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-new-array.md
8241
8271
  */
8242
8272
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
8243
8273
  /**
8244
8274
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
8245
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-new-buffer.md
8275
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-new-buffer.md
8246
8276
  */
8247
8277
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
8248
8278
  /**
8249
8279
  * Disallow non-function values with function-style verb prefixes.
8250
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-non-function-verb-prefix.md
8280
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-non-function-verb-prefix.md
8251
8281
  */
8252
8282
  'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
8253
8283
  /**
8254
8284
  * Disallow non-standard properties on built-in objects.
8255
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-nonstandard-builtin-properties.md
8285
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-nonstandard-builtin-properties.md
8256
8286
  */
8257
8287
  'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
8258
8288
  /**
8259
8289
  * Disallow the use of the `null` literal.
8260
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-null.md
8290
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-null.md
8261
8291
  */
8262
8292
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
8263
8293
  /**
8264
8294
  * Disallow the use of objects as default parameters.
8265
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-object-as-default-parameter.md
8295
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-object-as-default-parameter.md
8266
8296
  */
8267
8297
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
8268
8298
  /**
8269
8299
  * Disallow `Object` methods with `Map` or `Set`.
8270
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-object-methods-with-collections.md
8300
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-object-methods-with-collections.md
8271
8301
  */
8272
8302
  'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
8273
8303
  /**
8274
8304
  * Disallow optional chaining on undeclared variables.
8275
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
8305
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
8276
8306
  */
8277
8307
  'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
8278
8308
  /**
8279
8309
  * Disallow ineffective `preventDefault()` calls in passive event listeners.
8280
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-prevent-default-in-passive-listener.md
8310
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-prevent-default-in-passive-listener.md
8281
8311
  */
8282
8312
  'unicorn/no-prevent-default-in-passive-listener'?: Linter.RuleEntry<[]>;
8283
8313
  /**
8284
8314
  * Disallow `process.exit()`.
8285
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-process-exit.md
8315
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-process-exit.md
8286
8316
  */
8287
8317
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
8288
8318
  /**
8289
8319
  * Disallow comparisons made redundant by an equality check in the same logical AND.
8290
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-redundant-comparison.md
8320
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-redundant-comparison.md
8291
8321
  */
8292
8322
  'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
8293
8323
  /**
8294
8324
  * Moved to `eslint-cssicorn` as `cssicorn/no-redundant-nested-style-rules`.
8295
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-redundant-nested-style-rules
8325
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-redundant-nested-style-rules
8296
8326
  * @deprecated
8297
8327
  */
8298
8328
  'unicorn/no-redundant-nested-style-rules'?: Linter.RuleEntry<[]>;
8329
+ /**
8330
+ * Disallow repeating the same wrapper at every call to a function.
8331
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-repeated-call-wrappers.md
8332
+ */
8333
+ 'unicorn/no-repeated-call-wrappers'?: Linter.RuleEntry<[]>;
8299
8334
  /**
8300
8335
  * Disallow using the return value of `Array#push()` and `Array#unshift()`.
8301
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-return-array-push.md
8336
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-return-array-push.md
8302
8337
  */
8303
8338
  'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
8304
8339
  /**
8305
8340
  * Disallow selector syntax in DOM names.
8306
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-selector-as-dom-name.md
8341
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-selector-as-dom-name.md
8307
8342
  */
8308
8343
  'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
8309
8344
  /**
8310
8345
  * Disallow shorthand properties that override related longhand properties.
8311
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-shorthand-property-overrides.md
8346
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-shorthand-property-overrides.md
8312
8347
  */
8313
8348
  'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>;
8314
8349
  /**
8315
8350
  * Disallow passing single-element arrays to `Promise` methods.
8316
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-single-promise-in-promise-methods.md
8351
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-single-promise-in-promise-methods.md
8317
8352
  */
8318
8353
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
8319
8354
  /**
8320
8355
  * Disallow classes that only have static members.
8321
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-static-only-class.md
8356
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-static-only-class.md
8322
8357
  */
8323
8358
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
8324
8359
  /**
8325
8360
  * Prefer comparing values directly over subtracting and comparing to `0`.
8326
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-subtraction-comparison.md
8361
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-subtraction-comparison.md
8327
8362
  */
8328
8363
  'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
8329
8364
  /**
8330
8365
  * Disallow `then` property.
8331
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-thenable.md
8366
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-thenable.md
8332
8367
  */
8333
8368
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
8334
8369
  /**
8335
8370
  * Disallow assigning `this` to a variable.
8336
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-this-assignment.md
8371
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-this-assignment.md
8337
8372
  */
8338
8373
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
8339
8374
  /**
8340
8375
  * Disallow `this` outside of classes.
8341
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-this-outside-of-class.md
8376
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-this-outside-of-class.md
8342
8377
  */
8343
8378
  'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
8344
8379
  /**
8345
8380
  * Disallow assigning to top-level variables from inside functions.
8346
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-top-level-assignment-in-function.md
8381
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-top-level-assignment-in-function.md
8347
8382
  */
8348
8383
  'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
8349
8384
  /**
8350
8385
  * Disallow top-level side effects in exported modules.
8351
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-top-level-side-effects.md
8386
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-top-level-side-effects.md
8352
8387
  */
8353
- 'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>;
8388
+ 'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<UnicornNoTopLevelSideEffects>;
8354
8389
  /**
8355
8390
  * Disallow `all` as a transition property.
8356
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-transition-all.md
8391
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-transition-all.md
8357
8392
  */
8358
8393
  'unicorn/no-transition-all'?: Linter.RuleEntry<[]>;
8359
8394
  /**
8360
8395
  * Disallow comparing `undefined` using `typeof`.
8361
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-typeof-undefined.md
8396
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-typeof-undefined.md
8362
8397
  */
8363
8398
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
8364
8399
  /**
8365
8400
  * Disallow referencing methods without calling them.
8366
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-uncalled-method.md
8401
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-uncalled-method.md
8367
8402
  */
8368
8403
  'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
8369
8404
  /**
8370
8405
  * Require class members to be declared.
8371
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-undeclared-class-members.md
8406
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-undeclared-class-members.md
8372
8407
  */
8373
8408
  'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
8374
8409
  /**
8375
8410
  * Moved to `eslint-cssicorn` as `cssicorn/no-unknown-annotations`.
8376
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-css-annotations
8411
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-css-annotations
8377
8412
  * @deprecated
8378
8413
  */
8379
8414
  'unicorn/no-unknown-css-annotations'?: Linter.RuleEntry<[]>;
8380
8415
  /**
8381
8416
  * Moved to `eslint-cssicorn` as `cssicorn/no-unknown-pseudo-selectors`.
8382
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-pseudo-selectors
8417
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-pseudo-selectors
8383
8418
  * @deprecated
8384
8419
  */
8385
8420
  'unicorn/no-unknown-pseudo-selectors'?: Linter.RuleEntry<[]>;
8386
8421
  /**
8387
8422
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
8388
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-array-flat-depth.md
8423
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-array-flat-depth.md
8389
8424
  */
8390
8425
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
8391
8426
  /**
8392
8427
  * Disallow unnecessary use of `Array#flatMap()`.
8393
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-array-flat-map.md
8428
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-array-flat-map.md
8394
8429
  */
8395
8430
  'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
8396
8431
  /**
8397
8432
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
8398
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-array-splice-count.md
8433
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-array-splice-count.md
8399
8434
  */
8400
8435
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
8401
8436
  /**
8402
8437
  * Disallow awaiting non-promise values.
8403
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-await.md
8438
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-await.md
8404
8439
  */
8405
8440
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
8406
8441
  /**
8407
8442
  * Disallow unnecessary comparisons against boolean literals.
8408
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-boolean-comparison.md
8443
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-boolean-comparison.md
8409
8444
  */
8410
8445
  'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
8446
+ /**
8447
+ * Disallow arguments that match their parameter defaults.
8448
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-default-arguments.md
8449
+ */
8450
+ 'unicorn/no-unnecessary-default-arguments'?: Linter.RuleEntry<[]>;
8411
8451
  /**
8412
8452
  * Disallow unnecessary options in `fetch()` and `new Request()`.
8413
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-fetch-options.md
8453
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-fetch-options.md
8414
8454
  */
8415
8455
  'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
8416
8456
  /**
8417
8457
  * Disallow unnecessary `globalThis` references.
8418
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-global-this.md
8458
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-global-this.md
8419
8459
  */
8420
8460
  'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
8421
8461
  /**
8422
8462
  * Disallow unnecessary nested ternary expressions.
8423
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-nested-ternary.md
8463
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-nested-ternary.md
8424
8464
  */
8425
8465
  'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
8426
8466
  /**
8427
8467
  * Disallow parameters that receive the same value at every call.
8428
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-parameters.md
8468
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-parameters.md
8429
8469
  */
8430
8470
  'unicorn/no-unnecessary-parameters'?: Linter.RuleEntry<UnicornNoUnnecessaryParameters>;
8431
8471
  /**
8432
8472
  * Enforce the use of built-in methods instead of unnecessary polyfills.
8433
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-polyfills.md
8473
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-polyfills.md
8434
8474
  */
8435
8475
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
8436
8476
  /**
8437
8477
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
8438
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-slice-end.md
8478
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-slice-end.md
8439
8479
  */
8440
8480
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
8441
8481
  /**
8442
8482
  * Disallow `Array#splice()` when simpler alternatives exist.
8443
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-splice.md
8483
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-splice.md
8444
8484
  */
8445
8485
  'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
8446
8486
  /**
8447
8487
  * Disallow `String#trim()` before `String#startsWith()` or `String#endsWith()`.
8448
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-string-trim.md
8488
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-string-trim.md
8449
8489
  */
8450
8490
  'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>;
8451
8491
  /**
8452
8492
  * Disallow unreadable array destructuring.
8453
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-array-destructuring.md
8493
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unreadable-array-destructuring.md
8454
8494
  */
8455
8495
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
8456
8496
  /**
8457
8497
  * Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
8458
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-for-of-expression.md
8498
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unreadable-for-of-expression.md
8459
8499
  */
8460
8500
  'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
8461
8501
  /**
8462
8502
  * Disallow unreadable IIFEs.
8463
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-iife.md
8503
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unreadable-iife.md
8464
8504
  */
8465
8505
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
8466
8506
  /**
8467
8507
  * Disallow unreadable `new` expressions.
8468
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-new-expression.md
8508
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unreadable-new-expression.md
8469
8509
  */
8470
8510
  'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
8471
8511
  /**
8472
8512
  * Disallow unreadable object destructuring.
8473
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-object-destructuring.md
8513
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unreadable-object-destructuring.md
8474
8514
  */
8475
8515
  'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
8476
8516
  /**
8477
8517
  * Prevent unsafe use of ArrayBuffer view `.buffer`.
8478
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-buffer-conversion.md
8518
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unsafe-buffer-conversion.md
8479
8519
  */
8480
8520
  'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
8481
8521
  /**
8482
8522
  * Disallow unsafe DOM HTML APIs.
8483
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-dom-html.md
8523
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unsafe-dom-html.md
8484
8524
  */
8485
8525
  'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
8486
8526
  /**
8487
8527
  * Disallow known values that JSON serialization cannot represent faithfully.
8488
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-json-serialization.md
8528
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unsafe-json-serialization.md
8489
8529
  */
8490
8530
  'unicorn/no-unsafe-json-serialization'?: Linter.RuleEntry<[]>;
8491
8531
  /**
8492
8532
  * Disallow reading `.value` from `Promise.allSettled()` results without a fulfilled status guard.
8493
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
8533
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
8494
8534
  */
8495
8535
  'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
8496
8536
  /**
8497
8537
  * Disallow unsafe values as property keys.
8498
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-property-key.md
8538
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unsafe-property-key.md
8499
8539
  */
8500
8540
  'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
8501
8541
  /**
8502
8542
  * Disallow interpolation into SQL strings passed to Node’s `node:sqlite` APIs.
8503
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
8543
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
8504
8544
  */
8505
8545
  'unicorn/no-unsafe-sqlite-interpolation'?: Linter.RuleEntry<[]>;
8506
8546
  /**
8507
8547
  * Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
8508
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-string-replacement.md
8548
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unsafe-string-replacement.md
8509
8549
  */
8510
8550
  'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
8511
8551
  /**
8512
8552
  * Moved to `eslint-cssicorn` as `cssicorn/no-unscoped-nesting-selector`.
8513
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unscoped-css-nesting-selector
8553
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-unscoped-css-nesting-selector
8514
8554
  * @deprecated
8515
8555
  */
8516
8556
  'unicorn/no-unscoped-css-nesting-selector'?: Linter.RuleEntry<[]>;
8517
8557
  /**
8518
8558
  * Replaced by `unicorn/no-unused-builtin-method-return` which covers more cases.
8519
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unused-array-method-return
8559
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-unused-array-method-return
8520
8560
  * @deprecated
8521
8561
  */
8522
8562
  'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
8523
8563
  /**
8524
8564
  * Disallow ignoring the return value of selected built-in methods.
8525
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unused-builtin-method-return.md
8565
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unused-builtin-method-return.md
8526
8566
  */
8527
8567
  'unicorn/no-unused-builtin-method-return'?: Linter.RuleEntry<[]>;
8528
8568
  /**
8529
8569
  * Disallow discarding lazy iterator helpers.
8530
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unused-iterator-helper.md
8570
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unused-iterator-helper.md
8531
8571
  */
8532
8572
  'unicorn/no-unused-iterator-helper'?: Linter.RuleEntry<[]>;
8533
8573
  /**
8534
8574
  * Disallow unused object properties.
8535
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unused-properties.md
8575
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unused-properties.md
8536
8576
  */
8537
8577
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
8538
8578
  /**
8539
8579
  * Disallow passing full URLs to `URLSearchParams`.
8540
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-url-in-search-params.md
8580
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-url-in-search-params.md
8541
8581
  */
8542
8582
  'unicorn/no-url-in-search-params'?: Linter.RuleEntry<[]>;
8543
8583
  /**
8544
8584
  * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
8545
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-boolean-cast.md
8585
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-boolean-cast.md
8546
8586
  */
8547
8587
  'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
8548
8588
  /**
8549
8589
  * Disallow useless type coercions of values that are already of the target type.
8550
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-coercion.md
8590
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-coercion.md
8551
8591
  */
8552
8592
  'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
8553
8593
  /**
8554
8594
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
8555
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-collection-argument.md
8595
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-collection-argument.md
8556
8596
  */
8557
8597
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
8558
8598
  /**
8559
8599
  * Disallow useless compound assignments such as `x += 0`.
8560
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-compound-assignment.md
8600
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-compound-assignment.md
8561
8601
  */
8562
8602
  'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
8563
8603
  /**
8564
8604
  * Disallow useless concatenation of literals.
8565
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-concat.md
8605
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-concat.md
8566
8606
  */
8567
8607
  'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
8568
8608
  /**
8569
8609
  * Disallow useless `continue` statements.
8570
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-continue.md
8610
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-continue.md
8571
8611
  */
8572
8612
  'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
8573
8613
  /**
8574
8614
  * Disallow unnecessary existence checks before deletion.
8575
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-delete-check.md
8615
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-delete-check.md
8576
8616
  */
8577
8617
  'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
8578
8618
  /**
8579
8619
  * Disallow `else` after a statement that exits.
8580
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-else.md
8620
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-else.md
8581
8621
  */
8582
8622
  'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
8583
8623
  /**
8584
8624
  * Disallow unnecessary `Error.captureStackTrace(…)`.
8585
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-error-capture-stack-trace.md
8625
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-error-capture-stack-trace.md
8586
8626
  */
8587
8627
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
8588
8628
  /**
8589
8629
  * Disallow useless fallback when spreading in object literals.
8590
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-fallback-in-spread.md
8630
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-fallback-in-spread.md
8591
8631
  */
8592
8632
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
8593
8633
  /**
8594
8634
  * Disallow unnecessary `.toArray()` on iterators.
8595
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-iterator-to-array.md
8635
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-iterator-to-array.md
8596
8636
  */
8597
8637
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
8598
8638
  /**
8599
8639
  * Disallow useless array length check.
8600
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-length-check.md
8640
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-length-check.md
8601
8641
  */
8602
8642
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
8603
8643
  /**
8604
8644
  * Disallow unnecessary operands in logical expressions involving boolean literals.
8605
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-logical-operand.md
8645
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-logical-operand.md
8606
8646
  */
8607
8647
  'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
8608
8648
  /**
8609
8649
  * Disallow useless overrides of class methods.
8610
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-override.md
8650
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-override.md
8611
8651
  */
8612
8652
  'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
8613
8653
  /**
8614
8654
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
8615
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-promise-resolve-reject.md
8655
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-promise-resolve-reject.md
8616
8656
  */
8617
8657
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
8618
8658
  /**
8619
8659
  * Disallow redundant re-exports.
8620
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-re-export.md
8660
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-re-export.md
8621
8661
  */
8622
8662
  'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>;
8623
8663
  /**
8624
8664
  * Disallow simple recursive function calls that can be replaced with a loop.
8625
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-recursion.md
8665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-recursion.md
8626
8666
  */
8627
8667
  'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
8628
8668
  /**
8629
8669
  * Disallow unnecessary `Set` construction around `Set` methods.
8630
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-set-construction.md
8670
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-set-construction.md
8631
8671
  */
8632
8672
  'unicorn/no-useless-set-construction'?: Linter.RuleEntry<[]>;
8633
8673
  /**
8634
8674
  * Disallow unnecessary spread.
8635
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-spread.md
8675
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-spread.md
8636
8676
  */
8637
8677
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
8638
8678
  /**
8639
8679
  * Disallow useless case in switch statements.
8640
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-switch-case.md
8680
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-switch-case.md
8641
8681
  */
8642
8682
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
8643
8683
  /**
8644
8684
  * Disallow useless template literal expressions.
8645
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-template-literals.md
8685
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-template-literals.md
8646
8686
  */
8647
8687
  'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
8648
8688
  /**
8649
8689
  * Disallow useless `undefined`.
8650
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-undefined.md
8690
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-undefined.md
8651
8691
  */
8652
8692
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
8653
8693
  /**
8654
8694
  * Disallow returning or exporting resources declared with `using`, including through capturing functions.
8655
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-using-resource-escape.md
8695
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-using-resource-escape.md
8656
8696
  */
8657
8697
  'unicorn/no-using-resource-escape'?: Linter.RuleEntry<[]>;
8658
8698
  /**
8659
8699
  * Disallow the bitwise XOR operator where exponentiation was likely intended.
8660
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-xor-as-exponentiation.md
8700
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-xor-as-exponentiation.md
8661
8701
  */
8662
8702
  'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
8663
8703
  /**
8664
8704
  * Require consistent decimal numbers without redundant zeros.
8665
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-zero-fractions.md
8705
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-zero-fractions.md
8666
8706
  */
8667
8707
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
8668
8708
  /**
8669
8709
  * Enforce proper case for numeric literals.
8670
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/number-literal-case.md
8710
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/number-literal-case.md
8671
8711
  */
8672
8712
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
8673
8713
  /**
8674
8714
  * Enforce the style of numeric separators by correctly grouping digits.
8675
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/numeric-separators-style.md
8715
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/numeric-separators-style.md
8676
8716
  */
8677
8717
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
8678
8718
  /**
8679
8719
  * Require assignment operator shorthand where possible.
8680
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/operator-assignment.md
8720
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/operator-assignment.md
8681
8721
  */
8682
8722
  'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
8683
8723
  /**
8684
8724
  * Prefer `AbortSignal.any()` over manually forwarding abort events between signals.
8685
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-abort-signal-any.md
8725
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-abort-signal-any.md
8686
8726
  */
8687
8727
  'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
8688
8728
  /**
8689
8729
  * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
8690
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-abort-signal-timeout.md
8730
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-abort-signal-timeout.md
8691
8731
  */
8692
8732
  'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
8693
8733
  /**
8694
8734
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
8695
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-add-event-listener.md
8735
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-add-event-listener.md
8696
8736
  */
8697
8737
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
8698
8738
  /**
8699
8739
  * Prefer an options object over a boolean in `.addEventListener()`.
8700
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-add-event-listener-options.md
8740
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-add-event-listener-options.md
8701
8741
  */
8702
8742
  'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
8703
8743
  /**
8704
8744
  * Prefer `AggregateError` when throwing collected errors.
8705
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-aggregate-error.md
8745
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-aggregate-error.md
8706
8746
  */
8707
8747
  'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
8708
8748
  /**
8709
8749
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
8710
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-find.md
8750
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-find.md
8711
8751
  */
8712
8752
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
8713
8753
  /**
8714
8754
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
8715
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-flat.md
8755
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-flat.md
8716
8756
  */
8717
8757
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
8718
8758
  /**
8719
8759
  * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
8720
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-flat-map.md
8760
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-flat-map.md
8721
8761
  */
8722
8762
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
8723
8763
  /**
8724
8764
  * Prefer `Array.fromAsync()` over array accumulation loops.
8725
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-from-async.md
8765
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-from-async.md
8726
8766
  */
8727
8767
  'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
8728
8768
  /**
8729
8769
  * Prefer using the `Array.from()` mapping function argument.
8730
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-from-map.md
8770
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-from-map.md
8731
8771
  */
8732
8772
  'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
8733
8773
  /**
8734
8774
  * Prefer `Array.from({length}, …)` when creating range arrays.
8735
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-from-range.md
8775
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-from-range.md
8736
8776
  */
8737
8777
  'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
8738
8778
  /**
8739
8779
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
8740
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-index-of.md
8780
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-index-of.md
8741
8781
  */
8742
8782
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
8743
8783
  /**
8744
8784
  * Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
8745
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-iterable-methods.md
8785
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-iterable-methods.md
8746
8786
  */
8747
8787
  'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
8748
8788
  /**
8749
8789
  * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
8750
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-last-methods.md
8790
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-last-methods.md
8751
8791
  */
8752
8792
  'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
8753
8793
  /**
8754
8794
  * Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
8755
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-slice.md
8795
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-slice.md
8756
8796
  */
8757
8797
  'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
8758
8798
  /**
8759
8799
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
8760
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-some.md
8800
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-some.md
8761
8801
  */
8762
8802
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
8763
8803
  /**
8764
8804
  * Prefer `.at()` method for index access and `String#charAt()`.
8765
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-at.md
8805
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-at.md
8766
8806
  */
8767
8807
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
8768
8808
  /**
8769
8809
  * Prefer `await` over promise chaining.
8770
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-await.md
8810
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-await.md
8771
8811
  */
8772
8812
  'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
8773
8813
  /**
8774
8814
  * Prefer `BigInt` literals over the constructor.
8775
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-bigint-literals.md
8815
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-bigint-literals.md
8776
8816
  */
8777
8817
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
8778
8818
  /**
8779
8819
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
8780
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-blob-reading-methods.md
8820
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-blob-reading-methods.md
8781
8821
  */
8782
8822
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
8783
8823
  /**
8784
8824
  * Prefer block statements over IIFEs used only for scoping.
8785
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-block-statement-over-iife.md
8825
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-block-statement-over-iife.md
8786
8826
  */
8787
8827
  'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
8788
8828
  /**
8789
8829
  * Prefer directly returning boolean expressions over `if` statements.
8790
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-boolean-return.md
8830
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-boolean-return.md
8791
8831
  */
8792
8832
  'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
8793
8833
  /**
8794
8834
  * Prefer class field declarations over `this` assignments in constructors.
8795
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-class-fields.md
8835
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-class-fields.md
8796
8836
  */
8797
8837
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
8798
8838
  /**
8799
8839
  * Prefer using `Element#classList.toggle()` to toggle class names.
8800
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-classlist-toggle.md
8840
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-classlist-toggle.md
8801
8841
  */
8802
8842
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
8803
8843
  /**
8804
8844
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
8805
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-code-point.md
8845
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-code-point.md
8806
8846
  */
8807
8847
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
8808
8848
  /**
8809
8849
  * Prefer combining consecutive guards with identical exit statements.
8810
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-combined-guards.md
8850
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-combined-guards.md
8811
8851
  */
8812
8852
  'unicorn/prefer-combined-guards'?: Linter.RuleEntry<UnicornPreferCombinedGuards>;
8813
8853
  /**
8814
8854
  * Prefer early continues over conditionals wrapping the remainder of the loop body.
8815
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-continue.md
8855
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-continue.md
8816
8856
  */
8817
8857
  'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
8818
8858
  /**
8819
8859
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
8820
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-date-now.md
8860
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-date-now.md
8821
8861
  */
8822
8862
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
8823
8863
  /**
8824
8864
  * Prefer default parameters and destructuring defaults over reassignment and fallback expressions.
8825
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-default-parameters.md
8865
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-default-parameters.md
8826
8866
  */
8827
- 'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
8867
+ 'unicorn/prefer-default-parameters'?: Linter.RuleEntry<UnicornPreferDefaultParameters>;
8828
8868
  /**
8829
8869
  * Prefer direct iteration over default iterator method calls.
8830
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-direct-iteration.md
8870
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-direct-iteration.md
8831
8871
  */
8832
8872
  'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
8833
8873
  /**
8834
8874
  * Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
8835
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dispose.md
8875
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-dispose.md
8836
8876
  */
8837
8877
  'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
8838
8878
  /**
8839
8879
  * Prefer `Element#append()` over `Node#appendChild()`.
8840
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-append.md
8880
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-dom-node-append.md
8841
8881
  */
8842
8882
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
8843
8883
  /**
8844
8884
  * Renamed to `unicorn/dom-node-dataset`.
8845
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
8885
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
8846
8886
  * @deprecated
8847
8887
  */
8848
8888
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
8849
8889
  /**
8850
8890
  * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
8851
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-html-methods.md
8891
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-dom-node-html-methods.md
8852
8892
  */
8853
8893
  'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
8854
8894
  /**
8855
8895
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
8856
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-remove.md
8896
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-dom-node-remove.md
8857
8897
  */
8858
8898
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
8859
8899
  /**
8860
8900
  * Prefer `.replaceChildren()` when replacing DOM children.
8861
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-replace-children.md
8901
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-dom-node-replace-children.md
8862
8902
  */
8863
8903
  'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
8864
8904
  /**
8865
8905
  * Prefer `.textContent` over `.innerText`.
8866
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-text-content.md
8906
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-dom-node-text-content.md
8867
8907
  */
8868
8908
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
8869
8909
  /**
8870
8910
  * Prefer early returns over conditionals wrapping the remainder of the function body.
8871
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-early-return.md
8911
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-early-return.md
8872
8912
  */
8873
8913
  'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
8874
8914
  /**
8875
8915
  * Prefer `else if` over adjacent `if` statements with related conditions.
8876
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-else-if.md
8916
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-else-if.md
8877
8917
  */
8878
8918
  'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
8879
8919
  /**
8880
8920
  * Prefer `Error.isError()` when checking for errors.
8881
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-error-is-error.md
8921
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-error-is-error.md
8882
8922
  */
8883
8923
  'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
8884
8924
  /**
8885
8925
  * Prefer escape sequences for irregular whitespace characters.
8886
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-escaped-irregular-whitespace.md
8926
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-escaped-irregular-whitespace.md
8887
8927
  */
8888
8928
  'unicorn/prefer-escaped-irregular-whitespace'?: Linter.RuleEntry<[]>;
8889
8929
  /**
8890
8930
  * Prefer `EventTarget` over `EventEmitter`.
8891
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-event-target.md
8931
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-event-target.md
8892
8932
  */
8893
8933
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
8894
8934
  /**
8895
8935
  * Moved to `eslint-cssicorn` as `cssicorn/prefer-explicit-viewport-units`.
8896
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-explicit-viewport-units
8936
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#prefer-explicit-viewport-units
8897
8937
  * @deprecated
8898
8938
  */
8899
8939
  'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<[]>;
8900
8940
  /**
8901
8941
  * Prefer `export…from` when re-exporting.
8902
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-export-from.md
8942
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-export-from.md
8903
8943
  */
8904
8944
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
8905
8945
  /**
8906
8946
  * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
8907
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-flat-math-min-max.md
8947
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-flat-math-min-max.md
8908
8948
  */
8909
8949
  'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
8910
8950
  /**
8911
8951
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
8912
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-get-or-insert-computed.md
8952
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-get-or-insert-computed.md
8913
8953
  */
8914
8954
  'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
8915
8955
  /**
8916
8956
  * Prefer global numeric constants over `Number` static properties.
8917
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-global-number-constants.md
8957
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-global-number-constants.md
8918
8958
  */
8919
8959
  'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
8920
8960
  /**
8921
8961
  * Prefer `globalThis` over `window`, `self`, and `global`.
8922
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-global-this.md
8962
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-global-this.md
8923
8963
  */
8924
8964
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
8925
8965
  /**
8926
8966
  * Prefer `Object.groupBy()` or `Map.groupBy()` over manual grouping.
8927
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-group-by.md
8967
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-group-by.md
8928
8968
  */
8929
8969
  'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
8930
8970
  /**
8931
8971
  * Prefer `.has()` when checking existence.
8932
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-has-check.md
8972
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-has-check.md
8933
8973
  */
8934
8974
  'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
8935
8975
  /**
8936
8976
  * Prefer moving code shared by all branches of an `if` statement out of the branches.
8937
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-hoisting-branch-code.md
8977
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-hoisting-branch-code.md
8938
8978
  */
8939
8979
  'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
8940
8980
  /**
8941
8981
  * Prefer HTTPS over HTTP.
8942
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-https.md
8982
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-https.md
8943
8983
  */
8944
8984
  'unicorn/prefer-https'?: Linter.RuleEntry<UnicornPreferHttps>;
8945
8985
  /**
8946
8986
  * Prefer identifiers over string literals in import and export specifiers.
8947
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
8987
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
8948
8988
  */
8949
8989
  'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
8950
8990
  /**
8951
8991
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
8952
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-import-meta-properties.md
8992
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-import-meta-properties.md
8953
8993
  */
8954
8994
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
8955
8995
  /**
8956
8996
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
8957
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-includes.md
8997
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-includes.md
8958
8998
  */
8959
8999
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
8960
9000
  /**
8961
9001
  * Prefer `.includes()` over repeated equality comparisons.
8962
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
9002
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
8963
9003
  */
8964
9004
  'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
8965
9005
  /**
8966
9006
  * Prefer passing iterables directly to constructors instead of filling empty collections.
8967
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterable-in-constructor.md
9007
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-iterable-in-constructor.md
8968
9008
  */
8969
9009
  'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
8970
9010
  /**
8971
9011
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
8972
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-concat.md
9012
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-iterator-concat.md
8973
9013
  */
8974
9014
  'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
8975
9015
  /**
8976
9016
  * Prefer iterator helpers over temporary arrays from iterators.
8977
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-helpers.md
9017
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-iterator-helpers.md
8978
9018
  */
8979
9019
  'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
8980
9020
  /**
8981
9021
  * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
8982
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-to-array.md
9022
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-iterator-to-array.md
8983
9023
  */
8984
9024
  'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
8985
9025
  /**
8986
9026
  * Prefer moving `.toArray()` to the end of iterator helper chains.
8987
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-to-array-at-end.md
9027
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-iterator-to-array-at-end.md
8988
9028
  */
8989
9029
  'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
8990
9030
  /**
8991
9031
  * Prefer `Iterator.zip()` over parallel-array indexing.
8992
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-zip.md
9032
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-iterator-zip.md
8993
9033
  */
8994
9034
  'unicorn/prefer-iterator-zip'?: Linter.RuleEntry<[]>;
8995
9035
  /**
8996
9036
  * Prefer JSON imports over reading and parsing JSON files.
8997
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-json-import.md
9037
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-json-import.md
8998
9038
  */
8999
9039
  'unicorn/prefer-json-import'?: Linter.RuleEntry<[]>;
9000
9040
  /**
9001
9041
  * Renamed to `unicorn/consistent-json-file-read`.
9002
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
9042
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
9003
9043
  * @deprecated
9004
9044
  */
9005
9045
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
9006
9046
  /**
9007
9047
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
9008
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-keyboard-event-key.md
9048
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-keyboard-event-key.md
9009
9049
  */
9010
9050
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
9011
9051
  /**
9012
9052
  * Prefer literal printable ASCII characters over escape sequences.
9013
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-literal-ascii.md
9053
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-literal-ascii.md
9014
9054
  */
9015
9055
  'unicorn/prefer-literal-ascii'?: Linter.RuleEntry<[]>;
9016
9056
  /**
9017
9057
  * Prefer `location.assign()` over assigning to `location.href`.
9018
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-location-assign.md
9058
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-location-assign.md
9019
9059
  */
9020
9060
  'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
9021
9061
  /**
9022
9062
  * Prefer using a logical operator over a ternary.
9023
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-logical-operator-over-ternary.md
9063
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-logical-operator-over-ternary.md
9024
9064
  */
9025
9065
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
9026
9066
  /**
9027
9067
  * Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
9028
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-map-from-entries.md
9068
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-map-from-entries.md
9029
9069
  */
9030
9070
  'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
9031
9071
  /**
9032
9072
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
9033
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-abs.md
9073
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-math-abs.md
9034
9074
  */
9035
9075
  'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
9036
9076
  /**
9037
9077
  * Prefer `Math` constants over their approximate numeric values.
9038
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-constants.md
9078
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-math-constants.md
9039
9079
  */
9040
9080
  'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
9041
9081
  /**
9042
9082
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
9043
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-min-max.md
9083
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-math-min-max.md
9044
9084
  */
9045
9085
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
9046
9086
  /**
9047
9087
  * Prefer `Math.trunc()` for truncating numbers.
9048
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-trunc.md
9088
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-math-trunc.md
9049
9089
  */
9050
9090
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
9051
9091
  /**
9052
9092
  * Moved to `eslint-cssicorn` as `cssicorn/prefer-media-feature-range-syntax`.
9053
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-media-feature-range-syntax
9093
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#prefer-media-feature-range-syntax
9054
9094
  * @deprecated
9055
9095
  */
9056
9096
  'unicorn/prefer-media-feature-range-syntax'?: Linter.RuleEntry<[]>;
9057
9097
  /**
9058
9098
  * Prefer moving ternaries into the minimal varying part of an expression.
9059
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-minimal-ternary.md
9099
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-minimal-ternary.md
9060
9100
  */
9061
9101
  'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
9062
9102
  /**
9063
9103
  * Prefer modern DOM APIs.
9064
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-modern-dom-apis.md
9104
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-modern-dom-apis.md
9065
9105
  */
9066
9106
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
9067
9107
  /**
9068
9108
  * Prefer modern `Math` APIs over legacy patterns.
9069
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-modern-math-apis.md
9109
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-modern-math-apis.md
9070
9110
  */
9071
9111
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
9072
9112
  /**
9073
9113
  * Prefer JavaScript modules (ESM) over CommonJS.
9074
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-module.md
9114
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-module.md
9075
9115
  */
9076
9116
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
9077
9117
  /**
9078
9118
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
9079
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-native-coercion-functions.md
9119
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-native-coercion-functions.md
9080
9120
  */
9081
9121
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
9082
9122
  /**
9083
9123
  * Prefer negative index over `.length - index` when possible.
9084
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-negative-index.md
9124
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-negative-index.md
9085
9125
  */
9086
9126
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
9087
9127
  /**
9088
9128
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
9089
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-node-protocol.md
9129
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-node-protocol.md
9090
9130
  */
9091
9131
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
9092
9132
  /**
9093
9133
  * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
9094
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-number-coercion.md
9134
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-number-coercion.md
9095
9135
  */
9096
9136
  'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
9097
9137
  /**
9098
9138
  * Prefer `Number.isSafeInteger()` over integer checks.
9099
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-number-is-safe-integer.md
9139
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-number-is-safe-integer.md
9100
9140
  */
9101
9141
  'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
9102
9142
  /**
9103
9143
  * Prefer `Number` static methods over global functions and optionally static properties over global constants.
9104
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-number-properties.md
9144
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-number-properties.md
9105
9145
  */
9106
9146
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
9107
9147
  /**
9108
9148
  * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
9109
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-define-properties.md
9149
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-object-define-properties.md
9110
9150
  */
9111
9151
  'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
9112
9152
  /**
9113
9153
  * Prefer object destructuring defaults over default object literals with spread.
9114
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-destructuring-defaults.md
9154
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-object-destructuring-defaults.md
9115
9155
  */
9116
9156
  'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
9117
9157
  /**
9118
9158
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
9119
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-from-entries.md
9159
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-object-from-entries.md
9120
9160
  */
9121
9161
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
9122
9162
  /**
9123
9163
  * Prefer the most specific `Object` iterable method.
9124
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-iterable-methods.md
9164
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-object-iterable-methods.md
9125
9165
  */
9126
9166
  'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
9127
9167
  /**
9128
9168
  * Prefer observer APIs over resize and scroll listeners with layout reads.
9129
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-observer-apis.md
9169
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-observer-apis.md
9130
9170
  */
9131
9171
  'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
9132
9172
  /**
9133
9173
  * Prefer omitting the `catch` binding parameter.
9134
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-optional-catch-binding.md
9174
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-optional-catch-binding.md
9135
9175
  */
9136
9176
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
9137
9177
  /**
9138
9178
  * Prefer `Path2D` for repeatedly drawn canvas paths.
9139
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-path2d.md
9179
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-path2d.md
9140
9180
  */
9141
9181
  'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
9142
9182
  /**
9143
9183
  * Prefer private class fields over the underscore-prefix convention.
9144
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-private-class-fields.md
9184
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-private-class-fields.md
9145
9185
  */
9146
9186
  'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
9147
9187
  /**
9148
9188
  * Prefer `Promise.resolve()` and `Promise.reject()` over trivial `new Promise()` calls.
9149
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-promise-static-methods.md
9189
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-promise-static-methods.md
9150
9190
  */
9151
9191
  'unicorn/prefer-promise-static-methods'?: Linter.RuleEntry<[]>;
9152
9192
  /**
9153
9193
  * Prefer `Promise.try()` over promise-wrapping boilerplate.
9154
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-promise-try.md
9194
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-promise-try.md
9155
9195
  */
9156
9196
  'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
9157
9197
  /**
9158
9198
  * Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
9159
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-promise-with-resolvers.md
9199
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-promise-with-resolvers.md
9160
9200
  */
9161
9201
  'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
9162
9202
  /**
9163
9203
  * Prefer borrowing methods from the prototype instead of the instance.
9164
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-prototype-methods.md
9204
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-prototype-methods.md
9165
9205
  */
9166
9206
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
9167
9207
  /**
9168
9208
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
9169
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-query-selector.md
9209
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-query-selector.md
9170
9210
  */
9171
9211
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
9172
9212
  /**
9173
9213
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
9174
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-queue-microtask.md
9214
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-queue-microtask.md
9175
9215
  */
9176
9216
  'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
9177
9217
  /**
9178
9218
  * Prefer `Reflect.apply()` over `Function#apply()`.
9179
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-reflect-apply.md
9219
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-reflect-apply.md
9180
9220
  */
9181
9221
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
9182
9222
  /**
9183
9223
  * Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
9184
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-regexp-escape.md
9224
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-regexp-escape.md
9185
9225
  */
9186
9226
  'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
9187
9227
  /**
9188
9228
  * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
9189
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-regexp-test.md
9229
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-regexp-test.md
9190
9230
  */
9191
9231
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
9192
9232
  /**
9193
9233
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
9194
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-response-static-json.md
9234
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-response-static-json.md
9195
9235
  */
9196
9236
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
9197
9237
  /**
9198
9238
  * Prefer `:scope` when using element query selector methods.
9199
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-scoped-selector.md
9239
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-scoped-selector.md
9200
9240
  */
9201
9241
  'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
9202
9242
  /**
9203
9243
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
9204
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-set-has.md
9244
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-set-has.md
9205
9245
  */
9206
9246
  'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
9207
9247
  /**
9208
9248
  * Prefer `Set` methods for Set operations.
9209
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-set-methods.md
9249
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-set-methods.md
9210
9250
  */
9211
9251
  'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
9212
9252
  /**
9213
9253
  * Prefer using `Set#size` instead of `Array#length`.
9214
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-set-size.md
9254
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-set-size.md
9215
9255
  */
9216
9256
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
9217
9257
  /**
9218
9258
  * Prefer arrow function properties over methods with a single return.
9219
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-short-arrow-method.md
9259
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-short-arrow-method.md
9220
9260
  */
9221
9261
  'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
9222
9262
  /**
9223
9263
  * Prefer shorter alternatives to Unicode escape sequences.
9224
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-short-escape-sequences.md
9264
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-short-escape-sequences.md
9225
9265
  */
9226
9266
  'unicorn/prefer-short-escape-sequences'?: Linter.RuleEntry<[]>;
9227
9267
  /**
9228
9268
  * Prefer simple conditions first in logical expressions.
9229
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-simple-condition-first.md
9269
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-simple-condition-first.md
9230
9270
  */
9231
9271
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
9232
9272
  /**
9233
9273
  * Prefer a simple comparison function for `Array#sort()`.
9234
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-simple-sort-comparator.md
9274
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-simple-sort-comparator.md
9235
9275
  */
9236
9276
  'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
9237
9277
  /**
9238
9278
  * Prefer simplified conditions.
9239
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-simplified-conditions.md
9279
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-simplified-conditions.md
9240
9280
  */
9241
9281
  'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<UnicornPreferSimplifiedConditions>;
9242
9282
  /**
9243
9283
  * Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
9244
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-array-predicate.md
9284
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-single-array-predicate.md
9245
9285
  */
9246
9286
  'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
9247
9287
  /**
9248
9288
  * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
9249
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-call.md
9289
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-single-call.md
9250
9290
  */
9251
9291
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
9252
9292
  /**
9253
9293
  * Prefer a single object destructuring declaration per local const source.
9254
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-object-destructuring.md
9294
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-single-object-destructuring.md
9255
9295
  */
9256
9296
  'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
9257
9297
  /**
9258
9298
  * Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
9259
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-replace.md
9299
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-single-replace.md
9260
9300
  */
9261
9301
  'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
9262
9302
  /**
9263
9303
  * Prefer declaring variables in the smallest possible scope.
9264
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-smaller-scope.md
9304
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-smaller-scope.md
9265
9305
  */
9266
9306
  'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
9267
9307
  /**
9268
9308
  * Prefer `String#split()` with a limit.
9269
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-split-limit.md
9309
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-split-limit.md
9270
9310
  */
9271
9311
  'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
9272
9312
  /**
9273
9313
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
9274
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-spread.md
9314
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-spread.md
9275
9315
  */
9276
9316
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
9277
9317
  /**
9278
9318
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
9279
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-match-all.md
9319
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-string-match-all.md
9280
9320
  */
9281
9321
  'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
9282
9322
  /**
9283
9323
  * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
9284
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-pad-start-end.md
9324
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-string-pad-start-end.md
9285
9325
  */
9286
9326
  'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
9287
9327
  /**
9288
9328
  * Prefer using the `String.raw` tag to avoid escaping `\`.
9289
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-raw.md
9329
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-string-raw.md
9290
9330
  */
9291
9331
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
9292
9332
  /**
9293
9333
  * Prefer `String#repeat()` for repeated whitespace.
9294
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-repeat.md
9334
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-string-repeat.md
9295
9335
  */
9296
9336
  'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
9297
9337
  /**
9298
9338
  * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
9299
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-replace-all.md
9339
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-string-replace-all.md
9300
9340
  */
9301
9341
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
9302
9342
  /**
9303
9343
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
9304
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-slice.md
9344
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-string-slice.md
9305
9345
  */
9306
9346
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
9307
9347
  /**
9308
9348
  * Prefer `String#startsWith()` & `String#endsWith()` over regexes, `String#indexOf() === 0`, and slice checks.
9309
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-starts-ends-with.md
9349
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-string-starts-ends-with.md
9310
9350
  */
9311
9351
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
9312
9352
  /**
9313
9353
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
9314
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-trim-start-end.md
9354
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-string-trim-start-end.md
9315
9355
  */
9316
9356
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
9317
9357
  /**
9318
9358
  * Prefer using `structuredClone` to create a deep clone.
9319
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-structured-clone.md
9359
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-structured-clone.md
9320
9360
  */
9321
9361
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
9322
9362
  /**
9323
9363
  * Prefer `switch` over multiple `else-if`.
9324
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-switch.md
9364
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-switch.md
9325
9365
  */
9326
9366
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
9327
9367
  /**
9328
9368
  * Prefer `Temporal` over `Date`.
9329
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-temporal.md
9369
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-temporal.md
9330
9370
  */
9331
9371
  'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
9332
9372
  /**
9333
9373
  * Prefer direct Temporal conversion methods.
9334
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-temporal-conversion.md
9374
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-temporal-conversion.md
9335
9375
  */
9336
9376
  'unicorn/prefer-temporal-conversion'?: Linter.RuleEntry<[]>;
9337
9377
  /**
9338
- * Prefer ternary expressions over simple `if` statements that return or assign values.
9339
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-ternary.md
9378
+ * Prefer ternary expressions over simple `if` statements.
9379
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-ternary.md
9340
9380
  */
9341
9381
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
9342
9382
  /**
9343
9383
  * Prefer `.then().catch()` over `.then(…, …)` for error handling.
9344
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-then-catch.md
9384
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-then-catch.md
9345
9385
  */
9346
9386
  'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>;
9347
9387
  /**
9348
9388
  * Prefer using `Element#toggleAttribute()` to toggle attributes.
9349
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-toggle-attribute.md
9389
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-toggle-attribute.md
9350
9390
  */
9351
9391
  'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
9352
9392
  /**
9353
9393
  * Prefer top-level await over top-level promises and async function calls.
9354
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-top-level-await.md
9394
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-top-level-await.md
9355
9395
  */
9356
9396
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
9357
9397
  /**
9358
9398
  * Enforce throwing `TypeError` in type checking conditions.
9359
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-type-error.md
9399
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-type-error.md
9360
9400
  */
9361
9401
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
9362
9402
  /**
9363
9403
  * Require type literals to be last in union types.
9364
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-type-literal-last.md
9404
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-type-literal-last.md
9365
9405
  */
9366
9406
  'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
9367
9407
  /**
9368
9408
  * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over legacy base64 conversions and manual postprocessing.
9369
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-uint8array-base64.md
9409
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-uint8array-base64.md
9370
9410
  */
9371
9411
  'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
9372
9412
  /**
9373
9413
  * Prefer `Uint8Array#toHex()` and `Uint8Array.fromHex()` over manual and Buffer hex conversions.
9374
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-uint8array-hex.md
9414
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-uint8array-hex.md
9375
9415
  */
9376
9416
  'unicorn/prefer-uint8array-hex'?: Linter.RuleEntry<[]>;
9377
9417
  /**
9378
9418
  * Prefer the unary minus operator over multiplying or dividing by `-1`.
9379
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-unary-minus.md
9419
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-unary-minus.md
9380
9420
  */
9381
9421
  'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
9382
9422
  /**
9383
9423
  * Prefer Unicode code point escapes over legacy escape sequences.
9384
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-unicode-code-point-escapes.md
9424
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-unicode-code-point-escapes.md
9385
9425
  */
9386
9426
  'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
9387
9427
  /**
9388
9428
  * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
9389
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-url-can-parse.md
9429
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-url-can-parse.md
9390
9430
  */
9391
9431
  'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
9392
9432
  /**
9393
9433
  * Prefer `URL#href` over stringifying a `URL`.
9394
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-url-href.md
9434
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-url-href.md
9395
9435
  */
9396
9436
  'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
9397
9437
  /**
9398
9438
  * Prefer `URLSearchParams` over manually splitting query strings.
9399
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-url-search-parameters.md
9439
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-url-search-parameters.md
9400
9440
  */
9401
9441
  'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
9402
9442
  /**
9403
9443
  * Prefer putting the condition in the while statement.
9404
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-while-loop-condition.md
9444
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-while-loop-condition.md
9405
9445
  */
9406
9446
  'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
9407
9447
  /**
9408
9448
  * Renamed to `unicorn/name-replacements`.
9409
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
9449
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
9410
9450
  * @deprecated
9411
9451
  */
9412
9452
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
9413
9453
  /**
9414
9454
  * Enforce consistent relative URL style.
9415
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/relative-url-style.md
9455
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/relative-url-style.md
9416
9456
  */
9417
9457
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
9418
9458
  /**
9419
9459
  * Enforce using the separator argument with `Array#join()`.
9420
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-array-join-separator.md
9460
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-array-join-separator.md
9421
9461
  */
9422
9462
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
9423
9463
  /**
9424
9464
  * Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
9425
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-array-sort-compare.md
9465
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-array-sort-compare.md
9426
9466
  */
9427
9467
  'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
9428
9468
  /**
9429
9469
  * Require `CSS.escape()` for interpolated values in CSS selectors.
9430
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-css-escape.md
9470
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-css-escape.md
9431
9471
  */
9432
9472
  'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
9433
9473
  /**
9434
9474
  * Require configured YAML frontmatter fields.
9435
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-frontmatter-fields.md
9475
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-frontmatter-fields.md
9436
9476
  */
9437
9477
  'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
9438
9478
  /**
9439
9479
  * Require non-empty module attributes for imports and exports
9440
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-module-attributes.md
9480
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-module-attributes.md
9441
9481
  */
9442
9482
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
9443
9483
  /**
9444
9484
  * Require non-empty specifier list in import and export statements.
9445
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-module-specifiers.md
9485
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-module-specifiers.md
9446
9486
  */
9447
9487
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
9448
9488
  /**
9449
9489
  * Enforce using the digits argument with `Number#toFixed()`.
9450
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-number-to-fixed-digits-argument.md
9490
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-number-to-fixed-digits-argument.md
9451
9491
  */
9452
9492
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
9453
9493
  /**
9454
9494
  * Require passive event listeners for high-frequency events.
9455
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-passive-events.md
9495
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-passive-events.md
9456
9496
  */
9457
9497
  'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
9458
9498
  /**
9459
9499
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
9460
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-post-message-target-origin.md
9500
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-post-message-target-origin.md
9461
9501
  */
9462
9502
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
9463
9503
  /**
9464
9504
  * Require boolean-returning Proxy traps to return booleans.
9465
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-proxy-trap-boolean-return.md
9505
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-proxy-trap-boolean-return.md
9466
9506
  */
9467
9507
  'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
9468
9508
  /**
9469
9509
  * Require streaming decoding of fetch-body chunks with `TextDecoder`.
9470
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-text-decoder-streaming.md
9510
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-text-decoder-streaming.md
9471
9511
  */
9472
9512
  'unicorn/require-text-decoder-streaming'?: Linter.RuleEntry<[]>;
9473
9513
  /**
9474
9514
  * Enforce a consistent style for single-line block comments.
9475
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/single-line-block-comment-style.md
9515
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/single-line-block-comment-style.md
9476
9516
  */
9477
9517
  'unicorn/single-line-block-comment-style'?: Linter.RuleEntry<UnicornSingleLineBlockCommentStyle>;
9478
9518
  /**
9479
9519
  * Enforce better string content.
9480
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/string-content.md
9520
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/string-content.md
9481
9521
  */
9482
9522
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
9483
9523
  /**
9484
9524
  * Enforce consistent brace style for `case` clauses.
9485
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/switch-case-braces.md
9525
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/switch-case-braces.md
9486
9526
  */
9487
9527
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
9488
9528
  /**
9489
9529
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
9490
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/switch-case-break-position.md
9530
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/switch-case-break-position.md
9491
9531
  */
9492
9532
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
9493
9533
  /**
9494
9534
  * Fix whitespace-insensitive template indentation.
9495
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/template-indent.md
9535
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/template-indent.md
9496
9536
  */
9497
9537
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
9498
9538
  /**
9499
9539
  * Enforce consistent case for text encoding identifiers.
9500
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/text-encoding-identifier-case.md
9540
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/text-encoding-identifier-case.md
9501
9541
  */
9502
9542
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
9503
9543
  /**
9504
9544
  * Require `new` when creating an error.
9505
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/throw-new-error.md
9545
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/throw-new-error.md
9506
9546
  */
9507
9547
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
9508
9548
  /**
9509
9549
  * Limit the complexity of `try` blocks.
9510
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/try-complexity.md
9550
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/try-complexity.md
9511
9551
  */
9512
9552
  'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
9513
9553
  /**
@@ -11676,6 +11716,7 @@ type InitDeclarations = ([] | ["always"] | [] | ["never"] | ["never", {
11676
11716
  }]);
11677
11717
  // ----- jsdoc/check-alignment -----
11678
11718
  type JsdocCheckAlignment = [] | [{
11719
+ ignoreEmptyLines?: boolean;
11679
11720
  innerIndent?: number;
11680
11721
  }];
11681
11722
  // ----- jsdoc/check-examples -----
@@ -11921,6 +11962,7 @@ type JsdocNoUndefinedTypes = [] | [{
11921
11962
  type JsdocNoUnnecessaryTypeAssertion = [] | [{
11922
11963
  checkLiteralConstAssertions?: boolean;
11923
11964
  enableFixer?: boolean;
11965
+ fixTypeChangingCasts?: boolean;
11924
11966
  preferConstToLiteralTuples?: boolean;
11925
11967
  treatAnyAsRedundant?: boolean;
11926
11968
  typesToIgnore?: string[];
@@ -16979,6 +17021,10 @@ type ReactDomNoUnknownProperty = [] | [{
16979
17021
  ignore?: string[];
16980
17022
  requireDataLowercase?: boolean;
16981
17023
  }];
17024
+ // ----- react/dom-no-unsafe-target-blank -----
17025
+ type ReactDomNoUnsafeTargetBlank = [] | [{
17026
+ allowReferrer?: boolean;
17027
+ }];
16982
17028
  // ----- react/exhaustive-deps -----
16983
17029
  type ReactExhaustiveDeps = [] | [{
16984
17030
  additionalHooks?: string;
@@ -17171,6 +17217,110 @@ type SemiSpacing = [] | [{
17171
17217
  }];
17172
17218
  // ----- semi-style -----
17173
17219
  type SemiStyle = [] | [("last" | "first")];
17220
+ // ----- shadcn/no-arbitrary-values -----
17221
+ type ShadcnNoArbitraryValues = [] | [{
17222
+ allow?: string[];
17223
+ deny?: string[];
17224
+ contracts?: {
17225
+ pattern: string;
17226
+ allow?: string[];
17227
+ deny?: string[];
17228
+ message?: string;
17229
+ }[];
17230
+ message?: string;
17231
+ scanAllStrings?: boolean;
17232
+ componentImports?: string[];
17233
+ ignoreImports?: string[];
17234
+ mergeFunctions?: string[];
17235
+ variantFunctions?: string[];
17236
+ }];
17237
+ // ----- shadcn/no-inline-styles -----
17238
+ type ShadcnNoInlineStyles = [] | [{
17239
+ allow?: string[];
17240
+ deny?: string[];
17241
+ contracts?: {
17242
+ pattern: string;
17243
+ allow?: string[];
17244
+ deny?: string[];
17245
+ message?: string;
17246
+ }[];
17247
+ message?: string;
17248
+ }];
17249
+ // ----- shadcn/no-raw-colors -----
17250
+ type ShadcnNoRawColors = [] | [{
17251
+ allow?: string[];
17252
+ deny?: string[];
17253
+ contracts?: {
17254
+ pattern: string;
17255
+ allow?: string[];
17256
+ deny?: string[];
17257
+ message?: string;
17258
+ }[];
17259
+ message?: string;
17260
+ componentImports?: string[];
17261
+ ignoreImports?: string[];
17262
+ mergeFunctions?: string[];
17263
+ variantFunctions?: string[];
17264
+ scanAllStrings?: boolean;
17265
+ }];
17266
+ // ----- shadcn/no-restyle -----
17267
+ type ShadcnNoRestyle = [] | [{
17268
+ allow?: string[];
17269
+ deny?: string[];
17270
+ message?: (string | {
17271
+ default?: string;
17272
+ layout?: string;
17273
+ color?: string;
17274
+ typography?: string;
17275
+ spacing?: string;
17276
+ shape?: string;
17277
+ effects?: string;
17278
+ motion?: string;
17279
+ });
17280
+ componentImports?: string[];
17281
+ ignoreImports?: string[];
17282
+ mergeFunctions?: string[];
17283
+ variantFunctions?: string[];
17284
+ contracts?: {
17285
+ pattern: string;
17286
+ allow?: string[];
17287
+ deny?: string[];
17288
+ message?: (string | {
17289
+ default?: string;
17290
+ layout?: string;
17291
+ color?: string;
17292
+ typography?: string;
17293
+ spacing?: string;
17294
+ shape?: string;
17295
+ effects?: string;
17296
+ motion?: string;
17297
+ });
17298
+ }[];
17299
+ }];
17300
+ // ----- shadcn/no-unknown-classes -----
17301
+ type ShadcnNoUnknownClasses = [] | [{
17302
+ allow?: string[];
17303
+ deny?: string[];
17304
+ contracts?: {
17305
+ pattern: string;
17306
+ allow?: string[];
17307
+ deny?: string[];
17308
+ message?: string;
17309
+ }[];
17310
+ message?: string;
17311
+ componentImports?: string[];
17312
+ ignoreImports?: string[];
17313
+ mergeFunctions?: string[];
17314
+ variantFunctions?: string[];
17315
+ }];
17316
+ // ----- shadcn/require-static-classes -----
17317
+ type ShadcnRequireStaticClasses = [] | [{
17318
+ message?: string;
17319
+ componentImports?: string[];
17320
+ ignoreImports?: string[];
17321
+ mergeFunctions?: string[];
17322
+ variantFunctions?: string[];
17323
+ }];
17174
17324
  // ----- solid/event-handlers -----
17175
17325
  type SolidEventHandlers = [] | [{
17176
17326
  ignoreCase?: boolean;
@@ -20282,6 +20432,12 @@ type UnicornNoNull = [] | [{
20282
20432
  checkArguments?: boolean;
20283
20433
  checkStrictEquality?: boolean;
20284
20434
  }];
20435
+ // ----- unicorn/no-top-level-side-effects -----
20436
+ type UnicornNoTopLevelSideEffects = [] | [{
20437
+ allow?: {
20438
+ [k: string]: string[] | undefined;
20439
+ };
20440
+ }];
20285
20441
  // ----- unicorn/no-typeof-undefined -----
20286
20442
  type UnicornNoTypeofUndefined = [] | [{
20287
20443
  checkGlobalVariables?: boolean;
@@ -20363,6 +20519,10 @@ type UnicornPreferContinue = [] | [{
20363
20519
  maximumStatements?: number;
20364
20520
  checkShortBodies?: boolean;
20365
20521
  }];
20522
+ // ----- unicorn/prefer-default-parameters -----
20523
+ type UnicornPreferDefaultParameters = [] | [{
20524
+ checkFallbackExpressions?: boolean;
20525
+ }];
20366
20526
  // ----- unicorn/prefer-dom-node-html-methods -----
20367
20527
  type UnicornPreferDomNodeHtmlMethods = [] | [{
20368
20528
  checkGetHTML?: boolean;
@@ -20444,7 +20604,10 @@ type UnicornPreferTemporal = [] | [{
20444
20604
  checkMethods?: boolean;
20445
20605
  }];
20446
20606
  // ----- unicorn/prefer-ternary -----
20447
- type UnicornPreferTernary = [] | [("always" | "only-single-line")];
20607
+ type UnicornPreferTernary = [] | [("always" | "only-single-line")] | [("always" | "only-single-line"), {
20608
+ checkVaryingBase?: boolean;
20609
+ checkComputedMemberAccess?: boolean;
20610
+ }];
20448
20611
  // ----- unicorn/relative-url-style -----
20449
20612
  type UnicornRelativeUrlStyle = [] | [("never" | "always")];
20450
20613
  // ----- unicorn/require-css-escape -----
@@ -22129,7 +22292,7 @@ type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
22129
22292
  onlyEquality?: boolean;
22130
22293
  }];
22131
22294
  // Names of all the configs
22132
- type ConfigNames = 'config/gitignore' | 'config/ignores' | 'config/javascript/setup' | 'config/javascript/rules' | 'config/eslint-comments/rules' | 'config/node/setup' | 'config/node/rules' | 'config/imports/rules' | 'config/command/rules' | 'config/perfectionist/setup' | 'config/imports/rules' | 'config/e18e/rules' | 'config/unicorn/rules' | 'config/jsdoc/rules' | 'config/jsx/setup' | 'config/typescript/setup' | 'config/typescript/parser' | 'config/typescript/type-aware-parser' | 'config/typescript/rules' | 'config/typescript/rules-type-aware' | 'config/typescript/erasable-syntax-only' | 'config/stylistic/rules' | 'config/regexp/rules' | 'config/medusa/strict/0' | 'config/medusa/strict/1' | 'config/medusa/strict/2' | 'config/medusa/strict/3' | 'config/medusa/strict/4' | 'config/medusa/strict/5' | 'config/medusa/strict/6' | 'config/medusa/strict/7' | 'config/medusa/strict/8' | 'config/medusa/strict/9' | 'config/medusa/strict/10' | 'config/medusa/strict/11' | 'config/medusa/strict/12' | 'config/medusa/strict/13' | 'config/medusa/strict/14' | 'config/medusa/strict/15' | 'config/medusa/strict/16' | 'config/medusa/strict/17' | 'config/medusa/strict/18' | 'config/medusa/strict/19' | 'config/medusa/strict/20' | 'config/medusa/strict/21' | 'config/medusa/strict/22' | 'config/medusa/strict/23' | 'config/sanity/setup' | 'config/sanity/rules' | 'config/test/setup' | 'config/test/rules' | 'config/storybook/setup' | 'config/vue/setup' | 'config/vue/rules' | 'config/react/setup' | 'config/react/rules' | 'config/react/typescript' | 'config/react/type-aware-rules' | 'config/nextjs/setup' | 'config/nextjs/rules' | 'config/solid/setup' | 'config/solid/rules' | 'config/svelte/setup' | 'config/svelte/rules' | 'config/unocss' | 'config/astro/setup' | 'config/astro/rules' | 'config/jsonc/setup' | 'config/jsonc/rules' | 'config/sort/package-json' | 'config/sort/tsconfig-json' | 'config/pnpm/package-json' | 'config/pnpm/pnpm-workspace-yaml' | 'config/pnpm/pnpm-workspace-yaml-sort' | 'config/yaml/setup' | 'config/yaml/rules' | 'config/yaml/pnpm-workspace' | 'config/toml/setup' | 'config/toml/rules' | 'config/markdown/setup' | 'config/markdown/processor' | 'config/markdown/parser' | 'config/markdown/rules' | 'config/markdown/disables' | 'config/formatter/setup' | 'config/formatter/css' | 'config/formatter/scss' | 'config/formatter/less' | 'config/formatter/html' | 'config/formatter/xml' | 'config/formatter/svg' | 'config/formatter/markdown' | 'config/formatter/astro' | 'config/formatter/astro/disables' | 'config/formatter/graphql' | 'config/disables/scripts' | 'config/disables/cli' | 'config/disables/bin' | 'config/disables/dts' | 'config/disables/cjs' | 'config/disables/config-files';
22295
+ type ConfigNames = 'config/gitignore' | 'config/ignores' | 'config/javascript/setup' | 'config/javascript/rules' | 'config/eslint-comments/rules' | 'config/node/setup' | 'config/node/rules' | 'config/imports/rules' | 'config/command/rules' | 'config/perfectionist/setup' | 'config/imports/rules' | 'config/e18e/rules' | 'config/unicorn/rules' | 'config/jsdoc/rules' | 'config/jsx/setup' | 'config/typescript/setup' | 'config/typescript/parser' | 'config/typescript/type-aware-parser' | 'config/typescript/rules' | 'config/typescript/rules-type-aware' | 'config/typescript/erasable-syntax-only' | 'config/stylistic/rules' | 'config/regexp/rules' | 'config/medusa/strict/0' | 'config/medusa/strict/1' | 'config/medusa/strict/2' | 'config/medusa/strict/3' | 'config/medusa/strict/4' | 'config/medusa/strict/5' | 'config/medusa/strict/6' | 'config/medusa/strict/7' | 'config/medusa/strict/8' | 'config/medusa/strict/9' | 'config/medusa/strict/10' | 'config/medusa/strict/11' | 'config/medusa/strict/12' | 'config/medusa/strict/13' | 'config/medusa/strict/14' | 'config/medusa/strict/15' | 'config/medusa/strict/16' | 'config/medusa/strict/17' | 'config/medusa/strict/18' | 'config/medusa/strict/19' | 'config/medusa/strict/20' | 'config/medusa/strict/21' | 'config/medusa/strict/22' | 'config/medusa/strict/23' | 'config/sanity/setup' | 'config/sanity/rules' | 'config/shadcn/setup' | 'config/shadcn/rules' | 'config/shadcn/components' | 'config/test/setup' | 'config/test/rules' | 'config/storybook/setup' | 'config/vue/setup' | 'config/vue/rules' | 'config/react/setup' | 'config/react/rules' | 'config/react/typescript' | 'config/react/type-aware-rules' | 'config/nextjs/setup' | 'config/nextjs/rules' | 'config/solid/setup' | 'config/solid/rules' | 'config/svelte/setup' | 'config/svelte/rules' | 'config/unocss' | 'config/astro/setup' | 'config/astro/rules' | 'config/jsonc/setup' | 'config/jsonc/rules' | 'config/sort/package-json' | 'config/sort/tsconfig-json' | 'config/pnpm/package-json' | 'config/pnpm/pnpm-workspace-yaml' | 'config/pnpm/pnpm-workspace-yaml-sort' | 'config/yaml/setup' | 'config/yaml/rules' | 'config/yaml/pnpm-workspace' | 'config/toml/setup' | 'config/toml/rules' | 'config/markdown/setup' | 'config/markdown/processor' | 'config/markdown/parser' | 'config/markdown/rules' | 'config/markdown/disables' | 'config/formatter/setup' | 'config/formatter/css' | 'config/formatter/scss' | 'config/formatter/less' | 'config/formatter/html' | 'config/formatter/xml' | 'config/formatter/svg' | 'config/formatter/markdown' | 'config/formatter/astro' | 'config/formatter/astro/disables' | 'config/formatter/graphql' | 'config/disables/scripts' | 'config/disables/cli' | 'config/disables/bin' | 'config/disables/dts' | 'config/disables/cjs' | 'config/disables/config-files';
22133
22296
  //#endregion
22134
22297
  //#region src/vendor/prettier-types.d.ts
22135
22298
  /**
@@ -22255,7 +22418,13 @@ interface VendoredPrettierOptionsRequired {
22255
22418
  }
22256
22419
  //#endregion
22257
22420
  //#region src/types.d.ts
22421
+ /**
22422
+ * A value that may be returned directly or wrapped in a `Promise`.
22423
+ */
22258
22424
  export type Awaitable<T> = Promise<T> | T;
22425
+ /**
22426
+ * Options for registering additional component file extensions.
22427
+ */
22259
22428
  export interface OptionsComponentExts {
22260
22429
  /**
22261
22430
  * Additional extensions for components.
@@ -22266,6 +22435,9 @@ export interface OptionsComponentExts {
22266
22435
  */
22267
22436
  componentExts?: string[];
22268
22437
  }
22438
+ /**
22439
+ * Options for the `config()` factory, used to toggle and configure each integration.
22440
+ */
22269
22441
  export interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
22270
22442
  /**
22271
22443
  * Enable ASTRO support.
@@ -22285,6 +22457,12 @@ export interface OptionsConfig extends OptionsComponentExts, OptionsProjectType
22285
22457
  * @default true
22286
22458
  */
22287
22459
  autoRenamePlugins?: boolean;
22460
+ /**
22461
+ * Options for [@e18e/eslint-plugin](https://github.com/e18e/eslint-plugin)
22462
+ *
22463
+ * @default true
22464
+ */
22465
+ e18e?: boolean | OptionsE18e;
22288
22466
  /**
22289
22467
  * Use external formatters to format files.
22290
22468
  *
@@ -22327,22 +22505,10 @@ export interface OptionsConfig extends OptionsComponentExts, OptionsProjectType
22327
22505
  * @default auto-detect based on the process.env
22328
22506
  */
22329
22507
  isInEditor?: boolean;
22330
- /**
22331
- * Enable Node.js rules
22332
- *
22333
- * @default true
22334
- */
22335
- node?: boolean;
22336
22508
  /**
22337
22509
  * Core rules. Can't be disabled.
22338
22510
  */
22339
22511
  javascript?: OptionsOverrides;
22340
- /**
22341
- * Enable JSONC support.
22342
- *
22343
- * @default true
22344
- */
22345
- jsonc?: boolean | OptionsOverrides;
22346
22512
  /**
22347
22513
  * Enable JSDoc support to enforce JSDoc comments.
22348
22514
  *
@@ -22350,19 +22516,19 @@ export interface OptionsConfig extends OptionsComponentExts, OptionsProjectType
22350
22516
  */
22351
22517
  jsdoc?: boolean | OptionsOverrides | OptionsProjectType | OptionsStylistic;
22352
22518
  /**
22353
- * Enable JSX related rules.
22354
- *
22355
- * Passing an object to enable JSX accessibility rules.
22519
+ * Enable JSONC support.
22356
22520
  *
22357
22521
  * @default true
22358
22522
  */
22359
- jsx?: boolean | OptionsJSX;
22523
+ jsonc?: boolean | OptionsOverrides;
22360
22524
  /**
22361
- * Options for [@e18e/eslint-plugin](https://github.com/e18e/eslint-plugin)
22525
+ * Enable JSX related rules.
22526
+ *
22527
+ * Passing an object to enable JSX accessibility rules.
22362
22528
  *
22363
22529
  * @default true
22364
22530
  */
22365
- e18e?: boolean | OptionsE18e;
22531
+ jsx?: boolean | OptionsJSX;
22366
22532
  /**
22367
22533
  * Enable linting for **code snippets** in Markdown.
22368
22534
  *
@@ -22389,6 +22555,12 @@ export interface OptionsConfig extends OptionsComponentExts, OptionsProjectType
22389
22555
  * @default false
22390
22556
  */
22391
22557
  nextjs?: boolean | OptionsNextjs | OptionsOverrides;
22558
+ /**
22559
+ * Enable Node.js rules
22560
+ *
22561
+ * @default true
22562
+ */
22563
+ node?: boolean;
22392
22564
  /**
22393
22565
  * Provide overrides for rules for each integration.
22394
22566
  *
@@ -22403,6 +22575,7 @@ export interface OptionsConfig extends OptionsComponentExts, OptionsProjectType
22403
22575
  nextjs?: TypedFlatConfigItem['rules'];
22404
22576
  react?: TypedFlatConfigItem['rules'];
22405
22577
  sanity?: TypedFlatConfigItem['rules'];
22578
+ shadcn?: TypedFlatConfigItem['rules'];
22406
22579
  storybook?: TypedFlatConfigItem['rules'];
22407
22580
  stylistic?: TypedFlatConfigItem['rules'];
22408
22581
  svelte?: TypedFlatConfigItem['rules'];
@@ -22420,8 +22593,10 @@ export interface OptionsConfig extends OptionsComponentExts, OptionsProjectType
22420
22593
  * In the future it will be smartly enabled based on the project usage.
22421
22594
  *
22422
22595
  * @see https://github.com/antfu/pnpm-workspace-utils
22423
- * @experimental
22596
+ *
22424
22597
  * @default false
22598
+ *
22599
+ * @experimental
22425
22600
  */
22426
22601
  pnpm?: boolean | OptionsPnpm;
22427
22602
  /**
@@ -22451,6 +22626,19 @@ export interface OptionsConfig extends OptionsComponentExts, OptionsProjectType
22451
22626
  * @default false
22452
22627
  */
22453
22628
  sanity?: boolean | OptionsSanity;
22629
+ /**
22630
+ * Enable `@shadcn/lint` design system rules.
22631
+ *
22632
+ * Requires installing:
22633
+ * - `@shadcn/lint`
22634
+ *
22635
+ * Requires Tailwind CSS v4.
22636
+ *
22637
+ * @see https://github.com/shadcn-ui/lint
22638
+ *
22639
+ * @default false
22640
+ */
22641
+ shadcn?: boolean | OptionsShadcn;
22454
22642
  /**
22455
22643
  * Enable solid rules.
22456
22644
  *
@@ -22476,7 +22664,7 @@ export interface OptionsConfig extends OptionsComponentExts, OptionsProjectType
22476
22664
  *
22477
22665
  * @default true
22478
22666
  */
22479
- stylistic?: (StylisticConfig & OptionsOverrides) | boolean;
22667
+ stylistic?: (OptionsOverrides & StylisticConfig) | boolean;
22480
22668
  /**
22481
22669
  * Enable svelte rules.
22482
22670
  *
@@ -22543,46 +22731,63 @@ export interface OptionsConfig extends OptionsComponentExts, OptionsProjectType
22543
22731
  */
22544
22732
  yaml?: boolean | OptionsOverrides;
22545
22733
  }
22734
+ /**
22735
+ * Options for `@e18e/eslint-plugin`.
22736
+ *
22737
+ * @see https://github.com/e18e/eslint-plugin
22738
+ */
22546
22739
  export interface OptionsE18e extends OptionsOverrides {
22547
22740
  /**
22548
- * Include modernization rules
22741
+ * Include modernization rules.
22549
22742
  *
22550
22743
  * @see https://github.com/e18e/eslint-plugin#modernization
22744
+ *
22551
22745
  * @default true
22552
22746
  */
22553
22747
  modernization?: boolean;
22554
22748
  /**
22555
- * Include module replacements rules
22749
+ * Include module replacements rules.
22556
22750
  *
22557
22751
  * @see https://github.com/e18e/eslint-plugin#module-replacements
22752
+ *
22558
22753
  * @default type === 'lib' && isInEditor
22559
22754
  */
22560
22755
  moduleReplacements?: boolean;
22561
22756
  /**
22562
- * Include performance improvements rules
22757
+ * Include performance improvements rules.
22563
22758
  *
22564
22759
  * @see https://github.com/e18e/eslint-plugin#performance-improvements
22760
+ *
22565
22761
  * @default true
22566
22762
  */
22567
22763
  performanceImprovements?: boolean;
22568
22764
  }
22765
+ /**
22766
+ * Options for overriding the default file globs of a config.
22767
+ */
22569
22768
  export interface OptionsFiles {
22570
22769
  /**
22571
22770
  * Override the `files` option to provide custom globs.
22572
22771
  */
22573
22772
  files?: string[];
22574
22773
  }
22774
+ /**
22775
+ * Options for external formatters (Prettier and dprint) used for files ESLint cannot format.
22776
+ *
22777
+ * Requires installing:
22778
+ * - `eslint-plugin-format`
22779
+ */
22575
22780
  export interface OptionsFormatters {
22576
22781
  /**
22577
22782
  * Enable formatting support for Astro.
22578
22783
  *
22579
- * Currently only support Prettier.
22784
+ * Currently only supports Prettier.
22580
22785
  */
22581
22786
  astro?: boolean | 'prettier';
22582
22787
  /**
22583
22788
  * Enable formatting support for CSS, Less, Sass, and SCSS.
22584
22789
  *
22585
- * Currently only support Prettier.
22790
+ * Currently only supports Prettier.
22586
22791
  */
22587
22792
  css?: boolean | 'prettier';
22588
22793
  /**
@@ -22604,7 +22809,7 @@ export interface OptionsFormatters {
22604
22809
  /**
22605
22810
  * Enable formatting support for Markdown.
22606
22811
  *
22607
- * Support both Prettier and dprint.
22812
+ * Supports both Prettier and dprint.
22608
22813
  *
22609
22814
  * When set to `true`, it will use Prettier.
22610
22815
  */
@@ -22616,7 +22821,10 @@ export interface OptionsFormatters {
22616
22821
  */
22617
22822
  prettierOptions?: VendoredPrettierOptions;
22618
22823
  /**
22619
- * Install the prettier plugin for handle Slidev markdown
22824
+ * Install the Prettier plugin to handle Slidev Markdown.
22825
+ *
22826
+ * Requires installing:
22827
+ * - `prettier-plugin-slidev`
22620
22828
  *
22621
22829
  * Only works when `markdown` is enabled with `prettier`.
22622
22830
  */
@@ -22626,25 +22834,37 @@ export interface OptionsFormatters {
22626
22834
  /**
22627
22835
  * Enable formatting support for SVG.
22628
22836
  *
22629
- * Currently only support Prettier.
22837
+ * Currently only supports Prettier.
22630
22838
  */
22631
22839
  svg?: boolean | 'prettier';
22632
22840
  /**
22633
22841
  * Enable formatting support for XML.
22634
22842
  *
22635
- * Currently only support Prettier.
22843
+ * Currently only supports Prettier.
22636
22844
  */
22637
22845
  xml?: boolean | 'prettier';
22638
22846
  }
22847
+ /**
22848
+ * Options for configs that adapt their behavior when TypeScript is enabled.
22849
+ */
22639
22850
  export interface OptionsHasTypeScript {
22851
+ /**
22852
+ * Whether TypeScript support is enabled.
22853
+ */
22640
22854
  typescript?: boolean;
22641
22855
  }
22642
- export interface OptionsHasTypeScript {
22643
- typescript?: boolean;
22644
- }
22856
+ /**
22857
+ * Options for configs that adapt their behavior when running inside an editor.
22858
+ */
22645
22859
  export interface OptionsIsInEditor {
22860
+ /**
22861
+ * Whether the config is running inside an editor, which disables some rules.
22862
+ */
22646
22863
  isInEditor?: boolean;
22647
22864
  }
22865
+ /**
22866
+ * Options for JSX related rules.
22867
+ */
22648
22868
  export interface OptionsJSX {
22649
22869
  /**
22650
22870
  * Enable JSX accessibility rules.
@@ -22658,7 +22878,17 @@ export interface OptionsJSX {
22658
22878
  */
22659
22879
  a11y?: boolean | OptionsJSXA11y;
22660
22880
  }
22881
+ /**
22882
+ * Options for JSX accessibility rules.
22883
+ *
22884
+ * Add future a11y-specific options here.
22885
+ */
22661
22886
  export interface OptionsJSXA11y extends OptionsOverrides {}
22887
+ /**
22888
+ * Options for Medusa rules.
22889
+ *
22890
+ * @see https://docs.medusajs.com/resources/lint
22891
+ */
22662
22892
  export interface OptionsMedusa extends OptionsOverrides {
22663
22893
  /**
22664
22894
  * Medusa rule preset.
@@ -22673,6 +22903,11 @@ export interface OptionsMedusa extends OptionsOverrides {
22673
22903
  */
22674
22904
  preset?: 'modules' | 'recommended' | 'strict';
22675
22905
  }
22906
+ /**
22907
+ * Options for Next.js rules.
22908
+ *
22909
+ * @see https://nextjs.org/docs/app/api-reference/config/eslint
22910
+ */
22676
22911
  export interface OptionsNextjs {
22677
22912
  /**
22678
22913
  * Specify a root directory within a monorepo.
@@ -22710,35 +22945,51 @@ export interface OptionsNextjs {
22710
22945
  */
22711
22946
  rootDir?: string | string[];
22712
22947
  }
22948
+ /**
22949
+ * Options for overriding the rules of a config.
22950
+ */
22713
22951
  export interface OptionsOverrides {
22952
+ /**
22953
+ * Rule overrides, applied after the rules of the config.
22954
+ */
22714
22955
  overrides?: TypedFlatConfigItem['rules'];
22715
22956
  }
22957
+ /**
22958
+ * Options for pnpm (workspace and catalogs) support.
22959
+ *
22960
+ * @see https://github.com/antfu/pnpm-workspace-utils
22961
+ */
22716
22962
  export interface OptionsPnpm extends OptionsIsInEditor {
22717
22963
  /**
22718
- * Requires catalogs usage
22964
+ * Require catalogs usage.
22719
22965
  *
22720
- * Detects automatically based if `catalogs` is used in the pnpm-workspace.yaml file
22966
+ * Detected automatically based on whether `catalogs` is used in the `pnpm-workspace.yaml` file.
22967
+ *
22968
+ * @default auto-detect based on the `pnpm-workspace.yaml` file
22721
22969
  */
22722
22970
  catalogs?: boolean;
22723
22971
  /**
22724
- * Enable linting for package.json, will install the jsonc parser
22972
+ * Enable linting for `package.json`, will install the jsonc parser.
22725
22973
  *
22726
22974
  * @default true
22727
22975
  */
22728
22976
  json?: boolean;
22729
22977
  /**
22730
- * Enable linting for pnpm-workspace.yaml, will install the yaml parser
22978
+ * Sort entries in `pnpm-workspace.yaml`.
22731
22979
  *
22732
- * @default true
22980
+ * @default false
22733
22981
  */
22734
- yaml?: boolean;
22982
+ sort?: boolean;
22735
22983
  /**
22736
- * Sort entries in pnpm-workspace.yaml
22984
+ * Enable linting for `pnpm-workspace.yaml`, will install the yaml parser.
22737
22985
  *
22738
- * @default false
22986
+ * @default true
22739
22987
  */
22740
- sort?: boolean;
22988
+ yaml?: boolean;
22741
22989
  }
22990
+ /**
22991
+ * Options for the type of the project being linted.
22992
+ */
22742
22993
  export interface OptionsProjectType {
22743
22994
  /**
22744
22995
  * Type of the project. `lib` will enable more strict rules for libraries.
@@ -22747,6 +22998,11 @@ export interface OptionsProjectType {
22747
22998
  */
22748
22999
  type?: 'app' | 'lib';
22749
23000
  }
23001
+ /**
23002
+ * Options for React rules.
23003
+ *
23004
+ * @see https://github.com/Rel1cx/eslint-react
23005
+ */
22750
23006
  export interface OptionsReact extends OptionsOverrides {
22751
23007
  /**
22752
23008
  * Enable React Compiler support.
@@ -22758,12 +23014,24 @@ export interface OptionsReact extends OptionsOverrides {
22758
23014
  */
22759
23015
  reactCompiler?: boolean;
22760
23016
  }
23017
+ /**
23018
+ * Options for regexp rules.
23019
+ *
23020
+ * @see https://ota-meshi.github.io/eslint-plugin-regexp/
23021
+ */
22761
23022
  export interface OptionsRegExp {
22762
23023
  /**
22763
- * Override rulelevels
23024
+ * Override the severity of the regexp rules.
23025
+ *
23026
+ * @default 'error'
22764
23027
  */
22765
23028
  level?: 'error' | 'warn';
22766
23029
  }
23030
+ /**
23031
+ * Options for Sanity rules.
23032
+ *
23033
+ * @see https://github.com/sanity-labs/sanity-lint/tree/main/packages/eslint-plugin
23034
+ */
22767
23035
  export interface OptionsSanity extends OptionsFiles, OptionsOverrides {
22768
23036
  /**
22769
23037
  * Working directory for resolving the Sanity schema path.
@@ -22798,6 +23066,8 @@ export interface OptionsSanity extends OptionsFiles, OptionsOverrides {
22798
23066
  *
22799
23067
  * Relative paths are resolved from `cwd`.
22800
23068
  *
23069
+ * @see https://github.com/sanity-labs/sanity-lint/tree/main/packages/eslint-plugin#schema-aware-linting
23070
+ *
22801
23071
  * @example
22802
23072
  * ```ts
22803
23073
  * sanity: {
@@ -22806,12 +23076,167 @@ export interface OptionsSanity extends OptionsFiles, OptionsOverrides {
22806
23076
  * },
22807
23077
  * ```
22808
23078
  *
22809
- * @see https://github.com/sanity-labs/sanity-lint/tree/main/packages/eslint-plugin#schema-aware-linting
22810
- *
22811
23079
  * @default undefined
22812
23080
  */
22813
23081
  schemaPath?: string;
22814
23082
  }
23083
+ /**
23084
+ * Options for `@shadcn/lint` design system rules.
23085
+ *
23086
+ * @see https://github.com/shadcn-ui/lint
23087
+ */
23088
+ export interface OptionsShadcn extends OptionsFiles, OptionsOverrides {
23089
+ /**
23090
+ * Globs for the built-in component-directory override, relative to the ESLint config root.
23091
+ *
23092
+ * Inside these files `shadcn/no-restyle`, `shadcn/no-arbitrary-values`, and
23093
+ * `shadcn/require-static-classes` are turned off. Pass `[]` to disable the override.
23094
+ * Ignored when the policy file defines `overrides` (including an empty array).
23095
+ *
23096
+ * @example
23097
+ * ```ts
23098
+ * shadcn: {
23099
+ * componentFiles: [ 'packages/ui/src/components/**' ],
23100
+ * },
23101
+ * ```
23102
+ *
23103
+ * @default ['**\/components/ui/**']
23104
+ */
23105
+ componentFiles?: string[];
23106
+ /**
23107
+ * Working directory used only to resolve a relative `policy` path.
23108
+ *
23109
+ * It does not change how any glob is matched.
23110
+ *
23111
+ * @example
23112
+ * ```ts
23113
+ * shadcn: {
23114
+ * cwd: 'packages/ui',
23115
+ * policy: 'design-system.lint.json',
23116
+ * },
23117
+ * ```
23118
+ *
23119
+ * @default process.cwd()
23120
+ */
23121
+ cwd?: string;
23122
+ /**
23123
+ * Path to a `design-system.lint.json` policy file.
23124
+ *
23125
+ * Relative paths are resolved from `cwd`. The policy `rules` are layered over the preset,
23126
+ * and its `overrides` replace the built-in component-directory override. Override `files`
23127
+ * globs are relative to the ESLint config root, not to the policy file.
23128
+ *
23129
+ * @see https://github.com/shadcn-ui/lint/blob/main/docs/design-systems.md
23130
+ *
23131
+ * @example
23132
+ * ```ts
23133
+ * shadcn: {
23134
+ * policy: 'design-system.lint.json',
23135
+ * },
23136
+ * ```
23137
+ *
23138
+ * @default undefined
23139
+ */
23140
+ policy?: string;
23141
+ /**
23142
+ * shadcn rule preset.
23143
+ *
23144
+ * - `recommended`: Core rules as errors and `no-unknown-classes` as a warning.
23145
+ * - `warn`: All rules as warnings, for adopting in an existing project.
23146
+ * - `none`: Register the plugin and settings without enabling any rules.
23147
+ *
23148
+ * @example
23149
+ * ```ts
23150
+ * shadcn: {
23151
+ * preset: 'warn',
23152
+ * },
23153
+ * ```
23154
+ *
23155
+ * @default 'recommended'
23156
+ */
23157
+ preset?: 'none' | 'recommended' | 'warn';
23158
+ /**
23159
+ * Plugin settings, emitted as `settings.shadcn`.
23160
+ *
23161
+ * @example
23162
+ * ```ts
23163
+ * shadcn: {
23164
+ * settings: {
23165
+ * ui: '@workspace/ui/components',
23166
+ * },
23167
+ * },
23168
+ * ```
23169
+ *
23170
+ * @default undefined
23171
+ */
23172
+ settings?: OptionsShadcnSettings;
23173
+ }
23174
+ /**
23175
+ * Settings read by `@shadcn/lint` from `settings.shadcn`.
23176
+ *
23177
+ * @see https://github.com/shadcn-ui/lint#settings
23178
+ */
23179
+ export interface OptionsShadcnSettings {
23180
+ /**
23181
+ * Import patterns (regular expressions) that identify design system components.
23182
+ *
23183
+ * @example
23184
+ * ```ts
23185
+ * componentImports: [ '^@acme/ui(/|$)' ],
23186
+ * ```
23187
+ *
23188
+ * @default undefined
23189
+ */
23190
+ componentImports?: string | string[];
23191
+ /**
23192
+ * Import patterns (regular expressions) to exclude from component detection.
23193
+ *
23194
+ * Takes precedence over `componentImports` and `ui`.
23195
+ *
23196
+ * @default undefined
23197
+ */
23198
+ ignoreImports?: string | string[];
23199
+ /**
23200
+ * Additional functions whose arguments contain classes, such as `customMerge('mt-4', 'w-full')`.
23201
+ *
23202
+ * Added to the built-in `cn`, `cx`, `clsx`, `cva`, `tv`, `twMerge`, `twJoin`, and `classNames`.
23203
+ *
23204
+ * @default undefined
23205
+ */
23206
+ mergeFunctions?: string | string[];
23207
+ /**
23208
+ * Text appended to every rule message, such as a link to design system docs.
23209
+ *
23210
+ * @example 'See DESIGN.md for design rules and approved exceptions.'
23211
+ *
23212
+ * @default undefined
23213
+ */
23214
+ note?: string;
23215
+ /**
23216
+ * Import prefixes that identify the shared component package.
23217
+ *
23218
+ * A prefix matches itself and its subpaths, so `@workspace/ui/components` matches
23219
+ * `@workspace/ui/components/button` but not `@workspace/ui/components-extra`.
23220
+ *
23221
+ * @example '@workspace/ui/components'
23222
+ *
23223
+ * @default undefined
23224
+ */
23225
+ ui?: string | string[];
23226
+ /**
23227
+ * Additional functions whose object values contain classes.
23228
+ *
23229
+ * Added to the built-in `cva` and `tv`.
23230
+ *
23231
+ * @default undefined
23232
+ */
23233
+ variantFunctions?: string | string[];
23234
+ }
23235
+ /**
23236
+ * Options for stylistic rules.
23237
+ *
23238
+ * @see https://eslint.style/
23239
+ */
22815
23240
  export interface OptionsStylistic {
22816
23241
  /**
22817
23242
  * Enable stylistic rules.
@@ -22831,45 +23256,47 @@ export interface OptionsStylistic {
22831
23256
  */
22832
23257
  export interface OptionsTailwindcss {
22833
23258
  /**
22834
- * Detect component classes.
23259
+ * Working directory for resolving Tailwind CSS entry points.
22835
23260
  *
22836
- * If enabled, the plugin will detect component classes in the project.
23261
+ * Use this when linting from a monorepo root while the Tailwind CSS setup lives in a nested app.
23262
+ *
23263
+ * @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/settings/settings.md
22837
23264
  *
22838
23265
  * @example
22839
23266
  * ```ts
22840
23267
  * tailwindcss: {
22841
- * detectComponentClasses: true,
23268
+ * cwd: 'apps/web',
22842
23269
  * },
22843
23270
  * ```
22844
23271
  *
22845
- * @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/settings/settings.md
22846
- *
22847
- * @default false
23272
+ * @default process.cwd()
22848
23273
  */
22849
- detectComponentClasses?: boolean;
23274
+ cwd?: string;
22850
23275
  /**
22851
- * Working directory for resolving Tailwind CSS entry points.
23276
+ * Detect component classes.
22852
23277
  *
22853
- * Use this when linting from a monorepo root while the Tailwind CSS setup lives in a nested app.
23278
+ * If enabled, the plugin will detect component classes in the project.
23279
+ *
23280
+ * @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/settings/settings.md
22854
23281
  *
22855
23282
  * @example
22856
23283
  * ```ts
22857
23284
  * tailwindcss: {
22858
- * cwd: 'apps/web',
23285
+ * detectComponentClasses: true,
22859
23286
  * },
22860
23287
  * ```
22861
23288
  *
22862
- * @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/settings/settings.md
22863
- *
22864
- * @default process.cwd()
23289
+ * @default false
22865
23290
  */
22866
- cwd?: string;
23291
+ detectComponentClasses?: boolean;
22867
23292
  /**
22868
23293
  * Entry point for Tailwind CSS.
22869
23294
  *
22870
23295
  * If not provided, the config will try to find a common Tailwind CSS entry point in the project
22871
23296
  * like `global.css`, `globals.css`, `app.css`, `index.css`, or `style.css`.
22872
23297
  *
23298
+ * @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/settings/settings.md
23299
+ *
22873
23300
  * @example
22874
23301
  * ```ts
22875
23302
  * tailwindcss: {
@@ -22877,37 +23304,49 @@ export interface OptionsTailwindcss {
22877
23304
  * },
22878
23305
  * ```
22879
23306
  *
22880
- * @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/settings/settings.md
22881
- *
22882
23307
  * @default undefined
22883
23308
  */
22884
23309
  entryPoint?: string;
22885
23310
  }
22886
- export type OptionsTypescript = (OptionsTypeScriptParserOptions & OptionsOverrides & OptionsTypeScriptErasableOnly) | (OptionsTypeScriptWithTypes & OptionsOverrides & OptionsTypeScriptErasableOnly);
23311
+ /**
23312
+ * Options for TypeScript support, either with parser options only or with type-aware linting.
23313
+ */
23314
+ export type OptionsTypescript = (OptionsOverrides & OptionsTypeScriptErasableOnly & OptionsTypeScriptParserOptions) | (OptionsOverrides & OptionsTypeScriptErasableOnly & OptionsTypeScriptWithTypes);
23315
+ /**
23316
+ * Options for the erasable syntax only rules.
23317
+ *
23318
+ * @see https://github.com/JoshuaKGoldberg/eslint-plugin-erasable-syntax-only
23319
+ */
22887
23320
  export interface OptionsTypeScriptErasableOnly {
22888
23321
  /**
22889
23322
  * Enable erasable syntax only rules.
22890
23323
  *
22891
23324
  * @see https://github.com/JoshuaKGoldberg/eslint-plugin-erasable-syntax-only
23325
+ *
22892
23326
  * @default false
22893
23327
  */
22894
23328
  erasableOnly?: boolean;
22895
23329
  }
23330
+ /**
23331
+ * Options for the TypeScript parser.
23332
+ */
22896
23333
  export interface OptionsTypeScriptParserOptions {
22897
- /**
22898
- * Additional parser options for TypeScript.
22899
- */
22900
- parserOptions?: Partial<ParserOptions>;
22901
23334
  /**
22902
23335
  * Glob patterns for files that should be type aware.
23336
+ *
22903
23337
  * @default ['**\/*.{ts,tsx}']
22904
23338
  */
22905
23339
  filesTypeAware?: string[];
22906
23340
  /**
22907
23341
  * Glob patterns for files that should not be type aware.
23342
+ *
22908
23343
  * @default ['**\/*.md\/**', '**\/*.astro/*.ts']
22909
23344
  */
22910
23345
  ignoresTypeAware?: string[];
23346
+ /**
23347
+ * Additional parser options for TypeScript.
23348
+ */
23349
+ parserOptions?: Partial<ParserOptions>;
22911
23350
  /**
22912
23351
  * Enable strict mode.
22913
23352
  *
@@ -22915,17 +23354,30 @@ export interface OptionsTypeScriptParserOptions {
22915
23354
  */
22916
23355
  strict?: boolean;
22917
23356
  }
23357
+ /**
23358
+ * Options for type-aware TypeScript linting.
23359
+ */
22918
23360
  export interface OptionsTypeScriptWithTypes {
22919
- /**
22920
- * When this options is provided, type aware rules will be enabled.
22921
- * @see https://typescript-eslint.io/linting/typed-linting/
22922
- */
22923
- tsconfigPath?: string;
22924
23361
  /**
22925
23362
  * Override type aware rules.
23363
+ *
23364
+ * @default undefined
22926
23365
  */
22927
23366
  overridesTypeAware?: TypedFlatConfigItem['rules'];
23367
+ /**
23368
+ * Path to the `tsconfig.json` file. When this option is provided, type aware rules will be enabled.
23369
+ *
23370
+ * @see https://typescript-eslint.io/linting/typed-linting/
23371
+ *
23372
+ * @default undefined
23373
+ */
23374
+ tsconfigPath?: string;
22928
23375
  }
23376
+ /**
23377
+ * Options for `eslint-plugin-unicorn`.
23378
+ *
23379
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn
23380
+ */
22929
23381
  export interface OptionsUnicorn extends OptionsOverrides {
22930
23382
  /**
22931
23383
  * Include all rules recommended by `eslint-plugin-unicorn`.
@@ -22934,6 +23386,11 @@ export interface OptionsUnicorn extends OptionsOverrides {
22934
23386
  */
22935
23387
  allRecommended?: boolean;
22936
23388
  }
23389
+ /**
23390
+ * Options for UnoCSS rules.
23391
+ *
23392
+ * @see https://unocss.dev/integrations/eslint
23393
+ */
22937
23394
  export interface OptionsUnoCSS extends OptionsOverrides {
22938
23395
  /**
22939
23396
  * Enable attributify support.
@@ -22948,9 +23405,17 @@ export interface OptionsUnoCSS extends OptionsOverrides {
22948
23405
  */
22949
23406
  strict?: boolean;
22950
23407
  }
23408
+ /**
23409
+ * Options for Vue support.
23410
+ *
23411
+ * @see https://eslint.vuejs.org/
23412
+ */
22951
23413
  export interface OptionsVue extends OptionsOverrides {
22952
23414
  /**
22953
- * Vue accessibility plugin. Help check a11y issue in `.vue` files upon enabled
23415
+ * Enable accessibility rules for `.vue` files.
23416
+ *
23417
+ * Requires installing:
23418
+ * - `eslint-plugin-vuejs-accessibility`
22954
23419
  *
22955
23420
  * @see https://vue-a11y.github.io/eslint-plugin-vuejs-accessibility/
22956
23421
  *
@@ -22966,16 +23431,27 @@ export interface OptionsVue extends OptionsOverrides {
22966
23431
  */
22967
23432
  sfcBlocks?: boolean | Options;
22968
23433
  /**
22969
- * Vue version. Apply different rules set from `eslint-plugin-vue`.
23434
+ * Vue version. Applies a different rule set from `eslint-plugin-vue`.
22970
23435
  *
22971
23436
  * @default 3
22972
23437
  */
22973
23438
  vueVersion?: 2 | 3;
22974
23439
  }
23440
+ /**
23441
+ * A record of ESLint rule entries, with autocompletion for the known rules.
23442
+ */
22975
23443
  export type Rules = Record<string, Linter.RuleEntry<any> | undefined> & RuleOptions;
23444
+ /**
23445
+ * Options for customizing the stylistic rules.
23446
+ *
23447
+ * @see https://eslint.style/guide/config-presets#configuration-factory
23448
+ */
22976
23449
  export interface StylisticConfig extends Pick<StylisticCustomizeOptions, 'arrowParens' | 'blockSpacing' | 'braceStyle' | 'commaDangle' | 'experimental' | 'indent' | 'jsx' | 'quoteProps' | 'quotes' | 'semi'> {
22977
23450
  /**
22978
- * Enable or disable the opinionated spacing rules (space in parenthesis, objects, arrays, etc.).
23451
+ * Use a less opinionated rule set.
23452
+ *
23453
+ * When enabled, `antfu/curly` is not enforced and `curly` is turned off, so single-statement
23454
+ * blocks may omit their braces.
22979
23455
  *
22980
23456
  * @default false
22981
23457
  */
@@ -22986,7 +23462,7 @@ export interface StylisticConfig extends Pick<StylisticCustomizeOptions, 'arrowP
22986
23462
  * for `rules` and relaxes type limitations for `plugins` and `rules`, because
22987
23463
  * many plugins still lack proper type definitions.
22988
23464
  */
22989
- export type TypedFlatConfigItem = Omit<ConfigWithExtends, 'plugins' | 'rules'> & {
23465
+ export type TypedFlatConfigItem = {
22990
23466
  /**
22991
23467
  * An object containing a name-value mapping of plugin names to plugin objects.
22992
23468
  * When `files` is specified, these plugins are only available to the matching files.
@@ -22999,7 +23475,7 @@ export type TypedFlatConfigItem = Omit<ConfigWithExtends, 'plugins' | 'rules'> &
22999
23475
  * specified, these rule configurations are only available to the matching files.
23000
23476
  */
23001
23477
  rules?: Rules;
23002
- };
23478
+ } & Omit<ConfigWithExtends, 'plugins' | 'rules'>;
23003
23479
  //#endregion
23004
23480
  //#region src/factory.d.ts
23005
23481
  export declare const defaultPluginRenaming: {
@@ -23109,6 +23585,22 @@ export declare function regexp(options?: OptionsOverrides & OptionsRegExp): Prom
23109
23585
  //#region src/configs/sanity.d.ts
23110
23586
  export declare function sanity(options?: OptionsFiles & OptionsOverrides & OptionsSanity): Promise<TypedFlatConfigItem[]>;
23111
23587
  //#endregion
23588
+ //#region src/configs/shadcn.d.ts
23589
+ /**
23590
+ * Create the `@shadcn/lint` design system config.
23591
+ *
23592
+ * Layers rules as preset < policy `rules` < `overrides`. The built-in component-directory
23593
+ * override is replaced by the policy `overrides` whenever the policy defines them.
23594
+ *
23595
+ * @param {OptionsShadcn & OptionsOverrides & { svelte?: boolean, vue?: boolean }} options - The shadcn options.
23596
+ * The `svelte` and `vue` flags add `.svelte` and `.vue` files to the default `files`.
23597
+ * @returns {Promise<TypedFlatConfigItem[]>} The shadcn config items.
23598
+ */
23599
+ export declare function shadcn(options?: {
23600
+ svelte?: boolean;
23601
+ vue?: boolean;
23602
+ } & OptionsOverrides & OptionsShadcn): Promise<TypedFlatConfigItem[]>;
23603
+ //#endregion
23112
23604
  //#region src/configs/solid.d.ts
23113
23605
  export declare function solid(options?: OptionsFiles & OptionsHasTypeScript & OptionsOverrides & OptionsTypeScriptWithTypes): Promise<TypedFlatConfigItem[]>;
23114
23606
  //#endregion