Skip to content

Commit

Permalink
chore: lint code and commit messages using husky and commitlint (#11)
Browse files Browse the repository at this point in the history
* chore: lint code and commit messages using commitlint and husky
* chore: remove unused imports causing lint errors
  • Loading branch information
timkurvers authored May 24, 2020
1 parent 13bedf4 commit c7a0a11
Show file tree
Hide file tree
Showing 5 changed files with 1,459 additions and 8 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'],
};
6 changes: 6 additions & 0 deletions husky.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
'hooks': {
'pre-commit': 'npm run lint',
'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS',
},
};
Loading

0 comments on commit c7a0a11

Please sign in to comment.