5573ece848
Migrate the satellite admin UI web app from the Svelte template used to generate a Svelte App scaffolding to SvelteKit. There aren't any functional changes in the application, however, the commit has a lot because: 1. SvelteKit uses a different directory layout and constraints to it, so the files have been moved. 2. The files have changed its formatting due to the new default linter configurations that SvelteKit uses. 3. The linter detected some issues with using `object` and `any` types in Typescript, so they have been replaced by better general types (e.g. Record). The migration allows to use the new tooling rather than Rollup directly, besides that will empower the future of it when it needs more features (e.g. different routes, etc.). Change-Id: Ifa6736c13585708337f6c5a59388077b784eaddd
32 lines
840 B
JSON
32 lines
840 B
JSON
{
|
|
"compilerOptions": {
|
|
"moduleResolution": "node",
|
|
"module": "es2020",
|
|
"lib": ["es2020", "DOM"],
|
|
"target": "es2020",
|
|
/**
|
|
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,
|
|
"resolveJsonModule": 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": {
|
|
"$lib": ["src/lib"],
|
|
"$lib/*": ["src/lib/*"]
|
|
}
|
|
},
|
|
"include": ["src/**/*.d.ts", "src/**/*.js", "src/**/*.ts", "src/**/*.svelte"]
|
|
}
|