From 5d9fedc35406e00d88d8921ffe04b99a7c49cb8e Mon Sep 17 00:00:00 2001 From: Charles7c Date: Wed, 8 May 2024 22:47:37 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BC=98=E5=8C=96=20ESLint=20?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=B9=B6=E6=9B=B4=E6=AD=A3=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=EF=BC=88eslint=20src=20--fix=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.cjs | 8 +++++++- src/components/GiForm/src/GiForm.vue | 4 ++-- src/components/GiIconSelector/index.vue | 2 +- src/components/GiTable/index.vue | 2 +- src/components/JsonPretty/index.vue | 2 +- src/components/TextCopy/index.vue | 2 ++ .../components/HeaderRightBar/SettingDrawer.vue | 2 +- src/layout/components/HeaderRightBar/index.vue | 4 ++-- src/layout/components/Menu/index.vue | 2 +- src/layout/components/Tabs/index.vue | 2 +- src/views/default/error/components/ErrorPage.vue | 2 +- src/views/home/components/NowTime/index.vue | 2 +- src/views/home/components/ProjectCard.vue | 2 +- src/views/home/index.vue | 2 +- src/views/login/index.vue | 12 ++++++------ src/views/monitor/log/login/index.vue | 2 +- src/views/monitor/log/operation/index.vue | 2 +- src/views/setting/components/VerifyModel.vue | 1 + src/views/setting/profile/LeftBox.vue | 2 +- .../file/components/FileAudioModal/ModalContent.vue | 4 ++-- src/views/system/file/main/FileMain/index.vue | 2 +- src/views/system/notice/index.vue | 1 + 22 files changed, 37 insertions(+), 27 deletions(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index c83e8e7..62ad396 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -26,6 +26,7 @@ module.exports = { extends: [ 'eslint:recommended', // 比如: 函数不能重名、对象不能出现重复key 'plugin:vue/vue3-essential', // vue3语法规则 + 'plugin:vue/vue3-recommended', '@vue/eslint-config-typescript/recommended', // ts语法规则 '@vue/eslint-config-prettier' ], @@ -57,6 +58,11 @@ module.exports = { 'vue/script-setup-uses-vars': 'error', // 防止 +