Skip to content

Rule proposal: html-element-name-kebab-casing #499

Closed
@ota-meshi

Description

@ota-meshi

Please describe what the rule should do:

This rule enforces the tag name of the Vue component, HTML element, and custom element to be kebab-case.
It does not target elements of MathML or SVG.

What category of rule is this? (place an "X" next to just one item)

[X] Enforces code style
[ ] Warns about a potential error
[ ] Suggests an alternate way of doing something
[ ] Other (please specify:)

Provide 2-3 code examples that this rule will warn about:

<Div/>
<CustomElement/>
<VueComponent/>

Why should this rule be included?

see
#397 (comment)

In order for us to implement the component-name-in-template-casing rule we need to distinguish between Vue components and non-Vue custom elements. But this is very difficult.

I think this rule(html-element-name-kebab-casing) will be useful for projects that prefer kebab-case.

component-name-in-template-casing #250

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions