From e44cb27a4f3338e58108d9dd304b3a53cc507b30 Mon Sep 17 00:00:00 2001 From: "A.L." Date: Thu, 6 Jun 2024 10:09:18 +0200 Subject: [PATCH] chore: update npm commands and solhint files --- package.json | 4 ++-- src/.solhint.json | 9 +++++++++ test/.solhint.json | 12 ++++++++++++ 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 src/.solhint.json create mode 100644 test/.solhint.json diff --git a/package.json b/package.json index 03f696b..107973c 100644 --- a/package.json +++ b/package.json @@ -57,8 +57,8 @@ "submodule:reset": "git submodule update --recursive", "test": "npm run test:unit", "test:all": "script/coverage_patch_deployer.sh && npm run test:unit && npm run test:integration", - "test:integration": "export FOUNDRY_PROFILE=integration && script/coverage_patch_deployer.sh && forge test ", - "test:unit": "script/coverage_patch_deployer.sh && forge test" + "test:integration": "export FOUNDRY_PROFILE=integration && forge test ", + "test:unit": "forge test" }, "devDependencies": { "@proxima-oss/eslint-config": "6.0.1", diff --git a/src/.solhint.json b/src/.solhint.json new file mode 100644 index 0000000..74001ce --- /dev/null +++ b/src/.solhint.json @@ -0,0 +1,9 @@ +{ + "extends": "solhint:recommended", + "rules": { + "compiler-version": ["error", ">=0.8.0"], + "func-visibility": ["error", { "ignoreConstructors": true }], + "not-rely-on-time": "off", + "no-inline-assembly": "off" + } +} diff --git a/test/.solhint.json b/test/.solhint.json new file mode 100644 index 0000000..b73969d --- /dev/null +++ b/test/.solhint.json @@ -0,0 +1,12 @@ +{ + "extends": "solhint:recommended", + "rules": { + "compiler-version": ["error", ">=0.8.0"], + "func-visibility": ["error", { "ignoreConstructors": true }], + "avoid-low-level-calls": "off", + "not-rely-on-time": "off", + "func-name-mixedcase": "off", + "var-name-mixedcase": "off", + "no-inline-assembly": "off" + } +}