UNPKG

solhint

Version:
101 lines (99 loc) 2.46 kB
/* * WARNING: This file is autogenerated using the scripts/generate-rulesets.js * script. Do not edit manually. */ module.exports = Object.freeze({ rules: { 'explicit-types': ['warn', 'explicit'], 'function-max-lines': ['warn', 50], 'interface-starts-with-i': 'warn', 'max-states-count': ['warn', 15], 'no-console': 'error', 'no-empty-blocks': 'warn', 'no-global-import': 'warn', 'no-unused-import': 'warn', 'no-unused-vars': 'warn', 'one-contract-per-file': 'warn', 'reason-string': [ 'warn', { maxLength: 32, }, ], 'use-natspec': [ 'warn', { title: { enabled: true, ignore: {}, }, author: { enabled: true, ignore: {}, }, notice: { enabled: true, ignore: {}, }, param: { enabled: true, ignore: {}, }, return: { enabled: true, ignore: {}, }, }, ], 'constructor-syntax': 'warn', 'gas-calldata-parameters': 'warn', 'gas-custom-errors': 'warn', 'gas-increment-by-one': 'warn', 'gas-indexed-events': 'warn', 'gas-small-strings': 'warn', 'gas-strict-inequalities': 'warn', 'gas-struct-packing': 'warn', 'duplicated-imports': 'warn', 'import-path-check': ['warn', ['[~dependenciesPath]']], quotes: ['error', 'double'], 'const-name-snakecase': 'warn', 'contract-name-capwords': 'warn', 'event-name-capwords': 'warn', 'func-name-mixedcase': 'warn', 'immutable-vars-naming': [ 'warn', { immutablesAsConstants: true, }, ], 'use-forbidden-name': 'warn', 'var-name-mixedcase': [ 'warn', { prefixForImmutables: 'IMM_', }, ], '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.24'], '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', }, })