@@ -214,7 +214,28 @@ Generated by [AVA](https://avajs.dev).
214
214
| ^^^^^^^^^^^^ Do not use the \`this\` argument in \`Array.from()\`.␊
215
215
`
216
216
217
- ## invalid(11): array.map(() => {}, thisArgument,)
217
+ ## invalid(11): Array.fromAsync(iterableOrArrayLike, () => {}, thisArgument)
218
+
219
+ > Input
220
+
221
+ `␊
222
+ 1 | Array.fromAsync(iterableOrArrayLike, () => {}, thisArgument)␊
223
+ `
224
+
225
+ > Output
226
+
227
+ `␊
228
+ 1 | Array.fromAsync(iterableOrArrayLike, () => {})␊
229
+ `
230
+
231
+ > Error 1/1
232
+
233
+ `␊
234
+ > 1 | Array.fromAsync(iterableOrArrayLike, () => {}, thisArgument)␊
235
+ | ^^^^^^^^^^^^ Do not use the \`this\` argument in \`Array.fromAsync()\`.␊
236
+ `
237
+
238
+ ## invalid(12): array.map(() => {}, thisArgument,)
218
239
219
240
> Input
220
241
@@ -235,7 +256,7 @@ Generated by [AVA](https://avajs.dev).
235
256
| ^^^^^^^^^^^^ Do not use the \`this\` argument in \`Array#map()\`.␊
236
257
`
237
258
238
- ## invalid(12 ): array.map(() => {}, (0, thisArgument),)
259
+ ## invalid(13 ): array.map(() => {}, (0, thisArgument),)
239
260
240
261
> Input
241
262
@@ -256,7 +277,7 @@ Generated by [AVA](https://avajs.dev).
256
277
| ^^^^^^^^^^^^^^^ Do not use the \`this\` argument in \`Array#map()\`.␊
257
278
`
258
279
259
- ## invalid(13 ): Array.from(iterableOrArrayLike, () => {}, thisArgument,)
280
+ ## invalid(14 ): Array.from(iterableOrArrayLike, () => {}, thisArgument,)
260
281
261
282
> Input
262
283
@@ -277,7 +298,28 @@ Generated by [AVA](https://avajs.dev).
277
298
| ^^^^^^^^^^^^ Do not use the \`this\` argument in \`Array.from()\`.␊
278
299
`
279
300
280
- ## invalid(14): array.map(() => {}, thisArgumentHasSideEffect())
301
+ ## invalid(15): Array.fromAsync(iterableOrArrayLike, () => {}, thisArgument,)
302
+
303
+ > Input
304
+
305
+ `␊
306
+ 1 | Array.fromAsync(iterableOrArrayLike, () => {}, thisArgument,)␊
307
+ `
308
+
309
+ > Output
310
+
311
+ `␊
312
+ 1 | Array.fromAsync(iterableOrArrayLike, () => {},)␊
313
+ `
314
+
315
+ > Error 1/1
316
+
317
+ `␊
318
+ > 1 | Array.fromAsync(iterableOrArrayLike, () => {}, thisArgument,)␊
319
+ | ^^^^^^^^^^^^ Do not use the \`this\` argument in \`Array.fromAsync()\`.␊
320
+ `
321
+
322
+ ## invalid(16): array.map(() => {}, thisArgumentHasSideEffect())
281
323
282
324
> Input
283
325
@@ -296,7 +338,7 @@ Generated by [AVA](https://avajs.dev).
296
338
1 | array.map(() => {})␊
297
339
`
298
340
299
- ## invalid(15 ): Array.from(iterableOrArrayLike, () => {}, thisArgumentHasSideEffect())
341
+ ## invalid(17 ): Array.from(iterableOrArrayLike, () => {}, thisArgumentHasSideEffect())
300
342
301
343
> Input
302
344
@@ -315,6 +357,25 @@ Generated by [AVA](https://avajs.dev).
315
357
1 | Array.from(iterableOrArrayLike, () => {})␊
316
358
`
317
359
360
+ ## invalid(18): Array.fromAsync(iterableOrArrayLike, () => {}, thisArgumentHasSideEffect())
361
+
362
+ > Input
363
+
364
+ `␊
365
+ 1 | Array.fromAsync(iterableOrArrayLike, () => {}, thisArgumentHasSideEffect())␊
366
+ `
367
+
368
+ > Error 1/1
369
+
370
+ `␊
371
+ > 1 | Array.fromAsync(iterableOrArrayLike, () => {}, thisArgumentHasSideEffect())␊
372
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ Do not use the \`this\` argument in \`Array.fromAsync()\`.␊
373
+ ␊
374
+ --------------------------------------------------------------------------------␊
375
+ Suggestion 1/1: Remove this argument.␊
376
+ 1 | Array.fromAsync(iterableOrArrayLike, () => {})␊
377
+ `
378
+
318
379
## invalid(1): array.map(callback, thisArgument)
319
380
320
381
> Input
@@ -361,7 +422,30 @@ Generated by [AVA](https://avajs.dev).
361
422
1 | Array.from(iterableOrArrayLike, callback.bind(thisArgument))␊
362
423
`
363
424
364
- ## invalid(3): array.map(callback, (0, thisArgument))
425
+ ## invalid(3): Array.fromAsync(iterableOrArrayLike, callback, thisArgument)
426
+
427
+ > Input
428
+
429
+ `␊
430
+ 1 | Array.fromAsync(iterableOrArrayLike, callback, thisArgument)␊
431
+ `
432
+
433
+ > Error 1/1
434
+
435
+ `␊
436
+ > 1 | Array.fromAsync(iterableOrArrayLike, callback, thisArgument)␊
437
+ | ^^^^^^^^^^^^ Do not use the \`this\` argument in \`Array.fromAsync()\`.␊
438
+ ␊
439
+ --------------------------------------------------------------------------------␊
440
+ Suggestion 1/2: Remove this argument.␊
441
+ 1 | Array.fromAsync(iterableOrArrayLike, callback)␊
442
+ ␊
443
+ --------------------------------------------------------------------------------␊
444
+ Suggestion 2/2: Use a bound function.␊
445
+ 1 | Array.fromAsync(iterableOrArrayLike, callback.bind(thisArgument))␊
446
+ `
447
+
448
+ ## invalid(4): array.map(callback, (0, thisArgument))
365
449
366
450
> Input
367
451
@@ -384,7 +468,7 @@ Generated by [AVA](https://avajs.dev).
384
468
1 | array.map(callback.bind((0, thisArgument)))␊
385
469
`
386
470
387
- ## invalid(4 ): Array.from(iterableOrArrayLike, callback, (0, thisArgument))
471
+ ## invalid(5 ): Array.from(iterableOrArrayLike, callback, (0, thisArgument))
388
472
389
473
> Input
390
474
@@ -407,7 +491,30 @@ Generated by [AVA](https://avajs.dev).
407
491
1 | Array.from(iterableOrArrayLike, callback.bind((0, thisArgument)))␊
408
492
`
409
493
410
- ## invalid(5): array.map(function () {}, thisArgument)
494
+ ## invalid(6): Array.fromAsync(iterableOrArrayLike, callback, (0, thisArgument))
495
+
496
+ > Input
497
+
498
+ `␊
499
+ 1 | Array.fromAsync(iterableOrArrayLike, callback, (0, thisArgument))␊
500
+ `
501
+
502
+ > Error 1/1
503
+
504
+ `␊
505
+ > 1 | Array.fromAsync(iterableOrArrayLike, callback, (0, thisArgument))␊
506
+ | ^^^^^^^^^^^^^^^ Do not use the \`this\` argument in \`Array.fromAsync()\`.␊
507
+ ␊
508
+ --------------------------------------------------------------------------------␊
509
+ Suggestion 1/2: Remove this argument.␊
510
+ 1 | Array.fromAsync(iterableOrArrayLike, callback)␊
511
+ ␊
512
+ --------------------------------------------------------------------------------␊
513
+ Suggestion 2/2: Use a bound function.␊
514
+ 1 | Array.fromAsync(iterableOrArrayLike, callback.bind((0, thisArgument)))␊
515
+ `
516
+
517
+ ## invalid(7): array.map(function () {}, thisArgument)
411
518
412
519
> Input
413
520
@@ -430,7 +537,7 @@ Generated by [AVA](https://avajs.dev).
430
537
1 | array.map(function () {}.bind(thisArgument))␊
431
538
`
432
539
433
- ## invalid(6 ): Array.from(iterableOrArrayLike, function () {}, thisArgument)
540
+ ## invalid(8 ): Array.from(iterableOrArrayLike, function () {}, thisArgument)
434
541
435
542
> Input
436
543
@@ -453,7 +560,7 @@ Generated by [AVA](https://avajs.dev).
453
560
1 | Array.from(iterableOrArrayLike, function () {}.bind(thisArgument))␊
454
561
`
455
562
456
- ## invalid(7 ): array.map(function callback () {}, thisArgument)
563
+ ## invalid(9 ): array.map(function callback () {}, thisArgument)
457
564
458
565
> Input
459
566
@@ -476,7 +583,7 @@ Generated by [AVA](https://avajs.dev).
476
583
1 | array.map(function callback () {}.bind(thisArgument))␊
477
584
`
478
585
479
- ## invalid(8 ): Array.from(iterableOrArrayLike, function callback () {}, thisArgument)
586
+ ## invalid(10 ): Array.from(iterableOrArrayLike, function callback () {}, thisArgument)
480
587
481
588
> Input
482
589
@@ -499,7 +606,30 @@ Generated by [AVA](https://avajs.dev).
499
606
1 | Array.from(iterableOrArrayLike, function callback () {}.bind(thisArgument))␊
500
607
`
501
608
502
- ## invalid(9): array.map( foo as bar, (( thisArgument )),)
609
+ ## invalid(11): Array.fromAsync(iterableOrArrayLike, function callback () {}, thisArgument)
610
+
611
+ > Input
612
+
613
+ `␊
614
+ 1 | Array.fromAsync(iterableOrArrayLike, function callback () {}, thisArgument)␊
615
+ `
616
+
617
+ > Error 1/1
618
+
619
+ `␊
620
+ > 1 | Array.fromAsync(iterableOrArrayLike, function callback () {}, thisArgument)␊
621
+ | ^^^^^^^^^^^^ Do not use the \`this\` argument in \`Array.fromAsync()\`.␊
622
+ ␊
623
+ --------------------------------------------------------------------------------␊
624
+ Suggestion 1/2: Remove this argument.␊
625
+ 1 | Array.fromAsync(iterableOrArrayLike, function callback () {})␊
626
+ ␊
627
+ --------------------------------------------------------------------------------␊
628
+ Suggestion 2/2: Use a bound function.␊
629
+ 1 | Array.fromAsync(iterableOrArrayLike, function callback () {}.bind(thisArgument))␊
630
+ `
631
+
632
+ ## invalid(12): array.map( foo as bar, (( thisArgument )),)
503
633
504
634
> Input
505
635
@@ -522,7 +652,7 @@ Generated by [AVA](https://avajs.dev).
522
652
1 | array.map( (foo as bar).bind((( thisArgument ))),)␊
523
653
`
524
654
525
- ## invalid(10 ): Array.from(iterableOrArrayLike, foo as bar, (( thisArgument )),)
655
+ ## invalid(13 ): Array.from(iterableOrArrayLike, foo as bar, (( thisArgument )),)
526
656
527
657
> Input
528
658
@@ -545,7 +675,30 @@ Generated by [AVA](https://avajs.dev).
545
675
1 | Array.from(iterableOrArrayLike, (foo as bar).bind((( thisArgument ))),)␊
546
676
`
547
677
548
- ## invalid(11): array.map( (( foo as bar )), (( thisArgument )),)
678
+ ## invalid(14): Array.fromAsync(iterableOrArrayLike, foo as bar, (( thisArgument )),)
679
+
680
+ > Input
681
+
682
+ `␊
683
+ 1 | Array.fromAsync(iterableOrArrayLike, foo as bar, (( thisArgument )),)␊
684
+ `
685
+
686
+ > Error 1/1
687
+
688
+ `␊
689
+ > 1 | Array.fromAsync(iterableOrArrayLike, foo as bar, (( thisArgument )),)␊
690
+ | ^^^^^^^^^^^^ Do not use the \`this\` argument in \`Array.fromAsync()\`.␊
691
+ ␊
692
+ --------------------------------------------------------------------------------␊
693
+ Suggestion 1/2: Remove this argument.␊
694
+ 1 | Array.fromAsync(iterableOrArrayLike, foo as bar,)␊
695
+ ␊
696
+ --------------------------------------------------------------------------------␊
697
+ Suggestion 2/2: Use a bound function.␊
698
+ 1 | Array.fromAsync(iterableOrArrayLike, (foo as bar).bind((( thisArgument ))),)␊
699
+ `
700
+
701
+ ## invalid(15): array.map( (( foo as bar )), (( thisArgument )),)
549
702
550
703
> Input
551
704
@@ -568,7 +721,7 @@ Generated by [AVA](https://avajs.dev).
568
721
1 | array.map( (( foo as bar )).bind((( thisArgument ))),)␊
569
722
`
570
723
571
- ## invalid(12 ): Array.from(iterableOrArrayLike, (( foo as bar )), (( thisArgument )),)
724
+ ## invalid(16 ): Array.from(iterableOrArrayLike, (( foo as bar )), (( thisArgument )),)
572
725
573
726
> Input
574
727
@@ -591,7 +744,30 @@ Generated by [AVA](https://avajs.dev).
591
744
1 | Array.from(iterableOrArrayLike, (( foo as bar )).bind((( thisArgument ))),)␊
592
745
`
593
746
594
- ## invalid(13): array.map( (( 0, callback )), (( thisArgument )),)
747
+ ## invalid(17): Array.fromAsync(iterableOrArrayLike, (( foo as bar )), (( thisArgument )),)
748
+
749
+ > Input
750
+
751
+ `␊
752
+ 1 | Array.fromAsync(iterableOrArrayLike, (( foo as bar )), (( thisArgument )),)␊
753
+ `
754
+
755
+ > Error 1/1
756
+
757
+ `␊
758
+ > 1 | Array.fromAsync(iterableOrArrayLike, (( foo as bar )), (( thisArgument )),)␊
759
+ | ^^^^^^^^^^^^ Do not use the \`this\` argument in \`Array.fromAsync()\`.␊
760
+ ␊
761
+ --------------------------------------------------------------------------------␊
762
+ Suggestion 1/2: Remove this argument.␊
763
+ 1 | Array.fromAsync(iterableOrArrayLike, (( foo as bar )),)␊
764
+ ␊
765
+ --------------------------------------------------------------------------------␊
766
+ Suggestion 2/2: Use a bound function.␊
767
+ 1 | Array.fromAsync(iterableOrArrayLike, (( foo as bar )).bind((( thisArgument ))),)␊
768
+ `
769
+
770
+ ## invalid(18): array.map( (( 0, callback )), (( thisArgument )),)
595
771
596
772
> Input
597
773
@@ -614,7 +790,7 @@ Generated by [AVA](https://avajs.dev).
614
790
1 | array.map( (( 0, callback )).bind((( thisArgument ))),)␊
615
791
`
616
792
617
- ## invalid(14 ): Array.from(iterableOrArrayLike, (( 0, callback )), (( thisArgument )),)
793
+ ## invalid(19 ): Array.from(iterableOrArrayLike, (( 0, callback )), (( thisArgument )),)
618
794
619
795
> Input
620
796
@@ -637,7 +813,30 @@ Generated by [AVA](https://avajs.dev).
637
813
1 | Array.from(iterableOrArrayLike, (( 0, callback )).bind((( thisArgument ))),)␊
638
814
`
639
815
640
- ## invalid(15): array.map((0, () => {}), thisArgument)
816
+ ## invalid(20): Array.fromAsync(iterableOrArrayLike, (( 0, callback )), (( thisArgument )),)
817
+
818
+ > Input
819
+
820
+ `␊
821
+ 1 | Array.fromAsync(iterableOrArrayLike, (( 0, callback )), (( thisArgument )),)␊
822
+ `
823
+
824
+ > Error 1/1
825
+
826
+ `␊
827
+ > 1 | Array.fromAsync(iterableOrArrayLike, (( 0, callback )), (( thisArgument )),)␊
828
+ | ^^^^^^^^^^^^ Do not use the \`this\` argument in \`Array.fromAsync()\`.␊
829
+ ␊
830
+ --------------------------------------------------------------------------------␊
831
+ Suggestion 1/2: Remove this argument.␊
832
+ 1 | Array.fromAsync(iterableOrArrayLike, (( 0, callback )),)␊
833
+ ␊
834
+ --------------------------------------------------------------------------------␊
835
+ Suggestion 2/2: Use a bound function.␊
836
+ 1 | Array.fromAsync(iterableOrArrayLike, (( 0, callback )).bind((( thisArgument ))),)␊
837
+ `
838
+
839
+ ## invalid(21): array.map((0, () => {}), thisArgument)
641
840
642
841
> Input
643
842
@@ -660,7 +859,7 @@ Generated by [AVA](https://avajs.dev).
660
859
1 | array.map((0, () => {}).bind(thisArgument))␊
661
860
`
662
861
663
- ## invalid(16 ): Array.from(iterableOrArrayLike, (0, () => {}), thisArgument)
862
+ ## invalid(22 ): Array.from(iterableOrArrayLike, (0, () => {}), thisArgument)
664
863
665
864
> Input
666
865
@@ -683,7 +882,30 @@ Generated by [AVA](https://avajs.dev).
683
882
1 | Array.from(iterableOrArrayLike, (0, () => {}).bind(thisArgument))␊
684
883
`
685
884
686
- ## invalid(17): array.map(callback.bind(foo), thisArgument)
885
+ ## invalid(23): Array.fromAsync(iterableOrArrayLike, (0, () => {}), thisArgument)
886
+
887
+ > Input
888
+
889
+ `␊
890
+ 1 | Array.fromAsync(iterableOrArrayLike, (0, () => {}), thisArgument)␊
891
+ `
892
+
893
+ > Error 1/1
894
+
895
+ `␊
896
+ > 1 | Array.fromAsync(iterableOrArrayLike, (0, () => {}), thisArgument)␊
897
+ | ^^^^^^^^^^^^ Do not use the \`this\` argument in \`Array.fromAsync()\`.␊
898
+ ␊
899
+ --------------------------------------------------------------------------------␊
900
+ Suggestion 1/2: Remove this argument.␊
901
+ 1 | Array.fromAsync(iterableOrArrayLike, (0, () => {}))␊
902
+ ␊
903
+ --------------------------------------------------------------------------------␊
904
+ Suggestion 2/2: Use a bound function.␊
905
+ 1 | Array.fromAsync(iterableOrArrayLike, (0, () => {}).bind(thisArgument))␊
906
+ `
907
+
908
+ ## invalid(24): array.map(callback.bind(foo), thisArgument)
687
909
688
910
> Input
689
911
@@ -706,7 +928,7 @@ Generated by [AVA](https://avajs.dev).
706
928
1 | array.map(callback.bind(foo).bind(thisArgument))␊
707
929
`
708
930
709
- ## invalid(18 ): Array.from(iterableOrArrayLike, callback.bind(foo), thisArgument)
931
+ ## invalid(25 ): Array.from(iterableOrArrayLike, callback.bind(foo), thisArgument)
710
932
711
933
> Input
712
934
@@ -728,3 +950,26 @@ Generated by [AVA](https://avajs.dev).
728
950
Suggestion 2/2: Use a bound function.␊
729
951
1 | Array.from(iterableOrArrayLike, callback.bind(foo).bind(thisArgument))␊
730
952
`
953
+
954
+ ## invalid(26): Array.fromAsync(iterableOrArrayLike, callback.bind(foo), thisArgument)
955
+
956
+ > Input
957
+
958
+ `␊
959
+ 1 | Array.fromAsync(iterableOrArrayLike, callback.bind(foo), thisArgument)␊
960
+ `
961
+
962
+ > Error 1/1
963
+
964
+ `␊
965
+ > 1 | Array.fromAsync(iterableOrArrayLike, callback.bind(foo), thisArgument)␊
966
+ | ^^^^^^^^^^^^ Do not use the \`this\` argument in \`Array.fromAsync()\`.␊
967
+ ␊
968
+ --------------------------------------------------------------------------------␊
969
+ Suggestion 1/2: Remove this argument.␊
970
+ 1 | Array.fromAsync(iterableOrArrayLike, callback.bind(foo))␊
971
+ ␊
972
+ --------------------------------------------------------------------------------␊
973
+ Suggestion 2/2: Use a bound function.␊
974
+ 1 | Array.fromAsync(iterableOrArrayLike, callback.bind(foo).bind(thisArgument))␊
975
+ `
0 commit comments