Find bugs in JavaScript programs.

E0033: redeclaration of global variable

Global variables listed in quick-lint-js.config with "shadowable": false cannot be re-declared in the global scope by a JavaScript module or script:

let window = new windowlib.Window();

let $ = (sel) => document.querySelector(sel);

To fix this error, choose a different variable name, or put the variable (and code which uses the variable) into a function:

let qsa = (sel) => document.querySelector(sel);

function createUI() {
  let myWindow = new windowlib.Window();

Introduced in quick-lint-js version 0.2.0.

Documentation for other errors