lukeed/tidyPublic

feat: format JS and TS end to end

js::format parses with oxc, keeping parentheses, indexes the tree and
prints it with bun's printer. JavaScript reads JSX, as Babel does in
Prettier, and parses as a module first, then as a script; TypeScript
reads JSX in .tsx only. On the first 400 files of the bench corpora,
218 JavaScript and 98 TypeScript files print as Prettier prints them,
with no errors.
LELuke Edwards authored
d05bb60Patch
Parent2c55fb4
2 files changed+52-1
StackedSplit
crates/tidy/src/js/mod.rs+51 −0
crates/tidy/src/lib.rs+1 −1