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
Feature: no-inline-comments: Allow exception inside JSX #11270
Feature: no-inline-comments: Allow exception inside JSX #11270
Comments
Since comments require the |
Unfortunately, it looks like there wasn't enough interest from the team Thanks for contributing to ESLint and we appreciate your understanding. |
Reopening. I'll champion this. |
I'd like to add an option called "ignoreJSX". |
@platinumazure @g-plane It sounds like we have two different implementation ideas here (assuming @platinumazure was championing something in neighborhood of what I was suggesting). How should we proceed? |
I don't feel strongly either way. I would be okay with an option, but I also note that this rule is pretty much unusable in JSX without the new option and I think we could easily avoid a breaking change in non-JSX code even if we change the default behavior. |
The current behavior in JSX does feel like a bug to me, and I would be okay with changing the behavior by default for JSX as long as other cases aren't affected. If we make this change, I do think we should note the reasoning for this exception in the docs. It would be even better if we could get this into v6! |
@eslint/eslint-team Looks like we need one more 👍 or it might be time to close this issue. @platinumazure are you still championing this change? |
+1 on this. There should be an option to allow exception on comments inside JSX |
@kaicataldo Yes, I'll champion still. I'll poke in the team chat for another 👍 from the team 😄 |
+1 👍 |
Thanks @dorian-marchal... We're looking for a 👍 from a member of the ESLint team. (Please review our consensus process for more context.) That said, we did get another team member's 👍, so this issue is accepted. |
I'm working on this. |
What rule do you want to change?
no-inline-comments
Does this change cause the rule to produce more or fewer warnings?
Fewer
How will the change be implemented? (New option, new default behavior, etc.)?
Rule options, or change in rule behavior
Please provide some example code that this change will affect:
What does the rule currently do for this code?
Right now
no-inline-comments
will warn on any comments inside JSX.What will the rule do after it's changed?
It makes sense to allow comments inside JSX while still disallowing inline comments in regular JS blocks.
Are you willing to submit a pull request to implement this change?
Unfortunately not.
The text was updated successfully, but these errors were encountered: