https://github.com/toilal/typescript-eslint-type-import
https://github.com/toilal/typescript-eslint-type-import
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/toilal/typescript-eslint-type-import
- Owner: Toilal
- Created: 2023-01-16T14:57:24.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-16T15:11:42.000Z (over 3 years ago)
- Last Synced: 2025-01-21T09:09:35.604Z (over 1 year ago)
- Language: JavaScript
- Size: 22.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)
```