@@ -141,15 +141,7 @@ tester.addFixturePatternConfig('javascript/arrayLiteral');
141
141
142
142
tester . addFixturePatternConfig ( 'javascript/simple-literals' ) ;
143
143
144
- tester . addFixturePatternConfig ( 'javascript/directives' , {
145
- ignore : [
146
- /**
147
- * Babel errors on accessors:
148
- * https://github.com/babel/babel/issues/12335
149
- */
150
- 'directive-in-class' ,
151
- ] ,
152
- } ) ;
144
+ tester . addFixturePatternConfig ( 'javascript/directives' ) ;
153
145
154
146
tester . addFixturePatternConfig ( 'javascript/experimentalObjectRestSpread' ) ;
155
147
@@ -184,15 +176,7 @@ tester.addFixturePatternConfig('javascript/arrowFunctions', {
184
176
'error-strict-param-no-paren-eval' ,
185
177
] ,
186
178
} ) ;
187
- tester . addFixturePatternConfig ( 'javascript/function' , {
188
- ignore : [
189
- /**
190
- * Babel has invalid end range of multiline SequenceExpression
191
- * TODO: report it to babel
192
- */
193
- 'return-multiline-sequence' ,
194
- ] ,
195
- } ) ;
179
+ tester . addFixturePatternConfig ( 'javascript/function' ) ;
196
180
197
181
tester . addFixturePatternConfig ( 'javascript/bigIntLiterals' ) ;
198
182
tester . addFixturePatternConfig ( 'javascript/binaryLiterals' ) ;
@@ -203,20 +187,15 @@ tester.addFixturePatternConfig('javascript/callExpression');
203
187
tester . addFixturePatternConfig ( 'javascript/classes' , {
204
188
ignore : [
205
189
/**
206
- * super() is being used outside of constructor. Other parsers (e.g. espree, acorn) do not error on this.
190
+ * [BABEL ERRORED, BUT TS-ESTREE DID NOT]
191
+ * super() is being used outside of constructor.
192
+ * Other parsers (e.g. espree, acorn) do not error on this.
207
193
*/
208
- 'class-one-method-super' , // babel parse errors
194
+ 'class-one-method-super' ,
209
195
/**
210
196
* TS3.6 made computed constructors parse as actual constructors.
211
197
*/
212
198
'class-two-methods-computed-constructor' ,
213
- /**
214
- * Babel errors on accessors:
215
- * https://github.com/babel/babel/issues/12335
216
- */
217
- 'class-accessor-properties' ,
218
- 'class-static-methods-and-accessor-properties' ,
219
- 'invalid-class-setter-declaration' ,
220
199
] ,
221
200
} ) ;
222
201
@@ -287,15 +266,7 @@ tester.addFixturePatternConfig('javascript/modules', {
287
266
tester . addFixturePatternConfig ( 'javascript/newTarget' ) ;
288
267
289
268
tester . addFixturePatternConfig ( 'javascript/objectLiteral' ) ;
290
- tester . addFixturePatternConfig ( 'javascript/objectLiteralComputedProperties' , {
291
- ignore : [
292
- /**
293
- * Babel errors on accessors:
294
- * https://github.com/babel/babel/issues/12335
295
- */
296
- 'computed-getter-and-setter' ,
297
- ] ,
298
- } ) ;
269
+ tester . addFixturePatternConfig ( 'javascript/objectLiteralComputedProperties' ) ;
299
270
300
271
tester . addFixturePatternConfig ( 'javascript/objectLiteralDuplicateProperties' , {
301
272
ignore : [
@@ -415,13 +386,6 @@ tester.addFixturePatternConfig('typescript/basics', {
415
386
'type-guard-in-arrow-function' ,
416
387
'type-guard-in-function' ,
417
388
'type-guard-in-interface' ,
418
- /**
419
- * TS 3.7: declare class properties
420
- * Babel: declare is not allowed with accessibility modifiers
421
- * TODO: report this to babel
422
- */
423
- 'abstract-class-with-declare-properties' ,
424
- 'class-with-declare-properties' ,
425
389
/**
426
390
* [BABEL ERRORED, BUT TS-ESTREE DID NOT]
427
391
* This is intentional; we don't error on semantic problems for these cases
@@ -431,16 +395,6 @@ tester.addFixturePatternConfig('typescript/basics', {
431
395
'catch-clause-with-invalid-annotation' ,
432
396
'export-type-star-from' ,
433
397
'import-type-error' ,
434
- /**
435
- * Babel reports incorrect location
436
- * https://github.com/babel/babel/issues/11939
437
- */
438
- 'catch-clause-with-annotation' ,
439
- /**
440
- * Babel errors on accessors:
441
- * https://github.com/babel/babel/issues/12335
442
- */
443
- 'object-with-typed-methods' ,
444
398
] ,
445
399
ignoreSourceType : [
446
400
/**
@@ -470,16 +424,6 @@ tester.addFixturePatternConfig('typescript/basics', {
470
424
471
425
tester . addFixturePatternConfig ( 'typescript/decorators/accessor-decorators' , {
472
426
fileType : 'ts' ,
473
- ignore : [
474
- /**
475
- * Babel errors on accessors:
476
- * https://github.com/babel/babel/issues/12335
477
- */
478
- 'accessor-decorator-factory-instance-member' ,
479
- 'accessor-decorator-factory-static-member' ,
480
- 'accessor-decorator-instance-member' ,
481
- 'accessor-decorator-static-member' ,
482
- ] ,
483
427
} ) ;
484
428
tester . addFixturePatternConfig ( 'typescript/decorators/class-decorators' , {
485
429
fileType : 'ts' ,
@@ -514,20 +458,6 @@ tester.addFixturePatternConfig('typescript/errorRecovery', {
514
458
* TODO: enable error code TS1019: An index signature parameter cannot have a question mark.
515
459
*/
516
460
'interface-with-optional-index-signature' ,
517
- /**
518
- * Expected error on empty type arguments and type parameters
519
- * TypeScript report diagnostics correctly but babel not
520
- * https://github.com/babel/babel/issues/9462
521
- */
522
- 'empty-type-arguments' ,
523
- 'empty-type-arguments-in-call-expression' ,
524
- 'empty-type-arguments-in-new-expression' ,
525
- 'empty-type-parameters' ,
526
- 'empty-type-parameters-in-arrow-function' ,
527
- 'empty-type-parameters-in-constructor' ,
528
- 'empty-type-parameters-in-function-expression' ,
529
- 'empty-type-parameters-in-method' ,
530
- 'empty-type-parameters-in-method-signature' ,
531
461
/**
532
462
* Babel correctly errors on this
533
463
* TODO: enable error code TS1024: 'readonly' modifier can only appear on a property declaration or index signature.
@@ -546,7 +476,6 @@ tester.addFixturePatternConfig('typescript/types', {
546
476
* They produce TSTypeLiteral -> TemplateLiteral, and then force override the expression parser to parse types
547
477
* We instead just emit TSTemplateLiteralType.
548
478
*/
549
- 'template-literal-type-1' ,
550
479
'template-literal-type-2' ,
551
480
'template-literal-type-3' ,
552
481
'template-literal-type-4' ,
0 commit comments