Skip to content

Commit

Permalink
fix lint errors and warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mbest committed Oct 21, 2020
1 parent b6d2b95 commit 6d685e5
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ export class VerticalStackedBarChartStyledExample extends React.Component<{}, IV
<>
<div>
<label>Width:</label>
{/* eslint-disable-next-line react/jsx-no-bind */}
<input
type="range"
value={this.state.width}
Expand All @@ -109,7 +108,6 @@ export class VerticalStackedBarChartStyledExample extends React.Component<{}, IV
onChange={e => this.setState({ width: +e.target.value })}
/>
<label>Height:</label>
{/* eslint-disable-next-line react/jsx-no-bind */}
<input
type="range"
value={this.state.height}
Expand All @@ -120,7 +118,6 @@ export class VerticalStackedBarChartStyledExample extends React.Component<{}, IV
</div>
<div>
<label>BarGapMax:</label>
{/* eslint-disable-next-line react/jsx-no-bind */}
<input
type="range"
value={this.state.barGapMax}
Expand All @@ -129,7 +126,6 @@ export class VerticalStackedBarChartStyledExample extends React.Component<{}, IV
onChange={e => this.setState({ barGapMax: +e.target.value })}
/>
<label>BarCornerRadius:</label>
{/* eslint-disable-next-line react/jsx-no-bind */}
<input
type="range"
value={this.state.barCornerRadius}
Expand All @@ -140,6 +136,7 @@ export class VerticalStackedBarChartStyledExample extends React.Component<{}, IV
<ChoiceGroup
options={options}
defaultSelectedKey="MultiCallout"
// eslint-disable-next-line react/jsx-no-bind
onChange={(_ev, option) => option && this.setState({ selectedCallout: option.key })}
label="Pick one"
/>
Expand Down Expand Up @@ -175,8 +172,8 @@ export class VerticalStackedBarChartStyledExample extends React.Component<{}, IV
},
},
}}
// eslint-disable-next-line react/jsx-no-bind, @typescript-eslint/no-explicit-any
onRenderCalloutPerDataPoint={(props: any) =>
// eslint-disable-next-line react/jsx-no-bind
onRenderCalloutPerDataPoint={props =>
props ? (
<ChartHoverCard
XValue={props.xAxisCalloutData}
Expand Down

0 comments on commit 6d685e5

Please sign in to comment.