Skip to content

Commit bbe438b

Browse files
committed
chore: resolve lint issues
Signed-off-by: hainenber <dotronghai96@gmail.com>
1 parent 9ab099a commit bbe438b

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

‎superset-frontend/plugins/plugin-chart-echarts/test/MixedTimeseries/transformProps.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,5 +431,5 @@ test('should add a formula annotation when X-axis column has dataset-level label
431431
expect(formulaSeries).toBeDefined();
432432
expect(formulaSeries?.data).toBeDefined();
433433
expect(Array.isArray(formulaSeries?.data)).toBe(true);
434-
expect((formulaSeries?.data as unknown[]).length).toBeGreaterThan(0);
434+
expect((formulaSeries?.data as unknown[])?.length).toBeGreaterThan(0);
435435
});

‎superset-frontend/plugins/plugin-chart-echarts/test/Timeseries/transformProps.test.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,8 @@ describe('EchartsTimeseries transformProps', () => {
304304
expect(formulaSeries).toBeDefined();
305305
expect(formulaSeries?.data).toBeDefined();
306306
expect(Array.isArray(formulaSeries?.data)).toBe(true);
307-
expect((formulaSeries?.data as unknown[]).length).toBeGreaterThan(0);
308-
const firstDataPoint = (formulaSeries?.data as [number, number][])[0];
307+
expect((formulaSeries?.data as unknown[])?.length).toBeGreaterThan(0);
308+
const firstDataPoint = (formulaSeries?.data as [number, number][])?.[0];
309309
expect(firstDataPoint).toBeDefined();
310310
expect(firstDataPoint[1]).toBe(firstDataPoint[0] * 2);
311311
});
@@ -384,7 +384,7 @@ describe('EchartsTimeseries transformProps', () => {
384384
result.echartOptions.series as SeriesOption[] | undefined
385385
)?.find((s: SeriesOption) => s.name === 'My Formula');
386386
expect(formulaSeries).toBeDefined();
387-
const firstDataPoint = (formulaSeries?.data as [number, number][])[0];
387+
const firstDataPoint = (formulaSeries?.data as [number, number][])?.[0];
388388
expect(firstDataPoint).toBeDefined();
389389
expect(firstDataPoint[0]).toBe(firstDataPoint[1] * 2);
390390
});

‎superset-frontend/src/explore/components/ExploreChartPanel/index.tsx‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,10 @@ const Styles = styled.div<{ showSplite: boolean }>`
113113
}
114114
115115
.gutter {
116-
border-top: 1px solid color-mix(in srgb, ${({ theme }) => theme.colorSplit}, black 15%);
117-
border-bottom: 1px solid color-mix(in srgb, ${({ theme }) => theme.colorSplit}, black 15%);
116+
border-top: 1px solid
117+
color-mix(in srgb, ${({ theme }) => theme.colorSplit}, black 15%);
118+
border-bottom: 1px solid
119+
color-mix(in srgb, ${({ theme }) => theme.colorSplit}, black 15%);
118120
width: ${({ theme }) => theme.sizeUnit * 9}px;
119121
margin: ${({ theme }) => theme.sizeUnit * GUTTER_SIZE_FACTOR}px auto;
120122
}

0 commit comments

Comments
 (0)