Skip to content

Commit

Permalink
Bump eslint-plugin-jsx-a11y version (facebook#2690)
Browse files Browse the repository at this point in the history
* Bump eslint-plugin-jsx-a11y

* Update index.js

* Update index.js

* Update package.json

* Don't use links for non-linky things
  • Loading branch information
gaearon authored and akstuhl committed Mar 15, 2018
1 parent 424472f commit 33ae2b9
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 10 deletions.
7 changes: 6 additions & 1 deletion packages/eslint-config-react-app/index.js
Expand Up @@ -270,13 +270,18 @@ module.exports = {
'jsx-a11y/accessible-emoji': 'warn',
'jsx-a11y/alt-text': 'warn',
'jsx-a11y/anchor-has-content': 'warn',
'jsx-a11y/anchor-is-valid': [
'warn',
{
aspects: ['noHref', 'invalidHref'],
},
],
'jsx-a11y/aria-activedescendant-has-tabindex': 'warn',
'jsx-a11y/aria-props': 'warn',
'jsx-a11y/aria-proptypes': 'warn',
'jsx-a11y/aria-role': 'warn',
'jsx-a11y/aria-unsupported-elements': 'warn',
'jsx-a11y/heading-has-content': 'warn',
'jsx-a11y/href-no-hash': 'warn',
'jsx-a11y/iframe-has-title': 'warn',
'jsx-a11y/img-redundant-alt': 'warn',
'jsx-a11y/no-access-key': 'warn',
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-react-app/package.json
Expand Up @@ -15,7 +15,7 @@
"eslint": "^4.1.1",
"eslint-plugin-flowtype": "^2.34.1",
"eslint-plugin-import": "^2.6.0",
"eslint-plugin-jsx-a11y": "^5.1.1",
"eslint-plugin-jsx-a11y": "^6.0.2",
"eslint-plugin-react": "^7.1.0"
}
}
2 changes: 1 addition & 1 deletion packages/react-error-overlay/package.json
Expand Up @@ -46,7 +46,7 @@
"eslint-config-react-app": "^2.1.0",
"eslint-plugin-flowtype": "2.35.0",
"eslint-plugin-import": "2.7.0",
"eslint-plugin-jsx-a11y": "5.1.1",
"eslint-plugin-jsx-a11y": "6.0.2",
"eslint-plugin-react": "7.1.0",
"flow-bin": "^0.63.1",
"html-entities": "1.2.1",
Expand Down
Expand Up @@ -32,14 +32,14 @@ class CompileErrorContainer extends PureComponent<Props, void> {
return (
<ErrorOverlay>
<Header headerText="Failed to compile" />
<a
<div
onClick={
canOpenInEditor && errLoc ? () => editorHandler(errLoc) : null
}
style={canOpenInEditor ? codeAnchorStyle : null}
>
<CodeBlock main={true} codeHTML={generateAnsiHTML(error)} />
</a>
</div>
<Footer line1="This error occurred during the build time and cannot be dismissed." />
</ErrorOverlay>
);
Expand Down
8 changes: 4 additions & 4 deletions packages/react-error-overlay/src/containers/StackFrame.js
Expand Up @@ -161,23 +161,23 @@ class StackFrame extends Component<Props, State> {
<div>
<div>{functionName}</div>
<div style={linkStyle}>
<a
<span
style={canOpenInEditor ? anchorStyle : null}
onClick={canOpenInEditor ? this.editorHandler : null}
onKeyDown={canOpenInEditor ? this.onKeyDown : null}
tabIndex={canOpenInEditor ? '0' : null}
>
{url}
</a>
</span>
</div>
{codeBlockProps && (
<span>
<a
<span
onClick={canOpenInEditor ? this.editorHandler : null}
style={canOpenInEditor ? codeAnchorStyle : null}
>
<CodeBlock {...codeBlockProps} />
</a>
</span>
<button style={toggleStyle} onClick={this.toggleCompiled}>
{'View ' + (compiled ? 'source' : 'compiled')}
</button>
Expand Down
2 changes: 1 addition & 1 deletion packages/react-scripts/package.json
Expand Up @@ -39,7 +39,7 @@
"eslint-loader": "1.9.0",
"eslint-plugin-flowtype": "2.39.1",
"eslint-plugin-import": "2.8.0",
"eslint-plugin-jsx-a11y": "5.1.1",
"eslint-plugin-jsx-a11y": "6.0.2",
"eslint-plugin-react": "7.4.0",
"extract-text-webpack-plugin": "3.0.2",
"file-loader": "1.1.5",
Expand Down

0 comments on commit 33ae2b9

Please sign in to comment.