Skip to content

Shadow: Fix TanStack Router lint resolution in test app (v1)#100

Open
allspain wants to merge 1 commit into
shadow/4513/v1-basefrom
shadow/4513/v1
Open

Shadow: Fix TanStack Router lint resolution in test app (v1)#100
allspain wants to merge 1 commit into
shadow/4513/v1-basefrom
shadow/4513/v1

Conversation

@allspain
Copy link
Copy Markdown
Owner

Shadow Review — PR #4513 v1

Source: DataDog/browser-sdk#4513
Commit: c75e8ec0da1f0ea33fb67c23327abfb868c87f0c
Timestamp: 2026-04-21T08:13:46Z


Original PR Description

Motivation

The TanStack Router test app was already importing @datadog/browser-rum-react/tanstack-router, but our TypeScript config did not include a matching path alias for that subpath. As a result, type-aware ESLint could not resolve the import and yarn lint failed.

Changes

  • add the missing @datadog/browser-rum-react/tanstack-router path alias to the repo-level tsconfig.base.json
  • add the same path mapping to test/apps/tanstack-router-app/tsconfig.json so the test app's local type-aware linting also resolves the package correctly

This is a config-only fix. It does not change runtime behavior.

Test instructions

  1. Check out this branch.
  2. Run yarn lint from the repository root.
  3. Confirm the previous lint error in test/apps/tanstack-router-app/app.tsx no longer appears.

Checklist

  • Tested locally
  • Tested on staging
  • Added unit tests for this change.
  • Added e2e/integration tests for this change.
  • Updated documentation and/or relevant AGENTS.md file

Add the missing TypeScript path mapping for
`@datadog/browser-rum-react/tanstack-router` in the repo and test app
configs so type-aware ESLint can resolve the subpath package.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants