Skip to content

Instantly share code, notes, and snippets.

@vineus
Created November 4, 2015 10:09
Show Gist options
  • Save vineus/d8439ec40965f8e70ebe to your computer and use it in GitHub Desktop.
Save vineus/d8439ec40965f8e70ebe to your computer and use it in GitHub Desktop.
standard-pre-commit
#!/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