Skip to content

Commit

Permalink
Configure pre-commit hook for code linting & formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Psirex committed Feb 7, 2024
1 parent 6b4ab0d commit f67b7d2
Show file tree
Hide file tree
Showing 6 changed files with 1,718 additions and 74 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
8 changes: 8 additions & 0 deletions .solhint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "solhint:recommended",
"plugins": ["lido"],
"rules": {
"func-name-mixedcase": "off",
"func-visibility": ["warn", { "ignoreConstructors": true }]
}
}
3 changes: 3 additions & 0 deletions .solhintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
out
lib
node_modules
6 changes: 5 additions & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@ src = 'contracts'
out = 'out'
libs = ['node_modules', 'lib']
test = 'test'
cache_path = 'cache_forge'
cache_path = 'cache_forge'
solc-version = "0.8.23"

[fmt]
multiline_func_header = 'params_first'
Loading

0 comments on commit f67b7d2

Please sign in to comment.