Comment on Google releases its own Javascript Lint tool Comments−stevelosh16yHere's a couple of lines to let you use this with :make (on a single file) and the QuickFix window in Vim: au BufNewFile,BufRead *.js set makeprg=gjslint\ % au BufNewFile,BufRead *.js set errorformat=%-P-----\ FILE\ \ :\ \ %f\ -----,Line\ %l\\,\ E:%n:\ %m,%-Q,%-GFound\ %s,%-GSome\ %s,%-Gfixjsstyle%s,%-Gscript\ can\ %s,%-G If any experts in Vim's makeprg/errorformat want to clean this up, that would be awesome. I just hacked it together and it seems to work well enough.
Comments
Here's a couple of lines to let you use this with :make (on a single file) and the QuickFix window in Vim:
If any experts in Vim's makeprg/errorformat want to clean this up, that would be awesome. I just hacked it together and it seems to work well enough.