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
BUG "jsx-key" should warning when iterate element with optional chaining syntax #2594
Comments
(in general, please post code samples as text; images of text are not accessible, can't be copy-pasted, and difficult to read in many circumstances) That second example would never happen in real code, of course, but yes, I agree that in that case it should show a warning. |
Thank you first, yes, in the second example, the initial value of |
I cloned this repository, and try to add a test case like below |
perhaps - is that the parser you're using? only the typescript parser, and babel-eslint, currently support optional chaining. |
I'm using |
TYPESCRIPT_ESLINT is the old parser; you'll need |
Yes, I want, but I can't make this use case pass the test with |
That’s fine, a PR with a failing test is still much easier for me to work with than issue comments :-) |
Iterate jsx element with optional chaining syntax,
react/jsx-key
rule don't show warnings.Just like this
The text was updated successfully, but these errors were encountered: