warning | layout | title |
---|---|---|
This is a dynamically generated file. Do not edit manually. |
default |
no-console | Solhint |
The {"extends": "solhint:default"} property in a configuration file enables this rule.
The {"extends": "solhint:recommended"} property in a configuration file enables this rule.
No console.log/logInt/logBytesX/logString/etc & No hardhat and forge-std console.sol import statements.
This rule accepts a string option of rule severity. Must be one of "error", "warn", "off". Defaults to error.
{
"rules": {
"no-console": "error"
}
}
- Solhint allows this rule to automatically fix the code with
--fix
option
console.log('test')
import "hardhat/console.sol"
import "forge-std/consoleN.sol"
This rule was introduced in Solhint 5.0.4