palantir / tslint-react

:orange_book: Lint rules related to React & JSX for TSLint.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rule suggestion: no unused props

OliverJAsh opened this issue · comments

It would be great to have a rule that errors if a component has a prop defined in its props type that is unused.

ESLint has a rule for this called react/no-unused-prop-types.

@OliverJAsh but it doesn't work with SFCs. Is it not something that could be added to this repo's scope, given that SFCs over Classes is clearly the direction React is moving towards.