-
-
Notifications
You must be signed in to change notification settings - Fork 681
vue/no-unused-vars needs configuration options similar to eslint/no-unused-vars #294
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
Comments
Hey @Phlow2001. Thanks for posting this proposition. I very much agree with you, it's a valid point. Though I think that for the sake of Vue DSL it should be enough if we only implement "after-used" and make this a default behaviour of this rule. So we would simply ignore all properties but last. What do you think? |
I think that's reasonable. If someone has a valid need for more they can submit an issue at that point. |
Cool, then I'm going to work on this now :) |
When I work with Element UI, they have template with scope that I never use, but Element will not work without it. So I need options to put at least,
|
I agree with @sangdth -- running into this same issue with slot-scope. |
@sangdth , @rachel-flux Now i disabled this rule with using {} instead scope |
|
Hi. We plan to add option to |
Tell us about your environment
Please show your full configuration:
What did you do? Please include the actual source code causing the issue.
What did you expect to happen?
v-for supports optional 2nd and 3rd params, and it's not unexpected that the 2nd param would be unused. eslint/no-unused-vars allows for configurations that take this into account, such as in my config:
What actually happened? Please include the actual, raw output from ESLint.
The 'key' variable is unused and therefore causes an error.
[eslint-plugin-vue] [vue/no-unused-vars] 'key' is defined but never used.
The text was updated successfully, but these errors were encountered: