skynyrd
2/5/2017 - 8:54 PM

VS Code & Flow integration

VS Code & Flow integration

  • Add flow package to your project:
npm install --save-dev flow-bin

or globally (not recommended but required for vscode as it looks at $PATH)

npm install -g flow-bin
  • Install "Flow Language Support" extension to VS Code
  • F1 -> Open Workspace Settings
  • Add "javascript.validate.enable": false
  • Open terminal in project folder and give this command flow init
  • Restart VS Code.

Go!

Optional: For type definitions,

npm install -g flow-typed
flow-typed install