Closed
Description
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:
[eslint] Definition for rule 'jsx-a11y/img-has-alt' was not found (jsx-a11y/img-has-alt)
Attached below is a GIF of what i am seeing in my IDE (Visual Studio Code).
Below is a copy of my .eslintrc.json config:
{
"extends": "airbnb",
"plugins": [
"react",
"jsx-a11y",
"import"
]
}
Below is a snippet from package.json file of my devDependencies
(with version numbers):
"devDependencies": {
"eslint": "^3.19.0",
"eslint-config-airbnb": "^14.1.0",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-jsx-a11y": "^5.0.0",
"eslint-plugin-react": "^7.0.0"
}
Have i missed a step in the configuration, or is this a bug?
Metadata
Metadata
Assignees
Labels
No labels