DianaSuvorova / eslint-plugin-react-redux

Enforcing best practices for react-redux

Home Page:https://www.npmjs.com/package/eslint-plugin-react-redux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

JustFly1984 opened this issue · comments

there was no error until I have updated react-redux to the latest version react-redux@7.2.1

Screenshot 2020-07-27 15 00 23

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

@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.