Add sass/scss support with sass-lint
This commit is contained in:
parent
66ee919756
commit
406e5db352
@ -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/) |
|
| JavaScript | [eslint](http://eslint.org/), [jscs](http://jscs.info/), [jshint](http://jshint.com/) |
|
||||||
| Python | [flake8](http://flake8.pycqa.org/en/latest/) |
|
| Python | [flake8](http://flake8.pycqa.org/en/latest/) |
|
||||||
| Ruby | [rubocop](https://github.com/bbatsov/rubocop) |
|
| 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)^ |
|
| TypeScript | [tslint](https://github.com/palantir/tslint)^ |
|
||||||
| Vim | [vint](https://github.com/Kuniwak/vint)^ |
|
| Vim | [vint](https://github.com/Kuniwak/vint)^ |
|
||||||
|
|
||||||
|
14
ale_linters/sass/sassLint.vim
Normal file
14
ale_linters/sass/sassLint.vim
Normal 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',
|
||||||
|
\})
|
14
ale_linters/scss/sassLint.vim
Normal file
14
ale_linters/scss/sassLint.vim
Normal 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',
|
||||||
|
\})
|
Loading…
Reference in New Issue
Block a user