-
- Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Description
There seems to be a regression in version 7.30.0. Functions like these are now treated like components and trigger the react/display-name rule:
export const demo = (a?: string) => (b?: string) => { if (a == null) return null; return b; } I understand that it might be hard to separate function components from regular functions, but aren't React components always capitalized? Couldn't that be a way to identify them?
This wasn't a problem in version 7.29.4 of eslint-plugin-react.
eslint@8.15.0
eslint-plugin-react@7.30.0
ashharrison90
Metadata
Metadata
Assignees
Labels
No labels