jsx-eslint/eslint-plugin-react

Detect uninitialized states and statefulness

Open

#1,778 建立於 2018年4月30日

在 GitHub 查看
 (7 留言) (0 反應) (0 負責人)JavaScript (2,797 fork)batch import
help wantednew rulequestion

倉庫指標

Star
 (8,630 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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.

  • PureComponent detection works well but not the other way around: there are no errors thrown for using setState in a component declared as extends React.PureComponent.
  • In React 16.3, it eslint should warn if we have uninitialized state in a stateful component.

貢獻者指南