Skip to content
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

Browser globals should have console #1074

Closed
gyandeeps opened this issue Jul 10, 2014 · 3 comments
Closed

Browser globals should have console #1074

gyandeeps opened this issue Jul 10, 2014 · 3 comments
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion triage An ESLint team member will look at this issue soon

Comments

@gyandeeps
Copy link
Member

I think by default the browser globals should have console in it.
What do you think guys?

@jonvuri
Copy link
Contributor

jonvuri commented Jul 10, 2014

In Node, console is a natural mode of output. However, in the browser, console statements are usually only used for debugging, and leaving them in finished code is usually a mistake. I think using console in the browser environment is the exception rather than the rule - it can easily be defined as a separate global, but it probably shouldn't be defined by default.

@nzakas
Copy link
Member

nzakas commented Jul 10, 2014

Agree with @jrajav 100%.

@Nate-Wilkins
Copy link
Contributor

Plus production logging usually persists through a logging service that might do additional processing to a log statement. Maybe even write back to the server for server side logging. console logging isn't really equally supported in the browser (different interface for different browsers)

@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Feb 7, 2018
@eslint-deprecated eslint-deprecated bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Feb 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion triage An ESLint team member will look at this issue soon
Projects
None yet
Development

No branches or pull requests

4 participants