quick-lint-js

Find bugs in JavaScript programs.

E0452: empty parenthesis after control statement

Leaving parenthesis empty after control statements (if, while, switch, with) is a syntax error.

while () {
  console.log("Oops!..")
}

If the intention here was to create an infinite loop, the implementation would be this:

while (true) {
  console.log("Now, that's an infinite loop");
}

Documentation for other errors