22
33module . exports = {
44 rules : {
5+ // require all emoji to be wrapped in `<span>` tags with an `aria-label` property
6+ 'jsx-a11y/accessible-emoji' : 'error' ,
7+
8+ // requires all anchor tags to have content that isn't hidden
9+ 'jsx-a11y/anchor-has-content' : 'error' ,
10+
11+ // disallow using invalid aria attributes
12+ 'jsx-a11y/aria-props' : 'error' ,
13+
14+ // require all aria properties are using the correct value
15+ 'jsx-a11y/aria-proptypes' : 'error' ,
16+
17+ // require valid aria role properties
18+ 'jsx-a11y/aria-role' : 'error' ,
19+
20+ // require all non DOM tags don't have aria attributes
21+ 'jsx-a11y/aria-unsupported-elements' : 'error' ,
22+
23+ // ensure all headings have content that isn't hidden
24+ 'jsx-a11y/heading-has-content' : 'error' ,
25+
26+ // don't allow anchor tags to have a href that is just `#`
27+ 'jsx-a11y/href-no-hash' : 'error' ,
28+
29+ // ensure html tag has a `lang` property
30+ 'jsx-a11y/html-has-lang' : 'error' ,
31+
32+ // require all iframe tags to have a `title` property
33+ 'jsx-a11y/iframe-has-title' : 'error' ,
34+
35+ // require all image tags to have an `alt` property
36+ 'jsx-a11y/img-has-alt' : 'error' ,
37+
38+ // don't allow the workds `image`, `photo` or `picture` in image `alt` property
39+ 'jsx-a11y/img-redundant-alt' : 'error' ,
40+
41+ // require all `label` elements have a `htmlFor` property
42+ 'jsx-a11y/label-has-for' : 'error' ,
43+
44+ // ensure the `lang` property on the `html` element is valid
45+ 'jsx-a11y/lang' : 'error' ,
46+
47+ // don't allow `accessKey` properties on elements
48+ 'jsx-a11y/no-access-key' : 'error' ,
49+
50+ // disallows using `marquee` and `blink` elements
51+ 'jsx-a11y/no-distracting-elements' : 'error' ,
52+
53+ // require the use of `onBlur` instead of `onChange`
54+ 'jsx-a11y/no-onchange' : 'error' ,
55+
56+ // dont allow setting roles on elements that already have that role given by browsers
57+ 'jsx-a11y/no-redundant-roles' : 'error' ,
58+
59+ // ensure only interactive DOM elements can have mount/keyboard handlers
60+ 'jsx-a11y/no-static-element-interactions' : 'error' ,
61+
62+ // ensure roles have the required aria properties
63+ 'jsx-a11y/role-has-required-aria-props' : 'error' ,
64+
65+ // ensure all roles only use supported aria properties
66+ 'jsx-a11y/role-supports-aria-props' : 'error' ,
67+
68+ // ensure the `scope` property is only used on `th` elements
69+ 'jsx-a11y/scope' : 'error' ,
70+
71+ // don't allow positive values for `tabIndex`
72+ 'jsx-a11y/tabindex-no-positive' : 'error'
573 }
674} ;
0 commit comments