@w5s/eslint-config 3.16.0 → 3.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,1620 +11,1670 @@ 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/v69.0.0/docs/rules/better-dom-traversing.md
14
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.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/v69.0.0/docs/deleted-and-deprecated-rules.md#better-regex
19
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.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/v69.0.0/docs/rules/catch-error-name.md
25
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.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/v69.0.0/docs/rules/class-reference-in-static-methods.md
30
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/class-reference-in-static-methods.md
31
31
  */
32
32
  'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>
33
33
  /**
34
34
  * Enforce better comment content.
35
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/comment-content.md
35
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/comment-content.md
36
36
  */
37
37
  'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>
38
38
  /**
39
39
  * Enforce consistent assertion style with `node:assert`.
40
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-assert.md
40
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-assert.md
41
41
  */
42
42
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
43
43
  /**
44
44
  * Enforce consistent naming for boolean names.
45
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-boolean-name.md
45
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-boolean-name.md
46
46
  */
47
47
  'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>
48
48
  /**
49
49
  * Enforce consistent class member order.
50
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-class-member-order.md
50
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-class-member-order.md
51
51
  */
52
52
  'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>
53
53
  /**
54
54
  * Enforce consistent spelling of compound words in identifiers.
55
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-compound-words.md
55
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-compound-words.md
56
56
  */
57
57
  'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>
58
58
  /**
59
59
  * Enforce consistent conditional object spread style.
60
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-conditional-object-spread.md
60
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-conditional-object-spread.md
61
61
  */
62
62
  'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>
63
63
  /**
64
64
  * Prefer passing `Date` directly to the constructor when cloning.
65
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-date-clone.md
65
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-date-clone.md
66
66
  */
67
67
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
68
68
  /**
69
69
  * Use destructured variables over properties.
70
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-destructuring.md
70
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-destructuring.md
71
71
  */
72
72
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
73
73
  /**
74
74
  * Prefer consistent types when spreading a ternary in an array literal.
75
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-empty-array-spread.md
75
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-empty-array-spread.md
76
76
  */
77
77
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
78
78
  /**
79
79
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
80
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-existence-index-check.md
80
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-existence-index-check.md
81
81
  */
82
82
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
83
83
  /**
84
84
  * Enforce consistent decorator position on exported classes.
85
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-export-decorator-position.md
85
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-export-decorator-position.md
86
86
  */
87
87
  'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>
88
88
  /**
89
89
  * Move function definitions to the highest possible scope.
90
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-function-scoping.md
90
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-function-scoping.md
91
91
  */
92
92
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
93
93
  /**
94
94
  * Enforce function syntax by role.
95
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-function-style.md
95
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-function-style.md
96
96
  */
97
97
  'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>
98
98
  /**
99
99
  * Enforce consistent JSON file reads before `JSON.parse()`.
100
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-json-file-read.md
100
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-json-file-read.md
101
101
  */
102
102
  'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>
103
103
  /**
104
104
  * Enforce consistent optional chaining for same-base member access.
105
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-optional-chaining.md
105
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-optional-chaining.md
106
106
  */
107
107
  'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>
108
108
  /**
109
109
  * Enforce consistent style for escaping `${` in template literals.
110
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-template-literal-escape.md
110
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-template-literal-escape.md
111
111
  */
112
112
  'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>
113
113
  /**
114
114
  * Enforce consistent labels on tuple type elements.
115
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/consistent-tuple-labels.md
115
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/consistent-tuple-labels.md
116
116
  */
117
117
  'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>
118
118
  /**
119
119
  * Enforce correct `Error` subclassing.
120
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/custom-error-definition.md
120
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/custom-error-definition.md
121
121
  */
122
122
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
123
123
  /**
124
124
  * Enforce consistent default export declarations.
125
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/default-export-style.md
125
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/default-export-style.md
126
126
  */
127
127
  'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>
128
128
  /**
129
129
  * Enforce consistent style for DOM element dataset access.
130
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/dom-node-dataset.md
130
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/dom-node-dataset.md
131
131
  */
132
132
  'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>
133
133
  /**
134
134
  * Enforce no spaces between braces.
135
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/empty-brace-spaces.md
135
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/empty-brace-spaces.md
136
136
  */
137
137
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
138
138
  /**
139
139
  * Enforce passing a `message` value when creating a built-in error.
140
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/error-message.md
140
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/error-message.md
141
141
  */
142
142
  'unicorn/error-message'?: Linter.RuleEntry<[]>
143
143
  /**
144
144
  * Require escape sequences to use uppercase or lowercase values.
145
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/escape-case.md
145
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/escape-case.md
146
146
  */
147
147
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>
148
148
  /**
149
149
  * Add expiration conditions to TODO comments.
150
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/expiring-todo-comments.md
150
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/expiring-todo-comments.md
151
151
  */
152
152
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
153
153
  /**
154
154
  * Enforce explicitly comparing the `length` or `size` property of a value.
155
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/explicit-length-check.md
155
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/explicit-length-check.md
156
156
  */
157
157
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
158
158
  /**
159
159
  * Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
160
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/explicit-timer-delay.md
160
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/explicit-timer-delay.md
161
161
  */
162
162
  'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>
163
163
  /**
164
164
  * Enforce a case style for filenames and directory names.
165
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/filename-case.md
165
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/filename-case.md
166
166
  */
167
167
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
168
168
  /**
169
169
  * Require identifiers to match a specified regular expression.
170
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/id-match.md
170
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/id-match.md
171
171
  */
172
172
  'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>
173
173
  /**
174
174
  * Enforce specific import styles per module.
175
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/import-style.md
175
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/import-style.md
176
176
  */
177
177
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
178
178
  /**
179
179
  * Prevent usage of variables from outside the scope of isolated functions.
180
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/isolated-functions.md
180
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/isolated-functions.md
181
181
  */
182
182
  'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>
183
183
  /**
184
184
  * Require or disallow logical assignment operator shorthand
185
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/logical-assignment-operators.md
185
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/logical-assignment-operators.md
186
186
  */
187
187
  'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>
188
188
  /**
189
189
  * Limit the depth of nested calls.
190
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/max-nested-calls.md
190
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/max-nested-calls.md
191
191
  */
192
192
  'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>
193
193
  /**
194
194
  * Enforce replacements for variable, property, and filenames.
195
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/name-replacements.md
195
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/name-replacements.md
196
196
  */
197
197
  'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>
198
198
  /**
199
199
  * Enforce correct use of `new` for builtin constructors.
200
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/new-for-builtins.md
200
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/new-for-builtins.md
201
201
  */
202
202
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
203
203
  /**
204
204
  * Enforce specifying rules to disable in `eslint-disable` comments.
205
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-abusive-eslint-disable.md
205
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-abusive-eslint-disable.md
206
206
  */
207
207
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
208
208
  /**
209
209
  * Disallow recursive access to `this` within getters and setters.
210
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-accessor-recursion.md
210
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-accessor-recursion.md
211
211
  */
212
212
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
213
213
  /**
214
214
  * Disallow bitwise operators where a logical operator was likely intended.
215
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-accidental-bitwise-operator.md
215
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-accidental-bitwise-operator.md
216
216
  */
217
217
  'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>
218
218
  /**
219
219
  * Disallow anonymous functions and classes as the default export.
220
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-anonymous-default-export.md
220
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-anonymous-default-export.md
221
221
  */
222
222
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
223
223
  /**
224
224
  * Prevent passing a function reference directly to iterator methods.
225
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-callback-reference.md
225
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-callback-reference.md
226
226
  */
227
227
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>
228
228
  /**
229
229
  * Disallow array accumulation with `Array#concat()` in loops.
230
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-concat-in-loop.md
230
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-concat-in-loop.md
231
231
  */
232
232
  'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>
233
233
  /**
234
234
  * Disallow using reference values as `Array#fill()` values.
235
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-fill-with-reference-type.md
235
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-fill-with-reference-type.md
236
236
  */
237
237
  'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>
238
238
  /**
239
239
  * Disallow `.fill()` after `Array.from({length: …})`.
240
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-from-fill.md
240
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-from-fill.md
241
241
  */
242
242
  'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>
243
243
  /**
244
244
  * Disallow front-of-array mutation.
245
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-front-mutation.md
245
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-front-mutation.md
246
246
  */
247
247
  'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>
248
248
  /**
249
249
  * Disallow using the `this` argument in array methods.
250
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-method-this-argument.md
250
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-method-this-argument.md
251
251
  */
252
252
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
253
253
  /**
254
254
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
255
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
255
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
256
256
  * @deprecated
257
257
  */
258
258
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>
259
259
  /**
260
260
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
261
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-reduce.md
261
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-reduce.md
262
262
  */
263
263
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
264
264
  /**
265
265
  * Prefer `Array#toReversed()` over `Array#reverse()`.
266
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-reverse.md
266
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-reverse.md
267
267
  */
268
268
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>
269
269
  /**
270
270
  * Prefer `Array#toSorted()` over `Array#sort()`.
271
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-sort.md
271
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-sort.md
272
272
  */
273
273
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>
274
274
  /**
275
275
  * Disallow sorting arrays to get the minimum or maximum value.
276
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-sort-for-min-max.md
276
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-sort-for-min-max.md
277
277
  */
278
278
  'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>
279
279
  /**
280
280
  * Prefer `Array#toSpliced()` over `Array#splice()`.
281
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-array-splice.md
281
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-array-splice.md
282
282
  */
283
283
  'unicorn/no-array-splice'?: Linter.RuleEntry<[]>
284
284
  /**
285
285
  * Disallow asterisk prefixes in documentation comments.
286
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
286
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
287
287
  */
288
288
  'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>
289
+ /**
290
+ * Disallow async functions as `Promise#finally()` callbacks.
291
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-async-promise-finally.md
292
+ */
293
+ 'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>
289
294
  /**
290
295
  * Disallow member access from await expression.
291
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-await-expression-member.md
296
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-await-expression-member.md
292
297
  */
293
298
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
294
299
  /**
295
300
  * Disallow using `await` in `Promise` method parameters.
296
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-await-in-promise-methods.md
301
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-await-in-promise-methods.md
297
302
  */
298
303
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
299
304
  /**
300
305
  * Disallow unnecessary `Blob` to `File` conversion.
301
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-blob-to-file.md
306
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-blob-to-file.md
302
307
  */
303
308
  'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>
304
309
  /**
305
310
  * Disallow boolean-returning sort comparators.
306
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-boolean-sort-comparator.md
311
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-boolean-sort-comparator.md
307
312
  */
308
313
  'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>
309
314
  /**
310
315
  * Disallow `break` and `continue` in nested loops and switches inside loops.
311
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-break-in-nested-loop.md
316
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-break-in-nested-loop.md
312
317
  */
313
318
  'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<[]>
314
319
  /**
315
320
  * Prefer drawing canvases directly instead of converting them to images.
316
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-canvas-to-image.md
321
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-canvas-to-image.md
317
322
  */
318
323
  'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>
319
324
  /**
320
325
  * Disallow chained comparisons such as `a < b < c`.
321
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-chained-comparison.md
326
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-chained-comparison.md
322
327
  */
323
328
  'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>
324
329
  /**
325
330
  * Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
326
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-collection-bracket-access.md
331
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-collection-bracket-access.md
327
332
  */
328
333
  'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>
329
334
  /**
330
335
  * Disallow dynamic object property existence checks.
331
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-computed-property-existence-check.md
336
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-computed-property-existence-check.md
332
337
  */
333
338
  'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>
334
339
  /**
335
340
  * Disallow confusing uses of `Array#{splice,toSpliced}()`.
336
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-confusing-array-splice.md
341
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-confusing-array-splice.md
337
342
  */
338
343
  'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>
339
344
  /**
340
345
  * Disallow confusing uses of `Array#with()`.
341
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-confusing-array-with.md
346
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-confusing-array-with.md
342
347
  */
343
348
  'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>
344
349
  /**
345
350
  * Do not use leading/trailing space between `console.log` parameters.
346
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-console-spaces.md
351
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-console-spaces.md
347
352
  */
348
353
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
349
354
  /**
350
355
  * Disallow arithmetic and bitwise operations that always evaluate to `0`.
351
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-constant-zero-expression.md
356
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-constant-zero-expression.md
352
357
  */
353
358
  'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>
354
359
  /**
355
360
  * Disallow declarations before conditional early exits when they are only used after the exit.
356
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-declarations-before-early-exit.md
361
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-declarations-before-early-exit.md
357
362
  */
358
363
  'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>
359
364
  /**
360
365
  * Do not use `document.cookie` directly.
361
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-document-cookie.md
366
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-document-cookie.md
362
367
  */
363
368
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
364
369
  /**
365
370
  * Disallow two comparisons of the same operands that can be combined into one.
366
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-double-comparison.md
371
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-double-comparison.md
367
372
  */
368
373
  'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>
369
374
  /**
370
375
  * Disallow duplicate adjacent branches in if chains.
371
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-duplicate-if-branches.md
376
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-duplicate-if-branches.md
372
377
  */
373
378
  'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>
374
379
  /**
375
380
  * Disallow adjacent duplicate operands in logical expressions.
376
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-duplicate-logical-operands.md
381
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-duplicate-logical-operands.md
377
382
  */
378
383
  'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>
379
384
  /**
380
385
  * Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
381
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-duplicate-loops.md
386
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-duplicate-loops.md
382
387
  */
383
388
  'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>
384
389
  /**
385
390
  * Disallow duplicate values in `Set` constructor array literals.
386
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-duplicate-set-values.md
391
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-duplicate-set-values.md
387
392
  */
388
393
  'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>
389
394
  /**
390
395
  * Disallow empty files.
391
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-empty-file.md
396
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-empty-file.md
392
397
  */
393
398
  'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>
394
399
  /**
395
400
  * Disallow assigning to built-in error properties.
396
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-error-property-assignment.md
401
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-error-property-assignment.md
397
402
  */
398
403
  'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>
399
404
  /**
400
405
  * Disallow exports in scripts.
401
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-exports-in-scripts.md
406
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-exports-in-scripts.md
402
407
  */
403
408
  'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>
404
409
  /**
405
410
  * Prefer `for…of` over the `forEach` method.
406
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-for-each.md
411
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-for-each.md
407
412
  */
408
413
  'unicorn/no-for-each'?: Linter.RuleEntry<[]>
409
414
  /**
410
415
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
411
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-for-loop.md
416
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-for-loop.md
412
417
  */
413
418
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
414
419
  /**
415
420
  * Disallow assigning properties on the global object.
416
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-global-object-property-assignment.md
421
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-global-object-property-assignment.md
417
422
  */
418
423
  'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>
419
424
  /**
420
425
  * Replaced by `unicorn/prefer-unicode-code-point-escapes` which covers more cases.
421
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
426
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
422
427
  * @deprecated
423
428
  */
424
429
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
425
430
  /**
426
431
  * Disallow immediate mutation after variable assignment.
427
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-immediate-mutation.md
432
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-immediate-mutation.md
428
433
  */
429
434
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>
430
435
  /**
431
436
  * Disallow impossible comparisons against `.length` or `.size`.
432
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-impossible-length-comparison.md
437
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-impossible-length-comparison.md
433
438
  */
434
439
  'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>
435
440
  /**
436
441
  * Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
437
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-incorrect-query-selector.md
442
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-incorrect-query-selector.md
438
443
  */
439
444
  'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>
440
445
  /**
441
446
  * Disallow incorrect template literal interpolation syntax.
442
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-incorrect-template-string-interpolation.md
447
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-incorrect-template-string-interpolation.md
443
448
  */
444
449
  'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>
445
450
  /**
446
451
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
447
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
452
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
448
453
  * @deprecated
449
454
  */
450
455
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
451
456
  /**
452
457
  * Disallow `instanceof` with built-in objects
453
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-instanceof-builtins.md
458
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-instanceof-builtins.md
454
459
  */
455
460
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
456
461
  /**
457
462
  * Disallow calling functions and constructors with an invalid number of arguments.
458
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-argument-count.md
463
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-invalid-argument-count.md
459
464
  */
460
465
  'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>
461
466
  /**
462
467
  * Disallow comparing a single character from a string to a multi-character string.
463
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-character-comparison.md
468
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-invalid-character-comparison.md
464
469
  */
465
470
  'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>
466
471
  /**
467
472
  * Disallow invalid options in `fetch()` and `new Request()`.
468
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-fetch-options.md
473
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-invalid-fetch-options.md
469
474
  */
470
475
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
471
476
  /**
472
477
  * Disallow invalid `accept` values on file inputs.
473
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-file-input-accept.md
478
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-invalid-file-input-accept.md
474
479
  */
475
480
  'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>
476
481
  /**
477
482
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
478
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-remove-event-listener.md
483
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-invalid-remove-event-listener.md
479
484
  */
480
485
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
481
486
  /**
482
487
  * Disallow invalid implementations of well-known symbol methods.
483
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
488
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-invalid-well-known-symbol-methods.md
484
489
  */
485
490
  'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>
486
491
  /**
487
492
  * Disallow identifiers starting with `new` or `class`.
488
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-keyword-prefix.md
493
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-keyword-prefix.md
489
494
  */
490
495
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
491
496
  /**
492
497
  * Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
493
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-late-current-target-access.md
498
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-late-current-target-access.md
494
499
  */
495
500
  'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>
496
501
  /**
497
502
  * Disallow event-control method calls after the synchronous event dispatch has finished.
498
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-late-event-control.md
503
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-late-event-control.md
499
504
  */
500
505
  'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>
501
506
  /**
502
507
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
503
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
508
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
504
509
  * @deprecated
505
510
  */
506
511
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
507
512
  /**
508
513
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
509
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-lonely-if.md
514
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-lonely-if.md
510
515
  */
511
516
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
512
517
  /**
513
518
  * Disallow mutating a loop iterable during iteration.
514
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-loop-iterable-mutation.md
519
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-loop-iterable-mutation.md
515
520
  */
516
521
  'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>
517
522
  /**
518
523
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
519
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-magic-array-flat-depth.md
524
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-magic-array-flat-depth.md
520
525
  */
521
526
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
522
527
  /**
523
528
  * Disallow manually wrapped comments.
524
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-manually-wrapped-comments.md
529
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-manually-wrapped-comments.md
525
530
  */
526
531
  'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>
527
532
  /**
528
533
  * Disallow checking a Map key before accessing a different key.
529
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-mismatched-map-key.md
534
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-mismatched-map-key.md
530
535
  */
531
536
  'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>
532
537
  /**
533
538
  * Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
534
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-misrefactored-assignment.md
539
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-misrefactored-assignment.md
535
540
  */
536
541
  'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>
537
542
  /**
538
543
  * Disallow named usage of default import and export.
539
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-named-default.md
544
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-named-default.md
540
545
  */
541
546
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>
542
547
  /**
543
548
  * Disallow negated array predicate calls.
544
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-negated-array-predicate.md
549
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-negated-array-predicate.md
545
550
  */
546
551
  'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>
547
552
  /**
548
553
  * Disallow negated comparisons.
549
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-negated-comparison.md
554
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-negated-comparison.md
550
555
  */
551
556
  'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>
552
557
  /**
553
558
  * Disallow negated conditions.
554
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-negated-condition.md
559
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-negated-condition.md
555
560
  */
556
561
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
557
562
  /**
558
563
  * Disallow negated expression in equality check.
559
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-negation-in-equality-check.md
564
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-negation-in-equality-check.md
560
565
  */
561
566
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
562
567
  /**
563
568
  * Disallow nested ternary expressions.
564
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-nested-ternary.md
569
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-nested-ternary.md
565
570
  */
566
571
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
567
572
  /**
568
573
  * Disallow `new Array()`.
569
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-new-array.md
574
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-new-array.md
570
575
  */
571
576
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
572
577
  /**
573
578
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
574
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-new-buffer.md
579
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-new-buffer.md
575
580
  */
576
581
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
577
582
  /**
578
583
  * Disallow non-function values with function-style verb prefixes.
579
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-non-function-verb-prefix.md
584
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-non-function-verb-prefix.md
580
585
  */
581
586
  'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>
582
587
  /**
583
588
  * Disallow non-standard properties on built-in objects.
584
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-nonstandard-builtin-properties.md
589
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-nonstandard-builtin-properties.md
585
590
  */
586
591
  'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>
587
592
  /**
588
593
  * Disallow the use of the `null` literal.
589
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-null.md
594
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-null.md
590
595
  */
591
596
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
592
597
  /**
593
598
  * Disallow the use of objects as default parameters.
594
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-object-as-default-parameter.md
599
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-object-as-default-parameter.md
595
600
  */
596
601
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
597
602
  /**
598
603
  * Disallow `Object` methods with `Map` or `Set`.
599
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-object-methods-with-collections.md
604
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-object-methods-with-collections.md
600
605
  */
601
606
  'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>
602
607
  /**
603
608
  * Disallow optional chaining on undeclared variables.
604
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
609
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
605
610
  */
606
611
  'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>
607
612
  /**
608
613
  * Disallow `process.exit()`.
609
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-process-exit.md
614
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-process-exit.md
610
615
  */
611
616
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
612
617
  /**
613
618
  * Disallow comparisons made redundant by an equality check in the same logical AND.
614
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-redundant-comparison.md
619
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-redundant-comparison.md
615
620
  */
616
621
  'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>
617
622
  /**
618
623
  * Disallow using the return value of `Array#push()` and `Array#unshift()`.
619
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-return-array-push.md
624
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-return-array-push.md
620
625
  */
621
626
  'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>
622
627
  /**
623
628
  * Disallow selector syntax in DOM names.
624
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-selector-as-dom-name.md
629
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-selector-as-dom-name.md
625
630
  */
626
631
  'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>
627
632
  /**
628
633
  * Disallow passing single-element arrays to `Promise` methods.
629
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-single-promise-in-promise-methods.md
634
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-single-promise-in-promise-methods.md
630
635
  */
631
636
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
632
637
  /**
633
638
  * Disallow classes that only have static members.
634
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-static-only-class.md
639
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-static-only-class.md
635
640
  */
636
641
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
637
642
  /**
638
643
  * Prefer comparing values directly over subtracting and comparing to `0`.
639
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-subtraction-comparison.md
644
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-subtraction-comparison.md
640
645
  */
641
646
  'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>
642
647
  /**
643
648
  * Disallow `then` property.
644
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-thenable.md
649
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-thenable.md
645
650
  */
646
651
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
647
652
  /**
648
653
  * Disallow assigning `this` to a variable.
649
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-this-assignment.md
654
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-this-assignment.md
650
655
  */
651
656
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
652
657
  /**
653
658
  * Disallow `this` outside of classes.
654
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-this-outside-of-class.md
659
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-this-outside-of-class.md
655
660
  */
656
661
  'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>
657
662
  /**
658
663
  * Disallow assigning to top-level variables from inside functions.
659
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-top-level-assignment-in-function.md
664
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-top-level-assignment-in-function.md
660
665
  */
661
666
  'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>
662
667
  /**
663
668
  * Disallow top-level side effects in exported modules.
664
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-top-level-side-effects.md
669
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-top-level-side-effects.md
665
670
  */
666
671
  'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>
667
672
  /**
668
673
  * Disallow comparing `undefined` using `typeof`.
669
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-typeof-undefined.md
674
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-typeof-undefined.md
670
675
  */
671
676
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
672
677
  /**
673
678
  * Disallow referencing methods without calling them.
674
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-uncalled-method.md
679
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-uncalled-method.md
675
680
  */
676
681
  'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>
677
682
  /**
678
683
  * Require class members to be declared.
679
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-undeclared-class-members.md
684
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-undeclared-class-members.md
680
685
  */
681
686
  'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>
682
687
  /**
683
688
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
684
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-array-flat-depth.md
689
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-array-flat-depth.md
685
690
  */
686
691
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>
692
+ /**
693
+ * Disallow `Array#flatMap()` callbacks that only wrap a single item.
694
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-array-flat-map.md
695
+ */
696
+ 'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>
687
697
  /**
688
698
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
689
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-array-splice-count.md
699
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-array-splice-count.md
690
700
  */
691
701
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>
692
702
  /**
693
703
  * Disallow awaiting non-promise values.
694
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-await.md
704
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-await.md
695
705
  */
696
706
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
697
707
  /**
698
708
  * Disallow unnecessary comparisons against boolean literals.
699
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-boolean-comparison.md
709
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-boolean-comparison.md
700
710
  */
701
711
  'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>
712
+ /**
713
+ * Disallow unnecessary options in `fetch()` and `new Request()`.
714
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-fetch-options.md
715
+ */
716
+ 'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>
702
717
  /**
703
718
  * Disallow unnecessary `globalThis` references.
704
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-global-this.md
719
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-global-this.md
705
720
  */
706
721
  'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>
707
722
  /**
708
723
  * Disallow unnecessary nested ternary expressions.
709
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-nested-ternary.md
724
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-nested-ternary.md
710
725
  */
711
726
  'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>
712
727
  /**
713
728
  * Enforce the use of built-in methods instead of unnecessary polyfills.
714
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-polyfills.md
729
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-polyfills.md
715
730
  */
716
731
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
717
732
  /**
718
733
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
719
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-slice-end.md
734
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-slice-end.md
720
735
  */
721
736
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>
722
737
  /**
723
738
  * Disallow `Array#splice()` when simpler alternatives exist.
724
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unnecessary-splice.md
739
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unnecessary-splice.md
725
740
  */
726
741
  'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>
727
742
  /**
728
743
  * Disallow unreadable array destructuring.
729
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unreadable-array-destructuring.md
744
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unreadable-array-destructuring.md
730
745
  */
731
746
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>
732
747
  /**
733
748
  * Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
734
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unreadable-for-of-expression.md
749
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unreadable-for-of-expression.md
735
750
  */
736
751
  'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>
737
752
  /**
738
753
  * Disallow unreadable IIFEs.
739
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unreadable-iife.md
754
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unreadable-iife.md
740
755
  */
741
756
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
742
757
  /**
743
758
  * Disallow unreadable `new` expressions.
744
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unreadable-new-expression.md
759
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unreadable-new-expression.md
745
760
  */
746
761
  'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>
747
762
  /**
748
763
  * Disallow unreadable object destructuring.
749
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unreadable-object-destructuring.md
764
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unreadable-object-destructuring.md
750
765
  */
751
766
  'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>
752
767
  /**
753
768
  * Prevent unsafe use of ArrayBuffer view `.buffer`.
754
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unsafe-buffer-conversion.md
769
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unsafe-buffer-conversion.md
755
770
  */
756
771
  'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>
757
772
  /**
758
773
  * Disallow unsafe DOM HTML APIs.
759
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unsafe-dom-html.md
774
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unsafe-dom-html.md
760
775
  */
761
776
  'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>
777
+ /**
778
+ * Disallow reading `.value` from `Promise.allSettled()` results without a fulfilled status guard.
779
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unsafe-promise-all-settled-values.md
780
+ */
781
+ 'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>
762
782
  /**
763
783
  * Disallow unsafe values as property keys.
764
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unsafe-property-key.md
784
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unsafe-property-key.md
765
785
  */
766
786
  'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>
767
787
  /**
768
788
  * Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
769
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unsafe-string-replacement.md
789
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unsafe-string-replacement.md
770
790
  */
771
791
  'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>
772
792
  /**
773
793
  * Disallow ignoring the return value of selected array methods.
774
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unused-array-method-return.md
794
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unused-array-method-return.md
775
795
  */
776
796
  'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>
777
797
  /**
778
798
  * Disallow unused object properties.
779
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-unused-properties.md
799
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-unused-properties.md
780
800
  */
781
801
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
782
802
  /**
783
803
  * Disallow unnecessary `Boolean()` casts in array predicate callbacks.
784
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-boolean-cast.md
804
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-boolean-cast.md
785
805
  */
786
806
  'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>
787
807
  /**
788
808
  * Disallow useless type coercions of values that are already of the target type.
789
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-coercion.md
809
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-coercion.md
790
810
  */
791
811
  'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>
792
812
  /**
793
813
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
794
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-collection-argument.md
814
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-collection-argument.md
795
815
  */
796
816
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>
797
817
  /**
798
818
  * Disallow useless compound assignments such as `x += 0`.
799
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-compound-assignment.md
819
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-compound-assignment.md
800
820
  */
801
821
  'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>
802
822
  /**
803
823
  * Disallow useless concatenation of literals.
804
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-concat.md
824
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-concat.md
805
825
  */
806
826
  'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>
807
827
  /**
808
828
  * Disallow useless `continue` statements.
809
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-continue.md
829
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-continue.md
810
830
  */
811
831
  'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>
812
832
  /**
813
833
  * Disallow unnecessary existence checks before deletion.
814
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-delete-check.md
834
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-delete-check.md
815
835
  */
816
836
  'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>
817
837
  /**
818
838
  * Disallow `else` after a statement that exits.
819
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-else.md
839
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-else.md
820
840
  */
821
841
  'unicorn/no-useless-else'?: Linter.RuleEntry<[]>
822
842
  /**
823
843
  * Disallow unnecessary `Error.captureStackTrace(…)`.
824
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-error-capture-stack-trace.md
844
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-error-capture-stack-trace.md
825
845
  */
826
846
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>
827
847
  /**
828
848
  * Disallow useless fallback when spreading in object literals.
829
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-fallback-in-spread.md
849
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-fallback-in-spread.md
830
850
  */
831
851
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
832
852
  /**
833
853
  * Disallow unnecessary `.toArray()` on iterators.
834
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-iterator-to-array.md
854
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-iterator-to-array.md
835
855
  */
836
856
  'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>
837
857
  /**
838
858
  * Disallow useless array length check.
839
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-length-check.md
859
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-length-check.md
840
860
  */
841
861
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
842
862
  /**
843
863
  * Disallow unnecessary operands in logical expressions involving boolean literals.
844
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-logical-operand.md
864
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-logical-operand.md
845
865
  */
846
866
  'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>
847
867
  /**
848
868
  * Disallow useless overrides of class methods.
849
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-override.md
869
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-override.md
850
870
  */
851
871
  'unicorn/no-useless-override'?: Linter.RuleEntry<[]>
852
872
  /**
853
873
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
854
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-promise-resolve-reject.md
874
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-promise-resolve-reject.md
855
875
  */
856
876
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
857
877
  /**
858
878
  * Disallow simple recursive function calls that can be replaced with a loop.
859
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-recursion.md
879
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-recursion.md
860
880
  */
