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