Skip to content

Commit

Permalink
Chore: Add eslint-plugin-jsx-a11y (#1138)
Browse files Browse the repository at this point in the history
Part of #879
  • Loading branch information
aghh1504 authored and sapegin committed Sep 18, 2018
1 parent 4f932ac commit 08a9133
Show file tree
Hide file tree
Showing 8 changed files with 3,199 additions and 3,128 deletions.
5 changes: 3 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"parser": "babel-eslint",
"extends": "tamia/react",
"extends": ["tamia/react", "plugin:jsx-a11y/recommended"],
"env": {
"browser": true,
"node": true
},
"plugins": [
"compat",
"import"
"import",
"jsx-a11y"
],
"settings": {
"import/resolver": {
Expand Down
4 changes: 3 additions & 1 deletion examples/basic/src/components/Placeholder/Placeholder.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ export default class Placeholder extends Component {

render() {
const { width, height } = this.props;
return <img className="placeholder" src={this.getImageUrl()} width={width} height={height} />;
return (
<img className="placeholder" src={this.getImageUrl()} width={width} height={height} alt="" />
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ export default class Placeholder extends Component {

render() {
const { width, height } = this.props;
return <img className={s.root} src={this.getImageUrl()} width={width} height={height} />;
return <img className={s.root} src={this.getImageUrl()} width={width} height={height} alt="" />;
}
}
4 changes: 3 additions & 1 deletion examples/preact/src/components/Placeholder/Placeholder.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ export default class Placeholder extends Component {

render() {
const { width, height } = this.props;
return <img className="placeholder" src={this.getImageUrl()} width={width} height={height} />;
return (
<img className="placeholder" src={this.getImageUrl()} width={width} height={height} alt="" />
);
}
}
4 changes: 3 additions & 1 deletion examples/sections/src/components/Placeholder/Placeholder.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ export default class Placeholder extends Component {

render() {
const { width, height } = this.props;
return <img className="placeholder" src={this.getImageUrl()} width={width} height={height} />;
return (
<img className="placeholder" src={this.getImageUrl()} width={width} height={height} alt="" />
);
}
}
Loading

0 comments on commit 08a9133

Please sign in to comment.