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

Definition for rule 'jsx-a11y/img-has-alt' was not found error #235

Closed
valmassoi opened this issue May 8, 2017 · 3 comments
Closed

Definition for rule 'jsx-a11y/img-has-alt' was not found error #235

valmassoi opened this issue May 8, 2017 · 3 comments

Comments

@valmassoi
Copy link

I get it at the top of my jsx files

I assume it is from (in v5 release notes):
[breaking] Refactor img-has-alt rule into alt-text rule

Do I need to add something to my .eslintrc to suppress the error?

I'm on versions:

  "eslint": "3.19.0",
  "eslint-config-airbnb": "14.1.0",
  "eslint-plugin-import": "2.2.0",
  "eslint-plugin-jsx-a11y": "5.0.1",
  "eslint-plugin-react": "6.9.0",
@valmassoi
Copy link
Author

closing because of #232

@axhamre
Copy link

axhamre commented Apr 20, 2018

For people coming here, the above mentioned #232 does still not provide any solution (April 20, 2018).

@ljharb
Copy link
Member

ljharb commented Apr 20, 2018

@hundsim the solution is, run npm ls and ensure all your versions match (and ideally are on latest)

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

No branches or pull requests

3 participants