Skip to content

Commit

Permalink
Add stylelint support
Browse files Browse the repository at this point in the history
  • Loading branch information
ponko2 committed Sep 3, 2016
1 parent 603f5ac commit ac65c57
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Async syntax check plugin.
* coffeelint
* css
* csslint
* stylelint
* D
* dmd
* go
Expand Down Expand Up @@ -80,6 +81,7 @@ Async syntax check plugin.
* scss
* scss
* scss-lint
* stylelint
* sh
* sh
* shellcheck
Expand Down
13 changes: 13 additions & 0 deletions autoload/watchdogs.vim
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ let g:watchdogs#default_config = {
\ "css/watchdogs_checker" : {
\ "type"
\ : executable("csslint") ? "watchdogs_checker/csslint"
\ : executable("stylelint") ? "watchdogs_checker/stylelint"
\ : ""
\ },
\
Expand All @@ -157,6 +158,12 @@ let g:watchdogs#default_config = {
\ "errorformat" : '%f:\ line\ %l\\,\ col\ %c\\,\ %m',
\ },
\
\ "watchdogs_checker/stylelint" : {
\ "command" : "stylelint",
\ "exec" : "%c %o %s:p",
\ "errorformat" : '%+P%f,%*\s%l:%c%*\s%m,%-Q',
\ },
\
\ "d/watchdogs_checker" : {
\ "type"
\ : executable("dmd") ? "watchdogs_checker/dmd"
Expand Down Expand Up @@ -475,6 +482,12 @@ let g:watchdogs#default_config = {
\ "type"
\ : executable("sass") ? "watchdogs_checker/scss"
\ : executable("scss-lint") ? "watchdogs_checker/scss-lint"
\ : executable("stylelint") ? "watchdogs_checker/stylelint"
\ : "",
\ "cmdopt"
\ : executable("sass") ? ""
\ : executable("scss-lint") ? ""
\ : executable("stylelint") ? "--syntax scss"
\ : ""
\ },
\
Expand Down
4 changes: 4 additions & 0 deletions doc/watchdogs.jax
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,10 @@
scss-lint で scss のシンタックスチェックを行います。
brigade/scss-lint - https://github.com/brigade/scss-lint

- "stylelint"
stylelint で css または scss のシンタックスチェックを行います。
stylelint/stylelint - https://github.com/stylelint/stylelint

- "tsc"
tsc で typescript のシンタックスチェックを行います。

Expand Down

0 comments on commit ac65c57

Please sign in to comment.