rule v-on-handler-style
didn't allow async event listener
#2421
Labels
v-on-handler-style
didn't allow async event listener
#2421
Checklist
Tell us about your environment
Please show your full configuration:
https://github.com/n0099/open-tbm/blob/43520ccf9b179639a1bbe78e7351ca569f448bf5/fe/.eslintrc.cjs#L512
What did you do?
What did you expect to happen?
Not reporting.
What actually happened?
there's an auto fix available, but it will just warping the async function into a regular function declaration and not executing it:
Only warping it with an IIFE is working proper:
Or just allow async event listener since it just works: vuejs/vue#10338 (comment)
Repository to reproduce this issue
https://github.com/n0099/open-tbm/blob/2ed3aa04d13cf73d4e3dcf751d336a3e93477d91/fe/src/components/Post/PostPage.vue#L7
The text was updated successfully, but these errors were encountered: