lukeed/tidyPublic

fix: JS outputs that changed the code

Each fix is in the handle layer, where it differed from bun's tree:
the parent of a superclass is its Class, a JSX spread child keeps its
braces, an exported import-equals keeps its require, a comment's
neighbors are decorators' expressions and type arguments as bun's
parser records them, a parenthesized type annotation has its inner
type's id, and a comment before a statement's semicolon is outside
the statement. .cjs and .cts parse as scripts first, so await(1)
stays a call. The oracle goes from 9,075 to 9,117 files printed as
Prettier prints them, and from 55 to 26 that change when formatted
again.
LELuke Edwards authored
6a1c7baPatch
Parent463c277
6 files changed+96-23
StackedSplit
crates/tidy/src/js/ast/comments.rs+62 โˆ’5
crates/tidy/src/js/ast/expr.rs+4 โˆ’1
crates/tidy/src/js/ast/node.rs+3 โˆ’0
crates/tidy/src/js/ast/stmt.rs+3 โˆ’3
crates/tidy/src/js/ast_nodes.rs+5 โˆ’1
crates/tidy/src/js/mod.rs+19 โˆ’13