Skip to content

Commit

Permalink
docs(eslint-plugin): [consistent-type-imports] note that it can't be …
Browse files Browse the repository at this point in the history
…used for decorator metadata (#2716)
  • Loading branch information
vegerot committed Nov 1, 2020
1 parent 5de6614 commit 5df2719
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 5df2719

Please sign in to comment.