diff options
author | w0rp <w0rp@users.noreply.github.com> | 2019-06-08 23:05:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-08 23:05:35 +0100 |
commit | 5826b4927ca7eb81c717f22a3b6051dd6d8f6c51 (patch) | |
tree | 00faa105f84e3cc4e403e0164e8e6527f48e939f /ale_linters/typescript/xo.vim | |
parent | 6eb68b4507633166d192e03f51b9416d15400028 (diff) | |
parent | 7d4a83ecd4261deabdc18872faabc10027d50fbd (diff) | |
download | ale-5826b4927ca7eb81c717f22a3b6051dd6d8f6c51.zip |
Merge pull request #2551 from laino/eslint-json
Use JSON output for ESLint and fix tsserver column
Diffstat (limited to 'ale_linters/typescript/xo.vim')
-rw-r--r-- | ale_linters/typescript/xo.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ale_linters/typescript/xo.vim b/ale_linters/typescript/xo.vim index 8b015efd..0a3a717b 100644 --- a/ale_linters/typescript/xo.vim +++ b/ale_linters/typescript/xo.vim @@ -11,7 +11,7 @@ endfunction function! ale_linters#typescript#xo#GetCommand(buffer) abort return ale#Escape(ale_linters#typescript#xo#GetExecutable(a:buffer)) \ . ale#Pad(ale#Var(a:buffer, 'typescript_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 @@ -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', \}) |