fix issues in core
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
"sourceType": "module",
|
||||
"ecmaVersion": 2022
|
||||
},
|
||||
"ignorePatterns": ["**/dist/**", "**/*.d.ts"],
|
||||
"settings": {
|
||||
"import/resolver": {
|
||||
"typescript": {}
|
||||
@@ -83,6 +84,54 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": ["core/**/application/dto/**/*.ts", "core/**/application/dtos/**/*.ts"],
|
||||
"rules": {
|
||||
"no-restricted-syntax": [
|
||||
"error",
|
||||
{
|
||||
"selector": "Program",
|
||||
"message": "core/*/application/dto is forbidden. Use application result models + output ports; DTOs belong in API/website layers."
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": ["core/**/infrastructure/**/*.ts"],
|
||||
"rules": {
|
||||
"no-restricted-syntax": [
|
||||
"error",
|
||||
{
|
||||
"selector": "Program",
|
||||
"message": "core/*/infrastructure is forbidden. Implementations must live in adapters/ and be wired in apps/."
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": ["core/**/domain/ports/**/*.ts"],
|
||||
"rules": {
|
||||
"no-restricted-syntax": [
|
||||
"error",
|
||||
{
|
||||
"selector": "Program",
|
||||
"message": "core/*/domain/ports is forbidden. Ports belong in application/ports (or shared application layer), not domain."
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": ["core/**/shared/presentation/**/*.ts"],
|
||||
"rules": {
|
||||
"no-restricted-syntax": [
|
||||
"error",
|
||||
{
|
||||
"selector": "Program",
|
||||
"message": "core/shared/presentation is forbidden. Presentation belongs in API or website layers."
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": ["apps/website/**/*.ts"],
|
||||
"rules": {
|
||||
|
||||
Reference in New Issue
Block a user