chore(db): add query indexes migration and update project config
- Add database migration for missing query indexes on frequently filtered columns - Update Prisma schema - Update .env.example, eslint config, and dependency-cruiser config Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -88,6 +88,32 @@ export default tseslint.config(
|
||||
},
|
||||
},
|
||||
|
||||
// Module encapsulation: prevent cross-module internal imports
|
||||
// (excludes test files — tests may import internals directly for unit testing)
|
||||
{
|
||||
files: ['apps/api/src/modules/**/*.ts'],
|
||||
ignores: ['**/*.spec.ts', '**/*.test.ts', '**/__tests__/**'],
|
||||
rules: {
|
||||
'no-restricted-imports': [
|
||||
'error',
|
||||
{
|
||||
patterns: [
|
||||
{
|
||||
group: [
|
||||
'@modules/*/application/*',
|
||||
'@modules/*/domain/*',
|
||||
'@modules/*/infrastructure/*',
|
||||
'@modules/*/presentation/*',
|
||||
],
|
||||
message:
|
||||
'Import from the module barrel (@modules/<module>) instead of internal paths. This preserves module encapsulation.',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
// React/Next.js overrides for web app
|
||||
{
|
||||
files: ['apps/web/**/*.ts', 'apps/web/**/*.tsx'],
|
||||
|
||||
Reference in New Issue
Block a user