Skip to content

Commit

Permalink
Setup pre commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
amit548 committed Dec 29, 2021
1 parent 86822b3 commit 0d33110
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm test
npm run lint:fix
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
"lint": "eslint ./src",
"lint:fix": "eslint ./src --fix",
"dev": "nodemon",
"prepare": "husky install",
"test": ""
"prepare": "husky install"
},
"husky": {
"hooks": {
Expand Down

0 comments on commit 0d33110

Please sign in to comment.