mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Add stylelint option to pass in more options
This commit is contained in:
@@ -3,6 +3,9 @@
|
||||
let g:ale_css_stylelint_executable =
|
||||
\ get(g:, 'ale_css_stylelint_executable', 'stylelint')
|
||||
|
||||
let g:ale_css_stylelint_options =
|
||||
\ get(g:, 'ale_css_stylelint_options', '')
|
||||
|
||||
let g:ale_css_stylelint_use_global =
|
||||
\ get(g:, 'ale_css_stylelint_use_global', 0)
|
||||
|
||||
@@ -20,6 +23,7 @@ endfunction
|
||||
|
||||
function! ale_linters#css#stylelint#GetCommand(buffer) abort
|
||||
return ale_linters#css#stylelint#GetExecutable(a:buffer)
|
||||
\ . ' ' . g:ale_css_stylelint_options
|
||||
\ . ' --stdin-filename %s'
|
||||
endfunction
|
||||
|
||||
|
||||
Reference in New Issue
Block a user