Skip to content

attribute-hyphenation rule has no effect on event attributes #586

@churkin

Description

@churkin

ESLint Version: 5.4.0
eslint-plugin-vue Version: 4.7.1

Rule:
"vue/attribute-hyphenation": [2, "always"]

Code:

<data-grid
  :showBorders="true"
  keyExpr="ID"
  @selectionChanged="onSelectionChanged"
>

I get two errors, but should three:

6:7 error Attribute ':showBorders' must be hyphenated vue/attribute-hyphenation
8:7 error Attribute 'keyExpr' must be hyphenated vue/attribute-hyphenation

✖ 2 problems (2 errors, 0 warnings)
2 errors and 0 warnings potentially fixable with the --fix option.

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