quick-lint-js

Find bugs in JavaScript programs.

E0132: missing ',' between variable declarations

A const, let, and var statement can declare multiple variables. It is a syntax error to omit a , between declared variables:

const x=p.x y=p.y;

let tau = 2 pi;

Fix this this error, write a , before the second variable's name:

const x=p.x, y=p.y;

Alternatively, use the * operator to multiply a variable by a number:

let tau = 2*pi;

Introduced in quick-lint-js version 0.2.0.

Documentation for other errors