refactor: consolidate development rules and add cli guidelines (#19214)

This commit is contained in:
Jacob Richman
2026-02-16 12:48:34 -08:00
committed by GitHub
parent 39d36108d7
commit 6ed1878c5f
6 changed files with 78 additions and 311 deletions
+5 -2
View File
@@ -5,11 +5,14 @@
- Always fix react-hooks/exhaustive-deps lint errors by adding the missing
dependencies.
- **Shortcuts**: only define keyboard shortcuts in
`packages/cli/src/config/keyBindings.ts
`packages/cli/src/config/keyBindings.ts`
- Do not implement any logic performing custom string measurement or string
truncation. Use Ink layout instead leveraging ResizeObserver as needed.
- Avoid prop drilling when at all possible.
## Testing
- **Utilities**: Use `renderWithProviders` and `waitFor` from
`packages/cli/src/test-utils/`.
- **Snapshots**: Use `toMatchSnapshot()` to verify Ink output.
- **Mocks**: Use mocks as sparingly as possilble.
- **Mocks**: Use mocks as sparingly as possible.