fix: surface eslint diagnostics in vscode

vite8^2
xingyu4j 2026-03-14 19:36:27 +08:00
parent 4d59ac78bd
commit 95d1e8432f
2 changed files with 3 additions and 14 deletions

View File

@ -1,30 +1,18 @@
{ {
"recommendations": [ "recommendations": [
// Vue 3
"Vue.volar", "Vue.volar",
// oxlint VS Code "dbaeumer.vscode-eslint",
"oxc.oxc-vscode", "oxc.oxc-vscode",
// Visual Studio Code Stylelint
"stylelint.vscode-stylelint", "stylelint.vscode-stylelint",
// 使 oxfmt
"oxc.oxc-vscode",
// dotenv
"mikestead.dotenv", "mikestead.dotenv",
//
"streetsidesoftware.code-spell-checker", "streetsidesoftware.code-spell-checker",
// Tailwind CSS VS Code
"bradlc.vscode-tailwindcss", "bradlc.vscode-tailwindcss",
// iconify
"antfu.iconify", "antfu.iconify",
// i18n
"Lokalise.i18n-ally", "Lokalise.i18n-ally",
// CSS
"vunguyentuan.vscode-css-variables", "vunguyentuan.vscode-css-variables",
// package.json PNPM catalog
"antfu.pnpm-catalog-lens" "antfu.pnpm-catalog-lens"
], ],
"unwantedRecommendations": [ "unwantedRecommendations": [
// volar
"octref.vetur" "octref.vetur"
] ]
} }

View File

@ -41,6 +41,7 @@
"oxc.typeAware": true, "oxc.typeAware": true,
"oxc.configPath": "oxlint.config.ts", "oxc.configPath": "oxlint.config.ts",
"oxc.fmt.configPath": "oxfmt.config.ts", "oxc.fmt.configPath": "oxfmt.config.ts",
"eslint.useFlatConfig": true,
"editor.codeActionsOnSave": { "editor.codeActionsOnSave": {
"source.fixAll.oxc": "explicit", "source.fixAll.oxc": "explicit",
"source.fixAll.stylelint": "explicit", "source.fixAll.stylelint": "explicit",
@ -170,7 +171,7 @@
"emmet.triggerExpansionOnTab": false, "emmet.triggerExpansionOnTab": false,
"errorLens.enabledDiagnosticLevels": ["warning", "error"], "errorLens.enabledDiagnosticLevels": ["warning", "error"],
"errorLens.excludeBySource": ["cSpell", "Grammarly", "eslint"], "errorLens.excludeBySource": ["cSpell", "Grammarly"],
"stylelint.enable": true, "stylelint.enable": true,
"stylelint.packageManager": "pnpm", "stylelint.packageManager": "pnpm",