Code style updates

This commit is contained in:
Zef Hemel
2026-08-03 16:02:57 +02:00
parent 59d9330efb
commit 248f2694bc
+7 -3
View File
@@ -94,9 +94,13 @@ export function listPages(unfiltered?: boolean): Promise<PageMeta[]> {
}
```
Inline comments:
* In case of doubt: add comments around the _why_ of the code (not what)
* Add TODO comments for known issues
Inline comments: write one only when it definitely earns its place: a non-obvious _why_, a constraint not visible in the code, a workaround for an external bug, or a subtle ordering/safety requirement.
Don't:
* restate what the code already says, or narrate a function's steps
* write a doc comment that only repeats the signature
* explain what a better name or an extracted function would make obvious
```typescript
// Note: these events are dispatched asynchronously (not waiting for results)