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

View File

@@ -3,7 +3,7 @@ import {getFontFamilies} from '../../../src/ol/css.js';
describe('ol.css', function() {
describe('getFontFamilies()', function() {
var cases = [{
const cases = [{
font: '2em "Open Sans"',
families: ['"Open Sans"']
}, {
@@ -25,7 +25,7 @@ describe('ol.css', function() {
cases.forEach(function(c, i) {
it('works for ' + c.font, function() {
var families = getFontFamilies(c.font);
const families = getFontFamilies(c.font);
if (c.families === null) {
expect(families).to.be(null);
return;