xo: react/jsx-key (#767)

* Add key to array element

* Enable react/jsx-key rule for xo

* Change key to tabs-list

* Update key name

* Add key for border element

* Add missing JSX keys
This commit is contained in:
Marshall Bowers 2016-10-07 11:36:17 -04:00 committed by Leo Lamprecht
parent 0ec2823a23
commit ad63cbbfdc
2 changed files with 6 additions and 2 deletions

View file

@ -91,11 +91,16 @@ export default class SplitPane extends Component {
flexGrow: 0
};
return [
<div className={css('pane')} style={style}>
<div
key="pane"
className={css('pane')}
style={style}
>
{ child }
</div>,
i < children.length - 1 ?
<div
key="divider"
onMouseDown={this.handleDragStart}
style={{backgroundColor: borderColor}}
className={css('divider', `divider_${direction}`)}

View file

@ -69,7 +69,6 @@
"import/no-extraneous-dependencies": 0,
"no-warning-comments": 0,
"complexity": 0,
"react/jsx-key": 0,
"no-nested-ternary": 0,
"react/jsx-no-bind": 0
},