861
881
  'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>
862
882
  /**
863
883
  * Disallow unnecessary spread.
864
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-spread.md
884
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-spread.md
865
885
  */
866
886
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
867
887
  /**
868
888
  * Disallow useless case in switch statements.
869
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-switch-case.md
889
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-switch-case.md
870
890
  */
871
891
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
872
892
  /**
873
893
  * Disallow useless template literal expressions.
874
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-template-literals.md
894
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-template-literals.md
875
895
  */
876
896
  'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>
877
897
  /**
878
898
  * Disallow useless `undefined`.
879
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-useless-undefined.md
899
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-useless-undefined.md
880
900
  */
881
901
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
882
902
  /**
883
903
  * Disallow the bitwise XOR operator where exponentiation was likely intended.
884
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-xor-as-exponentiation.md
904
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-xor-as-exponentiation.md
885
905
  */
886
906
  'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>
887
907
  /**
888
908
  * Disallow number literals with zero fractions or dangling dots.
889
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/no-zero-fractions.md
909
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/no-zero-fractions.md
890
910
  */
891
911
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
892
912
  /**
893
913
  * Enforce proper case for numeric literals.
894
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/number-literal-case.md
914
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/number-literal-case.md
895
915
  */
896
916
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>
897
917
  /**
898
918
  * Enforce the style of numeric separators by correctly grouping digits.
899
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/numeric-separators-style.md
919
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/numeric-separators-style.md
900
920
  */
901
921
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
902
922
  /**
903
923
  * Require assignment operator shorthand where possible.
904
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/operator-assignment.md
924
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/operator-assignment.md
905
925
  */
906
926
  'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>
927
+ /**
928
+ * Prefer `AbortSignal.any()` over manually forwarding abort events between signals.
929
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-abort-signal-any.md
930
+ */
931
+ 'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>
907
932
  /**
908
933
  * Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
909
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-abort-signal-timeout.md
934
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-abort-signal-timeout.md
910
935
  */
911
936
  'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>
912
937
  /**
913
938
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
914
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-add-event-listener.md
939
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-add-event-listener.md
915
940
  */
916
941
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
917
942
  /**
918
943
  * Prefer an options object over a boolean in `.addEventListener()`.
919
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-add-event-listener-options.md
944
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-add-event-listener-options.md
920
945
  */
921
946
  'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>
922
947
  /**
923
948
  * Prefer `AggregateError` when throwing collected errors.
924
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-aggregate-error.md
949
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-aggregate-error.md
925
950
  */
926
951
  'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>
927
952
  /**
928
953
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
929
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-find.md
954
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-find.md
930
955
  */
931
956
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
932
957
  /**
933
958
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
934
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-flat.md
959
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-flat.md
935
960
  */
936
961
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
937
962
  /**
938
963
  * Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
939
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-flat-map.md
964
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-flat-map.md
940
965
  */
941
966
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
942
967
  /**
943
968
  * Prefer `Array.fromAsync()` over `for await…of` array accumulation.
944
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-from-async.md
969
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-from-async.md
945
970
  */
946
971
  'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>
947
972
  /**
948
973
  * Prefer using the `Array.from()` mapping function argument.
949
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-from-map.md
974
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-from-map.md
950
975
  */
951
976
  'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>
977
+ /**
978
+ * Prefer `Array.from({length}, …)` when creating range arrays.
979
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-from-range.md
980
+ */
981
+ 'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>
952
982
  /**
953
983
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
954
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-index-of.md
984
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-index-of.md
955
985
  */
956
986
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
957
987
  /**
958
988
  * Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
959
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-iterable-methods.md
989
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-iterable-methods.md
960
990
  */
961
991
  'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>
962
992
  /**
963
993
  * Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
964
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-last-methods.md
994
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-last-methods.md
965
995
  */
966
996
  'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>
967
997
  /**
968
998
  * Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
969
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-slice.md
999
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-slice.md
970
1000
  */
971
1001
  'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>
972
1002
  /**
973
1003
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
974
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-array-some.md
1004
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-array-some.md
975
1005
  */
976
1006
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
977
1007
  /**
978
1008
  * Prefer `.at()` method for index access and `String#charAt()`.
979
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-at.md
1009
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-at.md
980
1010
  */
981
1011
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
982
1012
  /**
983
1013
  * Prefer `await` over promise chaining.
984
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-await.md
1014
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-await.md
985
1015
  */
986
1016
  'unicorn/prefer-await'?: Linter.RuleEntry<[]>
987
1017
  /**
988
1018
  * Prefer `BigInt` literals over the constructor.
989
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-bigint-literals.md
1019
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-bigint-literals.md
990
1020
  */
991
1021
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>
992
1022
  /**
993
1023
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
994
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-blob-reading-methods.md
1024
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-blob-reading-methods.md
995
1025
  */
996
1026
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
1027
+ /**
1028
+ * Prefer block statements over IIFEs used only for scoping.
1029
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-block-statement-over-iife.md
1030
+ */
1031
+ 'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>
997
1032
  /**
998
1033
  * Prefer directly returning boolean expressions over `if` statements.
999
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-boolean-return.md
1034
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-boolean-return.md
1000
1035
  */
1001
1036
  'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>
1002
1037
  /**
1003
1038
  * Prefer class field declarations over `this` assignments in constructors.
1004
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-class-fields.md
1039
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-class-fields.md
1005
1040
  */
1006
1041
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>
1007
1042
  /**
1008
1043
  * Prefer using `Element#classList.toggle()` to toggle class names.
1009
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-classlist-toggle.md
1044
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-classlist-toggle.md
1010
1045
  */
1011
1046
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>
1012
1047
  /**
1013
1048
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
1014
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-code-point.md
1049
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-code-point.md
1015
1050
  */
1016
1051
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
1017
1052
  /**
1018
1053
  * Prefer early continues over whole-loop conditional wrapping.
1019
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-continue.md
1054
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-continue.md
1020
1055
  */
1021
1056
  'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>
1022
1057
  /**
1023
1058
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
1024
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-date-now.md
1059
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-date-now.md
1025
1060
  */
1026
1061
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
1027
1062
  /**
1028
1063
  * Prefer default parameters over reassignment.
1029
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-default-parameters.md
1064
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-default-parameters.md
1030
1065
  */
1031
1066
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
1032
1067
  /**
1033
1068
  * Prefer direct iteration over default iterator method calls.
1034
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-direct-iteration.md
1069
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-direct-iteration.md
1035
1070
  */
1036
1071
  'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>
1037
1072
  /**
1038
1073
  * Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
1039
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dispose.md
1074
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-dispose.md
1040
1075
  */
1041
1076
  'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>
1042
1077
  /**
1043
1078
  * Prefer `Element#append()` over `Node#appendChild()`.
1044
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dom-node-append.md
1079
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-dom-node-append.md
1045
1080
  */
1046
1081
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
1047
1082
  /**
1048
1083
  * Renamed to `unicorn/dom-node-dataset`.
1049
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
1084
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
1050
1085
  * @deprecated
1051
1086
  */
1052
1087
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
1053
1088
  /**
1054
1089
  * Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
1055
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dom-node-html-methods.md
1090
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-dom-node-html-methods.md
1056
1091
  */
1057
1092
  'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<[]>
1058
1093
  /**
1059
1094
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
1060
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dom-node-remove.md
1095
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-dom-node-remove.md
1061
1096
  */
1062
1097
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
1063
1098
  /**
1064
1099
  * Prefer `.replaceChildren()` when emptying DOM children.
1065
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dom-node-replace-children.md
1100
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-dom-node-replace-children.md
1066
1101
  */
1067
1102
  'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>
1068
1103
  /**
1069
1104
  * Prefer `.textContent` over `.innerText`.
1070
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-dom-node-text-content.md
1105
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-dom-node-text-content.md
1071
1106
  */
