From 7b8cd409bb14d4d5e90ee7302e79be722685b85a Mon Sep 17 00:00:00 2001 From: yuiseki Date: Sat, 3 Jan 2026 09:41:30 +0900 Subject: [PATCH] fix: Adjust formatting and linting for GlobeControl component --- .../react-maplibre/src/components/globe-control.ts | 14 +++++++------- modules/react-maplibre/src/types/lib.ts | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/react-maplibre/src/components/globe-control.ts b/modules/react-maplibre/src/components/globe-control.ts index 419c2592e..86e507307 100644 --- a/modules/react-maplibre/src/components/globe-control.ts +++ b/modules/react-maplibre/src/components/globe-control.ts @@ -1,8 +1,8 @@ -import * as React from "react"; -import { useEffect, memo } from "react"; -import { applyReactStyle } from "../utils/apply-react-style"; -import { useControl } from "./use-control"; -import { ControlPosition } from "../types/lib"; +import * as React from 'react'; +import {useEffect, memo} from 'react'; +import {applyReactStyle} from '../utils/apply-react-style'; +import {useControl} from './use-control'; +import {ControlPosition} from '../types/lib'; export type GlobeControlProps = { /** Placement of the control relative to the map. */ @@ -12,8 +12,8 @@ export type GlobeControlProps = { }; function _GlobeControl(props: GlobeControlProps) { - const ctrl = useControl(({ mapLib }) => new mapLib.GlobeControl(props), { - position: props.position, + const ctrl = useControl(({mapLib}) => new mapLib.GlobeControl(props), { + position: props.position }); useEffect(() => { diff --git a/modules/react-maplibre/src/types/lib.ts b/modules/react-maplibre/src/types/lib.ts index 40b36a372..7a58c459e 100644 --- a/modules/react-maplibre/src/types/lib.ts +++ b/modules/react-maplibre/src/types/lib.ts @@ -19,7 +19,7 @@ import type { TerrainSpecification, LogoControl, LogoControlOptions, - GlobeControl, + GlobeControl } from 'maplibre-gl'; export type {