Thanks! It wasn't working for me at first. When checking the console I was getting the error bash
/usr/bin/env: node: No such file or directory
To quote a similar problem at https://github.com/jshint/jshint/issues/1230
"The fix was to make it look for 'nodejs' rather than 'node' by editing the first line of /usr/local/lib/node_modules/jshint/bin/jshint"
It worked for me!