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: .agents/rules/code-typescript.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,8 @@ Applies to `*.ts` and `*.tsx`.
17
17
- Write explicit return types.
18
18
- Keep functions minimal and modular.
19
19
- Use Bun for package management; do not use npm/yarn/pnpm.
20
+
- In the example app's `package.json`, pin dependency versions exactly. No caret (`^`) or tilde (`~`) ranges. Applies to `dependencies` and `devDependencies`. Use the version `bun.lock` resolved.
21
+
- Library `package.json` (under `packages/*`) may use ranges (`^`, `>=`) for `dependencies` and `peerDependencies` to allow consumer flexibility.
20
22
- For React, minimize `useEffect`; use named effect functions if unavoidable.
0 commit comments