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
+2 -2
View File
@@ -7,7 +7,7 @@ describe('ol.TileCache', function() {
describe('#pruneExceptNewestZ()', function() {
it('gets rid of all entries that are not at the newest z', function() {
var tiles = [
const tiles = [
new Tile([0, 0, 0]),
new Tile([1, 0, 0]),
new Tile([1, 1, 0]),
@@ -16,7 +16,7 @@ describe('ol.TileCache', function() {
new Tile([2, 2, 0]),
new Tile([2, 3, 0]) // newest tile at z: 2
];
var cache = new TileCache();
const cache = new TileCache();
sinon.spy(tiles[0], 'dispose');