summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2017-02-12 17:49:22 +0000
committerGitHub <noreply@github.com>2017-02-12 17:49:22 +0000
commitf0bd08ec11683d85667c552d9e2999a907496aab (patch)
treec4362ae374120734c43a6851d53f92c91ed78ed5 /ale_linters
parent820896315ddef670e1e5283ee317025562fe2015 (diff)
parent4e082b9217e95c442bc3fab1a7ea55a26ef8703e (diff)
downloadale-f0bd08ec11683d85667c552d9e2999a907496aab.zip
Merge pull request #331 from AlexMasterov/feature/css-stylelint-options
Add stylelint option to pass in more options
Diffstat (limited to 'ale_linters')
-rw-r--r--ale_linters/css/stylelint.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/ale_linters/css/stylelint.vim b/ale_linters/css/stylelint.vim
index e138d6d0..ef496302 100644
--- a/ale_linters/css/stylelint.vim
+++ b/ale_linters/css/stylelint.vim
@@ -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