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