Add sass/scss support with sass-lint

This commit is contained in:
Kabbaj Amine 2016-10-03 21:02:21 +03:00 committed by w0rp
parent 66ee919756
commit 406e5db352
3 changed files with 29 additions and 0 deletions

View File

@ -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)^ |

View File

@ -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',
\})

View File

@ -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',
\})