Skip to content

chore: enable react/no-array-index-key eslint #3696

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

Merged
merged 2 commits into from
Aug 25, 2022
Merged

Conversation

jsjoeio
Copy link
Contributor

@jsjoeio jsjoeio commented Aug 25, 2022

Description

This PR enables a new ESLint rule: react/jsx-key

Example

It catches missing key props like this one:

image

Motivation

This helps us keep the console free of warnings/errors for our end users and encourages us to follow best practices. A lint rule will help us catch these when we forget.

Fixes #3599

@jsjoeio jsjoeio self-assigned this Aug 25, 2022
@jsjoeio jsjoeio added the chore label Aug 25, 2022
@jsjoeio jsjoeio force-pushed the jsjoeio/fix-eslint branch from 870005b to 52cc456 Compare August 25, 2022 17:37
@jsjoeio jsjoeio marked this pull request as ready for review August 25, 2022 17:39
@jsjoeio jsjoeio requested a review from a team as a code owner August 25, 2022 17:39
@jsjoeio jsjoeio requested review from Kira-Pilot and code-asher and removed request for a team August 25, 2022 17:39
@jsjoeio
Copy link
Contributor Author

jsjoeio commented Aug 25, 2022

@Kira-Pilot is on PTO. @code-asher can i get a review?

Copy link
Member

@code-asher code-asher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh very nice.

@code-asher code-asher removed the request for review from Kira-Pilot August 25, 2022 18:20
@jsjoeio jsjoeio merged commit 94e96fa into main Aug 25, 2022
@jsjoeio jsjoeio deleted the jsjoeio/fix-eslint branch August 25, 2022 18:20
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.

Warning: Each child in a list should have a unique "key" prop
3 participants