Skip to content

Commit

Permalink
feat: add commit lint
Browse files Browse the repository at this point in the history
  • Loading branch information
phenix3443 committed Mar 20, 2024
1 parent d53158d commit 9472068
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .commitlintrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
extends:
- "@commitlint/config-conventional"

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

pnpm commitlint --edit "$1"
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
"prettier": "^2.0.5"
},
"devDependencies": {
"hardhat": "^2.12.4"
"@commitlint/config-conventional": "^19.1.0",
"commitlint": "^19.2.1",
"hardhat": "^2.12.4",
"husky": "^9.0.11"
},
"scripts": {
"prepare": "husky"
}
}

0 comments on commit 9472068

Please sign in to comment.