Skip to content

Commit

Permalink
fix: eslint issues (apache-superset#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
kristw authored Jul 27, 2019
1 parent ca256cd commit 12aeb4a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default class TooltipTable extends PureComponent<Props, {}> {
return (
<table className={className}>
<tbody>
{data.map(({ key, keyColumn, keyStyle, valueColumn, valueStyle }, i) => (
{data.map(({ key, keyColumn, keyStyle, valueColumn, valueStyle }) => (
<tr key={key}>
<td style={keyStyle}>{keyColumn || key}</td>
<td style={valueStyle ? { ...VALUE_CELL_STYLE, ...valueStyle } : VALUE_CELL_STYLE}>
Expand Down
1 change: 1 addition & 0 deletions packages/superset-ui-chart/src/types/Column.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* eslint-disable no-unused-vars */
/* eslint-disable import/prefer-default-export */

export enum ColumnType {
DOUBLE = 'DOUBLE',
Expand Down
2 changes: 2 additions & 0 deletions packages/superset-ui-chart/src/types/Datasource.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint-disable import/prefer-default-export */

import { Column } from './Column';
import { QueryObjectMetric } from './Query';

Expand Down
1 change: 1 addition & 0 deletions packages/superset-ui-chart/src/types/Metric.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* eslint-disable no-unused-vars */
/* eslint-disable import/prefer-default-export */

import { Column } from './Column';

Expand Down
3 changes: 2 additions & 1 deletion packages/superset-ui-chart/test/clients/ChartClient.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
});
Expand Down

0 comments on commit 12aeb4a

Please sign in to comment.