From 1a2aae631d6fea1d841c70d4616145ff869d9256 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Sat, 24 Jan 2026 17:54:34 +0700 Subject: [PATCH] Fix JS linting errors --- app/components/map.gjs | 3 +-- app/components/settings-pane.gjs | 6 ++++-- app/services/osm.js | 1 + app/services/storage.js | 6 +++--- app/utils/geohash-coverage.js | 21 +++++++++++++++++---- package.json | 3 +++ pnpm-lock.yaml | 21 +++++++++++++++++++++ 7 files changed, 50 insertions(+), 11 deletions(-) diff --git a/app/components/map.gjs b/app/components/map.gjs index c207ec4..54642b1 100644 --- a/app/components/map.gjs +++ b/app/components/map.gjs @@ -16,7 +16,6 @@ import Geolocation from 'ol/Geolocation.js'; import { Style, Circle, Fill, Stroke } from 'ol/style.js'; import { apply } from 'ol-mapbox-style'; import { getDistance } from '../utils/geo'; -import Icon from '../components/icon'; export default class MapComponent extends Component { @service osm; @@ -213,7 +212,7 @@ export default class MapComponent extends Component { geolocation.un('change:position', zoomToLocation); locateListenerKey = null; } - } catch (e) { + } catch { /* ignore */ } diff --git a/app/components/settings-pane.gjs b/app/components/settings-pane.gjs index 631543c..ff95aca 100644 --- a/app/components/settings-pane.gjs +++ b/app/components/settings-pane.gjs @@ -1,10 +1,12 @@ import Component from '@glimmer/component'; import { on } from '@ember/modifier'; import Icon from '#components/icon'; -import { service } from '@ember/service'; -import { action } from '@ember/object'; export default class SettingsPane extends Component { + constructor() { + super(...arguments); + } +