From f3d8b175112cfed2709cc508ea5c6502476c600d Mon Sep 17 00:00:00 2001 From: Paul Razvan Berg Date: Tue, 7 Feb 2023 12:23:00 +0200 Subject: [PATCH] chore: fix lint script chore: separate scripts in "lint" and "lint:sol" --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index ead50a95c..697755249 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,8 @@ "gas:report": "forge test --gas-report --no-match-path \"./test/e2e/**/*.sol\" --no-match-test \"test(Fork)?(Fuzz)?_RevertWhen_\\w{1,}?\"", "gas:snapshot": "forge snapshot --desc --no-match-path \"./test/e2e/**/*.sol\" --no-match-test \"test(Fork)?(Fuzz)?_RevertWhen_\\w{1,}?\"", "gas:snapshot:optimized": "yarn build:optimized && FOUNDRY_PROFILE=test-optimized forge snapshot --desc --no-match-path \"./test/e2e/**/*.sol\" --no-match-test \"test(Fork)?(Fuzz)?_RevertWhen_\\w{1,}?\"", - "lint": "yarn prettier:check && yarn solhint \"{src,test}/**/*.sol\"", + "lint": "yarn lint:sol && yarn prettier:check", + "lint:sol": "yarn solhint \"{script,src,test}/**/*.sol\"", "postinstall": "husky install", "prettier:write": "prettier --write \"**/*.{json,md,sol,yml}\"", "prettier:check": "prettier --check \"**/*.{json,md,sol,yml}\"",