Skip to content

Improve require-g-image-src #56

Open
@hacknug

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions