This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 659
📎 noConsoleLog
#4223
Comments
By default, the rule seems to completely disallow any call to |
Whoops! Sorry yes. Referring to my eslint file: I configured it in such a way that basically everything was allowed BUT the use of console.log. This ensures developers don't accidentally leave hanging console.logs for debug purposes, anything that's not a log would be something deliberate and intended to remain in the code indefinitely. |
Any news on this? I really enjoyed the |
PRs welcome :) |
im open as well to a general |
3 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
https://eslint.org/docs/latest/rules/no-console
forces people to use .error, .info, but not .log as it's for debug purposes and not explicit about the context of the output.
Or maybe it's better to have a more general purpose 'ban', so users can configure more fine-grained things to ban including something like this.
The text was updated successfully, but these errors were encountered: