Skip to content

vue/valid-v-for should not trigger on looping through only keys of an object #2733

Open
@aibolit

Description

@aibolit

What rule do you want to change?
vue/valid-v-for

Does this change cause the rule to produce more or fewer warnings?
fewer

How will the change be implemented? (New option, new default behavior, etc.)?
new default behavior

Please provide some example code that this change will affect:

  v-for="(, foo) in bar"

where bar is an Object and I want to loop through only keys

What does the rule currently do for this code?
error Invalid alias '' vue/valid-v-for

What will the rule do after it's changed?
not error out on looping through only keys of an Object

Additional context

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