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;

Documentation for other errors