quick-lint-js

Find bugs in JavaScript programs.

E0096: missing for loop header

It is a syntax error to have nothing between the ( and ) in a for loop:

for () {
  runBenchmark(benchmark);
}

To fix this error, continue writing the for loop:

for (const benchmark of collectBenchmarks()) {
  runBenchmark(benchmark);
}

Documentation for other errors