Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
2 tasks done
claneo opened this issue Feb 6, 2024 · 1 comment · Fixed by #2408
Closed
2 tasks done

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

claneo opened this issue Feb 6, 2024 · 1 comment · Fixed by #2408

Comments

@claneo
Copy link
Contributor

claneo commented Feb 6, 2024

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

@FloEdelmann FloEdelmann added the bug label Feb 6, 2024
@FloEdelmann FloEdelmann changed the title vue/no-useless-v-bind auto-fix add extra whitespace vue/no-useless-v-bind auto-fix adds extra whitespace Feb 6, 2024
@FloEdelmann
Copy link
Member

Thanks for the report! PRs are welcome :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants