eslint-config-seekingalpha-react 10.36.0 → 10.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@ export default {
|
|
|
11
11
|
"input[type='image']": [],
|
|
12
12
|
},
|
|
13
13
|
],
|
|
14
|
-
'anchor-ambiguous-text': 'off',
|
|
14
|
+
'jsx-a11y/anchor-ambiguous-text': 'off',
|
|
15
15
|
'jsx-a11y/anchor-has-content': 'off',
|
|
16
16
|
'jsx-a11y/anchor-is-valid': [
|
|
17
17
|
'error',
|
|
@@ -33,6 +33,7 @@ export default {
|
|
|
33
33
|
'jsx-a11y/aria-unsupported-elements': 'error',
|
|
34
34
|
'jsx-a11y/autocomplete-valid': 'error',
|
|
35
35
|
'jsx-a11y/click-events-have-key-events': 'error',
|
|
36
|
+
'jsx-a11y/control-has-associated-label': 'error',
|
|
36
37
|
'jsx-a11y/heading-has-content': [
|
|
37
38
|
'error',
|
|
38
39
|
{
|
|
@@ -101,6 +102,51 @@ export default {
|
|
|
101
102
|
},
|
|
102
103
|
],
|
|
103
104
|
'jsx-a11y/no-distracting-elements': 'error',
|
|
105
|
+
'jsx-a11y/no-noninteractive-element-interactions': [
|
|
106
|
+
'error',
|
|
107
|
+
{
|
|
108
|
+
handlers: [
|
|
109
|
+
'onClick',
|
|
110
|
+
'onMouseDown',
|
|
111
|
+
'onMouseUp',
|
|
112
|
+
'onKeyPress',
|
|
113
|
+
'onKeyDown',
|
|
114
|
+
'onKeyUp',
|
|
115
|
+
],
|
|
116
|
+
},
|
|
117
|
+
],
|
|
118
|
+
'jsx-a11y/no-noninteractive-element-to-interactive-role': [
|
|
119
|
+
'error',
|
|
120
|
+
{
|
|
121
|
+
ul: [
|
|
122
|
+
'listbox',
|
|
123
|
+
'menu',
|
|
124
|
+
'menubar',
|
|
125
|
+
'radiogroup',
|
|
126
|
+
'tablist',
|
|
127
|
+
'tree',
|
|
128
|
+
'treegrid',
|
|
129
|
+
],
|
|
130
|
+
ol: [
|
|
131
|
+
'listbox',
|
|
132
|
+
'menu',
|
|
133
|
+
'menubar',
|
|
134
|
+
'radiogroup',
|
|
135
|
+
'tablist',
|
|
136
|
+
'tree',
|
|
137
|
+
'treegrid',
|
|
138
|
+
],
|
|
139
|
+
li: ['menuitem', 'option', 'row', 'tab', 'treeitem'],
|
|
140
|
+
table: ['grid'],
|
|
141
|
+
td: ['gridcell'],
|
|
142
|
+
},
|
|
143
|
+
],
|
|
144
|
+
'jsx-a11y/no-interactive-element-to-noninteractive-role': [
|
|
145
|
+
'error',
|
|
146
|
+
{
|
|
147
|
+
tr: ['none', 'presentation'],
|
|
148
|
+
},
|
|
149
|
+
],
|
|
104
150
|
'jsx-a11y/no-noninteractive-tabindex': [
|
|
105
151
|
'error',
|
|
106
152
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const ESLintPluginA11YDisabled = {
|
|
2
2
|
'jsx-a11y/alt-text': 'off',
|
|
3
|
-
'anchor-ambiguous-text': 'off',
|
|
3
|
+
'jsx-a11y/anchor-ambiguous-text': 'off',
|
|
4
4
|
'jsx-a11y/anchor-has-content': 'off',
|
|
5
5
|
'jsx-a11y/anchor-is-valid': 'off',
|
|
6
6
|
'jsx-a11y/aria-activedescendant-has-tabindex': 'off',
|
|
@@ -10,6 +10,7 @@ export const ESLintPluginA11YDisabled = {
|
|
|
10
10
|
'jsx-a11y/aria-unsupported-elements': 'off',
|
|
11
11
|
'jsx-a11y/autocomplete-valid': 'off',
|
|
12
12
|
'jsx-a11y/click-events-have-key-events': 'off',
|
|
13
|
+
'jsx-a11y/control-has-associated-label': 'error',
|
|
13
14
|
'jsx-a11y/heading-has-content': 'off',
|
|
14
15
|
'jsx-a11y/html-has-lang': 'off',
|
|
15
16
|
'jsx-a11y/iframe-has-title': 'off',
|
|
@@ -22,6 +23,9 @@ export const ESLintPluginA11YDisabled = {
|
|
|
22
23
|
'jsx-a11y/no-aria-hidden-on-focusable': 'off',
|
|
23
24
|
'jsx-a11y/no-autofocus': 'off',
|
|
24
25
|
'jsx-a11y/no-distracting-elements': 'off',
|
|
26
|
+
'jsx-a11y/no-noninteractive-element-interactions': 'off',
|
|
27
|
+
'jsx-a11y/no-noninteractive-element-to-interactive-role': 'off',
|
|
28
|
+
'jsx-a11y/no-interactive-element-to-noninteractive-role': 'off',
|
|
25
29
|
'jsx-a11y/no-noninteractive-tabindex': 'off',
|
|
26
30
|
'jsx-a11y/no-redundant-roles': 'off',
|
|
27
31
|
'jsx-a11y/no-static-element-interactions': 'off',
|