You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
495 B
20 lines
495 B
const customRules = require('./scripts/solhint-custom');
|
|
|
|
const rules = [
|
|
'no-unused-vars',
|
|
'const-name-snakecase',
|
|
'contract-name-camelcase',
|
|
'event-name-camelcase',
|
|
'func-name-mixedcase',
|
|
'func-param-name-mixedcase',
|
|
'modifier-name-mixedcase',
|
|
'var-name-mixedcase',
|
|
'imports-on-top',
|
|
'no-global-import',
|
|
...customRules.map(r => `openzeppelin/${r.ruleId}`),
|
|
];
|
|
|
|
module.exports = {
|
|
plugins: ['openzeppelin'],
|
|
rules: Object.fromEntries(rules.map(r => [r, 'error'])),
|
|
};
|
|
|