Skip to content

type import flagged is missing and unpublished #66

@NullVoxPopuli

Description

@NullVoxPopuli

idk if there is an existing rule to handle this case, but in Typescript, you can do:

import type { SomeType } from 'some-library';

for context, when transpiling to either CJS or MJS, the import doesn't make it to the output -- obviously a lint plugin can't know that is going to happen, but if there could be some way to relax n/no-missing-import and n/no-unpublished-import, (or require that some-library be in devDependencies if not found in the normal locations, this'd be a huge help <3

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions