TS noUnusedLocals instead of Eslint no-undef gives false positive? #510
-
So the recommended way to prevent unused locals with script setup is via TS noUnusedLocals: #47 However I'm getting this TS error when I only write to a variable (and read in another component). Simple example: What is the recommended way to solve this? Or should I create an issue for this? I'm using the latest version of Volar with takeover-mode enabled |
Beta Was this translation helpful? Give feedback.
Answered by
johnsoncodehk
Sep 20, 2021
Replies: 1 comment
-
The reason for the error is that the user has only been assigned a value, but no value has been taken, so it is not considered to have been used. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
iamrgroot
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The reason for the error is that the user has only been assigned a value, but no value has been taken, so it is not considered to have been used.