@kazupon/eslint-config 0.13.3 → 0.14.1

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