husky: lint only on commit

This commit is contained in:
41666 2019-04-03 07:28:38 -05:00
parent d050277730
commit 35b49509c9
No known key found for this signature in database
GPG key ID: BC51D07640DC10AF
2 changed files with 8 additions and 0 deletions

2
.gitignore vendored
View file

@ -12,3 +12,5 @@ yarn-error\.log
*.log
\.next/
coverage/

View file

@ -22,6 +22,12 @@
"workspaces": [
"packages/*"
],
"husky": {
"hooks": {
"pre-commit": "yarn lint",
"pre-push": "yarn lint && yarn test"
}
},
"devDependencies": {
"@babel/cli": "^7.4.3",
"@babel/core": "^7.4.3",