summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authorNils Kuhnhenn <lain@volafile.org>2019-06-02 09:35:31 +0200
committerNils Kuhnhenn <lain@volafile.org>2019-06-02 14:39:03 +0200
commit79d1b99067878bbec129cfd29a7c9587c276dec6 (patch)
tree0e4622fe0d7a8d71d7018840c86ee0aeb2aee662 /ale_linters
parent135de34d224a6dd5a7a16b44e84e603a6609b34f (diff)
downloadale-79d1b99067878bbec129cfd29a7c9587c276dec6.zip
Use JSON output for eslint and fix tsserver column
Diffstat (limited to 'ale_linters')
-rw-r--r--ale_linters/javascript/eslint.vim2
-rw-r--r--ale_linters/typescript/eslint.vim2
-rw-r--r--ale_linters/typescript/xo.vim2
3 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/typescript/eslint.vim b/ale_linters/typescript/eslint.vim
index bf849337..33a21440 100644
--- a/ale_linters/typescript/eslint.vim
+++ b/ale_linters/typescript/eslint.vim
@@ -5,5 +5,5 @@ call ale#linter#Define('typescript', {
\ 'name': 'eslint',
\ '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/typescript/xo.vim b/ale_linters/typescript/xo.vim
index 8b015efd..7350ae6e 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