lukeed/tidyPublic

feat: wire up JS and TS

tidy finds JavaScript, JSX, TypeScript and TSX files by Prettier's
names and extensions, but Flow's .js.flow. js::Options has Prettier's
options under tidy's names, with Prettier's defaults; the CLI and the
Node binding take the babel, typescript and babel-ts parsers, and a
config has a js section. The js feature is on in the CLI, the Node
binding and the parse bench, and still off by default in the library.
LELuke Edwards authored
1891994Patch
Parent24361c4
11 files changed+624-77
StackedSplit
bench/parse/Cargo.lock+18 โˆ’0
bench/parse/Cargo.toml+1 โˆ’1
crates/tidy/src/config.rs+102 โˆ’17
crates/tidy/src/js/mod.rs+297 โˆ’34
crates/tidy/src/options.rs+46 โˆ’4
crates/tidy/tests/config.rs+34 โˆ’0
crates/tidy/tests/js.rs+94 โˆ’0
crates/tidy_cli/Cargo.toml+1 โˆ’1
crates/tidy_cli/src/main.rs+17 โˆ’14
crates/tidy_napi/Cargo.toml+1 โˆ’1
crates/tidy_napi/src/lib.rs+13 โˆ’5