From 258e1bb5e5b4e6284eb2bbcbe1d156f38d1e81df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ullrich=20Sch=C3=A4fer?= Date: Fri, 17 Apr 2026 22:26:38 +0200 Subject: [PATCH] Fix CI on main: RouteMap typecheck + metro.config lint - RouteMap.tsx referenced undefined MapLibreRN namespace, causing typecheck to fail on main and in every downstream PR - metro.config.js is CommonJS, exclude from ESLint flat config Changes that were pushed directly to main earlier bypassed CI and broke both typecheck and lint. Co-Authored-By: Claude Opus 4.6 (1M context) --- apps/mobile/lib/editor/RouteMap.tsx | 2 +- eslint.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/mobile/lib/editor/RouteMap.tsx b/apps/mobile/lib/editor/RouteMap.tsx index 409580f..49c177d 100644 --- a/apps/mobile/lib/editor/RouteMap.tsx +++ b/apps/mobile/lib/editor/RouteMap.tsx @@ -65,7 +65,7 @@ function RouteMapInner({ onWaypointPress, }: RouteMapProps) { const ML = MapLibreGL!; - const cameraRef = useRef(null); + const cameraRef = useRef(null); const handleLongPress = useCallback( // eslint-disable-next-line @typescript-eslint/no-explicit-any diff --git a/eslint.config.js b/eslint.config.js index bed5d97..2df196e 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -3,7 +3,7 @@ import tseslint from "typescript-eslint"; import prettier from "eslint-config-prettier"; export default tseslint.config( - { ignores: ["**/build/", "**/dist/", "**/.react-router/", "**/.expo/", "**/node_modules/"] }, + { ignores: ["**/build/", "**/dist/", "**/.react-router/", "**/.expo/", "**/node_modules/", "**/metro.config.js"] }, js.configs.recommended, ...tseslint.configs.recommended, {