Enforce module boundaries rule

The @nx/enforce-module-boundaries ESLint rule enables you to define strict rules for accessing resources between different projects in the repository. Enforcing strict boundaries helps to prevent unplanned cross-dependencies.

Usage

You can use the enforce-module-boundaries rule by adding it to your ESLint rules configuration:

1 { 2 // ... more ESLint config here 3 "overrides" : [ 5 "files" : [ "*.ts" , "*.tsx" , "*.js" , "*.jsx" ], 6 "rules" : { 7 "@nx/enforce-module-boundaries" : [ 8 "error" , 10 // ...rule specific configuration