-
-
Notifications
You must be signed in to change notification settings - Fork 669
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
[no-unused-properties] can't recognize $props.xxx used #2344
Comments
Duplicate of #1285 |
Thanks for clarifying status |
@FloEdelmann I have a fix for this issue, but only for using This fix is like a half-solution (supporting all scenarios will require lots of changes), so I would like to ask first: is it worth sending PR? |
I guess that's already an improvement, so IMO it's definitely worth a PR. |
Reopening this issue for only the specific issue of using |
Checklist
Tell us about your environment
Please show your full configuration:
What did you do?
What did you expect to happen?
props:
class
andfor
not reported as unusedWhat actually happened?
props:
class
andfor
reported as unusedRepository to reproduce this issue
playground link
Bug description:
When we want to define a prop name as a js keyword (for example: class, for, ...) it is required to use them as
$props.PROP
, because using simply asPROP
will lead to parsing error.Another option is to use as
props.PROP
with props variable declarationbut the rule doesn't support it too #2193
The text was updated successfully, but these errors were encountered: