@w5s/eslint-config 3.3.1 → 3.3.3

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,725 +11,730 @@ declare module 'eslint' {
11
11
  export interface RuleOptions {
12
12
  /**
13
13
  * Improve regexes by making them shorter, consistent, and safer.
14
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/better-regex.md
14
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/better-regex.md
15
15
  */
16
16
  'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
17
17
  /**
18
18
  * Enforce a specific parameter name in catch clauses.
19
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/catch-error-name.md
19
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/catch-error-name.md
20
20
  */
21
21
  'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
22
22
  /**
23
23
  * Enforce consistent assertion style with `node:assert`.
24
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-assert.md
24
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-assert.md
25
25
  */
26
26
  'unicorn/consistent-assert'?: Linter.RuleEntry<[]>
27
27
  /**
28
28
  * Prefer passing `Date` directly to the constructor when cloning.
29
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-date-clone.md
29
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-date-clone.md
30
30
  */
31
31
  'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>
32
32
  /**
33
33
  * Use destructured variables over properties.
34
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-destructuring.md
34
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-destructuring.md
35
35
  */
36
36
  'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
37
37
  /**
38
38
  * Prefer consistent types when spreading a ternary in an array literal.
39
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-empty-array-spread.md
39
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-empty-array-spread.md
40
40
  */
41
41
  'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
42
42
  /**
43
43
  * Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
44
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-existence-index-check.md
44
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-existence-index-check.md
45
45
  */
46
46
  'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>
47
47
  /**
48
48
  * Move function definitions to the highest possible scope.
49
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/consistent-function-scoping.md
49
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/consistent-function-scoping.md
50
50
  */
51
51
  'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
52
52
  /**
53
53
  * Enforce correct `Error` subclassing.
54
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/custom-error-definition.md
54
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/custom-error-definition.md
55
55
  */
56
56
  'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
57
57
  /**
58
58
  * Enforce no spaces between braces.
59
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/empty-brace-spaces.md
59
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/empty-brace-spaces.md
60
60
  */
61
61
  'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
62
62
  /**
63
63
  * Enforce passing a `message` value when creating a built-in error.
64
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/error-message.md
64
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/error-message.md
65
65
  */
66
66
  'unicorn/error-message'?: Linter.RuleEntry<[]>
67
67
  /**
68
68
  * Require escape sequences to use uppercase or lowercase values.
69
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/escape-case.md
69
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/escape-case.md
70
70
  */
71
71
  'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>
72
72
  /**
73
73
  * Add expiration conditions to TODO comments.
74
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/expiring-todo-comments.md
74
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/expiring-todo-comments.md
75
75
  */
76
76
  'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
77
77
  /**
78
78
  * Enforce explicitly comparing the `length` or `size` property of a value.
79
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/explicit-length-check.md
79
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/explicit-length-check.md
80
80
  */
81
81
  'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
82
82
  /**
83
83
  * Enforce a case style for filenames.
84
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/filename-case.md
84
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/filename-case.md
85
85
  */
86
86
  'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
87
87
  /**
88
88
  * Enforce specific import styles per module.
89
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/import-style.md
89
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/import-style.md
90
90
  */
91
91
  'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
92
+ /**
93
+ * Prevent usage of variables from outside the scope of isolated functions.
94
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/isolated-functions.md
95
+ */
96
+ 'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>
92
97
  /**
93
98
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
94
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/new-for-builtins.md
99
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/new-for-builtins.md
95
100
  */
96
101
  'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
97
102
  /**
98
103
  * Enforce specifying rules to disable in `eslint-disable` comments.
99
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-abusive-eslint-disable.md
104
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-abusive-eslint-disable.md
100
105
  */
101
106
  'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
102
107
  /**
103
108
  * Disallow recursive access to `this` within getters and setters.
104
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-accessor-recursion.md
109
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-accessor-recursion.md
105
110
  */
106
111
  'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>
107
112
  /**
108
113
  * Disallow anonymous functions and classes as the default export.
109
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-anonymous-default-export.md
114
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-anonymous-default-export.md
110
115
  */
111
116
  'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
112
117
  /**
113
118
  * Prevent passing a function reference directly to iterator methods.
114
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-callback-reference.md
119
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-callback-reference.md
115
120
  */
116
121
  'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
117
122
  /**
118
123
  * Prefer `for…of` over the `forEach` method.
119
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-for-each.md
124
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-for-each.md
120
125
  */
121
126
  'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
122
127
  /**
123
128
  * Disallow using the `this` argument in array methods.
124
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-method-this-argument.md
129
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-method-this-argument.md
125
130
  */
126
131
  'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
127
132
  /**
128
133
  * Replaced by `unicorn/prefer-single-call` which covers more cases.
129
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-array-push-push
134
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
130
135
  * @deprecated
131
136
  */
132
137
  'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>
133
138
  /**
134
139
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
135
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reduce.md
140
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-reduce.md
136
141
  */
137
142
  'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
138
143
  /**
139
144
  * Prefer `Array#toReversed()` over `Array#reverse()`.
140
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-reverse.md
145
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-reverse.md
141
146
  */
142
147
  'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>
143
148
  /**
144
149
  * Prefer `Array#toSorted()` over `Array#sort()`.
145
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-array-sort.md
150
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-array-sort.md
146
151
  */
147
152
  'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>
148
153
  /**
149
154
  * Disallow member access from await expression.
150
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-expression-member.md
155
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-await-expression-member.md
151
156
  */
152
157
  'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
153
158
  /**
154
159
  * Disallow using `await` in `Promise` method parameters.
155
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-await-in-promise-methods.md
160
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-await-in-promise-methods.md
156
161
  */
157
162
  'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
158
163
  /**
159
164
  * Do not use leading/trailing space between `console.log` parameters.
160
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-console-spaces.md
165
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-console-spaces.md
161
166
  */
162
167
  'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
163
168
  /**
164
169
  * Do not use `document.cookie` directly.
165
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-document-cookie.md
170
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-document-cookie.md
166
171
  */
167
172
  'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
168
173
  /**
169
174
  * Disallow empty files.
170
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-empty-file.md
175
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-empty-file.md
171
176
  */
172
177
  'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
173
178
  /**
174
179
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
175
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-for-loop.md
180
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-for-loop.md
176
181
  */
177
182
  'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
178
183
  /**
179
184
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
180
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-hex-escape.md
185
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-hex-escape.md
181
186
  */
182
187
  'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
183
188
  /**
184
189
  * Disallow immediate mutation after variable assignment.
185
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-immediate-mutation.md
190
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-immediate-mutation.md
186
191
  */
187
192
  'unicorn/no-immediate-mutation'?: Linter.RuleEntry<[]>
188
193
  /**
189
194
  * Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
190
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-instanceof-array
195
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
191
196
  * @deprecated
192
197
  */
193
198
  'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
194
199
  /**
195
200
  * Disallow `instanceof` with built-in objects
196
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-instanceof-builtins.md
201
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-instanceof-builtins.md
197
202
  */
198
203
  'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>
199
204
  /**
200
205
  * Disallow invalid options in `fetch()` and `new Request()`.
201
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-fetch-options.md
206
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-invalid-fetch-options.md
202
207
  */
203
208
  'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
204
209
  /**
205
210
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
206
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-invalid-remove-event-listener.md
211
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-invalid-remove-event-listener.md
207
212
  */
208
213
  'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
209
214
  /**
210
215
  * Disallow identifiers starting with `new` or `class`.
211
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-keyword-prefix.md
216
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-keyword-prefix.md
212
217
  */
213
218
  'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
214
219
  /**
215
220
  * Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
216
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/deprecated-rules.md#no-length-as-slice-end
221
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
217
222
  * @deprecated
218
223
  */
219
224
  'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>
220
225
  /**
221
226
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
222
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-lonely-if.md
227
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-lonely-if.md
223
228
  */
224
229
  'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
225
230
  /**
226
231
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
227
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-magic-array-flat-depth.md
232
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-magic-array-flat-depth.md
228
233
  */
229
234
  'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
230
235
  /**
231
236
  * Disallow named usage of default import and export.
232
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-named-default.md
237
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-named-default.md
233
238
  */
234
239
  'unicorn/no-named-default'?: Linter.RuleEntry<[]>
235
240
  /**
236
241
  * Disallow negated conditions.
237
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negated-condition.md
242
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-negated-condition.md
238
243
  */
239
244
  'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
240
245
  /**
241
246
  * Disallow negated expression in equality check.
242
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-negation-in-equality-check.md
247
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-negation-in-equality-check.md
243
248
  */
244
249
  'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
245
250
  /**
246
251
  * Disallow nested ternary expressions.
247
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-nested-ternary.md
252
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-nested-ternary.md
248
253
  */
249
254
  'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
250
255
  /**
251
256
  * Disallow `new Array()`.
252
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-array.md
257
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-new-array.md
253
258
  */
254
259
  'unicorn/no-new-array'?: Linter.RuleEntry<[]>
255
260
  /**
256
261
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
257
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-new-buffer.md
262
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-new-buffer.md
258
263
  */
259
264
  'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
260
265
  /**
261
266
  * Disallow the use of the `null` literal.
262
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-null.md
267
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-null.md
263
268
  */
264
269
  'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
265
270
  /**
266
271
  * Disallow the use of objects as default parameters.
267
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-object-as-default-parameter.md
272
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-object-as-default-parameter.md
268
273
  */
269
274
  'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
270
275
  /**
271
276
  * Disallow `process.exit()`.
272
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-process-exit.md
277
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-process-exit.md
273
278
  */
274
279
  'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
275
280
  /**
276
281
  * Disallow passing single-element arrays to `Promise` methods.
277
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-single-promise-in-promise-methods.md
282
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-single-promise-in-promise-methods.md
278
283
  */
279
284
  'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
280
285
  /**
281
286
  * Disallow classes that only have static members.
282
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-static-only-class.md
287
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-static-only-class.md
283
288
  */
284
289
  'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
285
290
  /**
286
291
  * Disallow `then` property.
287
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-thenable.md
292
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-thenable.md
288
293
  */
289
294
  'unicorn/no-thenable'?: Linter.RuleEntry<[]>
290
295
  /**
291
296
  * Disallow assigning `this` to a variable.
292
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-this-assignment.md
297
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-this-assignment.md
293
298
  */
294
299
  'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
295
300
  /**
296
301
  * Disallow comparing `undefined` using `typeof`.
297
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-typeof-undefined.md
302
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-typeof-undefined.md
298
303
  */
299
304
  'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
300
305
  /**
301
306
  * Disallow using `1` as the `depth` argument of `Array#flat()`.
302
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-flat-depth.md
307
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-array-flat-depth.md
303
308
  */
304
309
  'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>
305
310
  /**
306
311
  * Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
307
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-array-splice-count.md
312
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-array-splice-count.md
308
313
  */
309
314
  'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>
310
315
  /**
311
316
  * Disallow awaiting non-promise values.
312
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-await.md
317
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-await.md
313
318
  */
314
319
  'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
315
320
  /**
316
321
  * Enforce the use of built-in methods instead of unnecessary polyfills.
317
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-polyfills.md
322
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-polyfills.md
318
323
  */
319
324
  'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
320
325
  /**
321
326
  * Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
322
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unnecessary-slice-end.md
327
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unnecessary-slice-end.md
323
328
  */
324
329
  'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>
325
330
  /**
326
331
  * Disallow unreadable array destructuring.
327
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-array-destructuring.md
332
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unreadable-array-destructuring.md
328
333
  */
329
334
  'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
330
335
  /**
331
336
  * Disallow unreadable IIFEs.
332
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unreadable-iife.md
337
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unreadable-iife.md
333
338
  */
334
339
  'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
335
340
  /**
336
341
  * Disallow unused object properties.
337
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-unused-properties.md
342
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-unused-properties.md
338
343
  */
339
344
  'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
340
345
  /**
341
346
  * Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
342
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-collection-argument.md
347
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-collection-argument.md
343
348
  */
344
349
  'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>
345
350
  /**
346
351
  * Disallow unnecessary `Error.captureStackTrace(…)`.
347
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-error-capture-stack-trace.md
352
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-error-capture-stack-trace.md
348
353
  */
349
354
  'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>
350
355
  /**
351
356
  * Disallow useless fallback when spreading in object literals.
352
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-fallback-in-spread.md
357
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-fallback-in-spread.md
353
358
  */
354
359
  'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
355
360
  /**
356
361
  * Disallow useless array length check.
357
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-length-check.md
362
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-length-check.md
358
363
  */
359
364
  'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
360
365
  /**
361
366
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
362
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-promise-resolve-reject.md
367
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-promise-resolve-reject.md
363
368
  */
364
369
  'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
365
370
  /**
366
371
  * Disallow unnecessary spread.
367
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-spread.md
372
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-spread.md
368
373
  */
369
374
  'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
370
375
  /**
371
376
  * Disallow useless case in switch statements.
372
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-switch-case.md
377
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-switch-case.md
373
378
  */
374
379
  'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
375
380
  /**
376
381
  * Disallow useless `undefined`.
377
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-useless-undefined.md
382
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-useless-undefined.md
378
383
  */
379
384
  'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
380
385
  /**
381
386
  * Disallow number literals with zero fractions or dangling dots.
382
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/no-zero-fractions.md
387
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/no-zero-fractions.md
383
388
  */
384
389
  'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
385
390
  /**
386
391
  * Enforce proper case for numeric literals.
387
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/number-literal-case.md
392
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/number-literal-case.md
388
393
  */
389
394
  'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>
390
395
  /**
391
396
  * Enforce the style of numeric separators by correctly grouping digits.
392
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/numeric-separators-style.md
397
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/numeric-separators-style.md
393
398
  */
394
399
  'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
395
400
  /**
396
401
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
397
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-add-event-listener.md
402
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-add-event-listener.md
398
403
  */
399
404
  'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
400
405
  /**
401
406
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
402
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-find.md
407
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-find.md
403
408
  */
404
409
  'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
405
410
  /**
406
411
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
407
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat.md
412
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-flat.md
408
413
  */
409
414
  'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
410
415
  /**
411
416
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
412
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-flat-map.md
417
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-flat-map.md
413
418
  */
414
419
  'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
415
420
  /**
416
421
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
417
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-index-of.md
422
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-index-of.md
418
423
  */
419
424
  'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
420
425
  /**
421
426
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
422
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-array-some.md
427
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-array-some.md
423
428
  */
424
429
  'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
425
430
  /**
426
431
  * Prefer `.at()` method for index access and `String#charAt()`.
427
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-at.md
432
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-at.md
428
433
  */
429
434
  'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
430
435
  /**
431
436
  * Prefer `BigInt` literals over the constructor.
432
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-bigint-literals.md
437
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-bigint-literals.md
433
438
  */
434
439
  'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>
435
440
  /**
436
441
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
437
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-blob-reading-methods.md
442
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-blob-reading-methods.md
438
443
  */
439
444
  'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
440
445
  /**
441
446
  * Prefer class field declarations over `this` assignments in constructors.
442
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-class-fields.md
447
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-class-fields.md
443
448
  */
444
449
  'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>
445
450
  /**
446
451
  * Prefer using `Element#classList.toggle()` to toggle class names.
447
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-classlist-toggle.md
452
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-classlist-toggle.md
448
453
  */
449
454
  'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>
450
455
  /**
451
456
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
452
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-code-point.md
457
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-code-point.md
453
458
  */
454
459
  'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
455
460
  /**
456
461
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
457
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-date-now.md
462
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-date-now.md
458
463
  */
459
464
  'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
460
465
  /**
461
466
  * Prefer default parameters over reassignment.
462
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-default-parameters.md
467
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-default-parameters.md
463
468
  */
464
469
  'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
465
470
  /**
466
471
  * Prefer `Node#append()` over `Node#appendChild()`.
467
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-append.md
472
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-append.md
468
473
  */
469
474
  'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
470
475
  /**
471
476
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
472
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-dataset.md
477
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-dataset.md
473
478
  */
474
479
  'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
475
480
  /**
476
481
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
477
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-remove.md
482
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-remove.md
478
483
  */
479
484
  'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
480
485
  /**
481
486
  * Prefer `.textContent` over `.innerText`.
482
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-dom-node-text-content.md
487
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-dom-node-text-content.md
483
488
  */
484
489
  'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
485
490
  /**
486
491
  * Prefer `EventTarget` over `EventEmitter`.
487
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-event-target.md
492
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-event-target.md
488
493
  */
489
494
  'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
490
495
  /**
491
496
  * Prefer `export…from` when re-exporting.
492
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-export-from.md
497
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-export-from.md
493
498
  */
494
499
  'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
495
500
  /**
496
501
  * Prefer `globalThis` over `window`, `self`, and `global`.
497
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-global-this.md
502
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-global-this.md
498
503
  */
499
504
  'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>
500
505
  /**
501
506
  * Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
502
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-import-meta-properties.md
507
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-import-meta-properties.md
503
508
  */
504
509
  'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>
505
510
  /**
506
511
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
507
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-includes.md
512
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-includes.md
508
513
  */
509
514
  'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
510
515
  /**
511
516
  * Prefer reading a JSON file as a buffer.
512
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-json-parse-buffer.md
517
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-json-parse-buffer.md
513
518
  */
514
519
  'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
515
520
  /**
516
521
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
517
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-keyboard-event-key.md
522
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-keyboard-event-key.md
518
523
  */
519
524
  'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
520
525
  /**
521
526
  * Prefer using a logical operator over a ternary.
522
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-logical-operator-over-ternary.md
527
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-logical-operator-over-ternary.md
523
528
  */
524
529
  'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
525
530
  /**
526
531
  * Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
527
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-min-max.md
532
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-math-min-max.md
528
533
  */
529
534
  'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>
530
535
  /**
531
536
  * Enforce the use of `Math.trunc` instead of bitwise operators.
532
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-math-trunc.md
537
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-math-trunc.md
533
538
  */
534
539
  'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
535
540
  /**
536
541
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
537
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-dom-apis.md
542
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-modern-dom-apis.md
538
543
  */
539
544
  'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
540
545
  /**
541
546
  * Prefer modern `Math` APIs over legacy patterns.
542
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-modern-math-apis.md
547
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-modern-math-apis.md
543
548
  */
544
549
  'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
545
550
  /**
546
551
  * Prefer JavaScript modules (ESM) over CommonJS.
547
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-module.md
552
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-module.md
548
553
  */
549
554
  'unicorn/prefer-module'?: Linter.RuleEntry<[]>
550
555
  /**
551
556
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
552
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-native-coercion-functions.md
557
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-native-coercion-functions.md
553
558
  */
554
559
  'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
555
560
  /**
556
561
  * Prefer negative index over `.length - index` when possible.
557
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-negative-index.md
562
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-negative-index.md
558
563
  */
559
564
  'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
560
565
  /**
561
566
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
562
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-node-protocol.md
567
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-node-protocol.md
563
568
  */
564
569
  'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
565
570
  /**
566
571
  * Prefer `Number` static properties over global ones.
567
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-number-properties.md
572
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-number-properties.md
568
573
  */
569
574
  'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
570
575
  /**
571
576
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
572
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-object-from-entries.md
577
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-object-from-entries.md
573
578
  */
574
579
  'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
575
580
  /**
576
581
  * Prefer omitting the `catch` binding parameter.
577
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-optional-catch-binding.md
582
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-optional-catch-binding.md
578
583
  */
579
584
  'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
580
585
  /**
581
586
  * Prefer borrowing methods from the prototype instead of the instance.
582
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-prototype-methods.md
587
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-prototype-methods.md
583
588
  */
584
589
  'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
585
590
  /**
586
591
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
587
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-query-selector.md
592
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-query-selector.md
588
593
  */
589
594
  'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
590
595
  /**
591
596
  * Prefer `Reflect.apply()` over `Function#apply()`.
592
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-reflect-apply.md
597
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-reflect-apply.md
593
598
  */
594
599
  'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
595
600
  /**
596
601
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
597
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-regexp-test.md
602
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-regexp-test.md
598
603
  */
599
604
  'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
600
605
  /**
601
606
  * Prefer `Response.json()` over `new Response(JSON.stringify())`.
602
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-response-static-json.md
607
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-response-static-json.md
603
608
  */
604
609
  'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>
605
610
  /**
606
611
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
607
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-has.md
612
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-set-has.md
608
613
  */
609
614
  'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
610
615
  /**
611
616
  * Prefer using `Set#size` instead of `Array#length`.
612
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-set-size.md
617
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-set-size.md
613
618
  */
614
619
  'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
615
620
  /**
616
621
  * Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
617
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-single-call.md
622
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-single-call.md
618
623
  */
619
624
  'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>
620
625
  /**
621
626
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
622
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-spread.md
627
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-spread.md
623
628
  */
624
629
  'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
625
630
  /**
626
631
  * Prefer using the `String.raw` tag to avoid escaping `\`.
627
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-raw.md
632
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-raw.md
628
633
  */
629
634
  'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
630
635
  /**
631
636
  * Prefer `String#replaceAll()` over regex searches with the global flag.
632
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-replace-all.md
637
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-replace-all.md
633
638
  */
634
639
  'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
635
640
  /**
636
641
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
637
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-slice.md
642
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-slice.md
638
643
  */
639
644
  'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
640
645
  /**
641
646
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
642
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-starts-ends-with.md
647
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-starts-ends-with.md
643
648
  */
644
649
  'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
645
650
  /**
646
651
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
647
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-string-trim-start-end.md
652
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-string-trim-start-end.md
648
653
  */
649
654
  'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
650
655
  /**
651
656
  * Prefer using `structuredClone` to create a deep clone.
652
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-structured-clone.md
657
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-structured-clone.md
653
658
  */
654
659
  'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
655
660
  /**
656
661
  * Prefer `switch` over multiple `else-if`.
657
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-switch.md
662
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-switch.md
658
663
  */
659
664
  'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
660
665
  /**
661
666
  * Prefer ternary expressions over simple `if-else` statements.
662
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-ternary.md
667
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-ternary.md
663
668
  */
664
669
  'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
665
670
  /**
666
671
  * Prefer top-level await over top-level promises and async function calls.
667
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-top-level-await.md
672
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-top-level-await.md
668
673
  */
669
674
  'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
670
675
  /**
671
676
  * Enforce throwing `TypeError` in type checking conditions.
672
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prefer-type-error.md
677
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prefer-type-error.md
673
678
  */
674
679
  'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
675
680
  /**
676
681
  * Prevent abbreviations.
677
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/prevent-abbreviations.md
682
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/prevent-abbreviations.md
678
683
  */
679
684
  'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
680
685
  /**
681
686
  * Enforce consistent relative URL style.
682
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/relative-url-style.md
687
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/relative-url-style.md
683
688
  */
684
689
  'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
685
690
  /**
686
691
  * Enforce using the separator argument with `Array#join()`.
687
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-array-join-separator.md
692
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-array-join-separator.md
688
693
  */
689
694
  'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
690
695
  /**
691
696
  * Require non-empty module attributes for imports and exports
692
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-attributes.md
697
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-module-attributes.md
693
698
  */
694
699
  'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>
695
700
  /**
696
701
  * Require non-empty specifier list in import and export statements.
697
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-module-specifiers.md
702
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-module-specifiers.md
698
703
  */
699
704
  'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>
700
705
  /**
701
706
  * Enforce using the digits argument with `Number#toFixed()`.
702
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-number-to-fixed-digits-argument.md
707
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-number-to-fixed-digits-argument.md
703
708
  */
704
709
  'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
705
710
  /**
706
711
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
707
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/require-post-message-target-origin.md
712
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/require-post-message-target-origin.md
708
713
  */
709
714
  'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
710
715
  /**
711
716
  * Enforce better string content.
712
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/string-content.md
717
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/string-content.md
713
718
  */
714
719
  'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
715
720
  /**
716
721
  * Enforce consistent brace style for `case` clauses.
717
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/switch-case-braces.md
722
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/switch-case-braces.md
718
723
  */
719
724
  'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
720
725
  /**
721
726
  * Fix whitespace-insensitive template indentation.
722
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/template-indent.md
727
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/template-indent.md
723
728
  */
724
729
  'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
725
730
  /**
726
731
  * Enforce consistent case for text encoding identifiers.
727
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/text-encoding-identifier-case.md
732
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/text-encoding-identifier-case.md
728
733
  */
729
734
  'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>
730
735
  /**
731
736
  * Require `new` when creating an error.
732
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v62.0.0/docs/rules/throw-new-error.md
737
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v63.0.0/docs/rules/throw-new-error.md
733
738
  */
734
739
  'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
735
740
  }
@@ -793,6 +798,15 @@ interface _UnicornImportStyle_ModuleStyles {
793
798
  interface _UnicornImportStyle_BooleanObject {
794
799
  [k: string]: boolean | undefined
795
800
  }
801
+ // ----- unicorn/isolated-functions -----
802
+ type UnicornIsolatedFunctions = []|[{
803
+ overrideGlobals?: {
804
+ [k: string]: (boolean | ("readonly" | "writable" | "writeable" | "off")) | undefined
805
+ }
806
+ functions?: string[]
807
+ selectors?: string[]
808
+ comments?: string[]
809
+ }]
796
810
  // ----- unicorn/no-array-reduce -----
797
811
  type UnicornNoArrayReduce = []|[{
798
812
  allowSimpleOperations?: boolean