Skip to content

Commit eb0738a

Browse files
committed
husky git hooks
1 parent 40695da commit eb0738a

File tree

2 files changed

+226
-0
lines changed

2 files changed

+226
-0
lines changed

package-lock.json

Lines changed: 219 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
"lint": "eslint --fix --config .eslintrc.json \"**/*.js\"",
2020
"remark": "remark . -o"
2121
},
22+
"husky": {
23+
"hooks": {
24+
"pre-commit": "npm run lint && npm run remark",
25+
"pre-push": "npm run test"
26+
}
27+
},
2228
"dependencies": {
2329
"bcrypt-nodejs": "0.0.3",
2430
"body-parser": "^1.18.3",
@@ -55,6 +61,7 @@
5561
"eslint-config-prettier": "^4.1.0",
5662
"eslint-plugin-prettier": "^3.0.1",
5763
"faker": "^4.1.0",
64+
"husky": "^1.3.1",
5865
"mocha": "^6.1.3",
5966
"mongo-seeding": "^3.1.0",
6067
"nodemon": "^1.18.11",

0 commit comments

Comments
 (0)