{"action":"created","issue":{"url":"https://api.github.com/repos/evcohen/eslint-plugin-jsx-a11y/issues/232","repository_url":"https://api.github.com/repos/evcohen/eslint-plugin-jsx-a11y","labels_url":"https://api.github.com/repos/evcohen/eslint-plugin-jsx-a11y/issues/232/labels{/name}","comments_url":"https://api.github.com/repos/evcohen/eslint-plugin-jsx-a11y/issues/232/comments","events_url":"https://api.github.com/repos/evcohen/eslint-plugin-jsx-a11y/issues/232/events","html_url":"https://github.com/evcohen/eslint-plugin-jsx-a11y/issues/232","id":226864833,"number":232,"title":"First line of all JSX / JS files gives lint error 'jsx-a11y/img-has-alt' was not found","user":{"login":"Sayvai","id":7581546,"avatar_url":"https://avatars0.githubusercontent.com/u/7581546?v=3","gravatar_id":"","url":"https://api.github.com/users/Sayvai","html_url":"https://github.com/Sayvai","followers_url":"https://api.github.com/users/Sayvai/followers","following_url":"https://api.github.com/users/Sayvai/following{/other_user}","gists_url":"https://api.github.com/users/Sayvai/gists{/gist_id}","starred_url":"https://api.github.com/users/Sayvai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sayvai/subscriptions","organizations_url":"https://api.github.com/users/Sayvai/orgs","repos_url":"https://api.github.com/users/Sayvai/repos","events_url":"https://api.github.com/users/Sayvai/events{/privacy}","received_events_url":"https://api.github.com/users/Sayvai/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-05-07T14:39:31Z","updated_at":"2017-05-07T21:36:31Z","closed_at":"2017-05-07T17:12:55Z","body":"I'm not sure if my configuration is setup improperly, but i appear to be given many lint errors of one particular type on each and every JS / JSX file on the **first line**, regardless of whether or not my React component contains an `<img/>` element. The error i get is:\r\n\r\n`[eslint] Definition for rule 'jsx-a11y/img-has-alt' was not found (jsx-a11y/img-has-alt)`\r\n\r\nAttached below is a GIF of what i am seeing in my IDE (_Visual Studio Code_).\r\n![jsx-a11y-bug-img-has-alt](https://cloud.githubusercontent.com/assets/7581546/25782005/d39ac288-3339-11e7-9244-ac6d797232cd.gif)\r\n\r\nBelow is a copy of my _.eslintrc.json_ config:\r\n\r\n```\r\n{\r\n    \"extends\": \"airbnb\",\r\n    \"plugins\": [\r\n        \"react\",\r\n        \"jsx-a11y\",\r\n        \"import\"\r\n    ]\r\n}\r\n```\r\n\r\nBelow is a snippet from _package.json_ file of my `devDependencies` (with version numbers):\r\n\r\n```\r\n\"devDependencies\": {\r\n    \"eslint\": \"^3.19.0\",\r\n    \"eslint-config-airbnb\": \"^14.1.0\",\r\n    \"eslint-plugin-import\": \"^2.2.0\",\r\n    \"eslint-plugin-jsx-a11y\": \"^5.0.0\",\r\n    \"eslint-plugin-react\": \"^7.0.0\"\r\n}\r\n```\r\n\r\nHave i missed a step in the configuration, or is this a bug?"},"comment":{"url":"https://api.github.com/repos/evcohen/eslint-plugin-jsx-a11y/issues/comments/299736792","html_url":"https://github.com/evcohen/eslint-plugin-jsx-a11y/issues/232#issuecomment-299736792","issue_url":"https://api.github.com/repos/evcohen/eslint-plugin-jsx-a11y/issues/232","id":299736792,"user":{"login":"Sayvai","id":7581546,"avatar_url":"https://avatars0.githubusercontent.com/u/7581546?v=3","gravatar_id":"","url":"https://api.github.com/users/Sayvai","html_url":"https://github.com/Sayvai","followers_url":"https://api.github.com/users/Sayvai/followers","following_url":"https://api.github.com/users/Sayvai/following{/other_user}","gists_url":"https://api.github.com/users/Sayvai/gists{/gist_id}","starred_url":"https://api.github.com/users/Sayvai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sayvai/subscriptions","organizations_url":"https://api.github.com/users/Sayvai/orgs","repos_url":"https://api.github.com/users/Sayvai/repos","events_url":"https://api.github.com/users/Sayvai/events{/privacy}","received_events_url":"https://api.github.com/users/Sayvai/received_events","type":"User","site_admin":false},"created_at":"2017-05-07T21:36:31Z","updated_at":"2017-05-07T21:36:31Z","body":"Thanks @ljharb.\r\n\r\nI downgraded the dependency down to `eslint-plugin-jsx-a11y@^4.0.0`, and the lint error `[eslint] Definition for rule 'jsx-a11y/img-has-alt' was not found (jsx-a11y/img-has-alt)` disappeared from all JS / JSX files."}}
{"actor":{"display_login":"Sayvai"}}