chore: add generic lint script

This commit is contained in:
Paul Razvan Berg 2022-10-30 18:43:47 +02:00
parent 26000b31e5
commit 7797762cb1
No known key found for this signature in database
GPG Key ID: BCC366159BD63828
1 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,8 @@
"private": true,
"scripts": {
"clean": "rimraf cache out",
"lint": "solhint --config \"./.solhint.json\" \"{src,test}/**/*.sol\"",
"lint": "yarn lint:sol && yarn prettier:check",
"lint:sol": "solhint \"{src,test}/**/*.sol\"",
"postinstall": "husky install",
"prettier": "prettier --config \"./.prettierrc.yml\" --write \"**/*.{json,md,sol,yml}\"",
"prettier:check": "prettier --config \"./.prettierrc.yml\" --check \"**/*.{json,md,sol,yml}\""