-
-
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
Vuex and Pinia support #1675
Comments
Still hopeful for this, even though it's been sitting here for 5 months... Don't know if these would help? I'm using a version of these with |
This issue is also applicable to Pinia v2 state management |
I would definitely consider this as useful, so +1 :) |
This also affects |
I think this issue is just partially resolved, because #2276 only add support to Vuex, not Pinia. With Pinia you have to pass the store as first argument on its map methods (egg: Also Pinia has some additional methods like This support would be very helpfull to me, how can I help? |
A PR which adds support for Pinia's methods along with test cases would be appreciated 🙂 |
Tell us about your environment
The problem you want to solve.
When mapping props with Vuex's
mapState
&mapGetters
and methods withmapMutations
&mapActions
,vue/no-unused-properties
doesn't report those props/methods if they're unused. Also,vue/no-undef-properties
reports those props as undefined if they're used.Your take on the correct solution to problem.
Considering Vuex is a core part of the Vue ecosystem & is widely used, the aforementioned rules should take mapped props & methods into account.
Additional context
The text was updated successfully, but these errors were encountered: