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

Commit 733a177

Browse files
khangluwmonk
authored andcommitted
Simplify flow init docs (#2522)
- Call `npm run flow --init` won't create a .flowconfig file, it should be `npm run flow init`
1 parent 19c7bf7 commit 733a177

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-scripts/template/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ To add Flow to a Create React App project, follow these steps:
690690

691691
1. Run `npm install --save-dev flow-bin` (or `yarn add --dev flow-bin`).
692692
2. Add `"flow": "flow"` to the `scripts` section of your `package.json`.
693-
3. Run `npm run flow -- init` (or `yarn flow -- init`) to create a [`.flowconfig` file](https://flowtype.org/docs/advanced-configuration.html) in the root directory.
693+
3. Run `npm run flow init` (or `yarn flow init`) to create a [`.flowconfig` file](https://flowtype.org/docs/advanced-configuration.html) in the root directory.
694694
4. Add `// @flow` to any files you want to type check (for example, to `src/App.js`).
695695

696696
Now you can run `npm run flow` (or `yarn flow`) to check the files for type errors.

0 commit comments

Comments
 (0)