mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-04 20:28:04 +01:00
- tsconfig.json: exclude .test.tsx and .spec.tsx from type check (only .test.ts/.spec.ts were excluded, so .tsx test files got type-checked without jest/testing-library types available) - ci.yml: move NODE_ENV=production from job-level to Build step only (npm 10+ skips devDependencies when NODE_ENV=production, causing type-check and unit test steps to fail) - e2e-auth.yml: fix test file path (auth-flows.spec.ts doesn't exist, changed to login-only.spec.ts) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
55 lines
1.3 KiB
JSON
55 lines
1.3 KiB
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2020",
|
|
"lib": ["dom", "dom.iterable", "esnext"],
|
|
"allowJs": true,
|
|
"skipLibCheck": true,
|
|
"strict": true,
|
|
"noImplicitAny": true,
|
|
"strictNullChecks": true,
|
|
"strictFunctionTypes": true,
|
|
"noEmit": true,
|
|
"incremental": true,
|
|
"module": "esnext",
|
|
"esModuleInterop": true,
|
|
"moduleResolution": "node",
|
|
"resolveJsonModule": true,
|
|
"isolatedModules": true,
|
|
"jsx": "preserve",
|
|
"plugins": [
|
|
{
|
|
"name": "next"
|
|
}
|
|
],
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"@/*": ["src/*"],
|
|
"@/components/*": ["src/components/*"],
|
|
"@/lib/*": ["src/lib/*"],
|
|
"@/hooks/*": ["src/hooks/*"],
|
|
"@/types/*": ["src/types/*"],
|
|
"@/utils/*": ["src/utils/*"],
|
|
"@/services/*": ["src/services/*"],
|
|
"@/stores/*": ["src/stores/*"]
|
|
},
|
|
"forceConsistentCasingInFileNames": true,
|
|
"noImplicitReturns": true,
|
|
"noFallthroughCasesInSwitch": true
|
|
},
|
|
"include": ["next-env.d.ts", ".next/types/**/*.ts", "**/*.ts", "**/*.tsx", "jest.setup.ts"],
|
|
"exclude": [
|
|
"node_modules",
|
|
".next",
|
|
"dist",
|
|
"build",
|
|
"coverage",
|
|
"cypress",
|
|
"cypress.config.ts",
|
|
"playwright.config.ts",
|
|
"**/*.spec.ts",
|
|
"**/*.spec.tsx",
|
|
"**/*.test.ts",
|
|
"**/*.test.tsx"
|
|
]
|
|
}
|