Skip to content

Commit

Permalink
fix: apply separate rules for src and tests with lint-staged (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
gas1cent authored Mar 1, 2024
1 parent 7f4bf01 commit 9783e54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
},
"lint-staged": {
"*.{js,css,md,ts,sol}": "forge fmt",
"*.sol": "solhint --fix './(src|test|script)/**/*.sol",
"(src|script)/**/*.sol": "yarn lint:sol-logic",
"test/**/*.sol": "yarn lint:sol-tests",
"package.json": "sort-package-json"
},
"dependencies": {
Expand Down

0 comments on commit 9783e54

Please sign in to comment.