X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/0ee596c5c5e11fc79598407eaf22f83d279f7e9e..5a4872f466ebd76ddd532bdf2798554421c53df4:/.vim/bundle/ale/ale_linters/sass/stylelint.vim diff --git a/.vim/bundle/ale/ale_linters/sass/stylelint.vim b/.vim/bundle/ale/ale_linters/sass/stylelint.vim new file mode 100644 index 00000000..651d7fd5 --- /dev/null +++ b/.vim/bundle/ale/ale_linters/sass/stylelint.vim @@ -0,0 +1,14 @@ +" Author: diartyz + +call ale#Set('sass_stylelint_executable', 'stylelint') +call ale#Set('sass_stylelint_use_global', get(g:, 'ale_use_global_executables', 0)) + +call ale#linter#Define('sass', { +\ 'name': 'stylelint', +\ 'output_stream': 'both', +\ 'executable': {b -> ale#path#FindExecutable(b, 'sass_stylelint', [ +\ 'node_modules/.bin/stylelint', +\ ])}, +\ 'command': '%e --stdin-filename %s', +\ 'callback': 'ale#handlers#css#HandleStyleLintFormat', +\})