eslint-plugin-vue icon indicating copy to clipboard operation
eslint-plugin-vue copied to clipboard

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

Open claneo opened this issue 1 year ago • 1 comments

Checklist

  • [x] I have tried restarting my IDE and the issue persists.
  • [x] 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

claneo avatar Feb 06 '24 09:02 claneo

Thanks for the report! PRs are welcome :)

FloEdelmann avatar Feb 06 '24 10:02 FloEdelmann