angular-spotify icon indicating copy to clipboard operation
angular-spotify copied to clipboard

Suggestion: Define ESLint library type boundary constraints

Open labeled opened this issue 4 years ago • 4 comments

While this does use NX it does not seem to define the boundary constraints between library types. Many ui libraries are depending on data-access libraries and are outside of the scope nx suggests in their documentation that can be found here. Updating the "depConstraints" to match the suggested dependency constraints will cause eslint to fail. Dependency Constraints Feature Library -> can depend on any type of library. UI Library -> can only depend on other ui or util libraries. Data-access library -> can only depend on data-access and util libraries. Utility library -> can only depend on utility libraries.

labeled avatar Apr 15 '21 16:04 labeled

@labeled Thank you so much for the suggestion. I am aware of this, and as mentioned on the README, this is my first Nx project, so I want to get something out quickly. That's why I took some shortcuts to reuse the UI component in the same places and plug them directly into the data access.

That said, It would come in a few weeks. If you feel like you want to create a PR in the meantime, feel free. Thanks again :)

trungvose avatar Apr 16 '21 01:04 trungvose

The project doesn't have ESLint Boundary setup but most, if not all, libs already have tags defined so applying the boundary should be fairly straight-forward

nartc avatar Jul 03 '21 21:07 nartc

Please review my PR https://github.com/trungk18/angular-spotify/pull/77

leonlafa avatar Aug 12 '21 21:08 leonlafa

Thanks @leonlafa, I am looking into it 😁

trungvose avatar Aug 18 '21 13:08 trungvose