mirror of
https://github.com/Queer-Lexikon/regenbogenkarte
synced 2024-11-21 19:53:07 +00:00
Enable typechecks (#155)
This commit is contained in:
parent
11613e045a
commit
b74246398e
5 changed files with 242 additions and 1721 deletions
4
asset-imports.ts
Normal file
4
asset-imports.ts
Normal file
|
@ -0,0 +1,4 @@
|
|||
declare module "*.svg" {
|
||||
const content: string;
|
||||
export default content;
|
||||
}
|
1944
package-lock.json
generated
1944
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -5,8 +5,10 @@
|
|||
"main": "main.js",
|
||||
"scripts": {
|
||||
"dev": "vite dev",
|
||||
"build": "vite build",
|
||||
"build": "run-s typecheck build_only",
|
||||
"build_only": "vite build",
|
||||
"preview": "vite preview",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"lint": "prettier --ignore-path .gitignore --check --plugin-search-dir=. .",
|
||||
"format": "prettier --ignore-path .gitignore --write --plugin-search-dir=. .",
|
||||
"test": "playwright test"
|
||||
|
@ -27,13 +29,16 @@
|
|||
"@types/leaflet": "^1.9.12",
|
||||
"@types/leaflet.markercluster": "^1.5.4",
|
||||
"autoprefixer": "^10.4.19",
|
||||
"npm-run-all2": "^6.2.2",
|
||||
"postcss": "^8.4.39",
|
||||
"prettier": "^3.3.3",
|
||||
"tailwindcss": "^3.4.6",
|
||||
"typescript": "^5.5.4",
|
||||
"vite": "^5.3.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"@fontsource/ubuntu": "^5.0.13",
|
||||
"@types/node": "^20.14.12",
|
||||
"leaflet": "^1.9.4",
|
||||
"leaflet.markercluster": "^1.5.3"
|
||||
}
|
||||
|
|
|
@ -24,11 +24,11 @@ const config: PlaywrightTestConfig = {
|
|||
/* Run tests in files in parallel */
|
||||
fullyParallel: true,
|
||||
/* Fail the build on CI if you accidentally left test.only in the source code. */
|
||||
forbidOnly: !!process.env.CI,
|
||||
forbidOnly: !!process.env["CI"],
|
||||
/* Retry on CI only */
|
||||
retries: process.env.CI ? 2 : 0,
|
||||
retries: process.env["CI"] ? 2 : 0,
|
||||
/* Opt out of parallel tests on CI. */
|
||||
workers: process.env.CI ? 1 : undefined,
|
||||
workers: process.env["CI"] ? 1 : undefined,
|
||||
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
|
||||
reporter: "html",
|
||||
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
|
||||
|
|
|
@ -74,7 +74,7 @@ export async function initializeMap() {
|
|||
},
|
||||
});
|
||||
const data = await loadData();
|
||||
data.forEach((row) => {
|
||||
data.forEach((row: Organisation) => {
|
||||
const marker = createMarker(row);
|
||||
if (marker) markers.addLayer(marker);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue