Last active
September 16, 2015 14:04
-
-
Save relekang/402ee4bfe99c377a491e to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
CHANGED_JS_FILES=$(git diff --cached --name-only --diff-filter=ACMRTUXB -- '*.js') | |
echo | |
if [ -n "$CHANGED_JS_FILES" ]; then | |
eslint $CHANGED_JS_FILES | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment