From e171c29d28641bc8acf19830797ed40f6c2b9bb0 Mon Sep 17 00:00:00 2001 From: feige996 <1020102647@qq.com> Date: Sat, 21 Jun 2025 17:22:06 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=B0=86=20lint=20=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E4=BB=8E=20oxlint=20=E5=88=87=E6=8D=A2=E4=B8=BA=20eslint=20?= =?UTF-8?q?=E5=B9=B6=E5=90=AF=E7=94=A8=E5=A4=9A=E8=AF=AD=E8=A8=80=E6=94=AF?= =?UTF-8?q?=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新 package.json 中的 lint 脚本,使用 eslint 替代 oxlint 在 .vscode/settings.json 中启用 eslint 对所有支持语言的校验 --- .vscode/settings.json | 44 +++++++++++++++++++++---------------------- package.json | 4 ++-- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 8413cd6..b0f278a 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -92,27 +92,27 @@ // Enable eslint for all supported languages "eslint.validate": [ - // "javascript", - // "javascriptreact", - // "typescript", - // "typescriptreact", - "vue" - // "html", - // "markdown", - // "json", - // "json5", - // "jsonc", - // "yaml", - // "toml", - // "xml", - // "gql", - // "graphql", - // "astro", - // "svelte", - // "css", - // "less", - // "scss", - // "pcss", - // "postcss" + "javascript", + "javascriptreact", + "typescript", + "typescriptreact", + "vue", + "html", + "markdown", + "json", + "json5", + "jsonc", + "yaml", + "toml", + "xml", + "gql", + "graphql", + "astro", + "svelte", + "css", + "less", + "scss", + "pcss", + "postcss" ] } diff --git a/package.json b/package.json index b78ca3d..43bcccb 100644 --- a/package.json +++ b/package.json @@ -72,8 +72,8 @@ "type-check": "vue-tsc --noEmit", "openapi-ts-request": "openapi-ts", "prepare": "git init && husky", - "lint": "oxlint", - "lint:fix": "oxlint --fix" + "lint": "eslint", + "lint:fix": "eslint --fix" }, "dependencies": { "@dcloudio/uni-app": "3.0.0-4060620250520001",