Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve require-g-image-src #56

Open
hacknug opened this issue Jan 22, 2020 · 1 comment
Open

Improve require-g-image-src #56

hacknug opened this issue Jan 22, 2020 · 1 comment

Comments

@hacknug
Copy link
Member

hacknug commented Jan 22, 2020

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.

@tyankatsu0105
Copy link
Member

@hacknug
Nice report!!!
I'll try this👌

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

No branches or pull requests

2 participants