Skip to content

feat: add ecmaVersion: 2026, parsing using and await using - #19832

Merged
fasttime merged 2 commits into
mainfrom
es2026
Jun 13, 2025
Merged

fasttime merged 2 commits into
mainfrom
es2026

Conversation

@mdjermanovic

@mdjermanovic mdjermanovic commented Jun 9, 2025 •

Copy link
Copy Markdown
Member

Prerequisites checklist

What is the purpose of this pull request? (put an "X" next to an item)

[ ] Documentation update
[ ] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofix to a rule
[ ] Add a CLI option
[x] Add something to the core
[ ] Other, please explain:

Refs #19792

Adds ecmaVersion: 2026 and enables parsing new syntax from the Explicit Resource Management proposal, that is using and await using declarations.

What changes did you make? (Give an overview)

  • Updated espree and eslint-scope dependencies.
  • Set the latest ecma version to 2026.
  • Added new globals: AsyncDisposableStack, DisposableStack, SuppressedError.
  • Updated types, docs, and added a few tests to verify this works.

Is there anything you'd like reviewers to focus on?

Waiting for eslint/js#658.

Did I miss anything else that should be updated?

@github-project-automation github-project-automation Bot moved this to Needs Triage in Triage Jun 9, 2025
@netlify

netlify Bot commented Jun 9, 2025 •

Copy link
Copy Markdown

✅ Deploy Preview for docs-eslint ready!

Name Link
🔨 Latest commit 342d8f9
🔍 Latest deploy log https://app.netlify.com/projects/docs-eslint/deploys/68484612cd106100082eac83
😎 Deploy Preview https://deploy-preview-19832--docs-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 your Netlify project configuration.

@eslint-github-bot eslint-github-bot Bot added the feature This change adds a new feature to ESLint label Jun 9, 2025
@mdjermanovic
mdjermanovic marked this pull request as ready for review June 9, 2025 15:54
@mdjermanovic
mdjermanovic requested a review from a team as a code owner June 9, 2025 15:54
@mdjermanovic mdjermanovic added core Relates to ESLint's core APIs and features new syntax This issue is related to new syntax that has reached stage 4 accepted There is consensus among the team that this change meets the criteria for inclusion labels Jun 9, 2025
nzakas
nzakas previously approved these changes Jun 10, 2025

@nzakas nzakas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Would like another review before merging.

@nzakas

nzakas commented Jun 10, 2025

Copy link
Copy Markdown
Member

@mdjermanovic there's a merge conflict now

@nzakas nzakas moved this from Needs Triage to Second Review Needed in Triage Jun 10, 2025
@github-actions github-actions Bot removed the core Relates to ESLint's core APIs and features label Jun 10, 2025

@nzakas nzakas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Re-approving.

@fasttime fasttime left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accepted There is consensus among the team that this change meets the criteria for inclusion feature This change adds a new feature to ESLint new syntax This issue is related to new syntax that has reached stage 4

Projects

Status: Complete

Development

Successfully merging this pull request may close these issues.

3 participants