lukeed/tidyPublic

feat: share options with JS

Prettier has one option set, so proseWrap and htmlWhitespaceSensitivity
also apply to the Markdown and HTML in JS templates, and
singleAttributePerLine to JSX. tidy takes the first two from the
Markdown and HTML options, and the shared singleAttributePerLine now
reaches JSX. A rest element with a trailing comma (TS1013, Babel's
RestTrailingComma) and one that isn't last (TS1014) are recoverable.
The conformance oracle runs Prettier's JS, JSX and TypeScript
fixtures with their options.
LELuke Edwards authored
5272ddfPatch
Parent44fc87d
6 files changed+124-12
StackedSplit
crates/tidy/src/js/embed/mod.rs+14 โˆ’2
crates/tidy/src/js/mod.rs+32 โˆ’3
crates/tidy/src/js/options.rs+0 โˆ’3
crates/tidy/src/options.rs+4 โˆ’2
crates/tidy/tests/js.rs+15 โˆ’0
tests/oracle/conformance.ts+59 โˆ’2