Skip to content

Commit 86fbafc

Browse files
committed
Adds husky with a pre-push githook that checks addresses.json
1 parent 207b9d6 commit 86fbafc

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

.husky/pre-push

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm check:deployment-addresses

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"lint": "pnpm run prettier:check && pnpm run lint:eslint && pnpm run lint:solhint",
3333
"lint:solhint": "solhint ./contracts/**/*.sol",
3434
"lint:eslint": "eslint . --ext .js,.ts",
35+
"prepare": "husky",
3536
"prettier:check": "prettier --check \"./**/*.{js,ts,md,json,sol}\"",
3637
"prettier": "prettier --write \"./**/*.{js,ts,md,json,sol}\"",
3738
"verify-vendor-contracts": "hardhat run scripts/verify-vendor-contracts.ts",
@@ -57,6 +58,7 @@
5758
"glob": "^11.0.2",
5859
"hardhat": "^2.24.0",
5960
"hardhat-deploy": "^1.0.2",
61+
"husky": "^9.1.7",
6062
"prettier": "^3.5.3",
6163
"prettier-plugin-solidity": "^2.0.0",
6264
"solhint": "^5.1.0",

pnpm-lock.yaml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)