This is a way to integrate flow with Spacemacs.
npm install -g flow-bin
Spacemacs File Watcher
The syntax-checking layer is not installed by default, but you can easily add it to your
(defun dotspacemacs/layers () (setq-default dotspacemacs-configuration-layers '( syntax-checking ) ))
syntax-checking allows files that you're editing to be parsed for correctness as you edit, providing realtime feedback of any errors that you've written.
Now we need something that can plug into flycheck and do the flowtype checks for us. That package is flycheck-flow.
SPC : and run the command
package-install. The find and select
Once you're installed, you can get feedback from Flow within Spacemacs.
Some of this will happen inline. You'll get red dots in the gutter with red underlines in your code. If you move your cursor to that point, you will get tooltips describing the problem.
There are also a set of commands for opening a list of flycheck errors.
This is the best flowtype integration with Spacemacs that I know of. What other ways have you found to make this integration better?