Skip to content

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

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
golopot opened this issue Apr 15, 2019 · 1 comment · Fixed by #1472
Closed

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

golopot opened this issue Apr 15, 2019 · 1 comment · Fixed by #1472

Comments

@golopot
Copy link
Contributor

golopot commented Apr 15, 2019

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>
@golopot golopot changed the title Rule Proposal: vue/no-undefined Rule Proposal: vue/no-undef Apr 15, 2019
@golopot golopot changed the title Rule Proposal: vue/no-undef Rule Proposal: vue/no-undef-property Aug 6, 2019
@g-plane
Copy link
Contributor

g-plane commented Mar 7, 2021

It's hard to detect, because Vue allows you to use mixins which can't be statically analyzed easily.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants