Created
November 4, 2015 10:09
-
-
Save vineus/d8439ec40965f8e70ebe to your computer and use it in GitHub Desktop.
standard-pre-commit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Ensure all javascript files staged for commit pass standard code style | |
git diff --name-only --cached --relative | grep '\.js$' | xargs standard | |
exit $? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment