Description
Tell us about your environment
- ESLint version: 7.x.x
- eslint-plugin-vue version: 7.20.0
- Node version: 14.x.x
The problem you want to solve.
When mapping props with Vuex's mapState
& mapGetters
and methods with mapMutations
& 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.