Skip to content

Commit a5ecdf2

Browse files
gaearonTimer
authored andcommitted
Bump eslint-plugin-jsx-a11y version (facebook#2690)
* Bump eslint-plugin-jsx-a11y * Update index.js * Update index.js * Update package.json * Don't use links for non-linky things
1 parent e357c49 commit a5ecdf2

File tree

6 files changed

+15
-10
lines changed

6 files changed

+15
-10
lines changed

packages/eslint-config-react-app/index.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -270,13 +270,18 @@ module.exports = {
270270
'jsx-a11y/accessible-emoji': 'warn',
271271
'jsx-a11y/alt-text': 'warn',
272272
'jsx-a11y/anchor-has-content': 'warn',
273+
'jsx-a11y/anchor-is-valid': [
274+
'warn',
275+
{
276+
aspects: ['noHref', 'invalidHref'],
277+
},
278+
],
273279
'jsx-a11y/aria-activedescendant-has-tabindex': 'warn',
274280
'jsx-a11y/aria-props': 'warn',
275281
'jsx-a11y/aria-proptypes': 'warn',
276282
'jsx-a11y/aria-role': 'warn',
277283
'jsx-a11y/aria-unsupported-elements': 'warn',
278284
'jsx-a11y/heading-has-content': 'warn',
279-
'jsx-a11y/href-no-hash': 'warn',
280285
'jsx-a11y/iframe-has-title': 'warn',
281286
'jsx-a11y/img-redundant-alt': 'warn',
282287
'jsx-a11y/no-access-key': 'warn',

packages/eslint-config-react-app/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"eslint": "^4.1.1",
1616
"eslint-plugin-flowtype": "^2.34.1",
1717
"eslint-plugin-import": "^2.6.0",
18-
"eslint-plugin-jsx-a11y": "^5.1.1",
18+
"eslint-plugin-jsx-a11y": "^6.0.2",
1919
"eslint-plugin-react": "^7.1.0"
2020
}
2121
}

packages/react-error-overlay/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"eslint-config-react-app": "^2.0.1",
4747
"eslint-plugin-flowtype": "2.35.0",
4848
"eslint-plugin-import": "2.7.0",
49-
"eslint-plugin-jsx-a11y": "5.1.1",
49+
"eslint-plugin-jsx-a11y": "6.0.2",
5050
"eslint-plugin-react": "7.1.0",
5151
"flow-bin": "^0.63.1",
5252
"html-entities": "1.2.1",

packages/react-error-overlay/src/containers/CompileErrorContainer.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ class CompileErrorContainer extends PureComponent<Props, void> {
3232
return (
3333
<ErrorOverlay>
3434
<Header headerText="Failed to compile" />
35-
<a
35+
<div
3636
onClick={
3737
canOpenInEditor && errLoc ? () => editorHandler(errLoc) : null
3838
}
3939
style={canOpenInEditor ? codeAnchorStyle : null}
4040
>
4141
<CodeBlock main={true} codeHTML={generateAnsiHTML(error)} />
42-
</a>
42+
</div>
4343
<Footer line1="This error occurred during the build time and cannot be dismissed." />
4444
</ErrorOverlay>
4545
);

packages/react-error-overlay/src/containers/StackFrame.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -161,23 +161,23 @@ class StackFrame extends Component<Props, State> {
161161
<div>
162162
<div>{functionName}</div>
163163
<div style={linkStyle}>
164-
<a
164+
<span
165165
style={canOpenInEditor ? anchorStyle : null}
166166
onClick={canOpenInEditor ? this.editorHandler : null}
167167
onKeyDown={canOpenInEditor ? this.onKeyDown : null}
168168
tabIndex={canOpenInEditor ? '0' : null}
169169
>
170170
{url}
171-
</a>
171+
</span>
172172
</div>
173173
{codeBlockProps && (
174174
<span>
175-
<a
175+
<span
176176
onClick={canOpenInEditor ? this.editorHandler : null}
177177
style={canOpenInEditor ? codeAnchorStyle : null}
178178
>
179179
<CodeBlock {...codeBlockProps} />
180-
</a>
180+
</span>
181181
<button style={toggleStyle} onClick={this.toggleCompiled}>
182182
{'View ' + (compiled ? 'source' : 'compiled')}
183183
</button>

packages/react-scripts/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"eslint-loader": "1.9.0",
4040
"eslint-plugin-flowtype": "2.39.1",
4141
"eslint-plugin-import": "2.8.0",
42-
"eslint-plugin-jsx-a11y": "5.1.1",
42+
"eslint-plugin-jsx-a11y": "6.0.2",
4343
"eslint-plugin-react": "7.4.0",
4444
"extract-text-webpack-plugin": "3.0.2",
4545
"file-loader": "1.1.5",

0 commit comments

Comments
 (0)