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

vite.config.ts

639 lines22.6 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: cachedTestTasks(process.env.T3_CACHED_TESTS),
92 },
93 resolve: {
94 alias: {
95 "~": NodeURL.fileURLToPath(new URL("./apps/web/src", import.meta.url)),
96 },
97 },
98 test: {
99 environment: "node",
100 // Fixture subprocesses must not inherit the outer task runner’s cache policy.
101 env: { VP_REMOTE_CACHE: "off", VP_REMOTE_CACHE_URL: "" },
102 exclude: TEST_EXCLUDE,
103 hookTimeout: 60_000,
104 testTimeout: 60_000,
105 allowOnly: !process.env.CI,
106 // Flaky tests are fixed, not retried.
107 retry: 0,
108 fakeTimers: {
109 toFake: [
110 "setTimeout",
111 "clearTimeout",
112 "setInterval",
113 "clearInterval",
114 "setImmediate",
115 "clearImmediate",
116 "Date",
117 "performance",
118 "requestAnimationFrame",
119 "cancelAnimationFrame",
120 "requestIdleCallback",
121 "cancelIdleCallback",
122 ],
123 },
124 setupFiles: [
125 NodeURL.fileURLToPath(
126 new URL("./packages/shared/src/testing/longTempDir.ts", import.meta.url),
127 ),
128 NodeURL.fileURLToPath(
129 new URL("./packages/shared/src/testing/providerEnv.ts", import.meta.url),
130 ),
131 ],
132 ...(isRepoRootTestRun
133 ? {
134 projects: [
135 ...TEST_CONFIG_PACKAGES,
136 {
137 extends: true,
138 test: {
139 name: "root",
140 exclude: [
141 ...TEST_EXCLUDE,
142 ...TEST_CONFIG_PACKAGES.map((dir) => `${dir}/**`),
143 "native/kde-snap-shot/**",
144 ],
145 },
146 },
147 ],
148 }
149 : {}),
150 },
151 staged: {
152 // In order, so lint reads the formatted file. CI lint failures cost a full round trip.
153 "*": ["vp fmt --no-error-on-unmatched-pattern", "vp lint --no-error-on-unmatched-pattern"],
154 // knip checks the whole repo, so it takes no file list. Any code or manifest change can leave
155 // a file, export, or dependency unused.
156 "{*.{js,jsx,ts,tsx,mjs,cjs,mts,cts},package.json,knip.jsonc}": () => "vp run knip:check",
157 },
158 fmt: {
159 ignorePatterns: [
160 ".repos/**",
161 "infra/task-cache/vendor/**",
162 // Macroscope requires one glob per line; Markdown formatting corrupts it.
163 ".macroscope/ignore.md",
164 ".alchemy",
165 "dist",
166 "dist-electron",
167 "node_modules",
168 "pnpm-lock.yaml",
169 "*.tsbuildinfo",
170 "**/routeTree.gen.ts",
171 "**/*.graphql.ts",
172 "packages/source-control-github/schema/**",
173 "apps/server/schema/**",
174 "apps/mobile/android/**",
175 "apps/mobile/ios/**",
176 "apps/mobile/uniwind-types.d.ts",
177 // Vendored and generated C.
178 "apps/mobile/modules/t3-highlights/Vendor/**",
179 "apps/mobile/modules/t3-highlights/cpp/generated/**",
180 "*.icon/**",
181 ],
182 sortPackageJson: {},
183 overrides: [
184 {
185 files: [".devcontainer/devcontainer.json"],
186 options: {
187 trailingComma: "none",
188 },
189 },
190 ],
191 },
192 lint: {
193 ignorePatterns: [
194 ".repos",
195 ".repos/**",
196 "infra/task-cache/vendor/**",
197 "dist",
198 "dist-electron",
199 "node_modules",
200 "pnpm-lock.yaml",
201 "*.tsbuildinfo",
202 "**/routeTree.gen.ts",
203 "**/*.graphql.ts",
204 "packages/source-control-github/schema/**",
205 "apps/server/schema/**",
206 "apps/mobile/android/**",
207 "apps/mobile/ios/**",
208 "apps/mobile/uniwind-types.d.ts",
209 ],
210 plugins: ["eslint", "oxc", "react", "unicorn", "typescript"],
211 jsPlugins: ["./oxlint-plugin-t3code/index.ts", "@shadcn/lint"],
212 settings: {
213 shadcn: { ui: "~/components/ui" },
214 },
215 categories: {
216 correctness: "warn",
217 suspicious: "warn",
218 perf: "warn",
219 },
220 rules: {
221 "oxc/no-accumulating-spread": "error",
222 "eslint/no-control-regex": "off",
223 "typescript/no-this-alias": "off",
224 "unicorn/prefer-add-event-listener": "off",
225 "unicorn/prefer-string-starts-ends-with": "off",
226 "unicorn/prefer-set-has": "off",
227 "unicorn/prefer-array-find": "off",
228 "unicorn/no-new-array": "off",
229 "unicorn/no-array-reverse": "off",
230 "react/no-object-type-as-default-prop": "off",
231 "react/jsx-no-constructed-context-values": "off",
232 "react/memo-dependencies": "error",
233 "react/purity": "error",
234 "react/refs": "error",
235 "react/exhaustive-effect-dependencies": "error",
236 "react/set-state-in-effect": "error",
237 "react/immutability": "error",
238 "react/no-array-index-key": "error",
239 "react/no-unstable-nested-components": "error",
240 "react/static-components": "error",
241 "react/capitalized-calls": "error",
242 "typescript/no-extraneous-class": "error",
243 "eslint/no-empty-pattern": "error",
244 "eslint/no-new": "error",
245 "unicorn/no-useless-spread": "error",
246 "eslint/no-unused-vars": [
247 "error",
248 { argsIgnorePattern: "^_", varsIgnorePattern: "^_", caughtErrorsIgnorePattern: "^_" },
249 ],
250 "eslint/no-unsafe-optional-chaining": "error",
251 "eslint/no-unneeded-ternary": "error",
252 "unicorn/no-useless-fallback-in-spread": "error",
253 "unicorn/require-module-specifiers": "error",
254 "unicorn/no-array-sort": "off",
255 "unicorn/consistent-function-scoping": "off",
256 "oxc/no-map-spread": "off",
257 "react-in-jsx-scope": "off",
258 "react-hooks/exhaustive-deps": "off",
259 "eslint/no-shadow": "off",
260 "eslint/no-await-in-loop": "off",
261 "eslint/no-underscore-dangle": "off",
262 "typescript/consistent-return": "off",
263 "typescript/no-base-to-string": "off",
264 "typescript/no-duplicate-type-constituents": "off",
265 "typescript/no-floating-promises": "off",
266 "typescript/no-implied-eval": "off",
267 "typescript/no-meaningless-void-operator": "off",
268 "typescript/no-redundant-type-constituents": "off",
269 "typescript/no-unnecessary-boolean-literal-compare": "off",
270 "typescript/no-unnecessary-type-conversion": "off",
271 "typescript/no-unnecessary-type-arguments": "off",
272 "typescript/no-unnecessary-type-assertion": "off",
273 "typescript/no-unnecessary-type-parameters": "off",
274 "typescript/no-unsafe-type-assertion": "off",
275 "typescript/await-thenable": "off",
276 "typescript/require-array-sort-compare": "off",
277 "typescript/restrict-template-expressions": "off",
278 "typescript/unbound-method": "off",
279 "eslint/no-restricted-imports": [
280 "error",
281 { paths: [...RESTRICTED_IMPORT_PATHS, RESTRICTED_PULL_REQUEST_GLYPH_IMPORTS] },
282 ],
283 "t3code/no-global-process-runtime": "error",
284 "t3code/no-inline-schema-compile": "error",
285 "t3code/no-low-value-comments": "error",
286 "t3code/no-manual-effect-runtime-in-tests": "error",
287 "t3code/no-native-title-tooltip": "error",
288 // Test files only (the rule checks the filename).
289 "t3code/no-polling-loop-in-tests": "error",
290 "t3code/no-raw-mcp-registration": "error",
291 "t3code/no-real-time-wait-in-tests": "error",
292 "t3code/no-test-in-loop": "error",
293 "t3code/no-test-timeout-or-unreasoned-skip": "error",
294 "t3code/no-rpc-permission-bypass": ["error", { allowRawClientAccess: true }],
295 "t3code/no-unscoped-has": "error",
296 "t3code/no-wall-clock-in-tests": "error",
297 "t3code/namespace-node-imports": "error",
298 "t3code/prefer-catch-tags": "error",
299 "t3code/prefer-effect-fn": "error",
300 "t3code/require-centered-scroll-gutter": "error",
301 "t3code/require-suppression-reason": "error",
302 },
303 overrides: [
304 {
305 files: [
306 "**/*.{test,spec,testkit}.{ts,tsx}",
307 "**/{test,tests,testkit,testing,fixtures,integration}/**",
308 "packages/provider-testing/**",
309 ],
310 rules: { "t3code/prefer-effect-fn": "off" },
311 },
312 {
313 files: ["apps/web/**/*.test.{ts,tsx}"],
314 rules: { "t3code/require-disposable-render": "error" },
315 },
316 {
317 files: ["apps/web/src/**/*.browser.test.{ts,tsx}"],
318 rules: { "t3code/no-frame-waits-in-browser-tests": "error" },
319 },
320 {
321 files: ["apps/**/src/**", "packages/**/src/**"],
322 rules: { "t3code/no-dom-test-environment": "error" },
323 },
324 {
325 files: ["packages/client-runtime/src/state/**", "apps/{web,mobile,desktop}/src/**"],
326 rules: { "t3code/no-rpc-permission-bypass": ["error", { allowRawClientAccess: false }] },
327 },
328 {
329 files: [
330 "packages/client-runtime/src/state/runtime.ts",
331 "packages/client-runtime/src/state/vcsAction.ts",
332 ],
333 rules: {
334 "t3code/no-rpc-permission-bypass": [
335 "error",
336 { allowGuardInstallation: true, allowRawClientAccess: false },
337 ],
338 },
339 },
340 {
341 files: [
342 "apps/web/src/components/settings/AuthorizedClientsSettings.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 "gap-[0.2em]",
525 "leading-[normal]",
526 "underline-offset-[0.2em]",
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 // ESNext types allow APIs absent from Hermes; restrict shared client code, exempting Node tests.
580 files: [
581 "apps/mobile/src/**",
582 "packages/client-runtime/src/**",
583 "packages/contracts/src/**",
584 "packages/shared/src/**",
585 ],
586 excludeFiles: ["**/*.test.ts", "**/*.test.tsx"],
587 rules: { "t3code/no-hermes-unsupported-apis": "error" },
588 },
589 {
590 // Directives hide bailouts from mobile's compiler-coverage check; retain hooks until its allowlist is empty.
591 files: ["apps/mobile/src/**/*.{ts,tsx}"],
592 rules: { "t3code/no-manual-memo": ["error", { allowMemoHooks: true }] },
593 },
594 {
595 files: ["apps/web/src/**", "apps/mobile/src/**", "packages/*/src/**"],
596 rules: { "t3code/no-unreasoned-state-sync": "error" },
597 },
598 {
599 // React Compiler caches use* functions only if they call a hook.
600 files: ["apps/web/src/**/*.{ts,tsx}", "apps/mobile/src/**/*.{ts,tsx}"],
601 excludeFiles: ["**/*.test.ts", "**/*.test.tsx"],
602 rules: { "t3code/no-hookless-use-function": "error" },
603 },
604 {
605 files: [
606 "apps/mobile/src/features/archive/ArchivedThreadsScreen.tsx",
607 "apps/mobile/src/features/connection/ConnectionsNewRouteScreen.tsx",
608 "apps/mobile/src/features/files/FileMarkdownPreview.tsx",
609 "apps/mobile/src/features/files/SourceFileSurface.tsx",
610 "apps/mobile/src/features/files/AttachmentFileScreen.tsx",
611 "apps/mobile/src/features/files/ThreadFilesRouteScreen.tsx",
612 "apps/mobile/src/features/files/thread-file-navigator-pane.tsx",
613 "apps/mobile/src/features/review/ReviewSheet.tsx",
614 "apps/mobile/src/features/review/useNativeReviewDiffBridge.ts",
615 "apps/mobile/src/features/settings/SettingsEnvironmentsRouteScreen.tsx",
616 "apps/mobile/src/features/threads/ThreadComposer.tsx",
617 "apps/mobile/src/features/threads/ThreadFeed.tsx",
618 "apps/mobile/src/features/threads/ThreadQueueControl.tsx",
619 "apps/mobile/src/features/review/ReviewCommentCard.tsx",
620 "apps/mobile/src/features/threads/ThreadSettingsSheet.tsx",
621 "apps/mobile/src/features/threads/thread-list-v2-items.tsx",
622 "apps/mobile/src/lib/useMobileNavigationTheme.ts",
623 "apps/mobile/src/native/T3ComposerEditor.ios.tsx",
624 "apps/mobile/src/native/T3ComposerEditor.native.tsx",
625 "apps/mobile/src/native/SelectableMarkdownText.tsx",
626 "apps/mobile/src/native/useEnrichedLinkVariants.ts",
627 ],
628 rules: {
629 "t3code/no-mobile-uniwind-theme-escape-hatches": ["error", { allowUniwindTheme: true }],
630 },
631 },
632 ],
633 options: {
634 reportUnusedDisableDirectives: "error",
635 typeAware: false,
636 typeCheck: false,
637 },
638 },
639});