diff options
Diffstat (limited to 'ale_linters/javascript/xo.vim')
-rw-r--r-- | ale_linters/javascript/xo.vim | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ale_linters/javascript/xo.vim b/ale_linters/javascript/xo.vim index 648e0d14..cf305eb4 100644 --- a/ale_linters/javascript/xo.vim +++ b/ale_linters/javascript/xo.vim @@ -17,14 +17,10 @@ function! ale_linters#javascript#xo#GetCommand(buffer) abort \ . ' --reporter unix --stdin --stdin-filename %s' endfunction -function! ale_linters#javascript#xo#Handle(buffer, lines) abort - " xo uses eslint and the output format is the same - return ale_linters#javascript#eslint#Handle(a:buffer, a:lines) -endfunction - +" xo uses eslint and the output format is the same call ale#linter#Define('javascript', { \ 'name': 'xo', \ 'executable_callback': 'ale_linters#javascript#xo#GetExecutable', \ 'command_callback': 'ale_linters#javascript#xo#GetCommand', -\ 'callback': 'ale_linters#javascript#xo#Handle', +\ 'callback': 'ale#handlers#eslint#Handle', \}) |