Modular monolith with the eslint-boundries
Briefly

The modular monolith architecture emphasizes clear boundaries and dependencies, ensuring that modules like A and B remain independent, promoting better organization and maintainability in the code.
Using the eslint-boundaries plugin can effectively enforce rules that prevent illegal imports between modules, thus maintaining a true modular structure in your application.
When facing exceptions, creating dedicated constant files (.const.ts) allows necessary imports while preserving immutability, thus balancing between strict modular rules and practical needs.
Migrating from a traditional monolith to a modular monolith is a complex endeavor; it requires careful planning and gradual implementation to avoid potential pitfalls.
Read at DEV Community
[
]
[
|
]