-
Notifications
You must be signed in to change notification settings - Fork 11
/
.solhint.json
46 lines (46 loc) · 1.51 KB
/
.solhint.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
"extends": "solhint:recommended",
"plugins": ["prettier"],
"rules": {
"explicit-types": ["error", "explicit"],
"no-console": "error",
"no-empty-blocks": "error",
"compiler-version": ["error", "^0.8.0"],
"max-states-count": ["warn", 20],
"no-unused-vars": "error",
"reason-string": ["error", { "maxLength": 250 }],
"constructor-syntax": "error",
"quotes": ["error", "double"],
"const-name-snakecase": "error",
"contract-name-camelcase": "error",
"event-name-camelcase": "error",
"func-name-mixedcase": "error",
"immutable-vars-naming": ["error", { "immutablesAsConstants": false }],
"modifier-name-mixedcase": "error",
"var-name-mixedcase": "error",
"named-parameters-mapping": "warn",
"use-forbidden-name": "error",
"imports-on-top": "error",
"ordering": "warn",
"visibility-modifier-order": "error",
"avoid-call-value": "error",
"avoid-low-level-calls": "error",
"avoid-sha3": "error",
"avoid-suicide": "error",
"avoid-throw": "error",
"avoid-tx-origin": "error",
"check-send-result": "error",
"func-visibility": ["error", { "ignoreConstructors": true }],
"multiple-sends": "error",
"no-inline-assembly": "off",
"no-unused-import": "error",
"not-rely-on-block-hash": "error",
"not-rely-on-time": "off",
"reentrancy": "error",
"state-visibility": "error",
"no-global-import": "off",
"func-named-parameters": "off",
"prettier/prettier": "error",
"no-complex-fallback": "warn"
}
}