{
  "compilerOptions": {
    // Path aliases for cleaner imports
    "baseUrl": ".", // Add this line
    "paths": {
      "@/*": [
        "./src/*"
      ]
    },
    // Target and module configuration
    "target": "es2017",
    "lib": [
      "dom",
      "dom.iterable",
      "esnext"
    ],
    "module": "esnext",
    "moduleResolution": "node",
    // TypeORM requires these settings
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    // Build options
    "outDir": "./build",
    "sourceMap": true,
    "noEmit": true,
    "incremental": true,
    // JavaScript support
    "allowJs": true,
    "skipLibCheck": true,
    // Import handling
    "esModuleInterop": true,
    "resolveJsonModule": true,
    "isolatedModules": true,
    // Type checking (balanced for performance)
    "strict": false,
    "noImplicitAny": false,
    "forceConsistentCasingInFileNames": true,
    "noUncheckedIndexedAccess": false,
    "noPropertyAccessFromIndexSignature": false,
    // JSX support
    "jsx": "preserve",
    // Next.js plugin
    "plugins": [
      {
        "name": "next"
      }
    ]
  },
  "include": [
    "**/*.ts",
    "**/*.tsx",
    "src/database/entity/**/*.ts",
    "src/data-source.ts",
    ".next/types/**/*.ts"
  ],
  "exclude": [
    "node_modules",
    ".next",
    "out",
    "build",
    "dist",
    "coverage",
    "**/*.spec.ts",
    "**/*.test.ts",
    "cypress/**/*.ts"
  ]
}
