MOXY's ESLint accessibility rules for web projects that use React.
$ npm install --save-dev eslint @moxy/eslint-config-react-web-a11y
Create a .eslintrc.json
file in the project root and extend @moxy/eslint-config-react-web-a11y
.
This package should be used in conjunction with @moxy/eslint-config-base
and @moxy/eslint-config-react
.
{
"root": true,
"env": {
"browser": true
},
"extends": [
"@moxy/eslint-config-base/esm",
"@moxy/eslint-config-react",
"@moxy/eslint-config-react-web-a11y"
]
}