[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
This commit is contained in:
diartyz
2016-12-22 19:39:01 +08:00
committed by w0rp
parent cd6d8f2ab6
commit 6c0996eb9c
6 changed files with 195 additions and 12 deletions

View File

@@ -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