Rules
no-missing-component-display-name
Full Name in eslint-plugin-react-x
Full Name in @eslint-react/eslint-plugin
Description
Enforces that all components have a displayName which can be used in devtools.
When defining a React component, if you specify its component name in a way that React can't infer its displayName, it will show up as an anonymous component in devtools, which makes debugging more difficult.
Examples
Failing
(Not supported yet)
Passing
Implementation
See Also
no-missing-context-display-name
Enforces that all contexts have adisplayNamewhich React can use as itsdisplayNamein devtools.