diff options
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"] +} |
