Skip to content

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

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 2 commits into from
Jun 13, 2025
Merged

Conversation

mdjermanovic
Copy link
Member

@mdjermanovic mdjermanovic commented Jun 9, 2025

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

netlify bot commented Jun 9, 2025

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

@nzakas nzakas left a comment

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

nzakas commented Jun 10, 2025

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

@nzakas nzakas left a comment

Choose a reason for hiding this comment

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

Re-approving.

Copy link
Member

@fasttime fasttime 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!

@fasttime fasttime merged commit f686fcb into main Jun 13, 2025
31 checks passed
@fasttime fasttime deleted the es2026 branch June 13, 2025 04:49
@github-project-automation github-project-automation bot moved this from Second Review Needed to Complete in Triage Jun 13, 2025
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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy