diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index 2e536920..4863e1a8 100644 --- a/plugin/syntastic.vim +++ b/plugin/syntastic.vim @@ -19,7 +19,7 @@ if has('reltime') lockvar! g:_SYNTASTIC_START endif -let g:_SYNTASTIC_VERSION = '3.7.0-22' +let g:_SYNTASTIC_VERSION = '3.7.0-23' lockvar g:_SYNTASTIC_VERSION " Sanity checks {{{1 diff --git a/syntax_checkers/javascript/standard.vim b/syntax_checkers/javascript/standard.vim index 0469f653..515e8462 100644 --- a/syntax_checkers/javascript/standard.vim +++ b/syntax_checkers/javascript/standard.vim @@ -14,14 +14,22 @@ if exists('g:loaded_syntastic_javascript_standard_checker') endif let g:loaded_syntastic_javascript_standard_checker = 1 +if !exists('g:syntastic_javascript_eslint_generic') + let g:syntastic_javascript_standard_generic = 0 +endif + let s:save_cpo = &cpo set cpo&vim function! SyntaxCheckers_javascript_standard_IsAvailable() dict + if g:syntastic_javascript_standard_generic + call self.log('generic standard, exec =', self.getExec()) + endif + if !executable(self.getExec()) return 0 endif - return syntastic#util#versionIsAtLeast(self.getVersion(), [2, 6, 1]) + return g:syntastic_javascript_standard_generic || syntastic#util#versionIsAtLeast(self.getVersion(), [2, 6, 1]) endfunction function! SyntaxCheckers_javascript_standard_GetLocList() dict