Files
sim/.claude/rules/sim-typescript.md
Emir Karabeg 2daf34386e fix(copilot): ui/ux (#2891)
* 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
2026-01-19 23:23:21 -08:00

536 B

paths
paths
apps/sim/**/*.ts
apps/sim/**/*.tsx

TypeScript Rules

  1. No any - Use proper types or unknown with type guards
  2. Props interface - Always define for components
  3. Const assertions - as const for constant objects/arrays
  4. Ref types - Explicit: useRef<HTMLDivElement>(null)
  5. Type imports - import type { X } for type-only imports
// ✗ Bad
const handleClick = (e: any) => {}

// ✓ Good
const handleClick = (e: React.MouseEvent<HTMLButtonElement>) => {}