Skip to content

Commit

Permalink
chore(git): check git commit message against conventional commit format
Browse files Browse the repository at this point in the history
  • Loading branch information
sneas authored and onderceylan committed Sep 3, 2019
1 parent b29e20f commit 4497ad5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { extends: ['@commitlint/config-conventional'] };
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"slash": "^3.0.0"
},
"devDependencies": {
"@commitlint/cli": "^8.1.0",
"@jedmao/semantic-release-npm-github-config": "^1.0.6",
"@types/jest": "^24.0.18",
"cz-conventional-changelog": "^3.0.2",
Expand All @@ -74,7 +75,7 @@
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"prepare-commit-msg": "exec < /dev/tty && git cz --hook"
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"lint-staged": {
Expand Down

0 comments on commit 4497ad5

Please sign in to comment.