quick-lint-js

Find bugs in JavaScript programs.

E0204: error generator function star belongs after keyword function

The following code has misplaced '*'.

let x = *function(y) { yield y; };

To fix this error, move the '*' after the keyword function.

let x = function*(y) { yield y; };

Documentation for other errors