Skip to content
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

feat(unstable): align lint ast with TSEStree #27996

Merged
merged 1 commit into from
Feb 6, 2025
Merged

Conversation

marvinhagemeister
Copy link
Contributor

This PR fixes deviations in our AST format compared to TSEStree. They are mostly a leftover for when I first started working on it and based it off of babel instead.

One of the key changes why the changeset is a bit bigger is that TSEStree uses undefined instead of null as the empty value for type nodes. This is likely influenced by tsc which use undefined everywhere. The rest of the nodes use null though. It's a little weird, but for now it might be better to align.

(extracted from #27977)

Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

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

LGTM

@marvinhagemeister marvinhagemeister merged commit dd1ee58 into main Feb 6, 2025
18 checks passed
@marvinhagemeister marvinhagemeister deleted the lint-ast-fixes branch February 6, 2025 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants