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) <noreply@anthropic.com>
This commit is contained in:
parent
2a94af5655
commit
258e1bb5e5
2 changed files with 2 additions and 2 deletions
|
|
@ -65,7 +65,7 @@ function RouteMapInner({
|
||||||
onWaypointPress,
|
onWaypointPress,
|
||||||
}: RouteMapProps) {
|
}: RouteMapProps) {
|
||||||
const ML = MapLibreGL!;
|
const ML = MapLibreGL!;
|
||||||
const cameraRef = useRef<MapLibreRN.CameraRef>(null);
|
const cameraRef = useRef<MapLibreGL.CameraRef>(null);
|
||||||
|
|
||||||
const handleLongPress = useCallback(
|
const handleLongPress = useCallback(
|
||||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import tseslint from "typescript-eslint";
|
||||||
import prettier from "eslint-config-prettier";
|
import prettier from "eslint-config-prettier";
|
||||||
|
|
||||||
export default tseslint.config(
|
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,
|
js.configs.recommended,
|
||||||
...tseslint.configs.recommended,
|
...tseslint.configs.recommended,
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue