A Reference Manual for Automating Accessibility Testing in React/Gatsby(ii)

Photo by Andriyko Podilnyk on Unsplash
“jsx-a11y/label-has-associated-control”: [ 
2,
{
“labelComponents”: [
“”
],
“labelAttributes”: [
“”
],
“controlComponents”: [
“TextInput”
],
“assert”: “either”,
“depth”: 5
}
]
graph showing download volume between jsx-a11y and microsoft tslint/tslint-react-a11y
{
...
"scripts": {
"lint": "./node_modules/.bin/eslint ./app/**/*.*js* --fix",
...
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.(js|jsx)": [
"npm run ./node_modules/.bin/eslint --fix",
"git add"
]
},
...
}

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store