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

add rule to detect missing key prop #2

Merged
merged 1 commit into from
Jan 10, 2022
Merged

Conversation

LukasLohoff
Copy link
Member

Adds https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-key.md which gives a warning when a list or an element in an iterator does not have a unique key prop, e.g.:

[<Hello />, <Hello />, <Hello />];

@terrestris/devs Please review.

@LukasLohoff LukasLohoff merged commit c42d4c0 into main Jan 10, 2022
@marcjansen marcjansen deleted the eslint-key-prop-rule branch January 10, 2022 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants