Skip to content

Commit b0cb90a

Browse files
committed
feat(commitlint): verify commit messages using commitlint
1 parent 96ebfef commit b0cb90a

File tree

4 files changed

+252
-81
lines changed

4 files changed

+252
-81
lines changed

.husky/commit-msg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
. "$(dirname "$0")/common.sh"
4+
5+
yarn commitlint --edit $1

commitlint.config.cjs

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

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
"tslib": "2.3.1"
2727
},
2828
"devDependencies": {
29+
"@commitlint/cli": "16.2.3",
30+
"@commitlint/config-conventional": "16.2.1",
31+
"@commitlint/cz-commitlint": "16.2.3",
2932
"@softwareventures/eslint-config": "5.1.5",
3033
"@softwareventures/precise-commits": "2.0.18",
3134
"@softwareventures/prettier-config": "3.0.0",

0 commit comments

Comments
 (0)