-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
focus-check should accepts more than one file #4189
Comments
Any updates on this? Would be great to have. |
Also interested in this. Jest has the flag "lint-staged": {
"*.js": [
"eslint --fix --ignore-pattern '**/*.test.js'",
"jest --bail --findRelatedTests",
"flow related-check",
"git add"
]
} Lint, run tests, and type-check before commits. |
I checked it out, it works. |
Can someone clarify how As I understand it checks all the dependencies of provided files and dependencies of dependencies. And as the result in my case when I provide any 2 files, it returns 850 errors (I have 859 errors in total). Is there a way to still check all dependencies (I understand this is required) but display only errors found in provided files? We want to fix all flow errors gradually with pre-commit hook, not all of them at once. |
can we filter the result of |
Can we have an update about the question above? |
For further motivation of adding feature asked about in @sibelius post above, |
flow focus-check
allows to check a single file, which can be useful in some cases.In other cases, it would be helpful to get
focus-check
to check all files received as arguments. For example, to use together with https://github.com/okonet/lint-staged and have only the staged files being checked.This should be possible:
Actual result:
The text was updated successfully, but these errors were encountered: