federomero / pretty-json

Atom plugin. Format JSON documents.
MIT License
94 stars 23 forks source link

pretty-json attempts to format .conf files and fails #79

Closed mhyousefi closed 6 years ago

mhyousefi commented 6 years ago

It is a bit annoying that pretty-json tries to format .conf files, and since they are clearly not json files, it fails to do so and subsequently shows a large error message. So every time, I try to save stuff in .conf files, I have to see the error.

Please fix it.

mhyousefi commented 6 years ago

Same thing happens with .gitignore, and perhaps other file formats. Why not check if the current file is .json and then carry out the PRETTIFICATION process!? 😃

lexicalunit commented 6 years ago

Can repro.

lexicalunit commented 6 years ago

@mhyousefi give v2.0.2 a try, thanks for the issue report!