Closed jstcki closed 9 years ago
Mostly lints fine with Flow annotations, but for some reason this doesn't:
/* @flow */ export default class Foo { bar(): object { return {}; } }
ESLint complains:
error "object" used outside of binding context block-scoped-var error "object" is not defined no-undef
Other types (e.g. string) lint fine.
string
Stupid me! object isn't even a flow type. Should use Object or better something like {foo: string}.
object
Object
{foo: string}
Mostly lints fine with Flow annotations, but for some reason this doesn't:
ESLint complains:
Other types (e.g.
string
) lint fine.