fix(no-restricted-imports): Fix overrides and include no-fa-icons-usage (#32571)

This commit is contained in:
Geido
2025-03-17 18:52:52 +02:00
committed by GitHub
parent df06bdf33b
commit 414cdbf83a
106 changed files with 532 additions and 97 deletions

View File

@@ -16,10 +16,13 @@
* specific language governing permissions and limitations
* under the License.
*/
import { PlusOutlined } from '@ant-design/icons';
// eslint-disable-next-line no-restricted-imports
import { PlusOutlined } from '@ant-design/icons'; // TODO: Use src/components/Icons
import { css, styled, t } from '@superset-ui/core';
import { Button, Tree } from 'antd';
import { TreeProps } from 'antd/lib/tree';
// eslint-disable-next-line no-restricted-imports
import { Button, Tree } from 'antd'; // TODO: Remove antd
// eslint-disable-next-line no-restricted-imports
import { TreeProps } from 'antd/lib/tree'; // TODO: Remove antd
import { forwardRef } from 'react';
import { FlatLayerDataNode, FlatLayerTreeProps, LayerConf } from './types';
import { handleDrop } from './dragDropUtil';

View File

@@ -17,7 +17,8 @@
* under the License.
*/
import { css, JsonValue, styled, t } from '@superset-ui/core';
import { Button, Form, Tabs } from 'antd';
// eslint-disable-next-line no-restricted-imports
import { Button, Form, Tabs } from 'antd'; // TODO: Remove antd
import { mix } from 'polished';
import { Data as GsData } from 'geostyler-data';
import { Style as GsStyle } from 'geostyler-style';

View File

@@ -16,8 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
import { CloseOutlined, RightOutlined } from '@ant-design/icons';
import { Button, Tag } from 'antd';
// eslint-disable-next-line no-restricted-imports
import { CloseOutlined, RightOutlined } from '@ant-design/icons'; // TODO: Use src/components/Icons
// eslint-disable-next-line no-restricted-imports
import { Button, Tag } from 'antd'; // TODO: Remove antd
import { FC } from 'react';
import { LayerTreeItemProps } from './types';

View File

@@ -17,7 +17,8 @@
* under the License.
*/
import { TreeProps } from 'antd/lib/tree';
// eslint-disable-next-line no-restricted-imports
import { TreeProps } from 'antd/lib/tree'; // TODO: Remove antd
import { DropInfoType, FlatLayerDataNode } from './types';
/**

View File

@@ -17,7 +17,8 @@
* under the License.
*/
import { DataNode, TreeProps } from 'antd/lib/tree';
// eslint-disable-next-line no-restricted-imports
import { DataNode, TreeProps } from 'antd/lib/tree'; // TODO: Remove antd
import { ControlComponentProps } from '@superset-ui/chart-controls';
import { Style } from 'geostyler-style';
import { CardStyleProps } from 'geostyler/dist/Component/CardStyle/CardStyle';