@w5s/eslint-config 7.0.0 → 7.1.1

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.
@@ -11,1841 +11,1992 @@ declare module 'eslint' {
11
11
  export interface RuleOptions {
12
12
  /**
13
13
  * Prefer better DOM traversal APIs.
14
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/better-dom-traversing.md
14
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/better-dom-traversing.md
15
15
  */
16
16
  'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>
17
17
  /**
18
18
  * Removed. Prefer `eslint-plugin-regexp`
19
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#better-regex
19
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#better-regex
20
20
  * @deprecated
21
21
  */
22
22
  'unicorn/better-regex'?: Linter.RuleEntry<[]>
23
23
  /**
24
24
  * Enforce a specific parameter name in catch clauses.
25
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/catch-error-name.md
25
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/catch-error-name.md
26
26
  */
27
27
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
28
28
  /**
29
29
  * Enforce consistent class references in static methods.
30
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/class-reference-in-static-methods.md
30
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/class-reference-in-static-methods.md
31
31
  */
32
32
  'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>
33
+ /**
34
+ * Enforce consistent spacing before and after commas in JSON.
35
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/comma-spacing.md
36
+ */
37
+ 'unicorn/comma-spacing'?: Linter.RuleEntry<[]>
33
38
  /**
34
39
  * Enforce better comment content.
35
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/comment-content.md
40
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/comment-content.md
36
41
  */
37
42
  'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>
38
43
  /**
39
44
  * Enforce a consistent return style for multiline arrow function bodies.
40
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-arrow-return-style.md
45
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-arrow-return-style.md
41
46
  */
42
47
  'unicorn/consistent-arrow-return-style'?: Linter.RuleEntry<[]>
43
48
  /**
44
49
  * Enforce consistent assertion style with `node:assert`.
45
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-assert.md
50
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-assert.md
46
51
  */
47
52
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
48
53
  /**
49
54
  * Enforce consistent naming for boolean names.
50
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-boolean-name.md
55
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-boolean-name.md
51
56
  */
52
57
  'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>
53
58
  /**
54
59
  * Enforce consistent class member order.
55
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-class-member-order.md
60
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-class-member-order.md
56
61
  */
57
62
  'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>
58
63
  /**
59
64
  * Enforce consistent spelling of compound words in identifiers.
60
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-compound-words.md
65
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-compound-words.md
61
66
  */
62
67
  'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>
63
68
  /**
64
69
  * Enforce consistent conditional object spread style.
65
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-conditional-object-spread.md
70
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-conditional-object-spread.md
66
71
  */
67
72
  'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>
68
73
  /**
69
74
  * Prefer passing `Date` directly to the constructor when cloning.
70
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-date-clone.md
75
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-date-clone.md
71
76
  */
72
77
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
73
78
  /**
74
79
  * Use destructured variables over properties.
75
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-destructuring.md
80
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-destructuring.md
76
81
  */
77
82
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
78
83
  /**
79
84
  * Prefer consistent types when spreading a ternary in an array literal.
80
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-empty-array-spread.md
85
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-empty-array-spread.md
81
86
  */
82
87
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
83
88
  /**
84
89
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
85
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-existence-index-check.md
90
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-existence-index-check.md
86
91
  */
87
92
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
88
93
  /**
89
94
  * Enforce consistent decorator position on exported classes.
90
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-export-decorator-position.md
95
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-export-decorator-position.md
91
96
  */
92
97
  'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>
93
98
  /**
94
99
  * Move function definitions to the highest possible scope.
95
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-function-scoping.md
100
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-function-scoping.md
96
101
  */
97
102
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
98
103
  /**
99
104
  * Enforce function syntax by role.
100
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-function-style.md
105
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-function-style.md
101
106
  */
102
107
  'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>
103
108
  /**
104
109
  * Enforce consistent JSON file reads before `JSON.parse()`.
105
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-json-file-read.md
110
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-json-file-read.md
106
111
  */
107
112
  'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>
108
113
  /**
109
114
  * Enforce consistent optional chaining for same-base member access.
110
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-optional-chaining.md
115
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-optional-chaining.md
111
116
  */
112
117
  'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>
113
118
  /**
114
119
  * Enforce consistent style for escaping `${` in template literals.
115
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-template-literal-escape.md
120
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-template-literal-escape.md
116
121
  */
117
122
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>
118
123
  /**
119
124
  * Enforce consistent labels on tuple type elements.
120
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/consistent-tuple-labels.md
125
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-tuple-labels.md
121
126
  */
122
127
  'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>
123
128
  /**
124
129
  * Enforce correct `Error` subclassing.
125
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/custom-error-definition.md
130
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/custom-error-definition.md
126
131
  */
127
132
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
128
133
  /**
129
134
  * Enforce consistent default export declarations.
130
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/default-export-style.md
135
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/default-export-style.md
131
136
  */
132
137
  'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>
133
138
  /**
134
139
  * Enforce consistent style for DOM element dataset access.
135
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/dom-node-dataset.md
140
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/dom-node-dataset.md
136
141
  */
137
142
  'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>
138
143
  /**
139
144
  * Enforce no spaces between braces.
140
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/empty-brace-spaces.md
145
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/empty-brace-spaces.md
141
146
  */
142
147
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
143
148
  /**
144
149
  * Enforce passing a `message` value when creating a built-in error.
145
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/error-message.md
150
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/error-message.md
146
151
  */
147
152
  'unicorn/error-message'?: Linter.RuleEntry<[]>
148
153
  /**
149
154
  * Require escape sequences to use uppercase or lowercase values.
150
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/escape-case.md
155
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/escape-case.md
151
156
  */
152
157
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>
153
158
  /**
154
159
  * Add expiration conditions to TODO comments.
155
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/expiring-todo-comments.md
160
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/expiring-todo-comments.md
156
161
  */
157
162
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
158
163
  /**
159
164
  * Enforce explicitly comparing the `length` or `size` property of a value.
160
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/explicit-length-check.md
165
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/explicit-length-check.md
161
166
  */
162
167
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
163
168
  /**
164
169
  * Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
165
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/explicit-timer-delay.md
170
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/explicit-timer-delay.md
166
171
  */
167
172
  'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>
168
173
  /**
169
174
  * Enforce a case style for filenames and directory names.
170
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/filename-case.md
175
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/filename-case.md
171
176
  */
172
177
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
173
178
  /**
174
179
  * Require identifiers to match a specified regular expression.
175
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/id-match.md
180
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/id-match.md
176
181
  */
177
182
  'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>
178
183
  /**
179
184
  * Enforce specific import styles per module.
180
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/import-style.md
185
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/import-style.md
181
186
  */
182
187
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
188
+ /**
189
+ * Enforce consistent indentation in JSON and CSS.
190
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/indent.md
191
+ */
192
+ 'unicorn/indent'?: Linter.RuleEntry<UnicornIndent>
183
193
  /**
184
194
  * Prevent usage of variables from outside the scope of isolated functions.
185
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/isolated-functions.md
195
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/isolated-functions.md
186
196
  */
187
197
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>
188
198
  /**
189
199
  * Enforce a consistent style for optional loop sources.
190
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/iteration-fallback-style.md
200
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/iteration-fallback-style.md
191
201
  */
192
202
  'unicorn/iteration-fallback-style'?: Linter.RuleEntry<UnicornIterationFallbackStyle>
203
+ /**
204
+ * Enforce a case style for data keys.
205
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/key-name-casing.md
206
+ */
207
+ 'unicorn/key-name-casing'?: Linter.RuleEntry<UnicornKeyNameCasing>
193
208
  /**
194
209
  * Require or disallow logical assignment operator shorthand
195
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/logical-assignment-operators.md
210
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/logical-assignment-operators.md
196
211
  */
197
212
  'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>
198
213
  /**
199
214
  * Limit the depth of nested calls.
200
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/max-nested-calls.md
215
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/max-nested-calls.md
201
216
  */
202
217
  'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>
203
218
  /**
204
219
  * Enforce replacements for variable, property, and filenames.
205
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/name-replacements.md
220
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/name-replacements.md
206
221
  */
207
222
  'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>
208
223
  /**
209
224
  * Enforce correct use of `new` for builtin constructors.
210
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/new-for-builtins.md
225
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/new-for-builtins.md
211
226
  */
212
227
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
213
228
  /**
214
229
  * Enforce specifying rules to disable in `eslint-disable` comments.
215
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-abusive-eslint-disable.md
230
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-abusive-eslint-disable.md
216
231
  */
217
232
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
218
233
  /**
219
234
  * Disallow recursive access to `this` within getters and setters.
220
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-accessor-recursion.md
235
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-accessor-recursion.md
221
236
  */
222
237
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
223
238
  /**
224
239
  * Disallow bitwise operators where a logical operator was likely intended.
225
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-accidental-bitwise-operator.md
240
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-accidental-bitwise-operator.md
226
241
  */
227
242
  'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>
228
243
  /**
229
244
  * Disallow anonymous functions and classes as the default export.
230
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-anonymous-default-export.md
245
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-anonymous-default-export.md
231
246
  */
232
247
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
233
248
  /**
234
249
  * Prevent passing a function reference directly to iterator methods.
235
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-callback-reference.md
250
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-callback-reference.md
236
251
  */
237
252
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>
238
253
  /**
239
254
  * Disallow array accumulation with `Array#concat()` in loops.
240
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-concat-in-loop.md
255
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-concat-in-loop.md
241
256
  */
242
257
  'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>
243
258
  /**
244
259
  * Disallow using reference values as `Array#fill()` values.
245
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-fill-with-reference-type.md
260
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-fill-with-reference-type.md
246
261
  */
247
262
  'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>
248
263
  /**
249
264
  * Disallow `.fill()` after `Array.from({length: …})`.
250
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-from-fill.md
265
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-from-fill.md
251
266
  */
252
267
  'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>
253
268
  /**
254
269
  * Disallow front-of-array mutation.
255
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-front-mutation.md
270
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-front-mutation.md
256
271
  */
257
272
  'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>
258
273
  /**
259
274
  * Disallow using the `this` argument in array methods.
260
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-method-this-argument.md
275
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-method-this-argument.md
261
276
  */
262
277
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
263
278
  /**
264
279
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
265
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
280
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
266
281
  * @deprecated
267
282
  */
268
283
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>
269
284
  /**
270
285
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
271
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-reduce.md
286
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-reduce.md
272
287
  */
273
288
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
274
289
  /**
275
290
  * Prefer `Array#toReversed()` over `Array#reverse()`.
276
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-reverse.md
291
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-reverse.md
277
292
  */
278
293
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>
279
294
  /**
280
295
  * Prefer `Array#toSorted()` over `Array#sort()`.
281
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-sort.md
296
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-sort.md
282
297
  */
283
298
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>
284
299
  /**
285
300
  * Disallow sorting arrays to get the minimum or maximum value.
286
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-sort-for-min-max.md
301
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-sort-for-min-max.md
287
302
  */
288
303
  'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>
289
304
  /**
290
305
  * Prefer `Array#toSpliced()` over `Array#splice()`.
291
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-array-splice.md
306
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-splice.md
292
307
  */
293
308
  'unicorn/no-array-splice'?: Linter.RuleEntry<[]>
294
309
  /**
295
- * Disallow asterisk prefixes in documentation comments.
296
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
310
+ * Disallow asterisk prefixes in multiline comments.
311
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
297
312
  */
298
313
  'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>
299
314
  /**
300
315
  * Disallow asynchronous callbacks in synchronous iterator helpers.
301
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-async-iterator-callback.md
316
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-async-iterator-callback.md
302
317
  */
303
318
  'unicorn/no-async-iterator-callback'?: Linter.RuleEntry<[]>
304
319
  /**
305
320
  * Disallow async functions as `Promise#finally()` callbacks.
306
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-async-promise-finally.md
321
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-async-promise-finally.md
307
322
  */
308
323
  'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>
309
324
  /**
310
325
  * Disallow member access from await expression.
311
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-await-expression-member.md
326
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-await-expression-member.md
312
327
  */
313
328
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
314
329
  /**
315
330
  * Disallow using `await` in `Promise` method parameters.
316
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-await-in-promise-methods.md
331
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-await-in-promise-methods.md
317
332
  */
318
333
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
319
334
  /**
320
335
  * Disallow barrel files.
321
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-barrel-files.md
336
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-barrel-files.md
322
337
  */
323
338
  'unicorn/no-barrel-files'?: Linter.RuleEntry<[]>
324
339
  /**
325
340
  * Disallow unnecessary `Blob` to `File` conversion.
326
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-blob-to-file.md
341
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-blob-to-file.md
327
342
  */
328
343
  'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>
329
344
  /**
330
345
  * Disallow boolean-returning sort comparators.
331
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-boolean-sort-comparator.md
346
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-boolean-sort-comparator.md
332
347
  */
333
348
  'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>
334
349
  /**
335
350
  * Disallow `break` and optionally `continue` in nested loops and switches inside loops.
336
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-break-in-nested-loop.md
351
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-break-in-nested-loop.md
337
352
  */
338
353
  'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<UnicornNoBreakInNestedLoop>
339
354
  /**
340
355
  * Prefer drawing canvases directly instead of converting them to images.
341
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-canvas-to-image.md
356
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-canvas-to-image.md
342
357
  */
343
358
  'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>
344
359
  /**
345
360
  * Disallow chained comparisons such as `a < b < c`.
346
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-chained-comparison.md
361
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-chained-comparison.md
347
362
  */
348
363
  'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>
349
364
  /**
350
365
  * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
351
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-collection-bracket-access.md
366
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-collection-bracket-access.md
352
367
  */
353
368
  'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>
354
369
  /**
355
370
  * Disallow dynamic object property existence checks.
356
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-computed-property-existence-check.md
371
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-computed-property-existence-check.md
357
372
  */
358
373
  'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>
374
+ /**
375
+ * Disallow conflicting CSS query and HTML form constraints.
376
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-conflicting-constraints.md
377
+ */
378
+ 'unicorn/no-conflicting-constraints'?: Linter.RuleEntry<[]>
359
379
  /**
360
380
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
361
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-confusing-array-splice.md
381
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-confusing-array-splice.md
362
382
  */
363
383
  'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>
364
384
  /**
365
385
  * Disallow confusing uses of `Array#with()`.
366
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-confusing-array-with.md
386
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-confusing-array-with.md
367
387
  */
368
388
  'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>
369
389
  /**
370
390
  * Do not use leading/trailing space between `console.log` parameters.
371
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-console-spaces.md
391
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-console-spaces.md
372
392
  */
373
393
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
374
394
  /**
375
395
  * Disallow arithmetic and bitwise operations that always evaluate to `0`.
376
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-constant-zero-expression.md
396
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-constant-zero-expression.md
377
397
  */
378
398
  'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>
379
399
  /**
380
400
  * Disallow declarations before conditional early exits when they are only used after the exit.
381
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-declarations-before-early-exit.md
401
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-declarations-before-early-exit.md
382
402
  */
383
403
  'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>
384
404
  /**
385
- * Disallow deprecated CSS features.
386
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-deprecated-css-features.md
405
+ * Moved to `eslint-cssicorn` as `cssicorn/no-deprecated-features`.
406
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-deprecated-css-features
407
+ * @deprecated
387
408
  */
388
- 'unicorn/no-deprecated-css-features'?: Linter.RuleEntry<UnicornNoDeprecatedCssFeatures>
409
+ 'unicorn/no-deprecated-css-features'?: Linter.RuleEntry<[]>
389
410
  /**
390
411
  * Do not use `document.cookie` directly.
391
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-document-cookie.md
412
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-document-cookie.md
392
413
  */
393
414
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
394
415
  /**
395
416
  * Disallow two comparisons of the same operands that can be combined into one.
396
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-double-comparison.md
417
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-double-comparison.md
397
418
  */
398
419
  'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>
399
420
  /**
400
- * Disallow duplicate CSS selectors.
401
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-css-selectors.md
421
+ * Moved to `eslint-cssicorn` as `cssicorn/no-duplicate-selectors`.
422
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-css-selectors
423
+ * @deprecated
402
424
  */
403
425
  'unicorn/no-duplicate-css-selectors'?: Linter.RuleEntry<[]>
404
426
  /**
405
- * Disallow duplicate font family names.
406
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-font-family-names.md
427
+ * Moved to `eslint-cssicorn` as `cssicorn/no-duplicate-font-family-names`.
428
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-font-family-names
429
+ * @deprecated
407
430
  */
408
431
  'unicorn/no-duplicate-font-family-names'?: Linter.RuleEntry<[]>
409
432
  /**
410
433
  * Disallow duplicate adjacent branches in if chains.
411
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-if-branches.md
434
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-if-branches.md
412
435
  */
413
436
  'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>
414
437
  /**
415
438
  * Disallow adjacent duplicate operands in logical expressions.
416
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-logical-operands.md
439
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-logical-operands.md
417
440
  */
418
441
  'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>
419
442
  /**
420
443
  * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
421
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-loops.md
444
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-loops.md
422
445
  */
423
446
  'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>
424
447
  /**
425
448
  * Disallow duplicate values in `Set` constructor array literals.
426
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-duplicate-set-values.md
449
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-set-values.md
427
450
  */
428
451
  'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>
429
452
  /**
430
453
  * Disallow empty files.
431
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-empty-file.md
454
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-empty-file.md
432
455
  */
433
456
  'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>
457
+ /**
458
+ * Disallow empty link text in Markdown.
459
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-empty-link-text.md
460
+ */
461
+ 'unicorn/no-empty-link-text'?: Linter.RuleEntry<[]>
434
462
  /**
435
463
  * Disallow assigning to built-in error properties.
436
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-error-property-assignment.md
464
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-error-property-assignment.md
437
465
  */
438
466
  'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>
439
467
  /**
440
468
  * Disallow exports in scripts.
441
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-exports-in-scripts.md
469
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-exports-in-scripts.md
442
470
  */
443
471
  'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>
444
472
  /**
445
473
  * Prefer `for…of` over the `forEach` method.
446
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-for-each.md
474
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-for-each.md
447
475
  */
448
476
  'unicorn/no-for-each'?: Linter.RuleEntry<[]>
449
477
  /**
450
478
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
451
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-for-loop.md
479
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-for-loop.md
452
480
  */
453
481
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
454
482
  /**
455
483
  * Disallow assigning properties on the global object.
456
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-global-object-property-assignment.md
484
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-global-object-property-assignment.md
457
485
  */
458
486
  'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>
459
487
  /**
460
- * Replaced by `unicorn/prefer-unicode-code-point-escapes` which covers more cases.
461
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
488
+ * Replaced by `unicorn/prefer-literal-ascii` and `unicorn/prefer-unicode-code-point-escapes`, which cover more cases.
489
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
462
490
  * @deprecated
463
491
  */
464
492
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
465
493
  /**
466
494
  * Disallow immediate mutation after variable assignment.
467
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-immediate-mutation.md
495
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-immediate-mutation.md
468
496
  */
469
497
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<UnicornNoImmediateMutation>
470
498
  /**
471
499
  * Disallow impossible comparisons against `.length` or `.size`.
472
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-impossible-length-comparison.md
500
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-impossible-length-comparison.md
473
501
  */
474
502
  'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>
503
+ /**
504
+ * Disallow class accessors that hide an inherited getter or setter.
505
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-incomplete-accessor-override.md
506
+ */
507
+ 'unicorn/no-incomplete-accessor-override'?: Linter.RuleEntry<[]>
475
508
  /**
476
509
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
477
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-incorrect-query-selector.md
510
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-incorrect-query-selector.md
478
511
  */
479
512
  'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>
480
513
  /**
481
514
  * Disallow incorrect template literal interpolation syntax.
482
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-incorrect-template-string-interpolation.md
515
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-incorrect-template-string-interpolation.md
483
516
  */
484
517
  'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>
518
+ /**
519
+ * Disallow ineffective CSP directives in `<meta>` elements.
520
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-ineffective-csp-directives.md
521
+ */
522
+ 'unicorn/no-ineffective-csp-directives'?: Linter.RuleEntry<[]>
485
523
  /**
486
524
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
487
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
525
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
488
526
  * @deprecated
489
527
  */
490
528
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
491
529
  /**
492
530
  * Disallow `instanceof` with built-in objects
493
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-instanceof-builtins.md
531
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-instanceof-builtins.md
494
532
  */
495
533
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
496
534
  /**
497
535
  * Disallow calling functions and constructors with an invalid number of arguments.
498
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-argument-count.md
536
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-argument-count.md
499
537
  */
500
538
  'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>
539
+ /**
540
+ * Disallow invalid values for HTML boolean attributes.
541
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-boolean-attribute-value.md
542
+ */
543
+ 'unicorn/no-invalid-boolean-attribute-value'?: Linter.RuleEntry<[]>
501
544
  /**
502
545
  * Disallow comparing a single character from a string to a multi-character string.
503
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-character-comparison.md
546
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-character-comparison.md
504
547
  */
505
548
  'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>
549
+ /**
550
+ * Disallow invalid DOM tokens.
551
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-dom-token.md
552
+ */
553
+ 'unicorn/no-invalid-dom-token'?: Linter.RuleEntry<[]>
506
554
  /**
507
555
  * Disallow invalid options in `fetch()` and `new Request()`.
508
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-fetch-options.md
556
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-fetch-options.md
509
557
  */
510
558
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
511
559
  /**
512
560
  * Disallow invalid `accept` values on file inputs.
513
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-file-input-accept.md
561
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-file-input-accept.md
514
562
  */
515
563
  'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>
516
564
  /**
517
- * Disallow unknown media features and invalid values for known media features.
518
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-media-features.md
565
+ * Disallow invalid subresource integrity metadata.
566
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-integrity.md
567
+ */
568
+ 'unicorn/no-invalid-integrity'?: Linter.RuleEntry<[]>
569
+ /**
570
+ * Disallow invalid or ignored Intl options.
571
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-intl-options.md
572
+ */
573
+ 'unicorn/no-invalid-intl-options'?: Linter.RuleEntry<[]>
574
+ /**
575
+ * Moved to `eslint-cssicorn` as `cssicorn/no-invalid-media-features`.
576
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-invalid-media-features
577
+ * @deprecated
519
578
  */
520
579
  'unicorn/no-invalid-media-features'?: Linter.RuleEntry<[]>
580
+ /**
581
+ * Disallow invalid property descriptors.
582
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-property-descriptor.md
583
+ */
584
+ 'unicorn/no-invalid-property-descriptor'?: Linter.RuleEntry<[]>
521
585
  /**
522
586
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
523
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-remove-event-listener.md
587
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-remove-event-listener.md
524
588
  */
525
589
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
590
+ /**
591
+ * Disallow invalid options in `new Response()`, `Response.json()`, and `Response.redirect()`.
592
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-response-options.md
593
+ */
594
+ 'unicorn/no-invalid-response-options'?: Linter.RuleEntry<[]>
595
+ /**
596
+ * Disallow invalid arguments to `CSSStyleDeclaration#setProperty()`.
597
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-style-set-property.md
598
+ */
599
+ 'unicorn/no-invalid-style-set-property'?: Linter.RuleEntry<[]>
600
+ /**
601
+ * Disallow statically known invalid Temporal arithmetic.
602
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-temporal-arithmetic.md
603
+ */
604
+ 'unicorn/no-invalid-temporal-arithmetic'?: Linter.RuleEntry<[]>
605
+ /**
606
+ * Disallow invalid protocol strings in comparisons with `URL#protocol`.
607
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-url-protocol-comparison.md
608
+ */
609
+ 'unicorn/no-invalid-url-protocol-comparison'?: Linter.RuleEntry<[]>
526
610
  /**
527
611
  * Disallow invalid implementations of well-known symbol methods.
528
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
612
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
529
613
  */
530
614
  'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>
615
+ /**
616
+ * Disallow `javascript:` URLs in Markdown.
617
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-javascript-url.md
618
+ */
619
+ 'unicorn/no-javascript-url'?: Linter.RuleEntry<[]>
531
620
  /**
532
621
  * Disallow identifiers starting with `new` or `class`.
533
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-keyword-prefix.md
622
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-keyword-prefix.md
534
623
  */
535
624
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
536
625
  /**
537
626
  * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
538
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-late-current-target-access.md
627
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-late-current-target-access.md
539
628
  */
540
629
  'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>
541
630
  /**
542
631
  * Disallow event-control method calls after the synchronous event dispatch has finished.
543
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-late-event-control.md
632
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-late-event-control.md
544
633
  */
545
634
  'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>
635
+ /**
636
+ * Disallow empty lines at the beginning of a file.
637
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-leading-empty-lines.md
638
+ */
639
+ 'unicorn/no-leading-empty-lines'?: Linter.RuleEntry<[]>
546
640
  /**
547
641
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
548
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
642
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
549
643
  * @deprecated
550
644
  */
551
645
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
552
646
  /**
553
647
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
554
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-lonely-if.md
648
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-lonely-if.md
555
649
  */
556
650
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
557
651
  /**
558
652
  * Disallow mutating a loop iterable during iteration.
559
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-loop-iterable-mutation.md
653
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-loop-iterable-mutation.md
560
654
  */
561
655
  'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>
656
+ /**
657
+ * Disallow numeric literals that lose precision when represented as IEEE 754 binary64 values.
658
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-loss-of-precision.md
659
+ */
660
+ 'unicorn/no-loss-of-precision'?: Linter.RuleEntry<[]>
562
661
  /**
563
662
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
564
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-magic-array-flat-depth.md
663
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-magic-array-flat-depth.md
565
664
  */
566
665
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
567
666
  /**
568
667
  * Disallow manually wrapped comments.
569
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-manually-wrapped-comments.md
668
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-manually-wrapped-comments.md
570
669
  */
571
670
  'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>
572
671
  /**
573
672
  * Disallow checking a Map key before accessing a different key.
574
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-mismatched-map-key.md
673
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-mismatched-map-key.md
575
674
  */
576
675
  'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>
577
676
  /**
578
677
  * Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
579
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-misrefactored-assignment.md
678
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-misrefactored-assignment.md
580
679
  */
581
680
  'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>
582
681
  /**
583
682
  * Disallow references to missing local resources.
584
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-missing-local-resource.md
683
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-missing-local-resource.md
585
684
  */
586
685
  'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>
587
686
  /**
588
687
  * Disallow calling Promise executor resolver functions more than once on the same execution path.
589
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-multiple-promise-resolver-calls.md
688
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-multiple-promise-resolver-calls.md
590
689
  */
591
690
  'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>
592
691
  /**
593
692
  * Disallow named usage of default import and export.
594
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-named-default.md
693
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-named-default.md
595
694
  */
596
695
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>
597
696
  /**
598
697
  * Disallow negated array predicate calls.
599
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negated-array-predicate.md
698
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negated-array-predicate.md
600
699
  */
601
700
  'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>
602
701
  /**
603
702
  * Disallow negated comparisons.
604
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negated-comparison.md
703
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negated-comparison.md
605
704
  */
606
705
  'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>
607
706
  /**
608
707
  * Disallow negated conditions.
609
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negated-condition.md
708
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negated-condition.md
610
709
  */
611
710
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
612
711
  /**
613
712
  * Disallow negated expression in equality check.
614
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-negation-in-equality-check.md
713
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negation-in-equality-check.md
615
714
  */
616
715
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
617
716
  /**
618
717
  * Disallow nested ternary expressions.
619
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-nested-ternary.md
718
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-nested-ternary.md
620
719
  */
621
720
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
622
721
  /**
623
- * Disallow nesting under selector lists with mixed specificity.
624
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-nesting-with-mixed-specificity.md
722
+ * Moved to `eslint-cssicorn` as `cssicorn/no-nesting-with-mixed-specificity`.
723
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-nesting-with-mixed-specificity
724
+ * @deprecated
625
725
  */
626
726
  'unicorn/no-nesting-with-mixed-specificity'?: Linter.RuleEntry<[]>
627
727
  /**
628
728
  * Disallow `new Array()`.
629
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-new-array.md
729
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-new-array.md
630
730
  */
631
731
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
632
732
  /**
633
733
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
634
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-new-buffer.md
734
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-new-buffer.md
635
735
  */
636
736
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
637
737
  /**
638
738
  * Disallow non-function values with function-style verb prefixes.
639
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-non-function-verb-prefix.md
739
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-non-function-verb-prefix.md
640
740
  */
641
741
  'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>
642
742
  /**
643
743
  * Disallow non-standard properties on built-in objects.
644
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-nonstandard-builtin-properties.md
744
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-nonstandard-builtin-properties.md
645
745
  */
646
746
  'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>
647
747
  /**
648
748
  * Disallow the use of the `null` literal.
649
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-null.md
749
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-null.md
650
750
  */
651
751
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
652
752
  /**
653
753
  * Disallow the use of objects as default parameters.
654
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-object-as-default-parameter.md
754
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-object-as-default-parameter.md
655
755
  */
656
756
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
657
757
  /**
658
758
  * Disallow `Object` methods with `Map` or `Set`.
659
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-object-methods-with-collections.md
759
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-object-methods-with-collections.md
660
760
  */
661
761
  'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>
662
762
  /**
663
763
  * Disallow optional chaining on undeclared variables.
664
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
764
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
665
765
  */
666
766
  'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>
767
+ /**
768
+ * Disallow ineffective `preventDefault()` calls in passive event listeners.
769
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-prevent-default-in-passive-listener.md
770
+ */
771
+ 'unicorn/no-prevent-default-in-passive-listener'?: Linter.RuleEntry<[]>
667
772
  /**
668
773
  * Disallow `process.exit()`.
669
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-process-exit.md
774
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-process-exit.md
670
775
  */
671
776
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
672
777
  /**
673
778
  * Disallow comparisons made redundant by an equality check in the same logical AND.
674
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-redundant-comparison.md
779
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-redundant-comparison.md
675
780
  */
676
781
  'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>
677
782
  /**
678
- * Disallow nested style rules that do not modify the parent selector.
679
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-redundant-nested-style-rules.md
783
+ * Moved to `eslint-cssicorn` as `cssicorn/no-redundant-nested-style-rules`.
784
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-redundant-nested-style-rules
785
+ * @deprecated
680
786
  */
681
787
  'unicorn/no-redundant-nested-style-rules'?: Linter.RuleEntry<[]>
682
788
  /**
683
789
  * Disallow using the return value of `Array#push()` and `Array#unshift()`.
684
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-return-array-push.md
790
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-return-array-push.md
685
791
  */
686
792
  'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>
687
793
  /**
688
794
  * Disallow selector syntax in DOM names.
689
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-selector-as-dom-name.md
795
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-selector-as-dom-name.md
690
796
  */
691
797
  'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>
692
798
  /**
693
799
  * Disallow shorthand properties that override related longhand properties.
694
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-shorthand-property-overrides.md
800
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-shorthand-property-overrides.md
695
801
  */
696
802
  'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>
697
803
  /**
698
804
  * Disallow passing single-element arrays to `Promise` methods.
699
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-single-promise-in-promise-methods.md
805
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-single-promise-in-promise-methods.md
700
806
  */
701
807
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
702
808
  /**
703
809
  * Disallow classes that only have static members.
704
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-static-only-class.md
810
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-static-only-class.md
705
811
  */
706
812
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
707
813
  /**
708
814
  * Prefer comparing values directly over subtracting and comparing to `0`.
709
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-subtraction-comparison.md
815
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-subtraction-comparison.md
710
816
  */
711
817
  'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>
712
818
  /**
713
819
  * Disallow `then` property.
714
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-thenable.md
820
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-thenable.md
715
821
  */
716
822
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
717
823
  /**
718
824
  * Disallow assigning `this` to a variable.
719
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-this-assignment.md
825
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-this-assignment.md
720
826
  */
721
827
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
722
828
  /**
723
829
  * Disallow `this` outside of classes.
724
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-this-outside-of-class.md
830
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-this-outside-of-class.md
725
831
  */
726
832
  'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>
727
833
  /**
728
834
  * Disallow assigning to top-level variables from inside functions.
729
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-top-level-assignment-in-function.md
835
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-top-level-assignment-in-function.md
730
836
  */
731
837
  'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>
732
838
  /**
733
839
  * Disallow top-level side effects in exported modules.
734
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-top-level-side-effects.md
840
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-top-level-side-effects.md
735
841
  */
736
842
  'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>
737
843
  /**
738
844
  * Disallow `all` as a transition property.
739
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-transition-all.md
845
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-transition-all.md
740
846
  */
741
847
  'unicorn/no-transition-all'?: Linter.RuleEntry<[]>
742
848
  /**
743
849
  * Disallow comparing `undefined` using `typeof`.
744
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-typeof-undefined.md
850
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-typeof-undefined.md
745
851
  */
746
852
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
747
853
  /**
748
854
  * Disallow referencing methods without calling them.
749
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-uncalled-method.md
855
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-uncalled-method.md
750
856
  */
751
857
  'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>
752
858
  /**
753
859
  * Require class members to be declared.
754
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-undeclared-class-members.md
860
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-undeclared-class-members.md
755
861
  */
756
862
  'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>
757
863
  /**
758
- * Disallow unknown and noncanonical CSS annotations.
759
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unknown-css-annotations.md
864
+ * Moved to `eslint-cssicorn` as `cssicorn/no-unknown-annotations`.
865
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-css-annotations
866
+ * @deprecated
760
867
  */
761
868
  'unicorn/no-unknown-css-annotations'?: Linter.RuleEntry<[]>
762
869
  /**
763
- * Disallow unknown pseudo-class and pseudo-element selectors.
764
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unknown-pseudo-selectors.md
870
+ * Moved to `eslint-cssicorn` as `cssicorn/no-unknown-pseudo-selectors`.
871
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-pseudo-selectors
872
+ * @deprecated
765
873
  */
766
- 'unicorn/no-unknown-pseudo-selectors'?: Linter.RuleEntry<UnicornNoUnknownPseudoSelectors>
874
+ 'unicorn/no-unknown-pseudo-selectors'?: Linter.RuleEntry<[]>
767
875
  /**
768
876
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
769
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-array-flat-depth.md
877
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-array-flat-depth.md
770
878
  */
771
879
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>
772
880
  /**
773
- * Disallow `Array#flatMap()` callbacks that only wrap a single item.
774
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-array-flat-map.md
881
+ * Disallow unnecessary use of `Array#flatMap()`.
882
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-array-flat-map.md
775
883
  */
776
884
  'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>
777
885
  /**
778
886
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
779
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-array-splice-count.md
887
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-array-splice-count.md
780
888
  */
781
889
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>
782
890
  /**
783
891
  * Disallow awaiting non-promise values.
784
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-await.md
892
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-await.md
785
893
  */
786
894
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
787
895
  /**
788
896
  * Disallow unnecessary comparisons against boolean literals.
789
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-boolean-comparison.md
897
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-boolean-comparison.md
790
898
  */
791
899
  'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>
792
900
  /**
793
901
  * Disallow unnecessary options in `fetch()` and `new Request()`.
794
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-fetch-options.md
902
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-fetch-options.md
795
903
  */
796
904
  'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>
797
905
  /**
798
906
  * Disallow unnecessary `globalThis` references.
799
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-global-this.md
907
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-global-this.md
800
908
  */
801
909
  'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>
802
910
  /**
803
911
  * Disallow unnecessary nested ternary expressions.
804
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-nested-ternary.md
912
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-nested-ternary.md
805
913
  */
806
914
  'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>
915
+ /**
916
+ * Disallow parameters that receive the same value at every call.
917
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-parameters.md
918
+ */
919
+ 'unicorn/no-unnecessary-parameters'?: Linter.RuleEntry<UnicornNoUnnecessaryParameters>
807
920
  /**
808
921
  * Enforce the use of built-in methods instead of unnecessary polyfills.
809
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-polyfills.md
922
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-polyfills.md
810
923
  */
811
924
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
812
925
  /**
813
926
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
814
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-slice-end.md
927
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-slice-end.md
815
928
  */
816
929
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>
817
930
  /**
818
931
  * Disallow `Array#splice()` when simpler alternatives exist.
819
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-splice.md
932
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-splice.md
820
933
  */
821
934
  'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>
822
935
  /**
823
936
  * Disallow `String#trim()` before `String#startsWith()` or `String#endsWith()`.
824
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unnecessary-string-trim.md
937
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-string-trim.md
825
938
  */
826
939
  'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>
827
940
  /**
828
941
  * Disallow unreadable array destructuring.
829
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-array-destructuring.md
942
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-array-destructuring.md
830
943
  */
831
944
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>
832
945
  /**
833
946
  * Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
834
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-for-of-expression.md
947
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-for-of-expression.md
835
948
  */
836
949
  'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>
837
950
  /**
838
951
  * Disallow unreadable IIFEs.
839
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-iife.md
952
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-iife.md
840
953
  */
841
954
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
842
955
  /**
843
956
  * Disallow unreadable `new` expressions.
844
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-new-expression.md
957
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-new-expression.md
845
958
  */
846
959
  'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>
847
960
  /**
848
961
  * Disallow unreadable object destructuring.
849
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unreadable-object-destructuring.md
962
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-object-destructuring.md
850
963
  */
851
964
  'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>
852
965
  /**
853
966
  * Prevent unsafe use of ArrayBuffer view `.buffer`.
854
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-buffer-conversion.md
967
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-buffer-conversion.md
855
968
  */
856
969
  'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>
857
970
  /**
858
971
  * Disallow unsafe DOM HTML APIs.
859
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-dom-html.md
972
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-dom-html.md
860
973
  */
861
974
  'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>
975
+ /**
976
+ * Disallow known values that JSON serialization cannot represent faithfully.
977
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-json-serialization.md
978
+ */
979
+ 'unicorn/no-unsafe-json-serialization'?: Linter.RuleEntry<[]>
862
980
  /**
863
981
  * Disallow reading `.value` from `Promise.allSettled()` results without a fulfilled status guard.
864
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
982
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
865
983
  */
866
984
  'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>
867
985
  /**
868
986
  * Disallow unsafe values as property keys.
869
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-property-key.md
987
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-property-key.md
870
988
  */
871
989
  'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>
872
990
  /**
873
991
  * Disallow interpolation into SQL strings passed to Node’s `node:sqlite` APIs.
874
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
992
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
875
993
  */
876
994
  'unicorn/no-unsafe-sqlite-interpolation'?: Linter.RuleEntry<[]>
877
995
  /**
878
996
  * Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
879
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unsafe-string-replacement.md
997
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-string-replacement.md
880
998
  */
881
999
  'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>
882
1000
  /**
883
- * Disallow unscoped CSS nesting selectors.
884
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unscoped-css-nesting-selector.md
1001
+ * Moved to `eslint-cssicorn` as `cssicorn/no-unscoped-nesting-selector`.
1002
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unscoped-css-nesting-selector
1003
+ * @deprecated
885
1004
  */
886
- 'unicorn/no-unscoped-css-nesting-selector'?: Linter.RuleEntry<UnicornNoUnscopedCssNestingSelector>
1005
+ 'unicorn/no-unscoped-css-nesting-selector'?: Linter.RuleEntry<[]>
887
1006
  /**
888
1007
  * Replaced by `unicorn/no-unused-builtin-method-return` which covers more cases.
889
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#no-unused-array-method-return
1008
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unused-array-method-return
890
1009
  * @deprecated
891
1010
  */
892
1011
  'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>
893
1012
  /**
894
1013
  * Disallow ignoring the return value of selected built-in methods.
895
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unused-builtin-method-return.md
1014
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unused-builtin-method-return.md
896
1015
  */
897
1016
  'unicorn/no-unused-builtin-method-return'?: Linter.RuleEntry<[]>
898
1017
  /**
899
1018
  * Disallow discarding lazy iterator helpers.
900
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unused-iterator-helper.md
1019
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unused-iterator-helper.md
901
1020
  */
902
1021
  'unicorn/no-unused-iterator-helper'?: Linter.RuleEntry<[]>
903
1022
  /**
904
1023
  * Disallow unused object properties.
905
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-unused-properties.md
1024
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unused-properties.md
906
1025
  */
907
1026
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
1027
+ /**
1028
+ * Disallow passing full URLs to `URLSearchParams`.
1029
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-url-in-search-params.md
1030
+ */
1031
+ 'unicorn/no-url-in-search-params'?: Linter.RuleEntry<[]>
908
1032
  /**
909
1033
  * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
910
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-boolean-cast.md
1034
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-boolean-cast.md
911
1035
  */
912
1036
  'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>
913
1037
  /**
914
1038
  * Disallow useless type coercions of values that are already of the target type.
915
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-coercion.md
1039
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-coercion.md
916
1040
  */
917
1041
  'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>
918
1042
  /**
919
1043
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
920
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-collection-argument.md
1044
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-collection-argument.md
921
1045
  */
922
1046
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>
923
1047
  /**
924
1048
  * Disallow useless compound assignments such as `x += 0`.
925
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-compound-assignment.md
1049
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-compound-assignment.md
926
1050
  */
927
1051
  'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>
928
1052
  /**
929
1053
  * Disallow useless concatenation of literals.
930
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-concat.md
1054
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-concat.md
931
1055
  */
932
1056
  'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>
933
1057
  /**
934
1058
  * Disallow useless `continue` statements.
935
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-continue.md
1059
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-continue.md
936
1060
  */
937
1061
  'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>
938
1062
  /**
939
1063
  * Disallow unnecessary existence checks before deletion.
940
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-delete-check.md
1064
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-delete-check.md
941
1065
  */
942
1066
  'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>
943
1067
  /**
944
1068
  * Disallow `else` after a statement that exits.
945
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-else.md
1069
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-else.md
946
1070
  */
947
1071
  'unicorn/no-useless-else'?: Linter.RuleEntry<[]>
948
1072
  /**
949
1073
  * Disallow unnecessary `Error.captureStackTrace(…)`.
950
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-error-capture-stack-trace.md
1074
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-error-capture-stack-trace.md
951
1075
  */
952
1076
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>
953
1077
  /**
954
1078
  * Disallow useless fallback when spreading in object literals.
955
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-fallback-in-spread.md
1079
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-fallback-in-spread.md
956
1080
  */
957
1081
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
958
1082
  /**
959
1083
  * Disallow unnecessary `.toArray()` on iterators.
960
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-iterator-to-array.md
1084
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-iterator-to-array.md
961
1085
  */
962
1086
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>
963
1087
  /**
964
1088
  * Disallow useless array length check.
965
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-length-check.md
1089
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-length-check.md
966
1090
  */
967
1091
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
968
1092
  /**
969
1093
  * Disallow unnecessary operands in logical expressions involving boolean literals.
970
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-logical-operand.md
1094
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-logical-operand.md
971
1095
  */
972
1096
  'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>
973
1097
  /**
974
1098
  * Disallow useless overrides of class methods.
975
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-override.md
1099
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-override.md
976
1100
  */
977
1101
  'unicorn/no-useless-override'?: Linter.RuleEntry<[]>
978
1102
  /**
979
1103
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
980
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-promise-resolve-reject.md
1104
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-promise-resolve-reject.md
981
1105
  */
982
1106
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
983
1107
  /**
984
1108
  * Disallow redundant re-exports.
985
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-re-export.md
1109
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-re-export.md
986
1110
  */
987
1111
  'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>
988
1112
  /**
989
1113
  * Disallow simple recursive function calls that can be replaced with a loop.
990
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-recursion.md
1114
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-recursion.md
991
1115
  */
992
1116
  'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>
993
1117
  /**
994
1118
  * Disallow unnecessary `Set` construction around `Set` methods.
995
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-set-construction.md
1119
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-set-construction.md
996
1120
  */
997
1121
  'unicorn/no-useless-set-construction'?: Linter.RuleEntry<[]>
998
1122
  /**
999
1123
  * Disallow unnecessary spread.
1000
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-spread.md
1124
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-spread.md
1001
1125
  */
1002
1126
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
1003
1127
  /**
1004
1128
  * Disallow useless case in switch statements.
1005
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-switch-case.md
1129
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-switch-case.md
1006
1130
  */
1007
1131
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
1008
1132
  /**
1009
1133
  * Disallow useless template literal expressions.
1010
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-template-literals.md
1134
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-template-literals.md
1011
1135
  */
1012
1136
  'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>
1013
1137
  /**
1014
1138
  * Disallow useless `undefined`.
1015
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-useless-undefined.md
1139
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-undefined.md
1016
1140
  */
1017
1141
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
1018
1142
  /**
1019
1143
  * Disallow returning or exporting resources declared with `using`, including through capturing functions.
1020
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-using-resource-escape.md
1144
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-using-resource-escape.md
1021
1145
  */
1022
1146
  'unicorn/no-using-resource-escape'?: Linter.RuleEntry<[]>
1023
1147
  /**
1024
1148
  * Disallow the bitwise XOR operator where exponentiation was likely intended.
1025
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-xor-as-exponentiation.md
1149
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-xor-as-exponentiation.md
1026
1150
  */
1027
1151
  'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>
1028
1152
  /**
1029
- * Disallow number literals with zero fractions or dangling dots.
1030
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/no-zero-fractions.md
1153
+ * Require consistent decimal numbers without redundant zeros.
1154
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-zero-fractions.md
1031
1155
  */
1032
1156
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
1033
1157
  /**
1034
1158
  * Enforce proper case for numeric literals.
1035
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/number-literal-case.md
1159
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/number-literal-case.md
1036
1160
  */
1037
1161
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>
1038
1162
  /**
1039
1163
  * Enforce the style of numeric separators by correctly grouping digits.
1040
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/numeric-separators-style.md
1164
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/numeric-separators-style.md
1041
1165
  */
1042
1166
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
1043
1167
  /**
1044
1168
  * Require assignment operator shorthand where possible.
1045
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/operator-assignment.md
1169
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/operator-assignment.md
1046
1170
  */
1047
1171
  'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>
1048
1172
  /**
1049
1173
  * Prefer `AbortSignal.any()` over manually forwarding abort events between signals.
1050
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-abort-signal-any.md
1174
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-abort-signal-any.md
1051
1175
  */
1052
1176
  'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>
1053
1177
  /**
1054
1178
  * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
1055
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-abort-signal-timeout.md
1179
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-abort-signal-timeout.md
1056
1180
  */
1057
1181
  'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>
1058
1182
  /**
1059
1183
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
1060
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-add-event-listener.md
1184
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-add-event-listener.md
1061
1185
  */
1062
1186
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
1063
1187
  /**
1064
1188
  * Prefer an options object over a boolean in `.addEventListener()`.
1065
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-add-event-listener-options.md
1189
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-add-event-listener-options.md
1066
1190
  */
1067
1191
  'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>
1068
1192
  /**
1069
1193
  * Prefer `AggregateError` when throwing collected errors.
1070
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-aggregate-error.md
1194
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-aggregate-error.md
1071
1195
  */
1072
1196
  'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>
1073
1197
  /**
1074
1198
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
1075
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-find.md
1199
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-find.md
1076
1200
  */
1077
1201
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
1078
1202
  /**
1079
1203
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
1080
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-flat.md
1204
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-flat.md
1081
1205
  */
1082
1206
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
1083
1207
  /**
1084
1208
  * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
1085
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-flat-map.md
1209
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-flat-map.md
1086
1210
  */
1087
1211
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
1088
1212
  /**
1089
1213
  * Prefer `Array.fromAsync()` over array accumulation loops.
1090
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-from-async.md
1214
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-from-async.md
1091
1215
  */
1092
1216
  'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>
1093
1217
  /**
1094
1218
  * Prefer using the `Array.from()` mapping function argument.
1095
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-from-map.md
1219
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-from-map.md
1096
1220
  */
1097
1221
  'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>
1098
1222
  /**
1099
1223
  * Prefer `Array.from({length}, …)` when creating range arrays.
1100
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-from-range.md
1224
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-from-range.md
1101
1225
  */
1102
1226
  'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>
1103
1227
  /**
1104
1228
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
1105
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-index-of.md
1229
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-index-of.md
1106
1230
  */
1107
1231
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
1108
1232
  /**
1109
1233
  * Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
1110
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-iterable-methods.md
1234
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-iterable-methods.md
1111
1235
  */
1112
1236
  'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>
1113
1237
  /**
1114
1238
  * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
1115
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-last-methods.md
1239
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-last-methods.md
1116
1240
  */
1117
1241
  'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>
1118
1242
  /**
1119
1243
  * Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
1120
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-slice.md
1244
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-slice.md
1121
1245
  */
1122
1246
  'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>
1123
1247
  /**
1124
1248
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
1125
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-array-some.md
1249
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-some.md
1126
1250
  */
1127
1251
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
1128
1252
  /**
1129
1253
  * Prefer `.at()` method for index access and `String#charAt()`.
1130
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-at.md
1254
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-at.md
1131
1255
  */
1132
1256
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
1133
1257
  /**
1134
1258
  * Prefer `await` over promise chaining.
1135
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-await.md
1259
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-await.md
1136
1260
  */
1137
1261
  'unicorn/prefer-await'?: Linter.RuleEntry<[]>
1138
1262
  /**
1139
1263
  * Prefer `BigInt` literals over the constructor.
1140
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-bigint-literals.md
1264
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-bigint-literals.md
1141
1265
  */
1142
1266
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>
1143
1267
  /**
1144
1268
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
1145
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-blob-reading-methods.md
1269
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-blob-reading-methods.md
1146
1270
  */
1147
1271
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
1148
1272
  /**
1149
1273
  * Prefer block statements over IIFEs used only for scoping.
1150
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-block-statement-over-iife.md
1274
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-block-statement-over-iife.md
1151
1275
  */
1152
1276
  'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>
1153
1277
  /**
1154
1278
  * Prefer directly returning boolean expressions over `if` statements.
1155
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-boolean-return.md
1279
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-boolean-return.md
1156
1280
  */
1157
1281
  'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>
1158
1282
  /**
1159
1283
  * Prefer class field declarations over `this` assignments in constructors.
1160
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-class-fields.md
1284
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-class-fields.md
1161
1285
  */
1162
1286
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>
1163
1287
  /**
1164
1288
  * Prefer using `Element#classList.toggle()` to toggle class names.
1165
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-classlist-toggle.md
1289
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-classlist-toggle.md
1166
1290
  */
1167
1291
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>
1168
1292
  /**
1169
1293
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
1170
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-code-point.md
1294
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-code-point.md
1171
1295
  */
1172
1296
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
1173
1297
  /**
1174
1298
  * Prefer combining consecutive guards with identical exit statements.
1175
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-combined-guards.md
1299
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-combined-guards.md
1176
1300
  */
1177
1301
  'unicorn/prefer-combined-guards'?: Linter.RuleEntry<UnicornPreferCombinedGuards>
1178
1302
  /**
1179
1303
  * Prefer early continues over conditionals wrapping the remainder of the loop body.
1180
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-continue.md
1304
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-continue.md
1181
1305
  */
1182
1306
  'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>
1183
1307
  /**
1184
1308
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
1185
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-date-now.md
1309
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-date-now.md
1186
1310
  */
1187
1311
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
1188
1312
  /**
1189
- * Prefer default parameters over reassignment.
1190
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-default-parameters.md
1313
+ * Prefer default parameters and destructuring defaults over reassignment and fallback expressions.
1314
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-default-parameters.md
1191
1315
  */
1192
1316
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
1193
1317
  /**
1194
1318
  * Prefer direct iteration over default iterator method calls.
1195
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-direct-iteration.md
1319
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-direct-iteration.md
1196
1320
  */
1197
1321
  'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>
1198
1322
  /**
1199
1323
  * Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
1200
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dispose.md
1324
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dispose.md
1201
1325
  */
1202
1326
  'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>
1203
1327
  /**
1204
1328
  * Prefer `Element#append()` over `Node#appendChild()`.
1205
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-append.md
1329
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-append.md
1206
1330
  */
1207
1331
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
1208
1332
  /**
1209
1333
  * Renamed to `unicorn/dom-node-dataset`.
1210
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
1334
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
1211
1335
  * @deprecated
1212
1336
  */
1213
1337
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
1214
1338
  /**
1215
1339
  * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
1216
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-html-methods.md
1340
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-html-methods.md
1217
1341
  */
1218
1342
  'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>
1219
1343
  /**
1220
1344
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
1221
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-remove.md
1345
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-remove.md
1222
1346
  */
1223
1347
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
1224
1348
  /**
1225
1349
  * Prefer `.replaceChildren()` when replacing DOM children.
1226
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-replace-children.md
1350
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-replace-children.md
1227
1351
  */
1228
1352
  'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>
1229
1353
  /**
1230
1354
  * Prefer `.textContent` over `.innerText`.
1231
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-dom-node-text-content.md
1355
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-text-content.md
1232
1356
  */
1233
1357
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
1234
1358
  /**
1235
1359
  * Prefer early returns over conditionals wrapping the remainder of the function body.
1236
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-early-return.md
1360
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-early-return.md
1237
1361
  */
1238
1362
  'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>
1239
1363
  /**
1240
1364
  * Prefer `else if` over adjacent `if` statements with related conditions.
1241
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-else-if.md
1365
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-else-if.md
1242
1366
  */
1243
1367
  'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>
1244
1368
  /**
1245
1369
  * Prefer `Error.isError()` when checking for errors.
1246
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-error-is-error.md
1370
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-error-is-error.md
1247
1371
  */
1248
1372
  'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>
1373
+ /**
1374
+ * Prefer escape sequences for irregular whitespace characters.
1375
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-escaped-irregular-whitespace.md
1376
+ */
1377
+ 'unicorn/prefer-escaped-irregular-whitespace'?: Linter.RuleEntry<[]>
1249
1378
  /**
1250
1379
  * Prefer `EventTarget` over `EventEmitter`.
1251
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-event-target.md
1380
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-event-target.md
1252
1381
  */
1253
1382
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
1254
1383
  /**
1255
- * Prefer explicit viewport units.
1256
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-explicit-viewport-units.md
1384
+ * Moved to `eslint-cssicorn` as `cssicorn/prefer-explicit-viewport-units`.
1385
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-explicit-viewport-units
1386
+ * @deprecated
1257
1387
  */
1258
- 'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<UnicornPreferExplicitViewportUnits>
1388
+ 'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<[]>
1259
1389
  /**
1260
1390
  * Prefer `export…from` when re-exporting.
1261
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-export-from.md
1391
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-export-from.md
1262
1392
  */
1263
1393
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
1264
1394
  /**
1265
1395
  * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
1266
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-flat-math-min-max.md
1396
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-flat-math-min-max.md
1267
1397
  */
1268
1398
  'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>
1269
1399
  /**
1270
1400
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
1271
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-get-or-insert-computed.md
1401
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-get-or-insert-computed.md
1272
1402
  */
1273
1403
  'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>
1274
1404
  /**
1275
1405
  * Prefer global numeric constants over `Number` static properties.
1276
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-global-number-constants.md
1406
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-global-number-constants.md
1277
1407
  */
1278
1408
  'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>
1279
1409
  /**
1280
1410
  * Prefer `globalThis` over `window`, `self`, and `global`.
1281
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-global-this.md
1411
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-global-this.md
1282
1412
  */
1283
1413
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
1284
1414
  /**
1285
1415
  * Prefer `Object.groupBy()` or `Map.groupBy()` over manual grouping.
1286
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-group-by.md
1416
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-group-by.md
1287
1417
  */
1288
1418
  'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>
1289
1419
  /**
1290
1420
  * Prefer `.has()` when checking existence.
1291
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-has-check.md
1421
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-has-check.md
1292
1422
  */
1293
1423
  'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>
1294
1424
  /**
1295
1425
  * Prefer moving code shared by all branches of an `if` statement out of the branches.
1296
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-hoisting-branch-code.md
1426
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-hoisting-branch-code.md
1297
1427
  */
1298
1428
  'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>
1299
1429
  /**
1300
1430
  * Prefer HTTPS over HTTP.
1301
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-https.md
1431
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-https.md
1302
1432
  */
1303
1433
  'unicorn/prefer-https'?: Linter.RuleEntry<UnicornPreferHttps>
1304
1434
  /**
1305
1435
  * Prefer identifiers over string literals in import and export specifiers.
1306
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
1436
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
1307
1437
  */
1308
1438
  'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>
1309
1439
  /**
1310
1440
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
1311
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-import-meta-properties.md
1441
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-import-meta-properties.md
1312
1442
  */
1313
1443
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>
1314
1444
  /**
1315
1445
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
1316
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-includes.md
1446
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-includes.md
1317
1447
  */
1318
1448
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
1319
1449
  /**
1320
1450
  * Prefer `.includes()` over repeated equality comparisons.
1321
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
1451
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
1322
1452
  */
1323
1453
  'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>
1324
1454
  /**
1325
1455
  * Prefer passing iterables directly to constructors instead of filling empty collections.
1326
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterable-in-constructor.md
1456
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterable-in-constructor.md
1327
1457
  */
1328
1458
  'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>
1329
1459
  /**
1330
1460
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
1331
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-concat.md
1461
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-concat.md
1332
1462
  */
1333
1463
  'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>
1334
1464
  /**
1335
1465
  * Prefer iterator helpers over temporary arrays from iterators.
1336
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-helpers.md
1466
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-helpers.md
1337
1467
  */
1338
1468
  'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>
1339
1469
  /**
1340
1470
  * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
1341
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-to-array.md
1471
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-to-array.md
1342
1472
  */
1343
1473
  'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>
1344
1474
  /**
1345
1475
  * Prefer moving `.toArray()` to the end of iterator helper chains.
1346
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-to-array-at-end.md
1476
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-to-array-at-end.md
1347
1477
  */
1348
1478
  'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>
1349
1479
  /**
1350
1480
  * Prefer `Iterator.zip()` over parallel-array indexing.
1351
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-iterator-zip.md
1481
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-zip.md
1352
1482
  */
1353
1483
  'unicorn/prefer-iterator-zip'?: Linter.RuleEntry<[]>
1354
1484
  /**
1355
1485
  * Prefer JSON imports over reading and parsing JSON files.
1356
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-json-import.md
1486
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-json-import.md
1357
1487
  */
1358
1488
  'unicorn/prefer-json-import'?: Linter.RuleEntry<[]>
1359
1489
  /**
1360
1490
  * Renamed to `unicorn/consistent-json-file-read`.
1361
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
1491
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
1362
1492
  * @deprecated
1363
1493
  */
1364
1494
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
1365
1495
  /**
1366
1496
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
1367
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-keyboard-event-key.md
1497
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-keyboard-event-key.md
1368
1498
  */
1369
1499
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
1500
+ /**
1501
+ * Prefer literal printable ASCII characters over escape sequences.
1502
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-literal-ascii.md
1503
+ */
1504
+ 'unicorn/prefer-literal-ascii'?: Linter.RuleEntry<[]>
1370
1505
  /**
1371
1506
  * Prefer `location.assign()` over assigning to `location.href`.
1372
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-location-assign.md
1507
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-location-assign.md
1373
1508
  */
1374
1509
  'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>
1375
1510
  /**
1376
1511
  * Prefer using a logical operator over a ternary.
1377
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-logical-operator-over-ternary.md
1512
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-logical-operator-over-ternary.md
1378
1513
  */
1379
1514
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
1380
1515
  /**
1381
1516
  * Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
1382
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-map-from-entries.md
1517
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-map-from-entries.md
1383
1518
  */
1384
1519
  'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>
1385
1520
  /**
1386
1521
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
1387
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-abs.md
1522
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-abs.md
1388
1523
  */
1389
1524
  'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>
1390
1525
  /**
1391
1526
  * Prefer `Math` constants over their approximate numeric values.
1392
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-constants.md
1527
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-constants.md
1393
1528
  */
1394
1529
  'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>
1395
1530
  /**
1396
1531
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
1397
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-min-max.md
1532
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-min-max.md
1398
1533
  */
1399
1534
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
1400
1535
  /**
1401
1536
  * Prefer `Math.trunc()` for truncating numbers.
1402
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-math-trunc.md
1537
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-trunc.md
1403
1538
  */
1404
1539
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
1405
1540
  /**
1406
- * Prefer modern media feature range syntax.
1407
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-media-feature-range-syntax.md
1541
+ * Moved to `eslint-cssicorn` as `cssicorn/prefer-media-feature-range-syntax`.
1542
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-media-feature-range-syntax
1543
+ * @deprecated
1408
1544
  */
1409
1545
  'unicorn/prefer-media-feature-range-syntax'?: Linter.RuleEntry<[]>
1410
1546
  /**
1411
1547
  * Prefer moving ternaries into the minimal varying part of an expression.
1412
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-minimal-ternary.md
1548
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-minimal-ternary.md
1413
1549
  */
1414
1550
  'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>
1415
1551
  /**
1416
1552
  * Prefer modern DOM APIs.
1417
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-modern-dom-apis.md
1553
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-modern-dom-apis.md
1418
1554
  */
1419
1555
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
1420
1556
  /**
1421
1557
  * Prefer modern `Math` APIs over legacy patterns.
1422
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-modern-math-apis.md
1558
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-modern-math-apis.md
1423
1559
  */
1424
1560
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
1425
1561
  /**
1426
1562
  * Prefer JavaScript modules (ESM) over CommonJS.
1427
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-module.md
1563
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-module.md
1428
1564
  */
1429
1565
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
1430
1566
  /**
1431
1567
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
1432
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-native-coercion-functions.md
1568
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-native-coercion-functions.md
1433
1569
  */
1434
1570
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
1435
1571
  /**
1436
1572
  * Prefer negative index over `.length - index` when possible.
1437
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-negative-index.md
1573
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-negative-index.md
1438
1574
  */
1439
1575
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
1440
1576
  /**
1441
1577
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
1442
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-node-protocol.md
1578
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-node-protocol.md
1443
1579
  */
1444
1580
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
1445
1581
  /**
1446
1582
  * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
1447
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-number-coercion.md
1583
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-number-coercion.md
1448
1584
  */
1449
1585
  'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>
1450
1586
  /**
1451
1587
  * Prefer `Number.isSafeInteger()` over integer checks.
1452
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-number-is-safe-integer.md
1588
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-number-is-safe-integer.md
1453
1589
  */
1454
1590
  'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>
1455
1591
  /**
1456
1592
  * Prefer `Number` static methods over global functions and optionally static properties over global constants.
1457
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-number-properties.md
1593
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-number-properties.md
1458
1594
  */
1459
1595
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
1460
1596
  /**
1461
1597
  * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
1462
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-define-properties.md
1598
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-define-properties.md
1463
1599
  */
1464
1600
  'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>
1465
1601
  /**
1466
1602
  * Prefer object destructuring defaults over default object literals with spread.
1467
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-destructuring-defaults.md
1603
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-destructuring-defaults.md
1468
1604
  */
1469
1605
  'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>
1470
1606
  /**
1471
1607
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
1472
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-from-entries.md
1608
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-from-entries.md
1473
1609
  */
1474
1610
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
1475
1611
  /**
1476
1612
  * Prefer the most specific `Object` iterable method.
1477
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-object-iterable-methods.md
1613
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-iterable-methods.md
1478
1614
  */
1479
1615
  'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>
1480
1616
  /**
1481
1617
  * Prefer observer APIs over resize and scroll listeners with layout reads.
1482
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-observer-apis.md
1618
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-observer-apis.md
1483
1619
  */
1484
1620
  'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>
1485
1621
  /**
1486
1622
  * Prefer omitting the `catch` binding parameter.
1487
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-optional-catch-binding.md
1623
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-optional-catch-binding.md
1488
1624
  */
1489
1625
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
1490
1626
  /**
1491
1627
  * Prefer `Path2D` for repeatedly drawn canvas paths.
1492
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-path2d.md
1628
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-path2d.md
1493
1629
  */
1494
1630
  'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>
1495
1631
  /**
1496
1632
  * Prefer private class fields over the underscore-prefix convention.
1497
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-private-class-fields.md
1633
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-private-class-fields.md
1498
1634
  */
1499
1635
  'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>
1636
+ /**
1637
+ * Prefer `Promise.resolve()` and `Promise.reject()` over trivial `new Promise()` calls.
1638
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-promise-static-methods.md
1639
+ */
1640
+ 'unicorn/prefer-promise-static-methods'?: Linter.RuleEntry<[]>
1500
1641
  /**
1501
1642
  * Prefer `Promise.try()` over promise-wrapping boilerplate.
1502
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-promise-try.md
1643
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-promise-try.md
1503
1644
  */
1504
1645
  'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>
1505
1646
  /**
1506
1647
  * Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
1507
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-promise-with-resolvers.md
1648
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-promise-with-resolvers.md
1508
1649
  */
1509
1650
  'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>
1510
1651
  /**
1511
1652
  * Prefer borrowing methods from the prototype instead of the instance.
1512
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-prototype-methods.md
1653
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-prototype-methods.md
1513
1654
  */
1514
1655
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
1515
1656
  /**
1516
1657
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
1517
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-query-selector.md
1658
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-query-selector.md
1518
1659
  */
1519
1660
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>
1520
1661
  /**
1521
1662
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
1522
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-queue-microtask.md
1663
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-queue-microtask.md
1523
1664
  */
1524
1665
  'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>
1525
1666
  /**
1526
1667
  * Prefer `Reflect.apply()` over `Function#apply()`.
1527
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-reflect-apply.md
1668
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-reflect-apply.md
1528
1669
  */
1529
1670
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
1530
1671
  /**
1531
1672
  * Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
1532
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-regexp-escape.md
1673
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-regexp-escape.md
1533
1674
  */
1534
1675
  'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>
1535
1676
  /**
1536
1677
  * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
1537
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-regexp-test.md
1678
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-regexp-test.md
1538
1679
  */
1539
1680
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
1540
1681
  /**
1541
1682
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
1542
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-response-static-json.md
1683
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-response-static-json.md
1543
1684
  */
1544
1685
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>
1545
1686
  /**
1546
1687
  * Prefer `:scope` when using element query selector methods.
1547
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-scoped-selector.md
1688
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-scoped-selector.md
1548
1689
  */
1549
1690
  'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>
1550
1691
  /**
1551
1692
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
1552
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-set-has.md
1693
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-set-has.md
1553
1694
  */
1554
1695
  'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>
1555
1696
  /**
1556
1697
  * Prefer `Set` methods for Set operations.
1557
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-set-methods.md
1698
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-set-methods.md
1558
1699
  */
1559
1700
  'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>
1560
1701
  /**
1561
1702
  * Prefer using `Set#size` instead of `Array#length`.
1562
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-set-size.md
1703
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-set-size.md
1563
1704
  */
1564
1705
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
1565
1706
  /**
1566
1707
  * Prefer arrow function properties over methods with a single return.
1567
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-short-arrow-method.md
1708
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-short-arrow-method.md
1568
1709
  */
1569
1710
  'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>
1711
+ /**
1712
+ * Prefer shorter alternatives to Unicode escape sequences.
1713
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-short-escape-sequences.md
1714
+ */
1715
+ 'unicorn/prefer-short-escape-sequences'?: Linter.RuleEntry<[]>
1570
1716
  /**
1571
1717
  * Prefer simple conditions first in logical expressions.
1572
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-simple-condition-first.md
1718
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-simple-condition-first.md
1573
1719
  */
1574
1720
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>
1575
1721
  /**
1576
1722
  * Prefer a simple comparison function for `Array#sort()`.
1577
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-simple-sort-comparator.md
1723
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-simple-sort-comparator.md
1578
1724
  */
1579
1725
  'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>
1580
1726
  /**
1581
1727
  * Prefer simplified conditions.
1582
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-simplified-conditions.md
1728
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-simplified-conditions.md
1583
1729
  */
1584
- 'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<[]>
1730
+ 'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<UnicornPreferSimplifiedConditions>
1585
1731
  /**
1586
1732
  * Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
1587
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-array-predicate.md
1733
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-array-predicate.md
1588
1734
  */
1589
1735
  'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>
1590
1736
  /**
1591
1737
  * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
1592
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-call.md
1738
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-call.md
1593
1739
  */
1594
1740
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>
1595
1741
  /**
1596
1742
  * Prefer a single object destructuring declaration per local const source.
1597
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-object-destructuring.md
1743
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-object-destructuring.md
1598
1744
  */
1599
1745
  'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>
1600
1746
  /**
1601
1747
  * Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
1602
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-single-replace.md
1748
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-replace.md
1603
1749
  */
1604
1750
  'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>
1605
1751
  /**
1606
1752
  * Prefer declaring variables in the smallest possible scope.
1607
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-smaller-scope.md
1753
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-smaller-scope.md
1608
1754
  */
1609
1755
  'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>
1610
1756
  /**
1611
1757
  * Prefer `String#split()` with a limit.
1612
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-split-limit.md
1758
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-split-limit.md
1613
1759
  */
1614
1760
  'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>
1615
1761
  /**
1616
1762
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
1617
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-spread.md
1763
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-spread.md
1618
1764
  */
1619
1765
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
1620
1766
  /**
1621
1767
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
1622
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-match-all.md
1768
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-match-all.md
1623
1769
  */
1624
1770
  'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>
1625
1771
  /**
1626
1772
  * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
1627
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-pad-start-end.md
1773
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-pad-start-end.md
1628
1774
  */
1629
1775
  'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>
1630
1776
  /**
1631
1777
  * Prefer using the `String.raw` tag to avoid escaping `\`.
1632
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-raw.md
1778
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-raw.md
1633
1779
  */
1634
1780
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
1635
1781
  /**
1636
1782
  * Prefer `String#repeat()` for repeated whitespace.
1637
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-repeat.md
1783
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-repeat.md
1638
1784
  */
1639
1785
  'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>
1640
1786
  /**
1641
1787
  * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
1642
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-replace-all.md
1788
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-replace-all.md
1643
1789
  */
1644
1790
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
1645
1791
  /**
1646
1792
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
1647
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-slice.md
1793
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-slice.md
1648
1794
  */
1649
1795
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
1650
1796
  /**
1651
1797
  * Prefer `String#startsWith()` & `String#endsWith()` over regexes, `String#indexOf() === 0`, and slice checks.
1652
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-starts-ends-with.md
1798
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-starts-ends-with.md
1653
1799
  */
1654
1800
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
1655
1801
  /**
1656
1802
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
1657
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-string-trim-start-end.md
1803
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-trim-start-end.md
1658
1804
  */
1659
1805
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
1660
1806
  /**
1661
1807
  * Prefer using `structuredClone` to create a deep clone.
1662
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-structured-clone.md
1808
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-structured-clone.md
1663
1809
  */
1664
1810
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
1665
1811
  /**
1666
1812
  * Prefer `switch` over multiple `else-if`.
1667
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-switch.md
1813
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-switch.md
1668
1814
  */
1669
1815
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
1670
1816
  /**
1671
1817
  * Prefer `Temporal` over `Date`.
1672
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-temporal.md
1818
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-temporal.md
1673
1819
  */
1674
1820
  'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>
1675
1821
  /**
1676
1822
  * Prefer direct Temporal conversion methods.
1677
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-temporal-conversion.md
1823
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-temporal-conversion.md
1678
1824
  */
1679
1825
  'unicorn/prefer-temporal-conversion'?: Linter.RuleEntry<[]>
1680
1826
  /**
1681
1827
  * Prefer ternary expressions over simple `if` statements that return or assign values.
1682
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-ternary.md
1828
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-ternary.md
1683
1829
  */
1684
1830
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
1685
1831
  /**
1686
1832
  * Prefer `.then().catch()` over `.then(…, …)` for error handling.
1687
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-then-catch.md
1833
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-then-catch.md
1688
1834
  */
1689
1835
  'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>
1690
1836
  /**
1691
1837
  * Prefer using `Element#toggleAttribute()` to toggle attributes.
1692
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-toggle-attribute.md
1838
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-toggle-attribute.md
1693
1839
  */
1694
1840
  'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>
1695
1841
  /**
1696
1842
  * Prefer top-level await over top-level promises and async function calls.
1697
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-top-level-await.md
1843
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-top-level-await.md
1698
1844
  */
1699
1845
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
1700
1846
  /**
1701
1847
  * Enforce throwing `TypeError` in type checking conditions.
1702
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-type-error.md
1848
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-type-error.md
1703
1849
  */
1704
1850
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
1705
1851
  /**
1706
1852
  * Require type literals to be last in union types.
1707
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-type-literal-last.md
1853
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-type-literal-last.md
1708
1854
  */
1709
1855
  'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>
1710
1856
  /**
1711
1857
  * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over legacy base64 conversions and manual postprocessing.
1712
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-uint8array-base64.md
1858
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-uint8array-base64.md
1713
1859
  */
1714
1860
  'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>
1715
1861
  /**
1716
1862
  * Prefer `Uint8Array#toHex()` and `Uint8Array.fromHex()` over manual and Buffer hex conversions.
1717
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-uint8array-hex.md
1863
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-uint8array-hex.md
1718
1864
  */
1719
1865
  'unicorn/prefer-uint8array-hex'?: Linter.RuleEntry<[]>
1720
1866
  /**
1721
1867
  * Prefer the unary minus operator over multiplying or dividing by `-1`.
1722
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-unary-minus.md
1868
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-unary-minus.md
1723
1869
  */
1724
1870
  'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>
1725
1871
  /**
1726
1872
  * Prefer Unicode code point escapes over legacy escape sequences.
1727
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-unicode-code-point-escapes.md
1873
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-unicode-code-point-escapes.md
1728
1874
  */
1729
1875
  'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>
1730
1876
  /**
1731
1877
  * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
1732
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-url-can-parse.md
1878
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-url-can-parse.md
1733
1879
  */
1734
1880
  'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>
1735
1881
  /**
1736
1882
  * Prefer `URL#href` over stringifying a `URL`.
1737
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-url-href.md
1883
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-url-href.md
1738
1884
  */
1739
1885
  'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>
1740
1886
  /**
1741
1887
  * Prefer `URLSearchParams` over manually splitting query strings.
1742
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-url-search-parameters.md
1888
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-url-search-parameters.md
1743
1889
  */
1744
1890
  'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>
1745
1891
  /**
1746
1892
  * Prefer putting the condition in the while statement.
1747
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/prefer-while-loop-condition.md
1893
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-while-loop-condition.md
1748
1894
  */
1749
1895
  'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>
1750
1896
  /**
1751
1897
  * Renamed to `unicorn/name-replacements`.
1752
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
1898
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
1753
1899
  * @deprecated
1754
1900
  */
1755
1901
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>
1756
1902
  /**
1757
1903
  * Enforce consistent relative URL style.
1758
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/relative-url-style.md
1904
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/relative-url-style.md
1759
1905
  */
1760
1906
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
1761
1907
  /**
1762
1908
  * Enforce using the separator argument with `Array#join()`.
1763
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-array-join-separator.md
1909
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-array-join-separator.md
1764
1910
  */
1765
1911
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
1766
1912
  /**
1767
1913
  * Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
1768
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-array-sort-compare.md
1914
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-array-sort-compare.md
1769
1915
  */
1770
1916
  'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>
1771
1917
  /**
1772
1918
  * Require `CSS.escape()` for interpolated values in CSS selectors.
1773
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-css-escape.md
1919
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-css-escape.md
1774
1920
  */
1775
1921
  'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>
1776
1922
  /**
1777
1923
  * Require configured YAML frontmatter fields.
1778
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-frontmatter-fields.md
1924
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-frontmatter-fields.md
1779
1925
  */
1780
1926
  'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>
1781
1927
  /**
1782
1928
  * Require non-empty module attributes for imports and exports
1783
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-module-attributes.md
1929
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-module-attributes.md
1784
1930
  */
1785
1931
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>
1786
1932
  /**
1787
1933
  * Require non-empty specifier list in import and export statements.
1788
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-module-specifiers.md
1934
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-module-specifiers.md
1789
1935
  */
1790
1936
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>
1791
1937
  /**
1792
1938
  * Enforce using the digits argument with `Number#toFixed()`.
1793
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-number-to-fixed-digits-argument.md
1939
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-number-to-fixed-digits-argument.md
1794
1940
  */
1795
1941
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
1796
1942
  /**
1797
1943
  * Require passive event listeners for high-frequency events.
1798
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-passive-events.md
1944
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-passive-events.md
1799
1945
  */
1800
1946
  'unicorn/require-passive-events'?: Linter.RuleEntry<[]>
1801
1947
  /**
1802
1948
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
1803
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-post-message-target-origin.md
1949
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-post-message-target-origin.md
1804
1950
  */
1805
1951
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
1806
1952
  /**
1807
1953
  * Require boolean-returning Proxy traps to return booleans.
1808
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/require-proxy-trap-boolean-return.md
1954
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-proxy-trap-boolean-return.md
1809
1955
  */
1810
1956
  'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>
1957
+ /**
1958
+ * Require streaming decoding of fetch-body chunks with `TextDecoder`.
1959
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-text-decoder-streaming.md
1960
+ */
1961
+ 'unicorn/require-text-decoder-streaming'?: Linter.RuleEntry<[]>
1811
1962
  /**
1812
1963
  * Enforce a consistent style for single-line block comments.
1813
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/single-line-block-comment-style.md
1964
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/single-line-block-comment-style.md
1814
1965
  */
1815
1966
  'unicorn/single-line-block-comment-style'?: Linter.RuleEntry<UnicornSingleLineBlockCommentStyle>
1816
1967
  /**
1817
1968
  * Enforce better string content.
1818
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/string-content.md
1969
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/string-content.md
1819
1970
  */
1820
1971
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
1821
1972
  /**
1822
1973
  * Enforce consistent brace style for `case` clauses.
1823
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/switch-case-braces.md
1974
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/switch-case-braces.md
1824
1975
  */
1825
1976
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
1826
1977
  /**
1827
1978
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
1828
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/switch-case-break-position.md
1979
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/switch-case-break-position.md
1829
1980
  */
1830
1981
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>
1831
1982
  /**
1832
1983
  * Fix whitespace-insensitive template indentation.
1833
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/template-indent.md
1984
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/template-indent.md
1834
1985
  */
1835
1986
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
1836
1987
  /**
1837
1988
  * Enforce consistent case for text encoding identifiers.
1838
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/text-encoding-identifier-case.md
1989
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/text-encoding-identifier-case.md
1839
1990
  */
1840
1991
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>
1841
1992
  /**
1842
1993
  * Require `new` when creating an error.
1843
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/throw-new-error.md
1994
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/throw-new-error.md
1844
1995
  */
1845
1996
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
1846
1997
  /**
1847
1998
  * Limit the complexity of `try` blocks.
1848
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v76.0.0/docs/rules/try-complexity.md
1999
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/try-complexity.md
1849
2000
  */
1850
2001
  'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>
1851
2002
  }
@@ -2065,6 +2216,13 @@ interface _UnicornImportStyle_ModuleStyles {
2065
2216
  interface _UnicornImportStyle_BooleanObject {
2066
2217
  [k: string]: boolean | undefined
2067
2218
  }
2219
+ // ----- unicorn/indent -----
2220
+ type UnicornIndent = []|[{
2221
+
2222
+ indent?: ("tab" | number)
2223
+
2224
+ tabWidth?: number
2225
+ }]
2068
2226
  // ----- unicorn/isolated-functions -----
2069
2227
  type UnicornIsolatedFunctions = []|[{
2070
2228
 
@@ -2080,6 +2238,21 @@ type UnicornIsolatedFunctions = []|[{
2080
2238
  }]
2081
2239
  // ----- unicorn/iteration-fallback-style -----
2082
2240
  type UnicornIterationFallbackStyle = []|[("guard" | "fallback")]
2241
+ // ----- unicorn/key-name-casing -----
2242
+ type UnicornKeyNameCasing = []|[{
2243
+
2244
+ camelCase?: boolean
2245
+
2246
+ PascalCase?: boolean
2247
+
2248
+ SCREAMING_SNAKE_CASE?: boolean
2249
+
2250
+ "kebab-case"?: boolean
2251
+
2252
+ snake_case?: boolean
2253
+
2254
+ ignore?: string[]
2255
+ }]
2083
2256
  // ----- unicorn/logical-assignment-operators -----
2084
2257
  type UnicornLogicalAssignmentOperators = (([]|["always"]|["always", {
2085
2258
  enforceForIfStatements?: boolean
@@ -2147,11 +2320,6 @@ type UnicornNoBreakInNestedLoop = []|[{
2147
2320
 
2148
2321
  checkContinue?: boolean
2149
2322
  }]
2150
- // ----- unicorn/no-deprecated-css-features -----
2151
- type UnicornNoDeprecatedCssFeatures = []|[{
2152
-
2153
- allow?: string[]
2154
- }]
2155
2323
  // ----- unicorn/no-empty-file -----
2156
2324
  type UnicornNoEmptyFile = []|[{
2157
2325
 
@@ -2211,10 +2379,10 @@ type UnicornNoTypeofUndefined = []|[{
2211
2379
 
2212
2380
  checkGlobalVariables?: boolean
2213
2381
  }]
2214
- // ----- unicorn/no-unknown-pseudo-selectors -----
2215
- type UnicornNoUnknownPseudoSelectors = []|[{
2382
+ // ----- unicorn/no-unnecessary-parameters -----
2383
+ type UnicornNoUnnecessaryParameters = []|[{
2216
2384
 
2217
- allow?: string[]
2385
+ minimumCallCount?: number
2218
2386
  }]
2219
2387
  // ----- unicorn/no-unnecessary-polyfills -----
2220
2388
  type UnicornNoUnnecessaryPolyfills = []|[{
@@ -2228,11 +2396,6 @@ type UnicornNoUnreadableArrayDestructuring = []|[{
2228
2396
 
2229
2397
  maximumIgnoredElements?: number
2230
2398
  }]
2231
- // ----- unicorn/no-unscoped-css-nesting-selector -----
2232
- type UnicornNoUnscopedCssNestingSelector = []|[{
2233
-
2234
- scopingRootAtRules?: string[]
2235
- }]
2236
2399
  // ----- unicorn/no-useless-undefined -----
2237
2400
  type UnicornNoUselessUndefined = []|[{
2238
2401
 
@@ -2311,6 +2474,8 @@ type UnicornPreferAt = []|[{
2311
2474
  type UnicornPreferCombinedGuards = []|[{
2312
2475
 
2313
2476
  checkCompoundConditions?: boolean
2477
+
2478
+ checkMultiStatementBodies?: boolean
2314
2479
  }]
2315
2480
  // ----- unicorn/prefer-continue -----
2316
2481
  type UnicornPreferContinue = []|[{
@@ -2333,11 +2498,6 @@ type UnicornPreferEarlyReturn = []|[{
2333
2498
 
2334
2499
  checkShortBodies?: boolean
2335
2500
  }]
2336
- // ----- unicorn/prefer-explicit-viewport-units -----
2337
- type UnicornPreferExplicitViewportUnits = []|[{
2338
-
2339
- unit?: ("dvh" | "svh" | "lvh")
2340
- }]
2341
2501
  // ----- unicorn/prefer-export-from -----
2342
2502
  type UnicornPreferExportFrom = []|[{
2343
2503
 
@@ -2393,6 +2553,11 @@ type UnicornPreferSetHas = []|[{
2393
2553
  }]
2394
2554
  // ----- unicorn/prefer-short-arrow-method -----
2395
2555
  type UnicornPreferShortArrowMethod = []|[("always" | "consistent-as-needed")]
2556
+ // ----- unicorn/prefer-simplified-conditions -----
2557
+ type UnicornPreferSimplifiedConditions = []|[{
2558
+
2559
+ negatedConditions?: ("simplify" | "expand")
2560
+ }]
2396
2561
  // ----- unicorn/prefer-single-call -----
2397
2562
  type UnicornPreferSingleCall = []|[{
2398
2563