You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable the no-console ESLint rule (allowing console.warn / console.error) in the shared lint config so stray console.log debugging statements cannot ship to production.
What the rule catches
no-console flags calls to console methods. Configured as:
it errors on console.log, console.debug, console.info, console.table, etc., while still permitting intentional diagnostics via console.warn and console.error.
Why it improves code quality
No debug leftovers in prod.console.log lines added while debugging routinely slip into commits. On a public landing site they leak to every visitor's devtools and add noise.
Forces intent. Output that should exist is written through console.warn/console.error, making real diagnostics distinguishable from forgotten debugging.
Zero current cost. The rule currently reports 0 violations across src/, so enabling it is a pure guardrail with no code churn.
Scope
One rule, error level, warn/error allowed.
No other rules touched.
This issue was opened by the "Add lint rule → issue + PR (owned repos + my orgs) → Slack" routine of moadim, on behalf of @tupe12334.
Activity
github-actions commentedon Jun 18, 2026
A workspace is ready for this issue.
Powered by Worktree · Install