Establish frontend type checking
This commit is contained in:
+3
-1
@@ -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",
|
||||
|
||||
@@ -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' }}
|
||||
/>
|
||||
</>
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
@@ -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" }]
|
||||
|
||||
Reference in New Issue
Block a user