Skip to content

Commit 5df2719

Browse files
authored
docs(eslint-plugin): [consistent-type-imports] note that it can't be used for decorator metadata (typescript-eslint#2716)
1 parent 5de6614 commit 5df2719

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/eslint-plugin/docs/rules/consistent-type-imports.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,6 @@ const x: import('Bar') = 1;
6161
## When Not To Use It
6262

6363
- 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.
64+
- Certain libraries use the non-inlined imports to infer information about the variables. For example, for dependency injection.
65+
type-only imports cannot be used with these libraries. See [#2559](https://github.com/typescript-eslint/typescript-eslint/issues/2559#issuecomment-692780580)
6466
- If you specifically want to use both import kinds for stylistic reasons, you can disable this rule.

0 commit comments

Comments
 (0)