Empty JSON/graphql file throws error #4448
Labels
lang:graphql
Issues affecting GraphQL
lang:json
Issues affecting JSON
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
If a JSON file is empty or just has whitespace, Prettier throws an error. I think we should just output an empty file in this case. This issue causes prettier/pretty-quick#28.
Prettier 1.12.1
Playground link
Input:
Output:
The text was updated successfully, but these errors were encountered: