Skip to content

feat: support TypeScript 5.7 #10372

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

Merged
merged 1 commit into from
Nov 24, 2024

Conversation

JoshuaKGoldberg
Copy link
Member

PR Checklist

Overview

Updates lib and scope definitions.

Doesn't update project: true to match the new ancestor configuration file searching, as that should already be covered by projectService: true.

💖

@typescript-eslint
Copy link
Contributor

Thanks for the PR, @JoshuaKGoldberg!

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.

Copy link

netlify bot commented Nov 23, 2024

Deploy Preview for typescript-eslint ready!

Name Link
🔨 Latest commit 1f6cc26
🔍 Latest deploy log https://app.netlify.com/sites/typescript-eslint/deploys/674131d1d770d70008175667
😎 Deploy Preview https://deploy-preview-10372--typescript-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 93 (🔴 down 5 from production)
Accessibility: 100 (no change from production)
Best Practices: 92 (no change from production)
SEO: 98 (no change from production)
PWA: 80 (no change from production)
View the detailed breakdown and full score reports

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

Copy link

nx-cloud bot commented Nov 23, 2024

☁️ Nx Cloud Report

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

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 2 targets

Sent with 💌 from NxCloud.

@JoshuaKGoldberg JoshuaKGoldberg requested a review from a team November 23, 2024 01:51
Copy link

codecov bot commented Nov 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.72%. Comparing base (88e4c66) to head (1f6cc26).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10372      +/-   ##
==========================================
+ Coverage   86.69%   86.72%   +0.03%     
==========================================
  Files         434      443       +9     
  Lines       15227    15270      +43     
  Branches     4445     4445              
==========================================
+ Hits        13201    13243      +42     
- Misses       1673     1674       +1     
  Partials      353      353              
Flag Coverage Δ
unittest 86.72% <100.00%> (+0.03%) ⬆️

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

Files with missing lines Coverage Δ
packages/scope-manager/src/lib/dom.ts 100.00% <ø> (ø)
...ckages/scope-manager/src/lib/es2017.arraybuffer.ts 100.00% <100.00%> (ø)
packages/scope-manager/src/lib/es2017.ts 100.00% <100.00%> (ø)
...kages/scope-manager/src/lib/es2020.sharedmemory.ts 100.00% <100.00%> (ø)
packages/scope-manager/src/lib/es2020.string.ts 100.00% <100.00%> (ø)
packages/scope-manager/src/lib/es2021.weakref.ts 100.00% <100.00%> (ø)
packages/scope-manager/src/lib/es2022.error.ts 100.00% <100.00%> (ø)
packages/scope-manager/src/lib/es2022.ts 100.00% <ø> (ø)
...ckages/scope-manager/src/lib/es2024.arraybuffer.ts 100.00% <100.00%> (ø)
...ackages/scope-manager/src/lib/es2024.collection.ts 100.00% <100.00%> (ø)
... and 12 more

... and 1 file with indirect coverage changes

---- 🚨 Try these New Features:

Copy link
Member

@bradzacher bradzacher left a comment

Choose a reason for hiding this comment

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

supereasy-barely-an-inconvenience.gif

@bradzacher bradzacher merged commit fe6b47f into typescript-eslint:main Nov 24, 2024
65 of 66 checks passed
@JoshuaKGoldberg JoshuaKGoldberg deleted the typescript-5.7 branch November 24, 2024 03:07
inga-lovinde added a commit to inga-lovinde/typescript-eslint that referenced this pull request Nov 25, 2024
@@ -71,13 +72,21 @@ type Lib =
| 'es2022.intl'
| 'es2022.object'
| 'es2022.regexp'
| 'es2022.sharedmemory'
Copy link
Contributor

Choose a reason for hiding this comment

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

Newest typescript might have removed this, but the plugin should be compatible with previous TS versions (as per range in package.json) and those previous versions do know what es2022.sharedmemory is. This change makes this eslint plugin incompatible with previous TS versions in projects declaring use of es2022.sharedmemory

Copy link
Member Author

Choose a reason for hiding this comment

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

Interesting. Could you please file an issue with a reproduction?

https://typescript-eslint.io/contributing/pull-requests

Copy link
Contributor

Choose a reason for hiding this comment

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

Sure, on it

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

@burtek burtek Nov 26, 2024

Choose a reason for hiding this comment

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

Actually, it's not this change, it's the rename of the lib file in scope-manager. Still caused by this PR

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeScript 5.7 Support
3 participants