You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CLAUDE.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,6 +100,7 @@ The `/issue` skill applies these labels automatically when creating issues via C
100
100
- Path aliases: `@/src/*` and `@packageJSON`
101
101
- All env vars prefixed with `PUBLIC_` and validated in `src/env.ts`
102
102
- JSDoc comments on exported functions/components (follow existing patterns)
103
+
- Use `@precondition` in JSDoc ONLY for conditions enforced at runtime with a throw/guard. Use `@expects` for documented assumptions the caller is responsible for (TypeScript-enforced, gracefully handled, or downstream-validated). If you write `@precondition`, the function MUST validate and throw on violation.
0 commit comments