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
+3 -3
View File
@@ -10,7 +10,7 @@ import Fill from '../src/ol/style/Fill.js';
import Style from '../src/ol/style/Style.js';
import Text from '../src/ol/style/Text.js';
var style = new Style({
const style = new Style({
text: new Text({
font: 'bold 11px "Open Sans", "Arial Unicode MS", "sans-serif"',
placement: 'line',
@@ -20,8 +20,8 @@ var style = new Style({
})
});
var viewExtent = [1817379, 6139595, 1827851, 6143616];
var map = new Map({
const viewExtent = [1817379, 6139595, 1827851, 6143616];
const map = new Map({
layers: [new TileLayer({
source: new BingMaps({
key: 'As1HiMj1PvLPlqc_gtM7AqZfBL8ZL3VrjaS3zIb22Uvb9WKhuJObROC-qUpa81U5',