mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-03 05:45:04 +03:00
- Rename 254 .js files to .ts (domain, lib, services, stores, API routes, etc.) - Rename 133 .js files to .tsx (components, pages, layouts) - Fix ~230 import references (remove .js extensions from internal imports) - Fix 10 open-sse cross-references to @/lib/ and ../../src/ paths - Add TypeScript interfaces to Card, Modal, Button, and notificationStore - Install tsx for test runner (handles extensionless .ts imports in Node ESM) - Update test:unit script to use tsx/esm loader - Update test imports from .js to .ts (20 files) - Add typescript.ignoreBuildErrors in next.config.mjs for gradual migration - Create src/types/global.d.ts for env vars and untyped modules - Update tsconfig.json (jsx: preserve, forceConsistentCasingInFileNames) Results: - Build: ✓ compiles in ~40s - Tests: ✓ 368/368 pass (100%) - Zero .js files remain in src/
54 lines
980 B
JSON
54 lines
980 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2022",
|
|
"lib": [
|
|
"dom",
|
|
"dom.iterable",
|
|
"esnext"
|
|
],
|
|
"allowJs": true,
|
|
"checkJs": false,
|
|
"skipLibCheck": true,
|
|
"strict": false,
|
|
"noEmit": true,
|
|
"esModuleInterop": true,
|
|
"module": "esnext",
|
|
"moduleResolution": "bundler",
|
|
"resolveJsonModule": true,
|
|
"isolatedModules": true,
|
|
"jsx": "react-jsx",
|
|
"incremental": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"paths": {
|
|
"@/*": [
|
|
"./src/*"
|
|
],
|
|
"@omniroute/open-sse": [
|
|
"./open-sse"
|
|
],
|
|
"@omniroute/open-sse/*": [
|
|
"./open-sse/*"
|
|
]
|
|
},
|
|
"plugins": [
|
|
{
|
|
"name": "next"
|
|
}
|
|
]
|
|
},
|
|
"include": [
|
|
"next-env.d.ts",
|
|
"**/*.ts",
|
|
"**/*.tsx",
|
|
"**/*.js",
|
|
"**/*.jsx",
|
|
".next/types/**/*.ts",
|
|
".next/dev/types/**/*.ts"
|
|
],
|
|
"exclude": [
|
|
"node_modules",
|
|
"open-sse",
|
|
"antigravity-manager-analysis"
|
|
]
|
|
}
|