Skip to content

Commit fb72f56

Browse files
committed
feat(commit): add commitlint and commitizen
Add commitlint and commitizen to ensure that commit logs will respect the conventional-commit convention
1 parent 6ed9755 commit fb72f56

File tree

4 files changed

+1178
-4
lines changed

4 files changed

+1178
-4
lines changed

.huskyrc.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module.exports = {
22
hooks: {
33
'pre-commit': 'eslint --ext .js,.ts .',
4-
'pre-push': 'npm test'
4+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
5+
'pre-push': 'npm test',
56
}
67
};

commitlint.config.js

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

0 commit comments

Comments
 (0)