chore: add husky and lint-staged

This commit is contained in:
zoruka 2022-12-02 12:09:27 -03:00 committed by EmperorOrokuSaki
parent 5900488532
commit b4975926b5
3 changed files with 9 additions and 1 deletions

View File

@ -0,0 +1,3 @@
{
"*.{js,json,sol,ts}": "prettier --write"
}

4
.husky/pre-commit Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npx lint-staged --config .husky/lint-staged.config.json

View File

@ -39,7 +39,8 @@
"hardhat-contract-sizer": "^2.6.1",
"hardhat-deploy": "^0.11.15",
"hardhat-gas-reporter": "^1.0.9",
"minimist": "^1.2.7",
"husky": "^8.0.2",
"lint-staged": "^13.0.4",
"prettier": "^2.7.1",
"prettier-plugin-solidity": "^1.0.0",
"solidity-coverage": "^0.8.2",