@shayanthenerd/eslint-config 0.34.0 → 0.35.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.
@@ -75,7 +75,7 @@ export interface ESLintSchema {
75
75
  * Disallows 'target="_blank"' without 'rel="noreferrer noopener"'.
76
76
  * @see https://eslint-react.xyz/docs/rules/dom-no-unsafe-target-blank
77
77
  */
78
- '@eslint-react/dom-no-unsafe-target-blank'?: Linter.RuleEntry<[]>;
78
+ '@eslint-react/dom-no-unsafe-target-blank'?: Linter.RuleEntry<EslintReactDomNoUnsafeTargetBlank>;
79
79
  /**
80
80
  * Replaces usage of 'useFormState' with 'useActionState'.
81
81
  * @see https://eslint-react.xyz/docs/rules/dom-no-use-form-state
@@ -2650,26 +2650,32 @@ export interface ESLintSchema {
2650
2650
  'astro/valid-compile'?: Linter.RuleEntry<[]>;
2651
2651
  /**
2652
2652
  * disallow Atomics.pause() usage
2653
+ * @see https://baselinejs.vercel.app/docs/config#standalone-rules
2653
2654
  */
2654
2655
  'baseline-js/no-atomics-pause'?: Linter.RuleEntry<[]>;
2655
2656
  /**
2656
2657
  * disallow BigInt64Array/BigUint64Array usage
2658
+ * @see https://baselinejs.vercel.app/docs/config#standalone-rules
2657
2659
  */
2658
2660
  'baseline-js/no-bigint64array'?: Linter.RuleEntry<[]>;
2659
2661
  /**
2660
2662
  * disallow Function#caller and Function#arguments
2663
+ * @see https://baselinejs.vercel.app/docs/config#standalone-rules
2661
2664
  */
2662
2665
  'baseline-js/no-function-caller-arguments'?: Linter.RuleEntry<[]>;
2663
2666
  /**
2664
2667
  * disallow Math.sumPrecise() usage
2668
+ * @see https://baselinejs.vercel.app/docs/config#standalone-rules
2665
2669
  */
2666
2670
  'baseline-js/no-math-sum-precise'?: Linter.RuleEntry<[]>;
2667
2671
  /**
2668
2672
  * disallow Temporal API usage
2673
+ * @see https://baselinejs.vercel.app/docs/config#standalone-rules
2669
2674
  */
2670
2675
  'baseline-js/no-temporal'?: Linter.RuleEntry<[]>;
2671
2676
  /**
2672
2677
  * Enforce JS Baseline by delegating to underlying syntax rules (es-x)
2678
+ * @see https://baselinejs.vercel.app/docs/config#rule-options
2673
2679
  */
2674
2680
  'baseline-js/use-baseline'?: Linter.RuleEntry<BaselineJsUseBaseline>;
2675
2681
  /**
@@ -2904,121 +2910,271 @@ export interface ESLintSchema {
2904
2910
  * @see https://github.com/eslint/css/blob/main/docs/rules/use-layers.md
2905
2911
  */
2906
2912
  'css/use-layers'?: Linter.RuleEntry<CssUseLayers>;
2913
+ /**
2914
+ * Enforce consistent ordering of compound selector components.
2915
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/consistent-compound-selector-order.md
2916
+ */
2917
+ 'cssicorn/consistent-compound-selector-order'?: Linter.RuleEntry<[]>;
2918
+ /**
2919
+ * Enforce consistent ordering of cascade layer statements.
2920
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/consistent-layer-order.md
2921
+ */
2922
+ 'cssicorn/consistent-layer-order'?: Linter.RuleEntry<CssicornConsistentLayerOrder>;
2923
+ /**
2924
+ * Enforce consistent ordering of CSS properties.
2925
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/consistent-property-order.md
2926
+ */
2927
+ 'cssicorn/consistent-property-order'?: Linter.RuleEntry<CssicornConsistentPropertyOrder>;
2928
+ /**
2929
+ * Enforce consistent ordering of CSS value components.
2930
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/consistent-value-order.md
2931
+ */
2932
+ 'cssicorn/consistent-value-order'?: Linter.RuleEntry<[]>;
2907
2933
  /**
2908
2934
  * Enforce lowercase CSS syntax.
2909
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/lowercase.md
2935
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/lowercase.md
2910
2936
  */
2911
2937
  'cssicorn/lowercase'?: Linter.RuleEntry<[]>;
2938
+ /**
2939
+ * Disallow CSS values that browsers silently clamp.
2940
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-clamped-values.md
2941
+ */
2942
+ 'cssicorn/no-clamped-values'?: Linter.RuleEntry<[]>;
2912
2943
  /**
2913
2944
  * Disallow declarations after nested rules.
2914
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-declarations-after-nested-rules.md
2945
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-declarations-after-nested-rules.md
2915
2946
  */
2916
2947
  'cssicorn/no-declarations-after-nested-rules'?: Linter.RuleEntry<[]>;
2917
2948
  /**
2918
2949
  * Disallow deprecated CSS features.
2919
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-deprecated-features.md
2950
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-deprecated-features.md
2920
2951
  */
2921
2952
  'cssicorn/no-deprecated-features'?: Linter.RuleEntry<CssicornNoDeprecatedFeatures>;
2922
2953
  /**
2923
2954
  * Disallow lower-specificity selectors from following higher-specificity selectors that set the same property.
2924
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-descending-specificity.md
2955
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-descending-specificity.md
2925
2956
  */
2926
2957
  'cssicorn/no-descending-specificity'?: Linter.RuleEntry<[]>;
2958
+ /**
2959
+ * Disallow `touch-action` values that disable browser pinch zoom.
2960
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-disabled-pinch-zoom.md
2961
+ */
2962
+ 'cssicorn/no-disabled-pinch-zoom'?: Linter.RuleEntry<[]>;
2963
+ /**
2964
+ * Disallow duplicate named at-rule definitions.
2965
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-duplicate-at-rule-definitions.md
2966
+ */
2967
+ 'cssicorn/no-duplicate-at-rule-definitions'?: Linter.RuleEntry<[]>;
2927
2968
  /**
2928
2969
  * Disallow duplicate font family names.
2929
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-duplicate-font-family-names.md
2970
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-duplicate-font-family-names.md
2930
2971
  */
2931
2972
  'cssicorn/no-duplicate-font-family-names'?: Linter.RuleEntry<[]>;
2932
2973
  /**
2933
2974
  * Disallow duplicate properties within CSS declaration blocks.
2934
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-duplicate-properties.md
2975
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-duplicate-properties.md
2935
2976
  */
2936
2977
  'cssicorn/no-duplicate-properties'?: Linter.RuleEntry<[]>;
2937
2978
  /**
2938
2979
  * Disallow duplicate CSS selectors.
2939
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-duplicate-selectors.md
2980
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-duplicate-selectors.md
2940
2981
  */
2941
2982
  'cssicorn/no-duplicate-selectors'?: Linter.RuleEntry<[]>;
2942
2983
  /**
2943
- * Disallow unknown media features and invalid values for known media features.
2944
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-invalid-media-features.md
2984
+ * Disallow ineffective declarations in keyframes.
2985
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-ineffective-keyframe-declarations.md
2986
+ */
2987
+ 'cssicorn/no-ineffective-keyframe-declarations'?: Linter.RuleEntry<[]>;
2988
+ /**
2989
+ * Disallow state and conditional overrides blocked by cascade priority.
2990
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-ineffective-overrides.md
2991
+ */
2992
+ 'cssicorn/no-ineffective-overrides'?: Linter.RuleEntry<[]>;
2993
+ /**
2994
+ * Disallow properties that have no effect given other declarations or shorthand defaults.
2995
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-ineffective-properties.md
2996
+ */
2997
+ 'cssicorn/no-ineffective-properties'?: Linter.RuleEntry<[]>;
2998
+ /**
2999
+ * Disallow properties that cannot affect their selected targets.
3000
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-ineffective-selector-properties.md
3001
+ */
3002
+ 'cssicorn/no-ineffective-selector-properties'?: Linter.RuleEntry<[]>;
3003
+ /**
3004
+ * Disallow supports conditions that do not test their value functions.
3005
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-ineffective-supports-conditions.md
3006
+ */
3007
+ 'cssicorn/no-ineffective-supports-conditions'?: Linter.RuleEntry<[]>;
3008
+ /**
3009
+ * Disallow transition targets that cannot transition under the declared behavior.
3010
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-ineffective-transitions.md
3011
+ */
3012
+ 'cssicorn/no-ineffective-transitions'?: Linter.RuleEntry<[]>;
3013
+ /**
3014
+ * Disallow unknown media features, invalid values, and invalid notation.
3015
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-invalid-media-features.md
2945
3016
  */
2946
3017
  'cssicorn/no-invalid-media-features'?: Linter.RuleEntry<[]>;
2947
3018
  /**
2948
- * Disallow nesting under selector lists with mixed specificity.
2949
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-nesting-with-mixed-specificity.md
3019
+ * Disallow invalid property references in transitions and will-change.
3020
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-invalid-property-references.md
3021
+ */
3022
+ 'cssicorn/no-invalid-property-references'?: Linter.RuleEntry<[]>;
3023
+ /**
3024
+ * Disallow animating properties that can affect layout.
3025
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-layout-animations.md
3026
+ */
3027
+ 'cssicorn/no-layout-animations'?: Linter.RuleEntry<[]>;
3028
+ /**
3029
+ * Disallow mixed specificity in nesting parents and selector-list pseudo-classes.
3030
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-nesting-with-mixed-specificity.md
2950
3031
  */
2951
3032
  'cssicorn/no-nesting-with-mixed-specificity'?: Linter.RuleEntry<[]>;
3033
+ /**
3034
+ * Disallow overflow values that are coerced by the other axis.
3035
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-overflow-axis-coercion.md
3036
+ */
3037
+ 'cssicorn/no-overflow-axis-coercion'?: Linter.RuleEntry<[]>;
3038
+ /**
3039
+ * Disallow redundant function calls and arguments.
3040
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-redundant-functions.md
3041
+ */
3042
+ 'cssicorn/no-redundant-functions'?: Linter.RuleEntry<[]>;
2952
3043
  /**
2953
3044
  * Disallow longhand properties that can be combined into a shorthand.
2954
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-redundant-longhand-properties.md
3045
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-redundant-longhand-properties.md
2955
3046
  */
2956
3047
  'cssicorn/no-redundant-longhand-properties'?: Linter.RuleEntry<CssicornNoRedundantLonghandProperties>;
2957
3048
  /**
2958
3049
  * Disallow nested style rules that do not modify the parent selector.
2959
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-redundant-nested-style-rules.md
3050
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-redundant-nested-style-rules.md
2960
3051
  */
2961
3052
  'cssicorn/no-redundant-nested-style-rules'?: Linter.RuleEntry<[]>;
3053
+ /**
3054
+ * Disallow redundant nesting selectors.
3055
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-redundant-nesting-selector.md
3056
+ */
3057
+ 'cssicorn/no-redundant-nesting-selector'?: Linter.RuleEntry<[]>;
2962
3058
  /**
2963
3059
  * Disallow redundant values in CSS shorthand properties.
2964
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-redundant-shorthand-values.md
3060
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-redundant-shorthand-values.md
2965
3061
  */
2966
3062
  'cssicorn/no-redundant-shorthand-values'?: Linter.RuleEntry<[]>;
2967
3063
  /**
2968
- * Disallow self-references in CSS custom properties.
2969
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-self-referencing-custom-properties.md
3064
+ * Disallow cyclic dependencies in CSS custom properties.
3065
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-self-referencing-custom-properties.md
2970
3066
  */
2971
3067
  'cssicorn/no-self-referencing-custom-properties'?: Linter.RuleEntry<[]>;
2972
3068
  /**
2973
3069
  * Disallow unknown animations.
2974
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-unknown-animations.md
3070
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-unknown-animations.md
2975
3071
  */
2976
3072
  'cssicorn/no-unknown-animations'?: Linter.RuleEntry<[]>;
2977
3073
  /**
2978
3074
  * Disallow unknown and noncanonical CSS annotations.
2979
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-unknown-annotations.md
3075
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-unknown-annotations.md
2980
3076
  */
2981
3077
  'cssicorn/no-unknown-annotations'?: Linter.RuleEntry<[]>;
2982
3078
  /**
2983
3079
  * Disallow unknown pseudo-class and pseudo-element selectors.
2984
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-unknown-pseudo-selectors.md
3080
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-unknown-pseudo-selectors.md
2985
3081
  */
2986
3082
  'cssicorn/no-unknown-pseudo-selectors'?: Linter.RuleEntry<CssicornNoUnknownPseudoSelectors>;
2987
3083
  /**
2988
3084
  * Disallow unscoped CSS nesting selectors.
2989
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-unscoped-nesting-selector.md
3085
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-unscoped-nesting-selector.md
2990
3086
  */
2991
3087
  'cssicorn/no-unscoped-nesting-selector'?: Linter.RuleEntry<CssicornNoUnscopedNestingSelector>;
3088
+ /**
3089
+ * Disallow unnecessary `:is()` wrappers.
3090
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-useless-is.md
3091
+ */
3092
+ 'cssicorn/no-useless-is'?: Linter.RuleEntry<[]>;
2992
3093
  /**
2993
3094
  * Disallow units on zero CSS lengths.
2994
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-zero-length-unit.md
3095
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/no-zero-length-unit.md
2995
3096
  */
2996
3097
  'cssicorn/no-zero-length-unit'?: Linter.RuleEntry<[]>;
3098
+ /**
3099
+ * Prefer `aspect-ratio` over zero-height percentage-padding workarounds.
3100
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/prefer-aspect-ratio.md
3101
+ */
3102
+ 'cssicorn/prefer-aspect-ratio'?: Linter.RuleEntry<[]>;
3103
+ /**
3104
+ * Prefer `clamp()` over nested `min()` and `max()`.
3105
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/prefer-clamp.md
3106
+ */
3107
+ 'cssicorn/prefer-clamp'?: Linter.RuleEntry<[]>;
3108
+ /**
3109
+ * Prefer currentcolor over repeating the foreground color.
3110
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/prefer-current-color.md
3111
+ */
3112
+ 'cssicorn/prefer-current-color'?: Linter.RuleEntry<[]>;
3113
+ /**
3114
+ * Prefer existing custom properties over matching literal values.
3115
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/prefer-existing-custom-properties.md
3116
+ */
3117
+ 'cssicorn/prefer-existing-custom-properties'?: Linter.RuleEntry<CssicornPreferExistingCustomProperties>;
2997
3118
  /**
2998
3119
  * Prefer explicit viewport units.
2999
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/prefer-explicit-viewport-units.md
3120
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/prefer-explicit-viewport-units.md
3000
3121
  */
3001
3122
  'cssicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<CssicornPreferExplicitViewportUnits>;
3123
+ /**
3124
+ * Prefer individual transform properties over transform functions.
3125
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/prefer-individual-transform-properties.md
3126
+ */
3127
+ 'cssicorn/prefer-individual-transform-properties'?: Linter.RuleEntry<[]>;
3128
+ /**
3129
+ * Prefer `light-dark()` over paired light and dark color declarations.
3130
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/prefer-light-dark.md
3131
+ */
3132
+ 'cssicorn/prefer-light-dark'?: Linter.RuleEntry<[]>;
3002
3133
  /**
3003
3134
  * Prefer modern media feature range syntax.
3004
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/prefer-media-feature-range-syntax.md
3135
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/prefer-media-feature-range-syntax.md
3005
3136
  */
3006
3137
  'cssicorn/prefer-media-feature-range-syntax'?: Linter.RuleEntry<[]>;
3138
+ /**
3139
+ * Prefer merging adjacent rules with identical declarations or conditions.
3140
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/prefer-merged-rules.md
3141
+ */
3142
+ 'cssicorn/prefer-merged-rules'?: Linter.RuleEntry<[]>;
3007
3143
  /**
3008
3144
  * Prefer modern CSS color and pseudo-element syntax.
3009
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/prefer-modern-syntax.md
3145
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/prefer-modern-syntax.md
3010
3146
  */
3011
3147
  'cssicorn/prefer-modern-syntax'?: Linter.RuleEntry<[]>;
3148
+ /**
3149
+ * Prefer CSS nesting for related rules and selector groups.
3150
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/prefer-nesting.md
3151
+ */
3152
+ 'cssicorn/prefer-nesting'?: Linter.RuleEntry<[]>;
3153
+ /**
3154
+ * Prefer relative colors for alpha variants of existing color custom properties.
3155
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/prefer-relative-colors.md
3156
+ */
3157
+ 'cssicorn/prefer-relative-colors'?: Linter.RuleEntry<[]>;
3012
3158
  /**
3013
3159
  * Prefer short hexadecimal color notation.
3014
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/prefer-short-hex-color.md
3160
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/prefer-short-hex-color.md
3015
3161
  */
3016
3162
  'cssicorn/prefer-short-hex-color'?: Linter.RuleEntry<[]>;
3163
+ /**
3164
+ * Require motion effects inside `prefers-reduced-motion: no-preference` media queries.
3165
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/require-prefers-reduced-motion.md
3166
+ */
3167
+ 'cssicorn/require-prefers-reduced-motion'?: Linter.RuleEntry<[]>;
3017
3168
  /**
3018
3169
  * Require descriptors in CSS `@property` rules.
3019
- * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/require-property-descriptors.md
3170
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/require-property-descriptors.md
3020
3171
  */
3021
3172
  'cssicorn/require-property-descriptors'?: Linter.RuleEntry<[]>;
3173
+ /**
3174
+ * Require a positive scoping boundary for every selector.
3175
+ * @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.2.0/docs/rules/require-selector-scope.md
3176
+ */
3177
+ 'cssicorn/require-selector-scope'?: Linter.RuleEntry<[]>;
3022
3178
  /**
3023
3179
  * Enforce consistent brace style for all control statements
3024
3180
  * @see https://eslint.org/docs/latest/rules/curly
@@ -6470,1992 +6626,2002 @@ export interface ESLintSchema {
6470
6626
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
6471
6627
  /**
6472
6628
  * Prefer better DOM traversal APIs.
6473
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/better-dom-traversing.md
6629
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/better-dom-traversing.md
6474
6630
  */
6475
6631
  'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
6476
6632
  /**
6477
6633
  * Removed. Prefer `eslint-plugin-regexp`
6478
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#better-regex
6634
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#better-regex
6479
6635
  * @deprecated
6480
6636
  */
6481
6637
  'unicorn/better-regex'?: Linter.RuleEntry<[]>;
6482
6638
  /**
6483
6639
  * Enforce a specific parameter name in catch clauses.
6484
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/catch-error-name.md
6640
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/catch-error-name.md
6485
6641
  */
6486
6642
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
6487
6643
  /**
6488
6644
  * Enforce consistent class references in static methods.
6489
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/class-reference-in-static-methods.md
6645
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/class-reference-in-static-methods.md
6490
6646
  */
6491
6647
  'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
6492
6648
  /**
6493
- * Enforce consistent spacing before and after commas in JSON.
6494
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/comma-spacing.md
6649
+ * Enforce consistent spacing before and after commas in JSON and SOML.
6650
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/comma-spacing.md
6495
6651
  */
6496
6652
  'unicorn/comma-spacing'?: Linter.RuleEntry<[]>;
6497
6653
  /**
6498
6654
  * Enforce better comment content.
6499
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/comment-content.md
6655
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/comment-content.md
6500
6656
  */
6501
6657
  'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
6502
6658
  /**
6503
6659
  * Enforce a consistent return style for multiline arrow function bodies.
6504
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-arrow-return-style.md
6660
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-arrow-return-style.md
6505
6661
  */
6506
6662
  'unicorn/consistent-arrow-return-style'?: Linter.RuleEntry<[]>;
6507
6663
  /**
6508
6664
  * Enforce consistent assertion style with `node:assert`.
6509
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-assert.md
6665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-assert.md
6510
6666
  */
6511
6667
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
6512
6668
  /**
6513
6669
  * Enforce consistent naming for boolean names.
6514
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-boolean-name.md
6670
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-boolean-name.md
6515
6671
  */
6516
6672
  'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
6517
6673
  /**
6518
6674
  * Enforce consistent class member order.
6519
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-class-member-order.md
6675
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-class-member-order.md
6520
6676
  */
6521
6677
  'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
6522
6678
  /**
6523
6679
  * Enforce consistent spelling of compound words in identifiers.
6524
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-compound-words.md
6680
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-compound-words.md
6525
6681
  */
6526
6682
  'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
6527
6683
  /**
6528
6684
  * Enforce consistent conditional object spread style.
6529
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-conditional-object-spread.md
6685
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-conditional-object-spread.md
6530
6686
  */
6531
6687
  'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
6532
6688
  /**
6533
6689
  * Prefer passing `Date` directly to the constructor when cloning.
6534
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-date-clone.md
6690
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-date-clone.md
6535
6691
  */
6536
6692
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
6537
6693
  /**
6538
6694
  * Use destructured variables over properties.
6539
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-destructuring.md
6695
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-destructuring.md
6540
6696
  */
6541
6697
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
6542
6698
  /**
6543
6699
  * Prefer consistent types when spreading a ternary in an array literal.
6544
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-empty-array-spread.md
6700
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-empty-array-spread.md
6545
6701
  */
6546
6702
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
6547
6703
  /**
6548
6704
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
6549
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-existence-index-check.md
6705
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-existence-index-check.md
6550
6706
  */
6551
6707
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
6552
6708
  /**
6553
6709
  * Enforce consistent decorator position on exported classes.
6554
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-export-decorator-position.md
6710
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-export-decorator-position.md
6555
6711
  */
6556
6712
  'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
6557
6713
  /**
6558
6714
  * Move function definitions to the highest possible scope.
6559
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-function-scoping.md
6715
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-function-scoping.md
6560
6716
  */
6561
6717
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
6562
6718
  /**
6563
6719
  * Enforce function syntax by role.
6564
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-function-style.md
6720
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-function-style.md
6565
6721
  */
6566
6722
  'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
6567
6723
  /**
6568
6724
  * Enforce consistent JSON file reads before `JSON.parse()`.
6569
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-json-file-read.md
6725
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-json-file-read.md
6570
6726
  */
6571
6727
  'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
6572
6728
  /**
6573
6729
  * Enforce consistent optional chaining for same-base member access.
6574
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-optional-chaining.md
6730
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-optional-chaining.md
6575
6731
  */
6576
6732
  'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
6577
6733
  /**
6578
6734
  * Enforce consistent style for escaping `${` in template literals.
6579
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-template-literal-escape.md
6735
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-template-literal-escape.md
6580
6736
  */
6581
6737
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
6582
6738
  /**
6583
6739
  * Enforce consistent labels on tuple type elements.
6584
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-tuple-labels.md
6740
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/consistent-tuple-labels.md
6585
6741
  */
6586
6742
  'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
6587
6743
  /**
6588
6744
  * Enforce correct `Error` subclassing.
6589
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/custom-error-definition.md
6745
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/custom-error-definition.md
6590
6746
  */
6591
6747
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
6592
6748
  /**
6593
6749
  * Enforce consistent default export declarations.
6594
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/default-export-style.md
6750
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/default-export-style.md
6595
6751
  */
6596
6752
  'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
6597
6753
  /**
6598
6754
  * Enforce consistent style for DOM element dataset access.
6599
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/dom-node-dataset.md
6755
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/dom-node-dataset.md
6600
6756
  */
6601
6757
  'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
6602
6758
  /**
6603
6759
  * Enforce no spaces between braces.
6604
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/empty-brace-spaces.md
6760
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/empty-brace-spaces.md
6605
6761
  */
6606
6762
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
6607
6763
  /**
6608
6764
  * Enforce passing a `message` value when creating a built-in error.
6609
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/error-message.md
6765
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/error-message.md
6610
6766
  */
6611
6767
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
6612
6768
  /**
6613
6769
  * Require escape sequences to use uppercase or lowercase values.
6614
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/escape-case.md
6770
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/escape-case.md
6615
6771
  */
6616
6772
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
6617
6773
  /**
6618
6774
  * Add expiration conditions to TODO comments.
6619
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/expiring-todo-comments.md
6775
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/expiring-todo-comments.md
6620
6776
  */
6621
6777
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
6622
6778
  /**
6623
6779
  * Enforce explicitly comparing the `length` or `size` property of a value.
6624
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/explicit-length-check.md
6780
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/explicit-length-check.md
6625
6781
  */
6626
6782
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
6627
6783
  /**
6628
6784
  * Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
6629
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/explicit-timer-delay.md
6785
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/explicit-timer-delay.md
6630
6786
  */
6631
6787
  'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
6632
6788
  /**
6633
6789
  * Enforce a case style for filenames and directory names.
6634
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/filename-case.md
6790
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/filename-case.md
6635
6791
  */
6636
6792
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
6637
6793
  /**
6638
6794
  * Require identifiers to match a specified regular expression.
6639
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/id-match.md
6795
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/id-match.md
6640
6796
  */
6641
6797
  'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
6642
6798
  /**
6643
6799
  * Enforce specific import styles per module.
6644
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/import-style.md
6800
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/import-style.md
6645
6801
  */
6646
6802
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
6647
6803
  /**
6648
6804
  * Enforce consistent indentation in JSON and CSS.
6649
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/indent.md
6805
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/indent.md
6650
6806
  */
6651
6807
  'unicorn/indent'?: Linter.RuleEntry<UnicornIndent>;
6652
6808
  /**
6653
6809
  * Prevent usage of variables from outside the scope of isolated functions.
6654
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/isolated-functions.md
6810
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/isolated-functions.md
6655
6811
  */
6656
6812
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
6657
6813
  /**
6658
6814
  * Enforce a consistent style for optional loop sources.
6659
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/iteration-fallback-style.md
6815
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/iteration-fallback-style.md
6660
6816
  */
6661
6817
  'unicorn/iteration-fallback-style'?: Linter.RuleEntry<UnicornIterationFallbackStyle>;
6662
6818
  /**
6663
6819
  * Enforce a case style for data keys.
6664
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/key-name-casing.md
6820
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/key-name-casing.md
6665
6821
  */
6666
6822
  'unicorn/key-name-casing'?: Linter.RuleEntry<UnicornKeyNameCasing>;
6667
6823
  /**
6668
6824
  * Require or disallow logical assignment operator shorthand
6669
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/logical-assignment-operators.md
6825
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/logical-assignment-operators.md
6670
6826
  */
6671
6827
  'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
6672
6828
  /**
6673
6829
  * Limit the depth of nested calls.
6674
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/max-nested-calls.md
6830
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/max-nested-calls.md
6675
6831
  */
6676
6832
  'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
6677
6833
  /**
6678
6834
  * Enforce replacements for variable, property, and filenames.
6679
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/name-replacements.md
6835
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/name-replacements.md
6680
6836
  */
6681
6837
  'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
6682
6838
  /**
6683
6839
  * Enforce correct use of `new` for builtin constructors.
6684
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/new-for-builtins.md
6840
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/new-for-builtins.md
6685
6841
  */
6686
6842
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
6687
6843
  /**
6688
6844
  * Enforce specifying rules to disable in `eslint-disable` comments.
6689
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-abusive-eslint-disable.md
6845
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-abusive-eslint-disable.md
6690
6846
  */
6691
6847
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
6692
6848
  /**
6693
6849
  * Disallow recursive access to `this` within getters and setters.
6694
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-accessor-recursion.md
6850
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-accessor-recursion.md
6695
6851
  */
6696
6852
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
6697
6853
  /**
6698
6854
  * Disallow bitwise operators where a logical operator was likely intended.
6699
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-accidental-bitwise-operator.md
6855
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-accidental-bitwise-operator.md
6700
6856
  */
6701
6857
  'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
6702
6858
  /**
6703
6859
  * Disallow anonymous functions and classes as the default export.
6704
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-anonymous-default-export.md
6860
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-anonymous-default-export.md
6705
6861
  */
6706
6862
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
6707
6863
  /**
6708
6864
  * Prevent passing a function reference directly to iterator methods.
6709
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-callback-reference.md
6865
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-callback-reference.md
6710
6866
  */
6711
6867
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
6712
6868
  /**
6713
6869
  * Disallow array accumulation with `Array#concat()` in loops.
6714
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-concat-in-loop.md
6870
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-concat-in-loop.md
6715
6871
  */
6716
6872
  'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
6717
6873
  /**
6718
6874
  * Disallow using reference values as `Array#fill()` values.
6719
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-fill-with-reference-type.md
6875
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-fill-with-reference-type.md
6720
6876
  */
6721
6877
  'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
6722
6878
  /**
6723
6879
  * Disallow `.fill()` after `Array.from({length: …})`.
6724
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-from-fill.md
6880
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-from-fill.md
6725
6881
  */
6726
6882
  'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
6727
6883
  /**
6728
6884
  * Disallow front-of-array mutation.
6729
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-front-mutation.md
6885
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-front-mutation.md
6730
6886
  */
6731
6887
  'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
6732
6888
  /**
6733
6889
  * Disallow using the `this` argument in array methods.
6734
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-method-this-argument.md
6890
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-method-this-argument.md
6735
6891
  */
6736
6892
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
6737
6893
  /**
6738
6894
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
6739
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
6895
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
6740
6896
  * @deprecated
6741
6897
  */
6742
6898
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
6743
6899
  /**
6744
6900
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
6745
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-reduce.md
6901
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-reduce.md
6746
6902
  */
6747
6903
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
6748
6904
  /**
6749
6905
  * Prefer `Array#toReversed()` over `Array#reverse()`.
6750
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-reverse.md
6906
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-reverse.md
6751
6907
  */
6752
6908
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
6753
6909
  /**
6754
6910
  * Prefer `Array#toSorted()` over `Array#sort()`.
6755
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-sort.md
6911
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-sort.md
6756
6912
  */
6757
6913
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
6758
6914
  /**
6759
6915
  * Disallow sorting arrays to get the minimum or maximum value.
6760
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-sort-for-min-max.md
6916
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-sort-for-min-max.md
6761
6917
  */
6762
6918
  'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
6763
6919
  /**
6764
6920
  * Prefer `Array#toSpliced()` over `Array#splice()`.
6765
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-splice.md
6921
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-array-splice.md
6766
6922
  */
6767
6923
  'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
6768
6924
  /**
6769
- * Disallow asterisk prefixes in multiline comments.
6770
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
6925
+ * Disallow asterisk prefixes and shared indentation in multiline comments.
6926
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
6771
6927
  */
6772
6928
  'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
6773
6929
  /**
6774
6930
  * Disallow asynchronous callbacks in synchronous iterator helpers.
6775
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-async-iterator-callback.md
6931
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-async-iterator-callback.md
6776
6932
  */
6777
6933
  'unicorn/no-async-iterator-callback'?: Linter.RuleEntry<[]>;
6778
6934
  /**
6779
6935
  * Disallow async functions as `Promise#finally()` callbacks.
6780
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-async-promise-finally.md
6936
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-async-promise-finally.md
6781
6937
  */
6782
6938
  'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
6783
6939
  /**
6784
6940
  * Disallow member access from await expression.
6785
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-await-expression-member.md
6941
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-await-expression-member.md
6786
6942
  */
6787
6943
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
6788
6944
  /**
6789
6945
  * Disallow using `await` in `Promise` method parameters.
6790
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-await-in-promise-methods.md
6946
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-await-in-promise-methods.md
6791
6947
  */
6792
6948
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
6793
6949
  /**
6794
6950
  * Disallow barrel files.
6795
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-barrel-files.md
6951
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-barrel-files.md
6796
6952
  */
6797
6953
  'unicorn/no-barrel-files'?: Linter.RuleEntry<[]>;
6798
6954
  /**
6799
6955
  * Disallow unnecessary `Blob` to `File` conversion.
6800
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-blob-to-file.md
6956
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-blob-to-file.md
6801
6957
  */
6802
6958
  'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
6803
6959
  /**
6804
6960
  * Disallow boolean-returning sort comparators.
6805
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-boolean-sort-comparator.md
6961
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-boolean-sort-comparator.md
6806
6962
  */
6807
6963
  'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
6808
6964
  /**
6809
6965
  * Disallow `break` and optionally `continue` in nested loops and switches inside loops.
6810
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-break-in-nested-loop.md
6966
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-break-in-nested-loop.md
6811
6967
  */
6812
6968
  'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<UnicornNoBreakInNestedLoop>;
6813
6969
  /**
6814
6970
  * Prefer drawing canvases directly instead of converting them to images.
6815
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-canvas-to-image.md
6971
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-canvas-to-image.md
6816
6972
  */
6817
6973
  'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
6818
6974
  /**
6819
6975
  * Disallow chained comparisons such as `a < b < c`.
6820
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-chained-comparison.md
6976
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-chained-comparison.md
6821
6977
  */
6822
6978
  'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
6823
6979
  /**
6824
6980
  * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
6825
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-collection-bracket-access.md
6981
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-collection-bracket-access.md
6826
6982
  */
6827
6983
  'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
6828
6984
  /**
6829
6985
  * Disallow dynamic object property existence checks.
6830
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-computed-property-existence-check.md
6986
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-computed-property-existence-check.md
6831
6987
  */
6832
6988
  'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
6833
6989
  /**
6834
6990
  * Disallow conflicting CSS query and HTML form constraints.
6835
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-conflicting-constraints.md
6991
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-conflicting-constraints.md
6836
6992
  */
6837
6993
  'unicorn/no-conflicting-constraints'?: Linter.RuleEntry<[]>;
6838
6994
  /**
6839
6995
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
6840
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-confusing-array-splice.md
6996
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-confusing-array-splice.md
6841
6997
  */
6842
6998
  'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
6843
6999
  /**
6844
7000
  * Disallow confusing uses of `Array#with()`.
6845
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-confusing-array-with.md
7001
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-confusing-array-with.md
6846
7002
  */
6847
7003
  'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
6848
7004
  /**
6849
7005
  * Do not use leading/trailing space between `console.log` parameters.
6850
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-console-spaces.md
7006
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-console-spaces.md
6851
7007
  */
6852
7008
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
6853
7009
  /**
6854
7010
  * Disallow arithmetic and bitwise operations that always evaluate to `0`.
6855
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-constant-zero-expression.md
7011
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-constant-zero-expression.md
6856
7012
  */
6857
7013
  'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
6858
7014
  /**
6859
7015
  * Disallow declarations before conditional early exits when they are only used after the exit.
6860
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-declarations-before-early-exit.md
7016
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-declarations-before-early-exit.md
6861
7017
  */
6862
7018
  'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
6863
7019
  /**
6864
7020
  * Moved to `eslint-cssicorn` as `cssicorn/no-deprecated-features`.
6865
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-deprecated-css-features
7021
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-deprecated-css-features
6866
7022
  * @deprecated
6867
7023
  */
6868
7024
  'unicorn/no-deprecated-css-features'?: Linter.RuleEntry<[]>;
6869
7025
  /**
6870
7026
  * Do not use `document.cookie` directly.
6871
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-document-cookie.md
7027
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-document-cookie.md
6872
7028
  */
6873
7029
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
6874
7030
  /**
6875
7031
  * Disallow two comparisons of the same operands that can be combined into one.
6876
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-double-comparison.md
7032
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-double-comparison.md
6877
7033
  */
6878
7034
  'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
6879
7035
  /**
6880
7036
  * Moved to `eslint-cssicorn` as `cssicorn/no-duplicate-selectors`.
6881
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-css-selectors
7037
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-css-selectors
6882
7038
  * @deprecated
6883
7039
  */
6884
7040
  'unicorn/no-duplicate-css-selectors'?: Linter.RuleEntry<[]>;
6885
7041
  /**
6886
7042
  * Moved to `eslint-cssicorn` as `cssicorn/no-duplicate-font-family-names`.
6887
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-font-family-names
7043
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-font-family-names
6888
7044
  * @deprecated
6889
7045
  */
6890
7046
  'unicorn/no-duplicate-font-family-names'?: Linter.RuleEntry<[]>;
6891
7047
  /**
6892
7048
  * Disallow duplicate adjacent branches in if chains.
6893
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-if-branches.md
7049
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-duplicate-if-branches.md
6894
7050
  */
6895
7051
  'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
6896
7052
  /**
6897
7053
  * Disallow adjacent duplicate operands in logical expressions.
6898
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-logical-operands.md
7054
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-duplicate-logical-operands.md
6899
7055
  */
6900
7056
  'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
6901
7057
  /**
6902
7058
  * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
6903
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-loops.md
7059
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-duplicate-loops.md
6904
7060
  */
6905
7061
  'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
6906
7062
  /**
6907
7063
  * Disallow duplicate values in `Set` constructor array literals.
6908
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-set-values.md
7064
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-duplicate-set-values.md
6909
7065
  */
6910
7066
  'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
6911
7067
  /**
6912
7068
  * Disallow empty files.
6913
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-empty-file.md
7069
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-empty-file.md
6914
7070
  */
6915
7071
  'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
6916
7072
  /**
6917
7073
  * Disallow empty link text in Markdown.
6918
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-empty-link-text.md
7074
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-empty-link-text.md
6919
7075
  */
6920
7076
  'unicorn/no-empty-link-text'?: Linter.RuleEntry<[]>;
6921
7077
  /**
6922
7078
  * Disallow assigning to built-in error properties.
6923
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-error-property-assignment.md
7079
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-error-property-assignment.md
6924
7080
  */
6925
7081
  'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
6926
7082
  /**
6927
7083
  * Disallow exports in scripts.
6928
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-exports-in-scripts.md
7084
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-exports-in-scripts.md
6929
7085
  */
6930
7086
  'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
6931
7087
  /**
6932
7088
  * Prefer `for…of` over the `forEach` method.
6933
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-for-each.md
7089
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-for-each.md
6934
7090
  */
6935
7091
  'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
6936
7092
  /**
6937
7093
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
6938
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-for-loop.md
7094
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-for-loop.md
6939
7095
  */
6940
7096
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
6941
7097
  /**
6942
7098
  * Disallow assigning properties on the global object.
6943
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-global-object-property-assignment.md
7099
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-global-object-property-assignment.md
6944
7100
  */
6945
7101
  'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
6946
7102
  /**
6947
7103
  * Replaced by `unicorn/prefer-literal-ascii` and `unicorn/prefer-unicode-code-point-escapes`, which cover more cases.
6948
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
7104
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
6949
7105
  * @deprecated
6950
7106
  */
6951
7107
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
6952
7108
  /**
6953
- * Disallow immediate mutation after variable assignment.
6954
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-immediate-mutation.md
7109
+ * Disallow immediate mutation after assignment and initialization immediately after declaration.
7110
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-immediate-mutation.md
6955
7111
  */
6956
7112
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<UnicornNoImmediateMutation>;
6957
7113
  /**
6958
7114
  * Disallow impossible comparisons against `.length` or `.size`.
6959
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-impossible-length-comparison.md
7115
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-impossible-length-comparison.md
6960
7116
  */
6961
7117
  'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
6962
7118
  /**
6963
7119
  * Disallow class accessors that hide an inherited getter or setter.
6964
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-incomplete-accessor-override.md
7120
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-incomplete-accessor-override.md
6965
7121
  */
6966
7122
  'unicorn/no-incomplete-accessor-override'?: Linter.RuleEntry<[]>;
6967
7123
  /**
6968
7124
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
6969
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-incorrect-query-selector.md
7125
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-incorrect-query-selector.md
6970
7126
  */
6971
7127
  'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
6972
7128
  /**
6973
7129
  * Disallow incorrect template literal interpolation syntax.
6974
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-incorrect-template-string-interpolation.md
7130
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-incorrect-template-string-interpolation.md
6975
7131
  */
6976
7132
  'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
6977
7133
  /**
6978
7134
  * Disallow ineffective CSP directives in `<meta>` elements.
6979
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-ineffective-csp-directives.md
7135
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-ineffective-csp-directives.md
6980
7136
  */
6981
7137
  'unicorn/no-ineffective-csp-directives'?: Linter.RuleEntry<[]>;
6982
7138
  /**
6983
7139
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
6984
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
7140
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
6985
7141
  * @deprecated
6986
7142
  */
6987
7143
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
6988
7144
  /**
6989
7145
  * Disallow `instanceof` with built-in objects
6990
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-instanceof-builtins.md
7146
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-instanceof-builtins.md
6991
7147
  */
6992
7148
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
6993
7149
  /**
6994
7150
  * Disallow calling functions and constructors with an invalid number of arguments.
6995
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-argument-count.md
7151
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-argument-count.md
6996
7152
  */
6997
7153
  'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
6998
7154
  /**
6999
7155
  * Disallow invalid values for HTML boolean attributes.
7000
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-boolean-attribute-value.md
7156
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-boolean-attribute-value.md
7001
7157
  */
7002
7158
  'unicorn/no-invalid-boolean-attribute-value'?: Linter.RuleEntry<[]>;
7003
7159
  /**
7004
7160
  * Disallow comparing a single character from a string to a multi-character string.
7005
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-character-comparison.md
7161
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-character-comparison.md
7006
7162
  */
7007
7163
  'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
7008
7164
  /**
7009
7165
  * Disallow invalid DOM tokens.
7010
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-dom-token.md
7166
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-dom-token.md
7011
7167
  */
7012
7168
  'unicorn/no-invalid-dom-token'?: Linter.RuleEntry<[]>;
7013
7169
  /**
7014
7170
  * Disallow invalid options in `fetch()` and `new Request()`.
7015
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-fetch-options.md
7171
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-fetch-options.md
7016
7172
  */
7017
7173
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
7018
7174
  /**
7019
7175
  * Disallow invalid `accept` values on file inputs.
7020
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-file-input-accept.md
7176
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-file-input-accept.md
7021
7177
  */
7022
7178
  'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
7023
7179
  /**
7024
7180
  * Disallow invalid subresource integrity metadata.
7025
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-integrity.md
7181
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-integrity.md
7026
7182
  */
7027
7183
  'unicorn/no-invalid-integrity'?: Linter.RuleEntry<[]>;
7028
7184
  /**
7029
7185
  * Disallow invalid or ignored Intl options.
7030
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-intl-options.md
7186
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-intl-options.md
7031
7187
  */
7032
7188
  'unicorn/no-invalid-intl-options'?: Linter.RuleEntry<[]>;
7033
7189
  /**
7034
7190
  * Moved to `eslint-cssicorn` as `cssicorn/no-invalid-media-features`.
7035
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-invalid-media-features
7191
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-invalid-media-features
7036
7192
  * @deprecated
7037
7193
  */
7038
7194
  'unicorn/no-invalid-media-features'?: Linter.RuleEntry<[]>;
7039
7195
  /**
7040
7196
  * Disallow invalid property descriptors.
7041
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-property-descriptor.md
7197
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-property-descriptor.md
7042
7198
  */
7043
7199
  'unicorn/no-invalid-property-descriptor'?: Linter.RuleEntry<[]>;
7044
7200
  /**
7045
7201
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
7046
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-remove-event-listener.md
7202
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-remove-event-listener.md
7047
7203
  */
7048
7204
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
7049
7205
  /**
7050
7206
  * Disallow invalid options in `new Response()`, `Response.json()`, and `Response.redirect()`.
7051
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-response-options.md
7207
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-response-options.md
7052
7208
  */
7053
7209
  'unicorn/no-invalid-response-options'?: Linter.RuleEntry<[]>;
7054
7210
  /**
7055
7211
  * Disallow invalid arguments to `CSSStyleDeclaration#setProperty()`.
7056
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-style-set-property.md
7212
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-style-set-property.md
7057
7213
  */
7058
7214
  'unicorn/no-invalid-style-set-property'?: Linter.RuleEntry<[]>;
7059
7215
  /**
7060
7216
  * Disallow statically known invalid Temporal arithmetic.
7061
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-temporal-arithmetic.md
7217
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-temporal-arithmetic.md
7062
7218
  */
7063
7219
  'unicorn/no-invalid-temporal-arithmetic'?: Linter.RuleEntry<[]>;
7064
7220
  /**
7065
7221
  * Disallow invalid protocol strings in comparisons with `URL#protocol`.
7066
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-url-protocol-comparison.md
7222
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-url-protocol-comparison.md
7067
7223
  */
7068
7224
  'unicorn/no-invalid-url-protocol-comparison'?: Linter.RuleEntry<[]>;
7069
7225
  /**
7070
7226
  * Disallow invalid implementations of well-known symbol methods.
7071
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
7227
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
7072
7228
  */
7073
7229
  'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
7074
7230
  /**
7075
7231
  * Disallow `javascript:` URLs in Markdown.
7076
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-javascript-url.md
7232
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-javascript-url.md
7077
7233
  */
7078
7234
  'unicorn/no-javascript-url'?: Linter.RuleEntry<[]>;
7079
7235
  /**
7080
7236
  * Disallow identifiers starting with `new` or `class`.
7081
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-keyword-prefix.md
7237
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-keyword-prefix.md
7082
7238
  */
7083
7239
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
7084
7240
  /**
7085
7241
  * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
7086
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-late-current-target-access.md
7242
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-late-current-target-access.md
7087
7243
  */
7088
7244
  'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
7089
7245
  /**
7090
7246
  * Disallow event-control method calls after the synchronous event dispatch has finished.
7091
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-late-event-control.md
7247
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-late-event-control.md
7092
7248
  */
7093
7249
  'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
7094
7250
  /**
7095
7251
  * Disallow empty lines at the beginning of a file.
7096
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-leading-empty-lines.md
7252
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-leading-empty-lines.md
7097
7253
  */
7098
7254
  'unicorn/no-leading-empty-lines'?: Linter.RuleEntry<[]>;
7099
7255
  /**
7100
7256
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
7101
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
7257
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
7102
7258
  * @deprecated
7103
7259
  */
7104
7260
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
7105
7261
  /**
7106
7262
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
7107
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-lonely-if.md
7263
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-lonely-if.md
7108
7264
  */
7109
7265
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
7110
7266
  /**
7111
7267
  * Disallow mutating a loop iterable during iteration.
7112
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-loop-iterable-mutation.md
7268
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-loop-iterable-mutation.md
7113
7269
  */
7114
7270
  'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
7115
7271
  /**
7116
7272
  * Disallow numeric literals that lose precision when represented as IEEE 754 binary64 values.
7117
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-loss-of-precision.md
7273
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-loss-of-precision.md
7118
7274
  */
7119
7275
  'unicorn/no-loss-of-precision'?: Linter.RuleEntry<[]>;
7120
7276
  /**
7121
7277
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
7122
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-magic-array-flat-depth.md
7278
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-magic-array-flat-depth.md
7123
7279
  */
7124
7280
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
7125
7281
  /**
7126
7282
  * Disallow manually wrapped comments.
7127
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-manually-wrapped-comments.md
7283
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-manually-wrapped-comments.md
7128
7284
  */
7129
7285
  'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
7130
7286
  /**
7131
7287
  * Disallow checking a Map key before accessing a different key.
7132
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-mismatched-map-key.md
7288
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-mismatched-map-key.md
7133
7289
  */
7134
7290
  'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
7135
7291
  /**
7136
7292
  * Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
7137
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-misrefactored-assignment.md
7293
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-misrefactored-assignment.md
7138
7294
  */
7139
7295
  'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
7140
7296
  /**
7141
7297
  * Disallow references to missing local resources.
7142
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-missing-local-resource.md
7298
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-missing-local-resource.md
7143
7299
  */
7144
7300
  'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>;
7145
7301
  /**
7146
7302
  * Disallow calling Promise executor resolver functions more than once on the same execution path.
7147
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-multiple-promise-resolver-calls.md
7303
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-multiple-promise-resolver-calls.md
7148
7304
  */
7149
7305
  'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>;
7150
7306
  /**
7151
7307
  * Disallow named usage of default import and export.
7152
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-named-default.md
7308
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-named-default.md
7153
7309
  */
7154
7310
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
7155
7311
  /**
7156
7312
  * Disallow negated array predicate calls.
7157
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negated-array-predicate.md
7313
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-negated-array-predicate.md
7158
7314
  */
7159
7315
  'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
7160
7316
  /**
7161
7317
  * Disallow negated comparisons.
7162
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negated-comparison.md
7318
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-negated-comparison.md
7163
7319
  */
7164
7320
  'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
7165
7321
  /**
7166
7322
  * Disallow negated conditions.
7167
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negated-condition.md
7323
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-negated-condition.md
7168
7324
  */
7169
7325
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
7170
7326
  /**
7171
7327
  * Disallow negated expression in equality check.
7172
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negation-in-equality-check.md
7328
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-negation-in-equality-check.md
7173
7329
  */
7174
7330
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
7175
7331
  /**
7176
7332
  * Disallow nested ternary expressions.
7177
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-nested-ternary.md
7333
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-nested-ternary.md
7178
7334
  */
7179
7335
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
7180
7336
  /**
7181
7337
  * Moved to `eslint-cssicorn` as `cssicorn/no-nesting-with-mixed-specificity`.
7182
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-nesting-with-mixed-specificity
7338
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-nesting-with-mixed-specificity
7183
7339
  * @deprecated
7184
7340
  */
7185
7341
  'unicorn/no-nesting-with-mixed-specificity'?: Linter.RuleEntry<[]>;
7186
7342
  /**
7187
7343
  * Disallow `new Array()`.
7188
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-new-array.md
7344
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-new-array.md
7189
7345
  */
7190
7346
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
7191
7347
  /**
7192
7348
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
7193
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-new-buffer.md
7349
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-new-buffer.md
7194
7350
  */
7195
7351
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
7196
7352
  /**
7197
7353
  * Disallow non-function values with function-style verb prefixes.
7198
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-non-function-verb-prefix.md
7354
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-non-function-verb-prefix.md
7199
7355
  */
7200
7356
  'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
7201
7357
  /**
7202
7358
  * Disallow non-standard properties on built-in objects.
7203
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-nonstandard-builtin-properties.md
7359
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-nonstandard-builtin-properties.md
7204
7360
  */
7205
7361
  'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
7206
7362
  /**
7207
7363
  * Disallow the use of the `null` literal.
7208
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-null.md
7364
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-null.md
7209
7365
  */
7210
7366
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
7211
7367
  /**
7212
7368
  * Disallow the use of objects as default parameters.
7213
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-object-as-default-parameter.md
7369
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-object-as-default-parameter.md
7214
7370
  */
7215
7371
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
7216
7372
  /**
7217
7373
  * Disallow `Object` methods with `Map` or `Set`.
7218
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-object-methods-with-collections.md
7374
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-object-methods-with-collections.md
7219
7375
  */
7220
7376
  'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
7221
7377
  /**
7222
7378
  * Disallow optional chaining on undeclared variables.
7223
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
7379
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
7224
7380
  */
7225
7381
  'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
7226
7382
  /**
7227
7383
  * Disallow ineffective `preventDefault()` calls in passive event listeners.
7228
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-prevent-default-in-passive-listener.md
7384
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-prevent-default-in-passive-listener.md
7229
7385
  */
7230
7386
  'unicorn/no-prevent-default-in-passive-listener'?: Linter.RuleEntry<[]>;
7231
7387
  /**
7232
7388
  * Disallow `process.exit()`.
7233
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-process-exit.md
7389
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-process-exit.md
7234
7390
  */
7235
7391
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
7236
7392
  /**
7237
7393
  * Disallow comparisons made redundant by an equality check in the same logical AND.
7238
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-redundant-comparison.md
7394
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-redundant-comparison.md
7239
7395
  */
7240
7396
  'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
7241
7397
  /**
7242
7398
  * Moved to `eslint-cssicorn` as `cssicorn/no-redundant-nested-style-rules`.
7243
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-redundant-nested-style-rules
7399
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-redundant-nested-style-rules
7244
7400
  * @deprecated
7245
7401
  */
7246
7402
  'unicorn/no-redundant-nested-style-rules'?: Linter.RuleEntry<[]>;
7403
+ /**
7404
+ * Disallow repeating the same wrapper at every call to a function.
7405
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-repeated-call-wrappers.md
7406
+ */
7407
+ 'unicorn/no-repeated-call-wrappers'?: Linter.RuleEntry<[]>;
7247
7408
  /**
7248
7409
  * Disallow using the return value of `Array#push()` and `Array#unshift()`.
7249
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-return-array-push.md
7410
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-return-array-push.md
7250
7411
  */
7251
7412
  'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
7252
7413
  /**
7253
7414
  * Disallow selector syntax in DOM names.
7254
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-selector-as-dom-name.md
7415
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-selector-as-dom-name.md
7255
7416
  */
7256
7417
  'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
7257
7418
  /**
7258
7419
  * Disallow shorthand properties that override related longhand properties.
7259
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-shorthand-property-overrides.md
7420
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-shorthand-property-overrides.md
7260
7421
  */
7261
7422
  'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>;
7262
7423
  /**
7263
7424
  * Disallow passing single-element arrays to `Promise` methods.
7264
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-single-promise-in-promise-methods.md
7425
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-single-promise-in-promise-methods.md
7265
7426
  */
7266
7427
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
7267
7428
  /**
7268
7429
  * Disallow classes that only have static members.
7269
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-static-only-class.md
7430
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-static-only-class.md
7270
7431
  */
7271
7432
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
7272
7433
  /**
7273
7434
  * Prefer comparing values directly over subtracting and comparing to `0`.
7274
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-subtraction-comparison.md
7435
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-subtraction-comparison.md
7275
7436
  */
7276
7437
  'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
7277
7438
  /**
7278
7439
  * Disallow `then` property.
7279
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-thenable.md
7440
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-thenable.md
7280
7441
  */
7281
7442
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
7282
7443
  /**
7283
7444
  * Disallow assigning `this` to a variable.
7284
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-this-assignment.md
7445
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-this-assignment.md
7285
7446
  */
7286
7447
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
7287
7448
  /**
7288
7449
  * Disallow `this` outside of classes.
7289
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-this-outside-of-class.md
7450
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-this-outside-of-class.md
7290
7451
  */
7291
7452
  'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
7292
7453
  /**
7293
7454
  * Disallow assigning to top-level variables from inside functions.
7294
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-top-level-assignment-in-function.md
7455
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-top-level-assignment-in-function.md
7295
7456
  */
7296
7457
  'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
7297
7458
  /**
7298
7459
  * Disallow top-level side effects in exported modules.
7299
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-top-level-side-effects.md
7460
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-top-level-side-effects.md
7300
7461
  */
7301
- 'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>;
7462
+ 'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<UnicornNoTopLevelSideEffects>;
7302
7463
  /**
7303
7464
  * Disallow `all` as a transition property.
7304
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-transition-all.md
7465
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-transition-all.md
7305
7466
  */
7306
7467
  'unicorn/no-transition-all'?: Linter.RuleEntry<[]>;
7307
7468
  /**
7308
7469
  * Disallow comparing `undefined` using `typeof`.
7309
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-typeof-undefined.md
7470
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-typeof-undefined.md
7310
7471
  */
7311
7472
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
7312
7473
  /**
7313
7474
  * Disallow referencing methods without calling them.
7314
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-uncalled-method.md
7475
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-uncalled-method.md
7315
7476
  */
7316
7477
  'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
7317
7478
  /**
7318
7479
  * Require class members to be declared.
7319
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-undeclared-class-members.md
7480
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-undeclared-class-members.md
7320
7481
  */
7321
7482
  'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
7322
7483
  /**
7323
7484
  * Moved to `eslint-cssicorn` as `cssicorn/no-unknown-annotations`.
7324
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-css-annotations
7485
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-css-annotations
7325
7486
  * @deprecated
7326
7487
  */
7327
7488
  'unicorn/no-unknown-css-annotations'?: Linter.RuleEntry<[]>;
7328
7489
  /**
7329
7490
  * Moved to `eslint-cssicorn` as `cssicorn/no-unknown-pseudo-selectors`.
7330
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-pseudo-selectors
7491
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-pseudo-selectors
7331
7492
  * @deprecated
7332
7493
  */
7333
7494
  'unicorn/no-unknown-pseudo-selectors'?: Linter.RuleEntry<[]>;
7334
7495
  /**
7335
7496
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
7336
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-array-flat-depth.md
7497
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-array-flat-depth.md
7337
7498
  */
7338
7499
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
7339
7500
  /**
7340
7501
  * Disallow unnecessary use of `Array#flatMap()`.
7341
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-array-flat-map.md
7502
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-array-flat-map.md
7342
7503
  */
7343
7504
  'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
7344
7505
  /**
7345
7506
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
7346
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-array-splice-count.md
7507
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-array-splice-count.md
7347
7508
  */
7348
7509
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
7349
7510
  /**
7350
7511
  * Disallow awaiting non-promise values.
7351
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-await.md
7512
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-await.md
7352
7513
  */
7353
7514
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
7354
7515
  /**
7355
7516
  * Disallow unnecessary comparisons against boolean literals.
7356
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-boolean-comparison.md
7517
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-boolean-comparison.md
7357
7518
  */
7358
7519
  'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
7520
+ /**
7521
+ * Disallow arguments that match their parameter defaults.
7522
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-default-arguments.md
7523
+ */
7524
+ 'unicorn/no-unnecessary-default-arguments'?: Linter.RuleEntry<[]>;
7359
7525
  /**
7360
7526
  * Disallow unnecessary options in `fetch()` and `new Request()`.
7361
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-fetch-options.md
7527
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-fetch-options.md
7362
7528
  */
7363
7529
  'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
7364
7530
  /**
7365
7531
  * Disallow unnecessary `globalThis` references.
7366
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-global-this.md
7532
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-global-this.md
7367
7533
  */
7368
7534
  'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
7369
7535
  /**
7370
7536
  * Disallow unnecessary nested ternary expressions.
7371
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-nested-ternary.md
7537
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-nested-ternary.md
7372
7538
  */
7373
7539
  'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
7374
7540
  /**
7375
7541
  * Disallow parameters that receive the same value at every call.
7376
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-parameters.md
7542
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-parameters.md
7377
7543
  */
7378
7544
  'unicorn/no-unnecessary-parameters'?: Linter.RuleEntry<UnicornNoUnnecessaryParameters>;
7379
7545
  /**
7380
7546
  * Enforce the use of built-in methods instead of unnecessary polyfills.
7381
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-polyfills.md
7547
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-polyfills.md
7382
7548
  */
7383
7549
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
7384
7550
  /**
7385
7551
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
7386
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-slice-end.md
7552
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-slice-end.md
7387
7553
  */
7388
7554
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
7389
7555
  /**
7390
7556
  * Disallow `Array#splice()` when simpler alternatives exist.
7391
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-splice.md
7557
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-splice.md
7392
7558
  */
7393
7559
  'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
7394
7560
  /**
7395
7561
  * Disallow `String#trim()` before `String#startsWith()` or `String#endsWith()`.
7396
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-string-trim.md
7562
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unnecessary-string-trim.md
7397
7563
  */
7398
7564
  'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>;
7399
7565
  /**
7400
7566
  * Disallow unreadable array destructuring.
7401
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-array-destructuring.md
7567
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unreadable-array-destructuring.md
7402
7568
  */
7403
7569
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
7404
7570
  /**
7405
7571
  * Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
7406
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-for-of-expression.md
7572
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unreadable-for-of-expression.md
7407
7573
  */
7408
7574
  'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
7409
7575
  /**
7410
7576
  * Disallow unreadable IIFEs.
7411
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-iife.md
7577
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unreadable-iife.md
7412
7578
  */
7413
7579
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
7414
7580
  /**
7415
7581
  * Disallow unreadable `new` expressions.
7416
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-new-expression.md
7582
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unreadable-new-expression.md
7417
7583
  */
7418
7584
  'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
7419
7585
  /**
7420
7586
  * Disallow unreadable object destructuring.
7421
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-object-destructuring.md
7587
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unreadable-object-destructuring.md
7422
7588
  */
7423
7589
  'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
7424
7590
  /**
7425
7591
  * Prevent unsafe use of ArrayBuffer view `.buffer`.
7426
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-buffer-conversion.md
7592
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unsafe-buffer-conversion.md
7427
7593
  */
7428
7594
  'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
7429
7595
  /**
7430
7596
  * Disallow unsafe DOM HTML APIs.
7431
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-dom-html.md
7597
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unsafe-dom-html.md
7432
7598
  */
7433
7599
  'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
7434
7600
  /**
7435
7601
  * Disallow known values that JSON serialization cannot represent faithfully.
7436
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-json-serialization.md
7602
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unsafe-json-serialization.md
7437
7603
  */
7438
7604
  'unicorn/no-unsafe-json-serialization'?: Linter.RuleEntry<[]>;
7439
7605
  /**
7440
7606
  * Disallow reading `.value` from `Promise.allSettled()` results without a fulfilled status guard.
7441
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
7607
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
7442
7608
  */
7443
7609
  'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
7444
7610
  /**
7445
7611
  * Disallow unsafe values as property keys.
7446
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-property-key.md
7612
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unsafe-property-key.md
7447
7613
  */
7448
7614
  'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
7449
7615
  /**
7450
7616
  * Disallow interpolation into SQL strings passed to Node’s `node:sqlite` APIs.
7451
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
7617
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
7452
7618
  */
7453
7619
  'unicorn/no-unsafe-sqlite-interpolation'?: Linter.RuleEntry<[]>;
7454
7620
  /**
7455
7621
  * Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
7456
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-string-replacement.md
7622
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unsafe-string-replacement.md
7457
7623
  */
7458
7624
  'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
7459
7625
  /**
7460
7626
  * Moved to `eslint-cssicorn` as `cssicorn/no-unscoped-nesting-selector`.
7461
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unscoped-css-nesting-selector
7627
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-unscoped-css-nesting-selector
7462
7628
  * @deprecated
7463
7629
  */
7464
7630
  'unicorn/no-unscoped-css-nesting-selector'?: Linter.RuleEntry<[]>;
7465
7631
  /**
7466
7632
  * Replaced by `unicorn/no-unused-builtin-method-return` which covers more cases.
7467
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unused-array-method-return
7633
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#no-unused-array-method-return
7468
7634
  * @deprecated
7469
7635
  */
7470
7636
  'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
7471
7637
  /**
7472
7638
  * Disallow ignoring the return value of selected built-in methods.
7473
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unused-builtin-method-return.md
7639
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unused-builtin-method-return.md
7474
7640
  */
7475
7641
  'unicorn/no-unused-builtin-method-return'?: Linter.RuleEntry<[]>;
7476
7642
  /**
7477
7643
  * Disallow discarding lazy iterator helpers.
7478
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unused-iterator-helper.md
7644
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unused-iterator-helper.md
7479
7645
  */
7480
7646
  'unicorn/no-unused-iterator-helper'?: Linter.RuleEntry<[]>;
7481
7647
  /**
7482
7648
  * Disallow unused object properties.
7483
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unused-properties.md
7649
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-unused-properties.md
7484
7650
  */
7485
7651
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
7486
7652
  /**
7487
7653
  * Disallow passing full URLs to `URLSearchParams`.
7488
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-url-in-search-params.md
7654
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-url-in-search-params.md
7489
7655
  */
7490
7656
  'unicorn/no-url-in-search-params'?: Linter.RuleEntry<[]>;
7491
7657
  /**
7492
7658
  * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
7493
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-boolean-cast.md
7659
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-boolean-cast.md
7494
7660
  */
7495
7661
  'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
7496
7662
  /**
7497
7663
  * Disallow useless type coercions of values that are already of the target type.
7498
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-coercion.md
7664
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-coercion.md
7499
7665
  */
7500
7666
  'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
7501
7667
  /**
7502
7668
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
7503
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-collection-argument.md
7669
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-collection-argument.md
7504
7670
  */
7505
7671
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
7506
7672
  /**
7507
7673
  * Disallow useless compound assignments such as `x += 0`.
7508
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-compound-assignment.md
7674
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-compound-assignment.md
7509
7675
  */
7510
7676
  'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
7511
7677
  /**
7512
7678
  * Disallow useless concatenation of literals.
7513
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-concat.md
7679
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-concat.md
7514
7680
  */
7515
7681
  'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
7516
7682
  /**
7517
7683
  * Disallow useless `continue` statements.
7518
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-continue.md
7684
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-continue.md
7519
7685
  */
7520
7686
  'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
7521
7687
  /**
7522
7688
  * Disallow unnecessary existence checks before deletion.
7523
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-delete-check.md
7689
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-delete-check.md
7524
7690
  */
7525
7691
  'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
7526
7692
  /**
7527
7693
  * Disallow `else` after a statement that exits.
7528
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-else.md
7694
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-else.md
7529
7695
  */
7530
7696
  'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
7531
7697
  /**
7532
7698
  * Disallow unnecessary `Error.captureStackTrace(…)`.
7533
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-error-capture-stack-trace.md
7699
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-error-capture-stack-trace.md
7534
7700
  */
7535
7701
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
7536
7702
  /**
7537
7703
  * Disallow useless fallback when spreading in object literals.
7538
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-fallback-in-spread.md
7704
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-fallback-in-spread.md
7539
7705
  */
7540
7706
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
7541
7707
  /**
7542
7708
  * Disallow unnecessary `.toArray()` on iterators.
7543
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-iterator-to-array.md
7709
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-iterator-to-array.md
7544
7710
  */
7545
7711
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
7546
7712
  /**
7547
7713
  * Disallow useless array length check.
7548
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-length-check.md
7714
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-length-check.md
7549
7715
  */
7550
7716
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
7551
7717
  /**
7552
7718
  * Disallow unnecessary operands in logical expressions involving boolean literals.
7553
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-logical-operand.md
7719
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-logical-operand.md
7554
7720
  */
7555
7721
  'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
7556
7722
  /**
7557
7723
  * Disallow useless overrides of class methods.
7558
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-override.md
7724
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-override.md
7559
7725
  */
7560
7726
  'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
7561
7727
  /**
7562
7728
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
7563
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-promise-resolve-reject.md
7729
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-promise-resolve-reject.md
7564
7730
  */
7565
7731
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
7566
7732
  /**
7567
7733
  * Disallow redundant re-exports.
7568
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-re-export.md
7734
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-re-export.md
7569
7735
  */
7570
7736
  'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>;
7571
7737
  /**
7572
7738
  * Disallow simple recursive function calls that can be replaced with a loop.
7573
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-recursion.md
7739
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-recursion.md
7574
7740
  */
7575
7741
  'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
7576
7742
  /**
7577
7743
  * Disallow unnecessary `Set` construction around `Set` methods.
7578
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-set-construction.md
7744
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-set-construction.md
7579
7745
  */
7580
7746
  'unicorn/no-useless-set-construction'?: Linter.RuleEntry<[]>;
7581
7747
  /**
7582
7748
  * Disallow unnecessary spread.
7583
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-spread.md
7749
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-spread.md
7584
7750
  */
7585
7751
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
7586
7752
  /**
7587
7753
  * Disallow useless case in switch statements.
7588
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-switch-case.md
7754
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-switch-case.md
7589
7755
  */
7590
7756
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
7591
7757
  /**
7592
7758
  * Disallow useless template literal expressions.
7593
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-template-literals.md
7759
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-template-literals.md
7594
7760
  */
7595
7761
  'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
7596
7762
  /**
7597
7763
  * Disallow useless `undefined`.
7598
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-undefined.md
7764
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-useless-undefined.md
7599
7765
  */
7600
7766
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
7601
7767
  /**
7602
7768
  * Disallow returning or exporting resources declared with `using`, including through capturing functions.
7603
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-using-resource-escape.md
7769
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-using-resource-escape.md
7604
7770
  */
7605
7771
  'unicorn/no-using-resource-escape'?: Linter.RuleEntry<[]>;
7606
7772
  /**
7607
7773
  * Disallow the bitwise XOR operator where exponentiation was likely intended.
7608
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-xor-as-exponentiation.md
7774
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-xor-as-exponentiation.md
7609
7775
  */
7610
7776
  'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
7611
7777
  /**
7612
7778
  * Require consistent decimal numbers without redundant zeros.
7613
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-zero-fractions.md
7779
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/no-zero-fractions.md
7614
7780
  */
7615
7781
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
7616
7782
  /**
7617
7783
  * Enforce proper case for numeric literals.
7618
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/number-literal-case.md
7784
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/number-literal-case.md
7619
7785
  */
7620
7786
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
7621
7787
  /**
7622
7788
  * Enforce the style of numeric separators by correctly grouping digits.
7623
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/numeric-separators-style.md
7789
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/numeric-separators-style.md
7624
7790
  */
7625
7791
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
7626
7792
  /**
7627
7793
  * Require assignment operator shorthand where possible.
7628
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/operator-assignment.md
7794
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/operator-assignment.md
7629
7795
  */
7630
7796
  'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
7631
7797
  /**
7632
7798
  * Prefer `AbortSignal.any()` over manually forwarding abort events between signals.
7633
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-abort-signal-any.md
7799
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-abort-signal-any.md
7634
7800
  */
7635
7801
  'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
7636
7802
  /**
7637
7803
  * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
7638
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-abort-signal-timeout.md
7804
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-abort-signal-timeout.md
7639
7805
  */
7640
7806
  'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
7641
7807
  /**
7642
7808
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
7643
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-add-event-listener.md
7809
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-add-event-listener.md
7644
7810
  */
7645
7811
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
7646
7812
  /**
7647
7813
  * Prefer an options object over a boolean in `.addEventListener()`.
7648
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-add-event-listener-options.md
7814
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-add-event-listener-options.md
7649
7815
  */
7650
7816
  'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
7651
7817
  /**
7652
7818
  * Prefer `AggregateError` when throwing collected errors.
7653
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-aggregate-error.md
7819
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-aggregate-error.md
7654
7820
  */
7655
7821
  'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
7656
7822
  /**
7657
7823
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
7658
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-find.md
7824
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-find.md
7659
7825
  */
7660
7826
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
7661
7827
  /**
7662
7828
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
7663
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-flat.md
7829
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-flat.md
7664
7830
  */
7665
7831
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
7666
7832
  /**
7667
7833
  * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
7668
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-flat-map.md
7834
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-flat-map.md
7669
7835
  */
7670
7836
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
7671
7837
  /**
7672
7838
  * Prefer `Array.fromAsync()` over array accumulation loops.
7673
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-from-async.md
7839
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-from-async.md
7674
7840
  */
7675
7841
  'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
7676
7842
  /**
7677
7843
  * Prefer using the `Array.from()` mapping function argument.
7678
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-from-map.md
7844
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-from-map.md
7679
7845
  */
7680
7846
  'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
7681
7847
  /**
7682
7848
  * Prefer `Array.from({length}, …)` when creating range arrays.
7683
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-from-range.md
7849
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-from-range.md
7684
7850
  */
7685
7851
  'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
7686
7852
  /**
7687
7853
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
7688
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-index-of.md
7854
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-index-of.md
7689
7855
  */
7690
7856
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
7691
7857
  /**
7692
7858
  * Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
7693
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-iterable-methods.md
7859
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-iterable-methods.md
7694
7860
  */
7695
7861
  'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
7696
7862
  /**
7697
7863
  * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
7698
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-last-methods.md
7864
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-last-methods.md
7699
7865
  */
7700
7866
  'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
7701
7867
  /**
7702
7868
  * Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
7703
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-slice.md
7869
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-slice.md
7704
7870
  */
7705
7871
  'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
7706
7872
  /**
7707
7873
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
7708
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-some.md
7874
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-array-some.md
7709
7875
  */
7710
7876
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
7711
7877
  /**
7712
7878
  * Prefer `.at()` method for index access and `String#charAt()`.
7713
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-at.md
7879
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-at.md
7714
7880
  */
7715
7881
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
7716
7882
  /**
7717
7883
  * Prefer `await` over promise chaining.
7718
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-await.md
7884
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-await.md
7719
7885
  */
7720
7886
  'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
7721
7887
  /**
7722
7888
  * Prefer `BigInt` literals over the constructor.
7723
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-bigint-literals.md
7889
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-bigint-literals.md
7724
7890
  */
7725
7891
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
7726
7892
  /**
7727
7893
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
7728
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-blob-reading-methods.md
7894
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-blob-reading-methods.md
7729
7895
  */
7730
7896
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
7731
7897
  /**
7732
7898
  * Prefer block statements over IIFEs used only for scoping.
7733
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-block-statement-over-iife.md
7899
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-block-statement-over-iife.md
7734
7900
  */
7735
7901
  'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
7736
7902
  /**
7737
7903
  * Prefer directly returning boolean expressions over `if` statements.
7738
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-boolean-return.md
7904
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-boolean-return.md
7739
7905
  */
7740
7906
  'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
7741
7907
  /**
7742
7908
  * Prefer class field declarations over `this` assignments in constructors.
7743
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-class-fields.md
7909
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-class-fields.md
7744
7910
  */
7745
7911
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
7746
7912
  /**
7747
7913
  * Prefer using `Element#classList.toggle()` to toggle class names.
7748
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-classlist-toggle.md
7914
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-classlist-toggle.md
7749
7915
  */
7750
7916
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
7751
7917
  /**
7752
7918
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
7753
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-code-point.md
7919
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-code-point.md
7754
7920
  */
7755
7921
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
7756
7922
  /**
7757
7923
  * Prefer combining consecutive guards with identical exit statements.
7758
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-combined-guards.md
7924
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-combined-guards.md
7759
7925
  */
7760
7926
  'unicorn/prefer-combined-guards'?: Linter.RuleEntry<UnicornPreferCombinedGuards>;
7761
7927
  /**
7762
7928
  * Prefer early continues over conditionals wrapping the remainder of the loop body.
7763
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-continue.md
7929
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-continue.md
7764
7930
  */
7765
7931
  'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
7766
7932
  /**
7767
7933
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
7768
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-date-now.md
7934
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-date-now.md
7769
7935
  */
7770
7936
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
7771
7937
  /**
7772
7938
  * Prefer default parameters and destructuring defaults over reassignment and fallback expressions.
7773
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-default-parameters.md
7939
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-default-parameters.md
7774
7940
  */
7775
- 'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
7941
+ 'unicorn/prefer-default-parameters'?: Linter.RuleEntry<UnicornPreferDefaultParameters>;
7776
7942
  /**
7777
7943
  * Prefer direct iteration over default iterator method calls.
7778
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-direct-iteration.md
7944
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-direct-iteration.md
7779
7945
  */
7780
7946
  'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
7781
7947
  /**
7782
7948
  * Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
7783
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dispose.md
7949
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-dispose.md
7784
7950
  */
7785
7951
  'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
7786
7952
  /**
7787
7953
  * Prefer `Element#append()` over `Node#appendChild()`.
7788
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-append.md
7954
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-dom-node-append.md
7789
7955
  */
7790
7956
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
7791
7957
  /**
7792
7958
  * Renamed to `unicorn/dom-node-dataset`.
7793
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
7959
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
7794
7960
  * @deprecated
7795
7961
  */
7796
7962
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
7797
7963
  /**
7798
7964
  * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
7799
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-html-methods.md
7965
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-dom-node-html-methods.md
7800
7966
  */
7801
7967
  'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
7802
7968
  /**
7803
7969
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
7804
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-remove.md
7970
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-dom-node-remove.md
7805
7971
  */
7806
7972
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
7807
7973
  /**
7808
7974
  * Prefer `.replaceChildren()` when replacing DOM children.
7809
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-replace-children.md
7975
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-dom-node-replace-children.md
7810
7976
  */
7811
7977
  'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
7812
7978
  /**
7813
7979
  * Prefer `.textContent` over `.innerText`.
7814
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-text-content.md
7980
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-dom-node-text-content.md
7815
7981
  */
7816
7982
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
7817
7983
  /**
7818
7984
  * Prefer early returns over conditionals wrapping the remainder of the function body.
7819
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-early-return.md
7985
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-early-return.md
7820
7986
  */
7821
7987
  'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
7822
7988
  /**
7823
7989
  * Prefer `else if` over adjacent `if` statements with related conditions.
7824
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-else-if.md
7990
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-else-if.md
7825
7991
  */
7826
7992
  'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
7827
7993
  /**
7828
7994
  * Prefer `Error.isError()` when checking for errors.
7829
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-error-is-error.md
7995
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-error-is-error.md
7830
7996
  */
7831
7997
  'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
7832
7998
  /**
7833
7999
  * Prefer escape sequences for irregular whitespace characters.
7834
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-escaped-irregular-whitespace.md
8000
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-escaped-irregular-whitespace.md
7835
8001
  */
7836
8002
  'unicorn/prefer-escaped-irregular-whitespace'?: Linter.RuleEntry<[]>;
7837
8003
  /**
7838
8004
  * Prefer `EventTarget` over `EventEmitter`.
7839
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-event-target.md
8005
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-event-target.md
7840
8006
  */
7841
8007
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
7842
8008
  /**
7843
8009
  * Moved to `eslint-cssicorn` as `cssicorn/prefer-explicit-viewport-units`.
7844
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-explicit-viewport-units
8010
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#prefer-explicit-viewport-units
7845
8011
  * @deprecated
7846
8012
  */
7847
8013
  'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<[]>;
7848
8014
  /**
7849
8015
  * Prefer `export…from` when re-exporting.
7850
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-export-from.md
8016
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-export-from.md
7851
8017
  */
7852
8018
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
7853
8019
  /**
7854
8020
  * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
7855
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-flat-math-min-max.md
8021
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-flat-math-min-max.md
7856
8022
  */
7857
8023
  'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
7858
8024
  /**
7859
8025
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
7860
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-get-or-insert-computed.md
8026
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-get-or-insert-computed.md
7861
8027
  */
7862
8028
  'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
7863
8029
  /**
7864
8030
  * Prefer global numeric constants over `Number` static properties.
7865
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-global-number-constants.md
8031
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-global-number-constants.md
7866
8032
  */
7867
8033
  'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
7868
8034
  /**
7869
8035
  * Prefer `globalThis` over `window`, `self`, and `global`.
7870
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-global-this.md
8036
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-global-this.md
7871
8037
  */
7872
8038
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
7873
8039
  /**
7874
8040
  * Prefer `Object.groupBy()` or `Map.groupBy()` over manual grouping.
7875
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-group-by.md
8041
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-group-by.md
7876
8042
  */
7877
8043
  'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
7878
8044
  /**
7879
8045
  * Prefer `.has()` when checking existence.
7880
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-has-check.md
8046
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-has-check.md
7881
8047
  */
7882
8048
  'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
7883
8049
  /**
7884
8050
  * Prefer moving code shared by all branches of an `if` statement out of the branches.
7885
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-hoisting-branch-code.md
8051
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-hoisting-branch-code.md
7886
8052
  */
7887
8053
  'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
7888
8054
  /**
7889
8055
  * Prefer HTTPS over HTTP.
7890
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-https.md
8056
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-https.md
7891
8057
  */
7892
8058
  'unicorn/prefer-https'?: Linter.RuleEntry<UnicornPreferHttps>;
7893
8059
  /**
7894
8060
  * Prefer identifiers over string literals in import and export specifiers.
7895
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
8061
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
7896
8062
  */
7897
8063
  'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
7898
8064
  /**
7899
8065
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
7900
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-import-meta-properties.md
8066
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-import-meta-properties.md
7901
8067
  */
7902
8068
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
7903
8069
  /**
7904
8070
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
7905
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-includes.md
8071
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-includes.md
7906
8072
  */
7907
8073
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
7908
8074
  /**
7909
8075
  * Prefer `.includes()` over repeated equality comparisons.
7910
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
8076
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
7911
8077
  */
7912
8078
  'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
7913
8079
  /**
7914
8080
  * Prefer passing iterables directly to constructors instead of filling empty collections.
7915
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterable-in-constructor.md
8081
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-iterable-in-constructor.md
7916
8082
  */
7917
8083
  'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
7918
8084
  /**
7919
8085
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
7920
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-concat.md
8086
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-iterator-concat.md
7921
8087
  */
7922
8088
  'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
7923
8089
  /**
7924
8090
  * Prefer iterator helpers over temporary arrays from iterators.
7925
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-helpers.md
8091
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-iterator-helpers.md
7926
8092
  */
7927
8093
  'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
7928
8094
  /**
7929
8095
  * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
7930
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-to-array.md
8096
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-iterator-to-array.md
7931
8097
  */
7932
8098
  'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
7933
8099
  /**
7934
8100
  * Prefer moving `.toArray()` to the end of iterator helper chains.
7935
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-to-array-at-end.md
8101
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-iterator-to-array-at-end.md
7936
8102
  */
7937
8103
  'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
7938
8104
  /**
7939
8105
  * Prefer `Iterator.zip()` over parallel-array indexing.
7940
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-zip.md
8106
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-iterator-zip.md
7941
8107
  */
7942
8108
  'unicorn/prefer-iterator-zip'?: Linter.RuleEntry<[]>;
7943
8109
  /**
7944
8110
  * Prefer JSON imports over reading and parsing JSON files.
7945
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-json-import.md
8111
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-json-import.md
7946
8112
  */
7947
8113
  'unicorn/prefer-json-import'?: Linter.RuleEntry<[]>;
7948
8114
  /**
7949
8115
  * Renamed to `unicorn/consistent-json-file-read`.
7950
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
8116
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
7951
8117
  * @deprecated
7952
8118
  */
7953
8119
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
7954
8120
  /**
7955
8121
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
7956
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-keyboard-event-key.md
8122
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-keyboard-event-key.md
7957
8123
  */
7958
8124
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
7959
8125
  /**
7960
8126
  * Prefer literal printable ASCII characters over escape sequences.
7961
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-literal-ascii.md
8127
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-literal-ascii.md
7962
8128
  */
7963
8129
  'unicorn/prefer-literal-ascii'?: Linter.RuleEntry<[]>;
7964
8130
  /**
7965
8131
  * Prefer `location.assign()` over assigning to `location.href`.
7966
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-location-assign.md
8132
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-location-assign.md
7967
8133
  */
7968
8134
  'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
7969
8135
  /**
7970
8136
  * Prefer using a logical operator over a ternary.
7971
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-logical-operator-over-ternary.md
8137
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-logical-operator-over-ternary.md
7972
8138
  */
7973
8139
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
7974
8140
  /**
7975
8141
  * Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
7976
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-map-from-entries.md
8142
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-map-from-entries.md
7977
8143
  */
7978
8144
  'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
7979
8145
  /**
7980
8146
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
7981
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-abs.md
8147
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-math-abs.md
7982
8148
  */
7983
8149
  'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
7984
8150
  /**
7985
8151
  * Prefer `Math` constants over their approximate numeric values.
7986
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-constants.md
8152
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-math-constants.md
7987
8153
  */
7988
8154
  'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
7989
8155
  /**
7990
8156
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
7991
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-min-max.md
8157
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-math-min-max.md
7992
8158
  */
7993
8159
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
7994
8160
  /**
7995
8161
  * Prefer `Math.trunc()` for truncating numbers.
7996
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-trunc.md
8162
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-math-trunc.md
7997
8163
  */
7998
8164
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
7999
8165
  /**
8000
8166
  * Moved to `eslint-cssicorn` as `cssicorn/prefer-media-feature-range-syntax`.
8001
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-media-feature-range-syntax
8167
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#prefer-media-feature-range-syntax
8002
8168
  * @deprecated
8003
8169
  */
8004
8170
  'unicorn/prefer-media-feature-range-syntax'?: Linter.RuleEntry<[]>;
8005
8171
  /**
8006
8172
  * Prefer moving ternaries into the minimal varying part of an expression.
8007
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-minimal-ternary.md
8173
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-minimal-ternary.md
8008
8174
  */
8009
8175
  'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
8010
8176
  /**
8011
8177
  * Prefer modern DOM APIs.
8012
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-modern-dom-apis.md
8178
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-modern-dom-apis.md
8013
8179
  */
8014
8180
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
8015
8181
  /**
8016
8182
  * Prefer modern `Math` APIs over legacy patterns.
8017
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-modern-math-apis.md
8183
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-modern-math-apis.md
8018
8184
  */
8019
8185
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
8020
8186
  /**
8021
8187
  * Prefer JavaScript modules (ESM) over CommonJS.
8022
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-module.md
8188
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-module.md
8023
8189
  */
8024
8190
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
8025
8191
  /**
8026
8192
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
8027
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-native-coercion-functions.md
8193
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-native-coercion-functions.md
8028
8194
  */
8029
8195
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
8030
8196
  /**
8031
8197
  * Prefer negative index over `.length - index` when possible.
8032
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-negative-index.md
8198
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-negative-index.md
8033
8199
  */
8034
8200
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
8035
8201
  /**
8036
8202
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
8037
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-node-protocol.md
8203
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-node-protocol.md
8038
8204
  */
8039
8205
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
8040
8206
  /**
8041
8207
  * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
8042
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-number-coercion.md
8208
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-number-coercion.md
8043
8209
  */
8044
8210
  'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
8045
8211
  /**
8046
8212
  * Prefer `Number.isSafeInteger()` over integer checks.
8047
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-number-is-safe-integer.md
8213
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-number-is-safe-integer.md
8048
8214
  */
8049
8215
  'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
8050
8216
  /**
8051
8217
  * Prefer `Number` static methods over global functions and optionally static properties over global constants.
8052
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-number-properties.md
8218
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-number-properties.md
8053
8219
  */
8054
8220
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
8055
8221
  /**
8056
8222
  * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
8057
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-define-properties.md
8223
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-object-define-properties.md
8058
8224
  */
8059
8225
  'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
8060
8226
  /**
8061
8227
  * Prefer object destructuring defaults over default object literals with spread.
8062
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-destructuring-defaults.md
8228
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-object-destructuring-defaults.md
8063
8229
  */
8064
8230
  'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
8065
8231
  /**
8066
8232
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
8067
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-from-entries.md
8233
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-object-from-entries.md
8068
8234
  */
8069
8235
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
8070
8236
  /**
8071
8237
  * Prefer the most specific `Object` iterable method.
8072
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-iterable-methods.md
8238
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-object-iterable-methods.md
8073
8239
  */
8074
8240
  'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
8075
8241
  /**
8076
8242
  * Prefer observer APIs over resize and scroll listeners with layout reads.
8077
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-observer-apis.md
8243
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-observer-apis.md
8078
8244
  */
8079
8245
  'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
8080
8246
  /**
8081
8247
  * Prefer omitting the `catch` binding parameter.
8082
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-optional-catch-binding.md
8248
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-optional-catch-binding.md
8083
8249
  */
8084
8250
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
8085
8251
  /**
8086
8252
  * Prefer `Path2D` for repeatedly drawn canvas paths.
8087
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-path2d.md
8253
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-path2d.md
8088
8254
  */
8089
8255
  'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
8090
8256
  /**
8091
8257
  * Prefer private class fields over the underscore-prefix convention.
8092
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-private-class-fields.md
8258
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-private-class-fields.md
8093
8259
  */
8094
8260
  'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
8095
8261
  /**
8096
8262
  * Prefer `Promise.resolve()` and `Promise.reject()` over trivial `new Promise()` calls.
8097
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-promise-static-methods.md
8263
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-promise-static-methods.md
8098
8264
  */
8099
8265
  'unicorn/prefer-promise-static-methods'?: Linter.RuleEntry<[]>;
8100
8266
  /**
8101
8267
  * Prefer `Promise.try()` over promise-wrapping boilerplate.
8102
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-promise-try.md
8268
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-promise-try.md
8103
8269
  */
8104
8270
  'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
8105
8271
  /**
8106
8272
  * Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
8107
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-promise-with-resolvers.md
8273
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-promise-with-resolvers.md
8108
8274
  */
8109
8275
  'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
8110
8276
  /**
8111
8277
  * Prefer borrowing methods from the prototype instead of the instance.
8112
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-prototype-methods.md
8278
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-prototype-methods.md
8113
8279
  */
8114
8280
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
8115
8281
  /**
8116
8282
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
8117
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-query-selector.md
8283
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-query-selector.md
8118
8284
  */
8119
8285
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
8120
8286
  /**
8121
8287
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
8122
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-queue-microtask.md
8288
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-queue-microtask.md
8123
8289
  */
8124
8290
  'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
8125
8291
  /**
8126
8292
  * Prefer `Reflect.apply()` over `Function#apply()`.
8127
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-reflect-apply.md
8293
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-reflect-apply.md
8128
8294
  */
8129
8295
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
8130
8296
  /**
8131
8297
  * Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
8132
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-regexp-escape.md
8298
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-regexp-escape.md
8133
8299
  */
8134
8300
  'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
8135
8301
  /**
8136
8302
  * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
8137
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-regexp-test.md
8303
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-regexp-test.md
8138
8304
  */
8139
8305
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
8140
8306
  /**
8141
8307
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
8142
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-response-static-json.md
8308
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-response-static-json.md
8143
8309
  */
8144
8310
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
8145
8311
  /**
8146
8312
  * Prefer `:scope` when using element query selector methods.
8147
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-scoped-selector.md
8313
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-scoped-selector.md
8148
8314
  */
8149
8315
  'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
8150
8316
  /**
8151
8317
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
8152
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-set-has.md
8318
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-set-has.md
8153
8319
  */
8154
8320
  'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
8155
8321
  /**
8156
8322
  * Prefer `Set` methods for Set operations.
8157
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-set-methods.md
8323
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-set-methods.md
8158
8324
  */
8159
8325
  'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
8160
8326
  /**
8161
8327
  * Prefer using `Set#size` instead of `Array#length`.
8162
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-set-size.md
8328
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-set-size.md
8163
8329
  */
8164
8330
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
8165
8331
  /**
8166
8332
  * Prefer arrow function properties over methods with a single return.
8167
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-short-arrow-method.md
8333
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-short-arrow-method.md
8168
8334
  */
8169
8335
  'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
8170
8336
  /**
8171
8337
  * Prefer shorter alternatives to Unicode escape sequences.
8172
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-short-escape-sequences.md
8338
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-short-escape-sequences.md
8173
8339
  */
8174
8340
  'unicorn/prefer-short-escape-sequences'?: Linter.RuleEntry<[]>;
8175
8341
  /**
8176
8342
  * Prefer simple conditions first in logical expressions.
8177
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-simple-condition-first.md
8343
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-simple-condition-first.md
8178
8344
  */
8179
8345
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
8180
8346
  /**
8181
8347
  * Prefer a simple comparison function for `Array#sort()`.
8182
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-simple-sort-comparator.md
8348
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-simple-sort-comparator.md
8183
8349
  */
8184
8350
  'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
8185
8351
  /**
8186
8352
  * Prefer simplified conditions.
8187
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-simplified-conditions.md
8353
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-simplified-conditions.md
8188
8354
  */
8189
8355
  'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<UnicornPreferSimplifiedConditions>;
8190
8356
  /**
8191
8357
  * Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
8192
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-array-predicate.md
8358
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-single-array-predicate.md
8193
8359
  */
8194
8360
  'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
8195
8361
  /**
8196
8362
  * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
8197
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-call.md
8363
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-single-call.md
8198
8364
  */
8199
8365
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
8200
8366
  /**
8201
8367
  * Prefer a single object destructuring declaration per local const source.
8202
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-object-destructuring.md
8368
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-single-object-destructuring.md
8203
8369
  */
8204
8370
  'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
8205
8371
  /**
8206
8372
  * Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
8207
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-replace.md
8373
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-single-replace.md
8208
8374
  */
8209
8375
  'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
8210
8376
  /**
8211
8377
  * Prefer declaring variables in the smallest possible scope.
8212
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-smaller-scope.md
8378
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-smaller-scope.md
8213
8379
  */
8214
8380
  'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
8215
8381
  /**
8216
8382
  * Prefer `String#split()` with a limit.
8217
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-split-limit.md
8383
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-split-limit.md
8218
8384
  */
8219
8385
  'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
8220
8386
  /**
8221
8387
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
8222
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-spread.md
8388
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-spread.md
8223
8389
  */
8224
8390
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
8225
8391
  /**
8226
8392
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
8227
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-match-all.md
8393
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-string-match-all.md
8228
8394
  */
8229
8395
  'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
8230
8396
  /**
8231
8397
  * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
8232
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-pad-start-end.md
8398
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-string-pad-start-end.md
8233
8399
  */
8234
8400
  'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
8235
8401
  /**
8236
8402
  * Prefer using the `String.raw` tag to avoid escaping `\`.
8237
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-raw.md
8403
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-string-raw.md
8238
8404
  */
8239
8405
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
8240
8406
  /**
8241
8407
  * Prefer `String#repeat()` for repeated whitespace.
8242
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-repeat.md
8408
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-string-repeat.md
8243
8409
  */
8244
8410
  'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
8245
8411
  /**
8246
8412
  * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
8247
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-replace-all.md
8413
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-string-replace-all.md
8248
8414
  */
8249
8415
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
8250
8416
  /**
8251
8417
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
8252
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-slice.md
8418
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-string-slice.md
8253
8419
  */
8254
8420
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
8255
8421
  /**
8256
8422
  * Prefer `String#startsWith()` & `String#endsWith()` over regexes, `String#indexOf() === 0`, and slice checks.
8257
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-starts-ends-with.md
8423
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-string-starts-ends-with.md
8258
8424
  */
8259
8425
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
8260
8426
  /**
8261
8427
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
8262
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-trim-start-end.md
8428
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-string-trim-start-end.md
8263
8429
  */
8264
8430
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
8265
8431
  /**
8266
8432
  * Prefer using `structuredClone` to create a deep clone.
8267
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-structured-clone.md
8433
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-structured-clone.md
8268
8434
  */
8269
8435
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
8270
8436
  /**
8271
8437
  * Prefer `switch` over multiple `else-if`.
8272
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-switch.md
8438
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-switch.md
8273
8439
  */
8274
8440
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
8275
8441
  /**
8276
8442
  * Prefer `Temporal` over `Date`.
8277
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-temporal.md
8443
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-temporal.md
8278
8444
  */
8279
8445
  'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
8280
8446
  /**
8281
8447
  * Prefer direct Temporal conversion methods.
8282
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-temporal-conversion.md
8448
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-temporal-conversion.md
8283
8449
  */
8284
8450
  'unicorn/prefer-temporal-conversion'?: Linter.RuleEntry<[]>;
8285
8451
  /**
8286
- * Prefer ternary expressions over simple `if` statements that return or assign values.
8287
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-ternary.md
8452
+ * Prefer ternary expressions over simple `if` statements.
8453
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-ternary.md
8288
8454
  */
8289
8455
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
8290
8456
  /**
8291
8457
  * Prefer `.then().catch()` over `.then(…, …)` for error handling.
8292
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-then-catch.md
8458
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-then-catch.md
8293
8459
  */
8294
8460
  'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>;
8295
8461
  /**
8296
8462
  * Prefer using `Element#toggleAttribute()` to toggle attributes.
8297
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-toggle-attribute.md
8463
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-toggle-attribute.md
8298
8464
  */
8299
8465
  'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
8300
8466
  /**
8301
8467
  * Prefer top-level await over top-level promises and async function calls.
8302
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-top-level-await.md
8468
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-top-level-await.md
8303
8469
  */
8304
8470
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
8305
8471
  /**
8306
8472
  * Enforce throwing `TypeError` in type checking conditions.
8307
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-type-error.md
8473
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-type-error.md
8308
8474
  */
8309
8475
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
8310
8476
  /**
8311
8477
  * Require type literals to be last in union types.
8312
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-type-literal-last.md
8478
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-type-literal-last.md
8313
8479
  */
8314
8480
  'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
8315
8481
  /**
8316
8482
  * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over legacy base64 conversions and manual postprocessing.
8317
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-uint8array-base64.md
8483
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-uint8array-base64.md
8318
8484
  */
8319
8485
  'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
8320
8486
  /**
8321
8487
  * Prefer `Uint8Array#toHex()` and `Uint8Array.fromHex()` over manual and Buffer hex conversions.
8322
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-uint8array-hex.md
8488
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-uint8array-hex.md
8323
8489
  */
8324
8490
  'unicorn/prefer-uint8array-hex'?: Linter.RuleEntry<[]>;
8325
8491
  /**
8326
8492
  * Prefer the unary minus operator over multiplying or dividing by `-1`.
8327
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-unary-minus.md
8493
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-unary-minus.md
8328
8494
  */
8329
8495
  'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
8330
8496
  /**
8331
8497
  * Prefer Unicode code point escapes over legacy escape sequences.
8332
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-unicode-code-point-escapes.md
8498
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-unicode-code-point-escapes.md
8333
8499
  */
8334
8500
  'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
8335
8501
  /**
8336
8502
  * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
8337
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-url-can-parse.md
8503
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-url-can-parse.md
8338
8504
  */
8339
8505
  'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
8340
8506
  /**
8341
8507
  * Prefer `URL#href` over stringifying a `URL`.
8342
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-url-href.md
8508
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-url-href.md
8343
8509
  */
8344
8510
  'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
8345
8511
  /**
8346
8512
  * Prefer `URLSearchParams` over manually splitting query strings.
8347
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-url-search-parameters.md
8513
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-url-search-parameters.md
8348
8514
  */
8349
8515
  'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
8350
8516
  /**
8351
8517
  * Prefer putting the condition in the while statement.
8352
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-while-loop-condition.md
8518
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/prefer-while-loop-condition.md
8353
8519
  */
8354
8520
  'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
8355
8521
  /**
8356
8522
  * Renamed to `unicorn/name-replacements`.
8357
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
8523
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
8358
8524
  * @deprecated
8359
8525
  */
8360
8526
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
8361
8527
  /**
8362
8528
  * Enforce consistent relative URL style.
8363
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/relative-url-style.md
8529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/relative-url-style.md
8364
8530
  */
8365
8531
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
8366
8532
  /**
8367
8533
  * Enforce using the separator argument with `Array#join()`.
8368
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-array-join-separator.md
8534
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-array-join-separator.md
8369
8535
  */
8370
8536
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
8371
8537
  /**
8372
8538
  * Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
8373
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-array-sort-compare.md
8539
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-array-sort-compare.md
8374
8540
  */
8375
8541
  'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
8376
8542
  /**
8377
8543
  * Require `CSS.escape()` for interpolated values in CSS selectors.
8378
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-css-escape.md
8544
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-css-escape.md
8379
8545
  */
8380
8546
  'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
8381
8547
  /**
8382
8548
  * Require configured YAML frontmatter fields.
8383
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-frontmatter-fields.md
8549
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-frontmatter-fields.md
8384
8550
  */
8385
8551
  'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
8386
8552
  /**
8387
8553
  * Require non-empty module attributes for imports and exports
8388
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-module-attributes.md
8554
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-module-attributes.md
8389
8555
  */
8390
8556
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
8391
8557
  /**
8392
8558
  * Require non-empty specifier list in import and export statements.
8393
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-module-specifiers.md
8559
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-module-specifiers.md
8394
8560
  */
8395
8561
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
8396
8562
  /**
8397
8563
  * Enforce using the digits argument with `Number#toFixed()`.
8398
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-number-to-fixed-digits-argument.md
8564
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-number-to-fixed-digits-argument.md
8399
8565
  */
8400
8566
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
8401
8567
  /**
8402
8568
  * Require passive event listeners for high-frequency events.
8403
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-passive-events.md
8569
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-passive-events.md
8404
8570
  */
8405
8571
  'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
8406
8572
  /**
8407
8573
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
8408
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-post-message-target-origin.md
8574
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-post-message-target-origin.md
8409
8575
  */
8410
8576
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
8411
8577
  /**
8412
8578
  * Require boolean-returning Proxy traps to return booleans.
8413
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-proxy-trap-boolean-return.md
8579
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-proxy-trap-boolean-return.md
8414
8580
  */
8415
8581
  'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
8416
8582
  /**
8417
8583
  * Require streaming decoding of fetch-body chunks with `TextDecoder`.
8418
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-text-decoder-streaming.md
8584
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/require-text-decoder-streaming.md
8419
8585
  */
8420
8586
  'unicorn/require-text-decoder-streaming'?: Linter.RuleEntry<[]>;
8421
8587
  /**
8422
8588
  * Enforce a consistent style for single-line block comments.
8423
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/single-line-block-comment-style.md
8589
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/single-line-block-comment-style.md
8424
8590
  */
8425
8591
  'unicorn/single-line-block-comment-style'?: Linter.RuleEntry<UnicornSingleLineBlockCommentStyle>;
8426
8592
  /**
8427
8593
  * Enforce better string content.
8428
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/string-content.md
8594
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/string-content.md
8429
8595
  */
8430
8596
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
8431
8597
  /**
8432
8598
  * Enforce consistent brace style for `case` clauses.
8433
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/switch-case-braces.md
8599
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/switch-case-braces.md
8434
8600
  */
8435
8601
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
8436
8602
  /**
8437
8603
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
8438
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/switch-case-break-position.md
8604
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/switch-case-break-position.md
8439
8605
  */
8440
8606
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
8441
8607
  /**
8442
8608
  * Fix whitespace-insensitive template indentation.
8443
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/template-indent.md
8609
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/template-indent.md
8444
8610
  */
8445
8611
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
8446
8612
  /**
8447
8613
  * Enforce consistent case for text encoding identifiers.
8448
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/text-encoding-identifier-case.md
8614
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/text-encoding-identifier-case.md
8449
8615
  */
8450
8616
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
8451
8617
  /**
8452
8618
  * Require `new` when creating an error.
8453
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/throw-new-error.md
8619
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/throw-new-error.md
8454
8620
  */
8455
8621
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
8456
8622
  /**
8457
8623
  * Limit the complexity of `try` blocks.
8458
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/try-complexity.md
8624
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v78.0.0/docs/rules/try-complexity.md
8459
8625
  */
8460
8626
  'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
8461
8627
  /**
@@ -10636,6 +10802,10 @@ type EslintReactDomNoUnknownProperty = [] | [{
10636
10802
  ignore?: string[];
10637
10803
  requireDataLowercase?: boolean;
10638
10804
  }];
10805
+ // ----- @eslint-react/dom-no-unsafe-target-blank -----
10806
+ type EslintReactDomNoUnsafeTargetBlank = [] | [{
10807
+ allowReferrer?: boolean;
10808
+ }];
10639
10809
  // ----- @eslint-react/exhaustive-deps -----
10640
10810
  type EslintReactExhaustiveDeps = [] | [{
10641
10811
  additionalHooks?: string;
@@ -16953,6 +17123,14 @@ type CssUseLayers = [] | [{
16953
17123
  requireImportLayers?: boolean;
16954
17124
  layerNamePattern?: string;
16955
17125
  }];
17126
+ // ----- cssicorn/consistent-layer-order -----
17127
+ type CssicornConsistentLayerOrder = [] | [{
17128
+ checkUndeclaredLayers?: boolean;
17129
+ }];
17130
+ // ----- cssicorn/consistent-property-order -----
17131
+ type CssicornConsistentPropertyOrder = [] | [{
17132
+ order?: (("concentric-css" | "alphabetical") | [string, ...(string)[]]);
17133
+ }];
16956
17134
  // ----- cssicorn/no-deprecated-features -----
16957
17135
  type CssicornNoDeprecatedFeatures = [] | [{
16958
17136
  allow?: string[];
@@ -16969,6 +17147,12 @@ type CssicornNoUnknownPseudoSelectors = [] | [{
16969
17147
  type CssicornNoUnscopedNestingSelector = [] | [{
16970
17148
  scopingRootAtRules?: string[];
16971
17149
  }];
17150
+ // ----- cssicorn/prefer-existing-custom-properties -----
17151
+ type CssicornPreferExistingCustomProperties = [] | [{
17152
+ customProperties?: {
17153
+ [k: string]: string | undefined;
17154
+ };
17155
+ }];
16972
17156
  // ----- cssicorn/prefer-explicit-viewport-units -----
16973
17157
  type CssicornPreferExplicitViewportUnits = [] | [{
16974
17158
  unit?: ("dvh" | "svh" | "lvh");
@@ -21872,7 +22056,7 @@ type PlaywrightNoActionTimeout = [] | [{
21872
22056
  }];
21873
22057
  // ----- playwright/no-hooks -----
21874
22058
  type PlaywrightNoHooks = [] | [{
21875
- allow?: unknown[];
22059
+ allow?: ("beforeAll" | "beforeEach" | "afterAll" | "afterEach")[];
21876
22060
  }];
21877
22061
  // ----- playwright/no-magic-timeouts -----
21878
22062
  type PlaywrightNoMagicTimeouts = [] | [{
@@ -22473,6 +22657,12 @@ type UnicornNoNull = [] | [{
22473
22657
  checkArguments?: boolean;
22474
22658
  checkStrictEquality?: boolean;
22475
22659
  }];
22660
+ // ----- unicorn/no-top-level-side-effects -----
22661
+ type UnicornNoTopLevelSideEffects = [] | [{
22662
+ allow?: {
22663
+ [k: string]: string[] | undefined;
22664
+ };
22665
+ }];
22476
22666
  // ----- unicorn/no-typeof-undefined -----
22477
22667
  type UnicornNoTypeofUndefined = [] | [{
22478
22668
  checkGlobalVariables?: boolean;
@@ -22554,6 +22744,10 @@ type UnicornPreferContinue = [] | [{
22554
22744
  maximumStatements?: number;
22555
22745
  checkShortBodies?: boolean;
22556
22746
  }];
22747
+ // ----- unicorn/prefer-default-parameters -----
22748
+ type UnicornPreferDefaultParameters = [] | [{
22749
+ checkFallbackExpressions?: boolean;
22750
+ }];
22557
22751
  // ----- unicorn/prefer-dom-node-html-methods -----
22558
22752
  type UnicornPreferDomNodeHtmlMethods = [] | [{
22559
22753
  checkGetHTML?: boolean;
@@ -22635,7 +22829,10 @@ type UnicornPreferTemporal = [] | [{
22635
22829
  checkMethods?: boolean;
22636
22830
  }];
22637
22831
  // ----- unicorn/prefer-ternary -----
22638
- type UnicornPreferTernary = [] | [("always" | "only-single-line")];
22832
+ type UnicornPreferTernary = [] | [("always" | "only-single-line")] | [("always" | "only-single-line"), {
22833
+ checkVaryingBase?: boolean;
22834
+ checkComputedMemberAccess?: boolean;
22835
+ }];
22639
22836
  // ----- unicorn/relative-url-style -----
22640
22837
  type UnicornRelativeUrlStyle = [] | [("never" | "always")];
22641
22838
  // ----- unicorn/require-css-escape -----
@@ -24243,4 +24440,5 @@ type ZodSchemaErrorPropertyStyle = [] | [{
24243
24440
  selector?: string;
24244
24441
  example?: string;
24245
24442
  }];
24246
- //#endregion
24443
+ //#endregion
24444
+ export {};