lukeed/tidyPublic

fix: match Vue scripts

Format the v-for value as one doc, start attribute values after their
name=" (new prefix and suffix fields on embed requests), break
attributes that end in a line comment, and hug templates with nested
substitutions. All 180 Vue fixtures and 230 corpus files now match
Prettier without the hook.
LELuke Edwards authored
73675b9Patch
Parent48fa699
13 files changed+370-90
StackedSplit
crates/tidy/src/css/mod.rs+2 −0
crates/tidy/src/embed.rs+39 −7
crates/tidy/src/handlebars/mod.rs+1 −1
crates/tidy/src/handlebars/printer.rs+6 −0
crates/tidy/src/html/embed.rs+145 −32
crates/tidy/src/js/template/js.rs+139 −43
crates/tidy/src/js/template/mod.rs+1 −1
crates/tidy/src/options.rs+2 −0
crates/tidy/src/xml/print.rs+2 −0
crates/tidy/tests/embedded_js.rs+7 −0
crates/tidy_napi/src/lib.rs+7 −0
tests/oracle/conformance.ts+8 −4
tests/oracle/embedded.ts+11 −2