You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LCD 47 edited this page Jun 12, 2016
·
10 revisions
This file is no longer maintained
This file exists only as a historic reference. Documentation for syntastic
checkers is now included in the manual, please see :help syntastic-checkers
in Vim.
JSHint can detect JavaScript errors and potential problems in HTML
files. See the project's page for details.
Syntastic requires JSHint version 2.4.0 or later.
Note
If you're checking files containing tab characters then JSHint's
idea of tabstop must match Vim's tabstop, otherwise syntastic will
highlight the errors at shifted positions. By default JSHint's
tabstop is 4, while Vim's default tabstop is 8.
In order to change JSHint's tabstop you have to change its
indent config option. One way to do that is to put it in a file
named .jshintrc in the current directory, the parent directories, or
your home directory. The file is supposed to be in JSON format. For
example:
Please note however that setting indent also triggers the
indentation checks in JSHint. If that is undesirable, your only
other option is to leave JSHint's tabstop alone, and change Vim's
tabstop to 4. To change Vim's tabstop, you can add this to your
vimrc: