diff --git a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-chart-composition/src/tooltip/TooltipTable.tsx b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-chart-composition/src/tooltip/TooltipTable.tsx index f8ce9a27180d9..8fd9757a6143e 100644 --- a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-chart-composition/src/tooltip/TooltipTable.tsx +++ b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-chart-composition/src/tooltip/TooltipTable.tsx @@ -29,7 +29,7 @@ export default class TooltipTable extends PureComponent { return ( - {data.map(({ key, keyColumn, keyStyle, valueColumn, valueStyle }, i) => ( + {data.map(({ key, keyColumn, keyStyle, valueColumn, valueStyle }) => (
{keyColumn || key} diff --git a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-chart/src/types/Column.ts b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-chart/src/types/Column.ts index 381929fe3d0de..fad8979727e98 100644 --- a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-chart/src/types/Column.ts +++ b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-chart/src/types/Column.ts @@ -1,4 +1,5 @@ /* eslint-disable no-unused-vars */ +/* eslint-disable import/prefer-default-export */ export enum ColumnType { DOUBLE = 'DOUBLE', diff --git a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-chart/src/types/Datasource.ts b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-chart/src/types/Datasource.ts index 03f23a29e4f58..9455cb63cf3c7 100644 --- a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-chart/src/types/Datasource.ts +++ b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-chart/src/types/Datasource.ts @@ -1,3 +1,5 @@ +/* eslint-disable import/prefer-default-export */ + import { Column } from './Column'; import { QueryObjectMetric } from './Query'; diff --git a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-chart/src/types/Metric.ts b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-chart/src/types/Metric.ts index a7155c97a5321..682801655fb08 100644 --- a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-chart/src/types/Metric.ts +++ b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-chart/src/types/Metric.ts @@ -1,4 +1,5 @@ /* eslint-disable no-unused-vars */ +/* eslint-disable import/prefer-default-export */ import { Column } from './Column'; diff --git a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-chart/test/clients/ChartClient.test.ts b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-chart/test/clients/ChartClient.test.ts index fecb1dc639594..56c223f6d4656 100644 --- a/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-chart/test/clients/ChartClient.test.ts +++ b/superset-frontend/temporary_superset_ui/superset-ui/packages/superset-ui-chart/test/clients/ChartClient.test.ts @@ -170,7 +170,8 @@ describe('ChartClient', () => { field1: 'abc', field2: 'def', }); - expect(chartClient.loadDatasource('1__table')).resolves.toEqual({ + + return expect(chartClient.loadDatasource('1__table')).resolves.toEqual({ field1: 'abc', field2: 'def', });