summaryrefslogtreecommitdiff
path: root/ale_linters/scss
diff options
context:
space:
mode:
authorKabbaj Amine <amine.kabb@gmail.com>2016-10-03 21:02:21 +0300
committerw0rp <devw0rp@gmail.com>2016-10-03 23:12:10 +0100
commit406e5db35215c74a025159d4ffdffaffc535be93 (patch)
tree3e9662bdca81f6350b9386d1f5ac3f40beb51dd2 /ale_linters/scss
parent66ee919756b1198b4b7cd1a3ac49368f704db5b1 (diff)
downloadale-406e5db35215c74a025159d4ffdffaffc535be93.zip
Add sass/scss support with sass-lint
Diffstat (limited to 'ale_linters/scss')
-rw-r--r--ale_linters/scss/sassLint.vim14
1 files changed, 14 insertions, 0 deletions
diff --git a/ale_linters/scss/sassLint.vim b/ale_linters/scss/sassLint.vim
new file mode 100644
index 00000000..b49728fb
--- /dev/null
+++ b/ale_linters/scss/sassLint.vim
@@ -0,0 +1,14 @@
+" Author: KabbAmine - https://github.com/KabbAmine
+
+if exists('g:loaded_ale_linters_scss_sassLint')
+ finish
+endif
+
+let g:loaded_ale_linters_scss_sassLint = 1
+
+call ALEAddLinter('scss', {
+\ 'name': 'sassLint',
+\ 'executable': 'sass-lint',
+\ 'command': g:ale#util#stdin_wrapper . ' .scss sass-lint -v -q -f compact',
+\ 'callback': 'ale_linters#css#csslint#Handle',
+\})