Skip to content

Commit 0350ae7

Browse files
committed
style: lint and fix
1 parent 2877ea9 commit 0350ae7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+812
-812
lines changed

__tests__/index.spec.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import * as components from '../src'
1+
import * as components from '../src';
22

33
describe('index.tsx', () => {
44
it('component exported', () => {
5-
expect(components).toBeTruthy()
6-
expect(components).toHaveProperty('LineChart')
7-
})
8-
})
5+
expect(components).toBeTruthy();
6+
expect(components).toHaveProperty('LineChart');
7+
});
8+
});

__tests__/plots/area.spec.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import React from 'react'
2-
import { create } from 'react-test-renderer'
3-
import AreaChart from '../../src/plots/area'
1+
import React from 'react';
2+
import { create } from 'react-test-renderer';
3+
import AreaChart from '../../src/plots/area';
44

55
describe('AreaChart', () => {
66
test('should render without crashed', () => {
7-
const renderer = create(<AreaChart data={[]} />)
7+
const renderer = create(<AreaChart data={[]} />);
88

9-
expect(renderer.toJSON()).toMatchSnapshot()
10-
})
11-
})
9+
expect(renderer.toJSON()).toMatchSnapshot();
10+
});
11+
});

__tests__/plots/bar.spec.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import React from 'react'
2-
import { create } from 'react-test-renderer'
3-
import BarChart from '../../src/plots/bar'
1+
import React from 'react';
2+
import { create } from 'react-test-renderer';
3+
import BarChart from '../../src/plots/bar';
44

55
describe('BarChart', () => {
66
test('should render without crashed', () => {
7-
const renderer = create(<BarChart data={[]} xField="x" yField="y" />)
7+
const renderer = create(<BarChart data={[]} xField="x" yField="y" />);
88

9-
expect(renderer.toJSON()).toMatchSnapshot()
10-
})
11-
})
9+
expect(renderer.toJSON()).toMatchSnapshot();
10+
});
11+
});
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import React from 'react'
2-
import { create } from 'react-test-renderer'
3-
import BidirectionalBarChart from '../../src/plots/bidirectional-bar'
1+
import React from 'react';
2+
import { create } from 'react-test-renderer';
3+
import BidirectionalBarChart from '../../src/plots/bidirectional-bar';
44

55
describe('BidirectionalBarChart', () => {
66
test('should render without crashed', () => {
7-
const renderer = create(<BidirectionalBarChart xField="a" yField={['b', 'c']} data={[]} />)
7+
const renderer = create(<BidirectionalBarChart xField="a" yField={['b', 'c']} data={[]} />);
88

9-
expect(renderer.toJSON()).toMatchSnapshot()
10-
})
11-
})
9+
expect(renderer.toJSON()).toMatchSnapshot();
10+
});
11+
});

__tests__/plots/box.spec.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import React from 'react'
2-
import { create } from 'react-test-renderer'
3-
import BoxChart from '../../src/plots/box'
1+
import React from 'react';
2+
import { create } from 'react-test-renderer';
3+
import BoxChart from '../../src/plots/box';
44

55
describe('BoxChart', () => {
66
test('should render without crashed', () => {
7-
const renderer = create(<BoxChart data={[]} xField="x" yField="y" />)
7+
const renderer = create(<BoxChart data={[]} xField="x" yField="y" />);
88

9-
expect(renderer.toJSON()).toMatchSnapshot()
10-
})
11-
})
9+
expect(renderer.toJSON()).toMatchSnapshot();
10+
});
11+
});

__tests__/plots/bullet.spec.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import React from 'react'
2-
import { create } from 'react-test-renderer'
3-
import BulletChart from '../../src/plots/bullet'
1+
import React from 'react';
2+
import { create } from 'react-test-renderer';
3+
import BulletChart from '../../src/plots/bullet';
44

55
describe('BulletChart', () => {
66
test('should render without crashed', () => {
@@ -16,8 +16,8 @@ describe('BulletChart', () => {
1616
rangeField="y"
1717
targetField="z"
1818
/>,
19-
)
19+
);
2020

21-
expect(renderer.toJSON()).toMatchSnapshot()
22-
})
23-
})
21+
expect(renderer.toJSON()).toMatchSnapshot();
22+
});
23+
});

__tests__/plots/chord.spec.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import React from 'react'
2-
import { create } from 'react-test-renderer'
3-
import ChordChart from '../../src/plots/chord'
1+
import React from 'react';
2+
import { create } from 'react-test-renderer';
3+
import ChordChart from '../../src/plots/chord';
44

55
describe('ChordChart', () => {
66
test('should render without crashed', () => {
7-
const renderer = create(<ChordChart data={[]} sourceField="x" targetField="y" weightField="z" />)
7+
const renderer = create(<ChordChart data={[]} sourceField="x" targetField="y" weightField="z" />);
88

9-
expect(renderer.toJSON()).toMatchSnapshot()
10-
})
11-
})
9+
expect(renderer.toJSON()).toMatchSnapshot();
10+
});
11+
});
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import React from 'react'
2-
import { create } from 'react-test-renderer'
3-
import CirclePackingChart from '../../src/plots/circle-packing'
1+
import React from 'react';
2+
import { create } from 'react-test-renderer';
3+
import CirclePackingChart from '../../src/plots/circle-packing';
44

55
describe('CirclePackingChart', () => {
66
test('should render without crashed', () => {
7-
const renderer = create(<CirclePackingChart data={[]} />)
7+
const renderer = create(<CirclePackingChart data={[]} />);
88

9-
expect(renderer.toJSON()).toMatchSnapshot()
10-
})
11-
})
9+
expect(renderer.toJSON()).toMatchSnapshot();
10+
});
11+
});

