You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
my expectation is that prettier does not change the meaning of a yaml document.
the list indent fix here changes the meaning of the document, the config-yml values are promoted, and with gains new keys.
this can also result in invalid yaml documents, if the multi-line string is not also valid yaml. for instance,
list:
- with:
config-yml: |2 hello
will be transformed into
list:
- with:
config-yml: |2hello
which is not a valid yaml document.
The text was updated successfully, but these errors were encountered:
Prettier 3.2.5
Playground link
Input:
Output:
Expected output:
Why?
my expectation is that prettier does not change the meaning of a yaml document.
the list indent fix here changes the meaning of the document, the
config-yml
values are promoted, andwith
gains new keys.this can also result in invalid yaml documents, if the multi-line string is not also valid yaml. for instance,
will be transformed into
which is not a valid yaml document.
The text was updated successfully, but these errors were encountered: