Skip to content

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

Closed
@ota-meshi

Description

@ota-meshi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions