Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

activate only on // @flow files? #1

Open
jaketrent opened this issue Mar 23, 2018 · 2 comments
Open

activate only on // @flow files? #1

jaketrent opened this issue Mar 23, 2018 · 2 comments

Comments

@jaketrent
Copy link

Is there a way to activate the type checking of a file only if there is a //@flow comment in the buffer? I have projects that are not flow-typed or partially flow-typed, and I'm still getting red lines with flow type errors in spacemacs.

But outside of the editor (in the partially flow-typed project), flow cli reports "No errors!".

@jaketrent
Copy link
Author

Any thoughts? I'd love to hear your expert opinion on this.

@Jason94
Copy link

Jason94 commented Mar 1, 2019

The flycheck-flow plugin does this very well (https://github.com/lbolla/emacs-flycheck-flow). Probably the easiest way to solve this issue would be to pull some code from them, or use that package outright.

I use it in my regular emacs configuration, and it works quite well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants