This question has been asked, in one form or another, a dozen times here, and it blows my mind how not a single one actually addresses how to configure syntastic or jslint such that it actually does what it is supposed to do (its README file is completely useless)
Can anyone provide some step by step instructions, or a link to such instructions. I tried to install jslint and spidermonkey, and I got nowhere.
I managed to get the syntax check to work (thanks to romainl). A few things I learned along the way that may help anyone with a similar problem
- To build Javascript Lint look for the README file nested in
jsl-x.x.x/src/README.html
- The build instructions are
gmake -f Makefile.ref
butgmake
is the same thing asmake
so issue the commandsudo ln -s /usr/bin/make /usr/bin/gmake
- jsl will now be found in
jsl-0.3.0/src/Linux_All_DBG.OBJ/jsl
. To make it generally accessible do something like:ln -s /whatever/jsl-0.3.0/src/Linux_All_DBG.OBJ /home/ForestGump/bin/jsl
. More information here - To check that jsl actually works find a test file ( here) then issue the command
jsl -process test.js
. It should list all the errors. - To customize your command line, add this to your vimrc file
set statusline=%{SyntasticStatuslineFlag()}