segmentio / eslint-config

Segment's ESLint configurations.
9 stars 6 forks source link

Require a `yield` within generator functions #34

Closed ndhoule closed 8 years ago

ndhoule commented 8 years ago

This rule requires a yield statement within a generator function and warns you if you don't have one. Basically prevents useless generators.

http://eslint.org/docs/rules/require-yield.html

dominicbarnes commented 8 years ago

I don't think we should enable this, since koa requires generators always. (even when you don't use yield)

ndhoule commented 8 years ago

Ah yeah, fair enough.