Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

attribute-hyphenation should apply to v-model:propName #2510

Copy link
Copy link
Closed
@catrope

Description

@catrope
Issue body actions

What rule do you want to change? attribute-hyphenation

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

How will the change be implemented? (New option, new default behavior, etc.)? New default behavior

Please provide some example code that this change will affect:

<my-component
    v-model:selectedItem="..."
   defaultValue="..."
/>

What does the rule currently do for this code? It flags that the defaultValue prop is not hyphenated (should be default-value), but it does not flag the selectedItem prop.

What will the rule do after it's changed? In addition to complaining that defaultValue should be hyphenated (default-value), it will also complain that selectedItem should be hyphenated (v-model:selected-item)

Additional context
If prop names should be hyphenated, then they should always be hyphenated, even when used with v-model.

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.