Solvedjavascript Definition for rule 'jsx-a11y/img-has-alt' was not found

jsx-eslint/eslint-plugin-jsx-a11y#220 Refactor img-has-alt to alt-text

15 Answers

✔️Accepted Answer

The problem is still here. eslint-config-airbnb@15.0.1 has peer dependency eslint-plugin-jsx-a11y@^5.0.1, but I'm getting Definition for rule 'jsx-a11y/img-has-alt' was not found

Other Answers:

I had the same problem, but npm ls exited with 0 status and all eslint-config-airbnb peerDependencies were met.

I spent almost 30 minutes before I realized that this rule was mentioned in project .elintrc. Writing this to others who will be facing the same problem: don't forget to check your eslint config.

More Issues: