mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-07 21:24:33 +08:00
Use correct handler for 'xo' linter
This commit is contained in:
@@ -14,7 +14,7 @@ endfunction
|
|||||||
function! ale_linters#javascript#xo#GetCommand(buffer) abort
|
function! ale_linters#javascript#xo#GetCommand(buffer) abort
|
||||||
return ale#Escape(ale_linters#javascript#xo#GetExecutable(a:buffer))
|
return ale#Escape(ale_linters#javascript#xo#GetExecutable(a:buffer))
|
||||||
\ . ' ' . ale#Var(a:buffer, 'javascript_xo_options')
|
\ . ' ' . ale#Var(a:buffer, 'javascript_xo_options')
|
||||||
\ . ' --reporter unix --stdin --stdin-filename %s'
|
\ . ' --reporter json --stdin --stdin-filename %s'
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" xo uses eslint and the output format is the same
|
" xo uses eslint and the output format is the same
|
||||||
@@ -22,5 +22,5 @@ call ale#linter#Define('javascript', {
|
|||||||
\ 'name': 'xo',
|
\ 'name': 'xo',
|
||||||
\ 'executable': function('ale_linters#javascript#xo#GetExecutable'),
|
\ 'executable': function('ale_linters#javascript#xo#GetExecutable'),
|
||||||
\ 'command': function('ale_linters#javascript#xo#GetCommand'),
|
\ 'command': function('ale_linters#javascript#xo#GetCommand'),
|
||||||
\ 'callback': 'ale#handlers#eslint#Handle',
|
\ 'callback': 'ale#handlers#eslint#HandleJSON',
|
||||||
\})
|
\})
|
||||||
|
|||||||
@@ -19,5 +19,5 @@ call ale#linter#Define('typescript', {
|
|||||||
\ 'name': 'xo',
|
\ 'name': 'xo',
|
||||||
\ 'executable': function('ale_linters#typescript#xo#GetExecutable'),
|
\ 'executable': function('ale_linters#typescript#xo#GetExecutable'),
|
||||||
\ 'command': function('ale_linters#typescript#xo#GetCommand'),
|
\ 'command': function('ale_linters#typescript#xo#GetCommand'),
|
||||||
\ 'callback': 'ale#handlers#eslint#Handle',
|
\ 'callback': 'ale#handlers#eslint#HandleJSON',
|
||||||
\})
|
\})
|
||||||
|
|||||||
Reference in New Issue
Block a user