forked from OpenZeppelin/openzeppelin-confidential-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsolhint.config.js
More file actions
30 lines (28 loc) · 714 Bytes
/
solhint.config.js
File metadata and controls
30 lines (28 loc) · 714 Bytes
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
const customRules = require('solhint-plugin-openzeppelin');
const rules = [
'avoid-tx-origin',
'const-name-snakecase',
'contract-name-capwords',
'event-name-capwords',
'max-states-count',
'explicit-types',
'func-name-mixedcase',
'func-param-name-mixedcase',
'imports-on-top',
'imports-order',
'modifier-name-mixedcase',
'no-console',
'no-global-import',
'no-unused-vars',
'quotes',
'use-forbidden-name',
'var-name-mixedcase',
'visibility-modifier-order',
'interface-starts-with-i',
'duplicated-imports',
...customRules.map(r => `openzeppelin/${r.ruleId}`),
];
module.exports = {
plugins: ['openzeppelin'],
rules: Object.fromEntries(rules.map(r => [r, 'error'])),
};