lukeed/tidyPublic

fix: parse what Prettier does

Prettier's typescript parser ignores the grammar errors that only
TypeScript's checker reports, and its babel parser recovers from
redeclarations, missing initializers, new.target outside a function
and bad template escapes. oxc reports these, so tidy rejected 19 such
files. It now formats them, and parses its output again to check that
the same errors remain, so nothing oxc's tree can't hold is dropped.
The JS oracle lists the files only tidy accepts.
LELuke Edwards authored
bb943a4Patch
Parentda05f46
5 files changed+106-7
StackedSplit
Cargo.lock+1 −0
crates/tidy/Cargo.toml+2 −0
crates/tidy/src/js/mod.rs+81 −7
crates/tidy/tests/js.rs+21 −0
tests/oracle/js.ts+1 −0