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
Does this change cause the rule to produce more or fewer warnings?
Depends on configuration. No changes by default.
How will the change be implemented? (New option, new default behavior, etc.)?
New option except that allows specifying attribute names that should be specified in longhand form if the rule is set to always or in shorthand form if the rule is set to never.
Please provide some example code that this change will affect:
What rule do you want to change?
vue/prefer-true-attribute-shorthand
Does this change cause the rule to produce more or fewer warnings?
Depends on configuration. No changes by default.
How will the change be implemented? (New option, new default behavior, etc.)?
New option
except
that allows specifying attribute names that should be specified in longhand form if the rule is set toalways
or in shorthand form if the rule is set tonever
.Please provide some example code that this change will affect:
What does the rule currently do for this code?
It doesn't warn for
is-shorthand
andfoo-bar
, but it warns forvalue
.What will the rule do after it's changed?
It still shouldn't warn for
is-shorthand
, but it shouldn't warn forvalue
and should warn forfoo-bar
.Additional context
The motivating example uses PrimeVue's
RadioButton
component:Using the shorthand syntax for the first component's
value
prop would be less readable.The text was updated successfully, but these errors were encountered: