18 lines
527 B
VimL
18 lines
527 B
VimL
" Author: KabbAmine - https://github.com/KabbAmine, Ben Falconer
|
|
" <ben@falconers.me.uk>
|
|
|
|
function! ale_linters#sass#sasslint#GetCommand(buffer) abort
|
|
return ale#path#BufferCdString(a:buffer)
|
|
\ . ale#Escape('sass-lint')
|
|
\ . ' -v'
|
|
\ . ' -q'
|
|
\ . ' -f compact'
|
|
\ . ' %t'
|
|
endfunction
|
|
|
|
call ale#linter#Define('sass', {
|
|
\ 'name': 'sasslint',
|
|
\ 'executable': 'sass-lint',
|
|
\ 'command_callback': 'ale_linters#sass#sasslint#GetCommand',
|
|
\ 'callback': 'ale#handlers#css#HandleCSSLintFormat',
|
|
\})
|