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
-**CI compliance check**: `scripts/react-compiler-compliance-check.ts` enforces that new components/hooks compile and that existing compiled files don't regress
Copy file name to clipboardExpand all lines: CLAUDE.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -185,14 +185,14 @@ The skill provides guidance on:
185
185
186
186
### Code Quality
187
187
-**TypeScript**: Strict mode enabled
188
-
-**ESLint**: Linter
188
+
-**ESLint**: Linter. Pre-existing violations are grandfathered via [`eslint-seatbelt`](https://github.com/justjake/eslint-seatbelt).
189
189
-**Prettier**: Code formatting - run `npm run prettier` after making changes
190
190
-**Patch Management**: patch-package for dependency fixes
191
191
192
192
### Post-Edit Checklist (IMPORTANT)
193
193
**ALWAYS run these steps after making code changes, before committing:**
194
194
1.**Prettier**: Run `npx prettier --write <changed files>` on every file you modified. This is mandatory - CI will reject unformatted code.
195
-
2.**ESLint**: Run `npx eslint <changed files> --max-warnings=0` to catch lint errors early.
195
+
2.**ESLint**: Run `npm run lint-changed` to catch lint errors early.
196
196
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.
197
197
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: new components/hooks must compile, and existing compiled files must not regress. See `contributingGuides/REACT_COMPILER.md` for details and common fixes.
0 commit comments