From 9783e54521ff7282954a8d6f7f5eb04e4333a091 Mon Sep 17 00:00:00 2001 From: Gas <86567384+gas1cent@users.noreply.github.com> Date: Fri, 1 Mar 2024 16:59:06 +0400 Subject: [PATCH] fix: apply separate rules for src and tests with `lint-staged` (#62) --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index ebabd9db..6f9c2477 100644 --- a/package.json +++ b/package.json @@ -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": {