Skip to content

Commit

Permalink
[Docs] no-cycle: Document that type-only imports are excluded
Browse files Browse the repository at this point in the history
  • Loading branch information
gnprice committed Nov 30, 2022
1 parent 0c1d0b9 commit 97863b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/rules/no-cycle.md
Expand Up @@ -22,6 +22,9 @@ import { b } from './dep-b.js' // reported: Dependency cycle detected.
This rule does _not_ detect imports that resolve directly to the linted module;
for that, see [`no-self-import`].

This rule ignores type-only imports in Flow and TypeScript syntax
(`import type` and `import typeof`), which have no runtime effect.


## Rule Details

Expand Down

0 comments on commit 97863b8

Please sign in to comment.