From 54337b65d6077b26f26b44a884bb560d7a912829 Mon Sep 17 00:00:00 2001 From: czm <2192718639@qq.com> Date: Mon, 5 Dec 2022 17:01:06 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=B3=20chore(=E4=BF=AE=E6=94=B9eslint?= =?UTF-8?q?=E8=A7=84=E5=88=99):?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc | 3 ++- src/pages/classList/index.tsx | 3 +-- src/pages/collection/index.tsx | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.eslintrc b/.eslintrc index ef3a582..1c8986b 100644 --- a/.eslintrc +++ b/.eslintrc @@ -8,6 +8,7 @@ "no-prototype-builtins": "off", "import/first": "off", "react/no-children-prop": "off", - "import/no-commonjs": "off" + "import/no-commonjs": "off", + "ignoreTranspilerName": false } } diff --git a/src/pages/classList/index.tsx b/src/pages/classList/index.tsx index 28426d0..c188493 100644 --- a/src/pages/classList/index.tsx +++ b/src/pages/classList/index.tsx @@ -15,7 +15,7 @@ import { dataLoadingStatus, getFilterData } from '@/common/util' import LoadingCard from '@/components/loadingCard' import useLogin from '@/use/useLogin' -const ClassList = () => { +export default () => { useLogin() const [showPopup, setShowPopup] = useState(false) @@ -146,4 +146,3 @@ const ClassList = () => { ) } -export default ClassList diff --git a/src/pages/collection/index.tsx b/src/pages/collection/index.tsx index f5a7ac6..ecfa0ee 100644 --- a/src/pages/collection/index.tsx +++ b/src/pages/collection/index.tsx @@ -12,7 +12,7 @@ import { alert, goLink } from '@/common/common' import { CreateFavoriteApi, DelFavoriteApi, FavoriteListApi, UpdateFavoriteApi } from '@/api/favorite' import useLogin from '@/use/useLogin' -const Collection = () => { +export default () => { useLogin() // 获取搜索数据 @@ -167,4 +167,3 @@ const Collection = () => { ) } -export default Collection