You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2. Add `"flow": "flow"` to the `scripts` section of your `package.json`.
635
-
3. Run `npm run flow -- init` to create a [`.flowconfig` file](https://flowtype.org/docs/advanced-configuration.html) in the root directory.
635
+
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.
636
636
4. Add `// @flow` to any files you want to type check (for example, to `src/App.js`).
637
637
638
-
Now you can run `npm run flow` to check the files for type errors.
638
+
Now you can run `npm run flow`(or `yarn flow`) to check the files for type errors.
639
639
You can optionally use an IDE like [Nuclide](https://nuclide.io/docs/languages/flow/) for a better integrated experience.
640
640
In the future we plan to integrate it into Create React App even more closely.
0 commit comments