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
No known key found for this signature in database
GPG Key ID: BCC366159BD63828
2 changed files with 4 additions and 1 deletions

View File

@ -4,9 +4,12 @@
bracket_spacing = true
int_types = "long"
line_length = 120
multiline_func_header = "all"
number_underscore = "thousands"
quote_style = "double"
tab_width = 4
variable_override_spacing = false
wrap_comments = true
[profile.default]
auto_detect_solc = false

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}\""