Browse Source

fix: surface eslint diagnostics in vscode

pull/7655/head
xingyu4j 1 week ago
parent
commit
95d1e8432f
  1. 14
      .vscode/extensions.json
  2. 3
      .vscode/settings.json

14
.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"
]
}

3
.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",

Loading…
Cancel
Save