Skip to content

Rule Proposal: vue/no-undef-property #875

Closed
@golopot

Description

@golopot

Please describe what the rule should do:

Forbid usages of undefined variable in vue template.

What category should the rule belong to?

[x] Warns about a potential error

Provide 2-3 code examples that this rule should warn about:

<template>
  <button @click="handleClick">foo</button>
  <!--            ~~~~~~~~~~~           -->
  <!--            'handleClick' is not defined.    -->
</template>

<script>
export default {}
</script>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions