solhint-community
Version:
Solidity Code Linter
67 lines (65 loc) • 1.75 kB
JavaScript
/*
* WARNING: This file is autogenerated using the scripts/generate-rulesets.js
* script. Do not edit manually.
*/
module.exports = Object.freeze({
rules: {
'custom-errors': 'error',
'explicit-types': ['warn'],
'interface-starts-with-i': 'error',
'max-states-count': ['warn', 15],
'no-console': 'error',
'no-empty-blocks': 'warn',
'no-global-import': 'warn',
'no-unused-vars': 'warn',
'one-contract-per-file': 'warn',
'payable-fallback': 'warn',
'reason-string': [
'warn',
{
maxLength: 32,
},
],
quotes: ['error', 'double'],
'named-return-values': ['warn', 1],
'style-guide-casing': [
'warn',
{
ignorePublicFunctions: false,
ignoreExternalFunctions: false,
ignoreInternalFunctions: false,
ignorePrivateFunctions: false,
ignoreModifiers: false,
ignoreImmutables: false,
ignoreConstants: false,
ignoreVariables: false,
ignoreEnums: false,
ignoreStructs: false,
ignoreEvents: false,
},
],
'use-forbidden-name': 'warn',
'imports-on-top': 'warn',
'visibility-modifier-order': 'warn',
'avoid-call-value': 'warn',
'avoid-low-level-calls': 'warn',
'avoid-sha3': 'warn',
'avoid-suicide': 'warn',
'avoid-throw': 'warn',
'avoid-tx-origin': 'warn',
'check-send-result': 'warn',
'compiler-version': ['error', '^0.8.23'],
'func-visibility': [
'warn',
{
ignoreConstructors: false,
},
],
'multiple-sends': 'warn',
'no-complex-fallback': 'warn',
'no-inline-assembly': 'warn',
'not-rely-on-block-hash': 'warn',
reentrancy: 'warn',
'state-visibility': 'warn',
},
})