2025-03-14 21:59:59 -06:00
|
|
|
# flow
|
|
|
|
|
|
|
|
|
|
> A static type checker for JavaScript.
|
2025-05-08 12:26:01 -06:00
|
|
|
> More information: <https://flow.org/en/docs/cli/>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Run a flow check:
|
|
|
|
|
|
|
|
|
|
`flow`
|
|
|
|
|
|
|
|
|
|
- Check which files are being checked by flow:
|
|
|
|
|
|
|
|
|
|
`flow ls`
|
|
|
|
|
|
|
|
|
|
- Run a type coverage check on all files in a directory:
|
|
|
|
|
|
|
|
|
|
`flow batch-coverage --show-all --strip-root {{path/to/directory}}`
|
|
|
|
|
|
|
|
|
|
- Display line-by-line type coverage stats:
|
|
|
|
|
|
|
|
|
|
`flow coverage --color {{path/to/file.jsx}}`
|