Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

reactCompiledFiles.ts

29 lines1.4 KB

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/Sidebar.tsx",
10 "apps/web/src/components/chat/ChatComposer.tsx",
11 "apps/web/src/components/chat/usePendingThreadRequests.ts",
12 "apps/web/src/components/chat/composerFocusRedirect.ts",
13 "apps/web/src/components/chat/useChatShortcuts.ts",
14 "apps/web/src/components/chat/useQueuedRunEdit.ts",
15 "apps/web/src/components/chat/useUsageLimitsPanel.ts",
16 "apps/web/src/components/chat/useWorktreeSetup.ts",
17 "apps/web/src/components/preview/useAgentOpenedPreviews.ts",
18 "apps/web/src/components/pullRequest/useThreadLinkedPullRequest.ts",
19 "apps/web/src/components/terminal/**",
20 "apps/web/src/hooks/useIncrementalTimelineEntries.ts",
21 "apps/web/src/hooks/useProactivePanels.ts",
22 "apps/web/src/hooks/useRightPanelSurfaceClose.ts",
23] as const;
24​
25/**
26 * Files the compiler already compiles that still carry manual memoization or
27 * effect-driven state, so only the compile test covers them for now.
28 */
29export const REACT_COMPILED_FILES_PENDING_LINT = ["apps/web/src/components/ChatView.tsx"] as const;