Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

spence-s
Copy link
Contributor

@spence-s spence-s commented Jun 6, 2025

Noticed that our logic was having some issues with nested tsconfigs

So this PR:

uses getTsconfig for every file, due to lots of internal caching this appears to be very fast still and behaves much more like ts lang server does by finding the nearest tsconfig.json rather than just looking in the root.

uses get-tsconfigs file matcher which is much more accurate than our custom logic based on micromatch.

We no longer attempt to re-use any of the users tsconfigs if they are matched, we only write our own default tsconfig for unmatched files. This should provide a more consistent xo experience.

Added a few tests for nested configs and edge cases.

@sindresorhus sindresorhus merged commit e280d32 into xojs:main Jun 7, 2025
3 checks passed
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