diff --git a/README.md b/README.md index 5b9ceb35..3a6b2587 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,7 @@ name. That seems to be the fairest way to arrange this table. | JavaScript | [eslint](http://eslint.org/), [jscs](http://jscs.info/), [jshint](http://jshint.com/) | | Python | [flake8](http://flake8.pycqa.org/en/latest/) | | Ruby | [rubocop](https://github.com/bbatsov/rubocop) | +| SASS/SCSS | [sass-lint](https://www.npmjs.com/package/sass-lint) | | TypeScript | [tslint](https://github.com/palantir/tslint)^ | | Vim | [vint](https://github.com/Kuniwak/vint)^ | diff --git a/ale_linters/sass/sassLint.vim b/ale_linters/sass/sassLint.vim new file mode 100644 index 00000000..fee50162 --- /dev/null +++ b/ale_linters/sass/sassLint.vim @@ -0,0 +1,14 @@ +" Author: KabbAmine - https://github.com/KabbAmine + +if exists('g:loaded_ale_linters_sass_sassLint') + finish +endif + +let g:loaded_ale_linters_sass_sassLint = 1 + +call ALEAddLinter('sass', { +\ 'name': 'sassLint', +\ 'executable': 'sass-lint', +\ 'command': g:ale#util#stdin_wrapper . ' .sass sass-lint -v -q -f compact', +\ 'callback': 'ale_linters#css#csslint#Handle', +\}) 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', +\})