Design Patterns · Senior · Question 10 of 75

How do you automatically enforce architectural import rules (e.g. FSD layers)?

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.

Further reading

Problem with a question

Design Patterns · Senior · question 10

Test yourself

Take the Design Patterns · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz