feature-sliced / steiger

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

Implement `no-circular-imports` #87

Open illright opened 3 weeks ago

illright commented 3 weeks ago

This should probably be implemented outside of the FSD plugin, since it's not exclusive to FSD. I'm not sure if it's best to create another native plugin or have this rule in "Steiger core"

The idea of this rule is simple — prevent circular imports (when A imports from B, but B imports from A, or maybe A -> B -> C -> ... -> A).

illright commented 3 weeks ago

We might be able to learn from this project — https://github.com/antoine-coulon/skott