-
-
Notifications
You must be signed in to change notification settings - Fork 681
vue/custom-event-name-casing
: should check and report update:kebab-case
/update:camelCase
event names too
#2439
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
Comments
The source code and test case look like it's intentional. 🤔 |
@waynzh I just ran into this too, and would suggest it is a bug, for the following reason: Vue itself performs event name remapping even when the event name starts with Additionally I noticed that the Utils
So anything containing symbols i.e. the
I'm new around here, but would be happy to try and contribute a fix if that's all right? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Is it specific to |
Checklist
Tell us about your environment
Please show your full configuration:
What did you do?
What did you expect to happen?
emit
and$emit
calls withupdate:kebab-case
like event names should be reported because of wrong event name casing but no error is reported.side note:
vue/v-on-event-hyphenation
are able to report such event names as error as expected.What actually happened?
Nothing, no error is reported.
(It seems the rule only works with plain
kebab-case
/camelCase
event names.)Repository to reproduce this issue
Repo with minimal reproduction
Just open a new terminal or terminate dev server in current terminal then run
npm run lint
to see the problem. Feel free to change the eslint rule setting tokebab-case
it won't report errors either.The text was updated successfully, but these errors were encountered: