Closed ElPrudi closed 1 year ago
That's a nice idea! You can configure it right now in a way you like using 🦎Putout Script.
{
"rules": {
"remove-console": ["on", {
"exclude": [
"console.warn(__args)",
"console.error(__args)"
]
}]
}
}
Surprisingly enough, it does work. Thank you very much :)
Still, it would be nice to include it in the readme. It's a very good selling point, because eslints no-console
has no configuration. And I'm sure I'm not the only one with this problem.
exclude
works for all plugins :).
While I like the idea of removing
console.log
, It's a bit to much to also removeconsole.error
orconsole.warn
for logging or error utilities. It would be better to update the README and/or to add configurations to remove only specific kinds of console commands, such as: