| warning | This is a dynamically generated file. Do not edit manually. |
|---|---|
| layout | default |
| title | no-console | Solhint |
The {"extends": "solhint:default"} property in a configuration file enables this rule. THIS IS DEPRECATED SINCE VERSION 5.1.0
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 for 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
--fixoption
console.log('test')import "hardhat/console.sol"import "forge-std/consoleN.sol"This rule was introduced in Solhint 5.0.4