Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

Breaking: Explicitly handle TSEnumDeclaration (fixes #345) #364

Merged
merged 1 commit into from
Aug 19, 2017

Conversation

JamesHenry
Copy link
Member

@JamesHenry JamesHenry commented Aug 19, 2017

cc @j-f1, as per my comments on the other PR, for this solution I opted for explicitly handling the TSEnumDeclaration, and I also wanted to make sure that we (typescript-eslint-parser and babylon) were aligned on the structure of members, so I have also handled TSEnumMembers and verified this is the case.

I don't believe the other elements from that PR were necessary to fix #345 in the end, so I left them out, but please let me know if you think I am missing something!

@JamesHenry JamesHenry requested a review from soda0289 August 19, 2017 15:11
@eslintbot
Copy link

LGTM

@eslintbot
Copy link

LGTM

@@ -19,7 +19,7 @@
"license": "BSD-2-Clause",
"devDependencies": {
"babel-code-frame": "^6.22.0",
"babylon": "^7.0.0-beta.19",
"babylon": "^7.0.0-beta.20",
Copy link
Member Author

Choose a reason for hiding this comment

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

FYI 7.0.0-beta.20 contained an important fix for exported TS constructs so that is why I have set that as the new baseline

@JamesHenry JamesHenry removed the request for review from soda0289 August 19, 2017 15:39
@JamesHenry JamesHenry merged commit 32c0cc8 into master Aug 19, 2017
@JamesHenry JamesHenry deleted the ts-enum-refactor branch August 19, 2017 15:39
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.

export enum doesn’t register as an export
3 participants