In cases where I'm using flow.. https://flowtype.org/
// @flow
var foo = (str: string) => {
return str;
};
and Eslint together,
Eslint reports unexpected token on str: string
.
Is there a way to make Eslint ignore (or recognize) flow types and not report them as errors?
As Hamlet mentioned there is eslint-plugin-flowtype which will do a couple of things:
Here are the Installation Instructions and Configuration docs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With