Skip to content

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

@MikeBellika

Description

@MikeBellika

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 nuxt/nuxt#14882?

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions