Skip to content
This repository was archived by the owner on Aug 1, 2022. It is now read-only.

v1.10.0

Choose a tag to compare

@ryan953 ryan953 released this 06 Dec 06:26
· 82 commits to master since this release

Adds the json output format available to the cli. You can output a report to stdout with -o json or --output json or put the json data directly in a file by using --json-file /path/to/file.json.

Also adds the --level flag which supercedes the existing --allow-weak flag. Using --level you can specify what type of strictness is allowed in your repo. For example using --level=flowstrict requires that all files declare @flow strict; any files with @flow or @flow strict-local would cause the program to exit with an error code.

The default value is --level=flow, now --allow-weak is an alias for --level=flowweak. If you never want to exit with an error code then set --level=any and all @flow or no-flow files will be allowed.

You can read more about these flags in the updated README or by running npx flow-annotation-check --help to see the detailed cli flags & help.