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

img-uses-alt does not accept object properties #8

Closed
lencioni opened this issue Apr 5, 2016 · 0 comments
Closed

img-uses-alt does not accept object properties #8

lencioni opened this issue Apr 5, 2016 · 0 comments
Assignees
Labels

Comments

@lencioni
Copy link
Contributor

lencioni commented Apr 5, 2016

The rule considers the following bad:

function Foo() {
  const photo = { caption: 'foo' };

  return (
    <img alt={photo.caption} />
  );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants