Skip to content

Commit

Permalink
clear a handful of lint errors (uber#977)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayarcohaila committed Oct 5, 2018
1 parent cfa142b commit 1aa2290
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 3 deletions.
7 changes: 6 additions & 1 deletion src/plot/axis/axis.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@ const propTypes = {
tickSizeInner: PropTypes.number,
tickSizeOuter: PropTypes.number,
tickPadding: PropTypes.number,
tickValues: PropTypes.array,
tickValues: PropTypes.arrayOf(
PropTypes.oneOfType([
PropTypes.number,
PropTypes.string
])
),
tickFormat: PropTypes.func,
tickTotal: PropTypes.number,

Expand Down
8 changes: 7 additions & 1 deletion src/plot/crosshair.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,13 @@ class Crosshair extends PureComponent {
static get propTypes() {
return {
className: PropTypes.string,
values: PropTypes.array,
values: PropTypes.arrayOf(
PropTypes.oneOfType([
PropTypes.number,
PropTypes.string,
PropTypes.object
])
),
series: PropTypes.object,
innerWidth: PropTypes.number,
innerHeight: PropTypes.number,
Expand Down
7 changes: 6 additions & 1 deletion src/plot/grid-lines.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,12 @@ const propTypes = {

style: PropTypes.object,

tickValues: PropTypes.array,
tickValues: PropTypes.arrayOf(
PropTypes.oneOfType([
PropTypes.number,
PropTypes.string
])
),
tickTotal: PropTypes.number,

animation: AnimationPropType,
Expand Down
5 changes: 5 additions & 0 deletions tests/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"rules": {
"max-len": "off"
}
}

0 comments on commit 1aa2290

Please sign in to comment.