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": [
// 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"
]
}

View File

@ -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",