Skip to content

archlint我们不修复您的架构。我们阻止它变得更糟。

快速、基于 AST 的 TypeScript/JavaScript 项目架构问题检测器。

archlint logo

为什么选择 archlint?

现代代码库的复杂度增长很快。archlint 帮助您在架构问题演变成技术债之前尽早发现它们。

bash
# 在您的 PR 中捕获退化
npx -y @archlinter/cli diff HEAD~1 --explain
🔴 REGRESSION: New cycle detected

  src/orders/service.ts → src/payments/processor.ts → src/orders/service.ts

  Why this is bad:
    Circular dependencies create tight coupling between modules.
    Changes in one module can cause unexpected failures in the other.

  How to fix:
    Extract shared logic into a separate module, or use dependency injection.

Released under the MIT License.