Is there a library/automated approach to enforce the directions of imports/exports?

Found one library that looks promising: GitHub - sverweij/dependency-cruiser: Validate and visualize dependencies. Your rules. JavaScript, TypeScript, CoffeeScript. ES6, CommonJS, AMD.

2 Likes