Reputation: 7489
I'm using Flow within Nuclide/Atom and I would really like to turn off the underline and gutter prompts for annotation on function parameters. How can this be achieved?
Thanks
Upvotes: 1
Views: 1102
Reputation: 975
Flow has a configuration option called suppress_comment
. By default it's configured to ignore the following:
// $FlowFixMe
https://flow.org/en/docs/config/options/#toc-suppress-comment-regex
Example:
// $FlowFixMe
function a(var1, var2, var3) {
// Something here
}
If there are too many warnings, it may be worth considering either fixing them, or removing the @flow
annotation from the specific file, so flow won't evaluate it.
Upvotes: 2