-
-
Notifications
You must be signed in to change notification settings - Fork 681
Check @vue/composition-api
Usages in no-ref-as-operand
#1225
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
Check @vue/composition-api
Usages in no-ref-as-operand
#1225
Conversation
Thank you for this PR! But I've never used As far as I've checked the Can you see if other rules can support
We will not change the categories. Because using |
If no other rule can be applied to |
I added support for the other rules. I do still believe it should be added to The rule is massively helpful in making sure you don't miss using The only downside I can see is that it might take longer to run the linting, but I don't know how much that would increase by enabling one rule. |
Thank you for making other rule changes. Did these rule changes work in your environment using
I'm mainly concerned about this. The number of rules is small right now, but the problem will increase if more rules are added in the future. |
It seems like Everything else seems to work as intended. If I understand how ESLint's tracemaps work (based on how they're defined) wouldn't adding a rule where none of the relevant traces are hit not increase the performance significantly? In this case it would only run the rule check if it would find a usage of one of the composition API functions - and otherwise it would just skip them. |
Thank you so much for checking the behavior of I don't think a note is needed because the other rules are "not need supports", not "cannot be applied". If |
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!
Allows the rule to work with code imported from
@vue/composition-api
as well asvue
.With this the rule should probably be moved to
essential
instead ofvue3-essential
to make sure it's included for people using@vue/composition-api
in Vue 2.