@w5s/eslint-config 3.3.3 → 3.3.4

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