Skip to content

vue/custom-event-name-casing forcing camelCase on vue2 code #1362

Closed
@cain

Description

@cain

What rule do you want to change?
Removing rule from vue2 vue/custom-event-name-casing.

Official vue documentation recommends using kebab case for naming custom event names. https://vuejs.org/v2/guide/components-custom-events.html#Event-Names
"For these reasons, we recommend you always use kebab-case for event names."

Does this change cause the rule to produce more or fewer warnings?
Fewer

How will the change be implemented? (New option, new default behavior, etc.)?
Removing rule from plugin:vue/recommended and plugin:vue/essential

Please provide some example code that this change will affect:

$emit('somethingCool') // throws linting error

What does the rule currently do for this code?

What will the rule do after it's changed?

Additional context
version: 7.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions