-
-
Notifications
You must be signed in to change notification settings - Fork 75
Fix: Allow to visit typeParameters in VariableDeclarator #581
Conversation
689e63e
to
385a6ef
Compare
385a6ef
to
8b6ec7f
Compare
8b6ec7f
to
ee1e7d6
Compare
ee1e7d6
to
42f1801
Compare
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.
One small typo, otherwise LGTM. Thanks!
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!
@platinumazure can i have estimate when this change can be released? its blocking me from fixing some of rules. |
this PR is needed only for estree v6, but its not needed for v7 because there was change that type Foo = number is no longer variable and now its own node |
Thanks, makes sense. In the PRs for upgrading typescript-estree to 7.x or higher, do we need to go back to visitor-keys.js and remove the override for variable declarations, given the decision to switch the node type for |
yes we will have to do that. this property is no longer in AST, and it will be better if it's going to be removed when we upgrade to 7.x |
@armano2 Understood. Sorry, I wasn't clear: If I merge this PR now, do you need to update #584 and #589 to ensure the property is removed from visitor-keys? If so, then, given this extra work needed on your side: Should I merge this PR at all (and cut a patch release)? Or should we just close this and have people migrate to a new major version of this plugin (one which supports [email protected] or [email protected])? I'm leaning towards just closing this, but if you think there's a strong need to fix this for people stuck on earlier versions of TS, I could merge this and do a release, and then request changes on #584 and #589. Let me know what you think the best way forward is here. |
@platinumazure yes i will have to update them and i don't mind rebasing / removing it there |
any progress on this? |
This PR adds
typeParameters
to VariableDeclaratortypeParameters
can be only present ifkind=type