-
-
Notifications
You must be signed in to change notification settings - Fork 681
feat: add fixable, no more error when unused variable with prefix _ #1070
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
feat: add fixable, no more error when unused variable with prefix _ #1070
Conversation
implement proposal vuejs#1058 feat vuejs#1058
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this PR.
I like to allow users to ignore variables with specific names.
But, I think it should be an option like varsIgnorePattern
, just like ESLint's no-unused-vars
.
https://eslint.org/docs/rules/no-unused-vars
The vue/no-unused-vars
rule cannot distinguish between varsIgnorePattern
and argsIgnorePattern
, so I think it's better to add ignorePattern
option.
Also, if we change the variable name by auto fix, it may conflict with other variables. So, could you change it so that it does not autofix it.
okay, i will do that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you very match!
|
implement proposal #1058
feat #1058