From c37d9794af96fa157728c2127180f692e9ad4afb Mon Sep 17 00:00:00 2001 From: afc163 Date: Mon, 7 Jul 2025 16:56:03 +0800 Subject: [PATCH] chore: update code via biome lint --- src/pages/account/center/index.tsx | 2 +- .../list/search/applications/components/TagSelect/index.tsx | 2 +- src/pages/list/search/articles/components/TagSelect/index.tsx | 2 +- src/pages/list/search/articles/index.tsx | 2 +- src/pages/list/search/index.tsx | 2 +- src/pages/list/search/projects/components/TagSelect/index.tsx | 2 +- src/pages/list/table-list/service.ts | 2 +- src/pages/table-list/components/CreateForm.tsx | 4 ++-- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/pages/account/center/index.tsx b/src/pages/account/center/index.tsx index 3c111c12..0b99fe67 100644 --- a/src/pages/account/center/index.tsx +++ b/src/pages/account/center/index.tsx @@ -1,7 +1,7 @@ import { ClusterOutlined, ContactsOutlined, HomeOutlined, PlusOutlined } from '@ant-design/icons'; import { GridContent } from '@ant-design/pro-components'; import { useRequest } from '@umijs/max'; -import { Avatar, Card, Col, Divider, Input, InputRef, Row, Tag } from 'antd'; +import { Avatar, Card, Col, Divider, Input, type InputRef, Row, Tag } from 'antd'; import React, { useRef, useState } from 'react'; import useStyles from './Center.style'; import Applications from './components/Applications'; diff --git a/src/pages/list/search/applications/components/TagSelect/index.tsx b/src/pages/list/search/applications/components/TagSelect/index.tsx index a6610a9a..0032d76c 100644 --- a/src/pages/list/search/applications/components/TagSelect/index.tsx +++ b/src/pages/list/search/applications/components/TagSelect/index.tsx @@ -2,7 +2,7 @@ import { DownOutlined, UpOutlined } from '@ant-design/icons'; import { Tag } from 'antd'; import classNames from 'classnames'; import { useMergedState } from 'rc-util'; -import React, { FC, useState } from 'react'; +import React, { type FC, useState } from 'react'; import useStyles from './index.style'; const { CheckableTag } = Tag; export interface TagSelectOptionProps { diff --git a/src/pages/list/search/articles/components/TagSelect/index.tsx b/src/pages/list/search/articles/components/TagSelect/index.tsx index a6610a9a..0032d76c 100644 --- a/src/pages/list/search/articles/components/TagSelect/index.tsx +++ b/src/pages/list/search/articles/components/TagSelect/index.tsx @@ -2,7 +2,7 @@ import { DownOutlined, UpOutlined } from '@ant-design/icons'; import { Tag } from 'antd'; import classNames from 'classnames'; import { useMergedState } from 'rc-util'; -import React, { FC, useState } from 'react'; +import React, { type FC, useState } from 'react'; import useStyles from './index.style'; const { CheckableTag } = Tag; export interface TagSelectOptionProps { diff --git a/src/pages/list/search/articles/index.tsx b/src/pages/list/search/articles/index.tsx index 17f90fd2..3b18ea67 100644 --- a/src/pages/list/search/articles/index.tsx +++ b/src/pages/list/search/articles/index.tsx @@ -1,7 +1,7 @@ import { LikeOutlined, LoadingOutlined, MessageOutlined, StarOutlined } from '@ant-design/icons'; import { useRequest } from '@umijs/max'; import { Button, Card, Col, Form, List, Row, Select, Tag } from 'antd'; -import { DefaultOptionType } from 'antd/es/select'; +import type { DefaultOptionType } from 'antd/es/select'; import type { FC } from 'react'; import React, { useMemo } from 'react'; import { categoryOptions } from '../../mock'; diff --git a/src/pages/list/search/index.tsx b/src/pages/list/search/index.tsx index 0c0aa187..0aed7bbf 100644 --- a/src/pages/list/search/index.tsx +++ b/src/pages/list/search/index.tsx @@ -24,7 +24,7 @@ const tabList = [ const Search: FC = () => { const location = useLocation(); - let match = useMatch(location.pathname); + const match = useMatch(location.pathname); const handleTabChange = (key: string) => { const url = match?.pathname === '/' ? '' : match?.pathname.substring(0, match.pathname.lastIndexOf('/')); diff --git a/src/pages/list/search/projects/components/TagSelect/index.tsx b/src/pages/list/search/projects/components/TagSelect/index.tsx index a6610a9a..0032d76c 100644 --- a/src/pages/list/search/projects/components/TagSelect/index.tsx +++ b/src/pages/list/search/projects/components/TagSelect/index.tsx @@ -2,7 +2,7 @@ import { DownOutlined, UpOutlined } from '@ant-design/icons'; import { Tag } from 'antd'; import classNames from 'classnames'; import { useMergedState } from 'rc-util'; -import React, { FC, useState } from 'react'; +import React, { type FC, useState } from 'react'; import useStyles from './index.style'; const { CheckableTag } = Tag; export interface TagSelectOptionProps { diff --git a/src/pages/list/table-list/service.ts b/src/pages/list/table-list/service.ts index d4a60950..3091ddbc 100644 --- a/src/pages/list/table-list/service.ts +++ b/src/pages/list/table-list/service.ts @@ -1,7 +1,7 @@ // @ts-ignore /* eslint-disable */ import { request } from '@umijs/max'; -import { TableListItem } from './data'; +import type { TableListItem } from './data'; /** 获取规则列表 GET /api/rule */ export async function rule( diff --git a/src/pages/table-list/components/CreateForm.tsx b/src/pages/table-list/components/CreateForm.tsx index 8c357e25..22e808b7 100644 --- a/src/pages/table-list/components/CreateForm.tsx +++ b/src/pages/table-list/components/CreateForm.tsx @@ -1,9 +1,9 @@ import { addRule } from '@/services/ant-design-pro/api'; import { PlusOutlined } from '@ant-design/icons'; -import { ActionType, ModalForm, ProFormText, ProFormTextArea } from '@ant-design/pro-components'; +import { type ActionType, ModalForm, ProFormText, ProFormTextArea } from '@ant-design/pro-components'; import { FormattedMessage, useIntl, useRequest } from '@umijs/max'; import { Button, message } from 'antd'; -import { FC } from 'react'; +import type { FC } from 'react'; interface CreateFormProps { reload?: ActionType['reload'];