Sfoglia il codice sorgente

fix: surface eslint diagnostics in vscode

xingyu4j 3 mesi fa
parent
commit
95d1e8432f
2 ha cambiato i file con 3 aggiunte e 14 eliminazioni
  1. 1 13
      .vscode/extensions.json
  2. 2 1
      .vscode/settings.json

+ 1 - 13
.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"
   ]
 }

+ 2 - 1
.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",