-
-
Notifications
You must be signed in to change notification settings - Fork 24
Closed
Labels
Good First IssueGood for newcomersGood for newcomersReact 19Status: ReleasedThe issue has been releasedThe issue has been releasedType: BugSomething isn't workingSomething isn't working
Description
Describe the bug
I'm working in a monorepo which includes both React and NestJS projects. Nest also exports a function named forwardRef
, which the linter over-zealously removes (see the below diff after running eslint --fix
Looking at the rule source, isReactAPI
doesn't seem to validate the import actually comes from the react
package
I've bypassed it on my end by disabling the rule for that workspace
Reproduction
- Create a file with the contents
import { forwardRef } from "not-react"
forwardRef(() => null)
-
Run
eslint --fix
-
See that the non-react forwardRef has been removed
Expected behavior
Only react APIs are removed
Platform and versions
"@eslint-react/eslint-plugin": "^1.52.2",
Stack trace
Additional context
No response
Metadata
Metadata
Assignees
Labels
Good First IssueGood for newcomersGood for newcomersReact 19Status: ReleasedThe issue has been releasedThe issue has been releasedType: BugSomething isn't workingSomething isn't working