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