Change let into const (#457)

This patch:
- changes `let` into `const` throughout codebase
- adds eslint check to prefer const over let
This commit is contained in:
Eric Bidelman
2017-08-21 16:39:04 -07:00
committed by Andrey Lushnikov
parent 5d6d3e0a81
commit 1f9b4fb4c8
37 changed files with 495 additions and 494 deletions

View File

@@ -1,9 +1,9 @@
// This injects a box into the page that moves with the mouse;
// Useful for debugging
(function(){
let box = document.createElement('div');
const box = document.createElement('div');
box.classList.add('mouse-helper');
let styleElement = document.createElement('style');
const styleElement = document.createElement('style');
styleElement.innerHTML = `
.mouse-helper {
pointer-events: none;