chore: add more "fmt" rules in Foundry config
chore: run "yarn solhint" instead of just "solhint"
This commit is contained in:
parent
53190331f6
commit
abb4f402c9
|
@ -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
|
||||
|
|
|
@ -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}\""
|
||||
|
|
Loading…
Reference in New Issue