diff options
| author | Aiden Cline <[email protected]> | 2025-12-03 10:46:48 -0600 |
|---|---|---|
| committer | Aiden Cline <[email protected]> | 2025-12-03 10:46:48 -0600 |
| commit | 5b34636afa869dfe33cd0546128171ad76d82519 (patch) | |
| tree | 91ce2db7545ebe042601349ab0ea4986b20e1ee9 /STYLE_GUIDE.md | |
| parent | f1138b9a5571b6ce64938d5e719c1bbc75ea994e (diff) | |
| download | opencode-5b34636afa869dfe33cd0546128171ad76d82519.tar.gz opencode-5b34636afa869dfe33cd0546128171ad76d82519.zip | |
ignore: docs & style
Diffstat (limited to 'STYLE_GUIDE.md')
| -rw-r--r-- | STYLE_GUIDE.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/STYLE_GUIDE.md b/STYLE_GUIDE.md new file mode 100644 index 000000000..164f69bd4 --- /dev/null +++ b/STYLE_GUIDE.md @@ -0,0 +1,12 @@ +## Style Guide + +- Try to keep things in one function unless composable or reusable +- DO NOT do unnecessary destructuring of variables +- DO NOT use `else` statements unless necessary +- DO NOT use `try`/`catch` if it can be avoided +- 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() |
