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
check single file? #1451
Comments
@mvolkmann Well, you could do something like |
Yes, that is exactly what I need. Thanks! |
I've tried this flow check-contents < src/actions/appActions.js And it returned this error import * as types from './actionTypes';
^^^^^^^^^^^^^^^ ./actionTypes. Required module not found Can we check a single file and also include files that this file reference? is there something for this? |
I'm working on this. Have a working POC. Should I go forward with this? |
@iddan please do |
It's written it in Node.js should I create a PR to the source in OCaml or is a POC reference is enough? |
I think you should create a POC and start a RFC about it |
My POC worked well. For some reason it is much more performant than flow focus-check |
You should publish it to npm |
It is just a sketch. What really should be is that the idea will be integrated to Flow and affect the editor extensions making Flow usable to the public |
for people landing on this page from google (like me) flow check-contents path/to/file.js < path/to/file.js will correctly set the current path and avoid all these import errors. |
@samwgoldman can you give us some hints of why what @malectro wrote works? |
The thing is why we should duplicate our selfs and wirte same path two times? I knwo what edit: Actually, i'm seeing that |
( |
It's great that the flow command checks all the files in a project, but is there any way to run it on a specific file? While learning I have many files in the current directory that each may have some type error. I want to run Flow on them one at a time to focus on learning a particular aspect.
The text was updated successfully, but these errors were encountered: