chore(contracts): add solhint package to lint contracts

re #86
This commit is contained in:
cedoor
2023-01-17 12:19:10 +01:00
parent 3161f4450e
commit 6a555c61a8
2 changed files with 11 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
{
"extends": "solhint:recommended",
"plugins": ["prettier"],
"rules": {
"prettier/prettier": "error",
"compiler-version": ["error", ">=0.8.0"],
"func-visibility": ["error", { "ignoreConstructors": true }]
}
}

View File

@@ -124,6 +124,8 @@
"prettier": "^2.5.1",
"process": "^0.11.10",
"react-test-renderer": "18.1.0",
"solhint": "^3.3.7",
"solhint-plugin-prettier": "^0.0.5",
"solidity-coverage": "^0.8.1",
"ts-jest": "27.1.4",
"ts-node": "9.1.1",