Skip to content

Commit

Permalink
merge pull request #22 from guiseek/dependency-rules
Browse files Browse the repository at this point in the history
lint rules deps constraints
  • Loading branch information
hallisonbrancalhao authored Jun 24, 2023
2 parents e47da20 + 8bbdfd6 commit 88e715c
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 6 deletions.
43 changes: 41 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,47 @@
"allow": [],
"depConstraints": [
{
"sourceTag": "*",
"onlyDependOnLibsWithTags": ["*"]
"sourceTag": "type:app",
"onlyDependOnLibsWithTags": ["type:feature", "type:data-access"]
},
{
"sourceTag": "type:data-access",
"onlyDependOnLibsWithTags": ["type:util", "type:domain"]
},
{
"sourceTag": "type:shell",
"onlyDependOnLibsWithTags": [
"type:feature",
"type:data-access, type:ui, type:util"
]
},
{
"sourceTag": "scope:product",
"onlyDependOnLibsWithTags": ["scope:shared", "scope:product"]
},
{
"sourceTag": "type:feature",
"onlyDependOnLibsWithTags": [
"type:util",
"type:ui",
"type:data-access"
]
},
{
"sourceTag": "type:domain",
"onlyDependOnLibsWithTags": ["type:util", "type:api"]
},
{
"sourceTag": "type:ui",
"onlyDependOnLibsWithTags": ["type:util", "type:ui"]
},
{
"sourceTag": "type:util",
"onlyDependOnLibsWithTags": ["scope:util"]
},
{
"sourceTag": "type:api",
"onlyDependOnLibsWithTags": ["scope:api"]
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion apps/getlab/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"projectType": "application",
"prefix": "getlab",
"sourceRoot": "apps/getlab/src",
"tags": [],
"tags": ["type:app"],
"targets": {
"build": {
"executor": "@angular-devkit/build-angular:browser",
Expand Down
2 changes: 1 addition & 1 deletion libs/data-access/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@
}
}
},
"tags": []
"tags": ["type:data-access"]
}
2 changes: 1 addition & 1 deletion libs/domain/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@
}
}
},
"tags": []
"tags": ["type:domain"]
}
2 changes: 1 addition & 1 deletion libs/util-core/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@
}
}
},
"tags": []
"tags": ["type:util"]
}

0 comments on commit 88e715c

Please sign in to comment.