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:
parent
6d05d1735a
commit
d2c0d4d83e
@ -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 &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user