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

Commit 405a6bf

Browse files
bespokebobandrewleyva
authored andcommittedDec 18, 2018
chore(commit): Use commitlint (#343)
Use commitlint to validate commit messages. Use the angular config/style, since that seems to be what is expected. Closes #223
1 parent 794a87b commit 405a6bf

File tree

3 files changed

+287
-16
lines changed

3 files changed

+287
-16
lines changed
 

‎commitlint.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
extends: ['@commitlint/config-angular']
3+
}

‎package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
"lib"
88
],
99
"devDependencies": {
10+
"@commitlint/cli": "^7.2.1",
11+
"@commitlint/config-angular": "^7.1.2",
1012
"babel-cli": "^6.26.0",
1113
"babel-eslint": "^10.0.0",
1214
"babel-loader": "^7.1.4",
@@ -119,7 +121,8 @@
119121
},
120122
"husky": {
121123
"hooks": {
122-
"pre-commit": "run-p lint test format"
124+
"pre-commit": "run-p lint test format",
125+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
123126
}
124127
}
125128
}

0 commit comments

Comments
 (0)
This repository has been archived.