vuejs/eslint-plugin-vue

v-v- is parsed and suggested incorrectly

Closed this issue · 2 comments

  • ESLint version:
  • vue-eslint-parser@^10.2.0
  • eslint-plugin-vue@^10.3.0
  • Vue version:
  • 3.5.18
  • Node version:
  • 22.17.1
  • Operating System:
    Windows 11

What did you do?

<div :expand="true" v-v-if="" />

What did you expect to happen?
Error unexpected token

What actually happened?
Attribute suggested to be moved before :expand attribute

I found while looking into why strict boolean expressions was not working

If you need configuration or repo let me know but this can be observed in any configuration /repo using eslint-plugin-vue.

Thanks!

The way v-v-if is parsed is expected. However, if you try something like v-="", it will trigger the check you mentioned, resulting in an "unexpected token" error.

I'll close this issue for now since we need more information to debug.