mirror of
https://github.com/apache/superset.git
synced 2026-06-01 13:49:21 +00:00
build(eslint): disabling wildcard imports with eslint (#31761)
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
* under the License.
|
||||
*/
|
||||
import { t } from '@superset-ui/core';
|
||||
import * as echarts from 'echarts';
|
||||
import { init as echartsInit } from 'echarts';
|
||||
import { createRef, FC, useEffect } from 'react';
|
||||
import { ZoomConfigsChartProps } from './types';
|
||||
import {
|
||||
@@ -48,7 +48,7 @@ export const ZoomConfigsChart: FC<ZoomConfigsChartProps> = ({
|
||||
const barWidth = 15;
|
||||
const data = zoomConfigsToData(value.values);
|
||||
|
||||
const chart = echarts.init(ref.current);
|
||||
const chart = echartsInit(ref.current);
|
||||
|
||||
const option = {
|
||||
xAxis: {
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
import * as echarts from 'echarts';
|
||||
import { util } from 'echarts';
|
||||
import { isZoomConfigsFixed, isZoomConfigsLinear } from './typeguards';
|
||||
import {
|
||||
CreateDragGraphicOption,
|
||||
@@ -105,10 +105,10 @@ export const createDragGraphicOption = ({
|
||||
// Give a big z value, which makes the circle cover the symbol
|
||||
// in bar series.
|
||||
z: 100,
|
||||
// Util method `echarts.util.curry` is used here to generate a
|
||||
// Util method `util.curry` (from echarts) is used here to generate a
|
||||
// new function the same as `onDrag`, except that the
|
||||
// first parameter is fixed to be the `dataIndex` here.
|
||||
ondrag: echarts.util.curry(onDrag, dataIndex),
|
||||
ondrag: util.curry(onDrag, dataIndex),
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user