jsx-eslint/eslint-plugin-react

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

Open

#2.150 geöffnet am 2. Feb. 2019

Auf GitHub ansehen
 (5 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (2.797 Forks)batch import
help wantedquestion

Repository-Metriken

Stars
 (8.630 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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.

Contributor Guide