Open
Description
It would be helpful to have a rule that enforces to set "use client"
when inside the file/module a React hook is used.
This would help prevent cases where a component that was only imported by a "use client"
one starts being imported also by a "use server"
one and accidentally breaks the page.
I guess the existing hook-detection logic the library uses for other rules would suffice.
Metadata
Metadata
Assignees
Labels
No labels