Architecture Linter
Enforce layer rules in TypeScript (ESLint for architecture)
3 followers
Enforce layer rules in TypeScript (ESLint for architecture)
3 followers
Enforce architecture rules in TypeScript projects - detect forbidden layer imports, fix suggestions, watch mode, and built-in presets for NestJS, Clean Architecture, Hexagonal, and Next.js. - cvalingam/architecture-linter


Architecture Linter catches import violations that ESLint can't - like a controller importing a repository directly, bypassing the service layer.
Define your layers in a simple .context.yml file. The linter scans your TypeScript project and reports every violation with the file, the rule broken, and a suggested fix.
Ships three ways:
• CLI - npx architecture-linter scan
• VS Code extension - inline red squiggles on violation lines
• GitHub Action (@v1) - annotates PRs automatically, fails the check on violations
Built-in presets for NestJS, Clean Architecture, Hexagonal, and Next.js. init now auto-detects your framework from package.json. Free and open source - just hit v1.0.0!
❤️ If it saves you time: github.com/sponsors/cvalingam