jsx-eslint/eslint-plugin-react
Ver no GitHubDetect uninitialized states and statefulness
Open
#1.778 aberto em 30 de abr. de 2018
help wantednew rulequestion
Métricas do repositório
- Stars
- (8.630 stars)
- Métricas de merge de PR
- (Nenhuma PRs mesclada em 30d)
Description
First things first, thank you for making this great plugin. 🙌🏻I'm hopeful that I will be able to contribute to this project. Maybe you can tell me if my two requests below make sense. Or maybe there are some rules which I do the job that I haven't discovered yet.
PureComponentdetection works well but not the other way around: there are no errors thrown for usingsetStatein a component declared asextends React.PureComponent.- In React 16.3, it eslint should warn if we have uninitialized state in a stateful component.