Skip to content

fix: remove outdated types in ParserOptions.ecmaFeatures #19944

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
Jul 15, 2025

Conversation

ntnyq
Copy link
Contributor

@ntnyq ntnyq commented Jul 15, 2025

Prerequisites checklist

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

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

Fix #19942

What changes did you make? (Give an overview)

This PR removes oudated types ParserOptions.ecmaFeatures.experimentalObjectRestSpread.

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

@Copilot Copilot AI review requested due to automatic review settings July 15, 2025 11:16
@ntnyq ntnyq requested a review from a team as a code owner July 15, 2025 11:16
@github-project-automation github-project-automation bot moved this to Needs Triage in Triage Jul 15, 2025
@eslint-github-bot
Copy link

Hi @ntnyq!, thanks for the Pull Request

The pull request title isn't properly formatted. We ask that you update the pull request title to match this format, as we use it to generate changelogs and automate releases.

  • The length of the commit message must be less than or equal to 72

To Fix: You can fix this problem by clicking 'Edit' next to the pull request title at the top of this page.

Read more about contributing to ESLint here

Copy link

netlify bot commented Jul 15, 2025

Deploy Preview for docs-eslint canceled.

Name Link
🔨 Latest commit 506d996
🔍 Latest deploy log https://app.netlify.com/projects/docs-eslint/deploys/68763888ed9fe8000823f408

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes the now-obsolete experimentalObjectRestSpread parser option from the ESLint type definitions and test suite to keep the API clean and up to date.

  • Eliminates references to experimentalObjectRestSpread in existing tests.
  • Ensures the test suite reflects current supported ParserOptions.
Comments suppressed due to low confidence (1)

tests/lib/types/types.test.ts:934

  • Add a test to verify that supplying the now-removed parser option experimentalObjectRestSpread produces the expected configuration error, ensuring this removal is correctly enforced.
	{

@ntnyq ntnyq changed the title fix: remove outdated types ParserOptions.ecmaFeatures.experimentalObjectRestSpread fix: remove outdated types in ParserOptions.ecmaFeatures Jul 15, 2025
@eslint-github-bot eslint-github-bot bot added the bug ESLint is working incorrectly label Jul 15, 2025
Copy link
Contributor

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

@snitin315 snitin315 moved this from Needs Triage to Implementing in Triage Jul 15, 2025
@snitin315 snitin315 added accepted There is consensus among the team that this change meets the criteria for inclusion types Related to TypeScript types and removed bug ESLint is working incorrectly labels Jul 15, 2025
@snitin315 snitin315 merged commit 7863d26 into eslint:main Jul 15, 2025
30 checks passed
@github-project-automation github-project-automation bot moved this from Implementing to Complete in Triage Jul 15, 2025
@ntnyq ntnyq deleted the fix/types branch July 22, 2025 01:52
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 types Related to TypeScript types
Projects
Status: Complete
Development

Successfully merging this pull request may close these issues.

Change Request: Remove outdated type ParserOptions.ecmaFeatures.experimentalObjectRestSpread
2 participants