Skip to content

Consider adding support for re-exports to no-types-missing-file-annotation #227

Closed
@pascalduez

Description

@pascalduez

Hi,

the no-types-missing-file-annotation does not support re-exports declarations, although this is quite an handy pattern. I've been caught a couple of times with this (forgetting the flow file declaration in an index), and such warning would have been of great help.

`Button.js`

// @flow

export type Props = { ... }
`index.js`

export type { Props } from './Button.js';

--> Should warn for missing flow file declaration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions