@@ -782,7 +782,28 @@ Generated by [AVA](https://avajs.dev).
782
782
| ^^^^^^^^^^^^^^^^ Use \`new Error()\` instead of \`Error()\`.␊
783
783
`
784
784
785
- ## invalid(35): const foo = Float32Array()
785
+ ## invalid(35): const foo = Float16Array()
786
+
787
+ > Input
788
+
789
+ `␊
790
+ 1 | const foo = Float16Array()␊
791
+ `
792
+
793
+ > Output
794
+
795
+ `␊
796
+ 1 | const foo = new Float16Array()␊
797
+ `
798
+
799
+ > Error 1/1
800
+
801
+ `␊
802
+ > 1 | const foo = Float16Array()␊
803
+ | ^^^^^^^^^^^^^^ Use \`new Float16Array()\` instead of \`Float16Array()\`.␊
804
+ `
805
+
806
+ ## invalid(36): const foo = Float32Array()
786
807
787
808
> Input
788
809
@@ -803,7 +824,7 @@ Generated by [AVA](https://avajs.dev).
803
824
| ^^^^^^^^^^^^^^ Use \`new Float32Array()\` instead of \`Float32Array()\`.␊
804
825
`
805
826
806
- ## invalid(36 ): const foo = Float64Array()
827
+ ## invalid(37 ): const foo = Float64Array()
807
828
808
829
> Input
809
830
@@ -824,7 +845,7 @@ Generated by [AVA](https://avajs.dev).
824
845
| ^^^^^^^^^^^^^^ Use \`new Float64Array()\` instead of \`Float64Array()\`.␊
825
846
`
826
847
827
- ## invalid(37 ): const foo = Function()
848
+ ## invalid(38 ): const foo = Function()
828
849
829
850
> Input
830
851
@@ -845,7 +866,7 @@ Generated by [AVA](https://avajs.dev).
845
866
| ^^^^^^^^^^ Use \`new Function()\` instead of \`Function()\`.␊
846
867
`
847
868
848
- ## invalid(38 ): const foo = Int8Array()
869
+ ## invalid(39 ): const foo = Int8Array()
849
870
850
871
> Input
851
872
@@ -866,7 +887,7 @@ Generated by [AVA](https://avajs.dev).
866
887
| ^^^^^^^^^^^ Use \`new Int8Array()\` instead of \`Int8Array()\`.␊
867
888
`
868
889
869
- ## invalid(39 ): const foo = Int16Array()
890
+ ## invalid(40 ): const foo = Int16Array()
870
891
871
892
> Input
872
893
@@ -887,7 +908,7 @@ Generated by [AVA](https://avajs.dev).
887
908
| ^^^^^^^^^^^^ Use \`new Int16Array()\` instead of \`Int16Array()\`.␊
888
909
`
889
910
890
- ## invalid(40 ): const foo = Int32Array()
911
+ ## invalid(41 ): const foo = Int32Array()
891
912
892
913
> Input
893
914
@@ -908,7 +929,7 @@ Generated by [AVA](https://avajs.dev).
908
929
| ^^^^^^^^^^^^ Use \`new Int32Array()\` instead of \`Int32Array()\`.␊
909
930
`
910
931
911
- ## invalid(41 ): const foo = (( Map ))()
932
+ ## invalid(42 ): const foo = (( Map ))()
912
933
913
934
> Input
914
935
@@ -929,7 +950,7 @@ Generated by [AVA](https://avajs.dev).
929
950
| ^^^^^^^^^^^ Use \`new Map()\` instead of \`Map()\`.␊
930
951
`
931
952
932
- ## invalid(42 ): const foo = Map([[ 'foo', 'bar'] , [ 'unicorn', 'rainbow']] )
953
+ ## invalid(43 ): const foo = Map([[ 'foo', 'bar'] , [ 'unicorn', 'rainbow']] )
933
954
934
955
> Input
935
956
@@ -950,7 +971,7 @@ Generated by [AVA](https://avajs.dev).
950
971
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Use \`new Map()\` instead of \`Map()\`.␊
951
972
`
952
973
953
- ## invalid(43 ): const foo = WeakMap()
974
+ ## invalid(44 ): const foo = WeakMap()
954
975
955
976
> Input
956
977
@@ -971,7 +992,7 @@ Generated by [AVA](https://avajs.dev).
971
992
| ^^^^^^^^^ Use \`new WeakMap()\` instead of \`WeakMap()\`.␊
972
993
`
973
994
974
- ## invalid(44 ): const foo = Set()
995
+ ## invalid(45 ): const foo = Set()
975
996
976
997
> Input
977
998
@@ -992,7 +1013,7 @@ Generated by [AVA](https://avajs.dev).
992
1013
| ^^^^^ Use \`new Set()\` instead of \`Set()\`.␊
993
1014
`
994
1015
995
- ## invalid(45 ): const foo = WeakSet()
1016
+ ## invalid(46 ): const foo = WeakSet()
996
1017
997
1018
> Input
998
1019
@@ -1013,7 +1034,7 @@ Generated by [AVA](https://avajs.dev).
1013
1034
| ^^^^^^^^^ Use \`new WeakSet()\` instead of \`WeakSet()\`.␊
1014
1035
`
1015
1036
1016
- ## invalid(46 ): const foo = Promise()
1037
+ ## invalid(47 ): const foo = Promise()
1017
1038
1018
1039
> Input
1019
1040
@@ -1034,7 +1055,7 @@ Generated by [AVA](https://avajs.dev).
1034
1055
| ^^^^^^^^^ Use \`new Promise()\` instead of \`Promise()\`.␊
1035
1056
`
1036
1057
1037
- ## invalid(47 ): const foo = RegExp()
1058
+ ## invalid(48 ): const foo = RegExp()
1038
1059
1039
1060
> Input
1040
1061
@@ -1055,7 +1076,7 @@ Generated by [AVA](https://avajs.dev).
1055
1076
| ^^^^^^^^ Use \`new RegExp()\` instead of \`RegExp()\`.␊
1056
1077
`
1057
1078
1058
- ## invalid(48 ): const foo = Uint8Array()
1079
+ ## invalid(49 ): const foo = Uint8Array()
1059
1080
1060
1081
> Input
1061
1082
@@ -1076,7 +1097,7 @@ Generated by [AVA](https://avajs.dev).
1076
1097
| ^^^^^^^^^^^^ Use \`new Uint8Array()\` instead of \`Uint8Array()\`.␊
1077
1098
`
1078
1099
1079
- ## invalid(49 ): const foo = Uint16Array()
1100
+ ## invalid(50 ): const foo = Uint16Array()
1080
1101
1081
1102
> Input
1082
1103
@@ -1097,7 +1118,7 @@ Generated by [AVA](https://avajs.dev).
1097
1118
| ^^^^^^^^^^^^^ Use \`new Uint16Array()\` instead of \`Uint16Array()\`.␊
1098
1119
`
1099
1120
1100
- ## invalid(50 ): const foo = Uint32Array()
1121
+ ## invalid(51 ): const foo = Uint32Array()
1101
1122
1102
1123
> Input
1103
1124
@@ -1118,7 +1139,7 @@ Generated by [AVA](https://avajs.dev).
1118
1139
| ^^^^^^^^^^^^^ Use \`new Uint32Array()\` instead of \`Uint32Array()\`.␊
1119
1140
`
1120
1141
1121
- ## invalid(51 ): const foo = Uint8ClampedArray()
1142
+ ## invalid(52 ): const foo = Uint8ClampedArray()
1122
1143
1123
1144
> Input
1124
1145
@@ -1139,7 +1160,7 @@ Generated by [AVA](https://avajs.dev).
1139
1160
| ^^^^^^^^^^^^^^^^^^^ Use \`new Uint8ClampedArray()\` instead of \`Uint8ClampedArray()\`.␊
1140
1161
`
1141
1162
1142
- ## invalid(52 ): const foo = new BigInt(123)
1163
+ ## invalid(53 ): const foo = new BigInt(123)
1143
1164
1144
1165
> Input
1145
1166
@@ -1160,7 +1181,7 @@ Generated by [AVA](https://avajs.dev).
1160
1181
| ^^^^^^^^^^^^^^^ Use \`BigInt()\` instead of \`new BigInt()\`.␊
1161
1182
`
1162
1183
1163
- ## invalid(53 ): const foo = new Boolean()
1184
+ ## invalid(54 ): const foo = new Boolean()
1164
1185
1165
1186
> Input
1166
1187
@@ -1175,7 +1196,7 @@ Generated by [AVA](https://avajs.dev).
1175
1196
| ^^^^^^^^^^^^^ Use \`Boolean()\` instead of \`new Boolean()\`.␊
1176
1197
`
1177
1198
1178
- ## invalid(54 ): const foo = new Number()
1199
+ ## invalid(55 ): const foo = new Number()
1179
1200
1180
1201
> Input
1181
1202
@@ -1190,7 +1211,7 @@ Generated by [AVA](https://avajs.dev).
1190
1211
| ^^^^^^^^^^^^ Use \`Number()\` instead of \`new Number()\`.␊
1191
1212
`
1192
1213
1193
- ## invalid(55 ): const foo = new Number('123')
1214
+ ## invalid(56 ): const foo = new Number('123')
1194
1215
1195
1216
> Input
1196
1217
@@ -1205,7 +1226,7 @@ Generated by [AVA](https://avajs.dev).
1205
1226
| ^^^^^^^^^^^^^^^^^ Use \`Number()\` instead of \`new Number()\`.␊
1206
1227
`
1207
1228
1208
- ## invalid(56 ): const foo = new String()
1229
+ ## invalid(57 ): const foo = new String()
1209
1230
1210
1231
> Input
1211
1232
@@ -1220,7 +1241,7 @@ Generated by [AVA](https://avajs.dev).
1220
1241
| ^^^^^^^^^^^^ Use \`String()\` instead of \`new String()\`.␊
1221
1242
`
1222
1243
1223
- ## invalid(57 ): const foo = new Symbol()
1244
+ ## invalid(58 ): const foo = new Symbol()
1224
1245
1225
1246
> Input
1226
1247
@@ -1241,7 +1262,7 @@ Generated by [AVA](https://avajs.dev).
1241
1262
| ^^^^^^^^^^^^ Use \`Symbol()\` instead of \`new Symbol()\`.␊
1242
1263
`
1243
1264
1244
- ## invalid(58 ): function varCheck() { { var WeakMap = function() {}; } // This should not reported return WeakMap() } function constCheck() { { const Array = function() {}; } return Array() } function letCheck() { { let Map = function() {}; } return Map() }
1265
+ ## invalid(59 ): function varCheck() { { var WeakMap = function() {}; } // This should not reported return WeakMap() } function constCheck() { { const Array = function() {}; } return Array() } function letCheck() { { let Map = function() {}; } return Map() }
1245
1266
1246
1267
> Input
1247
1268
@@ -1341,7 +1362,7 @@ Generated by [AVA](https://avajs.dev).
1341
1362
19 | }␊
1342
1363
`
1343
1364
1344
- ## invalid(59 ): function foo() { return(globalThis).Map() }
1365
+ ## invalid(60 ): function foo() { return(globalThis).Map() }
1345
1366
1346
1367
> Input
1347
1368
0 commit comments