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”. Default to error.
{
"rules": {
"no-console": "error"
}
}
--fix
optionconsole.log('test')
import "hardhat/console.sol"
import "forge-std/consoleN.sol"
This rule was introduced in Solhint 3.4.0