Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Merged

Conversation

@sosukesuzuki
Copy link
Contributor

@sosukesuzukisosukesuzuki commentedAug 10, 2023
edited
Loading

PR Checklist

Overview

Update TypeScript to 5.2.1-rc

christianalfoni, JoshuaKGoldberg, and so1ve reacted with heart emoji
@typescript-eslint
Copy link
Contributor

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.

@netlify
Copy link

netlifybot commentedAug 10, 2023
edited
Loading

Deploy Preview fortypescript-eslint ready!

NameLink
🔨 Latest commit2db6ce1
🔍 Latest deploy loghttps://app.netlify.com/sites/typescript-eslint/deploys/64d8810036f2830008c6ddda
😎 Deploy Previewhttps://deploy-preview-7451--typescript-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to yourNetlify site configuration.

@codecov
Copy link

codecovbot commentedAug 10, 2023
edited
Loading

Codecov Report

Merging#7451 (2db6ce1) intomain (c225b12) willdecrease coverage by2.10%.
The diff coverage is100.00%.

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
FlagCoverage Δ
unittest85.25% <100.00%> (-2.10%)⬇️

Flags with carried forward coverage won't be shown.Click here to find out more.

Files ChangedCoverage Δ
packages/scope-manager/src/lib/decorators.ts100.00% <ø> (ø)
packages/scope-manager/src/lib/dom.iterable.ts100.00% <ø> (ø)
packages/scope-manager/src/lib/dom.ts100.00% <ø> (ø)
packages/scope-manager/src/lib/es5.ts100.00% <ø> (ø)
...ckages/scope-manager/src/lib/webworker.iterable.ts100.00% <ø> (ø)
packages/scope-manager/src/lib/webworker.ts100.00% <ø> (ø)
packages/typescript-estree/src/version-check.ts100.00% <ø> (ø)
packages/scope-manager/src/lib/es2017.date.ts100.00% <100.00%> (ø)
packages/scope-manager/src/lib/es2017.ts100.00% <100.00%> (ø)
...ackages/scope-manager/src/lib/es2023.collection.ts100.00% <100.00%> (ø)
... and7 more

... and7 files with indirect coverage changes

@nx-cloud
Copy link

nx-cloudbot commentedAug 10, 2023
edited
Loading

☁️ Nx Cloud Report

CI is running/has finished running commands for commit2db6ce1. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 37 targets

Sent with 💌 fromNxCloud.

@sosukesuzukisosukesuzuki marked this pull request as ready for reviewAugust 10, 2023 17:17
'4.9',
'5.0',
'5.1',
'5.2',

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"
Copy link
Member

@JoshuaKGoldbergJoshuaKGoldbergAug 12, 2023
edited
Loading

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.

Copy link
Member

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.

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.

Copy link
ContributorAuthor

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.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Ah!https://devblogs.microsoft.com/typescript/announcing-typescript-5-2-rc/#module-and-moduleresolution-must-match-under-recent-node-js-settings

       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":

Suggested change
"moduleResolution": "Node16"

sosukesuzuki reacted with eyes emoji
Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thank you!e829631

JoshuaKGoldberg
JoshuaKGoldberg previously approved these changesAug 12, 2023
Copy link
Member

@JoshuaKGoldbergJoshuaKGoldberg left a 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.

@JoshuaKGoldbergJoshuaKGoldberg added the 1 approval>=1 team member has approved this PR; we're now leaving it open for more reviews before we merge labelAug 12, 2023
bradzacher
bradzacher previously approved these changesAug 13, 2023
Copy link
Member

@bradzacherbradzacher left a 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.

Copy link
Member

@bradzacherbradzacher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

next we can get to work on the syntax thanks heaps!

@bradzacherbradzacher changed the titlefeat: update to TypeScript 5.2 RCfeat: update to lib types for TS 5.2 RCAug 13, 2023
@bradzacherbradzacher merged commit479f9f6 intotypescript-eslint:mainAug 13, 2023
@bradzacherbradzacher mentioned this pull requestAug 13, 2023
@sosukesuzukisosukesuzuki deleted the update-ts-5.2 branchAugust 13, 2023 14:16
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsAug 21, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@JoshuaKGoldbergJoshuaKGoldbergJoshuaKGoldberg left review comments

@bradzacherbradzacherbradzacher approved these changes

Assignees

No one assigned

Labels

1 approval>=1 team member has approved this PR; we're now leaving it open for more reviews before we merge

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@sosukesuzuki@JoshuaKGoldberg@bradzacher

[8]ページ先頭

©2009-2025 Movatter.jp