Max Phillips
Max Phillips

Reputation: 7489

How to turn off annotation warnings in Flow?

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

Answers (1)

Pedro Moreira
Pedro Moreira

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

Related Questions