jsx-eslint/eslint-plugin-react

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

Aberta

#2.150 aberto em 2 de fev. de 2019

 (5 comentários) (0 reação) (0 responsável)JavaScript (2.731 forks)batch import
help wantedquestion

Métricas do repositório

Stars
 (9.293 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

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.

Guia do colaborador