Skip to content

Commit 81c2209

Browse files
committed
chore: add husky hook for commitlint
1 parent a3d685e commit 81c2209

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

.husky/commit-msg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx --no-install commitlint --edit "$1"

package-lock.json

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"main": "src/index.cjs",
66
"type": "commonjs",
77
"scripts": {
8+
"prepare": "husky || true",
89
"test": "jest"
910
},
1011
"repository": {
@@ -29,6 +30,7 @@
2930
"@commitlint/cli": "19.0.3",
3031
"@commitlint/config-conventional": "19.0.3",
3132
"@types/jest": "29.5.12",
33+
"husky": "9.0.11",
3234
"jest": "29.7.0",
3335
"webpack": "5.90.3"
3436
},

0 commit comments

Comments
 (0)