1072
1107
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
1073
1108
  /**
1074
1109
  * Prefer early returns over full-function conditional wrapping.
1075
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-early-return.md
1110
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-early-return.md
1076
1111
  */
1077
1112
  'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>
1078
1113
  /**
1079
1114
  * Prefer `else if` over adjacent `if` statements with related conditions.
1080
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-else-if.md
1115
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-else-if.md
1081
1116
  */
1082
1117
  'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>
1083
1118
  /**
1084
1119
  * Prefer `Error.isError()` when checking for errors.
1085
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-error-is-error.md
1120
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-error-is-error.md
1086
1121
  */
1087
1122
  'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>
1088
1123
  /**
1089
1124
  * Prefer `EventTarget` over `EventEmitter`.
1090
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-event-target.md
1125
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-event-target.md
1091
1126
  */
1092
1127
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
1093
1128
  /**
1094
1129
  * Prefer `export…from` when re-exporting.
1095
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-export-from.md
1130
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-export-from.md
1096
1131
  */
1097
1132
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
1098
1133
  /**
1099
1134
  * Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
1100
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-flat-math-min-max.md
1135
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-flat-math-min-max.md
1101
1136
  */
1102
1137
  'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>
1103
1138
  /**
1104
1139
  * Prefer `.getOrInsertComputed()` when the default value has side effects.
1105
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-get-or-insert-computed.md
1140
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-get-or-insert-computed.md
1106
1141
  */
1107
1142
  'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>
1108
1143
  /**
1109
1144
  * Prefer global numeric constants over `Number` static properties.
1110
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-global-number-constants.md
1145
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-global-number-constants.md
1111
1146
  */
1112
1147
  'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>
1113
1148
  /**
1114
1149
  * Prefer `globalThis` over `window`, `self`, and `global`.
1115
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-global-this.md
1150
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-global-this.md
1116
1151
  */
1117
1152
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
1153
+ /**
1154
+ * Prefer `Object.groupBy()` or `Map.groupBy()` over reduce-based grouping.
1155
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-group-by.md
1156
+ */
1157
+ 'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>
1118
1158
  /**
1119
1159
  * Prefer `.has()` when checking existence.
1120
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-has-check.md
1160
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-has-check.md
1121
1161
  */
1122
1162
  'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>
1123
1163
  /**
1124
1164
  * Prefer moving code shared by all branches of an `if` statement out of the branches.
1125
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-hoisting-branch-code.md
1165
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-hoisting-branch-code.md
1126
1166
  */
1127
1167
  'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>
1128
1168
  /**
1129
1169
  * Prefer HTTPS over HTTP.
1130
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-https.md
1170
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-https.md
1131
1171
  */
1132
1172
  'unicorn/prefer-https'?: Linter.RuleEntry<[]>
1133
1173
  /**
1134
1174
  * Prefer identifiers over string literals in import and export specifiers.
1135
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
1175
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-identifier-import-export-specifiers.md
1136
1176
  */
1137
1177
  'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>
1138
1178
  /**
1139
1179
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
1140
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-import-meta-properties.md
1180
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-import-meta-properties.md
1141
1181
  */
1142
1182
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>
1143
1183
  /**
1144
1184
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
1145
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-includes.md
1185
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-includes.md
1146
1186
  */
1147
1187
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
1148
1188
  /**
1149
1189
  * Prefer `.includes()` over repeated equality comparisons.
1150
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
1190
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-includes-over-repeated-comparisons.md
1151
1191
  */
1152
1192
  'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>
1153
1193
  /**
1154
1194
  * Prefer passing iterables directly to constructors instead of filling empty collections.
1155
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-iterable-in-constructor.md
1195
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-iterable-in-constructor.md
1156
1196
  */
1157
1197
  'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>
1158
1198
  /**
1159
1199
  * Prefer `Iterator.concat(…)` over temporary spread arrays.
1160
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-iterator-concat.md
1200
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-iterator-concat.md
1161
1201
  */
1162
1202
  'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>
1203
+ /**
1204
+ * Prefer iterator helpers over temporary arrays from iterators.
1205
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-iterator-helpers.md
1206
+ */
1207
+ 'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>
1163
1208
  /**
1164
1209
  * Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
1165
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-iterator-to-array.md
1210
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-iterator-to-array.md
1166
1211
  */
1167
1212
  'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>
1168
1213
  /**
1169
1214
  * Prefer moving `.toArray()` to the end of iterator helper chains.
1170
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-iterator-to-array-at-end.md
1215
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-iterator-to-array-at-end.md
1171
1216
  */
1172
1217
  'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>
1173
1218
  /**
1174
1219
  * Renamed to `unicorn/consistent-json-file-read`.
1175
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
1220
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
1176
1221
  * @deprecated
1177
1222
  */
1178
1223
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
1179
1224
  /**
1180
1225
  * Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
1181
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-keyboard-event-key.md
1226
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-keyboard-event-key.md
1182
1227
  */
1183
1228
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
1184
1229
  /**
1185
1230
  * Prefer `location.assign()` over assigning to `location.href`.
1186
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-location-assign.md
1231
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-location-assign.md
1187
1232
  */
1188
1233
  'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>
1189
1234
  /**
1190
1235
  * Prefer using a logical operator over a ternary.
1191
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-logical-operator-over-ternary.md
1236
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-logical-operator-over-ternary.md
1192
1237
  */
1193
1238
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
1194
1239
  /**
1195
1240
  * Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
1196
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-map-from-entries.md
1241
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-map-from-entries.md
1197
1242
  */
1198
1243
  'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>
1199
1244
  /**
1200
1245
  * Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
1201
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-math-abs.md
1246
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-math-abs.md
1202
1247
  */
1203
1248
  'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>
1204
1249
  /**
1205
1250
  * Prefer `Math` constants over their approximate numeric values.
1206
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-math-constants.md
1251
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-math-constants.md
1207
1252
  */
1208
1253
  'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>
1209
1254
  /**
1210
1255
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
1211
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-math-min-max.md
1256
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-math-min-max.md
1212
1257
  */
1213
1258
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
1214
1259
  /**
1215
1260
  * Prefer `Math.trunc()` for truncating numbers.
1216
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-math-trunc.md
1261
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-math-trunc.md
1217
1262
  */
1218
1263
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
1219
1264
  /**
1220
1265
  * Prefer moving ternaries into the minimal varying part of an expression.
1221
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-minimal-ternary.md
1266
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-minimal-ternary.md
1222
1267
  */
1223
1268
  'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>
1224
1269
  /**
1225
1270
  * Prefer modern DOM APIs.
1226
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-modern-dom-apis.md
1271
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-modern-dom-apis.md
1227
1272
  */
1228
1273
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
1229
1274
  /**
1230
1275
  * Prefer modern `Math` APIs over legacy patterns.
1231
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-modern-math-apis.md
1276
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-modern-math-apis.md
1232
1277
  */
1233
1278
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
1234
1279
  /**
1235
1280
  * Prefer JavaScript modules (ESM) over CommonJS.
1236
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-module.md
1281
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-module.md
1237
1282
  */
1238
1283
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
1239
1284
  /**
1240
1285
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
1241
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-native-coercion-functions.md
1286
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-native-coercion-functions.md
1242
1287
  */
1243
1288
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
1244
1289
  /**
1245
1290
  * Prefer negative index over `.length - index` when possible.
1246
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-negative-index.md
1291
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-negative-index.md
1247
1292
  */
1248
1293
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
1249
1294
  /**
1250
1295
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
1251
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-node-protocol.md
1296
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-node-protocol.md
1252
1297
  */
1253
1298
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
1254
1299
  /**
1255
1300
  * Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
1256
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-number-coercion.md
1301
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-number-coercion.md
1257
1302
  */
