disallow generator function declarations (es/no-generators)
This rule reports ES2015 generator function declarations as errors.
Examples
⛔ Examples of incorrect code for this rule:
/*eslint es/no-generators: error */
function* f1() {}
const f2 = function*() {}
const obj = {
*f3() {}
}
class A {
*f4() {}
}