commit 90f0a9637606558549b1d1e18ff3f70fc9b2ae16
parent 4cd10172fc6e2990d1d8c3149a1b8e159e583c84
Author: Sergej Orlov <wladimirych@gmail.com>
Date: Mon, 6 Jan 2020 21:46:04 +0100
fix lint errors (array-bracket-newline)
Diffstat:
4 files changed, 21 insertions(+), 10 deletions(-)
diff --git a/src/layers.js b/src/layers.js
@@ -986,7 +986,8 @@ import {StravaHeatmap} from '~/lib/leaflet.layer.strava-heatmap';
layers: [
'OpenTopoMap',
'OpenCycleMap',
- 'OSM Outdoors'],
+ 'OSM Outdoors'
+ ],
},
{
title: 'Topo maps',
@@ -1008,7 +1009,8 @@ import {StravaHeatmap} from '~/lib/leaflet.layer.strava-heatmap';
'Google Hybrid',
'Mountains by Aleksey Tsvetkov',
'Bing imagery acquisition dates',
- 'geocaching.su']
+ 'geocaching.su'
+ ]
},
{
title: 'Routes and traces',
@@ -1023,7 +1025,8 @@ import {StravaHeatmap} from '~/lib/leaflet.layer.strava-heatmap';
'Strava heatmap lowres (all)',
'Strava heatmap lowres (run)',
'Strava heatmap lowres (ride)',
- 'Strava heatmap lowres (winter)'],
+ 'Strava heatmap lowres (winter)'
+ ],
},
{
@@ -1031,7 +1034,8 @@ import {StravaHeatmap} from '~/lib/leaflet.layer.strava-heatmap';
layers: [
'Norway paper map',
'Norway topo',
- 'Norway roads'],
+ 'Norway roads'
+ ],
},
{
@@ -1039,7 +1043,8 @@ import {StravaHeatmap} from '~/lib/leaflet.layer.strava-heatmap';
layers: [
'Czech base',
'mapy.cz tourist',
- 'Czech winter'],
+ 'Czech winter'
+ ],
},
];
diff --git a/src/lib/leaflet.control.jnx/hash-state.js b/src/lib/leaflet.control.jnx/hash-state.js
@@ -14,7 +14,8 @@ L.Control.JNX.include({
bounds.getSouth().toFixed(5),
bounds.getWest().toFixed(5),
bounds.getNorth().toFixed(5),
- bounds.getEast().toFixed(5)];
+ bounds.getEast().toFixed(5)
+ ];
}
return state;
},
diff --git a/src/lib/leaflet.control.layers.configure/index.js b/src/lib/leaflet.control.layers.configure/index.js
@@ -167,14 +167,18 @@ function enableConfig(control, {layers, customLayersOrder}) {
},
onCustomLayerCreateClicked: function() {
- this.showCustomLayerForm([
+ this.showCustomLayerForm(
+ [
{
caption: 'Add layer',
callback: (fieldValues) => this.onCustomLayerAddClicked(fieldValues)
- }, {
+ },
+ {
caption: 'Cancel',
callback: () => this.onCustomLayerCancelClicked()
- }], {
+ }
+ ],
+ {
name: 'Custom layer',
url: '',
tms: false,
diff --git a/src/lib/leaflet.control.track-list/lib/services/strava.js b/src/lib/leaflet.control.track-list/lib/services/strava.js
@@ -26,7 +26,8 @@ class Strava extends BaseService {
responseType: 'binarystring',
isResponseSuccess: (xhr) => (xhr.status === 200 || xhr.status === 401)
}
- }];
+ }
+ ];
}
parseResponse(responses) {