aboutsummaryrefslogtreecommitdiffstats
path: root/jsconfig.json
diff options
context:
space:
mode:
authorMaksymilian <maks@jopek.eu>2022-09-23 09:44:56 +0200
committerMaksymilian <maks@jopek.eu>2022-09-23 09:44:56 +0200
commit8886308c56223f04df535a065234414a6deb11ba (patch)
treebf432ab5e6a4ae754c4017bd9e0e663c25ccc055 /jsconfig.json
downloadsvelte-pokeapi-master.tar.gz
svelte-pokeapi-master.tar.zst
svelte-pokeapi-master.zip
Initial commit, v1.0.0HEADmaster
Diffstat (limited to 'jsconfig.json')
-rw-r--r--jsconfig.json33
1 files changed, 33 insertions, 0 deletions
diff --git a/jsconfig.json b/jsconfig.json
new file mode 100644
index 0000000..69e2811
--- /dev/null
+++ b/jsconfig.json
@@ -0,0 +1,33 @@
+{
+ "compilerOptions": {
+ "moduleResolution": "node",
+ "target": "esnext",
+ "module": "esnext",
+ /**
+ * 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": ".",
+ /**
+ * Typecheck JS in `.svelte` and `.js` files by default.
+ * Disable this if you'd like to use dynamic types.
+ */
+ "checkJs": true
+ },
+ /**
+ * Use globals.d.ts instead of compilerOptions.types
+ * to avoid limiting type declarations.
+ */
+ "include": ["globals.d.ts", "src/**/*.js", "src/**/*.svelte"]
+}