aboutsummaryrefslogtreecommitdiff
path: root/.vim/autoload/neomake/makers/ft/scss.vim
blob: e33ea6fc22676acacd78f85d566fe7a2e453145d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
" vim: ts=4 sw=4 et

function! neomake#makers#ft#scss#EnabledMakers() abort
    return executable('stylelint') ? ['stylelint'] : executable('sass-lint') ? ['sasslint'] : ['scsslint']
endfunction

function! neomake#makers#ft#scss#sasslint() abort
    return {
        \ 'exe': 'sass-lint',
        \ 'args': ['--no-exit', '--verbose', '--format', 'compact'],
        \ 'errorformat': neomake#makers#ft#javascript#eslint()['errorformat']
        \ }
endfunction

function! neomake#makers#ft#scss#scsslint() abort
    return {
        \ 'exe': 'scss-lint',
        \ 'errorformat': '%A%f:%l:%v [%t] %m,' .
        \                '%A%f:%l [%t] %m'
    \ }
endfunction

function! neomake#makers#ft#scss#stylelint() abort
    return neomake#makers#ft#css#stylelint()
endfunction