mirror of openzeppelin-contracts
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.
openzeppelin-contracts/solhint.config.js

27 lines
619 B

const customRules = require('./scripts/solhint-custom');
const rules = [
'avoid-tx-origin',
'const-name-snakecase',
'contract-name-camelcase',
'event-name-camelcase',
'explicit-types',
'func-name-mixedcase',
'func-param-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}`),
];
module.exports = {
plugins: ['openzeppelin'],
rules: Object.fromEntries(rules.map(r => [r, 'error'])),
};