You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Besides of this being in line with how this code will be treated by Vue 3, I also think it’s preferable that v-for and key would be grouped together now because they belong together semantically.
The text was updated successfully, but these errors were encountered:
Perhaps not. There are indeed scenarios in which this is ambiguous, but I think regardless of the existence of vue/no-use-v-if-with-v-for, the precedence should be changed in vue/attributes/order.
What rule do you want to change?
Prioritize conditionals (e.g.
v-if
,v-else
, etc.) tov-for
in thevue/attributes-order
rule because conditionals are now prioritized tov-for
in Vue 3 (see Vue 3 Migration Guide: v-if vs. v-for Precedence).Does this change cause the rule to produce more or fewer warnings?
More for users that use the
vue/attributes-order
already. For other scenarios, this change shouldn’t produce much more or fewer warnings overall.How will the change be implemented? (New option, new default behavior, etc.)?
New default behavior (switch precedence of
LIST_RENDERING
andCONDITIONALS
).Please provide some example code that this change will affect:
What does the rule currently do for this code?
What will the rule do after it's changed?
Additional context
Besides of this being in line with how this code will be treated by Vue 3, I also think it’s preferable that
v-for
andkey
would be grouped together now because they belong together semantically.The text was updated successfully, but these errors were encountered: