From 42860fa15985401825d8d51e73ec497fe5876710 Mon Sep 17 00:00:00 2001 From: Melonai Date: Wed, 24 Mar 2021 09:51:36 +0100 Subject: Update SvelteKit to public beta --- client/tsconfig.json | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'client/tsconfig.json') 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"] } -- cgit 1.4.1