feature-sliced / steiger

Universal file structure and project architecture linter
https://www.npmjs.com/package/steiger
MIT License
18 stars 0 forks source link

Implement `no-forbidden-imports` #3

Closed illright closed 1 month ago

illright commented 2 months ago

Restrict imports within a single FSD root that violates the import rule on layers:

A module in a slice can only import other slices when they are located on layers strictly below. https://feature-sliced.design/docs/reference/layers#import-rule-on-layers