Aller au contenu

New cyclic dependency between modules (ARCH3328)

Ce contenu n’est pas encore disponible dans votre langue.

Key typescript.architecture.new-dependency · Severity warning · Category architecture

Merge requests only. Flags an import that makes one folder depend on another which, on the default branch, already depends on it (directly or within three steps): the two now depend on each other. Type-only imports do not count; folders most of the codebase depends on, and a folder with its own parent or child, are not counted.

// src/billing/invoice.ts - on the default branch src/shipping already imports src/billing
import { trackParcel } from "../shipping/tracker";
src/billing/invoice.ts
import type { ShipmentStatus } from "./shipment-status"; // billing owns the contract, shipping implements it