2021-12-30 14:15:40 +01:00
|
|
|
{
|
2021-12-31 11:38:06 +01:00
|
|
|
"compilerOptions": {
|
|
|
|
"moduleResolution": "node",
|
|
|
|
"module": "es2020",
|
|
|
|
"lib": ["es2020", "DOM"],
|
|
|
|
"target": "es2020",
|
|
|
|
/**
|
2021-12-30 14:15:40 +01:00
|
|
|
svelte-preprocess cannot figure out whether you have a value or a type, so tell TypeScript
|
|
|
|
to enforce using \`import type\` instead of \`import\` for Types.
|
|
|
|
*/
|
2021-12-31 11:38:06 +01:00
|
|
|
"importsNotUsedAsValues": "error",
|
|
|
|
"isolatedModules": true,
|
|
|
|
"resolveJsonModule": true,
|
|
|
|
/**
|
2021-12-30 14:15:40 +01:00
|
|
|
To have warnings/errors of the Svelte compiler at the correct position,
|
|
|
|
enable source maps by default.
|
|
|
|
*/
|
2021-12-31 11:38:06 +01:00
|
|
|
"sourceMap": true,
|
|
|
|
"esModuleInterop": true,
|
|
|
|
"skipLibCheck": true,
|
|
|
|
"forceConsistentCasingInFileNames": true,
|
|
|
|
"baseUrl": ".",
|
|
|
|
"allowJs": true,
|
|
|
|
"checkJs": true,
|
|
|
|
"paths": {
|
|
|
|
"$lib": ["src/lib"],
|
|
|
|
"$lib/*": ["src/lib/*"]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"include": ["src/**/*.d.ts", "src/**/*.js", "src/**/*.ts", "src/**/*.svelte"]
|
2021-12-30 14:15:40 +01:00
|
|
|
}
|