-
Notifications
You must be signed in to change notification settings - Fork 12
/
.solhint.json
44 lines (39 loc) · 1.37 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
{
"extends": "solhint:recommended",
"plugins": ["prettier"],
"rules": {
"prettier/prettier": "error",
"code-complexity": ["error", 7],
"constructor-syntax": "error",
"custom-errors": "off",
"explicit-types": ["error", "explicit"],
"function-max-lines": "off",
"max-line-length": ["warn", 140],
"max-states-count": ["warn", 10],
"no-console": "error",
"no-empty-blocks": ["warn", { "ignoreConstructors": true }],
"no-global-import": "warn",
"no-unused-import": "error",
"no-unused-vars": "error",
"one-contract-per-file": "off",
"payable-fallback": "warn",
"reason-string": ["off", { "maxLength": 32 }],
"comprehensive-interface": "off",
"const-name-snakecase": "error",
"contract-name-camelcase": "error",
"event-name-camelcase": "error",
"func-name-mixedcase": "warn",
"func-param-name-mixedcase": "warn",
"immutable-vars-naming": ["error", { "immutablesAsConstants": true }],
"modifier-name-mixedcase": "warn",
"private-vars-leading-underscore": ["warn", { "strict": true }],
"var-name-mixedcase": "warn",
"imports-on-top": "error",
"ordering": "warn",
"visibility-modifier-order": "error",
"compiler-version": ["error", "0.8.23"],
"func-visibility": ["error", { "ignoreConstructors": true }],
"no-inline-assembly": "off",
"not-rely-on-time": "off"
}
}