Open mcdado opened 10 years ago
Sure, I'd merge a PR like that :)
You'd have to keep in mind that fixmyjs operates on files as well as directories and I believe it's recursive by default.
I hope this contribution is good enough… https://github.com/jshint/fixmyjs/pull/120
this should probably operate on directories since that's how the cli currently works, it should use something like mkdirp to create directories if they don't exist.
When used from command line,
fixmyjs
always works in-place, overwriting the file passed to. While it's arguable if that's the right approach, how about just adding a flag like-o
to specify the output file, something that tools likejs-beautify
do?