quick-lint-js

Find bugs in JavaScript programs.

E0037: unclosed block comment

Block comments start with /* and end with */. It is a syntax error for a block comment to start but not end:

/* this code is really complicated.
   some might say too complicated.
function yes() {
  return true;
}
let heightInFeet = heightInCM /* 100;

To fix this error, close the comment with */.

/* this code is really complicated.
   some might say too complicated. */
function yes() {
  return true;
}

Alternatively, write an expression between / and *:

let heightInFeet = heightInCM / 3.28 * 100;

Introduced in quick-lint-js version 0.2.0.

Documentation for other errors