lukeed/tidyPublic

feat: build Prettier's YAML tree

Ports yaml-unist-parser 3.2.0's transforms, comment attachment and
position updates, on top of the composer, and replaces the
validate helper with tidy::yaml::parse. The tree, with positions
in UTF-16 columns and offsets, values, and every comment's place,
matches Prettier's on all 1,140 inputs it accepts.
LELuke Edwards authored
c8d1d1fPatch
Parentfececc0
8 files changed+1566-21
StackedSplit
crates/tidy/src/yaml/ast.rs+241 −0
crates/tidy/src/yaml/attach.rs+256 −0
crates/tidy/src/yaml/mod.rs+60 −17
crates/tidy/src/yaml/transform.rs+787 −0
tests/oracle/yaml/Cargo.lock+1 −0
tests/oracle/yaml/Cargo.toml+2 −1
tests/oracle/yaml/ast.ts+53 −0
tests/oracle/yaml/src/main.rs+166 −3