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

vite.config.ts

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