-
-
Notifications
You must be signed in to change notification settings - Fork 668
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
vue/no-undef-properties in v9.30 still emits error for Vuex mutation or getter #2600
Comments
Additional context from #2513 (comment):
|
Another problem is that the fix for Vuex/Pinia in import { mapGetters } from 'vuex';
const GET_SOMETHING = 'GET_SOMETHING';
export default
{
computed:
{
...mapGetters([GET_SOMETHING]),
},
methods:
{
someFunction()
{
if (this[GET_SOMETHING]) // <===== here will be a linting error "vue/no-undef-properties"
{
// .... some code
}
}
}
} |
Having the same issue with |
Here is a couple of patches which I am using with CustomPatch
|
Checklist
Tell us about your environment
Please show your full configuration:
What did you do?
What did you expect to happen?
I expect no linting error of type
vue/no-undef-properties
to be reported for lines 14:5 and 21:10What actually happened?
Repository to reproduce this issue
https://codesandbox.io/p/devbox/gallant-swirles-ljp5n5
The text was updated successfully, but these errors were encountered: