Created
May 29, 2018 16:52
-
-
Save tclancy/e39ad90a27e3b9cae1e9aa54628a3250 to your computer and use it in GitHub Desktop.
Test Bash Script for Hook
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
#!/usr/bin/env bash | |
files=$(git diff --cached --name-only --staged --diff-filter=ACM WA-2310 | grep '\.jsx\?$') | |
echo ${files} | xargs eslint |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment