Skip to content

False positives for CSS v-bind() in vue/no-extra-parens rule #1774

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

Closed
2 tasks done
ota-meshi opened this issue Jan 24, 2022 · 0 comments · Fixed by #1775
Closed
2 tasks done

False positives for CSS v-bind() in vue/no-extra-parens rule #1774

ota-meshi opened this issue Jan 24, 2022 · 0 comments · Fixed by #1775
Labels

Comments

@ota-meshi
Copy link
Member

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.7.0
  • eslint-plugin-vue version: 8.3.0
  • Node version: 16
  • Operating System: Mac

Please show your full configuration:

{
 "vue/no-extra-parens": "error"
}

What did you do?

<style>
a {
  color: v-bind(foo);
}
</style>

What did you expect to happen?

No error.

What actually happened?

Error.

[3:16]: Unnecessary parentheses around expression. ( vue/no-extra-parens )

Repository to reproduce this issue

DEMO

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

Successfully merging a pull request may close this issue.

1 participant