Update linter

This commit is contained in:
Thomas Nordquist
2020-04-16 10:56:46 +02:00
parent 19e8bfdb37
commit 30af13f793
53 changed files with 92 additions and 97 deletions

View File

@@ -28,7 +28,7 @@ export default withTheme(
memo((props: Props) => {
const [width, setWidth] = React.useState(300)
const [tooltip, setTooltip] = React.useState<Tooltip | undefined>()
const detectResize = React.useCallback((newWidth) => setWidth(newWidth), [])
const detectResize = React.useCallback(newWidth => setWidth(newWidth), [])
const hintFormatter = React.useCallback(
(point: any) => [

View File

@@ -27,7 +27,7 @@ function domainForData(data: Array<Point>): [number, number] {
let max = data[0].y
let min = data[0].y
data.forEach((d) => {
data.forEach(d => {
if (max < d.y) {
max = d.y
}