Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Not escaped ampersand used in attribute/prop creates errors in next lines #157

Closed
@krystian-wolarek

Description

@krystian-wolarek

Tell us about your environment

  • ESLint version: 8.18.0
  • eslint-plugin-vue version: 9.1.1
  • Node version: 4.16.0
  • Operating System: macOS Monterey 12.3

Please show your full configuration:
Clean Vue project with 1 additional rule

"rules":{"vue/max-attributes-per-line":["error",{"singleline":{"max":1},"multiline":{"max":1}}]}

What did you do?

When we place any attribute ( prop or normal html attribute) that ends with& like in example bellow then eslint complains in next line about errors that not exist. SeeWhat actually happened?

When i add any letter after ampersand or escape it manually it working fine. SeeWhat did you expect to happen?

<some-component    separator="&"    any-attribute="Vue logo"    />

What did you expect to happen?
Zrzut ekranu 2022-06-21 o 14 28 20

What actually happened?
Zrzut ekranu 2022-06-21 o 14 27 28

Repository to reproduce this issue

https://codesandbox.io/s/vigilant-chihiro-e3s7xz?file=/src/App.vue

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp