Ir al contenido

Architecture contract (ARCH3327)

Esta página aún no está disponible en tu idioma.

Key typescript.architecture.contract · Severity error · Category architecture

Flags an import against the layer direction, a vertical slice’s boundary or the project’s own architecture rules: a feature under features/ or slices/ importing another feature’s behaviour (a function, a hook, a class with methods) past that feature’s index - its types, constants and index exports are allowed; a service, repository or entity importing a controller (NestJS file names or controllers/ folders); an entity importing a service or repository; or any import a rule in Project settings > Scanning forbids. Read from file and folder names, not class names.

src/features/profile/ProfilePage.tsx
import { useArticleFeed } from "../article/hooks/useArticleFeed";
src/features/profile/ProfilePage.tsx
import { useArticleFeed } from "../article"; // what the article feature exports from its index