Skip to content

Commit 67080fd

Browse files
committed
feat: add commitlint
1 parent ac1cf7b commit 67080fd

File tree

4 files changed

+830
-2
lines changed

4 files changed

+830
-2
lines changed

.husky/commit-msg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
npx --no-install commitlint --edit "$1"

commitlint.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
extends: ['@commitlint/config-conventional'],
3+
rules: {
4+
'header-max-length': [2, 'always', 72],
5+
},
6+
};

0 commit comments

Comments
 (0)