Skip to content

Commit

Permalink
add tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
snewcomer committed Nov 7, 2022
1 parent 5c26e08 commit f92cefd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/eslint-plugin/docs/rules/consistent-type-imports.md
Expand Up @@ -43,6 +43,8 @@ This option defines the expected type modifier to be added when an import is det
- `separate-type-imports` will add the type keyword after the import keyword `import type { A } from '...'`. It is the default.
- `inline-type-imports` will inline the type keyword `import { type A } from '...'` and is only available in TypeScript 4.5 and onwards. See [documentation here](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-5.html#type-modifiers-on-import-names 'TypeScript 4.5 documentation on type modifiers and import names').

<!--tabs-->

#### ❌ Incorrect

```ts
Expand Down Expand Up @@ -70,6 +72,8 @@ type T = Foo;
const x: Bar = 1;
```

<!--tabs-->

### `disallowTypeAnnotations`

If `true`, type imports in type annotations (`import()`) are not allowed.
Expand Down

0 comments on commit f92cefd

Please sign in to comment.