Skip to content

Rule violations. This text is what archangel docs no-cycles prints.

A group of files import each other, so each can reach the others. The diagnostic lists every file in the group and shows its shortest cycle.

src/a.ts
// rule({ files: 'src/**', noCycles: true })
import { b } from './b';
// src/b.ts
import { a } from './a';

Remove one import of the cycle, or move what both files need into a third file that neither imports. Type imports do not count unless the rule says imports: 'all'.