Open History to see the last commit
1import "vite-plus/test/config";
2import { defineConfig } from "vite-plus";
3import * as NodeURL from "node:url";
4import { remoteCacheUrl } from "./infra/task-cache/src/remoteCache.ts";
5import { cachedTestTasks } from "./scripts/lib/cached-tests.ts";
6
7const DOM_TEST_ENVIRONMENT_ALLOWLIST: Array<string> = [];
8
9const TEST_EXCLUDE = [
10 "**/.repos/**",
11 "**/.t3/**",
12 "**/node_modules/**",
13 "**/dist/**",
14 "**/dist-electron/**",
15 "**/.{idea,git,cache,output,temp}/**",
16];
17
18// Directories whose tests belong to a package's own test config. desktop also
19// owns the kde-snap-shot tests through its `include`.
20const TEST_CONFIG_PACKAGES = [
21 "apps/desktop",
22 "apps/mobile",
23 "apps/server",
24 "apps/web",
25 "packages/client-runtime",
26];
27
28// `vp test run <file>` from the repo root hands each file to its package's
29// config. Packages that borrow this config (`--config ../../vite.config.ts`) run
30// from their own directory, as CI does, so they keep one plain project.
31const isRepoRootTestRun = process.cwd() === import.meta.dirname;
32
33const RESTRICTED_IMPORT_PATHS = [
34 {
35 name: "@t3tools/client-runtime",
36 message:
37 "Import from an explicit @t3tools/client-runtime/* subpath. The package has no root export.",
38 },
39 {
40 name: "@pierre/diffs/react",
41 importNames: ["CodeView"],
42 message: "Use StyledDiffCodeView so web diff surfaces share styling and virtualized geometry.",
43 },
44 {
45 name: "react-native-screens",
46 importNames: ["ScrollViewMarker"],
47 message:
48 "Use NativeScrollViewMarker or NativeScrollView (src/native/NativeScrollViewMarker.tsx): they carry the header's scroll-edge blur under the Duo's vertical bar.",
49 },
50];
51
52const RESTRICTED_UI_VARIANT_PATTERNS = [
53 {
54 group: ["**/components/ui/*", "**/ui/*", "./ui/*"],
55 importNames: ["buttonVariants", "toggleVariants", "badgeVariants", "selectTriggerVariants"],
56 message:
57 "Render the components/ui export instead of borrowing its class recipe (render={<Button …/>}, SelectButton, ToggleGroup).",
58 },
59];
60
61const RESTRICTED_PULL_REQUEST_GLYPH_IMPORTS = {
62 name: "lucide-react",
63 importNames: [
64 "GitMerge",
65 "GitMergeIcon",
66 "GitPullRequest",
67 "GitPullRequestIcon",
68 "GitPullRequestArrow",
69 "GitPullRequestArrowIcon",
70 "GitPullRequestClosed",
71 "GitPullRequestClosedIcon",
72 "GitPullRequestDraft",
73 "GitPullRequestDraftIcon",
74 "GitPullRequestCreate",
75 "GitPullRequestCreateIcon",
76 "GitPullRequestCreateArrow",
77 "GitPullRequestCreateArrowIcon",
78 ],
79 message:
80 "Pick a glyph by meaning from PullRequestGlyph in apps/web/src/components/pullRequest/pullRequestIcons.tsx so every surface draws the same pull request the same way.",
81};
82
83// Vite+ supports remote configuration before its published types include it.
84const cacheUrl = remoteCacheUrl(import.meta.dirname);
85const taskCacheConfig = {
86 scripts: false,
87 ...(cacheUrl ? { remote: { url: cacheUrl } } : {}),
88};
89
90export default defineConfig({
91 run: {
92 cache: taskCacheConfig,
93 tasks: cachedTestTasks(process.env.T3_CACHED_TESTS),
94 },
95 resolve: {
96 alias: {
97 "~": NodeURL.fileURLToPath(new URL("./apps/web/src", import.meta.url)),
98 },
99 },
100 test: {
101 environment: "node",
102 // Fixture subprocesses must not inherit the outer task runner’s cache policy.
103 env: { VP_REMOTE_CACHE: "off", VP_REMOTE_CACHE_URL: "" },
104 exclude: TEST_EXCLUDE,
105 hookTimeout: 60_000,
106 testTimeout: 60_000,
107 allowOnly: !process.env.CI,
108 // Flaky tests are fixed, not retried.
109 retry: 0,
110 fakeTimers: {
111 toFake: [
112 "setTimeout",
113 "clearTimeout",
114 "setInterval",
115 "clearInterval",
116 "setImmediate",
117 "clearImmediate",
118 "Date",
119 "performance",
120 "requestAnimationFrame",
121 "cancelAnimationFrame",
122 "requestIdleCallback",
123 "cancelIdleCallback",
124 ],
125 },
126 setupFiles: [
127 NodeURL.fileURLToPath(
128 new URL("./packages/shared/src/testing/longTempDir.ts", import.meta.url),
129 ),
130 NodeURL.fileURLToPath(
131 new URL("./packages/shared/src/testing/providerEnv.ts", import.meta.url),
132 ),
133 ],
134 ...(isRepoRootTestRun
135 ? {
136 projects: [
137 ...TEST_CONFIG_PACKAGES,
138 {
139 extends: true,
140 test: {
141 name: "root",
142 exclude: [
143 ...TEST_EXCLUDE,
144 ...TEST_CONFIG_PACKAGES.map((dir) => `${dir}/**`),
145 "native/kde-snap-shot/**",
146 ],
147 },
148 },
149 ],
150 }
151 : {}),
152 },
153 staged: {
154 "*": "vp fmt --no-error-on-unmatched-pattern",
155 },
156 fmt: {
157 ignorePatterns: [
158 ".repos/**",
159 "infra/task-cache/vendor/**",
160 // Macroscope requires one glob per line; Markdown formatting corrupts it.
161 ".macroscope/ignore.md",
162 ".alchemy",
163 "dist",
164 "dist-electron",
165 "node_modules",
166 "pnpm-lock.yaml",
167 "*.tsbuildinfo",
168 "**/routeTree.gen.ts",
169 "**/*.graphql.ts",
170 "packages/source-control-github/schema/**",
171 "apps/server/schema/**",
172 "apps/mobile/android/**",
173 "apps/mobile/ios/**",
174 "apps/mobile/uniwind-types.d.ts",
175 // Vendored and generated C.
176 "apps/mobile/modules/t3-highlights/Vendor/**",
177 "apps/mobile/modules/t3-highlights/cpp/generated/**",
178 "*.icon/**",
179 ],
180 sortPackageJson: {},
181 overrides: [
182 {
183 files: [".devcontainer/devcontainer.json"],
184 options: {
185 trailingComma: "none",
186 },
187 },
188 ],
189 },
190 lint: {
191 ignorePatterns: [
192 ".repos",
193 ".repos/**",
194 "infra/task-cache/vendor/**",
195 "dist",
196 "dist-electron",
197 "node_modules",
198 "pnpm-lock.yaml",
199 "*.tsbuildinfo",
200 "**/routeTree.gen.ts",
201 "**/*.graphql.ts",
202 "packages/source-control-github/schema/**",
203 "apps/server/schema/**",
204 "apps/mobile/android/**",
205 "apps/mobile/ios/**",
206 "apps/mobile/uniwind-types.d.ts",
207 ],
208 plugins: ["eslint", "oxc", "react", "unicorn", "typescript"],
209 jsPlugins: ["./oxlint-plugin-t3code/index.ts", "@shadcn/lint"],
210 settings: {
211 shadcn: { ui: "~/components/ui" },
212 },
213 categories: {
214 correctness: "warn",
215 suspicious: "warn",
216 perf: "warn",
217 },
218 rules: {
219 "eslint/no-control-regex": "off",
220 "typescript/no-this-alias": "off",
221 "unicorn/prefer-add-event-listener": "off",
222 "unicorn/prefer-string-starts-ends-with": "off",
223 "unicorn/prefer-set-has": "off",
224 "unicorn/prefer-array-find": "off",
225 "unicorn/no-new-array": "off",
226 "unicorn/no-array-reverse": "off",
227 "react/no-object-type-as-default-prop": "off",
228 "react/jsx-no-constructed-context-values": "off",
229 "react/memo-dependencies": "error",
230 "react/immutability": "error",
231 "react/no-array-index-key": "error",
232 "react/no-unstable-nested-components": "error",
233 "react/static-components": "error",
234 "react/capitalized-calls": "error",
235 "typescript/no-extraneous-class": "error",
236 "eslint/no-empty-pattern": "error",
237 "eslint/no-new": "error",
238 "unicorn/no-useless-spread": "error",
239 "eslint/no-unused-vars": [
240 "error",
241 { argsIgnorePattern: "^_", varsIgnorePattern: "^_", caughtErrorsIgnorePattern: "^_" },
242 ],
243 "eslint/no-unsafe-optional-chaining": "error",
244 "eslint/no-unneeded-ternary": "error",
245 "unicorn/no-useless-fallback-in-spread": "error",
246 "unicorn/require-module-specifiers": "error",
247 "unicorn/no-array-sort": "off",
248 "unicorn/consistent-function-scoping": "off",
249 "oxc/no-map-spread": "off",
250 "react-in-jsx-scope": "off",
251 "react-hooks/exhaustive-deps": "off",
252 "eslint/no-shadow": "off",
253 "eslint/no-await-in-loop": "off",
254 "eslint/no-underscore-dangle": "off",
255 "typescript/consistent-return": "off",
256 "typescript/no-base-to-string": "off",
257 "typescript/no-duplicate-type-constituents": "off",
258 "typescript/no-floating-promises": "off",
259 "typescript/no-implied-eval": "off",
260 "typescript/no-meaningless-void-operator": "off",
261 "typescript/no-redundant-type-constituents": "off",
262 "typescript/no-unnecessary-boolean-literal-compare": "off",
263 "typescript/no-unnecessary-type-conversion": "off",
264 "typescript/no-unnecessary-type-arguments": "off",
265 "typescript/no-unnecessary-type-assertion": "off",
266 "typescript/no-unnecessary-type-parameters": "off",
267 "typescript/no-unsafe-type-assertion": "off",
268 "typescript/await-thenable": "off",
269 "typescript/require-array-sort-compare": "off",
270 "typescript/restrict-template-expressions": "off",
271 "typescript/unbound-method": "off",
272 "eslint/no-restricted-imports": [
273 "error",
274 { paths: [...RESTRICTED_IMPORT_PATHS, RESTRICTED_PULL_REQUEST_GLYPH_IMPORTS] },
275 ],
276 "t3code/no-global-process-runtime": "error",
277 "t3code/no-inline-schema-compile": "warn",
278 "t3code/no-low-value-comments": "error",
279 "t3code/no-manual-effect-runtime-in-tests": "error",
280 "t3code/no-native-title-tooltip": "error",
281 // Test files only (the rule checks the filename).
282 "t3code/no-polling-loop-in-tests": "error",
283 "t3code/no-raw-mcp-registration": "error",
284 "t3code/no-real-time-wait-in-tests": "error",
285 "t3code/no-test-in-loop": "error",
286 "t3code/no-test-timeout-or-unreasoned-skip": "error",
287 "t3code/no-rpc-permission-bypass": ["error", { allowRawClientAccess: true }],
288 "t3code/no-unscoped-has": "error",
289 "t3code/no-wall-clock-in-tests": "error",
290 "t3code/namespace-node-imports": "error",
291 "t3code/prefer-catch-tags": "error",
292 "t3code/prefer-effect-fn": "error",
293 "t3code/require-centered-scroll-gutter": "error",
294 "t3code/require-suppression-reason": "error",
295 },
296 overrides: [
297 {
298 files: [
299 "**/*.{test,spec,testkit}.{ts,tsx}",
300 "**/{test,tests,testkit,testing,fixtures,integration}/**",
301 "packages/provider-testing/**",
302 ],
303 rules: { "t3code/prefer-effect-fn": "off" },
304 },
305 {
306 files: ["apps/web/**/*.test.{ts,tsx}"],
307 rules: { "t3code/require-disposable-render": "error" },
308 },
309 {
310 files: ["apps/web/src/**/*.browser.test.{ts,tsx}"],
311 rules: { "t3code/no-frame-waits-in-browser-tests": "error" },
312 },
313 {
314 // Burn-down list: these files still have polling loops, so they stay at "warn".
315 // Remove a file when you convert its loops. New polling loops in all other
316 // test files fail lint. Do not add new files to this list.
317 files: [
318 "apps/mobile/src/features/agent-awareness/remoteRegistration.test.ts",
319 "apps/server/src/background/HostPowerMonitor.test.ts",
320 "apps/server/src/orchestration-v2/Adapters/AcpAdapterV2.test.ts",
321 "apps/server/src/orchestration-v2/FoundationPersistence.test.ts",
322 "apps/server/src/project/ProjectEnrichmentService.test.ts",
323 "apps/server/src/project/ProjectService.test.ts",
324 "apps/server/src/scheduledTasks/ScheduledTaskService.webhook.test.ts",
325 "apps/server/src/usage/UsageService.test.ts",
326 "packages/client-runtime/src/connection/supervisor.test.ts",
327 "packages/client-runtime/src/rpc/client.test.ts",
328 "packages/client-runtime/src/rpc/session.test.ts",
329 "packages/client-runtime/src/state/shell-sync.test.ts",
330 "packages/client-runtime/src/state/threads-sync.test.ts",
331 "packages/shared/src/atomicWrite.test.ts",
332 ],
333 rules: { "t3code/no-polling-loop-in-tests": "warn" },
334 },
335 {
336 files: ["apps/**/src/**", "packages/**/src/**"],
337 excludeFiles: DOM_TEST_ENVIRONMENT_ALLOWLIST,
338 rules: { "t3code/no-dom-test-environment": "error" },
339 },
340 {
341 files: ["packages/client-runtime/src/state/**", "apps/{web,mobile,desktop}/src/**"],
342 rules: { "t3code/no-rpc-permission-bypass": ["error", { allowRawClientAccess: false }] },
343 },
344 {
345 files: [
346 "packages/client-runtime/src/state/runtime.ts",
347 "packages/client-runtime/src/state/vcsAction.ts",
348 ],
349 rules: {
350 "t3code/no-rpc-permission-bypass": [
351 "error",
352 { allowGuardInstallation: true, allowRawClientAccess: false },
353 ],
354 },
355 },
356 {
357 files: [
358 "apps/web/src/components/settings/AuthorizedClientsSettings.tsx",
359 "apps/web/src/components/settings/ConnectionsSettings.tsx",
360 "apps/mobile/src/features/updates/app-updates.ts",
361 "apps/web/src/components/device/DevicePhoneViewport.tsx",
362 "apps/web/src/components/device/DeviceDuoViewport.tsx",
363 ],
364 rules: { "t3code/no-rpc-permission-bypass": ["error", { allowRawClientAccess: true }] },
365 },
366 {
367 files: ["packages/client-runtime/src/connection/outdatedHostUpdate.ts"],
368 rules: { "t3code/no-rpc-permission-bypass": "off" },
369 },
370 {
371 files: [
372 "packages/client-runtime/src/rpc/**",
373 "**/*.{test,spec}.{ts,tsx,js,jsx,mts,cts,mjs,cjs}",
374 ],
375 rules: { "t3code/no-rpc-permission-bypass": "off" },
376 },
377 {
378 files: ["packages/shared/src/HostProcess.ts"],
379 rules: { "t3code/no-global-process-runtime": "off" },
380 },
381 {
382 // The `t3` npm launcher is published as plain, dependency-free Node.
383 files: ["scripts/npm-launcher/**"],
384 rules: {
385 "t3code/no-global-process-runtime": "off",
386 "t3code/namespace-node-imports": "off",
387 },
388 },
389 {
390 files: ["apps/server/src/mcp/McpHttpServer.ts"],
391 rules: { "t3code/no-raw-mcp-registration": "off" },
392 },
393 {
394 files: ["apps/web/src/**"],
395 excludeFiles: ["apps/web/src/components/ui/**"],
396 rules: {
397 "eslint/no-restricted-imports": [
398 "error",
399 {
400 paths: [...RESTRICTED_IMPORT_PATHS, RESTRICTED_PULL_REQUEST_GLYPH_IMPORTS],
401 patterns: RESTRICTED_UI_VARIANT_PATTERNS,
402 },
403 ],
404 },
405 },
406 {
407 files: ["apps/web/src/components/pullRequest/pullRequestIcons.tsx"],
408 rules: { "eslint/no-restricted-imports": ["error", { paths: RESTRICTED_IMPORT_PATHS }] },
409 },
410 {
411 // The server and every client load a forge's shared definition, so a UI runtime
412 // imported there would break the server; client-only forge code goes in `src/client/`.
413 files: ["packages/source-control-*/src/shared/**"],
414 rules: {
415 "eslint/no-restricted-imports": [
416 "error",
417 {
418 paths: [...RESTRICTED_IMPORT_PATHS, RESTRICTED_PULL_REQUEST_GLYPH_IMPORTS],
419 patterns: [
420 {
421 group: [
422 "react",
423 "react/*",
424 "react-*",
425 "expo",
426 "expo-*",
427 "lucide-react",
428 "@t3tools/client-runtime",
429 "@t3tools/client-runtime/*",
430 "../client/*",
431 "../server/*",
432 "../../client/*",
433 "../../server/*",
434 "../../../client/*",
435 "../../../server/*",
436 "@t3tools/source-control-*/client/*",
437 "@t3tools/source-control-*/server/*",
438 ],
439 message:
440 "Shared forge definitions load on the server and every client; keep UI and server code out.",
441 },
442 ],
443 },
444 ],
445 },
446 },
447 {
448 files: ["apps/server/src/**", "packages/source-control-*/src/server/**"],
449 rules: {
450 "eslint/no-restricted-imports": [
451 "error",
452 {
453 paths: [...RESTRICTED_IMPORT_PATHS, RESTRICTED_PULL_REQUEST_GLYPH_IMPORTS],
454 patterns: [
455 {
456 group: [
457 "@t3tools/source-control-*/client/*",
458 "../client/*",
459 "../../client/*",
460 "../../../client/*",
461 ],
462 message:
463 "A forge's client entry is UI-only; the server reads its `shared/definition`.",
464 },
465 ],
466 },
467 ],
468 },
469 },
470 {
471 files: ["apps/mobile/src/**"],
472 rules: {
473 "t3code/no-mobile-uniwind-theme-escape-hatches": "error",
474 "t3code/require-registered-list-scroll": "error",
475 },
476 },
477 {
478 files: ["apps/mobile/src/**"],
479 excludeFiles: [
480 "apps/mobile/src/components/ui/AppSymbol.tsx",
481 "apps/mobile/src/components/ui/AppSymbol.ios.tsx",
482 "apps/mobile/src/features/pull-requests/pullRequestGlyphs.ts",
483 ],
484 rules: { "t3code/no-mobile-pull-request-glyph-literals": "error" },
485 },
486 {
487 files: ["apps/mobile/src/**"],
488 excludeFiles: ["**/*.test.{ts,tsx}"],
489 rules: { "t3code/no-ambiguous-detail-navigation": "error" },
490 },
491 {
492 // Raw ResizeObserver state commits miss the paint; observeResize flushes derived layout together.
493 files: ["apps/web/src/**"],
494 excludeFiles: [
495 "apps/web/src/lib/observeResize.ts",
496 "**/*.{test,spec}.{ts,tsx,js,jsx,mts,cts,mjs,cjs}",
497 ],
498 rules: { "t3code/no-raw-resize-observer": "error" },
499 },
500 {
501 files: ["apps/web/src/**"],
502 rules: { "shadcn/no-unknown-classes": "error" },
503 },
504 {
505 files: ["apps/web/src/**"],
506 rules: { "t3code/no-outset-state-indicators": "error" },
507 },
508 {
509 files: ["apps/*/src/**", "packages/*/src/**"],
510 excludeFiles: [
511 "**/*.{test,spec}.{ts,tsx,js,jsx,mts,cts,mjs,cjs}",
512 "**/testkit/**",
513 "**/_generated/**",
514 // Real user quotes stay verbatim.
515 "apps/marketing/src/lib/tweets.ts",
516 ],
517 rules: { "t3code/no-em-dash-copy": "error" },
518 },
519 {
520 files: ["apps/web/src/**"],
521 rules: { "shadcn/no-raw-colors": "error" },
522 },
523 {
524 // Third-party marks must retain their exact colors.
525 files: ["apps/web/src/components/Icons.tsx", "apps/web/src/components/JetBrainsIcons.tsx"],
526 rules: { "shadcn/no-raw-colors": "off" },
527 },
528 {
529 files: ["apps/web/src/**"],
530 excludeFiles: ["apps/web/src/components/ui/**"],
531 rules: {
532 "shadcn/require-static-classes": "error",
533 "shadcn/no-arbitrary-values": [
534 "error",
535 {
536 allow: [
537 "layout",
538 "transition",
539 "rounded-[inherit]",
540 "gap-[0.33em]",
541 "px-[0.5em]",
542 "rounded-[0.5em]",
543 "text-[0.86em]",
544 "rounded-[25%]",
545 "text-[length:80cqh]",
546 "bg-[Highlight]",
547 "fill-[#26251E]",
548 "fill-[#EDECEC]",
549 "fill-[#0F0F0F]",
550 "fill-[#F5F5F5]",
551 "fill-[#d97757]",
552 "text-[#d97757]",
553 ],
554 },
555 ],
556 "shadcn/no-restyle": [
557 "error",
558 {
559 allow: ["layout"],
560 contracts: [
561 {
562 // CollapsibleTrigger has no styled counterpart; other triggers use render={<Button …/>}.
563 pattern: "^CollapsibleTrigger$",
564 allow: ["layout", "color", "typography", "spacing", "shape", "effects", "motion"],
565 },
566 ],
567 },
568 ],
569 },
570 },
571 {
572 // React Compiler owns memoization; upstream rules do not ban redundant useMemo/useCallback.
573 files: ["apps/web/src/**/*.{ts,tsx}"],
574 rules: {
575 "react/exhaustive-effect-dependencies": "error",
576 "react/globals": "error",
577 "react/hooks": "error",
578 "react/immutability": "error",
579 // The compiler memoizes context values; this rule would ask for useMemo.
580 "react/jsx-no-constructed-context-values": "off",
581 "react/memo-dependencies": "error",
582 "react/preserve-manual-memoization": "error",
583 // oxlint 1.88 treats `new Date()` as impure (oxc#26894) and also flags it inside event
584 // handlers (oxc#27309). The compiler we ship (oxc-transform-react) still compiles
585 // those files, and reactCompilerCoverage.test.ts fails on real bailouts.
586 "react/purity": "warn",
587 "react/refs": "error",
588 "react/set-state-in-effect": "error",
589 "react/set-state-in-render": "error",
590 "react/static-components": "error",
591 "react/unsupported-syntax": "error",
592 "t3code/no-manual-memo": "error",
593 },
594 },
595 {
596 // The sign-in masthead is T3 brand artwork: fixed gradients, not theme surfaces.
597 files: ["apps/web/src/components/auth/AuthSurfaceShell.tsx"],
598 rules: { "shadcn/no-arbitrary-values": "off" },
599 },
600 {
601 // ESNext types allow APIs absent from Hermes; restrict shared client code, exempting Node tests.
602 files: [
603 "apps/mobile/src/**",
604 "packages/client-runtime/src/**",
605 "packages/contracts/src/**",
606 "packages/shared/src/**",
607 ],
608 excludeFiles: ["**/*.test.ts", "**/*.test.tsx"],
609 rules: { "t3code/no-hermes-unsupported-apis": "error" },
610 },
611 {
612 // Directives hide bailouts from mobile's compiler-coverage check; retain hooks until its allowlist is empty.
613 files: ["apps/mobile/src/**/*.{ts,tsx}"],
614 rules: { "t3code/no-manual-memo": ["error", { allowMemoHooks: true }] },
615 },
616 {
617 files: ["apps/web/src/**", "apps/mobile/src/**", "packages/*/src/**"],
618 rules: { "t3code/react-effect-budget": "error" },
619 },
620 {
621 // React Compiler caches use* functions only if they call a hook.
622 files: ["apps/web/src/**/*.{ts,tsx}", "apps/mobile/src/**/*.{ts,tsx}"],
623 excludeFiles: ["**/*.test.ts", "**/*.test.tsx"],
624 rules: { "t3code/no-hookless-use-function": "error" },
625 },
626 {
627 files: [
628 "apps/mobile/src/features/archive/ArchivedThreadsScreen.tsx",
629 "apps/mobile/src/features/connection/ConnectionsNewRouteScreen.tsx",
630 "apps/mobile/src/features/files/FileMarkdownPreview.tsx",
631 "apps/mobile/src/features/files/SourceFileSurface.tsx",
632 "apps/mobile/src/features/files/AttachmentFileScreen.tsx",
633 "apps/mobile/src/features/files/ThreadFilesRouteScreen.tsx",
634 "apps/mobile/src/features/files/thread-file-navigator-pane.tsx",
635 "apps/mobile/src/features/home/HomeHeader.tsx",
636 "apps/mobile/src/features/review/ReviewSheet.tsx",
637 "apps/mobile/src/features/review/useNativeReviewDiffBridge.ts",
638 "apps/mobile/src/features/settings/SettingsEnvironmentsRouteScreen.tsx",
639 "apps/mobile/src/features/threads/GitActionProgressOverlay.tsx",
640 "apps/mobile/src/features/threads/NewTaskDraftScreen.tsx",
641 "apps/mobile/src/features/threads/ThreadComposer.tsx",
642 "apps/mobile/src/features/threads/ThreadFeed.tsx",
643 "apps/mobile/src/features/settings/appearance/components/FontSizeSliderRow.tsx",
644 "apps/mobile/src/features/threads/NewTaskContextPickerScreens.tsx",
645 "apps/mobile/src/features/threads/ThreadQueueControl.tsx",
646 "apps/mobile/src/features/review/ReviewCommentCard.tsx",
647 "apps/mobile/src/features/threads/ThreadSettingsSheet.tsx",
648 "apps/mobile/src/features/threads/thread-list-items.tsx",
649 "apps/mobile/src/features/threads/thread-list-v2-items.tsx",
650 "apps/mobile/src/lib/useMobileNavigationTheme.ts",
651 "apps/mobile/src/native/T3ComposerEditor.ios.tsx",
652 "apps/mobile/src/native/T3ComposerEditor.native.tsx",
653 "apps/mobile/src/native/SelectableMarkdownText.tsx",
654 "apps/mobile/src/native/useEnrichedLinkVariants.ts",
655 ],
656 rules: {
657 "t3code/no-mobile-uniwind-theme-escape-hatches": ["error", { allowUniwindTheme: true }],
658 },
659 },
660 ],
661 options: {
662 reportUnusedDisableDirectives: "error",
663 typeAware: false,
664 typeCheck: false,
665 },
666 },
667});