Skip to content

Commit

Permalink
feat: ✨ use git hooks and commitlinter
Browse files Browse the repository at this point in the history
  • Loading branch information
pshaddel committed Apr 23, 2021
1 parent 72f0f62 commit 5c56bf0
Show file tree
Hide file tree
Showing 6 changed files with 1,684 additions and 47 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
5 changes: 5 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit

6 changes: 6 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run prettier
npm run lint
# npm test
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { extends: ['@commitlint/config-conventional'] };
Loading

0 comments on commit 5c56bf0

Please sign in to comment.