ESLint checker: line numbers are now 1-based.
This commit is contained in:
parent
a01107ffa6
commit
bfc55793ef
@ -19,7 +19,7 @@ if has('reltime')
|
|||||||
lockvar! g:_SYNTASTIC_START
|
lockvar! g:_SYNTASTIC_START
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let g:_SYNTASTIC_VERSION = '3.6.0-141'
|
let g:_SYNTASTIC_VERSION = '3.6.0-142'
|
||||||
lockvar g:_SYNTASTIC_VERSION
|
lockvar g:_SYNTASTIC_VERSION
|
||||||
|
|
||||||
" Sanity checks {{{1
|
" Sanity checks {{{1
|
||||||
|
@ -43,9 +43,15 @@ function! SyntaxCheckers_javascript_eslint_GetLocList() dict
|
|||||||
\ 'errorformat': errorformat,
|
\ 'errorformat': errorformat,
|
||||||
\ 'postprocess': ['guards'] })
|
\ 'postprocess': ['guards'] })
|
||||||
|
|
||||||
for e in loclist
|
if !exists('s:eslint_new')
|
||||||
let e['col'] += 1
|
let s:eslint_new = syntastic#util#versionIsAtLeast(self.getVersion(), [1])
|
||||||
endfor
|
endif
|
||||||
|
|
||||||
|
if !s:eslint_new
|
||||||
|
for e in loclist
|
||||||
|
let e['col'] += 1
|
||||||
|
endfor
|
||||||
|
endif
|
||||||
|
|
||||||
return loclist
|
return loclist
|
||||||
endfunction
|
endfunction
|
||||||
|
Loading…
Reference in New Issue
Block a user