From d2806fad600e361e5b419e528c0e999bb4ac9b7f Mon Sep 17 00:00:00 2001 From: w0rp Date: Wed, 21 Jun 2017 11:15:05 +0100 Subject: Fix the standard and xo handlers so they call the eslint function --- ale_linters/javascript/xo.vim | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'ale_linters/javascript/xo.vim') 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', \}) -- cgit v1.2.3