From c1efba0a0a3d791f3198e464382489371ddb2cca Mon Sep 17 00:00:00 2001 From: "Ray.Hao" <1490493387@qq.com> Date: Tue, 25 Feb 2025 00:17:55 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20:hammer:=20=E9=BB=98=E8=AE=A4=E5=85=B3?= =?UTF-8?q?=E9=97=AD=E8=87=AA=E5=8A=A8=E7=B1=BB=E5=9E=8B=E5=A3=B0=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .prettierignore | 1 - eslint.config.mjs | 4 ++++ vite.config.ts | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.prettierignore b/.prettierignore index 1892be3..c2e668d 100644 --- a/.prettierignore +++ b/.prettierignore @@ -4,4 +4,3 @@ dist public node_modules -auto-imports.d.ts diff --git a/eslint.config.mjs b/eslint.config.mjs index 336c9bc..657193f 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -31,6 +31,10 @@ export default [ ...autoImportConfig.globals, ...{ uni: "readonly", // uni-app 全局对象 + UniApp: "readonly", // uni-app 全局对象 + ResponseData: "readonly", // 统一响应数据类型 + PageResult: "readonly", // 分页结果数据类型 + PageQuery: "readonly", // 分页查询数据类型 }, }, }, diff --git a/vite.config.ts b/vite.config.ts index f3f5703..13591c1 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -28,7 +28,7 @@ export default defineConfig(async ({ mode }: ConfigEnv): Promise => imports: ["vue", "uni-app"], dts: "src/types/auto-imports.d.ts", // 自动生成的类型声明文件 eslintrc: { - enabled: true, + enabled: false, }, }), uni(),