-
Notifications
You must be signed in to change notification settings - Fork 150
fix: allow console.debug() in no-debug #349
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
Conversation
I'm not sure if I understand the reason. The first invalid case is way too simple but from the Aggressive Reporting point of view is invalid. However, the case you mentioned shouldn't be reported ideally. Am I missing something else? |
I don't know how I can differentiate const { debug } = console
debug() from simply (which is reported from the aggressive reporting point of view) debug() as this 👆 is included in the above one |
@gndelia ok, I see what you mean now. The difference is basically where they come from: one has been declared destructuring from Since Could you include that case in the rule then, please? |
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.
Nice, almost there! Just a couple of small tweaks and this is good to go 🚀
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.
Awesome 👏
🎉 This PR is included in version 4.1.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
closes #327
I intentionally left out the following scenario
because it goes against the first invalid tests that against any
debug()
, it raises a flag.