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

@ota-meshi ota-meshi commented Apr 14, 2022

close #1759

@FloEdelmann
Copy link
Member

FloEdelmann commented Apr 14, 2022

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

@ota-meshi
Copy link
Member Author

ota-meshi commented Apr 14, 2022

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
15 checks passed
@ota-meshi ota-meshi deleted the custom-event-name-casing-default branch May 11, 2022
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.

2 participants