-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Conversation
|
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.
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 |
✅ Deploy Preview for docs-eslint canceled.
|
There was a problem hiding this 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
experimentalObjectRestSpreadin 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
experimentalObjectRestSpreadproduces the expected configuration error, ensuring this removal is correctly enforced.
{
ParserOptions.ecmaFeatures.experimentalObjectRestSpreadParserOptions.ecmaFeatures
snitin315
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
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?