opencode/STYLE_GUIDE.md

11 lines
345 B
Markdown
Raw Normal View History

2025-12-04 00:46:48 +08:00
## Style Guide
- Try to keep things in one function unless composable or reusable
- AVOID unnecessary destructuring of variables
2025-12-04 00:46:48 +08:00
- AVOID `try`/`catch` where possible
- AVOID `else` statements
- AVOID using `any` type
- AVOID `let` statements
- PREFER single word variable names where possible
- Use as many bun apis as possible like Bun.file()