Skip to content

Commit

Permalink
feat: commitlint & husky added
Browse files Browse the repository at this point in the history
  • Loading branch information
vinayakkulkarni committed Apr 6, 2020
1 parent 798bd15 commit 3f5b4c7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
};
7 changes: 7 additions & 0 deletions husky.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
hooks: {
'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS',
'pre-commit': 'npm run lint',
'pre-push': 'npm run lint',
},
};

0 comments on commit 3f5b4c7

Please sign in to comment.