@@ -235,114 +235,60 @@ Generated by [AVA](https://avajs.dev).
235235 `
236236
237237## Invalid #5
238- 1 | array.map(new Callback, thisArgument)
238+ 1 | array.map( foo as bar, (( thisArgument )), )
239239
240240> Error 1/1
241241
242242 `␊
243- > 1 | array.map(new Callback, thisArgument)␊
244- | ^^^^^^^^^^^^ Do not use the \`this\` argument in \`Array#map()\`.␊
243+ > 1 | array.map( foo as bar, (( thisArgument )), )␊
244+ | ^^^^^^^^^^^^ Do not use the \`this\` argument in \`Array#map()\`.␊
245245 ␊
246246 --------------------------------------------------------------------------------␊
247247 Suggestion 1/2: Remove the second argument.␊
248- 1 | array.map(new Callback )␊
248+ 1 | array.map( foo as bar, )␊
249249 ␊
250250 --------------------------------------------------------------------------------␊
251251 Suggestion 2/2: Use a bound function.␊
252- 1 | array.map((new Callback ).bind(thisArgument) )␊
252+ 1 | array.map( (foo as bar ).bind((( thisArgument ))), )␊
253253 `
254254
255255## Invalid #6
256- 1 | array.map(1, thisArgument)
256+ 1 | array.map( (( foo as bar )), (( thisArgument )), )
257257
258258> Error 1/1
259259
260260 `␊
261- > 1 | array.map(1, thisArgument)␊
262- | ^^^^^^^^^^^^ Do not use the \`this\` argument in \`Array#map()\`.␊
261+ > 1 | array.map( (( foo as bar )), (( thisArgument )), )␊
262+ | ^^^^^^^^^^^^ Do not use the \`this\` argument in \`Array#map()\`.␊
263263 ␊
264264 --------------------------------------------------------------------------------␊
265265 Suggestion 1/2: Remove the second argument.␊
266- 1 | array.map(1 )␊
266+ 1 | array.map( (( foo as bar )), )␊
267267 ␊
268268 --------------------------------------------------------------------------------␊
269269 Suggestion 2/2: Use a bound function.␊
270- 1 | array.map((1) .bind(thisArgument) )␊
270+ 1 | array.map( (( foo as bar )) .bind((( thisArgument ))), )␊
271271 `
272272
273273## Invalid #7
274- 1 | async () => array.map(await callback, thisArgument)
274+ 1 | array.map( (( 0, callback )), (( thisArgument )), )
275275
276276> Error 1/1
277277
278278 `␊
279- > 1 | async () => array.map(await callback, thisArgument)␊
280- | ^^^^^^^^^^^^ Do not use the \`this\` argument in \`Array#map()\`.␊
279+ > 1 | array.map( (( 0, callback )), (( thisArgument )), )␊
280+ | ^^^^^^^^^^^^ Do not use the \`this\` argument in \`Array#map()\`.␊
281281 ␊
282282 --------------------------------------------------------------------------------␊
283283 Suggestion 1/2: Remove the second argument.␊
284- 1 | async () => array.map(await callback)␊
284+ 1 | array.map( (( 0, callback )), )␊
285285 ␊
286286 --------------------------------------------------------------------------------␊
287287 Suggestion 2/2: Use a bound function.␊
288- 1 | async () => array.map((await callback) .bind(thisArgument) )␊
288+ 1 | array.map( (( 0, callback )) .bind((( thisArgument ))), )␊
289289 `
290290
291291## Invalid #8
292- 1 | array.map((new Callback), thisArgument)
293-
294- > Error 1/1
295-
296- `␊
297- > 1 | array.map((new Callback), thisArgument)␊
298- | ^^^^^^^^^^^^ Do not use the \`this\` argument in \`Array#map()\`.␊
299- ␊
300- --------------------------------------------------------------------------------␊
301- Suggestion 1/2: Remove the second argument.␊
302- 1 | array.map((new Callback))␊
303- ␊
304- --------------------------------------------------------------------------------␊
305- Suggestion 2/2: Use a bound function.␊
306- 1 | array.map((new Callback).bind(thisArgument))␊
307- `
308-
309- ## Invalid #9
310- 1 | array.map(new Callback(), thisArgument)
311-
312- > Error 1/1
313-
314- `␊
315- > 1 | array.map(new Callback(), thisArgument)␊
316- | ^^^^^^^^^^^^ Do not use the \`this\` argument in \`Array#map()\`.␊
317- ␊
318- --------------------------------------------------------------------------------␊
319- Suggestion 1/2: Remove the second argument.␊
320- 1 | array.map(new Callback())␊
321- ␊
322- --------------------------------------------------------------------------------␊
323- Suggestion 2/2: Use a bound function.␊
324- 1 | array.map(new Callback().bind(thisArgument))␊
325- `
326-
327- ## Invalid #10
328- 1 | array.map( (( callback )), (( thisArgument )),)
329-
330- > Error 1/1
331-
332- `␊
333- > 1 | array.map( (( callback )), (( thisArgument )),)␊
334- | ^^^^^^^^^^^^ Do not use the \`this\` argument in \`Array#map()\`.␊
335- ␊
336- --------------------------------------------------------------------------------␊
337- Suggestion 1/2: Remove the second argument.␊
338- 1 | array.map( (( callback )),)␊
339- ␊
340- --------------------------------------------------------------------------------␊
341- Suggestion 2/2: Use a bound function.␊
342- 1 | array.map( (( callback )).bind((( thisArgument ))),)␊
343- `
344-
345- ## Invalid #11
346292 1 | array.map((0, () => {}), thisArgument)
347293
348294> Error 1/1
@@ -360,7 +306,7 @@ Generated by [AVA](https://avajs.dev).
360306 1 | array.map((0, () => {}).bind(thisArgument))␊
361307 `
362308
363- ## Invalid #12
309+ ## Invalid #9
364310 1 | array.map(callback.bind(foo), thisArgument)
365311
366312> Error 1/1
0 commit comments