Skip to content

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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy