vuejs / vue-eslint-parser

The ESLint custom parser for `.vue` files.
MIT License
443 stars 74 forks source link

Support for `vue 3.3` `defineEmits` #197

Closed yuntian001 closed 1 year ago

yuntian001 commented 1 year ago

vue3.3 allow

const emit = defineEmits<{
  foo: [id: number]
  bar: [name: string, ...rest: any[]]
}>()

But the error 'vue/valid-define-emits' is still reported

ota-meshi commented 1 year ago

It's not released yet. See https://github.com/vuejs/eslint-plugin-vue/issues/2126