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

Fix computed properties #16

Merged
merged 5 commits into from
Jul 3, 2019
Merged

Fix computed properties #16

merged 5 commits into from
Jul 3, 2019

Conversation

mthadley
Copy link
Owner

@mthadley mthadley commented Jul 2, 2019

Attempts to handle computed properties like those mentioned in #15 with a bit more grace.

Fixes #15.

Handles computed properties like:

  const {[`${foo}bar`]: x} = someOb;

Not only was this throwing errors, but we weren't really deciding
how to sort them either. For now, we are just putting them all at the
bottom.
@mthadley mthadley merged commit 688cdd4 into master Jul 3, 2019
@mthadley mthadley deleted the fix-computed-properties branch July 3, 2019 02:35
@TSMMark
Copy link

TSMMark commented Jul 3, 2019

Tested in our codebase and works great! Thanks for the quick turnaround on the fix, and thanks for this great lint rule overall

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.

[Bug] TypeError: Cannot read property 'toString' of undefined
2 participants