* Add solhint and basic configuration * Add solhint-plugin-prettier to run prettier via solhint * Remove all solhint-disable rules in contracts * Turn off compiler version errors * Fix max-line-length linter errors * Fix linting and prettier issues in contracts * Add global lint command to run both ts and solidity linter
18 lines
504 B
JSON
18 lines
504 B
JSON
{
|
|
"extends": "solhint:recommended",
|
|
"plugins": ["prettier"],
|
|
"rules": {
|
|
"prettier/prettier": "error",
|
|
"avoid-low-level-calls": "off",
|
|
"avoid-tx-origin": "warn",
|
|
"code-complexity": "off",
|
|
"const-name-snakecase": "error",
|
|
"function-max-lines": "off",
|
|
"max-line-length": ["error", 120],
|
|
"no-inline-assembly": "off",
|
|
"quotes": ["error", "double"],
|
|
"no-empty-blocks": "off",
|
|
"compiler-version": "off"
|
|
}
|
|
}
|