An open API service indexing awesome lists of open source software.

https://github.com/toilal/typescript-eslint-type-import


https://github.com/toilal/typescript-eslint-type-import

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

n/no-unpublished-import issue with typescript import type
---

`import type` should not trigger this error as it doesn't require the dependency to be available at runtime.

```

$ npm run lint

> lint
> eslint .

/home/toilal/projects/typescript-eslint-type-import/src/index.ts
1:35 error "express" is not published n/no-unpublished-import

✖ 1 problem (1 error, 0 warnings)
```