eslint icon indicating copy to clipboard operation
eslint copied to clipboard

`vue/no-ref-as-operand` does not trigger on `useState`

Open MikeBellika opened this issue 1 year ago • 0 comments

Environment


  • Operating System: Darwin
  • Node Version: v22.1.0
  • Nuxt Version: 3.12.2
  • CLI Version: 3.12.0
  • Nitro Version: 2.9.6
  • Package Manager: [email protected]
  • Builder: -
  • User Config: devtools, modules
  • Runtime Modules: @nuxt/[email protected]
  • Build Modules: -

Package

@nuxt/eslint

Reproduction

https://github.com/MikeBellika/usestate_eslint_nuxt

Describe the bug

The eslint rule vue/no-ref-as-operand doesn't pick up on useState being used without a .value.

Additional context

Might be related to this https://github.com/nuxt/nuxt/issues/14882?

Logs

No response

MikeBellika avatar Jun 19 '24 06:06 MikeBellika