jsx-eslint/eslint-plugin-react
GitHub で見るno-array-index-key not triggered when spreading props
Open
#1,625 opened on 2017年12月24日
enhancementhelp wanted
説明
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.