@@ -444,6 +444,56 @@ Found 1 warning and 6 errors.
444444Finished in Xms on 1 file using X threads."
445445` ;
446446
447+ exports [` oxlint CLI > should receive ESTree-compatible AST 1` ] = `
448+ "
449+ x estree-check(check): Visited nodes:
450+ | * Program
451+ | * VariableDeclaration: let
452+ | * VariableDeclarator: (init: ObjectExpression)
453+ | * Identifier: a
454+ | * ObjectExpression
455+ | * Identifier: x
456+ | * Identifier: y
457+ | * VariableDeclaration:exit: let
458+ | * VariableDeclaration: const
459+ | * VariableDeclarator: (init: BinaryExpression)
460+ | * Identifier: b
461+ | * BinaryExpression: * (right: BinaryExpression)
462+ | * Identifier: x
463+ | * BinaryExpression: + (right: Literal)
464+ | * Literal: str
465+ | * Literal: 123
466+ | * VariableDeclaration:exit: const
467+ | * TSTypeAliasDeclaration: (typeAnnotation: TSStringKeyword)
468+ | * Identifier: T
469+ | * TSStringKeyword
470+ | * TSTypeAliasDeclaration:exit: (typeAnnotation: TSStringKeyword)
471+ | * TSTypeAliasDeclaration: (typeAnnotation: TSUnionType)
472+ | * Identifier: U
473+ | * TSUnionType: (types: TSStringKeyword, TSNumberKeyword)
474+ | * TSStringKeyword
475+ | * TSNumberKeyword
476+ | * TSUnionType:exit: (types: TSStringKeyword, TSNumberKeyword)
477+ | * TSTypeAliasDeclaration:exit: (typeAnnotation: TSUnionType)
478+ | * Program:exit
479+ ,-[index.ts:2:1]
480+ 1 | // All \` Identifier\` s
481+ 2 | ,-> let a = { x : y } ;
482+ 3 | |
483+ 4 | | // No \` ParenthesizedExpression\` s in AST
484+ 5 | | const b = (x * ((('str' + ((123))))));
485+ 6 | |
486+ 7 | | // TS syntax
487+ 8 | | type T = string;
488+ 9 | |
489+ 10 | | // No \` TSParenthesizedType\` s in AST
490+ 11 | \` -> type U = (((((string)) | ((number)))));
491+ \` ----
492+
493+ Found 0 warnings and 1 error.
494+ Finished in Xms on 1 file using X threads."
495+ ` ;
496+
447497exports [` oxlint CLI > should receive data via \` context\` 1` ] = `
448498"
449499 x context-plugin(log-context): id: context-plugin/log-context
@@ -612,7 +662,7 @@ exports[`oxlint CLI > should work with multiple rules 1`] = `
612662 \`----
613663 help: Remove the debugger statement
614664
615- x basic-custom-plugin(no-ident-references- named-foo): Unexpected Identifier Reference named foo
665+ x basic-custom-plugin(no-identifiers- named-foo): Unexpected Identifier named foo
616666 ,-[index.js:3:1]
617667 2 |
618668 3 | foo;
0 commit comments