feat: 模板自带 .vscode/settings.json + extensions.json(编辑器实时护栏)
- settings.json:formatOnSave + ruff(保存修复/整理import) + eslint onType; Pylance basic 即时反馈,权威 strict 交 mypy 扩展读 pyproject,与 pre-commit 同源 - extensions.json:按服务推荐 ruff/pylance/mypy/eslint/prettier 扩展 - 始终生成(不挂 vscode_auto_watch 开关),按 include_backend/agent/frontend 裁剪 - 测试覆盖 全栈/仅后端/仅前端 三配置,条件填充正确、JSON 合法
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
// 由 scaffold 生成:打开项目时 VSCode 会提示安装这些扩展,
|
||||
// 它们提供与 pre-commit 一致的编辑器实时检查(第 1 层护栏)。
|
||||
{
|
||||
"recommendations": [
|
||||
{%- if include_backend or include_agent %}
|
||||
"charliermarsh.ruff",
|
||||
"ms-python.python",
|
||||
"ms-python.vscode-pylance",
|
||||
"ms-python.mypy-type-checker",
|
||||
{%- endif %}
|
||||
{%- if include_frontend %}
|
||||
"dbaeumer.vscode-eslint",
|
||||
"esbenp.prettier-vscode",
|
||||
{%- endif %}
|
||||
"redhat.vscode-yaml"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user