__tests__/plots/column.spec.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import React from 'react'
2-
import { create } from 'react-test-renderer'
3-
import ColumnChart from '../../src/plots/column'
1+
import React from 'react';
2+
import { create } from 'react-test-renderer';
3+
import ColumnChart from '../../src/plots/column';
44

55
describe('ColumnChart', () => {
66
test('should render without crashed', () => {
7-
const renderer = create(<ColumnChart data={[]} xField="x" yField="y" />)
7+
const renderer = create(<ColumnChart data={[]} xField="x" yField="y" />);
88

9-
expect(renderer.toJSON()).toMatchSnapshot()
10-
})
11-
})
9+
expect(renderer.toJSON()).toMatchSnapshot();
10+
});
11+
});

__tests__/plots/dual-axes.spec.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import React from 'react'
2-
import { create } from 'react-test-renderer'
3-
import DualAxesChart from '../../src/plots/dual-axes'
1+
import React from 'react';
2+
import { create } from 'react-test-renderer';
3+
import DualAxesChart from '../../src/plots/dual-axes';
44

55
describe('DualAxesChart', () => {
66
test('should render without crashed', () => {
7-
const renderer = create(<DualAxesChart data={[]} xField="x" yField={['y', 'z']} />)
7+
const renderer = create(<DualAxesChart data={[]} xField="x" yField={['y', 'z']} />);
88

9-
expect(renderer.toJSON()).toMatchSnapshot()
10-
})
11-
})
9+
expect(renderer.toJSON()).toMatchSnapshot();
10+
});
11+
});

__tests__/plots/facet.spec.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import React from 'react'
2-
import { create } from 'react-test-renderer'
3-
import FacetChart, { FacetChartProps } from '../../src/plots/facet'
1+
import React from 'react';
2+
import { create } from 'react-test-renderer';
3+
import FacetChart, { FacetChartProps } from '../../src/plots/facet';
44

55
describe('FacetChart', () => {
66
test('should render without crashed', () => {
@@ -34,11 +34,11 @@ describe('FacetChart', () => {
3434
shape: 'circle',
3535
pointStyle: { fillOpacity: 0.3, stroke: null },
3636
},
37-
}
37+
};
3838
},
39-
}
40-
const renderer = create(<FacetChart {...config} />)
39+
};
40+
const renderer = create(<FacetChart {...config} />);
4141

42-
expect(renderer.toJSON()).toMatchSnapshot()
43-
})
44-
})
42+
expect(renderer.toJSON()).toMatchSnapshot();
43+
});
44+
});

__tests__/plots/funnel.spec.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import React from 'react'
2-
import { create } from 'react-test-renderer'
3-
import FunnelChart from '../../src/plots/funnel'
1+
import React from 'react';
2+
import { create } from 'react-test-renderer';
3+
import FunnelChart from '../../src/plots/funnel';
44

55
describe('FunnelChart', () => {
66
test('should render without crashed', () => {
7-
const renderer = create(<FunnelChart data={[]} />)
7+
const renderer = create(<FunnelChart data={[]} />);
88

9-
expect(renderer.toJSON()).toMatchSnapshot()
10-
})
11-
})
9+
expect(renderer.toJSON()).toMatchSnapshot();
10+
});
11+
});

__tests__/plots/gauge.spec.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import React from 'react'
2-
import { create } from 'react-test-renderer'
3-
import GaugeChart from '../../src/plots/gauge'
1+
import React from 'react';
2+
import { create } from 'react-test-renderer';
3+
import GaugeChart from '../../src/plots/gauge';
44

55
describe('GaugeChart', () => {
66
test('should render without crashed', () => {
7-
const renderer = create(<GaugeChart percent={90} />)
7+
const renderer = create(<GaugeChart percent={90} />);
88

9-
expect(renderer.toJSON()).toMatchSnapshot()
10-
})
11-
})
9+
expect(renderer.toJSON()).toMatchSnapshot();
10+
});
11+
});

__tests__/plots/heatmap.spec.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import React from 'react'
2-
import { create } from 'react-test-renderer'
3-
import HeatmapChart from '../../src/plots/heatmap'
1+
import React from 'react';
2+
import { create } from 'react-test-renderer';
3+
import HeatmapChart from '../../src/plots/heatmap';
44

55
describe('HeatmapChart', () => {
66
test('should render without crashed', () => {
7-
const renderer = create(<HeatmapChart data={[]} colorField="x" xField="a" yField="b" />)
7+
const renderer = create(<HeatmapChart data={[]} colorField="x" xField="a" yField="b" />);
88

9-
expect(renderer.toJSON()).toMatchSnapshot()
10-
})
11-
})
9+
expect(renderer.toJSON()).toMatchSnapshot();
10+
});
11+
});

__tests__/plots/histogram.spec.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import React from 'react'
2-
import { create } from 'react-test-renderer'
3-
import HistogramChart from '../../src/plots/histogram'
1+
import React from 'react';
2+
import { create } from 'react-test-renderer';
3+
import HistogramChart from '../../src/plots/histogram';
44

55
describe('HistogramChart', () => {
66
test('should render without crashed', () => {
7-
const renderer = create(<HistogramChart data={[]} binField="x" />)
7+
const renderer = create(<HistogramChart data={[]} binField="x" />);
88

9-
expect(renderer.toJSON()).toMatchSnapshot()
10-
})
11-
})
9+
expect(renderer.toJSON()).toMatchSnapshot();
10+
});
11+
});

0 commit comments

Comments
 (0)