Use blocked scoped variables

In addition to using const and let, this also upgrades our linter config and removes lint (mostly whitespace).
This commit is contained in:
Tim Schaub
2018-01-11 23:32:36 -07:00
parent 0bf2b04dee
commit ad62739a6e
684 changed files with 18120 additions and 18184 deletions
+5 -5
View File
@@ -5,11 +5,11 @@ import {transform, transformExtent} from '../src/ol/proj.js';
import OSM from '../src/ol/source/OSM.js';
import XYZ from '../src/ol/source/XYZ.js';
var mapMinZoom = 1;
var mapMaxZoom = 15;
var mapExtent = [-112.261791, 35.983744, -112.113981, 36.132062];
const mapMinZoom = 1;
const mapMaxZoom = 15;
const mapExtent = [-112.261791, 35.983744, -112.113981, 36.132062];
var map = new Map({
const map = new Map({
target: 'map',
layers: [
new TileLayer({
@@ -30,7 +30,7 @@ var map = new Map({
view: new View({
projection: 'EPSG:3857',
center: transform([-112.18688965, 36.057944835],
'EPSG:4326', 'EPSG:3857'),
'EPSG:4326', 'EPSG:3857'),
zoom: 12
})
});