1258
1303
  'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>
1259
1304
  /**
1260
1305
  * Prefer `Number.isSafeInteger()` over integer checks.
1261
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-number-is-safe-integer.md
1306
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-number-is-safe-integer.md
1262
1307
  */
1263
1308
  'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>
1264
1309
  /**
1265
1310
  * Prefer `Number` static methods over global functions and optionally static properties over global constants.
1266
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-number-properties.md
1311
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-number-properties.md
1267
1312
  */
1268
1313
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
1269
1314
  /**
1270
1315
  * Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
1271
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-object-define-properties.md
1316
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-object-define-properties.md
1272
1317
  */
1273
1318
  'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>
1274
1319
  /**
1275
1320
  * Prefer object destructuring defaults over default object literals with spread.
1276
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-object-destructuring-defaults.md
1321
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-object-destructuring-defaults.md
1277
1322
  */
1278
1323
  'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>
1279
1324
  /**
1280
1325
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
1281
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-object-from-entries.md
1326
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-object-from-entries.md
1282
1327
  */
1283
1328
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
1284
1329
  /**
1285
1330
  * Prefer the most specific `Object` iterable method.
1286
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-object-iterable-methods.md
1331
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-object-iterable-methods.md
1287
1332
  */
1288
1333
  'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>
1289
1334
  /**
1290
1335
  * Prefer observer APIs over resize and scroll listeners with layout reads.
1291
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-observer-apis.md
1336
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-observer-apis.md
1292
1337
  */
1293
1338
  'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>
1294
1339
  /**
1295
1340
  * Prefer omitting the `catch` binding parameter.
1296
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-optional-catch-binding.md
1341
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-optional-catch-binding.md
1297
1342
  */
1298
1343
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
1299
1344
  /**
1300
1345
  * Prefer `Path2D` for repeatedly drawn canvas paths.
1301
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-path2d.md
1346
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-path2d.md
1302
1347
  */
1303
1348
  'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>
1304
1349
  /**
1305
1350
  * Prefer private class fields over the underscore-prefix convention.
1306
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-private-class-fields.md
1351
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-private-class-fields.md
1307
1352
  */
1308
1353
  'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>
1309
1354
  /**
1310
1355
  * Prefer `Promise.try()` over promise-wrapping boilerplate.
1311
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-promise-try.md
1356
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-promise-try.md
1312
1357
  */
1313
1358
  'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>
1314
1359
  /**
1315
1360
  * Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
1316
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-promise-with-resolvers.md
1361
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-promise-with-resolvers.md
1317
1362
  */
1318
1363
  'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>
1319
1364
  /**
1320
1365
  * Prefer borrowing methods from the prototype instead of the instance.
1321
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-prototype-methods.md
1366
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-prototype-methods.md
1322
1367
  */
1323
1368
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
1324
1369
  /**
1325
1370
  * Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
1326
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-query-selector.md
1371
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-query-selector.md
1327
1372
  */
1328
1373
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>
1329
1374
  /**
1330
1375
  * Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
1331
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-queue-microtask.md
1376
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-queue-microtask.md
1332
1377
  */
1333
1378
  'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>
1334
1379
  /**
1335
1380
  * Prefer `Reflect.apply()` over `Function#apply()`.
1336
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-reflect-apply.md
1381
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-reflect-apply.md
1337
1382
  */
1338
1383
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
1339
1384
  /**
1340
1385
  * Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
1341
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-regexp-escape.md
1386
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-regexp-escape.md
1342
1387
  */
1343
1388
  'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>
1344
1389
  /**
1345
1390
  * Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
1346
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-regexp-test.md
1391
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-regexp-test.md
1347
1392
  */
1348
1393
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
1349
1394
  /**
1350
1395
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
1351
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-response-static-json.md
1396
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-response-static-json.md
1352
1397
  */
1353
1398
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>
1354
1399
  /**
1355
1400
  * Prefer `:scope` when using element query selector methods.
1356
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-scoped-selector.md
1401
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-scoped-selector.md
1357
1402
  */
1358
1403
  'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>
1359
1404
  /**
1360
1405
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
1361
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-set-has.md
1406
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-set-has.md
1362
1407
  */
1363
1408
  'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>
1364
1409
  /**
1365
1410
  * Prefer `Set` methods for Set operations.
1366
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-set-methods.md
1411
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-set-methods.md
1367
1412
  */
1368
1413
  'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>
1369
1414
  /**
1370
1415
  * Prefer using `Set#size` instead of `Array#length`.
1371
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-set-size.md
1416
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-set-size.md
1372
1417
  */
1373
1418
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
1374
1419
  /**
1375
1420
  * Prefer arrow function properties over methods with a single return.
1376
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-short-arrow-method.md
1421
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-short-arrow-method.md
1377
1422
  */
1378
1423
  'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<[]>
1379
1424
  /**
1380
1425
  * Prefer simple conditions first in logical expressions.
1381
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-simple-condition-first.md
1426
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-simple-condition-first.md
1382
1427
  */
1383
1428
  'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>
1384
1429
  /**
1385
1430
  * Prefer a simple comparison function for `Array#sort()`.
1386
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-simple-sort-comparator.md
1431
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-simple-sort-comparator.md
1387
1432
  */
1388
1433
  'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>
1434
+ /**
1435
+ * Prefer simplified conditions.
1436
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-simplified-conditions.md
1437
+ */
1438
+ 'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<[]>
1389
1439
  /**
1390
1440
  * Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
1391
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-single-array-predicate.md
1441
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-single-array-predicate.md
1392
1442
  */
1393
1443
  'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>
1394
1444
  /**
1395
1445
  * Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
1396
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-single-call.md
1446
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-single-call.md
1397
1447
  */
1398
1448
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>
1399
1449
  /**
1400
1450
  * Prefer a single object destructuring declaration per local const source.
1401
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-single-object-destructuring.md
1451
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-single-object-destructuring.md
1402
1452
  */
1403
1453
  'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>
1404
1454
  /**
1405
1455
  * Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
1406
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-single-replace.md
1456
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-single-replace.md
1407
1457
  */
1408
1458
  'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>
1409
1459
  /**
1410
1460
  * Prefer declaring variables in the smallest possible scope.
1411
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-smaller-scope.md
1461
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-smaller-scope.md
1412
1462
  */
1413
1463
  'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>
1414
1464
  /**
1415
1465
  * Prefer `String#split()` with a limit.
1416
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-split-limit.md
1466
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-split-limit.md
1417
1467
  */
1418
1468
  'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>
1419
1469
  /**
1420
1470
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
1421
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-spread.md
1471
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-spread.md
1422
1472
  */
1423
1473
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
1424
1474
  /**
1425
1475
  * Prefer `String#matchAll()` over `RegExp#exec()` loops.
1426
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-match-all.md
1476
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-string-match-all.md
1427
1477
  */
1428
1478
  'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>
1429
1479
  /**
1430
1480
  * Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
1431
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-pad-start-end.md
1481
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-string-pad-start-end.md
1432
1482
  */
1433
1483
  'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>
1434
1484
  /**
1435
1485
  * Prefer using the `String.raw` tag to avoid escaping `\`.
1436
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-raw.md
1486
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-string-raw.md
1437
1487
  */
1438
1488
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
1439
1489
  /**
1440
1490
  * Prefer `String#repeat()` for repeated whitespace.
1441
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-repeat.md
1491
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-string-repeat.md
1442
1492
  */
1443
1493
  'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>
1444
1494
  /**
1445
1495
  * Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
1446
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-replace-all.md
1496
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-string-replace-all.md
1447
1497
  */
1448
1498
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
1449
1499
  /**
1450
1500
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
1451
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-slice.md
1501
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-string-slice.md
1452
1502
  */
