Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Latest commit

 

History

History
26 lines (21 loc) · 498 Bytes

flow.md

File metadata and controls

26 lines (21 loc) · 498 Bytes

With yarn:

yarn add --dev babel-cli babel-preset-flow flow-bin

With npm:

npm install --save-dev babel-cli babel-preset-flow flow-bin babel-eslint eslint-plugin-flowtype babel-preset-env

Or better, install the npm dependencies from the package.json:

npm install

Plugin for VSCode: https://github.com/flowtype/flow-for-vscode

Manually via terminal:

yarn run flow

To add flow to mocha tests, you need to add this line:

import { describe, it } from 'mocha';