[build] add lint for commit-msg (#4164)

This commit is contained in:
neverland
2019-08-20 19:27:21 +08:00
committed by GitHub
parent 89a980466f
commit 8dcf1c1139
2 changed files with 36 additions and 1 deletions
+2 -1
View File
@@ -28,7 +28,8 @@
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
"pre-commit": "lint-staged",
"commit-msg": "node build/lint-commit-msg.js"
}
},
"lint-staged": {