Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change default casing of vue/custom-event-name-casing rule to camelCase #1846

Merged
merged 1 commit into from May 11, 2022

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