Add vue/valid-define-options to vue3-essential config by waynzh · Pull Request #2653 · vuejs/eslint-plugin-vue (original) (raw)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I'm not very familiar with Vue 2.7, I'll check whether defineOptions was introduced in Vue 2.7.
Since vue/valid-define-emits and vue/valid-define-props are in the essential category for both Vue 2 and Vue 3.

Update: Yep, you're right, defineOptions was never added back to Vue 2. So, setting the category as vue3-essential should be enough.