jsx-eslint/eslint-plugin-react
Auf GitHub ansehenno-array-index-key not triggered when spreading props
Open
#1.625 geöffnet am 24. Dez. 2017
enhancementhelp wanted
Repository-Metriken
- Stars
- (8.630 Stars)
- PR-Merge-Metriken
- (Keine gemergten PRs in 30 T)
Beschreibung
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.