diff options
author | Nils Kuhnhenn <lain@volafile.org> | 2019-06-04 13:14:08 +0200 |
---|---|---|
committer | Nils Kuhnhenn <lain@volafile.org> | 2019-06-04 13:14:08 +0200 |
commit | 7d4a83ecd4261deabdc18872faabc10027d50fbd (patch) | |
tree | e32c3fb1c15e90809901d1ed7fe0e8205f8a28c7 /ale_linters | |
parent | 79d1b99067878bbec129cfd29a7c9587c276dec6 (diff) | |
download | ale-7d4a83ecd4261deabdc18872faabc10027d50fbd.zip |
Use correct handler for 'xo' linter
Diffstat (limited to 'ale_linters')
-rw-r--r-- | ale_linters/javascript/xo.vim | 4 | ||||
-rw-r--r-- | ale_linters/typescript/xo.vim | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ale_linters/javascript/xo.vim b/ale_linters/javascript/xo.vim index 4ba39101..e24f4a82 100644 --- a/ale_linters/javascript/xo.vim +++ b/ale_linters/javascript/xo.vim @@ -14,7 +14,7 @@ endfunction function! ale_linters#javascript#xo#GetCommand(buffer) abort return ale#Escape(ale_linters#javascript#xo#GetExecutable(a:buffer)) \ . ' ' . ale#Var(a:buffer, 'javascript_xo_options') - \ . ' --reporter unix --stdin --stdin-filename %s' + \ . ' --reporter json --stdin --stdin-filename %s' endfunction " xo uses eslint and the output format is the same @@ -22,5 +22,5 @@ call ale#linter#Define('javascript', { \ 'name': 'xo', \ 'executable': function('ale_linters#javascript#xo#GetExecutable'), \ 'command': function('ale_linters#javascript#xo#GetCommand'), -\ 'callback': 'ale#handlers#eslint#Handle', +\ 'callback': 'ale#handlers#eslint#HandleJSON', \}) diff --git a/ale_linters/typescript/xo.vim b/ale_linters/typescript/xo.vim index 7350ae6e..0a3a717b 100644 --- a/ale_linters/typescript/xo.vim +++ b/ale_linters/typescript/xo.vim @@ -19,5 +19,5 @@ call ale#linter#Define('typescript', { \ 'name': 'xo', \ 'executable': function('ale_linters#typescript#xo#GetExecutable'), \ 'command': function('ale_linters#typescript#xo#GetCommand'), -\ 'callback': 'ale#handlers#eslint#Handle', +\ 'callback': 'ale#handlers#eslint#HandleJSON', \}) |