Closed mhyousefi closed 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!? 😃
Can repro.
@mhyousefi give v2.0.2 a try, thanks for the issue report!
It is a bit annoying that
pretty-json
tries to format.conf
files, and since they are clearly notjson
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.