- 使用中文回复 - 代码注释使用英文 - 优先使用函数式编程 - 所有函数添加 JSDoc 注释 - 错误处理必须具体,禁止空 catch - 不使用 any 类型
- 使用 App Router,不使用 Pages Router - Server Components 优先 - 数据获取在 Server Components 中完成 - 使用 Server Actions 处理表单 - 样式使用 Tailwind CSS - 状态管理使用 Zustand
- Python 3.12+ - 使用 type hints - 异步使用 asyncio - 测试使用 pytest - 日志使用 structlog - 格式化使用 ruff
评论
0 条