Skip to content
This repository was archived by the owner on Apr 6, 2021. It is now read-only.

Commit 75330ce

Browse files
authored
Merge pull request #214 from TailorDev/deps
Update some dependencies
2 parents ceb6ce5 + c1c87d5 commit 75330ce

39 files changed

+175
-98
lines changed

.eslintrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
"import/no-extraneous-dependencies": [2, {
1010
'optionalDependencies': false,
1111
}],
12+
"react/no-unused-prop-types": 0,
13+
"react/forbid-prop-types": 1,
14+
"jsx-a11y/no-static-element-interactions": 1,
15+
"react/no-array-index-key": 1,
1216
},
1317
"parserOptions":{
1418
"ecmaFeatures": {

app/components/Annotation/Line.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const tickPosition = {
66
y: 4,
77
};
88

9-
const Line = (props) => (
9+
const Line = props => (
1010
<g>
1111
<line
1212
x1={props.x1}

app/components/Annotation/index.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Annotation extends Component {
2828
this.props.onClick(
2929
this.props.labelId,
3030
this.props.annotation,
31-
this.props.positionFrom
31+
this.props.positionFrom,
3232
);
3333
}
3434

@@ -37,7 +37,7 @@ class Annotation extends Component {
3737
segments: props.getAnnotationSegments(
3838
props.labelId,
3939
props.annotation.positionFrom - 1,
40-
props.annotation.positionTo - 1
40+
props.annotation.positionTo - 1,
4141
),
4242
});
4343
}
@@ -67,7 +67,7 @@ class Annotation extends Component {
6767
color={this.props.label.color}
6868
hasTick={displayTick && !isUnit && indexForTick === index}
6969
isReverse={isReverse}
70-
/>
70+
/>,
7171
)}
7272
</g>
7373
);

app/components/AnnotationForm/presenter.jsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class AnnotationForm extends Component {
8989
comment: this.state.comment,
9090
displayTick: this.state.displayTick,
9191
},
92-
this.state.annotationId
92+
this.state.annotationId,
9393
);
9494
});
9595

@@ -121,10 +121,10 @@ class AnnotationForm extends Component {
121121
event.preventDefault();
122122

123123
this.props.updateSelectionFrom(
124-
this.state.positionTo - this.props.positionFrom
124+
this.state.positionTo - this.props.positionFrom,
125125
);
126126
this.props.updateSelectionTo(
127-
this.state.positionFrom - this.props.positionFrom
127+
this.state.positionFrom - this.props.positionFrom,
128128
);
129129
}
130130

@@ -188,11 +188,11 @@ class AnnotationForm extends Component {
188188
{
189189
this.props.labels.map((label, index) =>
190190
<option
191-
key={index}
191+
key={label.name}
192192
value={index}
193193
>
194194
{label.name}
195-
</option>
195+
</option>,
196196
)
197197
}
198198
</select>
@@ -259,4 +259,8 @@ AnnotationForm.propTypes = {
259259
positionFrom: number.isRequired,
260260
};
261261

262+
AnnotationForm.defaultProps = {
263+
current: null,
264+
};
265+
262266
export default AnnotationForm;

app/components/Annotations/index.jsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Annotations extends Component {
2424
this.props.nucleotideWidth,
2525
this.props.rowHeight,
2626
this.props.nucleotidesRowHeight,
27-
this.props.trackHeight
27+
this.props.trackHeight,
2828
);
2929
}
3030

@@ -46,8 +46,8 @@ class Annotations extends Component {
4646
getAnnotationSegments={this.getAnnotationSegments}
4747
positionFrom={this.props.positionFrom}
4848
onClick={this.props.onAnnotationClick}
49-
/>
50-
)
49+
/>,
50+
),
5151
)
5252
}
5353
</g>
@@ -68,4 +68,8 @@ Annotations.propTypes = {
6868
selectedAnnotation: object,
6969
};
7070

71+
Annotations.defaultProps = {
72+
selectedAnnotation: null,
73+
};
74+
7175
export default Annotations;

app/components/Disclaimer/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import Modal from 'react-modal';
33

4-
const Disclaimer = (props) => (
4+
const Disclaimer = props => (
55
<Modal
66
overlayClassName="modal-overlay"
77
className="modal-content"

app/components/Exons/ExonEdit.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { PropTypes } from 'react';
22
import ExonForm from './ExonForm';
33

44

5-
const ExonEdit = (props) => (
5+
const ExonEdit = props => (
66
<div className="action-edit">
77
<ExonForm
88
exon={props.exon}

app/components/Exons/ExonForm.jsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,4 +168,11 @@ ExonForm.propTypes = {
168168
exon: object,
169169
};
170170

171+
ExonForm.defaultProps = {
172+
onRemoveExon: null,
173+
onCreateNewExon: null,
174+
onEditExon: null,
175+
exon: null,
176+
};
177+
171178
export default ExonForm;

app/components/Exons/presenter.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class Exons extends Component {
4545
exon={exon}
4646
onEditExon={this.props.onEditExon}
4747
onRemoveExon={this.props.onRemoveExon}
48-
/>
48+
/>,
4949
)}
5050
{/* New exon */}
5151
<div className="new">
@@ -56,10 +56,10 @@ class Exons extends Component {
5656
onCreateNewExon={this.props.onCreateNewExon}
5757
/>
5858
:
59-
<button
60-
className="button new-exon"
61-
onClick={this.toggleNewExonForm}
62-
>
59+
<button
60+
className="button new-exon"
61+
onClick={this.toggleNewExonForm}
62+
>
6363
New Exon
6464
</button>
6565
}

app/components/Footer.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React, { PropTypes } from 'react';
33
const { string } = PropTypes;
44

55

6-
const Footer = (props) =>
6+
const Footer = props =>
77
<footer className="main">
88
<div className="version">
99
<span className="git-ref">

0 commit comments

Comments
 (0)