Establish frontend type checking
This commit is contained in:
+3
-1
@@ -6,9 +6,11 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vite build --mode production",
|
"build": "vite build --mode production",
|
||||||
"serve": "vite preview"
|
"serve": "vite preview",
|
||||||
|
"typecheck": "tsc --noEmit"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@types/node": "^22.10.2",
|
||||||
"@types/chart.js": "^2.9.41",
|
"@types/chart.js": "^2.9.41",
|
||||||
"typescript": "^5.7.3",
|
"typescript": "^5.7.3",
|
||||||
"typescript-plugin-css-modules": "^5.1.0",
|
"typescript-plugin-css-modules": "^5.1.0",
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ export const CsvMapData: Component<{
|
|||||||
[img, arrowImg],
|
[img, arrowImg],
|
||||||
getCityData(),
|
getCityData(),
|
||||||
tmpWindData,
|
tmpWindData,
|
||||||
|
['', ''],
|
||||||
resolutionProps.map_3840x1440_wind,
|
resolutionProps.map_3840x1440_wind,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ export function Faktiska() {
|
|||||||
next[observation.city] = observation.value == null ? "" : observation.value.toString();
|
next[observation.city] = observation.value == null ? "" : observation.value.toString();
|
||||||
});
|
});
|
||||||
setValues(next);
|
setValues(next);
|
||||||
setOverrides(new Set());
|
setOverrides(new Set<FaktiskaStation>());
|
||||||
});
|
});
|
||||||
|
|
||||||
const observationsByCity = () => new Map((latest() ?? []).map(item => [item.city, item]));
|
const observationsByCity = () => new Map((latest() ?? []).map(item => [item.city, item]));
|
||||||
|
|||||||
+2
-2
@@ -3,12 +3,12 @@
|
|||||||
"strict": true,
|
"strict": true,
|
||||||
"target": "ESNext",
|
"target": "ESNext",
|
||||||
"module": "ESNext",
|
"module": "ESNext",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "bundler",
|
||||||
"allowSyntheticDefaultImports": true,
|
"allowSyntheticDefaultImports": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"jsx": "preserve",
|
"jsx": "preserve",
|
||||||
"jsxImportSource": "solid-js",
|
"jsxImportSource": "solid-js",
|
||||||
"types": ["vite/client"],
|
"types": ["vite/client", "node"],
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"plugins": [{ "name": "typescript-plugin-css-modules" }]
|
"plugins": [{ "name": "typescript-plugin-css-modules" }]
|
||||||
|
|||||||
Reference in New Issue
Block a user