@@ -20,16 +20,14 @@ source: crates/oxc_linter/src/tester.rs
20
20
1 │ foo (... [a ])
21
21
· ───
22
22
╰────
23
- help : This function accepts a rest parameter, it's unnecessary to create a new array and then spread it. Instead, supply the arguments directly.
24
- For example, replace `foo(...[1, 2, 3])` with `foo(1, 2, 3)`.
23
+ help : Pass arguments directly instead of spreading an array .
25
24
26
25
⚠ eslint - plugin - unicorn (no - useless - spread ): Using a spread operator here creates a new array unnecessarily .
27
26
╭─[no_useless_spread .tsx :1 :9 ]
28
27
1 │ new Foo (... [a ])
29
28
· ───
30
29
╰────
31
- help: This function accepts a rest parameter, it's unnecessary to create a new array and then spread it. Instead, supply the arguments directly.
32
- For example, replace `foo(...[1, 2, 3])` with `foo(1, 2, 3)`.
30
+ help : Pass arguments directly instead of spreading an array .
33
31
34
32
⚠ eslint - plugin - unicorn (no - useless - spread ): Using a spread operator here creates a new array unnecessarily .
35
33
╭─[no_useless_spread .tsx :1 :16 ]
@@ -50,16 +48,14 @@ source: crates/oxc_linter/src/tester.rs
50
48
1 │ foo (... [a ,])
51
49
· ───
52
50
╰────
53
- help : This function accepts a rest parameter, it's unnecessary to create a new array and then spread it. Instead, supply the arguments directly.
54
- For example, replace `foo(...[1, 2, 3])` with `foo(1, 2, 3)`.
51
+ help : Pass arguments directly instead of spreading an array .
55
52
56
53
⚠ eslint - plugin - unicorn (no - useless - spread ): Using a spread operator here creates a new array unnecessarily .
57
54
╭─[no_useless_spread .tsx :1 :9 ]
58
55
1 │ new Foo (... [a ,])
59
56
· ───
60
57
╰────
61
- help: This function accepts a rest parameter, it's unnecessary to create a new array and then spread it. Instead, supply the arguments directly.
62
- For example, replace `foo(...[1, 2, 3])` with `foo(1, 2, 3)`.
58
+ help : Pass arguments directly instead of spreading an array .
63
59
64
60
⚠ eslint - plugin - unicorn (no - useless - spread ): Using a spread operator here creates a new array unnecessarily .
65
61
╭─[no_useless_spread .tsx :1 :16 ]
@@ -80,16 +76,14 @@ source: crates/oxc_linter/src/tester.rs
80
76
1 │ foo (... [a ,],)
81
77
· ───
82
78
╰────
83
- help : This function accepts a rest parameter, it's unnecessary to create a new array and then spread it. Instead, supply the arguments directly.
84
- For example, replace `foo(...[1, 2, 3])` with `foo(1, 2, 3)`.
79
+ help : Pass arguments directly instead of spreading an array .
85
80
86
81
⚠ eslint - plugin - unicorn (no - useless - spread ): Using a spread operator here creates a new array unnecessarily .
87
82
╭─[no_useless_spread .tsx :1 :9 ]
88
83
1 │ new Foo (... [a ,],)
89
84
· ───
90
85
╰────
91
- help: This function accepts a rest parameter, it's unnecessary to create a new array and then spread it. Instead, supply the arguments directly.
92
- For example, replace `foo(...[1, 2, 3])` with `foo(1, 2, 3)`.
86
+ help : Pass arguments directly instead of spreading an array .
93
87
94
88
⚠ eslint - plugin - unicorn (no - useless - spread ): Using a spread operator here creates a new array unnecessarily .
95
89
╭─[no_useless_spread .tsx :1 :16 ]
@@ -110,16 +104,14 @@ source: crates/oxc_linter/src/tester.rs
110
104
1 │ foo (... (( [a ] )))
111
105
· ───
112
106
╰────
113
- help : This function accepts a rest parameter, it's unnecessary to create a new array and then spread it. Instead, supply the arguments directly.
114
- For example, replace `foo(...[1, 2, 3])` with `foo(1, 2, 3)`.
107
+ help : Pass arguments directly instead of spreading an array .
115
108
116
109
⚠ eslint - plugin - unicorn (no - useless - spread ): Using a spread operator here creates a new array unnecessarily .
117
110
╭─[no_useless_spread .tsx :1 :9 ]
118
111
1 │ new Foo (... (( [a ] )))
119
112
· ───
120
113
╰────
121
- help: This function accepts a rest parameter, it's unnecessary to create a new array and then spread it. Instead, supply the arguments directly.
122
- For example, replace `foo(...[1, 2, 3])` with `foo(1, 2, 3)`.
114
+ help : Pass arguments directly instead of spreading an array .
123
115
124
116
⚠ eslint - plugin - unicorn (no - useless - spread ): Using a spread operator here creates a new array unnecessarily .
125
117
╭─[no_useless_spread .tsx :1 :16 ]
@@ -140,16 +132,14 @@ source: crates/oxc_linter/src/tester.rs
140
132
1 │ foo (... [])
141
133
· ───
142
134
╰────
143
- help : This function accepts a rest parameter, it's unnecessary to create a new array and then spread it. Instead, supply the arguments directly.
144
- For example, replace `foo(...[1, 2, 3])` with `foo(1, 2, 3)`.
135
+ help : Pass arguments directly instead of spreading an array .
145
136
146
137
⚠ eslint - plugin - unicorn (no - useless - spread ): Using a spread operator here creates a new array unnecessarily .
147
138
╭─[no_useless_spread .tsx :1 :9 ]
148
139
1 │ new Foo (... [])
149
140
· ───
150
141
╰────
151
- help: This function accepts a rest parameter, it's unnecessary to create a new array and then spread it. Instead, supply the arguments directly.
152
- For example, replace `foo(...[1, 2, 3])` with `foo(1, 2, 3)`.
142
+ help : Pass arguments directly instead of spreading an array .
153
143
154
144
⚠ eslint - plugin - unicorn (no - useless - spread ): Using a spread operator here creates a new array unnecessarily .
155
145
╭─[no_useless_spread .tsx :1 :16 ]
@@ -163,16 +153,14 @@ source: crates/oxc_linter/src/tester.rs
163
153
1 │ foo (... [,])
164
154
· ───
165
155
╰────
166
- help: This function accepts a rest parameter, it's unnecessary to create a new array and then spread it. Instead, supply the arguments directly.
167
- For example, replace `foo(...[1, 2, 3])` with `foo(1, 2, 3)`.
156
+ help : Pass arguments directly instead of spreading an array .
168
157
169
158
⚠ eslint - plugin - unicorn (no - useless - spread ): Using a spread operator here creates a new array unnecessarily .
170
159
╭─[no_useless_spread .tsx :1 :9 ]
171
160
1 │ new Foo (... [,])
172
161
· ───
173
162
╰────
174
- help: This function accepts a rest parameter, it's unnecessary to create a new array and then spread it. Instead, supply the arguments directly.
175
- For example, replace `foo(...[1, 2, 3])` with `foo(1, 2, 3)`.
163
+ help : Pass arguments directly instead of spreading an array .
176
164
177
165
⚠ eslint - plugin - unicorn (no - useless - spread ): Using a spread operator here creates a new array unnecessarily .
178
166
╭─[no_useless_spread .tsx :1 :16 ]
@@ -186,16 +174,14 @@ source: crates/oxc_linter/src/tester.rs
186
174
1 │ foo (... [,,])
187
175
· ───
188
176
╰────
189
- help: This function accepts a rest parameter, it's unnecessary to create a new array and then spread it. Instead, supply the arguments directly.
190
- For example, replace `foo(...[1, 2, 3])` with `foo(1, 2, 3)`.
177
+ help : Pass arguments directly instead of spreading an array .
191
178
192
179
⚠ eslint - plugin - unicorn (no - useless - spread ): Using a spread operator here creates a new array unnecessarily .
193
180
╭─[no_useless_spread .tsx :1 :9 ]
194
181
1 │ new Foo (... [,,])
195
182
· ───
196
183
╰────
197
- help: This function accepts a rest parameter, it's unnecessary to create a new array and then spread it. Instead, supply the arguments directly.
198
- For example, replace `foo(...[1, 2, 3])` with `foo(1, 2, 3)`.
184
+ help : Pass arguments directly instead of spreading an array .
199
185
200
186
⚠ eslint - plugin - unicorn (no - useless - spread ): Using a spread operator here creates a new array unnecessarily .
201
187
╭─[no_useless_spread .tsx :1 :16 ]
@@ -209,16 +195,14 @@ source: crates/oxc_linter/src/tester.rs
209
195
1 │ foo (... [a , , b ,])
210
196
· ───
211
197
╰────
212
- help: This function accepts a rest parameter, it's unnecessary to create a new array and then spread it. Instead, supply the arguments directly.
213
- For example, replace `foo(...[1, 2, 3])` with `foo(1, 2, 3)`.
198
+ help : Pass arguments directly instead of spreading an array .
214
199
215
200
⚠ eslint - plugin - unicorn (no - useless - spread ): Using a spread operator here creates a new array unnecessarily .
216
201
╭─[no_useless_spread .tsx :1 :9 ]
217
202
1 │ new Foo (... [a , , b ,])
218
203
· ───
219
204
╰────
220
- help: This function accepts a rest parameter, it's unnecessary to create a new array and then spread it. Instead, supply the arguments directly.
221
- For example, replace `foo(...[1, 2, 3])` with `foo(1, 2, 3)`.
205
+ help : Pass arguments directly instead of spreading an array .
222
206
223
207
⚠ eslint - plugin - unicorn (no - useless - spread ): Using a spread operator here creates a new array unnecessarily .
224
208
╭─[no_useless_spread .tsx :1 :16 ]
@@ -232,24 +216,21 @@ source: crates/oxc_linter/src/tester.rs
232
216
1 │ foo (... [a , , b ,],)
233
217
· ───
234
218
╰────
235
- help: This function accepts a rest parameter, it's unnecessary to create a new array and then spread it. Instead, supply the arguments directly.
236
- For example, replace `foo(...[1, 2, 3])` with `foo(1, 2, 3)`.
219
+ help : Pass arguments directly instead of spreading an array .
237
220
238
221
⚠ eslint - plugin - unicorn (no - useless - spread ): Using a spread operator here creates a new array unnecessarily .
239
222
╭─[no_useless_spread .tsx :1 :9 ]
240
223
1 │ new Foo (... [a , , b ,],)
241
224
· ───
242
225
╰────
243
- help: This function accepts a rest parameter, it's unnecessary to create a new array and then spread it. Instead, supply the arguments directly.
244
- For example, replace `foo(...[1, 2, 3])` with `foo(1, 2, 3)`.
226
+ help : Pass arguments directly instead of spreading an array .
245
227
246
228
⚠ eslint - plugin - unicorn (no - useless - spread ): Using a spread operator here creates a new array unnecessarily .
247
229
╭─[no_useless_spread .tsx :1 :5 ]
248
230
1 │ foo (... [,, ,(( a )), ,,(0 , b ), ,,])
249
231
· ───
250
232
╰────
251
- help: This function accepts a rest parameter, it's unnecessary to create a new array and then spread it. Instead, supply the arguments directly.
252
- For example, replace `foo(...[1, 2, 3])` with `foo(1, 2, 3)`.
233
+ help : Pass arguments directly instead of spreading an array .
253
234
254
235
⚠ eslint - plugin - unicorn (no - useless - spread ): Using a spread operator here creates a new array unnecessarily .
255
236
╭─[no_useless_spread .tsx :1 :19 ]
@@ -270,16 +251,14 @@ source: crates/oxc_linter/src/tester.rs
270
251
1 │ foo (a , ... [a , b ])
271
252
· ───
272
253
╰────
273
- help : This function accepts a rest parameter, it's unnecessary to create a new array and then spread it. Instead, supply the arguments directly.
274
- For example, replace `foo(...[1, 2, 3])` with `foo(1, 2, 3)`.
254
+ help : Pass arguments directly instead of spreading an array .
275
255
276
256
⚠ eslint - plugin - unicorn (no - useless - spread ): Using a spread operator here creates a new array unnecessarily .
277
257
╭─[no_useless_spread .tsx :1 :12 ]
278
258
1 │ new Foo (a , ... [a , b ])
279
259
· ───
280
260
╰────
281
- help: This function accepts a rest parameter, it's unnecessary to create a new array and then spread it. Instead, supply the arguments directly.
282
- For example, replace `foo(...[1, 2, 3])` with `foo(1, 2, 3)`.
261
+ help : Pass arguments directly instead of spreading an array .
283
262
284
263
⚠ eslint - plugin - unicorn (no - useless - spread ): Using a spread operator here creates a new array unnecessarily .
285
264
╭─[no_useless_spread .tsx :1 :16 ]
@@ -300,16 +279,14 @@ source: crates/oxc_linter/src/tester.rs
300
279
1 │ foo (... [a , b ], b ,)
301
280
· ───
302
281
╰────
303
- help : This function accepts a rest parameter, it's unnecessary to create a new array and then spread it. Instead, supply the arguments directly.
304
- For example, replace `foo(...[1, 2, 3])` with `foo(1, 2, 3)`.
282
+ help : Pass arguments directly instead of spreading an array .
305
283
306
284
⚠ eslint - plugin - unicorn (no - useless - spread ): Using a spread operator here creates a new array unnecessarily .
307
285
╭─[no_useless_spread .tsx :1 :9 ]
308
286
1 │ new Foo (... [a , b ], b ,)
309
287
· ───
310
288
╰────
311
- help: This function accepts a rest parameter, it's unnecessary to create a new array and then spread it. Instead, supply the arguments directly.
312
- For example, replace `foo(...[1, 2, 3])` with `foo(1, 2, 3)`.
289
+ help : Pass arguments directly instead of spreading an array .
313
290
314
291
⚠ eslint - plugin - unicorn (no - useless - spread ): Using a spread operator here creates a new array unnecessarily .
315
292
╭─[no_useless_spread .tsx :1 :19 ]
@@ -330,16 +307,14 @@ source: crates/oxc_linter/src/tester.rs
330
307
1 │ foo (a , ... [a , b ], b ,)
331
308
· ───
332
309
╰────
333
- help : This function accepts a rest parameter, it's unnecessary to create a new array and then spread it. Instead, supply the arguments directly.
334
- For example, replace `foo(...[1, 2, 3])` with `foo(1, 2, 3)`.
310
+ help : Pass arguments directly instead of spreading an array .
335
311
336
312
⚠ eslint - plugin - unicorn (no - useless - spread ): Using a spread operator here creates a new array unnecessarily .
337
313
╭─[no_useless_spread .tsx :1 :12 ]
338
314
1 │ new Foo (a , ... [a , b ], b ,)
339
315
· ───
340
316
╰────
341
- help: This function accepts a rest parameter, it's unnecessary to create a new array and then spread it. Instead, supply the arguments directly.
342
- For example, replace `foo(...[1, 2, 3])` with `foo(1, 2, 3)`.
317
+ help : Pass arguments directly instead of spreading an array .
343
318
344
319
⚠ eslint - plugin - unicorn (no - useless - spread ): Using a spread operator here creates a new object unnecessarily .
345
320
╭─[no_useless_spread .tsx :1 :8 ]
@@ -374,16 +349,14 @@ source: crates/oxc_linter/src/tester.rs
374
349
1 │ Promise .all (... [... iterable ])
375
350
· ───
376
351
╰────
377
- help: This function accepts a rest parameter, it's unnecessary to create a new array and then spread it. Instead, supply the arguments directly.
378
- For example, replace `foo(...[1, 2, 3])` with `foo(1, 2, 3)`.
352
+ help : Pass arguments directly instead of spreading an array .
379
353
380
354
⚠ eslint - plugin - unicorn (no - useless - spread ): Using a spread operator here creates a new array unnecessarily .
381
355
╭─[no_useless_spread .tsx :1 :9 ]
382
356
1 │ new Map (... [... iterable ])
383
357
· ───
384
358
╰────
385
- help: This function accepts a rest parameter, it's unnecessary to create a new array and then spread it. Instead, supply the arguments directly.
386
- For example, replace `foo(...[1, 2, 3])` with `foo(1, 2, 3)`.
359
+ help : Pass arguments directly instead of spreading an array .
387
360
388
361
⚠ eslint - plugin - unicorn (no - useless - spread ): ` Map` accepts an iterable , so it ' s unnecessary to convert the iterable to an array.
389
362
╭─[no_useless_spread .tsx :1 :22 ]
@@ -707,8 +680,7 @@ source: crates/oxc_linter/src/tester.rs
707
680
· ───
708
681
4 │ }
709
682
╰────
710
- help : This function accepts a rest parameter, it's unnecessary to create a new array and then spread it. Instead, supply the arguments directly.
711
- For example, replace `foo(...[1, 2, 3])` with `foo(1, 2, 3)`.
683
+ help : Pass arguments directly instead of spreading an array .
712
684
713
685
⚠ eslint - plugin - unicorn (no - useless - spread ): Using a spread operator here creates a new array unnecessarily .
714
686
╭─[no_useless_spread .tsx :1 :2 ]
0 commit comments