Skip to content

Commit 8a739ca

Browse files
feat(lint): add commitlint & husky 🏗
1 parent 8f823da commit 8a739ca

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

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+
};

husky.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
hooks: {
3+
'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS',
4+
'pre-commit': 'npm run lint',
5+
'pre-push': 'npm run lint',
6+
},
7+
};

0 commit comments

Comments
 (0)