Skip to content
This repository was archived by the owner on Nov 18, 2020. It is now read-only.

Commit 7ef05ce

Browse files
committed
Added husky
1 parent 5497e9a commit 7ef05ce

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"eslint": "^6.4.0",
2727
"eslint-config-prettier": "^6.3.0",
2828
"eslint-plugin-prettier": "^3.1.1",
29+
"husky": "^3.0.5",
2930
"jest": "^24.9.0",
3031
"prettier": "^1.18.2"
3132
},
@@ -38,5 +39,11 @@
3839
"/test/fixtures/",
3940
"/node_modules/"
4041
]
42+
},
43+
"husky": {
44+
"hooks": {
45+
"pre-push": "npm run test",
46+
"pre-commit": "npm run lint:fix && npm run format:fix"
47+
}
4148
}
4249
}

0 commit comments

Comments
 (0)