summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters')
-rw-r--r--ale_linters/css/stylelint.vim8
-rw-r--r--ale_linters/sass/stylelint.vim8
-rw-r--r--ale_linters/scss/stylelint.vim8
3 files changed, 24 insertions, 0 deletions
diff --git a/ale_linters/css/stylelint.vim b/ale_linters/css/stylelint.vim
new file mode 100644
index 00000000..8d656651
--- /dev/null
+++ b/ale_linters/css/stylelint.vim
@@ -0,0 +1,8 @@
+" Author: diartyz <diartyz@gmail.com>
+
+call ale#linter#Define('css', {
+\ 'name': 'stylelint',
+\ 'executable': 'stylelint',
+\ 'command': g:ale#util#stdin_wrapper . ' .css stylelint',
+\ 'callback': 'ale#handlers#HandleStyleLintFormat',
+\})
diff --git a/ale_linters/sass/stylelint.vim b/ale_linters/sass/stylelint.vim
new file mode 100644
index 00000000..ae0b655a
--- /dev/null
+++ b/ale_linters/sass/stylelint.vim
@@ -0,0 +1,8 @@
+" Author: diartyz <diartyz@gmail.com>
+
+call ale#linter#Define('sass', {
+\ 'name': 'stylelint',
+\ 'executable': 'stylelint',
+\ 'command': g:ale#util#stdin_wrapper . ' .sass stylelint',
+\ 'callback': 'ale#handlers#HandleStyleLintFormat',
+\})
diff --git a/ale_linters/scss/stylelint.vim b/ale_linters/scss/stylelint.vim
new file mode 100644
index 00000000..135fb8e7
--- /dev/null
+++ b/ale_linters/scss/stylelint.vim
@@ -0,0 +1,8 @@
+" Author: diartyz <diartyz@gmail.com>
+
+call ale#linter#Define('scss', {
+\ 'name': 'stylelint',
+\ 'executable': 'stylelint',
+\ 'command': g:ale#util#stdin_wrapper . ' .scss stylelint',
+\ 'callback': 'ale#handlers#HandleStyleLintFormat',
+\})