diff options
| author | Maksymilian <maks@jopek.eu> | 2022-09-23 09:44:56 +0200 |
|---|---|---|
| committer | Maksymilian <maks@jopek.eu> | 2022-09-23 09:44:56 +0200 |
| commit | 8886308c56223f04df535a065234414a6deb11ba (patch) | |
| tree | bf432ab5e6a4ae754c4017bd9e0e663c25ccc055 /jsconfig.json | |
| download | svelte-pokeapi-8886308c56223f04df535a065234414a6deb11ba.tar.gz svelte-pokeapi-8886308c56223f04df535a065234414a6deb11ba.tar.zst svelte-pokeapi-8886308c56223f04df535a065234414a6deb11ba.zip | |
Diffstat (limited to 'jsconfig.json')
| -rw-r--r-- | jsconfig.json | 33 |
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"] +} |
