Skip to content

Rule Proposition: Props Casing #92

@filipalacerda

Description

@filipalacerda

Per feedback in #77 (comment):

Rule proposition:

Props Casing

Define a style for the props casing in templates

We (at GitLab) often see inconsistency in the way we provide props through templates:

<component myProp="prop"></component>

or

<component my-prop="prop"></component>

Configuration

'vue/props-casing': ['camelCase'|'kebab-case'|'PascalCase']

camelCase
<component myProp="prop"></component>
kebab-case
<component my-prop="prop"></component>
PascalCase
<component MyProp="prop"></component>

cc @armano2

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