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
In new rule vue/attributes-order, v-bind has an order as same as v-model, but I think it should not be regarded as a single group. For example v-bind:is should be placed at first but not together with other attributes.
The text was updated successfully, but these errors were encountered:
I commented in PR, I think we can separate those groups and have BINDINGS and TWO_WAY_BINDINGS (although there is only v-model in this case). What do you think @chrisvfritz ?
I actually don't think we need a BINDINGS group. The style guide makes no distinction between bound and unbound attributes. In fact, it would seem a little strange to me to group all bound attributes together. For example, class and style can both have bound and unbound versions on the same element, such as:
Also, when changing an attribute between bound and unbound, forcing the attribute to then move would not only slow down development, but also make the diff less readable during code reviews.
As an aside though, in the special cases of v-on="objectOfListeners and v-bind="objectOfAttributes", I think those should probably appear at the beginning of the style guide's Other Attributes and Events sections, respectively.
In new rule
vue/attributes-order
, v-bind has an order as same as v-model, but I think it should not be regarded as a single group. For example v-bind:is should be placed at first but not together with other attributes.The text was updated successfully, but these errors were encountered: