Enable more solhint rules (#4836)
This commit is contained in:
@ -1,16 +1,22 @@
|
||||
const customRules = require('./scripts/solhint-custom');
|
||||
|
||||
const rules = [
|
||||
'no-unused-vars',
|
||||
'avoid-tx-origin',
|
||||
'const-name-snakecase',
|
||||
'contract-name-camelcase',
|
||||
'event-name-camelcase',
|
||||
'explicit-types',
|
||||
'func-name-mixedcase',
|
||||
'func-param-name-mixedcase',
|
||||
'modifier-name-mixedcase',
|
||||
'var-name-mixedcase',
|
||||
'imports-on-top',
|
||||
'modifier-name-mixedcase',
|
||||
'no-console',
|
||||
'no-global-import',
|
||||
'no-unused-vars',
|
||||
'quotes',
|
||||
'use-forbidden-name',
|
||||
'var-name-mixedcase',
|
||||
'visibility-modifier-order',
|
||||
...customRules.map(r => `openzeppelin/${r.ruleId}`),
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user