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 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/src/**", "apps/mobile/src/**", "apps/desktop/src/**"],
324 // Users still pick their own project icon from the full Lucide set.
325 excludeFiles: ["apps/web/src/projectIconOptions.ts"],
326 rules: { "t3code/no-sparkles-icon": "error" },
327 },
328 {
329 files: ["apps/web/**/*.test.{ts,tsx}"],
330 rules: { "t3code/require-disposable-render": "error" },
331 },
332 {
333 files: ["apps/web/src/**/*.browser.test.{ts,tsx}"],
334 rules: { "t3code/no-frame-waits-in-browser-tests": "error" },
335 },
336 {
337 files: ["apps/**/src/**", "packages/**/src/**"],
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/mobile/src/features/updates/app-updates.ts",
360 "apps/web/src/components/device/DevicePhoneViewport.tsx",
361 "apps/web/src/components/device/DeviceDuoViewport.tsx",
362 ],
363 rules: { "t3code/no-rpc-permission-bypass": ["error", { allowRawClientAccess: true }] },
364 },
365 {
366 files: ["packages/client-runtime/src/connection/outdatedHostUpdate.ts"],
367 rules: { "t3code/no-rpc-permission-bypass": "off" },
368 },
369 {
370 files: [
371 "packages/client-runtime/src/rpc/**",
372 "**/*.{test,spec}.{ts,tsx,js,jsx,mts,cts,mjs,cjs}",
373 ],
374 rules: { "t3code/no-rpc-permission-bypass": "off" },
375 },
376 {
377 files: ["packages/shared/src/HostProcess.ts"],
378 rules: { "t3code/no-global-process-runtime": "off" },
379 },
380 {
381 // The `t3` npm launcher is published as plain, dependency-free Node.
382 files: ["scripts/npm-launcher/**"],
383 rules: {
384 "t3code/no-global-process-runtime": "off",
385 "t3code/namespace-node-imports": "off",
386 },
387 },
388 {
389 files: ["apps/server/src/mcp/McpHttpServer.ts"],
390 rules: { "t3code/no-raw-mcp-registration": "off" },
391 },
392 {
393 files: ["apps/web/src/**"],
394 excludeFiles: ["apps/web/src/components/ui/**"],
395 rules: {
396 "eslint/no-restricted-imports": [
397 "error",
398 {
399 paths: [...RESTRICTED_IMPORT_PATHS, RESTRICTED_PULL_REQUEST_GLYPH_IMPORTS],
400 patterns: RESTRICTED_UI_VARIANT_PATTERNS,
401 },
402 ],
403 },
404 },
405 {
406 files: ["apps/web/src/components/pullRequest/pullRequestIcons.tsx"],
407 rules: { "eslint/no-restricted-imports": ["error", { paths: RESTRICTED_IMPORT_PATHS }] },
408 },
409 {
410 // The server and every client load a forge's shared definition, so a UI runtime
411 // imported there would break the server; client-only forge code goes in `src/client/`.
412 files: ["packages/source-control-*/src/shared/**"],
413 rules: {
414 "eslint/no-restricted-imports": [
415 "error",
416 {
417 paths: [...RESTRICTED_IMPORT_PATHS, RESTRICTED_PULL_REQUEST_GLYPH_IMPORTS],
418 patterns: [
419 {
420 group: [
421 "react",
422 "react/*",
423 "react-*",
424 "expo",
425 "expo-*",
426 "lucide-react",
427 "@t3tools/client-runtime",
428 "@t3tools/client-runtime/*",
429 "../client/*",
430 "../server/*",
431 "../../client/*",
432 "../../server/*",
433 "../../../client/*",
434 "../../../server/*",
435 "@t3tools/source-control-*/client/*",
436 "@t3tools/source-control-*/server/*",
437 ],
438 message:
439 "Shared forge definitions load on the server and every client; keep UI and server code out.",
440 },
441 ],
442 },
443 ],
444 },
445 },
446 {
447 files: ["apps/server/src/**", "packages/source-control-*/src/server/**"],
448 rules: {
449 "eslint/no-restricted-imports": [
450 "error",
451 {
452 paths: [...RESTRICTED_IMPORT_PATHS, RESTRICTED_PULL_REQUEST_GLYPH_IMPORTS],
453 patterns: [
454 {
455 group: [
456 "@t3tools/source-control-*/client/*",
457 "../client/*",
458 "../../client/*",
459 "../../../client/*",
460 ],
461 message:
462 "A forge's client entry is UI-only; the server reads its `shared/definition`.",
463 },
464 ],
465 },
466 ],
467 },
468 },
469 {
470 files: ["apps/mobile/src/**"],
471 rules: {
472 "t3code/no-mobile-uniwind-theme-escape-hatches": "error",
473 "t3code/require-registered-list-scroll": "error",
474 },
475 },
476 {
477 files: ["apps/mobile/src/**"],
478 excludeFiles: [
479 "apps/mobile/src/components/ui/AppSymbol.tsx",
480 "apps/mobile/src/components/ui/AppSymbol.android.tsx",
481 "apps/mobile/src/features/pull-requests/pullRequestGlyphs.ts",
482 ],
483 rules: { "t3code/no-mobile-pull-request-glyph-literals": "error" },
484 },
485 {
486 files: ["apps/mobile/src/**"],
487 excludeFiles: ["**/*.test.{ts,tsx}"],
488 rules: { "t3code/no-ambiguous-detail-navigation": "error" },
489 },
490 {
491 // Raw ResizeObserver state commits miss the paint; observeResize flushes derived layout together.
492 files: ["apps/web/src/**"],
493 excludeFiles: [
494 "apps/web/src/lib/observeResize.ts",
495 "**/*.{test,spec}.{ts,tsx,js,jsx,mts,cts,mjs,cjs}",
496 ],
497 rules: { "t3code/no-raw-resize-observer": "error" },
498 },
499 {
500 files: ["apps/web/src/**"],
501 rules: { "shadcn/no-unknown-classes": "error" },
502 },
503 {
504 files: ["apps/web/src/**"],
505 rules: { "t3code/no-outset-state-indicators": "error" },
506 },
507 {
508 files: ["apps/web/src/**"],
509 rules: { "t3code/max-settings-description-length": "error" },
510 },
511 {
512 files: ["apps/*/src/**", "packages/*/src/**"],
513 excludeFiles: [
514 "**/*.{test,spec}.{ts,tsx,js,jsx,mts,cts,mjs,cjs}",
515 "**/testkit/**",
516 "**/_generated/**",
517 // Real user quotes stay verbatim.
518 "apps/marketing/src/lib/tweets.ts",
519 ],
520 rules: { "t3code/no-em-dash-copy": "error" },
521 },
522 {
523 files: ["apps/web/src/**"],
524 rules: { "shadcn/no-raw-colors": "error" },
525 },
526 {
527 // Third-party marks must retain their exact colors.
528 files: ["apps/web/src/components/Icons.tsx", "apps/web/src/components/JetBrainsIcons.tsx"],
529 rules: { "shadcn/no-raw-colors": "off" },
530 },
531 {
532 files: ["apps/web/src/**"],
533 excludeFiles: ["apps/web/src/components/ui/**"],
534 rules: {
535 "shadcn/require-static-classes": "error",
536 "shadcn/no-arbitrary-values": [
537 "error",
538 {
539 allow: [
540 "layout",
541 "transition",
542 "rounded-[inherit]",
543 "gap-[0.33em]",
544 "gap-[0.2em]",
545 "leading-[normal]",
546 "underline-offset-[0.2em]",
547 "rounded-[25%]",
548 "text-[length:80cqh]",
549 "bg-[Highlight]",
550 "fill-[#26251E]",
551 "fill-[#EDECEC]",
552 "fill-[#0F0F0F]",
553 "fill-[#F5F5F5]",
554 "fill-[#d97757]",
555 "text-[#d97757]",
556 ],
557 },
558 ],
559 "shadcn/no-restyle": [
560 "error",
561 {
562 allow: ["layout"],
563 contracts: [
564 {
565 // CollapsibleTrigger has no styled counterpart; other triggers use render={<Button …/>}.
566 pattern: "^CollapsibleTrigger$",
567 allow: ["layout", "color", "typography", "spacing", "shape", "effects", "motion"],
568 },
569 ],
570 },
571 ],
572 },
573 },
574 {
575 // React Compiler owns memoization; upstream rules do not ban redundant useMemo/useCallback.
576 files: ["apps/web/src/**/*.{ts,tsx}"],
577 rules: {
578 "react/exhaustive-effect-dependencies": "error",
579 "react/globals": "error",
580 "react/hooks": "error",
581 "react/immutability": "error",
582 // The compiler memoizes context values; this rule would ask for useMemo.
583 "react/jsx-no-constructed-context-values": "off",
584 "react/memo-dependencies": "error",
585 "react/preserve-manual-memoization": "error",
586 // Render-time clock reads use @t3tools/client-runtime/clock or state seeded with the
587 // time; any other read carries a suppression that says why. oxlint also flags time reads
588 // inside event handlers (oxc#27309); those suppressions cite it.
589 "react/purity": "error",
590 "react/refs": "error",
591 "react/set-state-in-effect": "error",
592 "react/set-state-in-render": "error",
593 "react/static-components": "error",
594 "react/unsupported-syntax": "error",
595 "t3code/no-manual-memo": "error",
596 },
597 },
598 {
599 // ESNext types allow APIs absent from Hermes; restrict shared client code, exempting Node tests.
600 files: [
601 "apps/mobile/src/**",
602 "packages/client-runtime/src/**",
603 "packages/contracts/src/**",
604 "packages/shared/src/**",
605 ],
606 excludeFiles: ["**/*.test.ts", "**/*.test.tsx"],
607 rules: { "t3code/no-hermes-unsupported-apis": "error" },
608 },
609 {
610 // Directives hide bailouts from mobile's compiler-coverage check; retain hooks until its allowlist is empty.
611 files: ["apps/mobile/src/**/*.{ts,tsx}"],
612 rules: { "t3code/no-manual-memo": ["error", { allowMemoHooks: true }] },
613 },
614 {
615 files: ["apps/web/src/**", "apps/mobile/src/**", "packages/*/src/**"],
616 rules: { "t3code/no-unreasoned-state-sync": "error" },
617 },
618 {
619 // React Compiler caches use* functions only if they call a hook.
620 files: ["apps/web/src/**/*.{ts,tsx}", "apps/mobile/src/**/*.{ts,tsx}"],
621 excludeFiles: ["**/*.test.ts", "**/*.test.tsx"],
622 rules: { "t3code/no-hookless-use-function": "error" },
623 },
624 {
625 files: [
626 "apps/mobile/src/features/archive/ArchivedThreadsScreen.tsx",
627 "apps/mobile/src/features/connection/ConnectionsNewRouteScreen.tsx",
628 "apps/mobile/src/features/files/FileMarkdownPreview.tsx",
629 "apps/mobile/src/features/files/SourceFileSurface.tsx",
630 "apps/mobile/src/features/files/AttachmentFileScreen.tsx",
631 "apps/mobile/src/features/files/ThreadFilesRouteScreen.tsx",
632 "apps/mobile/src/features/files/thread-file-navigator-pane.tsx",
633 "apps/mobile/src/features/layout/nested-stacks.tsx",
634 "apps/mobile/src/features/review/ReviewSheet.tsx",
635 "apps/mobile/src/features/review/useNativeReviewDiffBridge.ts",
636 "apps/mobile/src/features/settings/SettingsEnvironmentsRouteScreen.tsx",
637 "apps/mobile/src/features/threads/ThreadComposer.tsx",
638 "apps/mobile/src/features/threads/ThreadFeed.tsx",
639 "apps/mobile/src/features/threads/ThreadQueueControl.tsx",
640 "apps/mobile/src/features/review/ReviewCommentCard.tsx",
641 "apps/mobile/src/features/threads/thread-list-v2-items.tsx",
642 "apps/mobile/src/components/ui/SecretTextInput.android.tsx",
643 "apps/mobile/src/lib/useMobileNavigationTheme.ts",
644 "apps/mobile/src/native/T3ComposerEditor.ios.tsx",
645 "apps/mobile/src/native/T3ComposerEditor.native.tsx",
646 "apps/mobile/src/native/SelectableMarkdownText.tsx",
647 "apps/mobile/src/native/useEnrichedLinkVariants.ts",
648 ],
649 rules: {
650 "t3code/no-mobile-uniwind-theme-escape-hatches": ["error", { allowUniwindTheme: true }],
651 },
652 },
653 ],
654 options: {
655 reportUnusedDisableDirectives: "error",
656 typeAware: false,
657 typeCheck: false,
658 },
659 },
660});