Skip to content

Commit

Permalink
feat: add support for decorator metadata in scope analysis and in con…
Browse files Browse the repository at this point in the history
…sistent-type-imports (#2751)

Fixes #2559
  • Loading branch information
Frezc authored Jan 18, 2021
1 parent d02a40d commit 445e416
Show file tree
Hide file tree
Showing 26 changed files with 3,432 additions and 272 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const defaultOptions: Options = {

This option defines the expected import kind for type-only imports. Valid values for `prefer` are:

- `type-imports` will enforce that you always use `import type Foo from '...'`. It is default.
- `type-imports` will enforce that you always use `import type Foo from '...'` except referenced by metadata of decorators. It is default.
- `no-type-imports` will enforce that you always use `import Foo from '...'`.

Examples of **correct** code with `{prefer: 'type-imports'}`, and **incorrect** code with `{prefer: 'no-type-imports'}`.
Expand Down
Loading

0 comments on commit 445e416

Please sign in to comment.