jsxhint can be used independently.

jsxhint uses its own jshint dep and does not require jshint to be
system-wide available. Removed the check for `jshint`.
This commit is contained in:
Riobard 2014-04-05 03:38:08 -02:30
parent 6d05d1735a
commit d2c0d4d83e

View File

@ -18,10 +18,6 @@ let s:save_cpo = &cpo
set cpo&vim set cpo&vim
function! SyntaxCheckers_javascript_jsxhint_IsAvailable() dict function! SyntaxCheckers_javascript_jsxhint_IsAvailable() dict
if !executable('jshint') || !syntastic#util#versionIsAtLeast(syntastic#util#getVersion('jshint --version'), [1, 1])
return 0
endif
let jsxhint_version = system(self.getExecEscaped() . ' --version') let jsxhint_version = system(self.getExecEscaped() . ' --version')
return return
\ v:shell_error == 0 && \ v:shell_error == 0 &&