Bug: Plugin removes all content of the Pug files! #168
Labels
dependencies
Pull requests that update a dependency file
type: bug
Functionality that does not work as intended/expected
Info
Prettier config
Input
Output or Error
The diff is:
Expected Output
Anything else at all.
Additional Context
Just running
prettier src/fun/index.pug --write
removes all content from the pug file. Reproducible across the project (running on all files with a glob clears all pug files).Severity
I think this is a very severe bug. I was running this on a git repo and all my files I'd edited this session were open in my editor but its quite likely someone might accidentally run this before their first commit or after significant work but before committing. Bailing out would be better than blanking the files.
The text was updated successfully, but these errors were encountered: