Last active
July 5, 2019 09:30
-
-
Save oskimura/3753d1e804823173d01daa9713f285bc 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
| git stash -k | |
| sleep 3 | |
| git diff --cached --name-only | xargs node node_modules/eslint/bin/eslint.js | |
| status=$? | |
| echo $status | |
| if [ $status -ne 0 ]; then | |
| echo "failed eslint"; | |
| git stash pop --index | |
| exit 1; | |
| fi | |
| git stash po |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment