mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-03-29 17:08:15 +08:00
Bump eslint-plugin-jsx-a11y version (#2690)
* Bump eslint-plugin-jsx-a11y * Update index.js * Update index.js * Update package.json * Don't use links for non-linky things
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user