35 lines
1.2 KiB
JSON
35 lines
1.2 KiB
JSON
{
|
|
"compilerOptions": {
|
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
"target": "es2023",
|
|
"lib": ["ES2023", "DOM"],
|
|
"module": "esnext",
|
|
"types": ["vite/client"],
|
|
"allowArbitraryExtensions": true,
|
|
"skipLibCheck": true,
|
|
"typeRoots": ["./typings"],
|
|
// The "gameanalytics" package's own shipped .d.ts doesn't compile under strict mode (invalid
|
|
// `module` keyword usage, inconsistent export modifiers — see typings/gameanalytics.d.ts's
|
|
// header for the full story) and typeRoots alone doesn't override a package's own real types,
|
|
// only add extra global ones — this path mapping is what actually redirects every import of
|
|
// "gameanalytics" to our corrected local file instead.
|
|
"paths": {
|
|
"gameanalytics": ["./typings/gameanalytics.d.ts"]
|
|
},
|
|
|
|
/* Bundler mode */
|
|
"moduleResolution": "bundler",
|
|
"allowImportingTsExtensions": true,
|
|
"verbatimModuleSyntax": true,
|
|
"moduleDetection": "force",
|
|
"noEmit": true,
|
|
|
|
/* Linting */
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
"erasableSyntaxOnly": true,
|
|
"noFallthroughCasesInSwitch": true
|
|
},
|
|
"include": ["src"]
|
|
}
|