Friday, June 08, 2012

JSLint Vim plugin

I got involved in helping with the web project recently with lots of javascript (client and server-side frameworks etc) pretty much everywhere.
Yeah it's kind of amazing what javascript has become, amazing and a bit terrifying, cause the things can get real messy real fast without proper coding discipline on the team.

Anyways, I started to use jslint a lot in order to keep things cleaner and neater.
Here is an extremely useful Vim plugin that I use a lot recently:
https://github.com/hallettj/jslint.vim 
The inline highlighting with quickfix window support are awesome features and you can use ~/.jslintrc file to define your globals "directives" for jslint to avoid polluting the source code with it.

Enjoy!