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:
@@ -7,8 +7,8 @@ import OSM from '../src/ol/source/OSM.js';
|
||||
import TileDebug from '../src/ol/source/TileDebug.js';
|
||||
|
||||
|
||||
var osmSource = new OSM();
|
||||
var map = new Map({
|
||||
const osmSource = new OSM();
|
||||
const map = new Map({
|
||||
layers: [
|
||||
new TileLayer({
|
||||
source: osmSource
|
||||
|
||||
Reference in New Issue
Block a user