-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable no-console
ESLint rule
#39797
Comments
Heads up @taylorsperry @jasongornall - the "team/frontend-platform" label was applied to this issue. |
Here is the GitStart Ticket for this issue: https://app.gitstart.com/clients/sourcegraph/tickets/SG-39797 |
Hi @valerybugakov |
From the issue description:
Hey @gitstart-sourcegraph, for non-application code, we should allow console usage. |
Problem statement
Enable
no-console
ESLint ruleSuccess criteria
no-console
is set toerror
in the monorepoeslintrc
.no-console
is disabled for server-side code (e.g.,client/web/dev
orgulpfile.js
) and Storybook stories viaeslintrc
overrides
field.no-console
is disabled forbrowser
andVSCode
packages in theireslintrc
configs.logError
utility function is added to the@sourcegraph/common
package.console.error()
calls are replaced with the newlogError
utility function.console.log()
calls are removed or replaced with the newlogError
utility function.Time estimate
The text was updated successfully, but these errors were encountered: