Skip to content

Conversation

ota-meshi
Copy link
Member

close #1759

@FloEdelmann
Copy link
Member

Should the default of vue/v-on-event-hyphenation also change accordingly?

@ota-meshi
Copy link
Member Author

I don't think we need to change vue/v-on-event-hyphenation. Vue3 allows users to listen to camelCase events using kebab-case.

The documentation recommends a kebab-case.

we recommend using kebab-cased event listeners in templates.

https://vuejs.org/guide/components/events.html#emitting-and-listening-to-events

@ota-meshi ota-meshi merged commit 2936553 into master May 11, 2022
@ota-meshi ota-meshi deleted the custom-event-name-casing-default branch May 11, 2022 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change default name case for event names to match documentation
2 participants