@@ -444,6 +444,30 @@ Found 1 warning and 6 errors.
444
444
Finished in Xms on 1 file using X threads."
445
445
` ;
446
446
447
+ exports [` oxlint CLI > should receive ESTree-compatible AST 1` ] = `
448
+ "
449
+ x estree-check(check): Visited nodes: 'Program', 'VariableDeclaration: let', 'Identifier: a', 'ObjectExpression', 'Identifier: x', 'Identifier: y', 'VariableDeclaration:exit: let',
450
+ | 'VariableDeclaration: const', 'Identifier: b', 'BinaryExpression: *', 'Identifier: x', 'BinaryExpression: +', 'Literal: str', 'Literal: 123', 'VariableDeclaration:exit: const',
451
+ | 'TSTypeAliasDeclaration', 'Identifier: T', 'TSStringKeyword', 'TSTypeAliasDeclaration:exit', 'TSTypeAliasDeclaration', 'Identifier: U', 'TSUnionType', 'TSStringKeyword', 'TSNumberKeyword',
452
+ | 'TSTypeAliasDeclaration:exit', 'Program:exit'
453
+ ,-[index.ts:2:1]
454
+ 1 | // All \` Identifier\` s
455
+ 2 | ,-> let a = { x : y } ;
456
+ 3 | |
457
+ 4 | | // No \` ParenthesizedExpression\` s in AST
458
+ 5 | | const b = (x * ((('str' + ((123))))));
459
+ 6 | |
460
+ 7 | | // TS syntax
461
+ 8 | | type T = string;
462
+ 9 | |
463
+ 10 | | // No \` TSParenthesizedType\` s in AST
464
+ 11 | \` -> type U = (string | number);
465
+ \` ----
466
+
467
+ Found 0 warnings and 1 error.
468
+ Finished in Xms on 1 file using X threads."
469
+ ` ;
470
+
447
471
exports [` oxlint CLI > should receive data via \` context\` 1` ] = `
448
472
"
449
473
x context-plugin(log-context): id: context-plugin/log-context
@@ -612,7 +636,7 @@ exports[`oxlint CLI > should work with multiple rules 1`] = `
612
636
\`----
613
637
help: Remove the debugger statement
614
638
615
- x basic-custom-plugin(no-ident-references- named-foo): Unexpected Identifier Reference named foo
639
+ x basic-custom-plugin(no-identifiers- named-foo): Unexpected Identifier named foo
616
640
,-[index.js:3:1]
617
641
2 |
618
642
3 | foo;
0 commit comments