{ // 使用eslint+prettier自动格式化 "editor.formatOnSave": true, "editor.codeActionsOnSave": { "source.fixAll.eslint": true }, // 导入模块时默认使用相对于项目的路径 "javascript.preferences.importModuleSpecifier": "project-relative", // jsdoc注释时不带return "typescript.suggest.jsdoc.generateReturns": false, // 只启用项目范围的错误报告 "typescript.tsserver.experimental.enableProjectDiagnostics": true, // 使用项目内部安装的ts的sdk "typescript.tsdk": "node_modules/typescript/lib", // 默认使用pnpm作为包安装的管理工具 "npm.packageManager": "pnpm", }