refactor: enforce repository boundary in application (WealthLedger/backend#171)
Backend verify / commits (pull_request) Successful in 1m29s
Backend verify / security (pull_request) Successful in 1m5s
Backend verify / verify (pull_request) Successful in 6m13s
Backend verify / commits (push) Skipped
Backend verify / security (push) Successful in 1m11s
Backend verify / verify (push) Failing after 7m34s

This commit was merged in pull request #192.
This commit is contained in:
2026-11-04 22:29:01 +03:00
parent 61c55256e7
commit e3ecb8c15e
7 changed files with 27 additions and 22 deletions
+3 -2
View File
@@ -158,13 +158,14 @@ export default defineConfig(
},
},
{
files: ['src/**/*.use-case.ts'],
files: ['src/**/application/**/*.ts'],
ignores: tests,
rules: {
'no-restricted-imports': ['error', {
patterns: [{
group: prismaImports,
message: 'Use cases obtain data through concrete repositories.',
allowTypeImports: true,
message: 'Application code obtains data through concrete repositories; type-only imports are allowed.',
}],
}],
},