-
-
Notifications
You must be signed in to change notification settings - Fork 427
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
Script setup + eslint = unused vars #47
Comments
hi @iamrgroot, it may can't be fix now, relate: #34 (comment) @soulsam480 can you share your experience? |
can you disable
|
That's an awesome tip, thanks! (maybe you can document it :P |
@antfu Okay, let me open a tips topic to Discussions late, there has more I can share :) |
On this issue, to be clear are, you recommending we set Setting |
@CharlesOkwuagwu this is a replacement for |
Check this |
mark |
I know the new documentation says you don't need any special config settings with Vue + TS to get this working, but that's not the case. I'm using TS 5.X and the most updated version of Vue 3, and I still had to disable the JS and TS rules for This should really, really be mentioned in this section of the documentation: https://vuejs.org/guide/typescript/overview.html#volar-takeover-mode It would have saved me hours. |
Is there any way to let eslint check whether the constants in a script tag with 'setup' sugar are being used in the template? I would prefer it to keep using the rule in my projects.
The following code triggers the '@typescript-eslint/no-unused-vars' eslint rule for the
props
andincrement
consts.The text was updated successfully, but these errors were encountered: