Don’t use generators for now.
If you must use generators, or if you disregard our advice, make sure their function signature is spaced properly. eslint:
// bad
function * foo() {
// ...
// bad
const bar = function * () {
// ...
};
// bad
const baz = function *() {
// ...
};
const quux = function*() {
// ...
};
// bad
function*foo() {
// ...
}
// bad
function *foo() {
}
// very bad
function
*
// ...
}
// very bad
const wat = function
*
() {
// ...
};
// good
function* foo() {
// ...
}
// good
const foo = function* () {
};