build(eslint): disabling wildcard imports with eslint (#31761)

This commit is contained in:
Evan Rusackas
2025-01-13 17:25:47 -07:00
committed by GitHub
parent 44ff462718
commit 855011360a
8 changed files with 26 additions and 15 deletions

View File

@@ -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: {

View File

@@ -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),
};
};