Skip to content

Instantly share code, notes, and snippets.

@dcluna
Created July 7, 2016 02:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dcluna/13ba91424db1bd9c6eb236592c247484 to your computer and use it in GitHub Desktop.
Save dcluna/13ba91424db1bd9c6eb236592c247484 to your computer and use it in GitHub Desktop.
flycheck definition for sass-lint
(flycheck-def-config-file-var flycheck-sass-lintrc sass-lint ".sass-lint.yml"
:safe #'stringp
:package-version '(flycheck . "0.23"))
(flycheck-define-checker sass-lint
"A Sass syntax checker using sass-lint.
See URL `https://github.com/sasstools/sass-lint'."
:command ("sass-lint" "-f" "unix"
(config-file "-c" flycheck-sass-lintrc)
"-v" "-q")
:standard-input t
:error-patterns
((error line-start (file-name) ":" line ":" column ": " (message) line-end))
:modes sass-mode
:next-checkers ((error . sass)
(warning . sass)))
(add-to-list 'flycheck-checkers 'sass-lint)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment