mirror of
https://github.com/simstudioai/sim.git
synced 2026-02-02 18:55:25 -05:00
* feat(claude): added rules * fix(copilot): chat loading; refactor(copilot): components, utils, hooks * fix(copilot): options selection strikethrough * fix(copilot): options render inside thinking * fix(copilot): checkpoints, user-input; improvement(code): colors * fix(copilot): scrolling, tool-call truncation, thinking ui * fix(copilot): tool call spacing and shimmer/actions on previous messages * improvement(copilot): queue * addressed comments
536 B
536 B
paths
| paths | ||
|---|---|---|
|
TypeScript Rules
- No
any- Use proper types orunknownwith type guards - Props interface - Always define for components
- Const assertions -
as constfor constant objects/arrays - Ref types - Explicit:
useRef<HTMLDivElement>(null) - Type imports -
import type { X }for type-only imports
// ✗ Bad
const handleClick = (e: any) => {}
// ✓ Good
const handleClick = (e: React.MouseEvent<HTMLButtonElement>) => {}