Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
feat: update to lib types for TS 5.2 RC#7451
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Thanks for the PR,@sosukesuzuki! 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 onhttps://opencollective.com/typescript-eslint. |
netlifybot commentedAug 10, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
✅ Deploy Preview fortypescript-eslint ready!
To edit notification comments on pull requests, go to yourNetlify site configuration. |
codecovbot commentedAug 10, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov Report
Additional details and impacted files@@ Coverage Diff @@## main #7451 +/- ##==========================================- Coverage 87.34% 85.25% -2.10%========================================== Files 381 386 +5 Lines 13336 13358 +22 Branches 3943 3943 ==========================================- Hits 11648 11388 -260- Misses 1308 1593 +285+ Partials 380 377 -3
Flags with carried forward coverage won't be shown.Click here to find out more.
|
nx-cloudbot commentedAug 10, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
| '4.9', | ||
| '5.0', | ||
| '5.1', | ||
| '5.2', |
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.
...huh. Odd that 5.1 wasn't here before.
| "types": ["jest","node"] | ||
| "module":"Node16", | ||
| "types": ["jest","node"], | ||
| "moduleResolution":"Node16" |
JoshuaKGoldbergAug 12, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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.
Why this change? Tests still work for me locally after reverting it.
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.
But does it typecheck fine without it?
There's a new error in this version to ensure that things are configured correctly.
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.
Yeah I like moving to the newer module & module resolution settings, just curious.
Also, perhttps://www.typescriptlang.org/tsconfig#moduleResolution,moduleResolution matchesmodule by default withnode16 and other newer targets.
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.
Without this change, a type error will occur.
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.
tsconfig.spec.json:5:15 - error TS5110: Option 'module' must be set to 'Node16' when option 'moduleResolution' is set to 'Node16'. 5 "module": "CommonJS", ~~~~~~~~~~Fun! In that case, I think we can get away with just the"module": "Node16":
| "moduleResolution": "Node16" |
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.
Thank you!e829631
JoshuaKGoldberg left a comment
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.
LGTM, thanks! I'll defer to@bradzacher as more knowledgeable on TS upgrades.
Note for any onlookers: we'll still have to add support forusing statements separately.
bradzacher left a comment
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.
Thanks - step one is this! Step two is the new syntax.
e829631
bradzacher left a comment
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.

Uh oh!
There was an error while loading.Please reload this page.
PR Checklist
Overview
Update TypeScript to 5.2.1-rc