-
Notifications
You must be signed in to change notification settings - Fork 89
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
Added Linting Rule #1708
base: master
Are you sure you want to change the base?
Added Linting Rule #1708
Conversation
Thanks for this contribution @psankhe28. Before I review, I just want to make sure - does this PR also remove garbage |
It removes all console.log and allows console.debug, error etc. |
I'm not sure you understood my question. In at least 8 files (they're actually highlighted by GitHub in the "Files changed" tab), there are still |
I think so I misunderstood the requirement. I will look into it again. |
That's alright. The approach you took was good - we are looking to do what you did - just to also modify those existing statements. |
Description
#1665
Changes
The no-console linting rule in ESLint discourages or prevents the use of console.log statements in your JavaScript codebase while allowing the use of other console methods like console.error, console.warn, console.info, and console.table.
Screenshots
I have tested it on a file called test.js and test1.js.
Output:
Tests
17/17 passed