commit ee73b48046a79c6163901bfee1c41cd9a35351ac
parent 971e057d4067c59a41e777b3af58e9d8e2283f27
Author: Sergej Orlov <wladimirych@gmail.com>
Date:   Mon,  6 Jan 2020 22:03:11 +0100
fix lint errors (array-element-newline)
Diffstat:
4 files changed, 26 insertions(+), 8 deletions(-)
diff --git a/src/lib/leaflet.control.panoramas/lib/google/index.js b/src/lib/leaflet.control.panoramas/lib/google/index.js
@@ -80,8 +80,13 @@ const Viewer = L.Evented.extend({
         const pos = this.panorama.getPosition();
         const pov = this.panorama.getPov();
         if (pos && pov) {
-            return [pos.lat().toFixed(6), pos.lng().toFixed(6),
-                (pov.heading || 0).toFixed(1), (pov.pitch || 0).toFixed(1), (pov.zoom || 1).toFixed(1)];
+            return [
+                pos.lat().toFixed(6),
+                pos.lng().toFixed(6),
+                (pov.heading || 0).toFixed(1),
+                (pov.pitch || 0).toFixed(1),
+                (pov.zoom || 1).toFixed(1)
+            ];
         }
         return null;
     },
diff --git a/src/lib/leaflet.control.panoramas/lib/mapillary/index.js b/src/lib/leaflet.control.panoramas/lib/mapillary/index.js
@@ -139,8 +139,13 @@ const Viewer = L.Evented.extend({
                 return [];
             }
             const {lat, lon} = this._node.originalLatLon;
-            return [lat.toFixed(6), lon.toFixed(6),
-                this._center[0].toFixed(4), this._center[1].toFixed(4), this._zoom.toFixed(2)];
+            return [
+                lat.toFixed(6),
+                lon.toFixed(6),
+                this._center[0].toFixed(4),
+                this._center[1].toFixed(4),
+                this._zoom.toFixed(2)
+            ];
         },
     
         setState: function(state) {
diff --git a/src/lib/leaflet.control.printPages/decoration.grid.js b/src/lib/leaflet.control.printPages/decoration.grid.js
@@ -13,13 +13,17 @@ class Grid extends PrintStaticLayer {
     font = 'verdana';
     paddingMm = 1;
 
-    intervals = [1, 1.5, 2, 3.3, 5, 7.5,
+    /* eslint-disable array-element-newline*/
+    intervals = [
+        1, 1.5, 2, 3.3, 5, 7.5,
         10, 15, 20, 33, 50, 75,
         100, 150, 200, 333, 500, 750,
         1000, 1500, 2000, 4000, 5000, 7500,
         10000, 15000, 20000, 40000, 50000, 75000,
         100000, 150000, 200000, 400000, 500000, 750000,
-        1000000, 1500000, 2000000, 4000000, 5000000, 7500000];
+        1000000, 1500000, 2000000, 4000000, 5000000, 7500000
+    ];
+    /* eslint-enable array-element-newline*/
 
     getGridInterval(printOptions) {
         const minGridIntervalM = this.minGridIntervalMm / 10 * printOptions.scale;
diff --git a/src/lib/leaflet.controls.raise-on-focus/index.js b/src/lib/leaflet.controls.raise-on-focus/index.js
@@ -2,8 +2,12 @@ import './style.css';
 import L from 'leaflet';
 
 function raiseControlsOnFocus(map) {
-    const selectors = ['.leaflet-top.leaflet-right', '.leaflet-bottom.leaflet-right', '.leaflet-top.leaflet-left',
-        '.leaflet-bottom.leaflet-left'];
+    const selectors = [
+        '.leaflet-top.leaflet-right',
+        '.leaflet-bottom.leaflet-right',
+        '.leaflet-top.leaflet-left',
+        '.leaflet-bottom.leaflet-left'
+    ];
     let elements = map._container.querySelectorAll(selectors.join(','));
 
     function raise(target) {