mirror of
https://github.com/hanzoai/prettier.git
synced 2026-10-30 14:46:22 +00:00
302 B
302 B
Preserve order of anchor and tag (#19599 by @fisker)
# Input
foo: &anchor1 !!str Value1
bar: !!str &anchor2 Value2
# Prettier stable
foo: !!str &anchor1 Value1
bar: !!str &anchor2 Value2
# Prettier main
foo: &anchor1 !!str Value1
bar: !!str &anchor2 Value2