jsx-eslint/eslint-plugin-react
Voir sur GitHubno-array-index-key not triggered when spreading props
Open
#1 625 ouverte le 24 déc. 2017
enhancementhelp wanted
Métriques du dépôt
- Stars
- (8 630 stars)
- Métriques de merge PR
- (Aucune PR mergée en 30 j)
Description
There's no warning or error when doing something like this:
people.map(({ name, email }, key) => {
const props = {
key,
name,
email,
};
return <Person {...props} />;
});
I realize this is a bit of an edge case, but maybe we can find a way to catch these uses as well.