Skip to content

Register Class Components as Vue Components  #1341

@vegerot

Description

@vegerot

Tell us about your environment

  • ESLint version: Latest
  • eslint-plugin-vue version: Latest
  • Node version: Latest

The problem you want to solve.
Many people (possibly most) that use Typescript and Vue use the official first-party Vue Class Components extension for Vue. In this library, components are defined using the @Component decorator. I think this is common enough that rules that check components (such as no-unregistered-components) should also accept @Component without having to add a // @vue/component comment above

Your take on the correct solution to problem.
Modify isVueComponent to include a check for an @Component decorator. I have never contributed here before, but I would be willing to try implementing this too, if I could have some guidance from you guys.

Additional context

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