forked from mysticatea/eslint-plugin-node
-
-
Notifications
You must be signed in to change notification settings - Fork 54
Closed
Description
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
CallMeLaNN, Systemcluster and Narretz