jsonlint icon indicating copy to clipboard operation
jsonlint copied to clipboard

Add -n/--insert-final-newline option

Open yassh opened this issue 9 years ago • 3 comments

for #81

yassh avatar Aug 27 '16 14:08 yassh

That would be nice.

Now I am doing:

jsonlint --sort-keys --in-place --indent '  ' ./stylelintrc.json && echo "" >> ./stylelintrc.json

gajus avatar Sep 14 '16 15:09 gajus

Would love to see this merged. I have some files I want to start automatically formatting but they have newlines at the end and I don't want to change that and while the workaround from @gajus is alright, an option would be much nicer.

michaelmior avatar Nov 18 '18 03:11 michaelmior

Hey @zaach, this patch could make jsonlint more powerful and helpful! Do you have a chance to take a review on it? Many thanks!

PeterDaveHello avatar Mar 23 '21 07:03 PeterDaveHello