Skip to content

no-console

Forbids the use of console.log and the import of console.sol.

Examples of incorrect code for this rule:

import "hardhat/console.sol";
contract Example {
function f() public {
console.log("This should not be used in production");
}
}