We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example code:
"use client";
Expected: no warning from remove-unused-expressions
Actual: warning from remove-unused-expressions - Unused expression statement
Unused expression statement
"use client"; is a special React directive and should be allowed, see https://react.dev/reference/rsc/use-client
The text was updated successfully, but these errors were encountered:
feature: @putout/plugin-remove-unused-expressions: use client: exclude (
cb3b146
#211)
Just excluded use client and landed in v35.36.1 🎉.
use client
v35.36.1
Is it works for you?
Sorry, something went wrong.
Yes, it works now, thank you!
No branches or pull requests
Example code:
Expected: no warning from remove-unused-expressions
Actual: warning from remove-unused-expressions -
Unused expression statement
"use client";
is a special React directive and should be allowed, see https://react.dev/reference/rsc/use-clientThe text was updated successfully, but these errors were encountered: