Establish frontend type checking

This commit is contained in:
b0txec
2026-08-21 10:18:52 +03:00
parent 5007517129
commit 9dbd2ff3a5
4 changed files with 8 additions and 5 deletions
+3 -1
View File
@@ -6,9 +6,11 @@
"scripts": {
"dev": "vite",
"build": "vite build --mode production",
"serve": "vite preview"
"serve": "vite preview",
"typecheck": "tsc --noEmit"
},
"devDependencies": {
"@types/node": "^22.10.2",
"@types/chart.js": "^2.9.41",
"typescript": "^5.7.3",
"typescript-plugin-css-modules": "^5.1.0",
+2 -1
View File
@@ -63,6 +63,7 @@ export const CsvMapData: Component<{
[img, arrowImg],
getCityData(),
tmpWindData,
['', ''],
resolutionProps.map_3840x1440_wind,
)
}
@@ -77,4 +78,4 @@ export const CsvMapData: Component<{
style={{ 'width': '1000px', 'height': '374px' }}
/>
</>
}
}
+1 -1
View File
@@ -34,7 +34,7 @@ export function Faktiska() {
next[observation.city] = observation.value == null ? "" : observation.value.toString();
});
setValues(next);
setOverrides(new Set());
setOverrides(new Set<FaktiskaStation>());
});
const observationsByCity = () => new Map((latest() ?? []).map(item => [item.city, item]));
+2 -2
View File
@@ -3,12 +3,12 @@
"strict": true,
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "node",
"moduleResolution": "bundler",
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"jsx": "preserve",
"jsxImportSource": "solid-js",
"types": ["vite/client"],
"types": ["vite/client", "node"],
"noEmit": true,
"isolatedModules": true,
"plugins": [{ "name": "typescript-plugin-css-modules" }]