Rules
no-missing-component-display-name
Full Name in eslint-plugin-react-x
Full Name in @eslint-react/eslint-plugin
Features
🔍
What it does
Enforces that all components have a displayName or name which React can use as its displayName 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)