Skip to content

Commit 5446f66

Browse files
thomaslombartBelco90
authored andcommitted
feat: add commitlint and commit-msg hook (#8)
1 parent 7643d5a commit 5446f66

File tree

4 files changed

+907
-1
lines changed

4 files changed

+907
-1
lines changed

.huskyrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"hooks": {
3-
"pre-commit": "lint-staged"
3+
"pre-commit": "lint-staged",
4+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
45
}
56
}

commitlint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = { extends: ['@commitlint/config-conventional'] };

0 commit comments

Comments
 (0)