From ad6eb20bcf525ff613ed1cc858caaeb345786549 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20=C5=BDdila?= Date: Fri, 8 Dec 2023 09:09:22 +0100 Subject: [PATCH] cleanup --- .prettierrc | 3 ++- style/index.tsx | 1 - style/routes.tsx | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.prettierrc b/.prettierrc index 963354f..856eb3e 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,3 +1,4 @@ { - "printWidth": 120 + "printWidth": 120, + "trailingComma": "all" } diff --git a/style/index.tsx b/style/index.tsx index 9f9ee2a..7b7b81f 100644 --- a/style/index.tsx +++ b/style/index.tsx @@ -47,7 +47,6 @@ import { WaterArea } from "./WaterArea"; import { WaterAreaNames } from "./WaterAreaNames"; import { WaterLine } from "./WaterLine"; import { WaterLineNames } from "./WaterLineNames"; -import { GdalLayer } from "./GdalLayer"; const dbParams = config.get("db") as Record; const contoursCfg = config.get("mapFeatures.contours") as boolean; diff --git a/style/routes.tsx b/style/routes.tsx index 3954384..33d1a37 100644 --- a/style/routes.tsx +++ b/style/routes.tsx @@ -221,7 +221,6 @@ export async function initIcons() { return Promise.all( Object.entries(colorMap).map(([color, colorValue]) => Promise.all([ - // TODO u fs.writeFile(path.resolve(tmpdir(), `ski-${color}.svg`), String(skiSvg).replaceAll("#ff00ff", colorValue)), fs.writeFile(path.resolve(tmpdir(), `horse-${color}.svg`), String(horseSvg).replaceAll("#ff00ff", colorValue)), ]),