YAML: Unstable array formatting #8377
Labels
lang:yaml
Issues affecting YAML
locked-due-to-inactivity
Please open a new issue and fill out the template instead of commenting.
type:bug
Issues identifying ugly output, or a defect in the program
Prettier 2.0.5
Playground link
Input:
Output:
Prettier 2.0.5
Playground link
Input:
Output:
Second Output:
original post by @cinderblock #6952 (comment)
Another manifestation of what I presume is the same bug. You can't even fix it with
prettier-ignore
.Input
Output
I expected no change. There seem to be two things happening here:
If I try to "fix" this with
# prettier-ignore
, it breaks even worse:Input
Output
This is also "unstable" as every time I autofix, Prettier replicates the comments. After "formatting" 5 times:
Output
The text was updated successfully, but these errors were encountered: