eslint-plugin-vue
eslint-plugin-vue copied to clipboard
`vue/no-useless-v-bind` auto-fix adds extra whitespace
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
Thanks for the report! PRs are welcome :)