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: add support for enum type #512

Closed
wants to merge 3 commits into from
Closed

Conversation

maxcnunes
Copy link

Add support for the enum type usage https://flow.org/en/docs/enums/.

Fixes #502.

Something I found during the tests, if you use @babel/plugin-syntax-flow plugin, then the babel-plugin-transform-flow-enums plugin must be placed before @babel/plugin-syntax-flow, otherwise the parser won't recognize the enum type. But, I think you could even remove @babel/plugin-syntax-flow if you are using babel-plugin-transform-flow-enums.

@maxcnunes maxcnunes changed the title Add support for enum type feat: add support for enum type Oct 29, 2021
@maxcnunes
Copy link
Author

hey @gajus, when you have some time, could you please check this PR? thanks 🙇

@maxcnunes
Copy link
Author

Closing this in favor of https://github.com/flow-typed/eslint-plugin-ft-flow which has implemented it already

@maxcnunes maxcnunes closed this Apr 12, 2023
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: incorrect no-undef error for Flow Enums
2 participants