Skip to content

Instantly share code, notes, and snippets.

@zuDevonRW
Created July 14, 2015 15:47
Show Gist options
  • Save zuDevonRW/d08e3fc211dbeee4cdd8 to your computer and use it in GitHub Desktop.
Save zuDevonRW/d08e3fc211dbeee4cdd8 to your computer and use it in GitHub Desktop.
Run scss-lint from pre-commit
# run scss-lint
scssLintResult=$(scss-lint -c scss-config.yml)
if [[ $scssLintResult == "" ]]; then
echo "$(tput setaf 2)scss lint Passed$(tput sgr0)"
else
echo "$(tput setaf 1)scss lint: $result error(s), aborting commit$(tput sgr0)"
scss-lint -c scss-config.yml
exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment