Skip to content
This repository has been archived by the owner on Aug 4, 2020. It is now read-only.

Support private properties in no-invalid-this #183

Merged
merged 2 commits into from
Aug 24, 2019

Conversation

fergald
Copy link
Contributor

@fergald fergald commented Jul 29, 2019

Closes #182

Also count node.type === ClassPrivateProperty as being a class property.

@fergald
Copy link
Contributor Author

fergald commented Aug 23, 2019

@existentialism could you look at this PR (sorry, no idea how to find suitable reviewers but you are the most recent and voluminous contributor).

Copy link
Contributor

@zaygraveyard zaygraveyard left a comment

Choose a reason for hiding this comment

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

Thank you

@zaygraveyard
Copy link
Contributor

I tried to add private methods to this, but I found no easy way to enable "classPrivateMethods" in the parser for the tests.

@fergald
Copy link
Contributor Author

fergald commented Aug 24, 2019

Thanks! Can you merge the change? I don't have permission.

@nicolo-ribaudo nicolo-ribaudo merged commit 1d10ab6 into babel:master Aug 24, 2019
@nicolo-ribaudo
Copy link
Member

Thanks!

nicolo-ribaudo pushed a commit to babel/babel that referenced this pull request Nov 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

babel/no-invalid-this does not recognize private properties
3 participants