@infernodesign/eslint-config 2.13.1 → 2.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -642,6 +642,11 @@ interface RuleOptions {
642
642
  * @see https://github.com/JoshuaKGoldberg/eslint-plugin-erasable-syntax-only/blob/main/docs/rules/enums.md
643
643
  */
644
644
  'erasable-syntax-only/enums'?: Linter.RuleEntry<[]>;
645
+ /**
646
+ * Avoid using TypeScript's export aliases.
647
+ * @see https://github.com/JoshuaKGoldberg/eslint-plugin-erasable-syntax-only/blob/main/docs/rules/export-aliases.md
648
+ */
649
+ 'erasable-syntax-only/export-aliases'?: Linter.RuleEntry<[]>;
645
650
  /**
646
651
  * Avoid using TypeScript's import aliases.
647
652
  * @see https://github.com/JoshuaKGoldberg/eslint-plugin-erasable-syntax-only/blob/main/docs/rules/import-aliases.md
@@ -914,7 +919,7 @@ interface RuleOptions {
914
919
  * Reports against syntax not valid for the mode (e.g., Google Closure Compiler in non-Closure mode).
915
920
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-syntax.md#repos-sticky-header
916
921
  */
917
- 'jsdoc/check-syntax'?: Linter.RuleEntry<[]>;
922
+ 'jsdoc/check-syntax'?: Linter.RuleEntry<JsdocCheckSyntax>;
918
923
  /**
919
924
  * Reports invalid block tag names.
920
925
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-tag-names.md#repos-sticky-header
@@ -1030,6 +1035,10 @@ interface RuleOptions {
1030
1035
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/no-undefined-types.md#repos-sticky-header
1031
1036
  */
1032
1037
  'jsdoc/no-undefined-types'?: Linter.RuleEntry<JsdocNoUndefinedTypes>;
1038
+ /**
1039
+ * Reports redundant @type tags that match or broaden the naturally inferred TypeScript type.
1040
+ */
1041
+ 'jsdoc/no-unnecessary-type-assertion'?: Linter.RuleEntry<JsdocNoUnnecessaryTypeAssertion>;
1033
1042
  /**
1034
1043
  * Normalizes labeled links in `@see` tags to a canonical `{@link}` form.
1035
1044
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/normalize-see-links.md#repos-sticky-header
@@ -1225,6 +1234,11 @@ interface RuleOptions {
1225
1234
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/text-escaping.md#repos-sticky-header
1226
1235
  */
1227
1236
  'jsdoc/text-escaping'?: Linter.RuleEntry<JsdocTextEscaping>;
1237
+ /**
1238
+ * Disallows (or requires descriptions for) `@ts-<directive>` comments, mirroring `@typescript-eslint/ban-ts-comment`.
1239
+ * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/ts-ban-ts-comment.md#repos-sticky-header
1240
+ */
1241
+ 'jsdoc/ts-ban-ts-comment'?: Linter.RuleEntry<JsdocTsBanTsComment>;
1228
1242
  /**
1229
1243
  * Prefers either function properties or method signatures
1230
1244
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/ts-method-signature-style.md#repos-sticky-header
@@ -1893,6 +1907,11 @@ interface RuleOptions {
1893
1907
  * @see https://docs.medusajs.com/resources/lint/rules/admin-no-medusa-utils-import
1894
1908
  */
1895
1909
  'medusa/admin-no-medusa-utils-import'?: Linter.RuleEntry<[]>;
1910
+ /**
1911
+ * Allowed and disallowed fields must be set by a global middleware. Medusa runs a method-scoped middleware after it validates the query parameters, so `allowFields`, `req.allowed`, and `req.disallowed` have no effect there.
1912
+ * @see https://docs.medusajs.com/resources/lint/rules/allow-fields-must-be-global-middleware
1913
+ */
1914
+ 'medusa/allow-fields-must-be-global-middleware'?: Linter.RuleEntry<[]>;
1896
1915
  /**
1897
1916
  * API route opt-out flag must be exported as `AUTHENTICATE` with a boolean literal value. Other casings or non-boolean values are ignored by the framework.
1898
1917
  * @see https://docs.medusajs.com/resources/lint/rules/authenticate-flag-name-and-type
@@ -1998,6 +2017,11 @@ interface RuleOptions {
1998
2017
  * @see https://docs.medusajs.com/resources/lint/rules/no-mikroorm-direct-import
1999
2018
  */
2000
2019
  'medusa/no-mikroorm-direct-import'?: Linter.RuleEntry<[]>;
2020
+ /**
2021
+ * Disallow calling `when(...)` inside a `when().then()` callback in a workflow composition function. `when` tracks its pending condition in a single shared slot rather than a stack, so the inner `.then()` clears that slot before the outer `.then()` reads it — the workflow throws a `TypeError` at server boot instead of failing at build time.
2022
+ * @see https://docs.medusajs.com/resources/lint/rules/no-nested-when-in-workflow
2023
+ */
2024
+ 'medusa/no-nested-when-in-workflow'?: Linter.RuleEntry<[]>;
2001
2025
  /**
2002
2026
  * Disallow `new Date(...)` and any `Date.*(...)` static-method call directly inside a `createWorkflow` constructor or a `when().then()` callback. They evaluate at workflow-definition time, not execution time — wrap them in `transform` or compute inside a `createStep`.
2003
2027
  * @see https://docs.medusajs.com/resources/lint/rules/no-new-date-in-workflow
@@ -2028,6 +2052,11 @@ interface RuleOptions {
2028
2052
  * @see https://docs.medusajs.com/resources/lint/rules/no-throw-in-transform
2029
2053
  */
2030
2054
  'medusa/no-throw-in-transform'?: Linter.RuleEntry<[]>;
2055
+ /**
2056
+ * Disallow `throw` statements directly inside a `createWorkflow` constructor or a `when().then()` callback. Both run at definition time, not execution time — a bare throw there skips the compensation mechanism, leaving previously executed steps uncompensated.
2057
+ * @see https://docs.medusajs.com/resources/lint/rules/no-throw-in-workflow-constructor
2058
+ */
2059
+ 'medusa/no-throw-in-workflow-constructor'?: Linter.RuleEntry<[]>;
2031
2060
  /**
2032
2061
  * Route matchers passed to `defineMiddlewares(...)` should not end with a trailing slash; matchers without trailing slashes won't match URLs with trailing slashes.
2033
2062
  * @see https://docs.medusajs.com/resources/lint/rules/no-trailing-slash-in-route-matcher
@@ -2048,6 +2077,11 @@ interface RuleOptions {
2048
2077
  * @see https://docs.medusajs.com/resources/lint/rules/no-workflow-call-without-container
2049
2078
  */
2050
2079
  'medusa/no-workflow-call-without-container'?: Linter.RuleEntry<[]>;
2080
+ /**
2081
+ * Middlewares that add allowed fields should use the `allowFields` middleware from `@medusajs/framework/http` instead of writing to `req.allowed`.
2082
+ * @see https://docs.medusajs.com/resources/lint/rules/prefer-allow-fields-middleware
2083
+ */
2084
+ 'medusa/prefer-allow-fields-middleware'?: Linter.RuleEntry<[]>;
2051
2085
  /**
2052
2086
  * Prefer `ContainerRegistrationKeys.*` members over magic strings in `resolve(...)` calls.
2053
2087
  * @see https://docs.medusajs.com/resources/lint/rules/prefer-container-registration-keys
@@ -2193,6 +2227,11 @@ interface RuleOptions {
2193
2227
  * @see https://docs.medusajs.com/resources/lint/rules/use-validated-body-or-query
2194
2228
  */
2195
2229
  'medusa/use-validated-body-or-query'?: Linter.RuleEntry<[]>;
2230
+ /**
2231
+ * Require a `name` on `when(...)` calls whose `.then()` callback returns a value that isn't a step invocation. Medusa core assigns a random name at runtime in this case and logs a warning — pass `when(name, values, condition)` instead.
2232
+ * @see https://docs.medusajs.com/resources/lint/rules/when-block-must-have-name
2233
+ */
2234
+ 'medusa/when-block-must-have-name'?: Linter.RuleEntry<[]>;
2196
2235
  /**
2197
2236
  * Widget files must export a named `config` from `defineWidgetConfig(...)`.
2198
2237
  * @see https://docs.medusajs.com/resources/lint/rules/widget-must-export-config
@@ -3047,7 +3086,7 @@ interface RuleOptions {
3047
3086
  * Disallow unmodified loop conditions
3048
3087
  * @see https://eslint.org/docs/latest/rules/no-unmodified-loop-condition
3049
3088
  */
3050
- 'no-unmodified-loop-condition'?: Linter.RuleEntry<[]>;
3089
+ 'no-unmodified-loop-condition'?: Linter.RuleEntry<NoUnmodifiedLoopCondition>;
3051
3090
  /**
3052
3091
  * Disallow ternary operators when simpler alternatives exist
3053
3092
  * @see https://eslint.org/docs/latest/rules/no-unneeded-ternary
@@ -3599,6 +3638,11 @@ interface RuleOptions {
3599
3638
  * @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/json/json-valid-catalog.test.ts
3600
3639
  */
3601
3640
  'pnpm/json-valid-catalog'?: Linter.RuleEntry<PnpmJsonValidCatalog>;
3641
+ /**
3642
+ * Require blank lines around multi-line entries in `pnpm-workspace.yaml`, and disallow them between single-line entries
3643
+ * @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-blank-lines.test.ts
3644
+ */
3645
+ 'pnpm/yaml-blank-lines'?: Linter.RuleEntry<[]>;
3602
3646
  /**
3603
3647
  * Enforce settings in `pnpm-workspace.yaml`
3604
3648
  * @see https://github.com/antfu/pnpm-workspace-utils/tree/main/packages/eslint-plugin-pnpm/src/rules/yaml/yaml-enforce-settings.test.ts
@@ -3814,7 +3858,7 @@ interface RuleOptions {
3814
3858
  */
3815
3859
  'react/globals'?: Linter.RuleEntry<[]>;
3816
3860
  /**
3817
- * Validates against passing functions that mutate captured local variables into frozen contexts such as JSX props, hook arguments, and hook return values.
3861
+ * Validates against mutating props, state, and other immutable values, including through functions passed into frozen contexts such as JSX props, hook arguments, and hook return values.
3818
3862
  * @see https://eslint-react.xyz/docs/rules/immutability
3819
3863
  */
3820
3864
  'react/immutability'?: Linter.RuleEntry<[]>;
@@ -4169,7 +4213,7 @@ interface RuleOptions {
4169
4213
  */
4170
4214
  'react/x-globals'?: Linter.RuleEntry<[]>;
4171
4215
  /**
4172
- * Validates against passing functions that mutate captured local variables into frozen contexts such as JSX props, hook arguments, and hook return values.
4216
+ * Validates against mutating props, state, and other immutable values, including through functions passed into frozen contexts such as JSX props, hook arguments, and hook return values.
4173
4217
  * @see https://eslint-react.xyz/docs/rules/immutability
4174
4218
  */
4175
4219
  'react/x-immutability'?: Linter.RuleEntry<[]>;
@@ -5023,11 +5067,26 @@ interface RuleOptions {
5023
5067
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/jsx-uses-vars.md
5024
5068
  */
5025
5069
  'solid/jsx-uses-vars'?: Linter.RuleEntry<[]>;
5070
+ /**
5071
+ * Disallow passing uncalled signal accessors or other functions as value-typed DOM element attributes.
5072
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-accessor-as-prop.md
5073
+ */
5074
+ 'solid/no-accessor-as-prop'?: Linter.RuleEntry<[]>;
5026
5075
  /**
5027
5076
  * Disallow usage of type-unsafe event handlers.
5028
5077
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-array-handlers.md
5029
5078
  */
5030
5079
  'solid/no-array-handlers'?: Linter.RuleEntry<[]>;
5080
+ /**
5081
+ * Disallow boolean values on enumerated attributes like draggable and tristate aria-*, which take string tokens — a boolean false removes the attribute instead of writing "false".
5082
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-boolean-enumerated-attribute.md
5083
+ */
5084
+ 'solid/no-boolean-enumerated-attribute'?: Linter.RuleEntry<[]>;
5085
+ /**
5086
+ * Disallow browser-only globals inside server functions, which run exclusively on the server.
5087
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-browser-globals-in-server-function.md
5088
+ */
5089
+ 'solid/no-browser-globals-in-server-function'?: Linter.RuleEntry<[]>;
5031
5090
  /**
5032
5091
  * Disallow destructuring props. In Solid, props must be used with property accesses (`props.foo`) to preserve reactivity. This rule only tracks destructuring in the parameter list.
5033
5092
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-destructure.md
@@ -5038,6 +5097,16 @@ interface RuleOptions {
5038
5097
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-innerhtml.md
5039
5098
  */
5040
5099
  'solid/no-innerhtml'?: Linter.RuleEntry<SolidNoInnerhtml>;
5100
+ /**
5101
+ * Disallow server functions from capturing variables in enclosing non-module scopes, mirroring the compiler's build-time validation.
5102
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-invalid-server-capture.md
5103
+ */
5104
+ 'solid/no-invalid-server-capture'?: Linter.RuleEntry<[]>;
5105
+ /**
5106
+ * Disallow reactive primitives at module scope, where state is shared across SSR requests.
5107
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-module-scope-reactive-primitive.md
5108
+ */
5109
+ 'solid/no-module-scope-reactive-primitive'?: Linter.RuleEntry<[]>;
5041
5110
  /**
5042
5111
  * Disallow usage of APIs that use ES6 Proxies, only to target environments that don't support them.
5043
5112
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-proxy-apis.md
@@ -5053,11 +5122,36 @@ interface RuleOptions {
5053
5122
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-react-specific-props.md
5054
5123
  */
5055
5124
  'solid/no-react-specific-props'?: Linter.RuleEntry<[]>;
5125
+ /**
5126
+ * Disallow restating a prop or option value that is already the default.
5127
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-restated-default-options.md
5128
+ */
5129
+ 'solid/no-restated-default-options'?: Linter.RuleEntry<[]>;
5130
+ /**
5131
+ * Require the two-argument `createEffect(compute, effect)` form used by Solid 2.0.
5132
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-single-arg-create-effect.md
5133
+ */
5134
+ 'solid/no-single-arg-create-effect'?: Linter.RuleEntry<[]>;
5135
+ /**
5136
+ * Disallow mutating a store's read proxy; store state changes only through the setter's mutable draft.
5137
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-store-mutation-outside-setter.md
5138
+ */
5139
+ 'solid/no-store-mutation-outside-setter'?: Linter.RuleEntry<[]>;
5056
5140
  /**
5057
5141
  * Enforce using only Solid-specific namespaced attribute names (i.e. `'on:'` in `<div on:click={...} />`).
5058
5142
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-unknown-namespaces.md
5059
5143
  */
5060
5144
  'solid/no-unknown-namespaces'?: Linter.RuleEntry<SolidNoUnknownNamespaces>;
5145
+ /**
5146
+ * Disallow signals that are never written (use a plain value) or never read (dead state).
5147
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-unused-signal.md
5148
+ */
5149
+ 'solid/no-unused-signal'?: Linter.RuleEntry<[]>;
5150
+ /**
5151
+ * Disallow writing signals or stores inside `createMemo`, the compute half of `createEffect`, or a component body, which are pure owned scopes.
5152
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/no-write-in-pure-computation.md
5153
+ */
5154
+ 'solid/no-write-in-pure-computation'?: Linter.RuleEntry<[]>;
5061
5155
  /**
5062
5156
  * Enforce using the classlist prop over importing a classnames helper. The classlist prop accepts an object `{ [class: string]: boolean }` just like classnames.
5063
5157
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/prefer-classlist.md
@@ -5069,16 +5163,36 @@ interface RuleOptions {
5069
5163
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/prefer-for.md
5070
5164
  */
5071
5165
  'solid/prefer-for'?: Linter.RuleEntry<[]>;
5166
+ /**
5167
+ * Enforce running side-effectful setup (timers, global listeners, observers) inside `onSettled` instead of the component body.
5168
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/prefer-onSettled-for-side-effects.md
5169
+ */
5170
+ 'solid/prefer-onSettled-for-side-effects'?: Linter.RuleEntry<[]>;
5072
5171
  /**
5073
5172
  * Enforce using Solid's `<Show />` component for conditionally showing content. Solid's compiler covers this case, so it's a stylistic rule only.
5074
5173
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/prefer-show.md
5075
5174
  */
5076
5175
  'solid/prefer-show'?: Linter.RuleEntry<[]>;
5176
+ /**
5177
+ * Enforce using the structured array/object forms of the `class` prop over manually-built class strings.
5178
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/prefer-structured-class.md
5179
+ */
5180
+ 'solid/prefer-structured-class'?: Linter.RuleEntry<[]>;
5077
5181
  /**
5078
5182
  * Enforce that reactivity (props, signals, memos, etc.) is properly used, so changes in those values will be tracked and update the view as expected.
5079
5183
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/reactivity.md
5080
5184
  */
5081
5185
  'solid/reactivity'?: Linter.RuleEntry<SolidReactivity>;
5186
+ /**
5187
+ * Disallow Solid 1.x APIs that were removed or renamed in Solid 2.0, with migration guidance.
5188
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/removed-api.md
5189
+ */
5190
+ 'solid/removed-api'?: Linter.RuleEntry<[]>;
5191
+ /**
5192
+ * Require server functions to be async, matching their client-side contract.
5193
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/require-async-server-function.md
5194
+ */
5195
+ 'solid/require-async-server-function'?: Linter.RuleEntry<[]>;
5082
5196
  /**
5083
5197
  * Disallow extra closing tags for components without children.
5084
5198
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/self-closing-comp.md
@@ -5089,6 +5203,11 @@ interface RuleOptions {
5089
5203
  * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/style-prop.md
5090
5204
  */
5091
5205
  'solid/style-prop'?: Linter.RuleEntry<SolidStyleProp>;
5206
+ /**
5207
+ * Enforce that "use server" directives are placed where the compiler honors them, and that module-level directive files export working server functions.
5208
+ * @see https://github.com/solidjs-community/eslint-plugin-solid/blob/main/packages/eslint-plugin-solid/docs/valid-use-server.md
5209
+ */
5210
+ 'solid/valid-use-server'?: Linter.RuleEntry<SolidValidUseServer>;
5092
5211
  /**
5093
5212
  * Enforce sorted `import` declarations within modules
5094
5213
  * @see https://eslint.org/docs/latest/rules/sort-imports
@@ -6918,6 +7037,11 @@ interface RuleOptions {
6918
7037
  * @see https://typescript-eslint.io/rules/no-for-in-array
6919
7038
  */
6920
7039
  'ts/no-for-in-array'?: Linter.RuleEntry<[]>;
7040
+ /**
7041
+ * Disallow type operations that resolve to the "empty object" type
7042
+ * @see https://typescript-eslint.io/rules/no-generated-empty-object-type
7043
+ */
7044
+ 'ts/no-generated-empty-object-type'?: Linter.RuleEntry<[]>;
6921
7045
  /**
6922
7046
  * Disallow the use of `eval()`-like functions
6923
7047
  * @see https://typescript-eslint.io/rules/no-implied-eval
@@ -7117,6 +7241,11 @@ interface RuleOptions {
7117
7241
  * @see https://typescript-eslint.io/rules/no-unsafe-declaration-merging
7118
7242
  */
7119
7243
  'ts/no-unsafe-declaration-merging'?: Linter.RuleEntry<[]>;
7244
+ /**
7245
+ * Disallow assigning non-enum values to enum typed locations
7246
+ * @see https://typescript-eslint.io/rules/no-unsafe-enum-assignment
7247
+ */
7248
+ 'ts/no-unsafe-enum-assignment'?: Linter.RuleEntry<[]>;
7120
7249
  /**
7121
7250
  * Disallow comparing an enum value with a non-enum value
7122
7251
  * @see https://typescript-eslint.io/rules/no-unsafe-enum-comparison
@@ -7393,1740 +7522,1992 @@ interface RuleOptions {
7393
7522
  'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
7394
7523
  /**
7395
7524
  * Prefer better DOM traversal APIs.
7396
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/better-dom-traversing.md
7525
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/better-dom-traversing.md
7397
7526
  */
7398
7527
  'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
7399
7528
  /**
7400
7529
  * Removed. Prefer `eslint-plugin-regexp`
7401
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#better-regex
7530
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#better-regex
7402
7531
  * @deprecated
7403
7532
  */
7404
7533
  'unicorn/better-regex'?: Linter.RuleEntry<[]>;
7405
7534
  /**
7406
7535
  * Enforce a specific parameter name in catch clauses.
7407
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/catch-error-name.md
7536
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/catch-error-name.md
7408
7537
  */
7409
7538
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
7410
7539
  /**
7411
7540
  * Enforce consistent class references in static methods.
7412
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/class-reference-in-static-methods.md
7541
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/class-reference-in-static-methods.md
7413
7542
  */
7414
7543
  'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
7544
+ /**
7545
+ * Enforce consistent spacing before and after commas in JSON.
7546
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/comma-spacing.md
7547
+ */
7548
+ 'unicorn/comma-spacing'?: Linter.RuleEntry<[]>;
7415
7549
  /**
7416
7550
  * Enforce better comment content.
7417
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/comment-content.md
7551
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/comment-content.md
7418
7552
  */
7419
7553
  'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
7420
7554
  /**
7421
7555
  * Enforce a consistent return style for multiline arrow function bodies.
7422
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-arrow-return-style.md
7556
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-arrow-return-style.md
7423
7557
  */
7424
7558
  'unicorn/consistent-arrow-return-style'?: Linter.RuleEntry<[]>;
7425
7559
  /**
7426
7560
  * Enforce consistent assertion style with `node:assert`.
7427
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-assert.md
7561
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-assert.md
7428
7562
  */
7429
7563
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
7430
7564
  /**
7431
7565
  * Enforce consistent naming for boolean names.
7432
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-boolean-name.md
7566
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-boolean-name.md
7433
7567
  */
7434
7568
  'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
7435
7569
  /**
7436
7570
  * Enforce consistent class member order.
7437
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-class-member-order.md
7571
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-class-member-order.md
7438
7572
  */
7439
7573
  'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
7440
7574
  /**
7441
7575
  * Enforce consistent spelling of compound words in identifiers.
7442
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-compound-words.md
7576
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-compound-words.md
7443
7577
  */
7444
7578
  'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
7445
7579
  /**
7446
7580
  * Enforce consistent conditional object spread style.
7447
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-conditional-object-spread.md
7581
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-conditional-object-spread.md
7448
7582
  */
7449
7583
  'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
7450
7584
  /**
7451
7585
  * Prefer passing `Date` directly to the constructor when cloning.
7452
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-date-clone.md
7586
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-date-clone.md
7453
7587
  */
7454
7588
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
7455
7589
  /**
7456
7590
  * Use destructured variables over properties.
7457
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-destructuring.md
7591
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-destructuring.md
7458
7592
  */
7459
7593
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
7460
7594
  /**
7461
7595
  * Prefer consistent types when spreading a ternary in an array literal.
7462
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-empty-array-spread.md
7596
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-empty-array-spread.md
7463
7597
  */
7464
7598
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
7465
7599
  /**
7466
7600
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
7467
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-existence-index-check.md
7601
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-existence-index-check.md
7468
7602
  */
7469
7603
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
7470
7604
  /**
7471
7605
  * Enforce consistent decorator position on exported classes.
7472
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-export-decorator-position.md
7606
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-export-decorator-position.md
7473
7607
  */
7474
7608
  'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
7475
7609
  /**
7476
7610
  * Move function definitions to the highest possible scope.
7477
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-function-scoping.md
7611
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-function-scoping.md
7478
7612
  */
7479
7613
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
7480
7614
  /**
7481
7615
  * Enforce function syntax by role.
7482
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-function-style.md
7616
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-function-style.md
7483
7617
  */
7484
7618
  'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
7485
7619
  /**
7486
7620
  * Enforce consistent JSON file reads before `JSON.parse()`.
7487
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-json-file-read.md
7621
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-json-file-read.md
7488
7622
  */
7489
7623
  'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
7490
7624
  /**
7491
7625
  * Enforce consistent optional chaining for same-base member access.
7492
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-optional-chaining.md
7626
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-optional-chaining.md
7493
7627
  */
7494
7628
  'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
7495
7629
  /**
7496
7630
  * Enforce consistent style for escaping `${` in template literals.
7497
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-template-literal-escape.md
7631
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-template-literal-escape.md
7498
7632
  */
7499
7633
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
7500
7634
  /**
7501
7635
  * Enforce consistent labels on tuple type elements.
7502
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/consistent-tuple-labels.md
7636
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-tuple-labels.md
7503
7637
  */
7504
7638
  'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
7505
7639
  /**
7506
7640
  * Enforce correct `Error` subclassing.
7507
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/custom-error-definition.md
7641
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/custom-error-definition.md
7508
7642
  */
7509
7643
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
7510
7644
  /**
7511
7645
  * Enforce consistent default export declarations.
7512
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/default-export-style.md
7646
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/default-export-style.md
7513
7647
  */
7514
7648
  'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
7515
7649
  /**
7516
7650
  * Enforce consistent style for DOM element dataset access.
7517
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/dom-node-dataset.md
7651
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/dom-node-dataset.md
7518
7652
  */
7519
7653
  'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
7520
7654
  /**
7521
7655
  * Enforce no spaces between braces.
7522
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/empty-brace-spaces.md
7656
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/empty-brace-spaces.md
7523
7657
  */
7524
7658
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
7525
7659
  /**
7526
7660
  * Enforce passing a `message` value when creating a built-in error.
7527
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/error-message.md
7661
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/error-message.md
7528
7662
  */
7529
7663
  'unicorn/error-message'?: Linter.RuleEntry<[]>;
7530
7664
  /**
7531
7665
  * Require escape sequences to use uppercase or lowercase values.
7532
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/escape-case.md
7666
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/escape-case.md
7533
7667
  */
7534
7668
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
7535
7669
  /**
7536
7670
  * Add expiration conditions to TODO comments.
7537
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/expiring-todo-comments.md
7671
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/expiring-todo-comments.md
7538
7672
  */
7539
7673
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
7540
7674
  /**
7541
7675
  * Enforce explicitly comparing the `length` or `size` property of a value.
7542
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/explicit-length-check.md
7676
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/explicit-length-check.md
7543
7677
  */
7544
7678
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
7545
7679
  /**
7546
7680
  * Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
7547
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/explicit-timer-delay.md
7681
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/explicit-timer-delay.md
7548
7682
  */
7549
7683
  'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
7550
7684
  /**
7551
7685
  * Enforce a case style for filenames and directory names.
7552
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/filename-case.md
7686
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/filename-case.md
7553
7687
  */
7554
7688
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
7555
7689
  /**
7556
7690
  * Require identifiers to match a specified regular expression.
7557
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/id-match.md
7691
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/id-match.md
7558
7692
  */
7559
7693
  'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
7560
7694
  /**
7561
7695
  * Enforce specific import styles per module.
7562
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/import-style.md
7696
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/import-style.md
7563
7697
  */
7564
7698
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
7699
+ /**
7700
+ * Enforce consistent indentation in JSON and CSS.
7701
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/indent.md
7702
+ */
7703
+ 'unicorn/indent'?: Linter.RuleEntry<UnicornIndent>;
7565
7704
  /**
7566
7705
  * Prevent usage of variables from outside the scope of isolated functions.
7567
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/isolated-functions.md
7706
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/isolated-functions.md
7568
7707
  */
7569
7708
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
7570
7709
  /**
7571
7710
  * Enforce a consistent style for optional loop sources.
7572
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/iteration-fallback-style.md
7711
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/iteration-fallback-style.md
7573
7712
  */
7574
7713
  'unicorn/iteration-fallback-style'?: Linter.RuleEntry<UnicornIterationFallbackStyle>;
7714
+ /**
7715
+ * Enforce a case style for data keys.
7716
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/key-name-casing.md
7717
+ */
7718
+ 'unicorn/key-name-casing'?: Linter.RuleEntry<UnicornKeyNameCasing>;
7575
7719
  /**
7576
7720
  * Require or disallow logical assignment operator shorthand
7577
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/logical-assignment-operators.md
7721
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/logical-assignment-operators.md
7578
7722
  */
7579
7723
  'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
7580
7724
  /**
7581
7725
  * Limit the depth of nested calls.
7582
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/max-nested-calls.md
7726
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/max-nested-calls.md
7583
7727
  */
7584
7728
  'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
7585
7729
  /**
7586
7730
  * Enforce replacements for variable, property, and filenames.
7587
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/name-replacements.md
7731
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/name-replacements.md
7588
7732
  */
7589
7733
  'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
7590
7734
  /**
7591
7735
  * Enforce correct use of `new` for builtin constructors.
7592
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/new-for-builtins.md
7736
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/new-for-builtins.md
7593
7737
  */
7594
7738
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
7595
7739
  /**
7596
7740
  * Enforce specifying rules to disable in `eslint-disable` comments.
7597
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-abusive-eslint-disable.md
7741
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-abusive-eslint-disable.md
7598
7742
  */
7599
7743
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
7600
7744
  /**
7601
7745
  * Disallow recursive access to `this` within getters and setters.
7602
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-accessor-recursion.md
7746
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-accessor-recursion.md
7603
7747
  */
7604
7748
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
7605
7749
  /**
7606
7750
  * Disallow bitwise operators where a logical operator was likely intended.
7607
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-accidental-bitwise-operator.md
7751
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-accidental-bitwise-operator.md
7608
7752
  */
7609
7753
  'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
7610
7754
  /**
7611
7755
  * Disallow anonymous functions and classes as the default export.
7612
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-anonymous-default-export.md
7756
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-anonymous-default-export.md
7613
7757
  */
7614
7758
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
7615
7759
  /**
7616
7760
  * Prevent passing a function reference directly to iterator methods.
7617
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-callback-reference.md
7761
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-callback-reference.md
7618
7762
  */
7619
7763
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
7620
7764
  /**
7621
7765
  * Disallow array accumulation with `Array#concat()` in loops.
7622
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-concat-in-loop.md
7766
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-concat-in-loop.md
7623
7767
  */
7624
7768
  'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
7625
7769
  /**
7626
7770
  * Disallow using reference values as `Array#fill()` values.
7627
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-fill-with-reference-type.md
7771
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-fill-with-reference-type.md
7628
7772
  */
7629
7773
  'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
7630
7774
  /**
7631
7775
  * Disallow `.fill()` after `Array.from({length: …})`.
7632
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-from-fill.md
7776
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-from-fill.md
7633
7777
  */
7634
7778
  'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
7635
7779
  /**
7636
7780
  * Disallow front-of-array mutation.
7637
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-front-mutation.md
7781
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-front-mutation.md
7638
7782
  */
7639
7783
  'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
7640
7784
  /**
7641
7785
  * Disallow using the `this` argument in array methods.
7642
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-method-this-argument.md
7786
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-method-this-argument.md
7643
7787
  */
7644
7788
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
7645
7789
  /**
7646
7790
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
7647
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
7791
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
7648
7792
  * @deprecated
7649
7793
  */
7650
7794
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
7651
7795
  /**
7652
7796
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
7653
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-reduce.md
7797
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-reduce.md
7654
7798
  */
7655
7799
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
7656
7800
  /**
7657
7801
  * Prefer `Array#toReversed()` over `Array#reverse()`.
7658
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-reverse.md
7802
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-reverse.md
7659
7803
  */
7660
7804
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
7661
7805
  /**
7662
7806
  * Prefer `Array#toSorted()` over `Array#sort()`.
7663
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-sort.md
7807
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-sort.md
7664
7808
  */
7665
7809
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
7666
7810
  /**
7667
7811
  * Disallow sorting arrays to get the minimum or maximum value.
7668
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-sort-for-min-max.md
7812
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-sort-for-min-max.md
7669
7813
  */
7670
7814
  'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
7671
7815
  /**
7672
7816
  * Prefer `Array#toSpliced()` over `Array#splice()`.
7673
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-array-splice.md
7817
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-splice.md
7674
7818
  */
7675
7819
  'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
7676
7820
  /**
7677
- * Disallow asterisk prefixes in documentation comments.
7678
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
7821
+ * Disallow asterisk prefixes in multiline comments.
7822
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
7679
7823
  */
7680
7824
  'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
7825
+ /**
7826
+ * Disallow asynchronous callbacks in synchronous iterator helpers.
7827
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-async-iterator-callback.md
7828
+ */
7829
+ 'unicorn/no-async-iterator-callback'?: Linter.RuleEntry<[]>;
7681
7830
  /**
7682
7831
  * Disallow async functions as `Promise#finally()` callbacks.
7683
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-async-promise-finally.md
7832
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-async-promise-finally.md
7684
7833
  */
7685
7834
  'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
7686
7835
  /**
7687
7836
  * Disallow member access from await expression.
7688
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-await-expression-member.md
7837
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-await-expression-member.md
7689
7838
  */
7690
7839
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
7691
7840
  /**
7692
7841
  * Disallow using `await` in `Promise` method parameters.
7693
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-await-in-promise-methods.md
7842
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-await-in-promise-methods.md
7694
7843
  */
7695
7844
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
7696
7845
  /**
7697
7846
  * Disallow barrel files.
7698
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-barrel-files.md
7847
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-barrel-files.md
7699
7848
  */
7700
7849
  'unicorn/no-barrel-files'?: Linter.RuleEntry<[]>;
7701
7850
  /**
7702
7851
  * Disallow unnecessary `Blob` to `File` conversion.
7703
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-blob-to-file.md
7852
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-blob-to-file.md
7704
7853
  */
7705
7854
  'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
7706
7855
  /**
7707
7856
  * Disallow boolean-returning sort comparators.
7708
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-boolean-sort-comparator.md
7857
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-boolean-sort-comparator.md
7709
7858
  */
7710
7859
  'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
7711
7860
  /**
7712
- * Disallow `break` and `continue` in nested loops and switches inside loops.
7713
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-break-in-nested-loop.md
7861
+ * Disallow `break` and optionally `continue` in nested loops and switches inside loops.
7862
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-break-in-nested-loop.md
7714
7863
  */
7715
- 'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<[]>;
7864
+ 'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<UnicornNoBreakInNestedLoop>;
7716
7865
  /**
7717
7866
  * Prefer drawing canvases directly instead of converting them to images.
7718
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-canvas-to-image.md
7867
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-canvas-to-image.md
7719
7868
  */
7720
7869
  'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
7721
7870
  /**
7722
7871
  * Disallow chained comparisons such as `a < b < c`.
7723
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-chained-comparison.md
7872
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-chained-comparison.md
7724
7873
  */
7725
7874
  'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
7726
7875
  /**
7727
7876
  * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
7728
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-collection-bracket-access.md
7877
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-collection-bracket-access.md
7729
7878
  */
7730
7879
  'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
7731
7880
  /**
7732
7881
  * Disallow dynamic object property existence checks.
7733
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-computed-property-existence-check.md
7882
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-computed-property-existence-check.md
7734
7883
  */
7735
7884
  'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
7885
+ /**
7886
+ * Disallow conflicting CSS query and HTML form constraints.
7887
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-conflicting-constraints.md
7888
+ */
7889
+ 'unicorn/no-conflicting-constraints'?: Linter.RuleEntry<[]>;
7736
7890
  /**
7737
7891
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
7738
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-confusing-array-splice.md
7892
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-confusing-array-splice.md
7739
7893
  */
7740
7894
  'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
7741
7895
  /**
7742
7896
  * Disallow confusing uses of `Array#with()`.
7743
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-confusing-array-with.md
7897
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-confusing-array-with.md
7744
7898
  */
7745
7899
  'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
7746
7900
  /**
7747
7901
  * Do not use leading/trailing space between `console.log` parameters.
7748
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-console-spaces.md
7902
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-console-spaces.md
7749
7903
  */
7750
7904
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
7751
7905
  /**
7752
7906
  * Disallow arithmetic and bitwise operations that always evaluate to `0`.
7753
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-constant-zero-expression.md
7907
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-constant-zero-expression.md
7754
7908
  */
7755
7909
  'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
7756
7910
  /**
7757
7911
  * Disallow declarations before conditional early exits when they are only used after the exit.
7758
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-declarations-before-early-exit.md
7912
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-declarations-before-early-exit.md
7759
7913
  */
7760
7914
  'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
7915
+ /**
7916
+ * Moved to `eslint-cssicorn` as `cssicorn/no-deprecated-features`.
7917
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-deprecated-css-features
7918
+ * @deprecated
7919
+ */
7920
+ 'unicorn/no-deprecated-css-features'?: Linter.RuleEntry<[]>;
7761
7921
  /**
7762
7922
  * Do not use `document.cookie` directly.
7763
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-document-cookie.md
7923
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-document-cookie.md
7764
7924
  */
7765
7925
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
7766
7926
  /**
7767
7927
  * Disallow two comparisons of the same operands that can be combined into one.
7768
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-double-comparison.md
7928
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-double-comparison.md
7769
7929
  */
7770
7930
  'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
7931
+ /**
7932
+ * Moved to `eslint-cssicorn` as `cssicorn/no-duplicate-selectors`.
7933
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-css-selectors
7934
+ * @deprecated
7935
+ */
7936
+ 'unicorn/no-duplicate-css-selectors'?: Linter.RuleEntry<[]>;
7937
+ /**
7938
+ * Moved to `eslint-cssicorn` as `cssicorn/no-duplicate-font-family-names`.
7939
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-font-family-names
7940
+ * @deprecated
7941
+ */
7942
+ 'unicorn/no-duplicate-font-family-names'?: Linter.RuleEntry<[]>;
7771
7943
  /**
7772
7944
  * Disallow duplicate adjacent branches in if chains.
7773
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-if-branches.md
7945
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-if-branches.md
7774
7946
  */
7775
7947
  'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
7776
7948
  /**
7777
7949
  * Disallow adjacent duplicate operands in logical expressions.
7778
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-logical-operands.md
7950
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-logical-operands.md
7779
7951
  */
7780
7952
  'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
7781
7953
  /**
7782
7954
  * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
7783
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-loops.md
7955
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-loops.md
7784
7956
  */
7785
7957
  'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
7786
7958
  /**
7787
7959
  * Disallow duplicate values in `Set` constructor array literals.
7788
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-duplicate-set-values.md
7960
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-set-values.md
7789
7961
  */
7790
7962
  'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
7791
7963
  /**
7792
7964
  * Disallow empty files.
7793
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-empty-file.md
7965
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-empty-file.md
7794
7966
  */
7795
7967
  'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
7968
+ /**
7969
+ * Disallow empty link text in Markdown.
7970
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-empty-link-text.md
7971
+ */
7972
+ 'unicorn/no-empty-link-text'?: Linter.RuleEntry<[]>;
7796
7973
  /**
7797
7974
  * Disallow assigning to built-in error properties.
7798
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-error-property-assignment.md
7975
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-error-property-assignment.md
7799
7976
  */
7800
7977
  'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
7801
7978
  /**
7802
7979
  * Disallow exports in scripts.
7803
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-exports-in-scripts.md
7980
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-exports-in-scripts.md
7804
7981
  */
7805
7982
  'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
7806
7983
  /**
7807
7984
  * Prefer `for…of` over the `forEach` method.
7808
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-for-each.md
7985
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-for-each.md
7809
7986
  */
7810
7987
  'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
7811
7988
  /**
7812
7989
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
7813
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-for-loop.md
7990
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-for-loop.md
7814
7991
  */
7815
7992
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
7816
7993
  /**
7817
7994
  * Disallow assigning properties on the global object.
7818
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-global-object-property-assignment.md
7995
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-global-object-property-assignment.md
7819
7996
  */
7820
7997
  'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
7821
7998
  /**
7822
- * Replaced by `unicorn/prefer-unicode-code-point-escapes` which covers more cases.
7823
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
7999
+ * Replaced by `unicorn/prefer-literal-ascii` and `unicorn/prefer-unicode-code-point-escapes`, which cover more cases.
8000
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
7824
8001
  * @deprecated
7825
8002
  */
7826
8003
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
7827
8004
  /**
7828
8005
  * Disallow immediate mutation after variable assignment.
7829
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-immediate-mutation.md
8006
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-immediate-mutation.md
7830
8007
  */
7831
- 'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>;
8008
+ 'unicorn/no-immediate-mutation'?: Linter.RuleEntry<UnicornNoImmediateMutation>;
7832
8009
  /**
7833
8010
  * Disallow impossible comparisons against `.length` or `.size`.
7834
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-impossible-length-comparison.md
8011
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-impossible-length-comparison.md
7835
8012
  */
7836
8013
  'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
8014
+ /**
8015
+ * Disallow class accessors that hide an inherited getter or setter.
8016
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-incomplete-accessor-override.md
8017
+ */
8018
+ 'unicorn/no-incomplete-accessor-override'?: Linter.RuleEntry<[]>;
7837
8019
  /**
7838
8020
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
7839
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-incorrect-query-selector.md
8021
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-incorrect-query-selector.md
7840
8022
  */
7841
8023
  'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
7842
8024
  /**
7843
8025
  * Disallow incorrect template literal interpolation syntax.
7844
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-incorrect-template-string-interpolation.md
8026
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-incorrect-template-string-interpolation.md
7845
8027
  */
7846
8028
  'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
8029
+ /**
8030
+ * Disallow ineffective CSP directives in `<meta>` elements.
8031
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-ineffective-csp-directives.md
8032
+ */
8033
+ 'unicorn/no-ineffective-csp-directives'?: Linter.RuleEntry<[]>;
7847
8034
  /**
7848
8035
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
7849
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
8036
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
7850
8037
  * @deprecated
7851
8038
  */
7852
8039
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
7853
8040
  /**
7854
8041
  * Disallow `instanceof` with built-in objects
7855
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-instanceof-builtins.md
8042
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-instanceof-builtins.md
7856
8043
  */
7857
8044
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
7858
8045
  /**
7859
8046
  * Disallow calling functions and constructors with an invalid number of arguments.
7860
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-argument-count.md
8047
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-argument-count.md
7861
8048
  */
7862
8049
  'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
8050
+ /**
8051
+ * Disallow invalid values for HTML boolean attributes.
8052
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-boolean-attribute-value.md
8053
+ */
8054
+ 'unicorn/no-invalid-boolean-attribute-value'?: Linter.RuleEntry<[]>;
7863
8055
  /**
7864
8056
  * Disallow comparing a single character from a string to a multi-character string.
7865
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-character-comparison.md
8057
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-character-comparison.md
7866
8058
  */
7867
8059
  'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
8060
+ /**
8061
+ * Disallow invalid DOM tokens.
8062
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-dom-token.md
8063
+ */
8064
+ 'unicorn/no-invalid-dom-token'?: Linter.RuleEntry<[]>;
7868
8065
  /**
7869
8066
  * Disallow invalid options in `fetch()` and `new Request()`.
7870
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-fetch-options.md
8067
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-fetch-options.md
7871
8068
  */
7872
8069
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
7873
8070
  /**
7874
8071
  * Disallow invalid `accept` values on file inputs.
7875
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-file-input-accept.md
8072
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-file-input-accept.md
7876
8073
  */
7877
8074
  'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
8075
+ /**
8076
+ * Disallow invalid subresource integrity metadata.
8077
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-integrity.md
8078
+ */
8079
+ 'unicorn/no-invalid-integrity'?: Linter.RuleEntry<[]>;
8080
+ /**
8081
+ * Disallow invalid or ignored Intl options.
8082
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-intl-options.md
8083
+ */
8084
+ 'unicorn/no-invalid-intl-options'?: Linter.RuleEntry<[]>;
8085
+ /**
8086
+ * Moved to `eslint-cssicorn` as `cssicorn/no-invalid-media-features`.
8087
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-invalid-media-features
8088
+ * @deprecated
8089
+ */
8090
+ 'unicorn/no-invalid-media-features'?: Linter.RuleEntry<[]>;
8091
+ /**
8092
+ * Disallow invalid property descriptors.
8093
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-property-descriptor.md
8094
+ */
8095
+ 'unicorn/no-invalid-property-descriptor'?: Linter.RuleEntry<[]>;
7878
8096
  /**
7879
8097
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
7880
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-remove-event-listener.md
8098
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-remove-event-listener.md
7881
8099
  */
7882
8100
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
8101
+ /**
8102
+ * Disallow invalid options in `new Response()`, `Response.json()`, and `Response.redirect()`.
8103
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-response-options.md
8104
+ */
8105
+ 'unicorn/no-invalid-response-options'?: Linter.RuleEntry<[]>;
8106
+ /**
8107
+ * Disallow invalid arguments to `CSSStyleDeclaration#setProperty()`.
8108
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-style-set-property.md
8109
+ */
8110
+ 'unicorn/no-invalid-style-set-property'?: Linter.RuleEntry<[]>;
8111
+ /**
8112
+ * Disallow statically known invalid Temporal arithmetic.
8113
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-temporal-arithmetic.md
8114
+ */
8115
+ 'unicorn/no-invalid-temporal-arithmetic'?: Linter.RuleEntry<[]>;
8116
+ /**
8117
+ * Disallow invalid protocol strings in comparisons with `URL#protocol`.
8118
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-url-protocol-comparison.md
8119
+ */
8120
+ 'unicorn/no-invalid-url-protocol-comparison'?: Linter.RuleEntry<[]>;
7883
8121
  /**
7884
8122
  * Disallow invalid implementations of well-known symbol methods.
7885
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
8123
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
7886
8124
  */
7887
8125
  'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
8126
+ /**
8127
+ * Disallow `javascript:` URLs in Markdown.
8128
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-javascript-url.md
8129
+ */
8130
+ 'unicorn/no-javascript-url'?: Linter.RuleEntry<[]>;
7888
8131
  /**
7889
8132
  * Disallow identifiers starting with `new` or `class`.
7890
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-keyword-prefix.md
8133
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-keyword-prefix.md
7891
8134
  */
7892
8135
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
7893
8136
  /**
7894
8137
  * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
7895
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-late-current-target-access.md
8138
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-late-current-target-access.md
7896
8139
  */
7897
8140
  'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
7898
8141
  /**
7899
8142
  * Disallow event-control method calls after the synchronous event dispatch has finished.
7900
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-late-event-control.md
8143
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-late-event-control.md
7901
8144
  */
7902
8145
  'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
8146
+ /**
8147
+ * Disallow empty lines at the beginning of a file.
8148
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-leading-empty-lines.md
8149
+ */
8150
+ 'unicorn/no-leading-empty-lines'?: Linter.RuleEntry<[]>;
7903
8151
  /**
7904
8152
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
7905
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
8153
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
7906
8154
  * @deprecated
7907
8155
  */
7908
8156
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
7909
8157
  /**
7910
8158
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
7911
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-lonely-if.md
8159
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-lonely-if.md
7912
8160
  */
7913
8161
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
7914
8162
  /**
7915
8163
  * Disallow mutating a loop iterable during iteration.
7916
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-loop-iterable-mutation.md
8164
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-loop-iterable-mutation.md
7917
8165
  */
7918
8166
  'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
8167
+ /**
8168
+ * Disallow numeric literals that lose precision when represented as IEEE 754 binary64 values.
8169
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-loss-of-precision.md
8170
+ */
8171
+ 'unicorn/no-loss-of-precision'?: Linter.RuleEntry<[]>;
7919
8172
  /**
7920
8173
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
7921
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-magic-array-flat-depth.md
8174
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-magic-array-flat-depth.md
7922
8175
  */
7923
8176
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
7924
8177
  /**
7925
8178
  * Disallow manually wrapped comments.
7926
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-manually-wrapped-comments.md
8179
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-manually-wrapped-comments.md
7927
8180
  */
7928
8181
  'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
7929
8182
  /**
7930
8183
  * Disallow checking a Map key before accessing a different key.
7931
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-mismatched-map-key.md
8184
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-mismatched-map-key.md
7932
8185
  */
7933
8186
  'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
7934
8187
  /**
7935
8188
  * Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
7936
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-misrefactored-assignment.md
8189
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-misrefactored-assignment.md
7937
8190
  */
7938
8191
  'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
7939
8192
  /**
7940
8193
  * Disallow references to missing local resources.
7941
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-missing-local-resource.md
8194
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-missing-local-resource.md
7942
8195
  */
7943
8196
  'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>;
7944
8197
  /**
7945
8198
  * Disallow calling Promise executor resolver functions more than once on the same execution path.
7946
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-multiple-promise-resolver-calls.md
8199
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-multiple-promise-resolver-calls.md
7947
8200
  */
7948
8201
  'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>;
7949
8202
  /**
7950
8203
  * Disallow named usage of default import and export.
7951
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-named-default.md
8204
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-named-default.md
7952
8205
  */
7953
8206
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
7954
8207
  /**
7955
8208
  * Disallow negated array predicate calls.
7956
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negated-array-predicate.md
8209
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negated-array-predicate.md
7957
8210
  */
7958
8211
  'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
7959
8212
  /**
7960
8213
  * Disallow negated comparisons.
7961
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negated-comparison.md
8214
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negated-comparison.md
7962
8215
  */
7963
8216
  'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
7964
8217
  /**
7965
8218
  * Disallow negated conditions.
7966
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negated-condition.md
8219
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negated-condition.md
7967
8220
  */
7968
8221
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
7969
8222
  /**
7970
8223
  * Disallow negated expression in equality check.
7971
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-negation-in-equality-check.md
8224
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negation-in-equality-check.md
7972
8225
  */
7973
8226
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
7974
8227
  /**
7975
8228
  * Disallow nested ternary expressions.
7976
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-nested-ternary.md
8229
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-nested-ternary.md
7977
8230
  */
7978
8231
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
8232
+ /**
8233
+ * Moved to `eslint-cssicorn` as `cssicorn/no-nesting-with-mixed-specificity`.
8234
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-nesting-with-mixed-specificity
8235
+ * @deprecated
8236
+ */
8237
+ 'unicorn/no-nesting-with-mixed-specificity'?: Linter.RuleEntry<[]>;
7979
8238
  /**
7980
8239
  * Disallow `new Array()`.
7981
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-new-array.md
8240
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-new-array.md
7982
8241
  */
7983
8242
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
7984
8243
  /**
7985
8244
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
7986
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-new-buffer.md
8245
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-new-buffer.md
7987
8246
  */
7988
8247
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
7989
8248
  /**
7990
8249
  * Disallow non-function values with function-style verb prefixes.
7991
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-non-function-verb-prefix.md
8250
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-non-function-verb-prefix.md
7992
8251
  */
7993
8252
  'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
7994
8253
  /**
7995
8254
  * Disallow non-standard properties on built-in objects.
7996
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-nonstandard-builtin-properties.md
8255
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-nonstandard-builtin-properties.md
7997
8256
  */
7998
8257
  'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
7999
8258
  /**
8000
8259
  * Disallow the use of the `null` literal.
8001
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-null.md
8260
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-null.md
8002
8261
  */
8003
8262
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
8004
8263
  /**
8005
8264
  * Disallow the use of objects as default parameters.
8006
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-object-as-default-parameter.md
8265
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-object-as-default-parameter.md
8007
8266
  */
8008
8267
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
8009
8268
  /**
8010
8269
  * Disallow `Object` methods with `Map` or `Set`.
8011
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-object-methods-with-collections.md
8270
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-object-methods-with-collections.md
8012
8271
  */
8013
8272
  'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
8014
8273
  /**
8015
8274
  * Disallow optional chaining on undeclared variables.
8016
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
8275
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
8017
8276
  */
8018
8277
  'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
8278
+ /**
8279
+ * Disallow ineffective `preventDefault()` calls in passive event listeners.
8280
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-prevent-default-in-passive-listener.md
8281
+ */
8282
+ 'unicorn/no-prevent-default-in-passive-listener'?: Linter.RuleEntry<[]>;
8019
8283
  /**
8020
8284
  * Disallow `process.exit()`.
8021
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-process-exit.md
8285
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-process-exit.md
8022
8286
  */
8023
8287
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
8024
8288
  /**
8025
8289
  * Disallow comparisons made redundant by an equality check in the same logical AND.
8026
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-redundant-comparison.md
8290
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-redundant-comparison.md
8027
8291
  */
8028
8292
  'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
8293
+ /**
8294
+ * Moved to `eslint-cssicorn` as `cssicorn/no-redundant-nested-style-rules`.
8295
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-redundant-nested-style-rules
8296
+ * @deprecated
8297
+ */
8298
+ 'unicorn/no-redundant-nested-style-rules'?: Linter.RuleEntry<[]>;
8029
8299
  /**
8030
8300
  * Disallow using the return value of `Array#push()` and `Array#unshift()`.
8031
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-return-array-push.md
8301
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-return-array-push.md
8032
8302
  */
8033
8303
  'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
8034
8304
  /**
8035
8305
  * Disallow selector syntax in DOM names.
8036
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-selector-as-dom-name.md
8306
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-selector-as-dom-name.md
8037
8307
  */
8038
8308
  'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
8039
8309
  /**
8040
8310
  * Disallow shorthand properties that override related longhand properties.
8041
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-shorthand-property-overrides.md
8311
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-shorthand-property-overrides.md
8042
8312
  */
8043
8313
  'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>;
8044
8314
  /**
8045
8315
  * Disallow passing single-element arrays to `Promise` methods.
8046
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-single-promise-in-promise-methods.md
8316
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-single-promise-in-promise-methods.md
8047
8317
  */
8048
8318
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
8049
8319
  /**
8050
8320
  * Disallow classes that only have static members.
8051
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-static-only-class.md
8321
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-static-only-class.md
8052
8322
  */
8053
8323
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
8054
8324
  /**
8055
8325
  * Prefer comparing values directly over subtracting and comparing to `0`.
8056
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-subtraction-comparison.md
8326
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-subtraction-comparison.md
8057
8327
  */
8058
8328
  'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
8059
8329
  /**
8060
8330
  * Disallow `then` property.
8061
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-thenable.md
8331
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-thenable.md
8062
8332
  */
8063
8333
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
8064
8334
  /**
8065
8335
  * Disallow assigning `this` to a variable.
8066
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-this-assignment.md
8336
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-this-assignment.md
8067
8337
  */
8068
8338
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
8069
8339
  /**
8070
8340
  * Disallow `this` outside of classes.
8071
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-this-outside-of-class.md
8341
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-this-outside-of-class.md
8072
8342
  */
8073
8343
  'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
8074
8344
  /**
8075
8345
  * Disallow assigning to top-level variables from inside functions.
8076
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-top-level-assignment-in-function.md
8346
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-top-level-assignment-in-function.md
8077
8347
  */
8078
8348
  'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
8079
8349
  /**
8080
8350
  * Disallow top-level side effects in exported modules.
8081
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-top-level-side-effects.md
8351
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-top-level-side-effects.md
8082
8352
  */
8083
8353
  'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>;
8084
8354
  /**
8085
8355
  * Disallow `all` as a transition property.
8086
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-transition-all.md
8356
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-transition-all.md
8087
8357
  */
8088
8358
  'unicorn/no-transition-all'?: Linter.RuleEntry<[]>;
8089
8359
  /**
8090
8360
  * Disallow comparing `undefined` using `typeof`.
8091
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-typeof-undefined.md
8361
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-typeof-undefined.md
8092
8362
  */
8093
8363
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
8094
8364
  /**
8095
8365
  * Disallow referencing methods without calling them.
8096
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-uncalled-method.md
8366
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-uncalled-method.md
8097
8367
  */
8098
8368
  'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
8099
8369
  /**
8100
8370
  * Require class members to be declared.
8101
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-undeclared-class-members.md
8371
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-undeclared-class-members.md
8102
8372
  */
8103
8373
  'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
8374
+ /**
8375
+ * Moved to `eslint-cssicorn` as `cssicorn/no-unknown-annotations`.
8376
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-css-annotations
8377
+ * @deprecated
8378
+ */
8379
+ 'unicorn/no-unknown-css-annotations'?: Linter.RuleEntry<[]>;
8380
+ /**
8381
+ * Moved to `eslint-cssicorn` as `cssicorn/no-unknown-pseudo-selectors`.
8382
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-pseudo-selectors
8383
+ * @deprecated
8384
+ */
8385
+ 'unicorn/no-unknown-pseudo-selectors'?: Linter.RuleEntry<[]>;
8104
8386
  /**
8105
8387
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
8106
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-array-flat-depth.md
8388
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-array-flat-depth.md
8107
8389
  */
8108
8390
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
8109
8391
  /**
8110
- * Disallow `Array#flatMap()` callbacks that only wrap a single item.
8111
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-array-flat-map.md
8392
+ * Disallow unnecessary use of `Array#flatMap()`.
8393
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-array-flat-map.md
8112
8394
  */
8113
8395
  'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
8114
8396
  /**
8115
8397
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
8116
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-array-splice-count.md
8398
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-array-splice-count.md
8117
8399
  */
8118
8400
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
8119
8401
  /**
8120
8402
  * Disallow awaiting non-promise values.
8121
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-await.md
8403
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-await.md
8122
8404
  */
8123
8405
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
8124
8406
  /**
8125
8407
  * Disallow unnecessary comparisons against boolean literals.
8126
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-boolean-comparison.md
8408
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-boolean-comparison.md
8127
8409
  */
8128
8410
  'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
8129
8411
  /**
8130
8412
  * Disallow unnecessary options in `fetch()` and `new Request()`.
8131
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-fetch-options.md
8413
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-fetch-options.md
8132
8414
  */
8133
8415
  'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
8134
8416
  /**
8135
8417
  * Disallow unnecessary `globalThis` references.
8136
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-global-this.md
8418
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-global-this.md
8137
8419
  */
8138
8420
  'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
8139
8421
  /**
8140
8422
  * Disallow unnecessary nested ternary expressions.
8141
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-nested-ternary.md
8423
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-nested-ternary.md
8142
8424
  */
8143
8425
  'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
8426
+ /**
8427
+ * Disallow parameters that receive the same value at every call.
8428
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-parameters.md
8429
+ */
8430
+ 'unicorn/no-unnecessary-parameters'?: Linter.RuleEntry<UnicornNoUnnecessaryParameters>;
8144
8431
  /**
8145
8432
  * Enforce the use of built-in methods instead of unnecessary polyfills.
8146
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-polyfills.md
8433
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-polyfills.md
8147
8434
  */
8148
8435
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
8149
8436
  /**
8150
8437
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
8151
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-slice-end.md
8438
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-slice-end.md
8152
8439
  */
8153
8440
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
8154
8441
  /**
8155
8442
  * Disallow `Array#splice()` when simpler alternatives exist.
8156
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-splice.md
8443
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-splice.md
8157
8444
  */
8158
8445
  'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
8159
8446
  /**
8160
8447
  * Disallow `String#trim()` before `String#startsWith()` or `String#endsWith()`.
8161
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unnecessary-string-trim.md
8448
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-string-trim.md
8162
8449
  */
8163
8450
  'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>;
8164
8451
  /**
8165
8452
  * Disallow unreadable array destructuring.
8166
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-array-destructuring.md
8453
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-array-destructuring.md
8167
8454
  */
8168
8455
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
8169
8456
  /**
8170
8457
  * Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
8171
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-for-of-expression.md
8458
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-for-of-expression.md
8172
8459
  */
8173
8460
  'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
8174
8461
  /**
8175
8462
  * Disallow unreadable IIFEs.
8176
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-iife.md
8463
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-iife.md
8177
8464
  */
8178
8465
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
8179
8466
  /**
8180
8467
  * Disallow unreadable `new` expressions.
8181
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-new-expression.md
8468
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-new-expression.md
8182
8469
  */
8183
8470
  'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
8184
8471
  /**
8185
8472
  * Disallow unreadable object destructuring.
8186
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unreadable-object-destructuring.md
8473
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-object-destructuring.md
8187
8474
  */
8188
8475
  'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
8189
8476
  /**
8190
8477
  * Prevent unsafe use of ArrayBuffer view `.buffer`.
8191
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-buffer-conversion.md
8478
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-buffer-conversion.md
8192
8479
  */
8193
8480
  'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
8194
8481
  /**
8195
8482
  * Disallow unsafe DOM HTML APIs.
8196
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-dom-html.md
8483
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-dom-html.md
8197
8484
  */
8198
8485
  'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
8486
+ /**
8487
+ * Disallow known values that JSON serialization cannot represent faithfully.
8488
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-json-serialization.md
8489
+ */
8490
+ 'unicorn/no-unsafe-json-serialization'?: Linter.RuleEntry<[]>;
8199
8491
  /**
8200
8492
  * Disallow reading `.value` from `Promise.allSettled()` results without a fulfilled status guard.
8201
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
8493
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
8202
8494
  */
8203
8495
  'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
8204
8496
  /**
8205
8497
  * Disallow unsafe values as property keys.
8206
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-property-key.md
8498
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-property-key.md
8207
8499
  */
8208
8500
  'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
8209
8501
  /**
8210
8502
  * Disallow interpolation into SQL strings passed to Node’s `node:sqlite` APIs.
8211
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
8503
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
8212
8504
  */
8213
8505
  'unicorn/no-unsafe-sqlite-interpolation'?: Linter.RuleEntry<[]>;
8214
8506
  /**
8215
8507
  * Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
8216
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unsafe-string-replacement.md
8508
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-string-replacement.md
8217
8509
  */
8218
8510
  'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
8219
8511
  /**
8220
- * Disallow ignoring the return value of selected array methods.
8221
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unused-array-method-return.md
8512
+ * Moved to `eslint-cssicorn` as `cssicorn/no-unscoped-nesting-selector`.
8513
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unscoped-css-nesting-selector
8514
+ * @deprecated
8515
+ */
8516
+ 'unicorn/no-unscoped-css-nesting-selector'?: Linter.RuleEntry<[]>;
8517
+ /**
8518
+ * Replaced by `unicorn/no-unused-builtin-method-return` which covers more cases.
8519
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unused-array-method-return
8520
+ * @deprecated
8222
8521
  */
8223
8522
  'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
8523
+ /**
8524
+ * Disallow ignoring the return value of selected built-in methods.
8525
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unused-builtin-method-return.md
8526
+ */
8527
+ 'unicorn/no-unused-builtin-method-return'?: Linter.RuleEntry<[]>;
8528
+ /**
8529
+ * Disallow discarding lazy iterator helpers.
8530
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unused-iterator-helper.md
8531
+ */
8532
+ 'unicorn/no-unused-iterator-helper'?: Linter.RuleEntry<[]>;
8224
8533
  /**
8225
8534
  * Disallow unused object properties.
8226
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-unused-properties.md
8535
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unused-properties.md
8227
8536
  */
8228
8537
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
8538
+ /**
8539
+ * Disallow passing full URLs to `URLSearchParams`.
8540
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-url-in-search-params.md
8541
+ */
8542
+ 'unicorn/no-url-in-search-params'?: Linter.RuleEntry<[]>;
8229
8543
  /**
8230
8544
  * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
8231
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-boolean-cast.md
8545
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-boolean-cast.md
8232
8546
  */
8233
8547
  'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
8234
8548
  /**
8235
8549
  * Disallow useless type coercions of values that are already of the target type.
8236
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-coercion.md
8550
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-coercion.md
8237
8551
  */
8238
8552
  'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
8239
8553
  /**
8240
8554
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
8241
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-collection-argument.md
8555
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-collection-argument.md
8242
8556
  */
8243
8557
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
8244
8558
  /**
8245
8559
  * Disallow useless compound assignments such as `x += 0`.
8246
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-compound-assignment.md
8560
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-compound-assignment.md
8247
8561
  */
8248
8562
  'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
8249
8563
  /**
8250
8564
  * Disallow useless concatenation of literals.
8251
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-concat.md
8565
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-concat.md
8252
8566
  */
8253
8567
  'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
8254
8568
  /**
8255
8569
  * Disallow useless `continue` statements.
8256
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-continue.md
8570
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-continue.md
8257
8571
  */
8258
8572
  'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
8259
8573
  /**
8260
8574
  * Disallow unnecessary existence checks before deletion.
8261
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-delete-check.md
8575
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-delete-check.md
8262
8576
  */
8263
8577
  'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
8264
8578
  /**
8265
8579
  * Disallow `else` after a statement that exits.
8266
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-else.md
8580
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-else.md
8267
8581
  */
8268
8582
  'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
8269
8583
  /**
8270
8584
  * Disallow unnecessary `Error.captureStackTrace(…)`.
8271
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-error-capture-stack-trace.md
8585
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-error-capture-stack-trace.md
8272
8586
  */
8273
8587
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
8274
8588
  /**
8275
8589
  * Disallow useless fallback when spreading in object literals.
8276
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-fallback-in-spread.md
8590
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-fallback-in-spread.md
8277
8591
  */
8278
8592
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
8279
8593
  /**
8280
8594
  * Disallow unnecessary `.toArray()` on iterators.
8281
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-iterator-to-array.md
8595
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-iterator-to-array.md
8282
8596
  */
8283
8597
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
8284
8598
  /**
8285
8599
  * Disallow useless array length check.
8286
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-length-check.md
8600
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-length-check.md
8287
8601
  */
8288
8602
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
8289
8603
  /**
8290
8604
  * Disallow unnecessary operands in logical expressions involving boolean literals.
8291
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-logical-operand.md
8605
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-logical-operand.md
8292
8606
  */
8293
8607
  'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
8294
8608
  /**
8295
8609
  * Disallow useless overrides of class methods.
8296
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-override.md
8610
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-override.md
8297
8611
  */
8298
8612
  'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
8299
8613
  /**
8300
8614
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
8301
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-promise-resolve-reject.md
8615
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-promise-resolve-reject.md
8302
8616
  */
8303
8617
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
8304
8618
  /**
8305
8619
  * Disallow redundant re-exports.
8306
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-re-export.md
8620
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-re-export.md
8307
8621
  */
8308
8622
  'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>;
8309
8623
  /**
8310
8624
  * Disallow simple recursive function calls that can be replaced with a loop.
8311
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-recursion.md
8625
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-recursion.md
8312
8626
  */
8313
8627
  'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
8628
+ /**
8629
+ * Disallow unnecessary `Set` construction around `Set` methods.
8630
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-set-construction.md
8631
+ */
8632
+ 'unicorn/no-useless-set-construction'?: Linter.RuleEntry<[]>;
8314
8633
  /**
8315
8634
  * Disallow unnecessary spread.
8316
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-spread.md
8635
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-spread.md
8317
8636
  */
8318
8637
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
8319
8638
  /**
8320
8639
  * Disallow useless case in switch statements.
8321
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-switch-case.md
8640
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-switch-case.md
8322
8641
  */
8323
8642
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
8324
8643
  /**
8325
8644
  * Disallow useless template literal expressions.
8326
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-template-literals.md
8645
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-template-literals.md
8327
8646
  */
8328
8647
  'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
8329
8648
  /**
8330
8649
  * Disallow useless `undefined`.
8331
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-useless-undefined.md
8650
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-undefined.md
8332
8651
  */
8333
8652
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
8653
+ /**
8654
+ * Disallow returning or exporting resources declared with `using`, including through capturing functions.
8655
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-using-resource-escape.md
8656
+ */
8657
+ 'unicorn/no-using-resource-escape'?: Linter.RuleEntry<[]>;
8334
8658
  /**
8335
8659
  * Disallow the bitwise XOR operator where exponentiation was likely intended.
8336
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-xor-as-exponentiation.md
8660
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-xor-as-exponentiation.md
8337
8661
  */
8338
8662
  'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
8339
8663
  /**
8340
- * Disallow number literals with zero fractions or dangling dots.
8341
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/no-zero-fractions.md
8664
+ * Require consistent decimal numbers without redundant zeros.
8665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-zero-fractions.md
8342
8666
  */
8343
8667
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
8344
8668
  /**
8345
8669
  * Enforce proper case for numeric literals.
8346
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/number-literal-case.md
8670
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/number-literal-case.md
8347
8671
  */
8348
8672
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
8349
8673
  /**
8350
8674
  * Enforce the style of numeric separators by correctly grouping digits.
8351
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/numeric-separators-style.md
8675
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/numeric-separators-style.md
8352
8676
  */
8353
8677
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
8354
8678
  /**
8355
8679
  * Require assignment operator shorthand where possible.
8356
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/operator-assignment.md
8680
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/operator-assignment.md
8357
8681
  */
8358
8682
  'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
8359
8683
  /**
8360
8684
  * Prefer `AbortSignal.any()` over manually forwarding abort events between signals.
8361
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-abort-signal-any.md
8685
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-abort-signal-any.md
8362
8686
  */
8363
8687
  'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
8364
8688
  /**
8365
8689
  * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
8366
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-abort-signal-timeout.md
8690
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-abort-signal-timeout.md
8367
8691
  */
8368
8692
  'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
8369
8693
  /**
8370
8694
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
8371
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-add-event-listener.md
8695
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-add-event-listener.md
8372
8696
  */
8373
8697
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
8374
8698
  /**
8375
8699
  * Prefer an options object over a boolean in `.addEventListener()`.
8376
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-add-event-listener-options.md
8700
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-add-event-listener-options.md
8377
8701
  */
8378
8702
  'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
8379
8703
  /**
8380
8704
  * Prefer `AggregateError` when throwing collected errors.
8381
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-aggregate-error.md
8705
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-aggregate-error.md
8382
8706
  */
8383
8707
  'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
8384
8708
  /**
8385
8709
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
8386
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-find.md
8710
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-find.md
8387
8711
  */
8388
8712
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
8389
8713
  /**
8390
8714
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
8391
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-flat.md
8715
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-flat.md
8392
8716
  */
8393
8717
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
8394
8718
  /**
8395
8719
  * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
8396
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-flat-map.md
8720
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-flat-map.md
8397
8721
  */
8398
8722
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
8399
8723
  /**
8400
- * Prefer `Array.fromAsync()` over `for await…of` array accumulation.
8401
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-from-async.md
8724
+ * Prefer `Array.fromAsync()` over array accumulation loops.
8725
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-from-async.md
8402
8726
  */
8403
8727
  'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
8404
8728
  /**
8405
8729
  * Prefer using the `Array.from()` mapping function argument.
8406
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-from-map.md
8730
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-from-map.md
8407
8731
  */
8408
8732
  'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
8409
8733
  /**
8410
8734
  * Prefer `Array.from({length}, …)` when creating range arrays.
8411
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-from-range.md
8735
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-from-range.md
8412
8736
  */
8413
8737
  'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
8414
8738
  /**
8415
8739
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
8416
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-index-of.md
8740
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-index-of.md
8417
8741
  */
8418
8742
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
8419
8743
  /**
8420
8744
  * Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
8421
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-iterable-methods.md
8745
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-iterable-methods.md
8422
8746
  */
8423
8747
  'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
8424
8748
  /**
8425
8749
  * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
8426
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-last-methods.md
8750
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-last-methods.md
8427
8751
  */
8428
8752
  'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
8429
8753
  /**
8430
8754
  * Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
8431
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-slice.md
8755
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-slice.md
8432
8756
  */
8433
8757
  'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
8434
8758
  /**
8435
8759
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
8436
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-array-some.md
8760
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-some.md
8437
8761
  */
8438
8762
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
8439
8763
  /**
8440
8764
  * Prefer `.at()` method for index access and `String#charAt()`.
8441
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-at.md
8765
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-at.md
8442
8766
  */
8443
8767
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
8444
8768
  /**
8445
8769
  * Prefer `await` over promise chaining.
8446
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-await.md
8770
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-await.md
8447
8771
  */
8448
8772
  'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
8449
8773
  /**
8450
8774
  * Prefer `BigInt` literals over the constructor.
8451
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-bigint-literals.md
8775
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-bigint-literals.md
8452
8776
  */
8453
8777
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
8454
8778
  /**
8455
8779
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
8456
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-blob-reading-methods.md
8780
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-blob-reading-methods.md
8457
8781
  */
8458
8782
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
8459
8783
  /**
8460
8784
  * Prefer block statements over IIFEs used only for scoping.
8461
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-block-statement-over-iife.md
8785
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-block-statement-over-iife.md
8462
8786
  */
8463
8787
  'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
8464
8788
  /**
8465
8789
  * Prefer directly returning boolean expressions over `if` statements.
8466
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-boolean-return.md
8790
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-boolean-return.md
8467
8791
  */
8468
8792
  'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
8469
8793
  /**
8470
8794
  * Prefer class field declarations over `this` assignments in constructors.
8471
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-class-fields.md
8795
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-class-fields.md
8472
8796
  */
8473
8797
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
8474
8798
  /**
8475
8799
  * Prefer using `Element#classList.toggle()` to toggle class names.
8476
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-classlist-toggle.md
8800
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-classlist-toggle.md
8477
8801
  */
8478
8802
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
8479
8803
  /**
8480
8804
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
8481
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-code-point.md
8805
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-code-point.md
8482
8806
  */
8483
8807
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
8484
8808
  /**
8485
- * Prefer early continues over whole-loop conditional wrapping.
8486
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-continue.md
8809
+ * Prefer combining consecutive guards with identical exit statements.
8810
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-combined-guards.md
8811
+ */
8812
+ 'unicorn/prefer-combined-guards'?: Linter.RuleEntry<UnicornPreferCombinedGuards>;
8813
+ /**
8814
+ * Prefer early continues over conditionals wrapping the remainder of the loop body.
8815
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-continue.md
8487
8816
  */
8488
8817
  'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
8489
8818
  /**
8490
8819
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
8491
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-date-now.md
8820
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-date-now.md
8492
8821
  */
8493
8822
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
8494
8823
  /**
8495
- * Prefer default parameters over reassignment.
8496
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-default-parameters.md
8824
+ * Prefer default parameters and destructuring defaults over reassignment and fallback expressions.
8825
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-default-parameters.md
8497
8826
  */
8498
8827
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
8499
8828
  /**
8500
8829
  * Prefer direct iteration over default iterator method calls.
8501
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-direct-iteration.md
8830
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-direct-iteration.md
8502
8831
  */
8503
8832
  'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
8504
8833
  /**
8505
8834
  * Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
8506
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dispose.md
8835
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dispose.md
8507
8836
  */
8508
8837
  'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
8509
8838
  /**
8510
8839
  * Prefer `Element#append()` over `Node#appendChild()`.
8511
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-append.md
8840
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-append.md
8512
8841
  */
8513
8842
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
8514
8843
  /**
8515
8844
  * Renamed to `unicorn/dom-node-dataset`.
8516
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
8845
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
8517
8846
  * @deprecated
8518
8847
  */
8519
8848
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
8520
8849
  /**
8521
8850
  * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
8522
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-html-methods.md
8851
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-html-methods.md
8523
8852
  */
8524
8853
  'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
8525
8854
  /**
8526
8855
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
8527
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-remove.md
8856
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-remove.md
8528
8857
  */
8529
8858
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
8530
8859
  /**
8531
- * Prefer `.replaceChildren()` when emptying DOM children.
8532
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-replace-children.md
8860
+ * Prefer `.replaceChildren()` when replacing DOM children.
8861
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-replace-children.md
8533
8862
  */
8534
8863
  'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
8535
8864
  /**
8536
8865
  * Prefer `.textContent` over `.innerText`.
8537
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-dom-node-text-content.md
8866
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-text-content.md
8538
8867
  */
8539
8868
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
8540
8869
  /**
8541
- * Prefer early returns over full-function conditional wrapping.
8542
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-early-return.md
8870
+ * Prefer early returns over conditionals wrapping the remainder of the function body.
8871
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-early-return.md
8543
8872
  */
8544
8873
  'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
8545
8874
  /**
8546
8875
  * Prefer `else if` over adjacent `if` statements with related conditions.
8547
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-else-if.md
8876
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-else-if.md
8548
8877
  */
8549
8878
  'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
8550
8879
  /**
8551
8880
  * Prefer `Error.isError()` when checking for errors.
8552
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-error-is-error.md
8881
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-error-is-error.md
8553
8882
  */
8554
8883
  'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
8884
+ /**
8885
+ * Prefer escape sequences for irregular whitespace characters.
8886
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-escaped-irregular-whitespace.md
8887
+ */
8888
+ 'unicorn/prefer-escaped-irregular-whitespace'?: Linter.RuleEntry<[]>;
8555
8889
  /**
8556
8890
  * Prefer `EventTarget` over `EventEmitter`.
8557
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-event-target.md
8891
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-event-target.md
8558
8892
  */
8559
8893
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
8560
8894
  /**
8561
- * Prefer explicit viewport units.
8562
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-explicit-viewport-units.md
8895
+ * Moved to `eslint-cssicorn` as `cssicorn/prefer-explicit-viewport-units`.
8896
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-explicit-viewport-units
8897
+ * @deprecated
8563
8898
  */
8564
- 'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<UnicornPreferExplicitViewportUnits>;
8899
+ 'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<[]>;
8565
8900
  /**
8566
8901
  * Prefer `export…from` when re-exporting.
8567
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-export-from.md
8902
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-export-from.md
8568
8903
  */
8569
8904
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
8570
8905
  /**
8571
8906
  * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
8572
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-flat-math-min-max.md
8907
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-flat-math-min-max.md
8573
8908
  */
8574
8909
  'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
8575
8910
  /**
8576
8911
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
8577
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-get-or-insert-computed.md
8912
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-get-or-insert-computed.md
8578
8913
  */
8579
8914
  'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
8580
8915
  /**
8581
8916
  * Prefer global numeric constants over `Number` static properties.
8582
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-global-number-constants.md
8917
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-global-number-constants.md
8583
8918
  */
8584
8919
  'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
8585
8920
  /**
8586
8921
  * Prefer `globalThis` over `window`, `self`, and `global`.
8587
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-global-this.md
8922
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-global-this.md
8588
8923
  */
8589
8924
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
8590
8925
  /**
8591
- * Prefer `Object.groupBy()` or `Map.groupBy()` over reduce-based grouping.
8592
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-group-by.md
8926
+ * Prefer `Object.groupBy()` or `Map.groupBy()` over manual grouping.
8927
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-group-by.md
8593
8928
  */
8594
8929
  'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
8595
8930
  /**
8596
8931
  * Prefer `.has()` when checking existence.
8597
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-has-check.md
8932
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-has-check.md
8598
8933
  */
8599
8934
  'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
8600
8935
  /**
8601
8936
  * Prefer moving code shared by all branches of an `if` statement out of the branches.
8602
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-hoisting-branch-code.md
8937
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-hoisting-branch-code.md
8603
8938
  */
8604
8939
  'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
8605
8940
  /**
8606
8941
  * Prefer HTTPS over HTTP.
8607
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-https.md
8942
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-https.md
8608
8943
  */
8609
8944
  'unicorn/prefer-https'?: Linter.RuleEntry<UnicornPreferHttps>;
8610
8945
  /**
8611
8946
  * Prefer identifiers over string literals in import and export specifiers.
8612
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
8947
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
8613
8948
  */
8614
8949
  'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
8615
8950
  /**
8616
8951
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
8617
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-import-meta-properties.md
8952
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-import-meta-properties.md
8618
8953
  */
8619
8954
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
8620
8955
  /**
8621
8956
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
8622
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-includes.md
8957
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-includes.md
8623
8958
  */
8624
8959
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
8625
8960
  /**
8626
8961
  * Prefer `.includes()` over repeated equality comparisons.
8627
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
8962
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
8628
8963
  */
8629
8964
  'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
8630
8965
  /**
8631
8966
  * Prefer passing iterables directly to constructors instead of filling empty collections.
8632
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterable-in-constructor.md
8967
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterable-in-constructor.md
8633
8968
  */
8634
8969
  'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
8635
8970
  /**
8636
8971
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
8637
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-concat.md
8972
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-concat.md
8638
8973
  */
8639
8974
  'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
8640
8975
  /**
8641
8976
  * Prefer iterator helpers over temporary arrays from iterators.
8642
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-helpers.md
8977
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-helpers.md
8643
8978
  */
8644
8979
  'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
8645
8980
  /**
8646
8981
  * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
8647
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-to-array.md
8982
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-to-array.md
8648
8983
  */
8649
8984
  'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
8650
8985
  /**
8651
8986
  * Prefer moving `.toArray()` to the end of iterator helper chains.
8652
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-iterator-to-array-at-end.md
8987
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-to-array-at-end.md
8653
8988
  */
8654
8989
  'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
8990
+ /**
8991
+ * Prefer `Iterator.zip()` over parallel-array indexing.
8992
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-zip.md
8993
+ */
8994
+ 'unicorn/prefer-iterator-zip'?: Linter.RuleEntry<[]>;
8995
+ /**
8996
+ * Prefer JSON imports over reading and parsing JSON files.
8997
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-json-import.md
8998
+ */
8999
+ 'unicorn/prefer-json-import'?: Linter.RuleEntry<[]>;
8655
9000
  /**
8656
9001
  * Renamed to `unicorn/consistent-json-file-read`.
8657
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
9002
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
8658
9003
  * @deprecated
8659
9004
  */
8660
9005
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
8661
9006
  /**
8662
9007
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
8663
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-keyboard-event-key.md
9008
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-keyboard-event-key.md
8664
9009
  */
8665
9010
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
9011
+ /**
9012
+ * Prefer literal printable ASCII characters over escape sequences.
9013
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-literal-ascii.md
9014
+ */
9015
+ 'unicorn/prefer-literal-ascii'?: Linter.RuleEntry<[]>;
8666
9016
  /**
8667
9017
  * Prefer `location.assign()` over assigning to `location.href`.
8668
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-location-assign.md
9018
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-location-assign.md
8669
9019
  */
8670
9020
  'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
8671
9021
  /**
8672
9022
  * Prefer using a logical operator over a ternary.
8673
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-logical-operator-over-ternary.md
9023
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-logical-operator-over-ternary.md
8674
9024
  */
8675
9025
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
8676
9026
  /**
8677
9027
  * Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
8678
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-map-from-entries.md
9028
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-map-from-entries.md
8679
9029
  */
8680
9030
  'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
8681
9031
  /**
8682
9032
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
8683
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-abs.md
9033
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-abs.md
8684
9034
  */
8685
9035
  'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
8686
9036
  /**
8687
9037
  * Prefer `Math` constants over their approximate numeric values.
8688
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-constants.md
9038
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-constants.md
8689
9039
  */
8690
9040
  'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
8691
9041
  /**
8692
9042
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
8693
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-min-max.md
9043
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-min-max.md
8694
9044
  */
8695
9045
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
8696
9046
  /**
8697
9047
  * Prefer `Math.trunc()` for truncating numbers.
8698
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-math-trunc.md
9048
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-trunc.md
8699
9049
  */
8700
9050
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
9051
+ /**
9052
+ * Moved to `eslint-cssicorn` as `cssicorn/prefer-media-feature-range-syntax`.
9053
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-media-feature-range-syntax
9054
+ * @deprecated
9055
+ */
9056
+ 'unicorn/prefer-media-feature-range-syntax'?: Linter.RuleEntry<[]>;
8701
9057
  /**
8702
9058
  * Prefer moving ternaries into the minimal varying part of an expression.
8703
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-minimal-ternary.md
9059
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-minimal-ternary.md
8704
9060
  */
8705
9061
  'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
8706
9062
  /**
8707
9063
  * Prefer modern DOM APIs.
8708
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-modern-dom-apis.md
9064
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-modern-dom-apis.md
8709
9065
  */
8710
9066
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
8711
9067
  /**
8712
9068
  * Prefer modern `Math` APIs over legacy patterns.
8713
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-modern-math-apis.md
9069
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-modern-math-apis.md
8714
9070
  */
8715
9071
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
8716
9072
  /**
8717
9073
  * Prefer JavaScript modules (ESM) over CommonJS.
8718
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-module.md
9074
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-module.md
8719
9075
  */
8720
9076
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
8721
9077
  /**
8722
9078
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
8723
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-native-coercion-functions.md
9079
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-native-coercion-functions.md
8724
9080
  */
8725
9081
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
8726
9082
  /**
8727
9083
  * Prefer negative index over `.length - index` when possible.
8728
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-negative-index.md
9084
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-negative-index.md
8729
9085
  */
8730
9086
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
8731
9087
  /**
8732
9088
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
8733
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-node-protocol.md
9089
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-node-protocol.md
8734
9090
  */
8735
9091
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
8736
9092
  /**
8737
9093
  * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
8738
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-number-coercion.md
9094
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-number-coercion.md
8739
9095
  */
8740
9096
  'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
8741
9097
  /**
8742
9098
  * Prefer `Number.isSafeInteger()` over integer checks.
8743
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-number-is-safe-integer.md
9099
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-number-is-safe-integer.md
8744
9100
  */
8745
9101
  'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
8746
9102
  /**
8747
9103
  * Prefer `Number` static methods over global functions and optionally static properties over global constants.
8748
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-number-properties.md
9104
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-number-properties.md
8749
9105
  */
8750
9106
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
8751
9107
  /**
8752
9108
  * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
8753
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-define-properties.md
9109
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-define-properties.md
8754
9110
  */
8755
9111
  'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
8756
9112
  /**
8757
9113
  * Prefer object destructuring defaults over default object literals with spread.
8758
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-destructuring-defaults.md
9114
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-destructuring-defaults.md
8759
9115
  */
8760
9116
  'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
8761
9117
  /**
8762
9118
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
8763
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-from-entries.md
9119
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-from-entries.md
8764
9120
  */
8765
9121
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
8766
9122
  /**
8767
9123
  * Prefer the most specific `Object` iterable method.
8768
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-object-iterable-methods.md
9124
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-iterable-methods.md
8769
9125
  */
8770
9126
  'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
8771
9127
  /**
8772
9128
  * Prefer observer APIs over resize and scroll listeners with layout reads.
8773
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-observer-apis.md
9129
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-observer-apis.md
8774
9130
  */
8775
9131
  'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
8776
9132
  /**
8777
9133
  * Prefer omitting the `catch` binding parameter.
8778
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-optional-catch-binding.md
9134
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-optional-catch-binding.md
8779
9135
  */
8780
9136
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
8781
9137
  /**
8782
9138
  * Prefer `Path2D` for repeatedly drawn canvas paths.
8783
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-path2d.md
9139
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-path2d.md
8784
9140
  */
8785
9141
  'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
8786
9142
  /**
8787
9143
  * Prefer private class fields over the underscore-prefix convention.
8788
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-private-class-fields.md
9144
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-private-class-fields.md
8789
9145
  */
8790
9146
  'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
9147
+ /**
9148
+ * Prefer `Promise.resolve()` and `Promise.reject()` over trivial `new Promise()` calls.
9149
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-promise-static-methods.md
9150
+ */
9151
+ 'unicorn/prefer-promise-static-methods'?: Linter.RuleEntry<[]>;
8791
9152
  /**
8792
9153
  * Prefer `Promise.try()` over promise-wrapping boilerplate.
8793
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-promise-try.md
9154
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-promise-try.md
8794
9155
  */
8795
9156
  'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
8796
9157
  /**
8797
9158
  * Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
8798
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-promise-with-resolvers.md
9159
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-promise-with-resolvers.md
8799
9160
  */
8800
9161
  'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
8801
9162
  /**
8802
9163
  * Prefer borrowing methods from the prototype instead of the instance.
8803
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-prototype-methods.md
9164
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-prototype-methods.md
8804
9165
  */
8805
9166
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
8806
9167
  /**
8807
9168
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
8808
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-query-selector.md
9169
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-query-selector.md
8809
9170
  */
8810
9171
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
8811
9172
  /**
8812
9173
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
8813
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-queue-microtask.md
9174
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-queue-microtask.md
8814
9175
  */
8815
9176
  'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
8816
9177
  /**
8817
9178
  * Prefer `Reflect.apply()` over `Function#apply()`.
8818
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-reflect-apply.md
9179
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-reflect-apply.md
8819
9180
  */
8820
9181
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
8821
9182
  /**
8822
9183
  * Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
8823
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-regexp-escape.md
9184
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-regexp-escape.md
8824
9185
  */
8825
9186
  'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
8826
9187
  /**
8827
9188
  * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
8828
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-regexp-test.md
9189
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-regexp-test.md
8829
9190
  */
8830
9191
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
8831
9192
  /**
8832
9193
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
8833
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-response-static-json.md
9194
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-response-static-json.md
8834
9195
  */
8835
9196
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
8836
9197
  /**
8837
9198
  * Prefer `:scope` when using element query selector methods.
8838
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-scoped-selector.md
9199
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-scoped-selector.md
8839
9200
  */
8840
9201
  'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
8841
9202
  /**
8842
9203
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
8843
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-set-has.md
9204
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-set-has.md
8844
9205
  */
8845
9206
  'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
8846
9207
  /**
8847
9208
  * Prefer `Set` methods for Set operations.
8848
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-set-methods.md
9209
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-set-methods.md
8849
9210
  */
8850
9211
  'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
8851
9212
  /**
8852
9213
  * Prefer using `Set#size` instead of `Array#length`.
8853
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-set-size.md
9214
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-set-size.md
8854
9215
  */
8855
9216
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
8856
9217
  /**
8857
9218
  * Prefer arrow function properties over methods with a single return.
8858
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-short-arrow-method.md
9219
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-short-arrow-method.md
8859
9220
  */
8860
9221
  'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
9222
+ /**
9223
+ * Prefer shorter alternatives to Unicode escape sequences.
9224
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-short-escape-sequences.md
9225
+ */
9226
+ 'unicorn/prefer-short-escape-sequences'?: Linter.RuleEntry<[]>;
8861
9227
  /**
8862
9228
  * Prefer simple conditions first in logical expressions.
8863
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-simple-condition-first.md
9229
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-simple-condition-first.md
8864
9230
  */
8865
9231
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
8866
9232
  /**
8867
9233
  * Prefer a simple comparison function for `Array#sort()`.
8868
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-simple-sort-comparator.md
9234
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-simple-sort-comparator.md
8869
9235
  */
8870
9236
  'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
8871
9237
  /**
8872
9238
  * Prefer simplified conditions.
8873
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-simplified-conditions.md
9239
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-simplified-conditions.md
8874
9240
  */
8875
- 'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<[]>;
9241
+ 'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<UnicornPreferSimplifiedConditions>;
8876
9242
  /**
8877
9243
  * Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
8878
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-array-predicate.md
9244
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-array-predicate.md
8879
9245
  */
8880
9246
  'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
8881
9247
  /**
8882
9248
  * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
8883
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-call.md
9249
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-call.md
8884
9250
  */
8885
9251
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
8886
9252
  /**
8887
9253
  * Prefer a single object destructuring declaration per local const source.
8888
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-object-destructuring.md
9254
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-object-destructuring.md
8889
9255
  */
8890
9256
  'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
8891
9257
  /**
8892
9258
  * Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
8893
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-single-replace.md
9259
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-replace.md
8894
9260
  */
8895
9261
  'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
8896
9262
  /**
8897
9263
  * Prefer declaring variables in the smallest possible scope.
8898
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-smaller-scope.md
9264
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-smaller-scope.md
8899
9265
  */
8900
9266
  'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
8901
9267
  /**
8902
9268
  * Prefer `String#split()` with a limit.
8903
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-split-limit.md
9269
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-split-limit.md
8904
9270
  */
8905
9271
  'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
8906
9272
  /**
8907
9273
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
8908
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-spread.md
9274
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-spread.md
8909
9275
  */
8910
9276
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
8911
9277
  /**
8912
9278
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
8913
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-match-all.md
9279
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-match-all.md
8914
9280
  */
8915
9281
  'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
8916
9282
  /**
8917
9283
  * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
8918
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-pad-start-end.md
9284
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-pad-start-end.md
8919
9285
  */
8920
9286
  'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
8921
9287
  /**
8922
9288
  * Prefer using the `String.raw` tag to avoid escaping `\`.
8923
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-raw.md
9289
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-raw.md
8924
9290
  */
8925
9291
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
8926
9292
  /**
8927
9293
  * Prefer `String#repeat()` for repeated whitespace.
8928
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-repeat.md
9294
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-repeat.md
8929
9295
  */
8930
9296
  'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
8931
9297
  /**
8932
9298
  * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
8933
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-replace-all.md
9299
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-replace-all.md
8934
9300
  */
8935
9301
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
8936
9302
  /**
8937
9303
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
8938
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-slice.md
9304
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-slice.md
8939
9305
  */
8940
9306
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
8941
9307
  /**
8942
9308
  * Prefer `String#startsWith()` & `String#endsWith()` over regexes, `String#indexOf() === 0`, and slice checks.
8943
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-starts-ends-with.md
9309
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-starts-ends-with.md
8944
9310
  */
8945
9311
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
8946
9312
  /**
8947
9313
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
8948
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-string-trim-start-end.md
9314
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-trim-start-end.md
8949
9315
  */
8950
9316
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
8951
9317
  /**
8952
9318
  * Prefer using `structuredClone` to create a deep clone.
8953
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-structured-clone.md
9319
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-structured-clone.md
8954
9320
  */
8955
9321
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
8956
9322
  /**
8957
9323
  * Prefer `switch` over multiple `else-if`.
8958
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-switch.md
9324
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-switch.md
8959
9325
  */
8960
9326
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
8961
9327
  /**
8962
9328
  * Prefer `Temporal` over `Date`.
8963
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-temporal.md
9329
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-temporal.md
8964
9330
  */
8965
9331
  'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
9332
+ /**
9333
+ * Prefer direct Temporal conversion methods.
9334
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-temporal-conversion.md
9335
+ */
9336
+ 'unicorn/prefer-temporal-conversion'?: Linter.RuleEntry<[]>;
8966
9337
  /**
8967
9338
  * Prefer ternary expressions over simple `if` statements that return or assign values.
8968
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-ternary.md
9339
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-ternary.md
8969
9340
  */
8970
9341
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
8971
9342
  /**
8972
9343
  * Prefer `.then().catch()` over `.then(…, …)` for error handling.
8973
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-then-catch.md
9344
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-then-catch.md
8974
9345
  */
8975
9346
  'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>;
8976
9347
  /**
8977
9348
  * Prefer using `Element#toggleAttribute()` to toggle attributes.
8978
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-toggle-attribute.md
9349
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-toggle-attribute.md
8979
9350
  */
8980
9351
  'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
8981
9352
  /**
8982
9353
  * Prefer top-level await over top-level promises and async function calls.
8983
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-top-level-await.md
9354
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-top-level-await.md
8984
9355
  */
8985
9356
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
8986
9357
  /**
8987
9358
  * Enforce throwing `TypeError` in type checking conditions.
8988
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-type-error.md
9359
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-type-error.md
8989
9360
  */
8990
9361
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
8991
9362
  /**
8992
9363
  * Require type literals to be last in union types.
8993
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-type-literal-last.md
9364
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-type-literal-last.md
8994
9365
  */
8995
9366
  'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
8996
9367
  /**
8997
- * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over `atob()`, `btoa()`, and `Buffer` base64 conversions.
8998
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-uint8array-base64.md
9368
+ * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over legacy base64 conversions and manual postprocessing.
9369
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-uint8array-base64.md
8999
9370
  */
9000
9371
  'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
9372
+ /**
9373
+ * Prefer `Uint8Array#toHex()` and `Uint8Array.fromHex()` over manual and Buffer hex conversions.
9374
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-uint8array-hex.md
9375
+ */
9376
+ 'unicorn/prefer-uint8array-hex'?: Linter.RuleEntry<[]>;
9001
9377
  /**
9002
9378
  * Prefer the unary minus operator over multiplying or dividing by `-1`.
9003
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-unary-minus.md
9379
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-unary-minus.md
9004
9380
  */
9005
9381
  'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
9006
9382
  /**
9007
9383
  * Prefer Unicode code point escapes over legacy escape sequences.
9008
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-unicode-code-point-escapes.md
9384
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-unicode-code-point-escapes.md
9009
9385
  */
9010
9386
  'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
9011
9387
  /**
9012
9388
  * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
9013
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-url-can-parse.md
9389
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-url-can-parse.md
9014
9390
  */
9015
9391
  'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
9016
9392
  /**
9017
9393
  * Prefer `URL#href` over stringifying a `URL`.
9018
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-url-href.md
9394
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-url-href.md
9019
9395
  */
9020
9396
  'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
9021
9397
  /**
9022
9398
  * Prefer `URLSearchParams` over manually splitting query strings.
9023
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-url-search-parameters.md
9399
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-url-search-parameters.md
9024
9400
  */
9025
9401
  'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
9026
9402
  /**
9027
9403
  * Prefer putting the condition in the while statement.
9028
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/prefer-while-loop-condition.md
9404
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-while-loop-condition.md
9029
9405
  */
9030
9406
  'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
9031
9407
  /**
9032
9408
  * Renamed to `unicorn/name-replacements`.
9033
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
9409
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
9034
9410
  * @deprecated
9035
9411
  */
9036
9412
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
9037
9413
  /**
9038
9414
  * Enforce consistent relative URL style.
9039
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/relative-url-style.md
9415
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/relative-url-style.md
9040
9416
  */
9041
9417
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
9042
9418
  /**
9043
9419
  * Enforce using the separator argument with `Array#join()`.
9044
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-array-join-separator.md
9420
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-array-join-separator.md
9045
9421
  */
9046
9422
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
9047
9423
  /**
9048
9424
  * Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
9049
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-array-sort-compare.md
9425
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-array-sort-compare.md
9050
9426
  */
9051
9427
  'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
9052
9428
  /**
9053
9429
  * Require `CSS.escape()` for interpolated values in CSS selectors.
9054
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-css-escape.md
9430
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-css-escape.md
9055
9431
  */
9056
9432
  'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
9057
9433
  /**
9058
9434
  * Require configured YAML frontmatter fields.
9059
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-frontmatter-fields.md
9435
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-frontmatter-fields.md
9060
9436
  */
9061
9437
  'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
9062
9438
  /**
9063
9439
  * Require non-empty module attributes for imports and exports
9064
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-module-attributes.md
9440
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-module-attributes.md
9065
9441
  */
9066
9442
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
9067
9443
  /**
9068
9444
  * Require non-empty specifier list in import and export statements.
9069
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-module-specifiers.md
9445
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-module-specifiers.md
9070
9446
  */
9071
9447
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
9072
9448
  /**
9073
9449
  * Enforce using the digits argument with `Number#toFixed()`.
9074
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-number-to-fixed-digits-argument.md
9450
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-number-to-fixed-digits-argument.md
9075
9451
  */
9076
9452
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
9077
9453
  /**
9078
9454
  * Require passive event listeners for high-frequency events.
9079
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-passive-events.md
9455
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-passive-events.md
9080
9456
  */
9081
9457
  'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
9082
9458
  /**
9083
9459
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
9084
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-post-message-target-origin.md
9460
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-post-message-target-origin.md
9085
9461
  */
9086
9462
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
9087
9463
  /**
9088
9464
  * Require boolean-returning Proxy traps to return booleans.
9089
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/require-proxy-trap-boolean-return.md
9465
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-proxy-trap-boolean-return.md
9090
9466
  */
9091
9467
  'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
9468
+ /**
9469
+ * Require streaming decoding of fetch-body chunks with `TextDecoder`.
9470
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-text-decoder-streaming.md
9471
+ */
9472
+ 'unicorn/require-text-decoder-streaming'?: Linter.RuleEntry<[]>;
9092
9473
  /**
9093
9474
  * Enforce a consistent style for single-line block comments.
9094
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/single-line-block-comment-style.md
9475
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/single-line-block-comment-style.md
9095
9476
  */
9096
9477
  'unicorn/single-line-block-comment-style'?: Linter.RuleEntry<UnicornSingleLineBlockCommentStyle>;
9097
9478
  /**
9098
9479
  * Enforce better string content.
9099
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/string-content.md
9480
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/string-content.md
9100
9481
  */
9101
9482
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
9102
9483
  /**
9103
9484
  * Enforce consistent brace style for `case` clauses.
9104
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/switch-case-braces.md
9485
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/switch-case-braces.md
9105
9486
  */
9106
9487
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
9107
9488
  /**
9108
9489
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
9109
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/switch-case-break-position.md
9490
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/switch-case-break-position.md
9110
9491
  */
9111
9492
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
9112
9493
  /**
9113
9494
  * Fix whitespace-insensitive template indentation.
9114
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/template-indent.md
9495
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/template-indent.md
9115
9496
  */
9116
9497
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
9117
9498
  /**
9118
9499
  * Enforce consistent case for text encoding identifiers.
9119
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/text-encoding-identifier-case.md
9500
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/text-encoding-identifier-case.md
9120
9501
  */
9121
9502
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
9122
9503
  /**
9123
9504
  * Require `new` when creating an error.
9124
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/throw-new-error.md
9505
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/throw-new-error.md
9125
9506
  */
9126
9507
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
9127
9508
  /**
9128
9509
  * Limit the complexity of `try` blocks.
9129
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v73.0.0/docs/rules/try-complexity.md
9510
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/try-complexity.md
9130
9511
  */
9131
9512
  'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
9132
9513
  /**
@@ -9932,6 +10313,11 @@ interface RuleOptions {
9932
10313
  * @see https://eslint.vuejs.org/rules/no-setup-props-reactivity-loss.html
9933
10314
  */
9934
10315
  'vue/no-setup-props-reactivity-loss'?: Linter.RuleEntry<[]>;
10316
+ /**
10317
+ * disallow the use of event names that collide with native web event names
10318
+ * @see https://eslint.vuejs.org/rules/no-shadow-native-events.html
10319
+ */
10320
+ 'vue/no-shadow-native-events'?: Linter.RuleEntry<[]>;
9935
10321
  /**
9936
10322
  * enforce component's data property to be a function
9937
10323
  * @see https://eslint.vuejs.org/rules/no-shared-component-data.html
@@ -11101,10 +11487,12 @@ type EslintCommentsDisableEnablePair = [] | [{
11101
11487
  type EslintCommentsNoRestrictedDisable = string[];
11102
11488
  // ----- eslint-comments/no-use -----
11103
11489
  type EslintCommentsNoUse = [] | [{
11104
- allow?: ("eslint" | "eslint-disable" | "eslint-disable-line" | "eslint-disable-next-line" | "eslint-enable" | "eslint-env" | "exported" | "global" | "globals")[];
11490
+ additionalDirectives?: string[];
11491
+ allow?: string[];
11105
11492
  }];
11106
11493
  // ----- eslint-comments/require-description -----
11107
11494
  type EslintCommentsRequireDescription = [] | [{
11495
+ additionalDirectives?: string[];
11108
11496
  ignore?: ("eslint" | "eslint-disable" | "eslint-disable-line" | "eslint-disable-next-line" | "eslint-enable" | "eslint-env" | "exported" | "global" | "globals")[];
11109
11497
  }];
11110
11498
  // ----- format/dprint -----
@@ -11315,6 +11703,7 @@ type JsdocCheckExamples = [] | [{
11315
11703
  // ----- jsdoc/check-indentation -----
11316
11704
  type JsdocCheckIndentation = [] | [{
11317
11705
  allowIndentedSections?: boolean;
11706
+ allowNoSpaceAfterAsterisk?: boolean;
11318
11707
  excludeTags?: string[];
11319
11708
  }];
11320
11709
  // ----- jsdoc/check-line-alignment -----
@@ -11350,6 +11739,10 @@ type JsdocCheckParamNames = [] | [{
11350
11739
  type JsdocCheckPropertyNames = [] | [{
11351
11740
  enableFixer?: boolean;
11352
11741
  }];
11742
+ // ----- jsdoc/check-syntax -----
11743
+ type JsdocCheckSyntax = [] | [{
11744
+ enableFixer?: boolean;
11745
+ }];
11353
11746
  // ----- jsdoc/check-tag-names -----
11354
11747
  type JsdocCheckTagNames = [] | [{
11355
11748
  definedTags?: string[];
@@ -11524,6 +11917,14 @@ type JsdocNoUndefinedTypes = [] | [{
11524
11917
  disableReporting?: boolean;
11525
11918
  markVariablesAsUsed?: boolean;
11526
11919
  }];
11920
+ // ----- jsdoc/no-unnecessary-type-assertion -----
11921
+ type JsdocNoUnnecessaryTypeAssertion = [] | [{
11922
+ checkLiteralConstAssertions?: boolean;
11923
+ enableFixer?: boolean;
11924
+ preferConstToLiteralTuples?: boolean;
11925
+ treatAnyAsRedundant?: boolean;
11926
+ typesToIgnore?: string[];
11927
+ }];
11527
11928
  // ----- jsdoc/normalize-see-links -----
11528
11929
  type JsdocNormalizeSeeLinks = [] | [{
11529
11930
  canonicalForm?: ("pipe" | "prefix");
@@ -11726,7 +12127,6 @@ type JsdocRequireTags = [] | [{
11726
12127
  tags?: (string | {
11727
12128
  context?: string;
11728
12129
  tag?: string;
11729
- [k: string]: unknown | undefined;
11730
12130
  })[];
11731
12131
  }];
11732
12132
  // ----- jsdoc/require-template -----
@@ -11797,6 +12197,22 @@ type JsdocTextEscaping = [] | [{
11797
12197
  escapeHTML?: boolean;
11798
12198
  escapeMarkdown?: boolean;
11799
12199
  }];
12200
+ // ----- jsdoc/ts-ban-ts-comment -----
12201
+ type JsdocTsBanTsComment = [] | [{
12202
+ minimumDescriptionLength?: number;
12203
+ "ts-check"?: (boolean | "allow-with-description" | {
12204
+ descriptionFormat?: string;
12205
+ });
12206
+ "ts-expect-error"?: (boolean | "allow-with-description" | {
12207
+ descriptionFormat?: string;
12208
+ });
12209
+ "ts-ignore"?: (boolean | "allow-with-description" | {
12210
+ descriptionFormat?: string;
12211
+ });
12212
+ "ts-nocheck"?: (boolean | "allow-with-description" | {
12213
+ descriptionFormat?: string;
12214
+ });
12215
+ }];
11800
12216
  // ----- jsdoc/ts-method-signature-style -----
11801
12217
  type JsdocTsMethodSignatureStyle = [] | [("method" | "property")] | [("method" | "property"), {
11802
12218
  enableFixer?: boolean;
@@ -13240,6 +13656,10 @@ type NoUnderscoreDangle = [] | [{
13240
13656
  allowInArrayDestructuring?: boolean;
13241
13657
  allowInObjectDestructuring?: boolean;
13242
13658
  }];
13659
+ // ----- no-unmodified-loop-condition -----
13660
+ type NoUnmodifiedLoopCondition = [] | [{
13661
+ checkConditionalExpressions?: boolean;
13662
+ }];
13243
13663
  // ----- no-unneeded-ternary -----
13244
13664
  type NoUnneededTernary = [] | [{
13245
13665
  defaultAssignment?: boolean;
@@ -14886,10 +15306,6 @@ type PerfectionistSortImports = {
14886
15306
  sortBy?: ("specifier" | "path");
14887
15307
  })[];
14888
15308
  newlinesBetween?: ("ignore" | number);
14889
- tsconfig?: {
14890
- rootDir: string;
14891
- filename?: string;
14892
- };
14893
15309
  maxLineLength?: number;
14894
15310
  sortSideEffects?: boolean;
14895
15311
  environment?: ("node" | "bun");
@@ -14924,6 +15340,10 @@ type PerfectionistSortImports = {
14924
15340
  pattern: string;
14925
15341
  flags?: string;
14926
15342
  } | string));
15343
+ tsconfig?: {
15344
+ rootDir: string;
15345
+ filename?: string;
15346
+ };
14927
15347
  }[];
14928
15348
  // ----- perfectionist/sort-interfaces -----
14929
15349
  type PerfectionistSortInterfaces = {
@@ -15508,6 +15928,7 @@ type PerfectionistSortModules = [] | [{
15508
15928
  order?: ("asc" | "desc");
15509
15929
  })[];
15510
15930
  newlinesBetween?: ("ignore" | number);
15931
+ additionalModuleBlockTypes?: string[];
15511
15932
  useExperimentalDependencyDetection?: boolean;
15512
15933
  newlinesBetweenOverloadSignatures?: ("ignore" | number);
15513
15934
  partitionByComment?: (boolean | (({
@@ -15533,6 +15954,10 @@ type PerfectionistSortModules = [] | [{
15533
15954
  } | string)));
15534
15955
  });
15535
15956
  partitionByNewLine?: boolean;
15957
+ tsconfig?: {
15958
+ rootDir: string;
15959
+ filename?: string;
15960
+ };
15536
15961
  }];
15537
15962
  // ----- perfectionist/sort-named-exports -----
15538
15963
  type PerfectionistSortNamedExports = {
@@ -16061,6 +16486,13 @@ type PerfectionistSortObjects = {
16061
16486
  partitionByComputedKey?: boolean;
16062
16487
  styledComponents?: boolean;
16063
16488
  useExperimentalDependencyDetection?: boolean;
16489
+ ignoreCallbackDependenciesPatterns?: (({
16490
+ pattern: string;
16491
+ flags?: string;
16492
+ } | string)[] | ({
16493
+ pattern: string;
16494
+ flags?: string;
16495
+ } | string));
16064
16496
  partitionByComment?: (boolean | (({
16065
16497
  pattern: string;
16066
16498
  flags?: string;
@@ -16396,6 +16828,13 @@ type PerfectionistSortVariableDeclarations = {
16396
16828
  matchesAstSelector?: string;
16397
16829
  };
16398
16830
  useExperimentalDependencyDetection?: boolean;
16831
+ ignoreCallbackDependenciesPatterns?: (({
16832
+ pattern: string;
16833
+ flags?: string;
16834
+ } | string)[] | ({
16835
+ pattern: string;
16836
+ flags?: string;
16837
+ } | string));
16399
16838
  partitionByComment?: (boolean | (({
16400
16839
  pattern: string;
16401
16840
  flags?: string;
@@ -16532,6 +16971,7 @@ type ReactRefreshOnlyExportComponents = [] | [{
16532
16971
  extraHOCs?: string[];
16533
16972
  allowExportNames?: string[];
16534
16973
  allowConstantExport?: boolean;
16974
+ allowCompoundComponents?: boolean;
16535
16975
  checkJS?: boolean;
16536
16976
  }];
16537
16977
  // ----- react/dom-no-unknown-property -----
@@ -16772,6 +17212,10 @@ type SolidStyleProp = [] | [{
16772
17212
  styleProps?: [string, ...(string)[]];
16773
17213
  allowString?: boolean;
16774
17214
  }];
17215
+ // ----- solid/valid-use-server -----
17216
+ type SolidValidUseServer = [] | [{
17217
+ clientWrappers?: string[];
17218
+ }];
16775
17219
  // ----- sort-imports -----
16776
17220
  type SortImports = [] | [{
16777
17221
  ignoreCase?: boolean;
@@ -19155,7 +19599,9 @@ type TsNoMeaninglessVoidOperator = [] | [{
19155
19599
  }];
19156
19600
  // ----- ts/no-misused-promises -----
19157
19601
  type TsNoMisusedPromises = [] | [{
19158
- checksConditionals?: boolean;
19602
+ checksConditionals?: (boolean | {
19603
+ flagUnions?: ("all" | "strict" | "none");
19604
+ });
19159
19605
  checksSpreads?: boolean;
19160
19606
  checksVoidReturn?: (boolean | {
19161
19607
  arguments?: boolean;
@@ -19669,6 +20115,9 @@ type UnicornFilenameCase = [] | [({
19669
20115
  })[];
19670
20116
  multipleFileExtensions?: boolean;
19671
20117
  checkDirectories?: boolean;
20118
+ directoryRoots?: (string | {
20119
+ [k: string]: unknown | undefined;
20120
+ })[];
19672
20121
  } | {
19673
20122
  cases?: {
19674
20123
  camelCase?: boolean;
@@ -19682,6 +20131,9 @@ type UnicornFilenameCase = [] | [({
19682
20131
  })[];
19683
20132
  multipleFileExtensions?: boolean;
19684
20133
  checkDirectories?: boolean;
20134
+ directoryRoots?: (string | {
20135
+ [k: string]: unknown | undefined;
20136
+ })[];
19685
20137
  })];
19686
20138
  // ----- unicorn/id-match -----
19687
20139
  type UnicornIdMatch = [] | [string] | [string, {
@@ -19707,6 +20159,11 @@ interface _UnicornImportStyle_ModuleStyles {
19707
20159
  interface _UnicornImportStyle_BooleanObject {
19708
20160
  [k: string]: boolean | undefined;
19709
20161
  }
20162
+ // ----- unicorn/indent -----
20163
+ type UnicornIndent = [] | [{
20164
+ indent?: ("tab" | number);
20165
+ tabWidth?: number;
20166
+ }];
19710
20167
  // ----- unicorn/isolated-functions -----
19711
20168
  type UnicornIsolatedFunctions = [] | [{
19712
20169
  overrideGlobals?: {
@@ -19718,6 +20175,15 @@ type UnicornIsolatedFunctions = [] | [{
19718
20175
  }];
19719
20176
  // ----- unicorn/iteration-fallback-style -----
19720
20177
  type UnicornIterationFallbackStyle = [] | [("guard" | "fallback")];
20178
+ // ----- unicorn/key-name-casing -----
20179
+ type UnicornKeyNameCasing = [] | [{
20180
+ camelCase?: boolean;
20181
+ PascalCase?: boolean;
20182
+ SCREAMING_SNAKE_CASE?: boolean;
20183
+ "kebab-case"?: boolean;
20184
+ snake_case?: boolean;
20185
+ ignore?: string[];
20186
+ }];
19721
20187
  // ----- unicorn/logical-assignment-operators -----
19722
20188
  type UnicornLogicalAssignmentOperators = (([] | ["always"] | ["always", {
19723
20189
  enforceForIfStatements?: boolean;
@@ -19768,10 +20234,18 @@ type UnicornNoArrayReverse = [] | [{
19768
20234
  type UnicornNoArraySort = [] | [{
19769
20235
  allowExpressionStatement?: boolean;
19770
20236
  }];
20237
+ // ----- unicorn/no-break-in-nested-loop -----
20238
+ type UnicornNoBreakInNestedLoop = [] | [{
20239
+ checkContinue?: boolean;
20240
+ }];
19771
20241
  // ----- unicorn/no-empty-file -----
19772
20242
  type UnicornNoEmptyFile = [] | [{
19773
20243
  allowComments?: boolean;
19774
20244
  }];
20245
+ // ----- unicorn/no-immediate-mutation -----
20246
+ type UnicornNoImmediateMutation = [] | [{
20247
+ checkConditionals?: boolean;
20248
+ }];
19775
20249
  // ----- unicorn/no-instanceof-builtins -----
19776
20250
  type UnicornNoInstanceofBuiltins = [] | [{
19777
20251
  useErrorIsError?: boolean;
@@ -19812,6 +20286,10 @@ type UnicornNoNull = [] | [{
19812
20286
  type UnicornNoTypeofUndefined = [] | [{
19813
20287
  checkGlobalVariables?: boolean;
19814
20288
  }];
20289
+ // ----- unicorn/no-unnecessary-parameters -----
20290
+ type UnicornNoUnnecessaryParameters = [] | [{
20291
+ minimumCallCount?: number;
20292
+ }];
19815
20293
  // ----- unicorn/no-unnecessary-polyfills -----
19816
20294
  type UnicornNoUnnecessaryPolyfills = [] | [{
19817
20295
  targets?: (string | string[] | {
@@ -19875,9 +20353,15 @@ type UnicornPreferAt = [] | [{
19875
20353
  getLastElementFunctions?: string[];
19876
20354
  checkAllIndexAccess?: boolean;
19877
20355
  }];
20356
+ // ----- unicorn/prefer-combined-guards -----
20357
+ type UnicornPreferCombinedGuards = [] | [{
20358
+ checkCompoundConditions?: boolean;
20359
+ checkMultiStatementBodies?: boolean;
20360
+ }];
19878
20361
  // ----- unicorn/prefer-continue -----
19879
20362
  type UnicornPreferContinue = [] | [{
19880
20363
  maximumStatements?: number;
20364
+ checkShortBodies?: boolean;
19881
20365
  }];
19882
20366
  // ----- unicorn/prefer-dom-node-html-methods -----
19883
20367
  type UnicornPreferDomNodeHtmlMethods = [] | [{
@@ -19887,10 +20371,7 @@ type UnicornPreferDomNodeHtmlMethods = [] | [{
19887
20371
  // ----- unicorn/prefer-early-return -----
19888
20372
  type UnicornPreferEarlyReturn = [] | [{
19889
20373
  maximumStatements?: number;
19890
- }];
19891
- // ----- unicorn/prefer-explicit-viewport-units -----
19892
- type UnicornPreferExplicitViewportUnits = [] | [{
19893
- unit?: ("dvh" | "svh" | "lvh");
20374
+ checkShortBodies?: boolean;
19894
20375
  }];
19895
20376
  // ----- unicorn/prefer-export-from -----
19896
20377
  type UnicornPreferExportFrom = [] | [{
@@ -19935,6 +20416,10 @@ type UnicornPreferSetHas = [] | [{
19935
20416
  }];
19936
20417
  // ----- unicorn/prefer-short-arrow-method -----
19937
20418
  type UnicornPreferShortArrowMethod = [] | [("always" | "consistent-as-needed")];
20419
+ // ----- unicorn/prefer-simplified-conditions -----
20420
+ type UnicornPreferSimplifiedConditions = [] | [{
20421
+ negatedConditions?: ("simplify" | "expand");
20422
+ }];
19938
20423
  // ----- unicorn/prefer-single-call -----
19939
20424
  type UnicornPreferSingleCall = [] | [{
19940
20425
  ignore?: string[];
@@ -20894,7 +21379,7 @@ type VueNoDeprecatedSlotAttribute = [] | [{
20894
21379
  }];
20895
21380
  // ----- vue/no-dupe-keys -----
20896
21381
  type VueNoDupeKeys = [] | [{
20897
- groups?: unknown[];
21382
+ groups?: string[];
20898
21383
  }];
20899
21384
  // ----- vue/no-duplicate-attr-inheritance -----
20900
21385
  type VueNoDuplicateAttrInheritance = [] | [{
@@ -21024,8 +21509,8 @@ type VueNoReservedComponentNames = [] | [{
21024
21509
  }];
21025
21510
  // ----- vue/no-reserved-keys -----
21026
21511
  type VueNoReservedKeys = [] | [{
21027
- reserved?: unknown[];
21028
- groups?: unknown[];
21512
+ reserved?: string[];
21513
+ groups?: string[];
21029
21514
  }];
21030
21515
  // ----- vue/no-reserved-props -----
21031
21516
  type VueNoReservedProps = [] | [{
@@ -21113,7 +21598,7 @@ type VueNoTemplateTargetBlank = [] | [{
21113
21598
  }];
21114
21599
  // ----- vue/no-undef-components -----
21115
21600
  type VueNoUndefComponents = [] | [{
21116
- ignorePatterns?: unknown[];
21601
+ ignorePatterns?: string[];
21117
21602
  }];
21118
21603
  // ----- vue/no-undef-directives -----
21119
21604
  type VueNoUndefDirectives = [] | [{
@@ -21247,7 +21732,7 @@ type VueOperatorLinebreak = [] | [(("after" | "before" | "none") | null)] | [(("
21247
21732
  }];
21248
21733
  // ----- vue/order-in-components -----
21249
21734
  type VueOrderInComponents = [] | [{
21250
- order?: unknown[];
21735
+ order?: (string | string[])[];
21251
21736
  }];
21252
21737
  // ----- vue/padding-line-between-blocks -----
21253
21738
  type VuePaddingLineBetweenBlocks = [] | [("never" | "always")];
@@ -21336,8 +21821,8 @@ type VueSlotNameCasing = [] | [("camelCase" | "kebab-case" | "singleword")];
21336
21821
  // ----- vue/sort-keys -----
21337
21822
  type VueSortKeys = [] | [("asc" | "desc")] | [("asc" | "desc"), {
21338
21823
  caseSensitive?: boolean;
21339
- ignoreChildrenOf?: unknown[];
21340
- ignoreGrandchildrenOf?: unknown[];
21824
+ ignoreChildrenOf?: string[];
21825
+ ignoreGrandchildrenOf?: string[];
21341
21826
  minKeys?: number;
21342
21827
  natural?: boolean;
21343
21828
  allowLineSeparatedGroups?: boolean;
@@ -21397,7 +21882,7 @@ type VueValidVFor = [] | [{
21397
21882
  }];
21398
21883
  // ----- vue/valid-v-on -----
21399
21884
  type VueValidVOn = [] | [{
21400
- modifiers?: unknown[];
21885
+ modifiers?: string[];
21401
21886
  }];
21402
21887
  // ----- vue/valid-v-slot -----
21403
21888
  type VueValidVSlot = [] | [{
@@ -21770,8 +22255,8 @@ interface VendoredPrettierOptionsRequired {
21770
22255
  }
21771
22256
  //#endregion
21772
22257
  //#region src/types.d.ts
21773
- type Awaitable<T> = Promise<T> | T;
21774
- interface OptionsComponentExts {
22258
+ export type Awaitable<T> = Promise<T> | T;
22259
+ export interface OptionsComponentExts {
21775
22260
  /**
21776
22261
  * Additional extensions for components.
21777
22262
  *
@@ -21781,7 +22266,7 @@ interface OptionsComponentExts {
21781
22266
  */
21782
22267
  componentExts?: string[];
21783
22268
  }
21784
- interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
22269
+ export interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
21785
22270
  /**
21786
22271
  * Enable ASTRO support.
21787
22272
  *
@@ -22058,7 +22543,7 @@ interface OptionsConfig extends OptionsComponentExts, OptionsProjectType {
22058
22543
  */
22059
22544
  yaml?: boolean | OptionsOverrides;
22060
22545
  }
22061
- interface OptionsE18e extends OptionsOverrides {
22546
+ export interface OptionsE18e extends OptionsOverrides {
22062
22547
  /**
22063
22548
  * Include modernization rules
22064
22549
  *
@@ -22081,13 +22566,13 @@ interface OptionsE18e extends OptionsOverrides {
22081
22566
  */
22082
22567
  performanceImprovements?: boolean;
22083
22568
  }
22084
- interface OptionsFiles {
22569
+ export interface OptionsFiles {
22085
22570
  /**
22086
22571
  * Override the `files` option to provide custom globs.
22087
22572
  */
22088
22573
  files?: string[];
22089
22574
  }
22090
- interface OptionsFormatters {
22575
+ export interface OptionsFormatters {
22091
22576
  /**
22092
22577
  * Enable formatting support for Astro.
22093
22578
  *
@@ -22151,16 +22636,16 @@ interface OptionsFormatters {
22151
22636
  */
22152
22637
  xml?: boolean | 'prettier';
22153
22638
  }
22154
- interface OptionsHasTypeScript {
22639
+ export interface OptionsHasTypeScript {
22155
22640
  typescript?: boolean;
22156
22641
  }
22157
- interface OptionsHasTypeScript {
22642
+ export interface OptionsHasTypeScript {
22158
22643
  typescript?: boolean;
22159
22644
  }
22160
- interface OptionsIsInEditor {
22645
+ export interface OptionsIsInEditor {
22161
22646
  isInEditor?: boolean;
22162
22647
  }
22163
- interface OptionsJSX {
22648
+ export interface OptionsJSX {
22164
22649
  /**
22165
22650
  * Enable JSX accessibility rules.
22166
22651
  *
@@ -22173,8 +22658,8 @@ interface OptionsJSX {
22173
22658
  */
22174
22659
  a11y?: boolean | OptionsJSXA11y;
22175
22660
  }
22176
- interface OptionsJSXA11y extends OptionsOverrides {}
22177
- interface OptionsMedusa extends OptionsOverrides {
22661
+ export interface OptionsJSXA11y extends OptionsOverrides {}
22662
+ export interface OptionsMedusa extends OptionsOverrides {
22178
22663
  /**
22179
22664
  * Medusa rule preset.
22180
22665
  *
@@ -22188,7 +22673,7 @@ interface OptionsMedusa extends OptionsOverrides {
22188
22673
  */
22189
22674
  preset?: 'modules' | 'recommended' | 'strict';
22190
22675
  }
22191
- interface OptionsNextjs {
22676
+ export interface OptionsNextjs {
22192
22677
  /**
22193
22678
  * Specify a root directory within a monorepo.
22194
22679
  *
@@ -22225,10 +22710,10 @@ interface OptionsNextjs {
22225
22710
  */
22226
22711
  rootDir?: string | string[];
22227
22712
  }
22228
- interface OptionsOverrides {
22713
+ export interface OptionsOverrides {
22229
22714
  overrides?: TypedFlatConfigItem['rules'];
22230
22715
  }
22231
- interface OptionsPnpm extends OptionsIsInEditor {
22716
+ export interface OptionsPnpm extends OptionsIsInEditor {
22232
22717
  /**
22233
22718
  * Requires catalogs usage
22234
22719
  *
@@ -22254,7 +22739,7 @@ interface OptionsPnpm extends OptionsIsInEditor {
22254
22739
  */
22255
22740
  sort?: boolean;
22256
22741
  }
22257
- interface OptionsProjectType {
22742
+ export interface OptionsProjectType {
22258
22743
  /**
22259
22744
  * Type of the project. `lib` will enable more strict rules for libraries.
22260
22745
  *
@@ -22262,7 +22747,7 @@ interface OptionsProjectType {
22262
22747
  */
22263
22748
  type?: 'app' | 'lib';
22264
22749
  }
22265
- interface OptionsReact extends OptionsOverrides {
22750
+ export interface OptionsReact extends OptionsOverrides {
22266
22751
  /**
22267
22752
  * Enable React Compiler support.
22268
22753
  *
@@ -22273,13 +22758,13 @@ interface OptionsReact extends OptionsOverrides {
22273
22758
  */
22274
22759
  reactCompiler?: boolean;
22275
22760
  }
22276
- interface OptionsRegExp {
22761
+ export interface OptionsRegExp {
22277
22762
  /**
22278
22763
  * Override rulelevels
22279
22764
  */
22280
22765
  level?: 'error' | 'warn';
22281
22766
  }
22282
- interface OptionsSanity extends OptionsFiles, OptionsOverrides {
22767
+ export interface OptionsSanity extends OptionsFiles, OptionsOverrides {
22283
22768
  /**
22284
22769
  * Working directory for resolving the Sanity schema path.
22285
22770
  *
@@ -22327,7 +22812,7 @@ interface OptionsSanity extends OptionsFiles, OptionsOverrides {
22327
22812
  */
22328
22813
  schemaPath?: string;
22329
22814
  }
22330
- interface OptionsStylistic {
22815
+ export interface OptionsStylistic {
22331
22816
  /**
22332
22817
  * Enable stylistic rules.
22333
22818
  *
@@ -22344,7 +22829,7 @@ interface OptionsStylistic {
22344
22829
  *
22345
22830
  * @see https://github.com/schoero/eslint-plugin-better-tailwindcss
22346
22831
  */
22347
- interface OptionsTailwindcss {
22832
+ export interface OptionsTailwindcss {
22348
22833
  /**
22349
22834
  * Detect component classes.
22350
22835
  *
@@ -22398,8 +22883,8 @@ interface OptionsTailwindcss {
22398
22883
  */
22399
22884
  entryPoint?: string;
22400
22885
  }
22401
- type OptionsTypescript = (OptionsTypeScriptParserOptions & OptionsOverrides & OptionsTypeScriptErasableOnly) | (OptionsTypeScriptWithTypes & OptionsOverrides & OptionsTypeScriptErasableOnly);
22402
- interface OptionsTypeScriptErasableOnly {
22886
+ export type OptionsTypescript = (OptionsTypeScriptParserOptions & OptionsOverrides & OptionsTypeScriptErasableOnly) | (OptionsTypeScriptWithTypes & OptionsOverrides & OptionsTypeScriptErasableOnly);
22887
+ export interface OptionsTypeScriptErasableOnly {
22403
22888
  /**
22404
22889
  * Enable erasable syntax only rules.
22405
22890
  *
@@ -22408,7 +22893,7 @@ interface OptionsTypeScriptErasableOnly {
22408
22893
  */
22409
22894
  erasableOnly?: boolean;
22410
22895
  }
22411
- interface OptionsTypeScriptParserOptions {
22896
+ export interface OptionsTypeScriptParserOptions {
22412
22897
  /**
22413
22898
  * Additional parser options for TypeScript.
22414
22899
  */
@@ -22430,7 +22915,7 @@ interface OptionsTypeScriptParserOptions {
22430
22915
  */
22431
22916
  strict?: boolean;
22432
22917
  }
22433
- interface OptionsTypeScriptWithTypes {
22918
+ export interface OptionsTypeScriptWithTypes {
22434
22919
  /**
22435
22920
  * When this options is provided, type aware rules will be enabled.
22436
22921
  * @see https://typescript-eslint.io/linting/typed-linting/
@@ -22441,7 +22926,7 @@ interface OptionsTypeScriptWithTypes {
22441
22926
  */
22442
22927
  overridesTypeAware?: TypedFlatConfigItem['rules'];
22443
22928
  }
22444
- interface OptionsUnicorn extends OptionsOverrides {
22929
+ export interface OptionsUnicorn extends OptionsOverrides {
22445
22930
  /**
22446
22931
  * Include all rules recommended by `eslint-plugin-unicorn`.
22447
22932
  *
@@ -22449,7 +22934,7 @@ interface OptionsUnicorn extends OptionsOverrides {
22449
22934
  */
22450
22935
  allRecommended?: boolean;
22451
22936
  }
22452
- interface OptionsUnoCSS extends OptionsOverrides {
22937
+ export interface OptionsUnoCSS extends OptionsOverrides {
22453
22938
  /**
22454
22939
  * Enable attributify support.
22455
22940
  *
@@ -22463,7 +22948,7 @@ interface OptionsUnoCSS extends OptionsOverrides {
22463
22948
  */
22464
22949
  strict?: boolean;
22465
22950
  }
22466
- interface OptionsVue extends OptionsOverrides {
22951
+ export interface OptionsVue extends OptionsOverrides {
22467
22952
  /**
22468
22953
  * Vue accessibility plugin. Help check a11y issue in `.vue` files upon enabled
22469
22954
  *
@@ -22487,8 +22972,8 @@ interface OptionsVue extends OptionsOverrides {
22487
22972
  */
22488
22973
  vueVersion?: 2 | 3;
22489
22974
  }
22490
- type Rules = Record<string, Linter.RuleEntry<any> | undefined> & RuleOptions;
22491
- interface StylisticConfig extends Pick<StylisticCustomizeOptions, 'arrowParens' | 'blockSpacing' | 'braceStyle' | 'commaDangle' | 'experimental' | 'indent' | 'jsx' | 'quoteProps' | 'quotes' | 'semi'> {
22975
+ export type Rules = Record<string, Linter.RuleEntry<any> | undefined> & RuleOptions;
22976
+ export interface StylisticConfig extends Pick<StylisticCustomizeOptions, 'arrowParens' | 'blockSpacing' | 'braceStyle' | 'commaDangle' | 'experimental' | 'indent' | 'jsx' | 'quoteProps' | 'quotes' | 'semi'> {
22492
22977
  /**
22493
22978
  * Enable or disable the opinionated spacing rules (space in parenthesis, objects, arrays, etc.).
22494
22979
  *
@@ -22501,7 +22986,7 @@ interface StylisticConfig extends Pick<StylisticCustomizeOptions, 'arrowParens'
22501
22986
  * for `rules` and relaxes type limitations for `plugins` and `rules`, because
22502
22987
  * many plugins still lack proper type definitions.
22503
22988
  */
22504
- type TypedFlatConfigItem = Omit<ConfigWithExtends, 'plugins' | 'rules'> & {
22989
+ export type TypedFlatConfigItem = Omit<ConfigWithExtends, 'plugins' | 'rules'> & {
22505
22990
  /**
22506
22991
  * An object containing a name-value mapping of plugin names to plugin objects.
22507
22992
  * When `files` is specified, these plugins are only available to the matching files.
@@ -22517,7 +23002,7 @@ type TypedFlatConfigItem = Omit<ConfigWithExtends, 'plugins' | 'rules'> & {
22517
23002
  };
22518
23003
  //#endregion
22519
23004
  //#region src/factory.d.ts
22520
- declare const defaultPluginRenaming: {
23005
+ export declare const defaultPluginRenaming: {
22521
23006
  '@eslint-react': string;
22522
23007
  '@eslint-react/dom': string;
22523
23008
  '@eslint-react/naming-convention': string;
@@ -22531,7 +23016,7 @@ declare const defaultPluginRenaming: {
22531
23016
  vitest: string;
22532
23017
  yml: string;
22533
23018
  };
22534
- type ResolvedOptions<T> = T extends boolean ? never : NonNullable<T>;
23019
+ export type ResolvedOptions<T> = T extends boolean ? never : NonNullable<T>;
22535
23020
  /**
22536
23021
  * Construct an array of ESLint flat config items.
22537
23022
  *
@@ -22542,40 +23027,40 @@ type ResolvedOptions<T> = T extends boolean ? never : NonNullable<T>;
22542
23027
  * @returns {TypedFlatConfigItem[]}
22543
23028
  * The merged ESLint configurations.
22544
23029
  */
22545
- declare function config(options?: OptionsConfig & Omit<TypedFlatConfigItem, 'files' | 'ignores'>, ...userConfigs: Awaitable<FlatConfigComposer<any, any> | Linter.Config[] | TypedFlatConfigItem | TypedFlatConfigItem[]>[]): FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
22546
- declare function getOverrides<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): Partial<Linter.RulesRecord & RuleOptions>;
22547
- declare function resolveSubOptions<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): ResolvedOptions<OptionsConfig[K]>;
23030
+ export declare function config(options?: OptionsConfig & Omit<TypedFlatConfigItem, 'files' | 'ignores'>, ...userConfigs: Awaitable<FlatConfigComposer<any, any> | Linter.Config[] | TypedFlatConfigItem | TypedFlatConfigItem[]>[]): FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
23031
+ export declare function getOverrides<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): Partial<Linter.RulesRecord & RuleOptions>;
23032
+ export declare function resolveSubOptions<K extends keyof OptionsConfig>(options: OptionsConfig, key: K): ResolvedOptions<OptionsConfig[K]>;
22548
23033
  //#endregion
22549
23034
  //#region src/config-presets.d.ts
22550
- declare const CONFIG_PRESET_FULL_ON: OptionsConfig;
22551
- declare const CONFIG_PRESET_FULL_OFF: OptionsConfig;
23035
+ export declare const CONFIG_PRESET_FULL_ON: OptionsConfig;
23036
+ export declare const CONFIG_PRESET_FULL_OFF: OptionsConfig;
22552
23037
  //#endregion
22553
23038
  //#region src/configs/astro.d.ts
22554
- declare function astro(options?: OptionsFiles & OptionsOverrides & OptionsStylistic): Promise<TypedFlatConfigItem[]>;
23039
+ export declare function astro(options?: OptionsFiles & OptionsOverrides & OptionsStylistic): Promise<TypedFlatConfigItem[]>;
22555
23040
  //#endregion
22556
23041
  //#region src/configs/command.d.ts
22557
- declare function command(): Promise<TypedFlatConfigItem[]>;
23042
+ export declare function command(): Promise<TypedFlatConfigItem[]>;
22558
23043
  //#endregion
22559
23044
  //#region src/configs/comments.d.ts
22560
- declare function comments(): Promise<TypedFlatConfigItem[]>;
23045
+ export declare function comments(): Promise<TypedFlatConfigItem[]>;
22561
23046
  //#endregion
22562
23047
  //#region src/configs/disables.d.ts
22563
- declare function disables(): Promise<TypedFlatConfigItem[]>;
23048
+ export declare function disables(): Promise<TypedFlatConfigItem[]>;
22564
23049
  //#endregion
22565
23050
  //#region src/configs/e18e.d.ts
22566
- declare function e18e(options?: OptionsE18e & OptionsProjectType & OptionsIsInEditor): Promise<TypedFlatConfigItem[]>;
23051
+ export declare function e18e(options?: OptionsE18e & OptionsProjectType & OptionsIsInEditor): Promise<TypedFlatConfigItem[]>;
22567
23052
  //#endregion
22568
23053
  //#region src/configs/formatters.d.ts
22569
- declare function formatters(options?: true | OptionsFormatters, stylistic?: StylisticConfig): Promise<TypedFlatConfigItem[]>;
23054
+ export declare function formatters(options?: true | OptionsFormatters, stylistic?: StylisticConfig): Promise<TypedFlatConfigItem[]>;
22570
23055
  //#endregion
22571
23056
  //#region src/configs/ignores.d.ts
22572
- declare function ignores(userIgnores?: ((originals: string[]) => string[]) | string[], ignoreTypeScript?: boolean): Promise<TypedFlatConfigItem[]>;
23057
+ export declare function ignores(userIgnores?: ((originals: string[]) => string[]) | string[], ignoreTypeScript?: boolean): Promise<TypedFlatConfigItem[]>;
22573
23058
  //#endregion
22574
23059
  //#region src/configs/imports.d.ts
22575
- declare function imports(options?: OptionsOverrides & OptionsStylistic): Promise<TypedFlatConfigItem[]>;
23060
+ export declare function imports(options?: OptionsOverrides & OptionsStylistic): Promise<TypedFlatConfigItem[]>;
22576
23061
  //#endregion
22577
23062
  //#region src/configs/javascript.d.ts
22578
- declare function javascript(options?: OptionsIsInEditor & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
23063
+ export declare function javascript(options?: OptionsIsInEditor & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
22579
23064
  //#endregion
22580
23065
  //#region src/configs/jsdoc.d.ts
22581
23066
  /**
@@ -22584,25 +23069,25 @@ declare function javascript(options?: OptionsIsInEditor & OptionsOverrides): Pro
22584
23069
  * @param {OptionsStylistic} options The options for the JSDoc configuration.
22585
23070
  * @returns {Promise<TypedFlatConfigItem[]>} The JSDoc configuration.
22586
23071
  */
22587
- declare function jsdoc(options?: OptionsOverrides & OptionsProjectType & OptionsStylistic): Promise<TypedFlatConfigItem[]>;
23072
+ export declare function jsdoc(options?: OptionsOverrides & OptionsProjectType & OptionsStylistic): Promise<TypedFlatConfigItem[]>;
22588
23073
  //#endregion
22589
23074
  //#region src/configs/jsonc.d.ts
22590
- declare function jsonc(options?: OptionsFiles & OptionsOverrides & OptionsStylistic): Promise<TypedFlatConfigItem[]>;
23075
+ export declare function jsonc(options?: OptionsFiles & OptionsOverrides & OptionsStylistic): Promise<TypedFlatConfigItem[]>;
22591
23076
  //#endregion
22592
23077
  //#region src/configs/jsx.d.ts
22593
- declare function jsx(options?: OptionsJSX): Promise<TypedFlatConfigItem[]>;
23078
+ export declare function jsx(options?: OptionsJSX): Promise<TypedFlatConfigItem[]>;
22594
23079
  //#endregion
22595
23080
  //#region src/configs/markdown.d.ts
22596
- declare function markdown(options?: OptionsComponentExts & OptionsFiles & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
23081
+ export declare function markdown(options?: OptionsComponentExts & OptionsFiles & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
22597
23082
  //#endregion
22598
23083
  //#region src/configs/medusa.d.ts
22599
- declare function medusa(options?: OptionsMedusa & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
23084
+ export declare function medusa(options?: OptionsMedusa & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
22600
23085
  //#endregion
22601
23086
  //#region src/configs/nextjs.d.ts
22602
- declare function nextjs(options?: OptionsFiles & OptionsNextjs & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
23087
+ export declare function nextjs(options?: OptionsFiles & OptionsNextjs & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
22603
23088
  //#endregion
22604
23089
  //#region src/configs/node.d.ts
22605
- declare function node(): Promise<TypedFlatConfigItem[]>;
23090
+ export declare function node(): Promise<TypedFlatConfigItem[]>;
22606
23091
  //#endregion
22607
23092
  //#region src/configs/perfectionist.d.ts
22608
23093
  /**
@@ -22610,22 +23095,22 @@ declare function node(): Promise<TypedFlatConfigItem[]>;
22610
23095
  *
22611
23096
  * @see https://perfectionist.dev
22612
23097
  */
22613
- declare function perfectionist(): Promise<TypedFlatConfigItem[]>;
23098
+ export declare function perfectionist(): Promise<TypedFlatConfigItem[]>;
22614
23099
  //#endregion
22615
23100
  //#region src/configs/pnpm.d.ts
22616
- declare function pnpm(options: OptionsPnpm): Promise<TypedFlatConfigItem[]>;
23101
+ export declare function pnpm(options: OptionsPnpm): Promise<TypedFlatConfigItem[]>;
22617
23102
  //#endregion
22618
23103
  //#region src/configs/react.d.ts
22619
- declare function react(options?: OptionsTypeScriptParserOptions & OptionsTypeScriptWithTypes & OptionsReact & OptionsFiles): Promise<TypedFlatConfigItem[]>;
23104
+ export declare function react(options?: OptionsTypeScriptParserOptions & OptionsTypeScriptWithTypes & OptionsReact & OptionsFiles): Promise<TypedFlatConfigItem[]>;
22620
23105
  //#endregion
22621
23106
  //#region src/configs/regexp.d.ts
22622
- declare function regexp(options?: OptionsOverrides & OptionsRegExp): Promise<TypedFlatConfigItem[]>;
23107
+ export declare function regexp(options?: OptionsOverrides & OptionsRegExp): Promise<TypedFlatConfigItem[]>;
22623
23108
  //#endregion
22624
23109
  //#region src/configs/sanity.d.ts
22625
- declare function sanity(options?: OptionsFiles & OptionsOverrides & OptionsSanity): Promise<TypedFlatConfigItem[]>;
23110
+ export declare function sanity(options?: OptionsFiles & OptionsOverrides & OptionsSanity): Promise<TypedFlatConfigItem[]>;
22626
23111
  //#endregion
22627
23112
  //#region src/configs/solid.d.ts
22628
- declare function solid(options?: OptionsFiles & OptionsHasTypeScript & OptionsOverrides & OptionsTypeScriptWithTypes): Promise<TypedFlatConfigItem[]>;
23113
+ export declare function solid(options?: OptionsFiles & OptionsHasTypeScript & OptionsOverrides & OptionsTypeScriptWithTypes): Promise<TypedFlatConfigItem[]>;
22629
23114
  //#endregion
22630
23115
  //#region src/configs/sort.d.ts
22631
23116
  /**
@@ -22652,20 +23137,20 @@ declare function solid(options?: OptionsFiles & OptionsHasTypeScript & OptionsOv
22652
23137
  *
22653
23138
  * @returns {string[]} Returns the package.json sort order
22654
23139
  */
22655
- declare const packageSortOrder: string[];
22656
- declare const packageExportsSortOrder: string[];
23140
+ export declare const packageSortOrder: string[];
23141
+ export declare const packageExportsSortOrder: string[];
22657
23142
  /**
22658
23143
  * Sort package.json
22659
23144
  *
22660
23145
  * Requires `jsonc` config
22661
23146
  */
22662
- declare function sortPackageJson(): Promise<TypedFlatConfigItem[]>;
23147
+ export declare function sortPackageJson(): Promise<TypedFlatConfigItem[]>;
22663
23148
  /**
22664
23149
  * Sort tsconfig.json
22665
23150
  *
22666
23151
  * Requires `jsonc` config
22667
23152
  */
22668
- declare function sortTsconfig(): TypedFlatConfigItem[];
23153
+ export declare function sortTsconfig(): TypedFlatConfigItem[];
22669
23154
  //#endregion
22670
23155
  //#region src/configs/storybook.d.ts
22671
23156
  /**
@@ -22676,79 +23161,79 @@ declare function sortTsconfig(): TypedFlatConfigItem[];
22676
23161
  * @param {OptionsFiles & OptionsOverrides} options Options
22677
23162
  * @returns {Promise<TypedFlatConfigItem[]>} Returns the Storybook config
22678
23163
  */
22679
- declare function storybook(options?: OptionsFiles & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
23164
+ export declare function storybook(options?: OptionsFiles & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
22680
23165
  //#endregion
22681
23166
  //#region src/configs/stylistic.d.ts
22682
- declare const StylisticConfigDefaults: StylisticConfig;
22683
- interface StylisticOptions extends OptionsOverrides, StylisticConfig {
23167
+ export declare const StylisticConfigDefaults: StylisticConfig;
23168
+ export interface StylisticOptions extends OptionsOverrides, StylisticConfig {
22684
23169
  lessOpinionated?: boolean;
22685
23170
  }
22686
- declare function stylistic(options?: StylisticOptions): Promise<TypedFlatConfigItem[]>;
23171
+ export declare function stylistic(options?: StylisticOptions): Promise<TypedFlatConfigItem[]>;
22687
23172
  //#endregion
22688
23173
  //#region src/configs/svelte.d.ts
22689
- declare function svelte(options?: OptionsFiles & OptionsHasTypeScript & OptionsOverrides & OptionsStylistic): Promise<TypedFlatConfigItem[]>;
23174
+ export declare function svelte(options?: OptionsFiles & OptionsHasTypeScript & OptionsOverrides & OptionsStylistic): Promise<TypedFlatConfigItem[]>;
22690
23175
  //#endregion
22691
23176
  //#region src/configs/tailwindcss.d.ts
22692
- declare function tailwindcss(options?: OptionsFiles & OptionsOverrides & OptionsTailwindcss & OptionsTypeScriptWithTypes): Promise<TypedFlatConfigItem[]>;
23177
+ export declare function tailwindcss(options?: OptionsFiles & OptionsOverrides & OptionsTailwindcss & OptionsTypeScriptWithTypes): Promise<TypedFlatConfigItem[]>;
22693
23178
  //#endregion
22694
23179
  //#region src/configs/test.d.ts
22695
- declare function test(options?: OptionsFiles & OptionsIsInEditor & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
23180
+ export declare function test(options?: OptionsFiles & OptionsIsInEditor & OptionsOverrides): Promise<TypedFlatConfigItem[]>;
22696
23181
  //#endregion
22697
23182
  //#region src/configs/toml.d.ts
22698
- declare function toml(options?: OptionsFiles & OptionsOverrides & OptionsStylistic): Promise<TypedFlatConfigItem[]>;
23183
+ export declare function toml(options?: OptionsFiles & OptionsOverrides & OptionsStylistic): Promise<TypedFlatConfigItem[]>;
22699
23184
  //#endregion
22700
23185
  //#region src/configs/typescript.d.ts
22701
- declare function typescript(options?: OptionsFiles & OptionsComponentExts & OptionsOverrides & OptionsTypeScriptWithTypes & OptionsTypeScriptParserOptions & OptionsProjectType & OptionsTypeScriptErasableOnly): Promise<TypedFlatConfigItem[]>;
23186
+ export declare function typescript(options?: OptionsFiles & OptionsComponentExts & OptionsOverrides & OptionsTypeScriptWithTypes & OptionsTypeScriptParserOptions & OptionsProjectType & OptionsTypeScriptErasableOnly): Promise<TypedFlatConfigItem[]>;
22702
23187
  //#endregion
22703
23188
  //#region src/configs/unicorn.d.ts
22704
- declare function unicorn(options?: OptionsUnicorn): Promise<TypedFlatConfigItem[]>;
23189
+ export declare function unicorn(options?: OptionsUnicorn): Promise<TypedFlatConfigItem[]>;
22705
23190
  //#endregion
22706
23191
  //#region src/configs/unocss.d.ts
22707
- declare function unocss(options?: OptionsUnoCSS): Promise<TypedFlatConfigItem[]>;
23192
+ export declare function unocss(options?: OptionsUnoCSS): Promise<TypedFlatConfigItem[]>;
22708
23193
  //#endregion
22709
23194
  //#region src/configs/vue.d.ts
22710
- declare function vue(options?: OptionsFiles & OptionsHasTypeScript & OptionsOverrides & OptionsStylistic & OptionsVue): Promise<TypedFlatConfigItem[]>;
23195
+ export declare function vue(options?: OptionsFiles & OptionsHasTypeScript & OptionsOverrides & OptionsStylistic & OptionsVue): Promise<TypedFlatConfigItem[]>;
22711
23196
  //#endregion
22712
23197
  //#region src/configs/yaml.d.ts
22713
- declare function yaml(options?: OptionsFiles & OptionsOverrides & OptionsStylistic): Promise<TypedFlatConfigItem[]>;
23198
+ export declare function yaml(options?: OptionsFiles & OptionsOverrides & OptionsStylistic): Promise<TypedFlatConfigItem[]>;
22714
23199
  //#endregion
22715
23200
  //#region src/constants.d.ts
22716
- declare const PACKAGE_NAME: "@infernodesign/eslint-config";
23201
+ export declare const PACKAGE_NAME: "@infernodesign/eslint-config";
22717
23202
  //#endregion
22718
23203
  //#region src/globs.d.ts
22719
- declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
22720
- declare const GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
22721
- declare const GLOB_JS = "**/*.?([cm])js";
22722
- declare const GLOB_JSX = "**/*.?([cm])jsx";
22723
- declare const GLOB_TS = "**/*.?([cm])ts";
22724
- declare const GLOB_TSX = "**/*.?([cm])tsx";
22725
- declare const GLOB_STYLE = "**/*.{c,le,sc}ss";
22726
- declare const GLOB_CSS = "**/*.css";
22727
- declare const GLOB_POSTCSS = "**/*.{p,post}css";
22728
- declare const GLOB_LESS = "**/*.less";
22729
- declare const GLOB_SCSS = "**/*.scss";
22730
- declare const GLOB_JSON = "**/*.json";
22731
- declare const GLOB_JSON5 = "**/*.json5";
22732
- declare const GLOB_JSONC = "**/*.jsonc";
22733
- declare const GLOB_MARKDOWN = "**/*.md";
22734
- declare const GLOB_MARKDOWN_IN_MARKDOWN = "**/*.md/*.md";
22735
- declare const GLOB_SVELTE = "**/*.svelte?(.{js,ts})";
22736
- declare const GLOB_VUE = "**/*.vue";
22737
- declare const GLOB_YAML = "**/*.y?(a)ml";
22738
- declare const GLOB_TOML = "**/*.toml";
22739
- declare const GLOB_XML = "**/*.xml";
22740
- declare const GLOB_SVG = "**/*.svg";
22741
- declare const GLOB_HTML = "**/*.htm?(l)";
22742
- declare const GLOB_ASTRO = "**/*.astro";
22743
- declare const GLOB_ASTRO_TS = "**/*.astro/*.ts";
22744
- declare const GLOB_GRAPHQL = "**/*.{g,graph}ql";
22745
- declare const GLOB_MARKDOWN_CODE = "**/*.md/**/*.?([cm])[jt]s?(x)";
22746
- declare const GLOB_STORYBOOK: string[];
22747
- declare const GLOB_SANITY: string[];
22748
- declare const GLOB_TESTS: string[];
22749
- declare const GLOB_ALL_SRC: string[];
22750
- declare const GLOB_EXCLUDE: string[];
22751
- declare const GLOB_SEARCH_EXCLUDE: Set<string>;
23204
+ export declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
23205
+ export declare const GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
23206
+ export declare const GLOB_JS = "**/*.?([cm])js";
23207
+ export declare const GLOB_JSX = "**/*.?([cm])jsx";
23208
+ export declare const GLOB_TS = "**/*.?([cm])ts";
23209
+ export declare const GLOB_TSX = "**/*.?([cm])tsx";
23210
+ export declare const GLOB_STYLE = "**/*.{c,le,sc}ss";
23211
+ export declare const GLOB_CSS = "**/*.css";
23212
+ export declare const GLOB_POSTCSS = "**/*.{p,post}css";
23213
+ export declare const GLOB_LESS = "**/*.less";
23214
+ export declare const GLOB_SCSS = "**/*.scss";
23215
+ export declare const GLOB_JSON = "**/*.json";
23216
+ export declare const GLOB_JSON5 = "**/*.json5";
23217
+ export declare const GLOB_JSONC = "**/*.jsonc";
23218
+ export declare const GLOB_MARKDOWN = "**/*.md";
23219
+ export declare const GLOB_MARKDOWN_IN_MARKDOWN = "**/*.md/*.md";
23220
+ export declare const GLOB_SVELTE = "**/*.svelte?(.{js,ts})";
23221
+ export declare const GLOB_VUE = "**/*.vue";
23222
+ export declare const GLOB_YAML = "**/*.y?(a)ml";
23223
+ export declare const GLOB_TOML = "**/*.toml";
23224
+ export declare const GLOB_XML = "**/*.xml";
23225
+ export declare const GLOB_SVG = "**/*.svg";
23226
+ export declare const GLOB_HTML = "**/*.htm?(l)";
23227
+ export declare const GLOB_ASTRO = "**/*.astro";
23228
+ export declare const GLOB_ASTRO_TS = "**/*.astro/*.ts";
23229
+ export declare const GLOB_GRAPHQL = "**/*.{g,graph}ql";
23230
+ export declare const GLOB_MARKDOWN_CODE = "**/*.md/**/*.?([cm])[jt]s?(x)";
23231
+ export declare const GLOB_STORYBOOK: string[];
23232
+ export declare const GLOB_SANITY: string[];
23233
+ export declare const GLOB_TESTS: string[];
23234
+ export declare const GLOB_ALL_SRC: string[];
23235
+ export declare const GLOB_EXCLUDE: string[];
23236
+ export declare const GLOB_SEARCH_EXCLUDE: Set<string>;
22752
23237
  //#endregion
22753
23238
  //#region src/utils.d.ts
22754
23239
  /**
@@ -22756,7 +23241,7 @@ declare const GLOB_SEARCH_EXCLUDE: Set<string>;
22756
23241
  *
22757
23242
  * @returns {Linter.Parser} The plain parser.
22758
23243
  */
22759
- declare const parserPlain: {
23244
+ export declare const parserPlain: {
22760
23245
  meta: {
22761
23246
  name: string;
22762
23247
  };
@@ -22787,21 +23272,21 @@ declare const parserPlain: {
22787
23272
  * @param {Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[]>[]} configs The configs to be combined.
22788
23273
  * @returns {Promise<TypedFlatConfigItem[]>} The combined configs.
22789
23274
  */
22790
- declare function combine(...configs: Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[]>[]): Promise<TypedFlatConfigItem[]>;
23275
+ export declare function combine(...configs: Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[]>[]): Promise<TypedFlatConfigItem[]>;
22791
23276
  /**
22792
23277
  * Ensure packages are installed.
22793
23278
  *
22794
23279
  * @param {string[]} packages The packages to ensure are installed.
22795
23280
  * @returns {Promise<void>} The promise to ensure packages are installed.
22796
23281
  */
22797
- declare function ensurePackages(packages: (string | undefined)[]): Promise<void>;
23282
+ export declare function ensurePackages(packages: (string | undefined)[]): Promise<void>;
22798
23283
  /**
22799
23284
  * Interop default.
22800
23285
  *
22801
23286
  * @param {Awaitable<T>} m The module to interop default from.
22802
23287
  * @returns {Promise<T extends { default: infer U } ? U : T>} The interop default.
22803
23288
  */
22804
- declare function interopDefault<T>(m: Awaitable<T>): Promise<T extends {
23289
+ export declare function interopDefault<T>(m: Awaitable<T>): Promise<T extends {
22805
23290
  default: infer U;
22806
23291
  } ? U : T>;
22807
23292
  /**
@@ -22809,39 +23294,39 @@ declare function interopDefault<T>(m: Awaitable<T>): Promise<T extends {
22809
23294
  *
22810
23295
  * @returns {boolean} True if running in Cursor Agent, false otherwise.
22811
23296
  */
22812
- declare function isInCursorAgent(): boolean;
23297
+ export declare function isInCursorAgent(): boolean;
22813
23298
  /**
22814
23299
  * Check if running in editor environment.
22815
23300
  *
22816
23301
  * @returns {boolean} True if running in editor environment, false otherwise.
22817
23302
  */
22818
- declare function isInEditorEnv(): boolean;
23303
+ export declare function isInEditorEnv(): boolean;
22819
23304
  /**
22820
23305
  * Check if running in git hooks or lint staged.
22821
23306
  *
22822
23307
  * @returns {boolean} True if running in git hooks or lint staged, false otherwise.
22823
23308
  */
22824
- declare function isInGitHooksOrLintStaged(): boolean;
23309
+ export declare function isInGitHooksOrLintStaged(): boolean;
22825
23310
  /**
22826
23311
  * Check if running in VSCode ESLint extension host process
22827
23312
  *
22828
23313
  * @returns {boolean} True if running in VSCode ESLint extension host process, false otherwise.
22829
23314
  */
22830
- declare function isInVSCodeESLintExtension(): boolean;
23315
+ export declare function isInVSCodeESLintExtension(): boolean;
22831
23316
  /**
22832
23317
  * Check if package is in scope.
22833
23318
  *
22834
23319
  * @param {string} name The name of the package to check.
22835
23320
  * @returns {boolean} True if package is in scope, false otherwise.
22836
23321
  */
22837
- declare function isPackageInScope(name: string): boolean;
23322
+ export declare function isPackageInScope(name: string): boolean;
22838
23323
  /**
22839
23324
  * Normalize rules.
22840
23325
  *
22841
23326
  * @param {Record<string, any>} rules The rules to normalize.
22842
23327
  * @returns {Record<string, any>} The normalized rules.
22843
23328
  */
22844
- declare function normalizeRules(rules: Record<string, any>): Record<string, any>;
23329
+ export declare function normalizeRules(rules: Record<string, any>): Record<string, any>;
22845
23330
  /**
22846
23331
  * Rename plugin names a flat configs array.
22847
23332
  *
@@ -22849,7 +23334,7 @@ declare function normalizeRules(rules: Record<string, any>): Record<string, any>
22849
23334
  * @param {Record<string, string>} map The map of plugin names to rename.
22850
23335
  * @returns {TypedFlatConfigItem[]} The configs with renamed plugin names.
22851
23336
  */
22852
- declare function renamePluginInConfigs(configs: TypedFlatConfigItem[], map: Record<string, string>): TypedFlatConfigItem[];
23337
+ export declare function renamePluginInConfigs(configs: TypedFlatConfigItem[], map: Record<string, string>): TypedFlatConfigItem[];
22853
23338
  /**
22854
23339
  * Rename plugin prefixes in a rule object.
22855
23340
  * Accepts a map of prefixes to rename.
@@ -22858,13 +23343,13 @@ declare function renamePluginInConfigs(configs: TypedFlatConfigItem[], map: Reco
22858
23343
  * @param {Record<string, string>} map The map of plugin prefixes to rename.
22859
23344
  * @returns {Record<string, any>} The rules with renamed plugin prefixes.
22860
23345
  */
22861
- declare function renameRules(rules: Record<string, any>, map: Record<string, string>): Record<string, any>;
23346
+ export declare function renameRules(rules: Record<string, any>, map: Record<string, string>): Record<string, any>;
22862
23347
  /**
22863
23348
  * Convert value to array.
22864
23349
  *
22865
23350
  * @param {T | T[]} value The value to convert to array.
22866
23351
  * @returns {T[]} The value as array.
22867
23352
  */
22868
- declare function toArray<T>(value: T | T[]): T[];
23353
+ export declare function toArray<T>(value: T | T[]): T[];
22869
23354
  //#endregion
22870
- export { Awaitable, CONFIG_PRESET_FULL_OFF, CONFIG_PRESET_FULL_ON, type ConfigNames, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SANITY, GLOB_SCSS, GLOB_SEARCH_EXCLUDE, GLOB_SRC, GLOB_SRC_EXT, GLOB_STORYBOOK, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, OptionsComponentExts, OptionsConfig, OptionsE18e, OptionsFiles, OptionsFormatters, OptionsHasTypeScript, OptionsIsInEditor, OptionsJSX, OptionsJSXA11y, OptionsMedusa, OptionsNextjs, OptionsOverrides, OptionsPnpm, OptionsProjectType, OptionsReact, OptionsRegExp, OptionsSanity, OptionsStylistic, OptionsTailwindcss, OptionsTypeScriptErasableOnly, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsUnicorn, OptionsUnoCSS, OptionsVue, PACKAGE_NAME, ResolvedOptions, Rules, StylisticConfig, StylisticConfigDefaults, StylisticOptions, TypedFlatConfigItem, astro, combine, command, comments, config, config as inferno, defaultPluginRenaming, disables, e18e, ensurePackages, formatters, getOverrides, ignores, imports, interopDefault, isInCursorAgent, isInEditorEnv, isInGitHooksOrLintStaged, isInVSCodeESLintExtension, isPackageInScope, javascript, jsdoc, jsonc, jsx, markdown, medusa, nextjs, node, normalizeRules, packageExportsSortOrder, packageSortOrder, parserPlain, perfectionist, pnpm, react, regexp, renamePluginInConfigs, renameRules, resolveSubOptions, sanity, solid, sortPackageJson, sortTsconfig, storybook, stylistic, svelte, tailwindcss, test, toArray, toml, typescript, unicorn, unocss, vue, yaml };
23355
+ export { type ConfigNames, config as inferno };