mirror of
https://github.com/tiennm99/ai-coding-workflow-labs.git
synced 2026-09-15 02:18:20 +00:00
Convert all 41 TypeScript source/config files in cc4e-course/quiz-project (Next.js), gstack (Astro), and superpowers (Vite/React/Phaser) to plain JavaScript with JSDoc type annotations, replacing tsconfig.json with jsconfig.json (strict + checkJs) in each subproject. No behavior changes: lint, typecheck, test, and build gates match their TypeScript baselines exactly in all three subprojects. Update stack references in the affected READMEs accordingly.
36 lines
1.0 KiB
JSON
36 lines
1.0 KiB
JSON
{
|
|
"compilerOptions": {
|
|
"checkJs": true,
|
|
"allowJs": true,
|
|
"target": "ES2022",
|
|
"useDefineForClassFields": true,
|
|
"lib": ["ES2023", "DOM", "DOM.Iterable"],
|
|
"module": "ESNext",
|
|
"skipLibCheck": true,
|
|
|
|
/* Bundler mode */
|
|
"moduleResolution": "bundler",
|
|
"isolatedModules": true,
|
|
"moduleDetection": "force",
|
|
"noEmit": true,
|
|
"jsx": "react-jsx",
|
|
|
|
/* Linting */
|
|
"strict": true,
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"noUncheckedSideEffectImports": true,
|
|
|
|
/* jsconfig.json defaults maxNodeModuleJsDepth to 2 (vs. 0 for
|
|
tsconfig.json); left at 2 it makes checkJs walk into untyped
|
|
node_modules JS packages (e.g. jsdom, pulled in transitively via
|
|
vitest's own type declarations) and fail on their internals. Pin it
|
|
back to the standard default. */
|
|
"maxNodeModuleJsDepth": 0,
|
|
|
|
"types": ["vite/client", "vitest/globals"]
|
|
},
|
|
"include": ["src", "tests", "vite.config.js"]
|
|
}
|