Move global L comment to top of file for ESLint no-undef rule

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Serreau Jovann
2026-03-20 19:16:54 +01:00
parent bbbf859e8f
commit 887f0ca918

View File

@@ -1,3 +1,5 @@
/* global L */
export function initEventMap() {
const mapEl = document.getElementById('event-map')
if (!mapEl) return
@@ -31,7 +33,6 @@ function geocodeAndRender(address, mapEl) {
const lat = parseFloat(data[0].lat)
const lon = parseFloat(data[0].lon)
/* global L */
const map = L.map(mapEl).setView([lat, lon], 16)
L.tileLayer('https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png', {