check-flow
A better flow cli with ignoring errors from files which are in node_modules
folder.
Installation
yarn install --dev check-flow flow-bin
Usage
In your scripts, run flow-check to validate all of your files with without reporting errors for files inside node_modules
.
But you don't loose any typing definitions by needing to ignore certain files inside node_modules
.
{
"scripts": { "flow": "check-flow" }
}
Ingoring files
Ignoring files is configured by a .flowignore
inside the current working directory.
It supports the same syntax as the .gitignore
.
Including files
The main argument to the command are globs which should only report errors for.
This can be useful to only get errors from a specific directory or for something like https://github.com/okonet/lint-staged.
Multiple globs can be specified.
License
MIT