Skip to content

Commit ffb14bc

Browse files
committed
chore: add commitlint git hook with lefthook
1 parent ed3a523 commit ffb14bc

5 files changed

Lines changed: 2711 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

commitlint.config.js

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

lefthook.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Validate commit messages
2+
commit-msg:
3+
commands:
4+
"lint commit message":
5+
run: npx commitlint --edit {1}

0 commit comments

Comments
 (0)