Skip to content

Commit 349652f

Browse files
committed
chore: add husky git hooks
1 parent 0809739 commit 349652f

2 files changed

Lines changed: 694 additions & 22 deletions

File tree

package.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
"release": "np"
4343
},
4444
"devDependencies": {
45+
"@commitlint/cli": "^8.3.5",
46+
"@commitlint/config-conventional": "^8.3.4",
4547
"@tarojs/components": "3.0.0-beta.2",
4648
"@tarojs/taro": "3.0.0-beta.2",
4749
"@types/react": "^16.9.32",
@@ -55,6 +57,11 @@
5557
"taro-ui": "^2.3.2",
5658
"typescript": "^3.8.3"
5759
},
60+
"husky": {
61+
"hooks": {
62+
"commit-msg": "commitlint -x @commitlint/config-conventional -E HUSKY_GIT_PARAMS"
63+
}
64+
},
5865
"publishConfig": {
5966
"registry": "https://registry.npmjs.org",
6067
"access": "public"

0 commit comments

Comments
 (0)