From 5eb8ea32da642246c3c3e710dde0a3ae4345b9d0 Mon Sep 17 00:00:00 2001 From: Max Coplan Date: Tue, 27 Oct 2020 16:44:31 -0400 Subject: [PATCH] docs(consistent-type-imports): add additional caveat Seehttps://github.com/typescript-eslint/typescript-eslint/issues/2559#issuecomment-692780580 for additional information --- packages/eslint-plugin/docs/rules/consistent-type-imports.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/eslint-plugin/docs/rules/consistent-type-imports.md b/packages/eslint-plugin/docs/rules/consistent-type-imports.md index 3487bf9b5ee..a6d06aae851 100644 --- a/packages/eslint-plugin/docs/rules/consistent-type-imports.md +++ b/packages/eslint-plugin/docs/rules/consistent-type-imports.md @@ -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.