Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Flow enums: fix enum body location #10737
The location of the Flow enum bodys was incorrect. I fixed this in flow-parser (facebook/flow@498a209), and this PR fixes this in Babel, making it consistent with flow-parser, and also consistent with what the enum body contains (everything after
The diff also does some minor refactoring and cleaning up:
This incorrect location was discovering when adding support in Prettier prettier/prettier#6860
After this lands and they update their parser deps, Prettier can remove their hacks.