Skip to content

Auto fix of vue/attribute-hyphenation rule cause error on passing props to child component #2228

Closed
@levchak0910

Description

@levchak0910

Checklist

  • I have tried restarting my IDE and the issue persists.
  • I have read the FAQ and my problem is not listed.

Tell us about your environment

  • ESLint version: ^8.15.0
  • eslint-plugin-vue version: 9.15.1
  • Node version: 16.20.1
  • Operating System: Linux Ubuntu

Please show your full configuration:

{
  rules: {
    "vue/attribute-hyphenation": "error"
  }
}

What did you do?

link to reproduction

What did you expect to happen?

Do not auto fix attribute name

What actually happened?

Fixer changed property name, what caused incorrect data passing to child component

Repository to reproduce this issue

Link above ^

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