-
-
Notifications
You must be signed in to change notification settings - Fork 416
New issue
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
Variable usage checking for css variable injection #335
Comments
Is this supposed to handle string paths? |
@glen-84 No, I keep string paths as a way to escape diagnosis. |
But then how can I get the variable to show as used? |
Use |
https://v3.vuejs.org/api/sfc-style.html#state-driven-dynamic-css
|
@glen-84 Thanks to point this out! Will follow up this problem. |
The variable used as css variable inject (vuejs/rfcs#231) will not considered as an used variable and produce a 'declared but its value is never read' error.
Example:
The variable
containerHeight
will cause a error since it only used in the style tag.The text was updated successfully, but these errors were encountered: