-
-
Notifications
You must be signed in to change notification settings - Fork 331
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
Disallow usage of console.log #4585
Conversation
Performance Report✔️ no performance regression detected Full benchmark results
|
I think ideally your idea 2 can be used. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO console.log usage is not acceptable anywhere including tests. We may use it sometimes if it's really useful but usage must be discouraged in tests, and (potentially) forbidden in src code.
Motivation
Recent changes leads to the having warnings like above when the lint task is run:
Description
This PR is to remove the console warnings. It does this by using
/* eslint-disable no-console */
as needed. But other solutions could be:.eslintrc
file?If any of these two other solutions is preferred, then let me know in the comments and I can update the PR accordingly.