Skip to content

Commit 8d254c6

Browse files
committed
chore: add commitlint
1 parent 7d83856 commit 8d254c6

File tree

4 files changed

+1240
-0
lines changed

4 files changed

+1240
-0
lines changed

.commitlintrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": [
3+
"@commitlint/config-conventional"
4+
]
5+
}

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no -- commitlint --edit "${1}" && npm run lint

0 commit comments

Comments
 (0)