api client refactor

This commit is contained in:
2025-12-17 18:01:47 +01:00
parent bab55955e1
commit 4177644b18
190 changed files with 6403 additions and 1624 deletions

View File

@@ -72,6 +72,27 @@
}
]
}
],
"import/no-restricted-imports": [
2,
{
"paths": [
{
"name": "apps/website/lib/apiClient",
"message": "Direct imports from apiClient are forbidden. Use services instead."
},
{
"name": "apps/website/lib/dtos",
"message": "Direct imports from dtos in UI components are forbidden. Use ViewModels instead.",
"from": ["apps/website/app/**/*", "apps/website/components/**/*"]
},
{
"name": "apps/website/lib/api",
"message": "Direct imports from api/* in UI components are forbidden. Use services instead.",
"from": ["apps/website/app/**/*", "apps/website/components/**/*"]
}
]
}
]
}
}