Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

The name of the iteration variable in valid-v-model message is incorrectly #648

Closed
ota-meshi opened this issue Nov 12, 2018 · 0 comments
Closed
Labels

Comments

@ota-meshi
Copy link
Member

Tell us about your environment

  • ESLint version: 5.0.0
  • eslint-plugin-vue version: 5.0.0-beta.3
  • Node version: v8.11.3

Please show your full configuration:

{
  "rules" : {
    "vue/valid-v-model": "error"
  }
}

What did you do?

<template>
  <div>
    <div v-for="e in list">
      <input v-model="e">
    </div>
  </div>
</template>

What did you expect to happen?

Should be report that the variable e is assigned to v-model.

'v-model' directives cannot update the iteration variable 'e' itself.

What actually happened?

But the variable name is always x.

'v-model' directives cannot update the iteration variable 'x' itself.
ota-meshi added a commit that referenced this issue Nov 12, 2018
@michalsnik michalsnik added the bug label Nov 12, 2018
michalsnik pushed a commit that referenced this issue Nov 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants