diff --git a/.yarnrc.yml b/.yarnrc.yml index 78bd5b4..2812b7a 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -1,2 +1,2 @@ yarnPath: .yarn/releases/yarn-4.2.2.cjs -nodeLinker: "pnpm" # remove after this issue is solved: https://github.com/crytic/crytic-compile/issues/331 +nodeLinker: "node-modules" # remove after this issue is solved: https://github.com/crytic/crytic-compile/issues/331 diff --git a/package.json b/package.json index 8e7994a..7900ebc 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "slither": "slither ." }, "devDependencies": { + "@types/node": "^20.12.12", "cspell": "^8.8.3", "hardhat": "^2.22.4", "solhint": "^5.0.1", diff --git a/slither.config.json b/slither.config.json index 03577b3..63c6320 100644 --- a/slither.config.json +++ b/slither.config.json @@ -1,4 +1,5 @@ { - "filter_paths": "@openzeppelin/contracts/", - "detectors_to_exclude": "solc-version" + "filter_paths": "@openzeppelin/contracts", + "detectors_to_exclude": "solc-version,unused-import", + "comments": "TODO: enable unused-import when false positive in @openzeppelin/contracts will be fixed" } diff --git a/yarn.lock b/yarn.lock index 584a16f..c8ec155 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1251,6 +1251,7 @@ __metadata: resolution: "@skalenetwork/paymaster-interfaces@workspace:." dependencies: "@openzeppelin/contracts": "npm:^5.0.2" + "@types/node": "npm:^20.12.12" cspell: "npm:^8.8.3" hardhat: "npm:^2.22.4" solhint: "npm:^5.0.1" @@ -1335,7 +1336,7 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:*": +"@types/node@npm:*, @types/node@npm:^20.12.12": version: 20.12.12 resolution: "@types/node@npm:20.12.12" dependencies: