Commit ed04d87
feat: add eslint-plugin-jsx-a11y for accessibility linting (ASTD-198) (#431)
* feat: add eslint-plugin-jsx-a11y for accessibility linting (ASTD-198)
- Add eslint-plugin-jsx-a11y to pnpm catalog
- Add per-package a11y ESLint configs (eslint.config.a11y.js) for studio and common
- Add lint:a11y npm script to both packages with warning baselines
- studio: 73 warnings
- common: 18 warnings
- All jsx-a11y rules run at warn level initially
Signed-off-by: mschwab <mschwab@nvidia.com>
* refactor(studio): consolidate a11y eslint config to web root
The per-package eslint.config.a11y.js files in common and studio were
byte-identical. Move to a single web/eslint.config.a11y.js and point both
lint:a11y scripts at it (../../eslint.config.a11y.js), keeping per-package
--max-warnings. Move eslint-plugin-jsx-a11y and globals to the root
package.json since the shared config resolves them from there.
Resolves CodeRabbit finding about missing globals dependency in
web/packages/common/package.json by eliminating the duplicate config.
Signed-off-by: mschwab <mschwab@nvidia.com>
---------
Signed-off-by: mschwab <mschwab@nvidia.com>1 parent c637d63 commit ed04d87
6 files changed
Lines changed: 980 additions & 24 deletions
File tree
- web
- packages
- common
- studio
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
111 | 112 | | |
112 | 113 | | |
113 | 114 | | |
114 | | - | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| |||
0 commit comments