chore: add husky and lint-staged
This commit is contained in:
parent
5900488532
commit
b4975926b5
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"*.{js,json,sol,ts}": "prettier --write"
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
. "$(dirname -- "$0")/_/husky.sh"
|
||||||
|
|
||||||
|
npx lint-staged --config .husky/lint-staged.config.json
|
||||||
|
|
@ -39,7 +39,8 @@
|
||||||
"hardhat-contract-sizer": "^2.6.1",
|
"hardhat-contract-sizer": "^2.6.1",
|
||||||
"hardhat-deploy": "^0.11.15",
|
"hardhat-deploy": "^0.11.15",
|
||||||
"hardhat-gas-reporter": "^1.0.9",
|
"hardhat-gas-reporter": "^1.0.9",
|
||||||
"minimist": "^1.2.7",
|
"husky": "^8.0.2",
|
||||||
|
"lint-staged": "^13.0.4",
|
||||||
"prettier": "^2.7.1",
|
"prettier": "^2.7.1",
|
||||||
"prettier-plugin-solidity": "^1.0.0",
|
"prettier-plugin-solidity": "^1.0.0",
|
||||||
"solidity-coverage": "^0.8.2",
|
"solidity-coverage": "^0.8.2",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue