@@ -405,7 +405,7 @@ foo!;
405
405
}, []rule_tester.InvalidTestCase {
406
406
{
407
407
Code : "const a = `a` as const;" ,
408
- Output : []string {"const a = `a` ;" },
408
+ Output : []string {"const a = `a`;" },
409
409
Errors : []rule_tester.InvalidTestCaseError {
410
410
{
411
411
MessageId : "unnecessaryAssertion" ,
@@ -415,7 +415,7 @@ foo!;
415
415
},
416
416
{
417
417
Code : "const a = 'a' as const;" ,
418
- Output : []string {"const a = 'a' ;" },
418
+ Output : []string {"const a = 'a';" },
419
419
Errors : []rule_tester.InvalidTestCaseError {
420
420
{
421
421
MessageId : "unnecessaryAssertion" ,
@@ -446,7 +446,7 @@ foo!;
446
446
},
447
447
{
448
448
Code : "const foo = 3 as 3;" ,
449
- Output : []string {"const foo = 3 ;" },
449
+ Output : []string {"const foo = 3;" },
450
450
Errors : []rule_tester.InvalidTestCaseError {
451
451
{
452
452
MessageId : "unnecessaryAssertion" ,
@@ -480,7 +480,7 @@ foo!;
480
480
` ,
481
481
Output : []string {`
482
482
type Foo = 3;
483
- const foo = 3 ;
483
+ const foo = 3;
484
484
` ,
485
485
},
486
486
Errors : []rule_tester.InvalidTestCaseError {
@@ -514,7 +514,7 @@ const bar = foo;
514
514
const foo = (3 + 5) as number;
515
515
` ,
516
516
Output : []string {`
517
- const foo = (3 + 5) ;
517
+ const foo = (3 + 5);
518
518
` ,
519
519
},
520
520
Errors : []rule_tester.InvalidTestCaseError {
@@ -548,7 +548,7 @@ const foo = (3 + 5) as Foo;
548
548
` ,
549
549
Output : []string {`
550
550
type Foo = number;
551
- const foo = (3 + 5) ;
551
+ const foo = (3 + 5);
552
552
` ,
553
553
},
554
554
Errors : []rule_tester.InvalidTestCaseError {
@@ -903,7 +903,7 @@ const a = foo() as number;
903
903
` ,
904
904
Output : []string {`
905
905
declare function foo(): number;
906
- const a = foo() ;
906
+ const a = foo();
907
907
` ,
908
908
},
909
909
Errors : []rule_tester.InvalidTestCaseError {
@@ -940,7 +940,7 @@ declare function foo(): RT;
940
940
Output : []string {`
941
941
type RT = { log: () => void };
942
942
declare function foo(): RT;
943
- (foo() ).log;
943
+ (foo()).log;
944
944
` ,
945
945
},
946
946
Errors : []rule_tester.InvalidTestCaseError {
@@ -970,7 +970,7 @@ const item = arr[0];
970
970
const foo = ( 3 + 5 ) as number;
971
971
` ,
972
972
Output : []string {`
973
- const foo = ( 3 + 5 ) ;
973
+ const foo = ( 3 + 5 );
974
974
` ,
975
975
},
976
976
Errors : []rule_tester.InvalidTestCaseError {
@@ -986,7 +986,7 @@ const foo = ( 3 + 5 ) ;
986
986
const foo = ( 3 + 5 ) /*as*/ as number;
987
987
` ,
988
988
Output : []string {`
989
- const foo = ( 3 + 5 ) /*as*/ ;
989
+ const foo = ( 3 + 5 ) /*as*/;
990
990
` ,
991
991
},
992
992
Errors : []rule_tester.InvalidTestCaseError {
@@ -1007,8 +1007,7 @@ const foo = ( 3 + 5
1007
1007
` ,
1008
1008
Output : []string {`
1009
1009
const foo = ( 3 + 5
1010
- ) /*as*/ //as
1011
- ;
1010
+ ) /*as*/;
1012
1011
` ,
1013
1012
},
1014
1013
Errors : []rule_tester.InvalidTestCaseError {
@@ -1024,7 +1023,7 @@ const foo = ( 3 + 5
1024
1023
const foo = (3 + (5 as number) ) as number;
1025
1024
` ,
1026
1025
Output : []string {`
1027
- const foo = (3 + (5 as number) ) ;
1026
+ const foo = (3 + (5 as number) );
1028
1027
` ,
1029
1028
},
1030
1029
Errors : []rule_tester.InvalidTestCaseError {
@@ -1040,7 +1039,7 @@ const foo = (3 + (5 as number) ) ;
1040
1039
const foo = 3 + 5/*as*/ as number;
1041
1040
` ,
1042
1041
Output : []string {`
1043
- const foo = 3 + 5/*as*/ ;
1042
+ const foo = 3 + 5/*as*/;
1044
1043
` ,
1045
1044
},
1046
1045
Errors : []rule_tester.InvalidTestCaseError {
@@ -1056,7 +1055,7 @@ const foo = 3 + 5/*as*/ ;
1056
1055
const foo = 3 + 5/*a*/ /*b*/ as number;
1057
1056
` ,
1058
1057
Output : []string {`
1059
- const foo = 3 + 5/*a*/ /*b*/ ;
1058
+ const foo = 3 + 5/*a*/ /*b*/;
1060
1059
` ,
1061
1060
},
1062
1061
Errors : []rule_tester.InvalidTestCaseError {
@@ -1168,7 +1167,7 @@ const bar = foo.a as string | undefined;
1168
1167
declare const foo: {
1169
1168
a?: string;
1170
1169
};
1171
- const bar = foo.a ;
1170
+ const bar = foo.a;
1172
1171
` ,
1173
1172
},
1174
1173
TSConfig : "./tsconfig.exactOptionalPropertyTypes.json" ,
@@ -1191,7 +1190,7 @@ const bar = foo.a as string | undefined;
1191
1190
declare const foo: {
1192
1191
a?: string | undefined;
1193
1192
};
1194
- const bar = foo.a ;
1193
+ const bar = foo.a;
1195
1194
` ,
1196
1195
},
1197
1196
TSConfig : "./tsconfig.exactOptionalPropertyTypes.json" ,
@@ -1264,7 +1263,7 @@ class T {
1264
1263
` ,
1265
1264
Output : []string {`
1266
1265
class T {
1267
- readonly a = 'a' ;
1266
+ readonly a = 'a';
1268
1267
}
1269
1268
` ,
1270
1269
},
@@ -1283,7 +1282,7 @@ class T {
1283
1282
` ,
1284
1283
Output : []string {`
1285
1284
class T {
1286
- readonly a = 3 ;
1285
+ readonly a = 3;
1287
1286
}
1288
1287
` ,
1289
1288
},
@@ -1306,7 +1305,7 @@ class T {
1306
1305
type S = 10;
1307
1306
1308
1307
class T {
1309
- readonly a = 10 ;
1308
+ readonly a = 10;
1310
1309
}
1311
1310
` ,
1312
1311
},
@@ -1325,7 +1324,7 @@ class T {
1325
1324
` ,
1326
1325
Output : []string {`
1327
1326
class T {
1328
- readonly a = (3 + 5) ;
1327
+ readonly a = (3 + 5);
1329
1328
}
1330
1329
` ,
1331
1330
},
@@ -1369,7 +1368,7 @@ enum T {
1369
1368
}
1370
1369
1371
1370
declare const a: T.Value1;
1372
- const b = a ;
1371
+ const b = a;
1373
1372
` ,
1374
1373
},
1375
1374
Errors : []rule_tester.InvalidTestCaseError {
@@ -1395,7 +1394,7 @@ enum T {
1395
1394
}
1396
1395
1397
1396
declare const a: T.Value1;
1398
- const b = a ;
1397
+ const b = a;
1399
1398
` ,
1400
1399
},
1401
1400
Errors : []rule_tester.InvalidTestCaseError {
0 commit comments