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