mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2026-08-19 18:43:53 +08:00
40 lines
1.0 KiB
JSON
40 lines
1.0 KiB
JSON
{
|
|
"compilerOptions": {
|
|
// Environment setup & latest features
|
|
"lib": ["ESNext", "DOM"],
|
|
"target": "ESNext",
|
|
"module": "Preserve",
|
|
"moduleDetection": "force",
|
|
"jsx": "react-jsx",
|
|
"allowJs": true,
|
|
"types": ["preact"],
|
|
|
|
// Bundler mode
|
|
"moduleResolution": "bundler",
|
|
"allowImportingTsExtensions": true,
|
|
"verbatimModuleSyntax": true,
|
|
"noEmit": true,
|
|
|
|
// Best practices
|
|
"strict": true,
|
|
"skipLibCheck": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"noUncheckedIndexedAccess": true,
|
|
"noImplicitOverride": true,
|
|
"jsxImportSource": "preact",
|
|
"paths": {
|
|
"@/*": ["./src/*"],
|
|
"@assets/*": ["./assets/*"],
|
|
"react": ["./node_modules/preact/compat/"],
|
|
"react-dom": ["./node_modules/preact/compat/"]
|
|
},
|
|
|
|
// Some stricter flags (disabled by default)
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
"noPropertyAccessFromIndexSignature": false,
|
|
"noImplicitAny": true
|
|
},
|
|
"include": ["node_modules/vite/client.d.ts", "**/*"]
|
|
}
|