eslint icon indicating copy to clipboard operation
eslint copied to clipboard

fix(vue): disable `vue/no-v-model-argument` for Vue 3

Open antfu opened this issue 3 years ago • 4 comments

antfu avatar Sep 06 '22 01:09 antfu

Can you please explain why disabling this rule? (https://eslint.vuejs.org/rules/no-v-model-argument.html)

pi0 avatar Sep 06 '22 08:09 pi0

I think the root issue here is that we are still exporting Vue 2 eslint rules. Should we update to Vue 3?

https://github.com/nuxt/eslint-config/issues/216

danielroe avatar Sep 06 '22 09:09 danielroe

Let's fix #216 then for proper Vue 3 detection. We could detect installed vue version to adjust preset behavior (https://github.com/nuxt/eslint-config/pull/217#issuecomment-1161473288 -- defaulting to vue3)

pi0 avatar Sep 06 '22 09:09 pi0

Nice idea 👍

danielroe avatar Sep 06 '22 09:09 danielroe