This solhint plugin helps avoid the usage of console statement in production env.
npm install --save-dev solhint-plugin-avoid-console
Add the following info to your solhint configuration:
{
"plugins": ["avoid-console"],
"rules": {
"avoid-console/no-console-log": "error"
}
}