Tooling
tooling/a11y-lint
The linter runs the framework's accessibility rules (jsx-a11y, vuejs-accessibility, angular-eslint template, Svelte a11y warnings).
minormanualfe-tooling
Why
Lint runs on every save and every pull request, before any audit. Accessibility lint rules catch missing labels, alt and keyboard handlers while the code is being written, in every component, including what the static audit skips.
Fix
React: eslint-plugin-jsx-a11y (recommended). Vue: eslint-plugin-vuejs-accessibility. Angular: the accessibility rules of @angular-eslint/eslint-plugin-template. Svelte: keep the compiler's a11y_* warnings on and require a comment with a reason for each ignore. Lit: eslint-plugin-lit-a11y. Check the plugin supports the installed ESLint major before upgrading ESLint.
Examples
// eslint.config.js (React)
import jsxA11y from 'eslint-plugin-jsx-a11y'
export default [jsxA11y.flatConfigs.recommended]Sources
Facts
- Id
tooling/a11y-lint- Severity
- minor
- Check
- manual a person reviews it; the report lists it as a checklist
- Applies to
project- Only in projects with
eslintsvelte- Taught by the skill
fe-toolingBuild, lint and format tooling- Since version
- 0.1.0
Read it in the terminal
npx github:dawidolko/frontend-skills explain tooling/a11y-lint