Skip to content

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

@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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy