-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
fix: tighten tsconfigRootDir
validation
#11463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
fix: tighten tsconfigRootDir
validation
#11463
Conversation
Thanks for the PR, @kirkwaiblinger! typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community. The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately. Thanks again! 🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/typescript-eslint. |
✅ Deploy Preview for typescript-eslint ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
View your CI Pipeline Execution ↗ for commit 7451eb5
☁️ Nx Cloud last updated this comment at |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #11463 +/- ##
=======================================
Coverage 90.87% 90.88%
=======================================
Files 505 505
Lines 51117 51142 +25
Branches 8415 8424 +9
=======================================
+ Hits 46455 46480 +25
Misses 4648 4648
Partials 14 14
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
d151ca5
to
c3b9f4e
Compare
tsconfigRootDir
bugstsconfigRootDir
validation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(process.platform === 'win32' && | ||
!/^[a-zA-Z]:/.test(userProvidedTsconfigRootDir)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is tested but it doesn't get picked up in the coverage report, due to only being tested on windows. Tried to use an istanbul ignore
comment, but vitest/esbuild/typescript has problems with coverage ignore comments due to comment stripping and I couldn't get it to work :(
PR Checklist
tsconfigRootDir
s in tests #11414project: true
doesn't permit trailing pathsep intsconfigRootDir
#11413tsconfigRootDir
is provided #11460Overview
This ensures that tsconfigRootDir must always be absolute if provided. Adds testing. Adjusts existing testing which used relative tsconfigRootDirs rather than absolute.
Handles normalization so that trailing path sep bug is also solved (test included)