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

vite.config.ts

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