Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prettier is replacing --- with ... in yaml files, which is invalid #4955

Closed
thebigredgeek opened this issue Aug 8, 2018 · 2 comments
Closed
Labels
lang:yaml Issues affecting YAML locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. type:duplicate Issues that are a duplicate of a previous issue

Comments

@thebigredgeek
Copy link

Input:

---
foo: bar

Output:

...
foo: bar

Expected behavior:

The --- shouldn't be replaced, as this produces invalid yaml

@m-allanson
Copy link

m-allanson commented Aug 8, 2018

Playground demo - see line 2

@kachkaev
Copy link
Member

kachkaev commented Aug 8, 2018

Hi @thebigredgeek! This issue has already been reported in #4920 and closed in #4921 😉

The fix should be available soon in 1.14.1!

@j-f1 j-f1 added lang:yaml Issues affecting YAML type:duplicate Issues that are a duplicate of a previous issue labels Aug 8, 2018
@j-f1 j-f1 closed this as completed Aug 8, 2018
@j-f1 j-f1 marked this as a duplicate of #4920 Aug 8, 2018
@lock lock bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Nov 6, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Nov 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lang:yaml Issues affecting YAML locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. type:duplicate Issues that are a duplicate of a previous issue
Projects
None yet
Development

No branches or pull requests

4 participants