mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 04:28:41 -09:00
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:
parent
0ec2823a23
commit
ad63cbbfdc
2 changed files with 6 additions and 2 deletions
|
|
@ -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}`)}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue