Files
actual/tsconfig.json
Matt Fiddaman a4e401bc8b fix build error with typescript v6 (#7524)
* fix tsconfig error

* note

* fix strict mode violation

* fix another type issue
2026-04-17 20:52:44 +00:00

60 lines
1.5 KiB
JSON

{
"references": [
{ "path": "./packages/crdt" },
{ "path": "./packages/component-library" },
{ "path": "./packages/plugins-service" },
{ "path": "./packages/loot-core" },
{ "path": "./packages/api" },
{ "path": "./packages/desktop-client" },
{ "path": "./packages/sync-server" },
{ "path": "./packages/desktop-electron" },
{ "path": "./packages/cli" }
],
"compilerOptions": {
"target": "ES2022",
"lib": ["ES2022", "DOM", "DOM.Iterable"],
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"experimentalDecorators": true,
"resolveJsonModule": true,
// TODO: enable once every file is ts
// "strict": true,
"strictFunctionTypes": true,
"noFallthroughCasesInSwitch": true,
"skipLibCheck": true,
"jsx": "preserve",
"types": ["vite/client", "vitest/globals"],
// Check JS files too
"allowJs": true,
"checkJs": false,
// Used for temp builds
"outDir": "build",
"moduleResolution": "bundler",
"module": "es2022",
// Until/if we build using tsc
"noEmit": true
},
"include": ["bin/*.ts"],
"exclude": [
"**/.*/",
"node_modules",
"**/node_modules/*",
"**/build/*",
"**/build-electron/*",
"**/client-build/*",
"**/dist/*",
"**/lib-dist/*",
"packages/*/@types",
"**/test-results/*",
"**/playwright-report/*",
"**/service-worker/*",
"packages/docs/**/*"
],
"ts-node": {
"compilerOptions": {
"module": "CommonJS",
"types": ["node"]
}
}
}