diff options
author | w0rp <devw0rp@gmail.com> | 2016-10-20 18:07:45 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2016-10-20 18:07:55 +0100 |
commit | 7a06d276c255827df5c7c397e4871e5e887dcb39 (patch) | |
tree | 034b3fadbaaf59fe590d40e5c1b570845aeb02e8 /ale_linters/javascript | |
parent | a34fb0a6a7f920cd4d9a3e50facf51f8d5defea2 (diff) | |
download | ale-7a06d276c255827df5c7c397e4871e5e887dcb39.zip |
#131 Keep the error types in the message for eslint
Diffstat (limited to 'ale_linters/javascript')
-rw-r--r-- | ale_linters/javascript/eslint.vim | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/ale_linters/javascript/eslint.vim b/ale_linters/javascript/eslint.vim index c5a25555..d57b84ad 100644 --- a/ale_linters/javascript/eslint.vim +++ b/ale_linters/javascript/eslint.vim @@ -25,14 +25,8 @@ function! ale_linters#javascript#eslint#Handle(buffer, lines) continue endif - let l:text = l:match[3] - let l:marker = l:match[4] - let l:marker_parts = split(l:marker, '/') - let l:type = l:marker_parts[0] - - if len(l:marker_parts) == 2 - let l:text = l:text . ' (' . l:marker_parts[1] . ')' - endif + let l:type = split(l:match[4], '/')[0] + let l:text = l:match[3] . ' [' . l:match[4] . ']' " vcol is Needed to indicate that the column is a character. call add(l:output, { |