summaryrefslogtreecommitdiff
path: root/ale_linters/javascript
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2019-06-08 23:05:35 +0100
committerGitHub <noreply@github.com>2019-06-08 23:05:35 +0100
commit5826b4927ca7eb81c717f22a3b6051dd6d8f6c51 (patch)
tree00faa105f84e3cc4e403e0164e8e6527f48e939f /ale_linters/javascript
parent6eb68b4507633166d192e03f51b9416d15400028 (diff)
parent7d4a83ecd4261deabdc18872faabc10027d50fbd (diff)
downloadale-5826b4927ca7eb81c717f22a3b6051dd6d8f6c51.zip
Merge pull request #2551 from laino/eslint-json
Use JSON output for ESLint and fix tsserver column
Diffstat (limited to 'ale_linters/javascript')
-rw-r--r--ale_linters/javascript/eslint.vim2
-rw-r--r--ale_linters/javascript/xo.vim4
2 files changed, 3 insertions, 3 deletions
diff --git a/ale_linters/javascript/eslint.vim b/ale_linters/javascript/eslint.vim
index 8aeac2d8..31fb413f 100644
--- a/ale_linters/javascript/eslint.vim
+++ b/ale_linters/javascript/eslint.vim
@@ -6,5 +6,5 @@ call ale#linter#Define('javascript', {
\ 'output_stream': 'both',
\ 'executable': function('ale#handlers#eslint#GetExecutable'),
\ 'command': function('ale#handlers#eslint#GetCommand'),
-\ 'callback': 'ale#handlers#eslint#Handle',
+\ 'callback': 'ale#handlers#eslint#HandleJSON',
\})
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',
\})