diff options
| author | Melonai <einebeere@gmail.com> | 2021-03-24 09:51:36 +0100 |
|---|---|---|
| committer | Melonai <einebeere@gmail.com> | 2021-03-24 09:51:36 +0100 |
| commit | 42860fa15985401825d8d51e73ec497fe5876710 (patch) | |
| tree | daa43dd5f4ac77e46dbdd78b1a07811fa5db755c /client/tsconfig.json | |
| parent | 5dde1f55d818a74e838afa37b0e20217b1549a83 (diff) | |
| download | shorest-42860fa15985401825d8d51e73ec497fe5876710.tar.zst shorest-42860fa15985401825d8d51e73ec497fe5876710.zip | |
Update SvelteKit to public beta
Diffstat (limited to 'client/tsconfig.json')
| -rw-r--r-- | client/tsconfig.json | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/client/tsconfig.json b/client/tsconfig.json index b6006c8..61c13a0 100644 --- a/client/tsconfig.json +++ b/client/tsconfig.json @@ -1,21 +1,28 @@ { "compilerOptions": { "moduleResolution": "node", - "target": "es2017", + "target": "es2018", + /** + 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. + */ "importsNotUsedAsValues": "error", "isolatedModules": true, + /** + To have warnings/errors of the Svelte compiler at the correct position, + enable source maps by default. + */ "sourceMap": true, "esModuleInterop": true, "skipLibCheck": true, "forceConsistentCasingInFileNames": true, "baseUrl": ".", + "allowJs": true, + "checkJs": true, "paths": { - "$components/*": ["./src/components/*"], - "$actions/*": ["./src/actions/*"], - "$data/*": ["./src/data/*"], - "$utils/*": ["./src/utils/*"] + "$app/*": [".svelte/dev/runtime/app/*", ".svelte/build/runtime/app/*"], + "$lib/*": ["src/lib/*"] } }, - "include": ["src/**/*"], - "exclude": ["node_modules/*", ".svelte"] + "include": ["src/**/*.d.ts", "src/**/*.js", "src/**/*.ts", "src/**/*.svelte"] } |
