Design Patterns · Senior · Question 10 of 75
How do you automatically enforce architectural import rules (e.g. FSD layers)?
- ✓Correct answer: With boundary linters in CI (dependency-cruiser, Steiger)
- 2Only through code review - it can't be automated
- 3With TypeScript
strict, which forbids such imports
Explanation
Rules like "features don't import widgets" and "no cycles" are checked in CI. Without automation, architecture degrades over time. TypeScript doesn't check layers by itself.