Skip to content

Feature Request: make vue/no-undef-components works in Vue class component #2546

Closed as not planned
@ylc395

Description

@ylc395

What rule do you want to change?
vue/no-undef-components

Does this change cause the rule to produce more or fewer warnings?
fewer warning

How will the change be implemented? (New option, new default behavior, etc.)?
New default behavior

Please provide some example code that this change will affect:

<template>
<div>
  <Foo /> <!-- This will trigger a vue/no-undef-components warning, which is incorrect-->
</div>
</template>
<script>
@Component({
  components: {
    Foo
  }
})
export default class Bar extends Vue {}
</script>

What does the rule currently do for this code?
trigger a vue/no-undef-components warning, which is incorrect

What will the rule do after it's changed?
do nothing

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