chore: add more "fmt" rules in Foundry config

chore: run "yarn solhint" instead of just "solhint"
This commit is contained in:
Paul Razvan Berg
2023-01-03 22:49:02 +02:00
parent 53190331f6
commit abb4f402c9
2 changed files with 4 additions and 1 deletions

View File

@@ -34,7 +34,7 @@
"scripts": {
"clean": "rimraf cache out",
"lint": "yarn lint:sol && yarn prettier:check",
"lint:sol": "forge fmt --check && solhint \"{src,test}/**/*.sol\"",
"lint:sol": "forge fmt --check && yarn solhint \"{src,test}/**/*.sol\"",
"postinstall": "husky install",
"prettier:check": "prettier --check \"**/*.{json,md,yml}\"",
"prettier:write": "prettier --write \"**/*.{json,md,yml}\""