jsx-eslint/eslint-plugin-react

The react/display-name rule assumes displayNames are set that are not

Open

#2,150 创建于 2019年2月2日

在 GitHub 查看
 (5 评论) (0 反应) (0 负责人)JavaScript (8,630 star) (2,797 fork)batch import
help wantedquestion

描述

From what I can tell, @babel/plugin-transform-react-display-name only adds display names for components created with React.createClass or createReactClass, yet the react/display-name rule assumes the transpiler sets a displayName for components that extend React.Component and functional components.

If the transpiler referenced in the docs is referring to some other babel plugin, the docs should be updated to link to that plugin.

贡献者指南