1453
1503
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
1454
1504
  /**
1455
1505
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()` and `String#indexOf() === 0`.
1456
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-starts-ends-with.md
1506
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-string-starts-ends-with.md
1457
1507
  */
1458
1508
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
1459
1509
  /**
1460
1510
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
1461
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-string-trim-start-end.md
1511
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-string-trim-start-end.md
1462
1512
  */
1463
1513
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
1464
1514
  /**
1465
1515
  * Prefer using `structuredClone` to create a deep clone.
1466
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-structured-clone.md
1516
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-structured-clone.md
1467
1517
  */
1468
1518
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
1469
1519
  /**
1470
1520
  * Prefer `switch` over multiple `else-if`.
1471
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-switch.md
1521
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-switch.md
1472
1522
  */
1473
1523
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
1474
1524
  /**
1475
1525
  * Prefer `Temporal` over `Date`.
1476
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-temporal.md
1526
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-temporal.md
1477
1527
  */
1478
1528
  'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>
1479
1529
  /**
1480
1530
  * Prefer ternary expressions over simple `if` statements that return or assign values.
1481
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-ternary.md
1531
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-ternary.md
1482
1532
  */
1483
1533
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
1484
1534
  /**
1485
1535
  * Prefer using `Element#toggleAttribute()` to toggle attributes.
1486
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-toggle-attribute.md
1536
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-toggle-attribute.md
1487
1537
  */
1488
1538
  'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>
1489
1539
  /**
1490
1540
  * Prefer top-level await over top-level promises and async function calls.
1491
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-top-level-await.md
1541
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-top-level-await.md
1492
1542
  */
1493
1543
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
1494
1544
  /**
1495
1545
  * Enforce throwing `TypeError` in type checking conditions.
1496
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-type-error.md
1546
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-type-error.md
1497
1547
  */
1498
1548
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
1499
1549
  /**
1500
1550
  * Require type literals to be last in union types.
1501
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-type-literal-last.md
1551
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-type-literal-last.md
1502
1552
  */
1503
1553
  'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>
1504
1554
  /**
1505
1555
  * Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over `atob()`, `btoa()`, and `Buffer` base64 conversions.
1506
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-uint8array-base64.md
1556
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-uint8array-base64.md
1507
1557
  */
1508
1558
  'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>
1509
1559
  /**
1510
1560
  * Prefer the unary minus operator over multiplying or dividing by `-1`.
1511
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-unary-minus.md
1561
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-unary-minus.md
1512
1562
  */
1513
1563
  'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>
1514
1564
  /**
1515
1565
  * Prefer Unicode code point escapes over legacy escape sequences.
1516
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-unicode-code-point-escapes.md
1566
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-unicode-code-point-escapes.md
1517
1567
  */
1518
1568
  'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>
1519
1569
  /**
1520
1570
  * Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
1521
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-url-can-parse.md
1571
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-url-can-parse.md
1522
1572
  */
1523
1573
  'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>
1524
1574
  /**
1525
1575
  * Prefer `URL#href` over stringifying a `URL`.
1526
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-url-href.md
1576
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-url-href.md
1527
1577
  */
1528
1578
  'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>
1529
1579
  /**
1530
1580
  * Prefer `URLSearchParams` over manually splitting query strings.
1531
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-url-search-parameters.md
1581
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-url-search-parameters.md
1532
1582
  */
1533
1583
  'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>
1534
1584
  /**
1535
1585
  * Prefer putting the condition in the while statement.
1536
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/prefer-while-loop-condition.md
1586
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/prefer-while-loop-condition.md
1537
1587
  */
1538
1588
  'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>
1539
1589
  /**
1540
1590
  * Renamed to `unicorn/name-replacements`.
1541
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
1591
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
1542
1592
  * @deprecated
1543
1593
  */
1544
1594
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>
1545
1595
  /**
1546
1596
  * Enforce consistent relative URL style.
1547
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/relative-url-style.md
1597
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/relative-url-style.md
1548
1598
  */
1549
1599
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
1550
1600
  /**
1551
1601
  * Enforce using the separator argument with `Array#join()`.
1552
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-array-join-separator.md
1602
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-array-join-separator.md
1553
1603
  */
1554
1604
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
1555
1605
  /**
1556
1606
  * Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
1557
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-array-sort-compare.md
1607
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-array-sort-compare.md
1558
1608
  */
1559
1609
  'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>
1560
1610
  /**
1561
1611
  * Require `CSS.escape()` for interpolated values in CSS selectors.
1562
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-css-escape.md
1612
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-css-escape.md
1563
1613
  */
1564
1614
  'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>
1565
1615
  /**
1566
1616
  * Require non-empty module attributes for imports and exports
1567
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-module-attributes.md
1617
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-module-attributes.md
1568
1618
  */
1569
1619
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>
1570
1620
  /**
1571
1621
  * Require non-empty specifier list in import and export statements.
1572
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-module-specifiers.md
1622
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-module-specifiers.md
1573
1623
  */
1574
1624
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>
1575
1625
  /**
1576
1626
  * Enforce using the digits argument with `Number#toFixed()`.
1577
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-number-to-fixed-digits-argument.md
1627
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-number-to-fixed-digits-argument.md
1578
1628
  */
1579
1629
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
1580
1630
  /**
1581
1631
  * Require passive event listeners for high-frequency events.
1582
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-passive-events.md
1632
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-passive-events.md
1583
1633
  */
1584
1634
  'unicorn/require-passive-events'?: Linter.RuleEntry<[]>
1585
1635
  /**
1586
1636
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
1587
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-post-message-target-origin.md
1637
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-post-message-target-origin.md
1588
1638
  */
1589
1639
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
1590
1640
  /**
1591
1641
  * Require boolean-returning Proxy traps to return booleans.
1592
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/require-proxy-trap-boolean-return.md
1642
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/require-proxy-trap-boolean-return.md
1593
1643
  */
1594
1644
  'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>
1595
1645
  /**
1596
1646
  * Enforce better string content.
1597
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/string-content.md
1647
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/string-content.md
1598
1648
  */
1599
1649
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
1600
1650
  /**
1601
1651
  * Enforce consistent brace style for `case` clauses.
1602
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/switch-case-braces.md
1652
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/switch-case-braces.md
1603
1653
  */
1604
1654
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
1605
1655
  /**
1606
1656
  * Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
1607
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/switch-case-break-position.md
1657
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/switch-case-break-position.md
1608
1658
  */
1609
1659
  'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>
1610
1660
  /**
1611
1661
  * Fix whitespace-insensitive template indentation.
1612
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/template-indent.md
1662
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/template-indent.md
1613
1663
  */
1614
1664
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
1615
1665
  /**
1616
1666
  * Enforce consistent case for text encoding identifiers.
1617
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/text-encoding-identifier-case.md
1667
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/text-encoding-identifier-case.md
1618
1668
  */
1619
1669
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>
1620
1670
  /**
1621
1671
  * Require `new` when creating an error.
1622
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/throw-new-error.md
1672
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/throw-new-error.md
1623
1673
  */
1624
1674
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
1625
1675
  /**
1626
1676
  * Limit the complexity of `try` blocks.
1627
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v69.0.0/docs/rules/try-complexity.md
1677
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v71.1.0/docs/rules/try-complexity.md
1628
1678
  */
1629
1679
  'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>
1630
1680
  }
@@ -1923,6 +1973,8 @@ type UnicornNoNegatedComparison = []|[{
1923
1973
  type UnicornNoNonFunctionVerbPrefix = []|[{
1924
1974
 
1925
1975
  verbs?: string[]
1976
+
1977
+ ignore?: unknown[]
1926
1978
  }]
1927
1979
  // ----- unicorn/no-null -----
1928
1980
  type UnicornNoNull = []|[{