Skip to content

Updated babel installation instructions for Flow #2248

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

Merged
merged 1 commit into from
Aug 15, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions content/docs/static-type-checking.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,21 +88,21 @@ If you manually configured Babel for your project, you will need to install a sp
If you use Yarn, run:

```bash
yarn add --dev babel-preset-flow
yarn add --dev @babel/preset-flow
```

If you use npm, run:

```bash
npm install --save-dev babel-preset-flow
npm install --save-dev @babel/preset-flow
```

Then add the `flow` preset to your [Babel configuration](https://babeljs.io/docs/usage/babelrc/). For example, if you configure Babel through `.babelrc` file, it could look like this:

```js{3}
{
"presets": [
"flow",
"@babel/preset-flow",
"react"
]
}
Expand Down