Enforce module boundaries via project.json eslint rule #23415
Replies: 3 comments 1 reply
-
This issue has been automatically marked as stale because it hasn't had any activity for 6 months. |
Beta Was this translation helpful? Give feedback.
-
Still valid |
Beta Was this translation helpful? Give feedback.
-
I think this is valuable. The core team has been thinking of taking this behavior outside of ESLint so that it can support dependencies to projects of different languages. How would people like to see this implemented? |
Beta Was this translation helpful? Give feedback.
-
Description
Add an
@nx/enforce-module-boundaries
rule equivalent that runs onproject.json
filesMotivation
Project dependencies can be added via
implicitDependencies
orcreateDependencies
that violate dependency constraints. These bad dependencies will not be caught automatically because there is no typescript import associated with them. By having a rule that runs onproject.json
files it'll flag all dependency issues regardless of how the dependencies got addedSuggested Implementation
Most of the code can likely be refactored out and shared across rules
Alternate Implementations
Beta Was this translation helpful? Give feedback.
All reactions