diff --git a/CLAUDE.md b/CLAUDE.md index 549cced9e1e7..cc49e7bef0a4 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -225,10 +225,9 @@ React Compiler auto-memoizes object literals, callbacks, JSX, and derived values **ALWAYS run these steps after making code changes, before committing:** -1. **Oxfmt**: Run `npm run fmt` on every file you modified. This is mandatory - CI will reject unformatted code. -2. **ESLint**: Run `npm run lint-changed` to catch lint errors early. -3. **TypeScript**: Run `npm run typecheck-tsgo` after changes that may affect typing (types, interfaces, or function signatures). It is ~10x faster and usually stricter than tsc. CI validates with `npm run typecheck` (tsc), which remains the required merge gate. -4. **React Compiler**: If you added new React components/hooks or modified existing ones, run `npm run react-compiler-compliance-check check-changed` to verify they compile with React Compiler. This applies the same rules as CI, evaluated against BOTH the Babel and OXC compilers: new components/hooks must compile, existing compiled files must not regress, and changes must not introduce new memoization divergence (one compiler memoizing a file while the other does not). See `contributingGuides/REACT_COMPILER.md` for details and common fixes. +1. **ESLint**: Run `npm run lint-changed` to catch lint errors early. +2. **TypeScript**: Run `npm run typecheck-tsgo` after changes that may affect typing (types, interfaces, or function signatures). It is ~10x faster and usually stricter than tsc. CI validates with `npm run typecheck` (tsc), which remains the required merge gate. +3. **React Compiler**: If you added new React components/hooks or modified existing ones, run `npm run react-compiler-compliance-check check-changed` to verify they compile with React Compiler. This applies the same rules as CI, evaluated against BOTH the Babel and OXC compilers: new components/hooks must compile, existing compiled files must not regress, and changes must not introduce new memoization divergence (one compiler memoizing a file while the other does not). See `contributingGuides/REACT_COMPILER.md` for details and common fixes. ### Testing @@ -357,6 +356,6 @@ Use the `/agent-device` skill to drive the App on iOS and Android (simulators or ### With Backend Services -- RESTful API communication +- REST API communication - WebSocket connections via Pusher - Real-time synchronization