Skip to content

vue/no-useless-v-bind auto-fix adds extra whitespace #2396

Closed
@claneo

Description

@claneo

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.56.0
  • eslint-plugin-vue version: 9.21.1
  • Vue version:
  • Node version:
  • Operating System:

Please show your full configuration:

module.exports = {
    extends: ['plugin:vue/recommended'],
    rules: {
        'vue/no-useless-v-bind': 'error',
    },
};

What did you do?

<template>
  <div 
    :title="
      'text'
    "
  />
</template>

What did you expect to happen?

<template>
  <div 
    title="text"
  />
</template>

What actually happened?

<template>
  <div 
    title="
      text
    "
  />
</template>

Repository to reproduce this issue

Playground

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