Skip to content

Commit

Permalink
fix: eslint issues (apache#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
kristw authored and zhaoyongjie committed Nov 24, 2021
1 parent 0e0b990 commit 4815725
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
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
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
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
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 4815725

Please sign in to comment.