Open History to see the last commit
1/**
2 * Web files the React Compiler must compile, relative to the repository root. Add a
3 * file once it compiles cleanly. The root lint config makes the compiler's bailout
4 * rules errors for these files, and src/reactCompiledFiles.test.ts compiles each one
5 * to catch the bailouts lint cannot see.
6 */
7export const REACT_COMPILED_FILES = [
8 "apps/web/src/components/PersistentThreadTerminals.tsx",
9 "apps/web/src/components/chat/usePendingThreadRequests.ts",
10 "apps/web/src/components/chat/useQueuedRunEdit.ts",
11 "apps/web/src/components/chat/useUsageLimitsPanel.ts",
12 "apps/web/src/components/chat/useWorktreeSetup.ts",
13 "apps/web/src/components/preview/useAgentOpenedPreviews.ts",
14 "apps/web/src/components/pullRequest/useThreadLinkedPullRequest.ts",
15 "apps/web/src/components/terminal/**",
16 "apps/web/src/hooks/useIncrementalTimelineEntries.ts",
17 "apps/web/src/hooks/useProactivePanels.ts",
18 "apps/web/src/hooks/useRightPanelSurfaceClose.ts",
19] as const;
20
21/**
22 * Files the compiler already compiles that still carry manual memoization or
23 * effect-driven state, so only the compile test covers them for now.
24 */
25export const REACT_COMPILED_FILES_PENDING_LINT = ["apps/web/src/components/ChatView.tsx"] as const;