-
Notifications
You must be signed in to change notification settings - Fork 157
/
Copy pathindex.js
33 lines (29 loc) · 953 Bytes
/
index.js
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
module.exports = {
plugins: [ 'graph' ],
extends: 'solhint:recommended',
rules: {
// best practices
'no-empty-blocks': 'off',
'constructor-syntax': 'warn',
// style rules
'private-vars-leading-underscore': 'off', // see graph/leading-underscore
'const-name-snakecase': 'warn',
'named-parameters-mapping': 'warn',
'imports-on-top': 'warn',
'ordering': 'warn',
'visibility-modifier-order': 'warn',
'func-name-mixedcase': 'off', // see graph/func-name-mixedcase
'var-name-mixedcase': 'off', // see graph/var-name-mixedcase
// miscellaneous
'quotes': ['error', 'double'],
// security
'compiler-version': ['off'],
'func-visibility': ['warn', { ignoreConstructors: true }],
'not-rely-on-time': 'off',
// graph
'graph/leading-underscore': 'warn',
'graph/func-name-mixedcase': 'warn',
'graph/var-name-mixedcase': 'warn',
'gas-custom-errors': 'off'
},
}