- Modify tsconfig.json to relax strict type checking for gradual migration - Update test files to use more flexible type checking and mocking - Add type-safe mock and test utility functions - Improve error handling and type inference in test suites - Export Tool interface and tools list for better testing support
60 lines
1.2 KiB
JSON
60 lines
1.2 KiB
JSON
{
|
|
"compilerOptions": {
|
|
"target": "esnext",
|
|
"module": "esnext",
|
|
"lib": [
|
|
"esnext",
|
|
"dom"
|
|
],
|
|
"strict": false,
|
|
"strictNullChecks": false,
|
|
"strictFunctionTypes": false,
|
|
"strictPropertyInitialization": false,
|
|
"noImplicitAny": false,
|
|
"noImplicitThis": false,
|
|
"esModuleInterop": true,
|
|
"skipLibCheck": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"moduleResolution": "bundler",
|
|
"allowImportingTsExtensions": true,
|
|
"resolveJsonModule": true,
|
|
"isolatedModules": true,
|
|
"noEmit": true,
|
|
"jsx": "react-jsx",
|
|
"types": [
|
|
"bun-types",
|
|
"@types/node",
|
|
"@types/ws",
|
|
"@types/jsonwebtoken",
|
|
"@types/sanitize-html",
|
|
"@types/jest"
|
|
],
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"@/*": [
|
|
"./src/*"
|
|
],
|
|
"@test/*": [
|
|
"__tests__/*"
|
|
]
|
|
},
|
|
"experimentalDecorators": true,
|
|
"emitDecoratorMetadata": true,
|
|
"sourceMap": true,
|
|
"declaration": true,
|
|
"declarationMap": true,
|
|
"allowUnreachableCode": true,
|
|
"allowUnusedLabels": true,
|
|
"suppressImplicitAnyIndexErrors": true
|
|
},
|
|
"include": [
|
|
"src/**/*",
|
|
"__tests__/**/*",
|
|
"*.d.ts"
|
|
],
|
|
"exclude": [
|
|
"node_modules",
|
|
"dist",
|
|
"coverage"
|
|
]
|
|
} |