about summary refs log tree commit diff
path: root/client/tsconfig.json
diff options
context:
space:
mode:
authorMelonai <einebeere@gmail.com>2021-03-24 09:51:36 +0100
committerMelonai <einebeere@gmail.com>2021-03-24 09:51:36 +0100
commit42860fa15985401825d8d51e73ec497fe5876710 (patch)
treedaa43dd5f4ac77e46dbdd78b1a07811fa5db755c /client/tsconfig.json
parent5dde1f55d818a74e838afa37b0e20217b1549a83 (diff)
downloadshorest-42860fa15985401825d8d51e73ec497fe5876710.tar.zst
shorest-42860fa15985401825d8d51e73ec497fe5876710.zip
Update SvelteKit to public beta
Diffstat (limited to 'client/tsconfig.json')
-rw-r--r--client/tsconfig.json21
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"]
 }