-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Please write rule name what you want to improve: require-g-image-src
How are the rules improved?
Vue accepts passing an object directly to v-bind. It would be cool to support it besides passing props directly.
Provide 2-3 code examples that this rule should warn about:
// This should be accepted
<g-image v-bind="{ src: '' }" />
// This should be accepted or give a warning
<g-image v-bind="computed" />
<g-image v-bind="method(something)" />
// This should give an error
<g-image v-bind="{}" />Additional context
I'm not sure if you could check the returned object from computed properties and methods. If that's possible that should be accepted as mentioned on comment.
Reactions are currently unavailable