UNPKG

1.24 kBJavaScriptView Raw
1const OFF = 0
2const ERROR = 2
3
4module.exports = {
5 plugins: [
6 'jsx-a11y'
7 ],
8 parserOptions: {
9 ecmaFeatures: {
10 jsx: true
11 }
12 },
13 rules: {
14 'jsx-a11y/anchor-has-content': [ ERROR, { components: [ '' ] } ],
15 'jsx-a11y/aria-props': ERROR,
16 'jsx-a11y/aria-proptypes': ERROR,
17 'jsx-a11y/aria-role': ERROR,
18 'jsx-a11y/aria-unsupported-elements': ERROR,
19 'jsx-a11y/click-events-have-key-events': OFF,
20 'jsx-a11y/heading-has-content': [ ERROR, { components: [ '' ] } ],
21 'jsx-a11y/href-no-hash': [ OFF, { components: [ 'a' ] } ],
22 'jsx-a11y/html-has-lang': ERROR,
23 'jsx-a11y/img-has-alt': ERROR,
24 'jsx-a11y/img-redundant-alt': ERROR,
25 'jsx-a11y/label-has-for': [ OFF, { components: [ 'label' ] } ],
26 'jsx-a11y/lang': ERROR,
27 'jsx-a11y/mouse-events-have-key-events': OFF,
28 'jsx-a11y/no-access-key': ERROR,
29 'jsx-a11y/no-marquee': ERROR,
30 'jsx-a11y/no-onchange': ERROR,
31 'jsx-a11y/no-static-element-interactions': OFF,
32 'jsx-a11y/onclick-has-focus': OFF,
33 'jsx-a11y/onclick-has-role': OFF,
34 'jsx-a11y/role-has-required-aria-props': ERROR,
35 'jsx-a11y/role-supports-aria-props': ERROR,
36 'jsx-a11y/scope': ERROR,
37 'jsx-a11y/tabindex-no-positive': ERROR
38 }
39}