Skip to content

Commit c3a7be3

Browse files
committed
style: add code style instruction for switch statements
1 parent 5fe6355 commit c3a7be3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

AGENTS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
- Keep edits consistent with existing formatting.
1414
- When adding env/config knobs, document them in `readme-dev.md`.
15+
- When updating discriminated-union/event `switch` statements, do not add a trailing fallback like `return null` only to satisfy TypeScript.
16+
- Handle each variant with an explicit `case`; if intentionally ignored, use an explicit no-op case.
1517

1618
## Testing Guidelines
1719

0 commit comments

Comments
 (0)