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 `public-api` #6

Closed illright closed 1 month ago

illright commented 2 months ago

Require slices (or segments on sliceless layers) to have a public API.

Every slice (and segment on layers that don't have slices) must contain a public API definition. https://feature-sliced.design/docs/reference/slices-segments#public-api-rule-on-slices

Pay attention that some people prefer to have several entry points to shared/ui to help with tree-shaking and some people also like having the public API on segments in sliced layers.