Flow a static type checker for javascript (IntelliJ IDEA).
Aug 25, 2017 · 1 min read
Create project:
mkdir example-js-flow
cd example-js-flow
npm initSetup Flow:
npm install --save-dev flow-bin Add a “flow” script to your package.json:
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"flow": "flow"
},Init flow (this creates a file .flowconfig):
npm run flow initFirst run:
npm run flowSet Flow in IntelliJ IDEA settings:

Put this flag before any code in *.js files, so Flow will know what files should be checked.
// @flow
...Links:
- How to install flow, documentation.
- IntelliJ IDEA video about integration with flow.
