Skip to content

Rule proposal: component-name-in-template-casing #250

Closed
@michalsnik

Description

@michalsnik

Style guide:
https://vuejs.org/v2/style-guide/#Component-name-casing-in-templates-strongly-recommended

Description:
This rule would ensure proper component names in templates. As we only check .vue files in terms of templates we can provide both options: kebab-case and PascalCase

Good examples:

  • kebab-case
<the-component />
  • PascalCase
<TheComponent />

Bad examples:

<theComponent />
<Thecomponent />
<The-component />

and obviously with kebab-case option it would warn about PascalCase and vice-versa.

Default option would be PascalCase.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions