Last active
May 24, 2019 05:55
-
-
Save wataruoguchi/b1f484635f8a3956549eefb9cfbc89d1 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
// package.json | |
{ | |
... | |
"husky": { | |
"hooks": { | |
"pre-commit": "lint-staged", | |
"pre-push": "npm run jest" | |
} | |
}, | |
"lint-staged": { | |
"linters": { | |
"*.js": [ | |
"npx eslint --fix", | |
"git add", | |
"npm run jest $1 --bail --findRelatedTests" | |
] | |
}, | |
"ignore": [ | |
"__tests__/*.js" | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment