Skip to content

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

Closed
@ota-meshi

Description

@ota-meshi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions