From 95d1e8432f85b47999273ca4d247cdb4ff5b26fd Mon Sep 17 00:00:00 2001 From: xingyu4j Date: Sat, 14 Mar 2026 19:36:27 +0800 Subject: [PATCH] fix: surface eslint diagnostics in vscode --- .vscode/extensions.json | 14 +------------- .vscode/settings.json | 3 ++- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 9da1daba8..8f1878c4d 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,30 +1,18 @@ { "recommendations": [ - // Vue 3 的语言支持 "Vue.volar", - // 将 oxlint 集成到 VS Code 中。 + "dbaeumer.vscode-eslint", "oxc.oxc-vscode", - // Visual Studio Code 的官方 Stylelint 扩展 "stylelint.vscode-stylelint", - // 使用 oxfmt 的代码格式化程序 - "oxc.oxc-vscode", - // 支持 dotenv 文件语法 "mikestead.dotenv", - // 源代码的拼写检查器 "streetsidesoftware.code-spell-checker", - // Tailwind CSS 的官方 VS Code 插件 "bradlc.vscode-tailwindcss", - // iconify 图标插件 "antfu.iconify", - // i18n 插件 "Lokalise.i18n-ally", - // CSS 变量提示 "vunguyentuan.vscode-css-variables", - // 在 package.json 中显示 PNPM catalog 的版本 "antfu.pnpm-catalog-lens" ], "unwantedRecommendations": [ - // 和 volar 冲突 "octref.vetur" ] } diff --git a/.vscode/settings.json b/.vscode/settings.json index bc8fb2641..5640c7928 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -41,6 +41,7 @@ "oxc.typeAware": true, "oxc.configPath": "oxlint.config.ts", "oxc.fmt.configPath": "oxfmt.config.ts", + "eslint.useFlatConfig": true, "editor.codeActionsOnSave": { "source.fixAll.oxc": "explicit", "source.fixAll.stylelint": "explicit", @@ -170,7 +171,7 @@ "emmet.triggerExpansionOnTab": false, "errorLens.enabledDiagnosticLevels": ["warning", "error"], - "errorLens.excludeBySource": ["cSpell", "Grammarly", "eslint"], + "errorLens.excludeBySource": ["cSpell", "Grammarly"], "stylelint.enable": true, "stylelint.packageManager": "pnpm",