Skip to content

Commit

Permalink
docs(consistent-type-imports): add additional caveat
Browse files Browse the repository at this point in the history
 Seehttps://github.com/typescript-eslint/issues/2559#issuecomment-692780580 for additional information
  • Loading branch information
vegerot committed Oct 27, 2020
1 parent 5de6614 commit 5eb8ea3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/eslint-plugin/docs/rules/consistent-type-imports.md
Expand Up @@ -61,4 +61,6 @@ const x: import('Bar') = 1;
## When Not To Use It

- If you are not using TypeScript 3.8 (or greater), then you will not be able to use this rule, as type-only imports are not allowed.
- Certain libraries use the non-inlined imports to infer information about the variables. For example, for dependency injection.
type-only imports cannot be used with these libraries. See [#2559](https://github.com/typescript-eslint/typescript-eslint/issues/2559#issuecomment-692780580)
- If you specifically want to use both import kinds for stylistic reasons, you can disable this rule.

0 comments on commit 5eb8ea3

Please sign in to comment.