Skip to content

Commit

Permalink
feat: add precommit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
pavanjoshi914 committed Aug 10, 2023
1 parent 8ad9df8 commit 8f7d9da
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn commitlint --edit
3 changes: 3 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default {
extends: ['@commitlint/config-conventional']
};
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
"nostr-tools": "1.13.1"
},
"devDependencies": {
"@commitlint/cli": "^17.7.1",
"@commitlint/config-conventional": "^17.7.0",
"@types/crypto-js": "^4.1.1",
"@types/jest": "^29.4.0",
"@types/node": "^18.11.0",
Expand Down

0 comments on commit 8f7d9da

Please sign in to comment.