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() {} }
Now loading...

📚 References

Last Updated: 8/27/2019, 11:29:02 AM