nakarte

Source code of https://map.sikmir.ru (fork)
git clone git://git.sikmir.ru/nakarte
Log | Files | Refs | LICENSE

commit 5c416bcdb930f8259a8339e1315a8e814aaea5c5
parent 60e33f59d62fee97cdff16f25c88f46c66ed2e90
Author: Sergej Orlov <wladimirych@gmail.com>
Date:   Sun,  5 Jan 2020 13:07:39 +0100

suppress lint errors for rule "complexity"

Diffstat:
Msrc/lib/leaflet.control.locate/index.js | 2+-
Msrc/lib/leaflet.control.panoramas/lib/mapillary/mvt.js | 2+-
Msrc/lib/leaflet.control.panoramas/lib/wikimedia/index.js | 2+-
Msrc/lib/leaflet.control.track-list/lib/services/nakarte/loadTracksFromJson.js | 2+-
4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/lib/leaflet.control.locate/index.js b/src/lib/leaflet.control.locate/index.js @@ -321,7 +321,7 @@ const LocateControl = L.Control.extend({ } }, - _processEvent: function({event, data}) { + _processEvent: function({event, data}) { // eslint-disable-line complexity // console.log('PROCESS EVENT', event); const state = this._state; switch (event) { diff --git a/src/lib/leaflet.control.panoramas/lib/mapillary/mvt.js b/src/lib/leaflet.control.panoramas/lib/mapillary/mvt.js @@ -5,7 +5,7 @@ function decodeCoordinate(x) { return ((x >> 1) ^ (-(x & 1))); } -function parseGeometry(geometryType, ints, coordinatesScale) { +function parseGeometry(geometryType, ints, coordinatesScale) { // eslint-disable-line complexity if (geometryType !== TileProto.GeomType.POINT && geometryType !== TileProto.GeomType.LINESTRING && geometryType !== TileProto.GeomType.POLYGON) { throw new Error(`Unknown feature geometry type ${geometryType}`); diff --git a/src/lib/leaflet.control.panoramas/lib/wikimedia/index.js b/src/lib/leaflet.control.panoramas/lib/wikimedia/index.js @@ -16,7 +16,7 @@ function getCoverageLayer(options) { ]); } -function parseSearchResponse(resp) { +function parseSearchResponse(resp) { // eslint-disable-line complexity const images = []; if (resp && resp.query && resp.query.pages && resp.query.pages) { for (let page of Object.values(resp.query.pages)) { diff --git a/src/lib/leaflet.control.track-list/lib/services/nakarte/loadTracksFromJson.js b/src/lib/leaflet.control.track-list/lib/services/nakarte/loadTracksFromJson.js @@ -42,7 +42,7 @@ function parseTrack(rawTrack) { } -async function loadTracksFromJson(value) { +async function loadTracksFromJson(value) { // eslint-disable-line complexity const errCorrupt = [{name: 'Track in url', error: 'CORRUPT'}]; const jsonString = urlSafeBase64.decode(value);