From 79d1b99067878bbec129cfd29a7c9587c276dec6 Mon Sep 17 00:00:00 2001 From: Nils Kuhnhenn Date: Sun, 2 Jun 2019 09:35:31 +0200 Subject: Use JSON output for eslint and fix tsserver column --- ale_linters/typescript/xo.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ale_linters/typescript/xo.vim') 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 -- cgit v1.2.3 From 7d4a83ecd4261deabdc18872faabc10027d50fbd Mon Sep 17 00:00:00 2001 From: Nils Kuhnhenn Date: Tue, 4 Jun 2019 13:14:08 +0200 Subject: Use correct handler for 'xo' linter --- ale_linters/typescript/xo.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ale_linters/typescript/xo.vim') 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', \}) -- cgit v1.2.3