@setoelkahfi / svara / commits / 8b005db

Added some configs

mellobacon committed Nov 24, 2022 at 15:06 UTC 8b005db67999c6ba30a81429dece5fc065e54468
3 files changed +33 -4
svelte.config.js new
+7
@@ -0,0 +1,7 @@
1 +import sveltePreprocess from "svelte-preprocess";
2 +
3 +export default {
4 + // Consult https://github.com/sveltejs/svelte-preprocess
5 + // for more information about preprocessors
6 + preprocess: sveltePreprocess(),
7 +};
tsconfig.json
+17 -4
@@ -1,8 +1,21 @@
1 {
2 "extends": "@tsconfig/svelte/tsconfig.json",
3 - "include": ["src/**/*"],
4 - "exclude": ["node_modules/*", "__sapper__/*", "public/*"],
3 "compilerOptions": {
4 + "target": "ESNext",
5 + "useDefineForClassFields": true,
6 + "module": "ESNext",
7 "resolveJsonModule": true,
7 - }
8 -}
\ No newline at end of file
8 + "baseUrl": ".",
9 + /**
10 + * Typecheck JS in `.svelte` and `.js` files by default.
11 + * Disable checkJs if you'd like to use dynamic types in JS.
12 + * Note that setting allowJs false does not prevent the use
13 + * of JS in `.svelte` files.
14 + */
15 + "allowJs": true,
16 + "checkJs": true,
17 + "isolatedModules": true
18 + },
19 + "include": ["src/**/*.d.ts", "src/**/*.ts", "src/**/*.js", "src/**/*.svelte"],
20 + "references": [{ "path": "./tsconfig.node.json" }]
21 +}
tsconfig.node.json new
+9
@@ -0,0 +1,9 @@
1 +{
2 + "compilerOptions": {
3 + "composite": true,
4 + "module": "ESNext",
5 + "moduleResolution": "Node"
6 + },
7 + "include": ["vite.config.ts"]
8 + }
9 +
\ No newline at end of file