Skip to content

Commit fa049bd

Browse files
committed
Add husky
1 parent 0280156 commit fa049bd

File tree

2 files changed

+160
-0
lines changed

2 files changed

+160
-0
lines changed

package-lock.json

Lines changed: 153 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
@@ -17,6 +17,12 @@
1717
"lint-md": "lint-md .",
1818
"lint-md:fix": "lint-md --fix ."
1919
},
20+
"husky": {
21+
"hooks": {
22+
"pre-commit": "npm test",
23+
"pre-push": "npm test"
24+
}
25+
},
2026
"repository": {
2127
"type": "git",
2228
"url": "git+https://github.com/xcatliu/typescript-tutorial.git"
@@ -34,6 +40,7 @@
3440
"homepage": "https://github.com/xcatliu/typescript-tutorial#readme",
3541
"devDependencies": {
3642
"eclint": "^2.8.1",
43+
"husky": "^2.2.0",
3744
"lint-md": "^0.1.1",
3845
"npm-run-all": "^4.1.5",
3946
"prettier": "^1.17.0"

0 commit comments

Comments
 (0)