chore: add basic tsconfig.json

This commit is contained in:
WanCW 2025-04-25 19:50:32 +08:00
parent a1e58ca268
commit 82665f5e58
Signed by: wancw
GPG key ID: 1A22F8C8D1877952
3 changed files with 30 additions and 1 deletions

View file

@ -1,7 +1,7 @@
import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import './index.css'
import App from './App.jsx'
import App from './App.tsx'
createRoot(document.getElementById('root')).render(
<StrictMode>

29
tsconfig.json Normal file
View file

@ -0,0 +1,29 @@
{
"compileOnSave": false,
"compilerOptions": {
"jsx": "react",
"allowSyntheticDefaultImports": true,
"rootDir": ".",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"noFallthroughCasesInSwitch": true,
"useUnknownInCatchVariables": true,
"strict": true,
"strictNullChecks": true,
"noUncheckedIndexedAccess": true,
"strictPropertyInitialization": false,
"importHelpers": true,
"target": "ESNext",
"module": "ESNext",
"lib": ["ESNext", "dom"],
"skipLibCheck": true,
"skipDefaultLibCheck": true,
"baseUrl": ".",
"paths": {
}
},
"exclude": ["node_modules", "tmp"]
}