eslint-plugin-react-redux icon indicating copy to clipboard operation
eslint-plugin-react-redux copied to clipboard

[react-redux/no-unused-prop-types] rule false positive on props defined as strings in ts interface

Open JustFly1984 opened this issue 5 years ago • 2 comments

there was no error until I have updated react-redux to the latest version [email protected]

Screenshot 2020-07-27 15 00 23

JustFly1984 avatar Jul 27 '20 08:07 JustFly1984

@JustFly1984, thanks for reporting this. Not sure I follow - would you be able to provide a min code sample to repro the issue.

DianaSuvorova avatar Jul 27 '20 18:07 DianaSuvorova

@DianaSuvorova The problem is that your plugin doesn't consider aria-label or aria-hidden as valid prop, may be cos it is reassigned to ariaLabel/ariaHidden in component props destructuring.

JustFly1984 avatar Jul 27 '20 19:07 JustFly1984