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 "oxc/no-accumulating-spread": "error",
220 "eslint/no-control-regex": "off",
221 "typescript/no-this-alias": "off",
222 "unicorn/prefer-add-event-listener": "off",
223 "unicorn/prefer-string-starts-ends-with": "off",
224 "unicorn/prefer-set-has": "off",
225 "unicorn/prefer-array-find": "off",
226 "unicorn/no-new-array": "off",
227 "unicorn/no-array-reverse": "off",
228 "react/no-object-type-as-default-prop": "off",
229 "react/jsx-no-constructed-context-values": "off",
230 "react/memo-dependencies": "error",
231 "react/purity": "error",
232 "react/refs": "error",
233 "react/exhaustive-effect-dependencies": "error",
234 "react/set-state-in-effect": "error",
235 "react/immutability": "error",
236 "react/no-array-index-key": "error",
237 "react/no-unstable-nested-components": "error",
238 "react/static-components": "error",
239 "react/capitalized-calls": "error",
240 "typescript/no-extraneous-class": "error",
241 "eslint/no-empty-pattern": "error",
242 "eslint/no-new": "error",
243 "unicorn/no-useless-spread": "error",
244 "eslint/no-unused-vars": [
245 "error",
246 { argsIgnorePattern: "^_", varsIgnorePattern: "^_", caughtErrorsIgnorePattern: "^_" },
247 ],
248 "eslint/no-unsafe-optional-chaining": "error",
249 "eslint/no-unneeded-ternary": "error",
250 "unicorn/no-useless-fallback-in-spread": "error",
251 "unicorn/require-module-specifiers": "error",
252 "unicorn/no-array-sort": "off",
253 "unicorn/consistent-function-scoping": "off",
254 "oxc/no-map-spread": "off",
255 "react-in-jsx-scope": "off",
256 "react-hooks/exhaustive-deps": "off",
257 "eslint/no-shadow": "off",
258 "eslint/no-await-in-loop": "off",
259 "eslint/no-underscore-dangle": "off",
260 "typescript/consistent-return": "off",
261 "typescript/no-base-to-string": "off",
262 "typescript/no-duplicate-type-constituents": "off",
263 "typescript/no-floating-promises": "off",
264 "typescript/no-implied-eval": "off",
265 "typescript/no-meaningless-void-operator": "off",
266 "typescript/no-redundant-type-constituents": "off",
267 "typescript/no-unnecessary-boolean-literal-compare": "off",
268 "typescript/no-unnecessary-type-conversion": "off",
269 "typescript/no-unnecessary-type-arguments": "off",
270 "typescript/no-unnecessary-type-assertion": "off",
271 "typescript/no-unnecessary-type-parameters": "off",
272 "typescript/no-unsafe-type-assertion": "off",
273 "typescript/await-thenable": "off",
274 "typescript/require-array-sort-compare": "off",
275 "typescript/restrict-template-expressions": "off",
276 "typescript/unbound-method": "off",
277 "eslint/no-restricted-imports": [
278 "error",
279 { paths: [...RESTRICTED_IMPORT_PATHS, RESTRICTED_PULL_REQUEST_GLYPH_IMPORTS] },
280 ],
281 "t3code/no-global-process-runtime": "error",
282 "t3code/no-inline-schema-compile": "error",
283 "t3code/no-low-value-comments": "error",
284 "t3code/no-manual-effect-runtime-in-tests": "error",
285 "t3code/no-native-title-tooltip": "error",
286 // Test files only (the rule checks the filename).
287 "t3code/no-polling-loop-in-tests": "error",
288 "t3code/no-raw-mcp-registration": "error",
289 "t3code/no-real-time-wait-in-tests": "error",
290 "t3code/no-test-in-loop": "error",
291 "t3code/no-test-timeout-or-unreasoned-skip": "error",
292 "t3code/no-rpc-permission-bypass": ["error", { allowRawClientAccess: true }],
293 "t3code/no-unscoped-has": "error",
294 "t3code/no-wall-clock-in-tests": "error",
295 "t3code/namespace-node-imports": "error",
296 "t3code/prefer-catch-tags": "error",
297 "t3code/prefer-effect-fn": "error",
298 "t3code/require-centered-scroll-gutter": "error",
299 "t3code/require-suppression-reason": "error",
300 },
301 overrides: [
302 {
303 files: [
304 "**/*.{test,spec,testkit}.{ts,tsx}",
305 "**/{test,tests,testkit,testing,fixtures,integration}/**",
306 "packages/provider-testing/**",
307 ],
308 rules: { "t3code/prefer-effect-fn": "off" },
309 },
310 {
311 files: ["apps/web/**/*.test.{ts,tsx}"],
312 rules: { "t3code/require-disposable-render": "error" },
313 },
314 {
315 files: ["apps/web/src/**/*.browser.test.{ts,tsx}"],
316 rules: { "t3code/no-frame-waits-in-browser-tests": "error" },
317 },
318 {
319 files: ["apps/**/src/**", "packages/**/src/**"],
320 excludeFiles: DOM_TEST_ENVIRONMENT_ALLOWLIST,
321 rules: { "t3code/no-dom-test-environment": "error" },
322 },
323 {
324 files: ["packages/client-runtime/src/state/**", "apps/{web,mobile,desktop}/src/**"],
325 rules: { "t3code/no-rpc-permission-bypass": ["error", { allowRawClientAccess: false }] },
326 },
327 {
328 files: [
329 "packages/client-runtime/src/state/runtime.ts",
330 "packages/client-runtime/src/state/vcsAction.ts",
331 ],
332 rules: {
333 "t3code/no-rpc-permission-bypass": [
334 "error",
335 { allowGuardInstallation: true, allowRawClientAccess: false },
336 ],
337 },
338 },
339 {
340 files: [
341 "apps/web/src/components/settings/AuthorizedClientsSettings.tsx",
342 "apps/web/src/components/settings/ConnectionsSettings.tsx",
343 "apps/mobile/src/features/updates/app-updates.ts",
344 "apps/web/src/components/device/DevicePhoneViewport.tsx",
345 "apps/web/src/components/device/DeviceDuoViewport.tsx",
346 ],
347 rules: { "t3code/no-rpc-permission-bypass": ["error", { allowRawClientAccess: true }] },
348 },
349 {
350 files: ["packages/client-runtime/src/connection/outdatedHostUpdate.ts"],
351 rules: { "t3code/no-rpc-permission-bypass": "off" },
352 },
353 {
354 files: [
355 "packages/client-runtime/src/rpc/**",
356 "**/*.{test,spec}.{ts,tsx,js,jsx,mts,cts,mjs,cjs}",
357 ],
358 rules: { "t3code/no-rpc-permission-bypass": "off" },
359 },
360 {
361 files: ["packages/shared/src/HostProcess.ts"],
362 rules: { "t3code/no-global-process-runtime": "off" },
363 },
364 {
365 // The `t3` npm launcher is published as plain, dependency-free Node.
366 files: ["scripts/npm-launcher/**"],
367 rules: {
368 "t3code/no-global-process-runtime": "off",
369 "t3code/namespace-node-imports": "off",
370 },
371 },
372 {
373 files: ["apps/server/src/mcp/McpHttpServer.ts"],
374 rules: { "t3code/no-raw-mcp-registration": "off" },
375 },
376 {
377 files: ["apps/web/src/**"],
378 excludeFiles: ["apps/web/src/components/ui/**"],
379 rules: {
380 "eslint/no-restricted-imports": [
381 "error",
382 {
383 paths: [...RESTRICTED_IMPORT_PATHS, RESTRICTED_PULL_REQUEST_GLYPH_IMPORTS],
384 patterns: RESTRICTED_UI_VARIANT_PATTERNS,
385 },
386 ],
387 },
388 },
389 {
390 files: ["apps/web/src/components/pullRequest/pullRequestIcons.tsx"],
391 rules: { "eslint/no-restricted-imports": ["error", { paths: RESTRICTED_IMPORT_PATHS }] },
392 },
393 {
394 // The server and every client load a forge's shared definition, so a UI runtime
395 // imported there would break the server; client-only forge code goes in `src/client/`.
396 files: ["packages/source-control-*/src/shared/**"],
397 rules: {
398 "eslint/no-restricted-imports": [
399 "error",
400 {
401 paths: [...RESTRICTED_IMPORT_PATHS, RESTRICTED_PULL_REQUEST_GLYPH_IMPORTS],
402 patterns: [
403 {
404 group: [
405 "react",
406 "react/*",
407 "react-*",
408 "expo",
409 "expo-*",
410 "lucide-react",
411 "@t3tools/client-runtime",
412 "@t3tools/client-runtime/*",
413 "../client/*",
414 "../server/*",
415 "../../client/*",
416 "../../server/*",
417 "../../../client/*",
418 "../../../server/*",
419 "@t3tools/source-control-*/client/*",
420 "@t3tools/source-control-*/server/*",
421 ],
422 message:
423 "Shared forge definitions load on the server and every client; keep UI and server code out.",
424 },
425 ],
426 },
427 ],
428 },
429 },
430 {
431 files: ["apps/server/src/**", "packages/source-control-*/src/server/**"],
432 rules: {
433 "eslint/no-restricted-imports": [
434 "error",
435 {
436 paths: [...RESTRICTED_IMPORT_PATHS, RESTRICTED_PULL_REQUEST_GLYPH_IMPORTS],
437 patterns: [
438 {
439 group: [
440 "@t3tools/source-control-*/client/*",
441 "../client/*",
442 "../../client/*",
443 "../../../client/*",
444 ],
445 message:
446 "A forge's client entry is UI-only; the server reads its `shared/definition`.",
447 },
448 ],
449 },
450 ],
451 },
452 },
453 {
454 files: ["apps/mobile/src/**"],
455 rules: {
456 "t3code/no-mobile-uniwind-theme-escape-hatches": "error",
457 "t3code/require-registered-list-scroll": "error",
458 },
459 },
460 {
461 files: ["apps/mobile/src/**"],
462 excludeFiles: [
463 "apps/mobile/src/components/ui/AppSymbol.tsx",
464 "apps/mobile/src/components/ui/AppSymbol.ios.tsx",
465 "apps/mobile/src/features/pull-requests/pullRequestGlyphs.ts",
466 ],
467 rules: { "t3code/no-mobile-pull-request-glyph-literals": "error" },
468 },
469 {
470 files: ["apps/mobile/src/**"],
471 excludeFiles: ["**/*.test.{ts,tsx}"],
472 rules: { "t3code/no-ambiguous-detail-navigation": "error" },
473 },
474 {
475 // Raw ResizeObserver state commits miss the paint; observeResize flushes derived layout together.
476 files: ["apps/web/src/**"],
477 excludeFiles: [
478 "apps/web/src/lib/observeResize.ts",
479 "**/*.{test,spec}.{ts,tsx,js,jsx,mts,cts,mjs,cjs}",
480 ],
481 rules: { "t3code/no-raw-resize-observer": "error" },
482 },
483 {
484 files: ["apps/web/src/**"],
485 rules: { "shadcn/no-unknown-classes": "error" },
486 },
487 {
488 files: ["apps/web/src/**"],
489 rules: { "t3code/no-outset-state-indicators": "error" },
490 },
491 {
492 files: ["apps/*/src/**", "packages/*/src/**"],
493 excludeFiles: [
494 "**/*.{test,spec}.{ts,tsx,js,jsx,mts,cts,mjs,cjs}",
495 "**/testkit/**",
496 "**/_generated/**",
497 // Real user quotes stay verbatim.
498 "apps/marketing/src/lib/tweets.ts",
499 ],
500 rules: { "t3code/no-em-dash-copy": "error" },
501 },
502 {
503 files: ["apps/web/src/**"],
504 rules: { "shadcn/no-raw-colors": "error" },
505 },
506 {
507 // Third-party marks must retain their exact colors.
508 files: ["apps/web/src/components/Icons.tsx", "apps/web/src/components/JetBrainsIcons.tsx"],
509 rules: { "shadcn/no-raw-colors": "off" },
510 },
511 {
512 files: ["apps/web/src/**"],
513 excludeFiles: ["apps/web/src/components/ui/**"],
514 rules: {
515 "shadcn/require-static-classes": "error",
516 "shadcn/no-arbitrary-values": [
517 "error",
518 {
519 allow: [
520 "layout",
521 "transition",
522 "rounded-[inherit]",
523 "gap-[0.33em]",
524 "px-[0.5em]",
525 "rounded-[0.5em]",
526 "text-[0.86em]",
527 "rounded-[25%]",
528 "text-[length:80cqh]",
529 "bg-[Highlight]",
530 "fill-[#26251E]",
531 "fill-[#EDECEC]",
532 "fill-[#0F0F0F]",
533 "fill-[#F5F5F5]",
534 "fill-[#d97757]",
535 "text-[#d97757]",
536 ],
537 },
538 ],
539 "shadcn/no-restyle": [
540 "error",
541 {
542 allow: ["layout"],
543 contracts: [
544 {
545 // CollapsibleTrigger has no styled counterpart; other triggers use render={<Button …/>}.
546 pattern: "^CollapsibleTrigger$",
547 allow: ["layout", "color", "typography", "spacing", "shape", "effects", "motion"],
548 },
549 ],
550 },
551 ],
552 },
553 },
554 {
555 // React Compiler owns memoization; upstream rules do not ban redundant useMemo/useCallback.
556 files: ["apps/web/src/**/*.{ts,tsx}"],
557 rules: {
558 "react/exhaustive-effect-dependencies": "error",
559 "react/globals": "error",
560 "react/hooks": "error",
561 "react/immutability": "error",
562 // The compiler memoizes context values; this rule would ask for useMemo.
563 "react/jsx-no-constructed-context-values": "off",
564 "react/memo-dependencies": "error",
565 "react/preserve-manual-memoization": "error",
566 // Render-time clock reads use @t3tools/client-runtime/clock or state seeded with the
567 // time; any other read carries a suppression that says why. oxlint also flags time reads
568 // inside event handlers (oxc#27309); those suppressions cite it.
569 "react/purity": "error",
570 "react/refs": "error",
571 "react/set-state-in-effect": "error",
572 "react/set-state-in-render": "error",
573 "react/static-components": "error",
574 "react/unsupported-syntax": "error",
575 "t3code/no-manual-memo": "error",
576 },
577 },
578 {
579 // The sign-in masthead is T3 brand artwork: fixed gradients, not theme surfaces.
580 files: ["apps/web/src/components/auth/AuthSurfaceShell.tsx"],
581 rules: { "shadcn/no-arbitrary-values": "off" },
582 },
583 {
584 // ESNext types allow APIs absent from Hermes; restrict shared client code, exempting Node tests.
585 files: [
586 "apps/mobile/src/**",
587 "packages/client-runtime/src/**",
588 "packages/contracts/src/**",
589 "packages/shared/src/**",
590 ],
591 excludeFiles: ["**/*.test.ts", "**/*.test.tsx"],
592 rules: { "t3code/no-hermes-unsupported-apis": "error" },
593 },
594 {
595 // Directives hide bailouts from mobile's compiler-coverage check; retain hooks until its allowlist is empty.
596 files: ["apps/mobile/src/**/*.{ts,tsx}"],
597 rules: { "t3code/no-manual-memo": ["error", { allowMemoHooks: true }] },
598 },
599 {
600 files: ["apps/web/src/**", "apps/mobile/src/**", "packages/*/src/**"],
601 rules: { "t3code/react-effect-budget": "error" },
602 },
603 {
604 // React Compiler caches use* functions only if they call a hook.
605 files: ["apps/web/src/**/*.{ts,tsx}", "apps/mobile/src/**/*.{ts,tsx}"],
606 excludeFiles: ["**/*.test.ts", "**/*.test.tsx"],
607 rules: { "t3code/no-hookless-use-function": "error" },
608 },
609 {
610 files: [
611 "apps/mobile/src/features/archive/ArchivedThreadsScreen.tsx",
612 "apps/mobile/src/features/connection/ConnectionsNewRouteScreen.tsx",
613 "apps/mobile/src/features/files/FileMarkdownPreview.tsx",
614 "apps/mobile/src/features/files/SourceFileSurface.tsx",
615 "apps/mobile/src/features/files/AttachmentFileScreen.tsx",
616 "apps/mobile/src/features/files/ThreadFilesRouteScreen.tsx",
617 "apps/mobile/src/features/files/thread-file-navigator-pane.tsx",
618 "apps/mobile/src/features/home/HomeHeader.tsx",
619 "apps/mobile/src/features/review/ReviewSheet.tsx",
620 "apps/mobile/src/features/review/useNativeReviewDiffBridge.ts",
621 "apps/mobile/src/features/settings/SettingsEnvironmentsRouteScreen.tsx",
622 "apps/mobile/src/features/threads/GitActionProgressOverlay.tsx",
623 "apps/mobile/src/features/threads/NewTaskDraftScreen.tsx",
624 "apps/mobile/src/features/threads/ThreadComposer.tsx",
625 "apps/mobile/src/features/threads/ThreadFeed.tsx",
626 "apps/mobile/src/features/settings/appearance/components/FontSizeSliderRow.tsx",
627 "apps/mobile/src/features/threads/NewTaskContextPickerScreens.tsx",
628 "apps/mobile/src/features/threads/ThreadQueueControl.tsx",
629 "apps/mobile/src/features/review/ReviewCommentCard.tsx",
630 "apps/mobile/src/features/threads/ThreadSettingsSheet.tsx",
631 "apps/mobile/src/features/threads/thread-list-items.tsx",
632 "apps/mobile/src/features/threads/thread-list-v2-items.tsx",
633 "apps/mobile/src/lib/useMobileNavigationTheme.ts",
634 "apps/mobile/src/native/T3ComposerEditor.ios.tsx",
635 "apps/mobile/src/native/T3ComposerEditor.native.tsx",
636 "apps/mobile/src/native/SelectableMarkdownText.tsx",
637 "apps/mobile/src/native/useEnrichedLinkVariants.ts",
638 ],
639 rules: {
640 "t3code/no-mobile-uniwind-theme-escape-hatches": ["error", { allowUniwindTheme: true }],
641 },
642 },
643 ],
644 options: {
645 reportUnusedDisableDirectives: "error",
646 typeAware: false,
647 typeCheck: false,
648 },
649 },
650});