We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc798c1 commit 0949fe5Copy full SHA for 0949fe5
README.md
@@ -1210,6 +1210,21 @@ To make sure everyone in the team adheres to defined architectural practices, us
1210
1211
For example:
1212
1213
+```typescript
1214
+ // Dependency cruiser example
1215
+ {
1216
+ name: 'no-domain-to-app-deps',
1217
+ comment: 'Domain layer cannot depend on application layer',
1218
+ severity: 'error',
1219
+ from: { path: 'domain' },
1220
+ to: { path: ['application'] },
1221
+ },
1222
+```
1223
+
1224
+Snippet of code above will prevent your domain layer to depend on the application layer.
1225
1226
+Example tools:
1227
1228
- [Dependency cruiser](https://github.com/sverweij/dependency-cruiser) - Validate and visualize dependencies for JavaScript / TypeScript.
1229
- [ArchUnit](https://www.archunit.org/) - library for checking the architecture of Java applications
1230
0 commit comments