Skip to content

Upgrade flow to 0.64 - #3899

Merged
vjeux merged 2 commits into
prettier:masterfrom
vjeux:flow_64
Feb 6, 2018
Merged

vjeux merged 2 commits into
prettier:masterfrom
vjeux:flow_64

Conversation

@vjeux

@vjeux vjeux commented Feb 6, 2018 •

Copy link
Copy Markdown
Contributor

This also enables spread operator on jsx on the flow parser:

<div>{...list}</div>

I had no idea it was even a thing.

I had to comment out a flow test that no longer parses, but it's no longer in the flow repo and the comment said that it shouldn't be working anyway so I don't think it's going to be a problem.

Fixes #3898

This also enables spread operator on jsx on the flow parser:

```js
<div>{...list}</div>
```

I had no idea it was even a thing.

I had to comment out a flow test that no longer parses, but it's no longer in the flow repo and the comment said that it shouldn't be working anyway so I don't think it's going to be a problem.
@j-f1

j-f1 commented Feb 6, 2018

Copy link
Copy Markdown
Member

Can you add a test for the new syntax?

@j-f1

j-f1 commented Feb 6, 2018

Copy link
Copy Markdown
Member

Also looks like there are a bunch of errors in the build.

@@ -1 +1 @@
run_spec(__dirname, ["babylon"]);
run_spec(__dirname, ["babylon", "flow"]);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@j-f1 there's already a test in the codebase: jsx_spread. I enabled it for the flow parser

@vjeux
vjeux merged commit 9ba0d69 into prettier:master Feb 6, 2018
@vjeux

vjeux commented Feb 6, 2018

Copy link
Copy Markdown
Contributor Author

Oops... I was trying out the https://github.com/sindresorhus/refined-github extension that has a merge when green... but it merged instantly :(

lipis added a commit that referenced this pull request Feb 6, 2018
* 'master' of github.com:prettier/prettier:
  Upgrade flow to 0.64 (#3899)
  Cleanup unused script (& sort) (#3908)
  Normalize SVGs using svgo (#3907)
  Updated Webstorm instructions for File-Watcher (#3900)
  refactor(tests): restructure `at rules` tests (#3892)
  tests(css): declaration comments (#3906)
  fix(css): declaration comments (#3897)
lipis added a commit that referenced this pull request Feb 7, 2018
* master:
  Use the animated logo on the website's landing page (#3910)
  Upgrade flow to 0.64 (#3899)
  Cleanup unused script (& sort) (#3908)
@lock lock Bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Jan 18, 2019
@lock lock Bot locked as resolved and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants