From 97863b84778d15376d51950cba0524c2e85ae4bf Mon Sep 17 00:00:00 2001 From: Greg Price Date: Wed, 30 Nov 2022 14:13:06 -0800 Subject: [PATCH] [Docs] no-cycle: Document that type-only imports are excluded --- docs/rules/no-cycle.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/rules/no-cycle.md b/docs/rules/no-cycle.md index 1593842df..28f8af655 100644 --- a/docs/rules/no-cycle.md +++ b/docs/rules/no-cycle.md @@ -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