jsx-eslint/eslint-plugin-react
在 GitHub 查看react/prefer-stateless-function works different than described in docs
Open
#1,901 建立於 2018年7月26日
bughelp wanted
倉庫指標
- Star
- (8,630 star)
- PR 合併指標
- (30 天內沒有已合併 PR)
描述
For the react/prefer-stateless-function rule the docs for ignorePureComponents option states:
When true the rule will ignore Components extending from React.PureComponent that use this.props or this.context.
Actually it also ignore every PureComponent that use not only props or context, but ignores every component that use this. If this is not intended I prepared a fix (GH-1902), otherwise it makes sense to update the docs.