diff options
author | diartyz <diartyz@gmail.com> | 2016-12-22 19:39:01 +0800 |
---|---|---|
committer | w0rp <w0rp@users.noreply.github.com> | 2016-12-22 11:39:01 +0000 |
commit | 6c0996eb9c3181c8dde1302b544787be758cc37b (patch) | |
tree | 0a9ffc481e59c3c1fa34aec414a40441ef29fd64 /autoload | |
parent | cd6d8f2ab62e30571da9384c561da03b36f60b1c (diff) | |
download | ale-6c0996eb9c3181c8dde1302b544787be758cc37b.zip |
[enhancement] add node_modules support for stylelint & htmlhint (#226)
* Add node_modules support for stylelint
* add node_modules support for htmlhint
* fix stdin
* update doc about stylelint & htmlhint
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/handlers.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/autoload/ale/handlers.vim b/autoload/ale/handlers.vim index b7da32f2..4f1611f3 100644 --- a/autoload/ale/handlers.vim +++ b/autoload/ale/handlers.vim @@ -203,8 +203,8 @@ function! ale#handlers#HandleStyleLintFormat(buffer, lines) abort continue endif - let l:text = l:match[4] - let l:type = l:match[3] + let l:type = l:match[3] ==# '✖' ? 'E' : 'W' + let l:text = l:match[4] . '[' . l:match[5] . ']' " vcol is Needed to indicate that the column is a character. call add(l:output, { @@ -213,7 +213,7 @@ function! ale#handlers#HandleStyleLintFormat(buffer, lines) abort \ 'vcol': 0, \ 'col': l:match[2] + 0, \ 'text': l:text, - \ 'type': l:type ==# '✖' ? 'E' : 'W', + \ 'type': l:type, \ 'nr': -1, \}) endfor |