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

vite.config.ts

666 lines23.8 KB

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