Skip to content

Instantly share code, notes, and snippets.

@jsscclr
Forked from dcluna/sass-lint-flycheck.el
Created November 19, 2016 00:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsscclr/eb6ad3b945a6e75e907133beafc7bf1c to your computer and use it in GitHub Desktop.
Save jsscclr/eb6ad3b945a6e75e907133beafc7bf1c 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