File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 1
1
# eslint-plugin-jsx-a11y
2
2
3
- A static analysis linter of jsx components and their accessibility with screen readers .
3
+ A static analysis linter of jsx and its accessibility to all users .
4
4
5
5
## Installation
6
6
@@ -43,7 +43,12 @@ Then configure the rules you want to use under the rules section.
43
43
44
44
## Supported Rules
45
45
46
- * Fill in provided rules here
46
+ - img-uses-alt: Enforce that img jsx elements use the alt attribute.
47
+ - onClick-uses-role: Enforce that non-interactive, visible elements (such as div) that have click handlers use the role attribute.
48
+ - mouseEvents-require-keyEvents: Enforce that onMouseOver/onMouseOut are accompanied by onFocus/onBlur for strictly keyboard users.
49
+ - use-onblur-not-onchange: Enforce that onBlur is used instead of onChange.
50
+ - no-access-key: Enforce that the accessKey prop is not used on any element to avoid complications with keyboard commands used by a screenreader.
51
+ - use-label-for: Enforce that label elements have the htmlFor attribute
47
52
48
53
49
54
Original file line number Diff line number Diff line change 5
5
"keywords" : [
6
6
" eslint" ,
7
7
" eslintplugin" ,
8
- " eslint-plugin"
8
+ " eslint-plugin" ,
9
+ " a11y" ,
10
+ " accessibility" ,
11
+ " jsx"
9
12
],
10
13
"author" : " Ethan Cohen" ,
11
14
"main" : " lib/index.js" ,
You can’t perform that action at this time.
0 commit comments