Skip to content

Commit 811d21e

Browse files
committed
build: use commitlint with semantic tags
1 parent 45900af commit 811d21e

File tree

4 files changed

+542
-67
lines changed

4 files changed

+542
-67
lines changed

.husky/commit-msg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install commitlint --edit ""

commitlint.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = { extends: ['@commitlint/config-conventional'] }

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
"ethers": "^5.4.4"
1616
},
1717
"devDependencies": {
18+
"@commitlint/cli": "^13.2.1",
19+
"@commitlint/config-conventional": "^13.2.0",
1820
"@ethersproject/contracts": "^5.4.1",
1921
"@ethersproject/experimental": "^5.4.0",
2022
"@ethersproject/transactions": "^5.4.0",
@@ -62,7 +64,7 @@
6264
"hardhat-gas-reporter": "^1.0.4",
6365
"hardhat-storage-layout": "0.1.6",
6466
"hardhat-tracer": "^1.0.0-alpha.6",
65-
"husky": "^4.3.8",
67+
"husky": "^7.0.2",
6668
"inquirer": "^8.0.0",
6769
"ipfs-http-client": "47.0.1",
6870
"isomorphic-fetch": "^3.0.0",

0 commit comments

Comments
 (0)