lukeed/tidyPublic

fix: stable comments by links

A comment on its own line before .name in a member chain, or before
the <T> of a call, printed glued to what comes before it; the next
formatting found it there and added a space. And a block comment at
the end of a callee's line printed before <T>, where the next
formatting found it leading <T>. tidy prints Prettier's fixed point
for all three (js-stable-output).
LELuke Edwards authored
81ce512Patch
Parentd49dfb9
4 files changed+54-0
StackedSplit
crates/tidy/src/js/attach/rules.rs+10 −0
crates/tidy/src/js/print/type_parameters.rs+13 −0
crates/tidy/src/js/utils/member_chain/groups.rs+12 −0
crates/tidy/tests/js.rs+19 −0