Add stylelint option to pass in more options
This commit is contained in:
parent
820896315d
commit
4e082b9217
@ -3,6 +3,9 @@
|
|||||||
let g:ale_css_stylelint_executable =
|
let g:ale_css_stylelint_executable =
|
||||||
\ get(g:, 'ale_css_stylelint_executable', 'stylelint')
|
\ 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 =
|
let g:ale_css_stylelint_use_global =
|
||||||
\ get(g:, 'ale_css_stylelint_use_global', 0)
|
\ get(g:, 'ale_css_stylelint_use_global', 0)
|
||||||
|
|
||||||
@ -20,6 +23,7 @@ endfunction
|
|||||||
|
|
||||||
function! ale_linters#css#stylelint#GetCommand(buffer) abort
|
function! ale_linters#css#stylelint#GetCommand(buffer) abort
|
||||||
return ale_linters#css#stylelint#GetExecutable(a:buffer)
|
return ale_linters#css#stylelint#GetExecutable(a:buffer)
|
||||||
|
\ . ' ' . g:ale_css_stylelint_options
|
||||||
\ . ' --stdin-filename %s'
|
\ . ' --stdin-filename %s'
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
@ -784,6 +784,12 @@ g:ale_css_stylelint_executable *g:ale_css_stylelint_executable*
|
|||||||
If you wish to use only a globally installed version of stylelint, set
|
If you wish to use only a globally installed version of stylelint, set
|
||||||
|g:ale_css_stylelint_use_global| to `1`.
|
|g:ale_css_stylelint_use_global| to `1`.
|
||||||
|
|
||||||
|
g:ale_css_stylelint_options *g:ale_css_stylelint_options*
|
||||||
|
|
||||||
|
Type: |String|
|
||||||
|
Default: `''`
|
||||||
|
|
||||||
|
This variable can be set to pass additional options to stylelint.
|
||||||
|
|
||||||
g:ale_css_stylelint_use_global *g:ale_css_stylelint_use_global*
|
g:ale_css_stylelint_use_global *g:ale_css_stylelint_use_global*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user