chore(eslint): disable types because we use mapbox plugin with maplibre

This commit is contained in:
Paul Chavard 2022-02-23 13:12:46 +01:00 committed by Pierre de La Morinerie
parent 96e9024694
commit 12ddaa0533

View file

@ -48,6 +48,8 @@ export function DrawLayer({
trash: true
}
});
// We use mapbox-draw plugin with maplibre. They are compatible but types are not.
// eslint-disable-next-line @typescript-eslint/no-explicit-any
map.addControl(draw as any, 'top-left');
draw.set(
filterFeatureCollection(featureCollection, SOURCE_SELECTION_UTILISATEUR)
@ -64,6 +66,8 @@ export function DrawLayer({
return () => {
if (drawRef.current) {
// We use mapbox-draw plugin with maplibre. They are compatible but types are not.
// eslint-disable-next-line @typescript-eslint/no-explicit-any
map.removeControl(drawRef.current as any);
drawRef.current = null;
}