flow-minor-mode
flow-minor-mode copied to clipboard
flycheck: javascript-flow is not a valid syntax checker
Got:
flycheck-add-mode: javascript-flow is not a valid syntax checker File mode specification error: (error javascript-flow is not a valid syntax checker)
My configuration:
(require 'flow-minor-mode)
(add-hook 'js-mode-hook 'flow-minor-enable-automatically)
(add-hook 'js2-mode-hook 'flow-minor-enable-automatically)
(with-eval-after-load 'flycheck
(flycheck-add-mode 'javascript-flow 'flow-minor-mode)
(flycheck-add-mode 'javascript-eslint 'flow-minor-mode)
(flycheck-add-next-checker 'javascript-flow 'javascript-eslint))
Environment: Spacemacs [email protected] on MacOS
this is a problem with javascript-flow, which should be installed separately and is not a part of this minor mode
@an-sh thanks for your reply. May I know where I can find javascript-flow
(I assume it's an emacs plugin)?
@RenWenshan you need to install and then require it before using
(require 'flycheck-flow)
...
@olessavluk The question is, where can we find the javascript-flow
package? Is there a melpa package, or a git repo somewhere?
@sgrove yes, it is available on MELPA, but under different name flycheck-flow
Here is configuration that I use for Flow, hope it helps.