Skip to content

import flow type from index.js.flow file: #616

Closed
@rkurbatov

Description

@rkurbatov

When I do import type MyType from '.' flow itself correctly assumes that file index.js.flow should be used, but eslint plugin searches for index.js first and only then for index.js.flow. For other filenames, this works normally. For my case, I should use import type Type from './index.js.flow', that is quite verbose. Otherwise, I get Unable to resolve path to module '.' import/no-unresolved error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions