Require generator functions to contain yield
The "extends": "eslint:recommended"
property in a configuration file enables this rule
This rule generates warnings for generator functions that do not have the yield
keyword.
Examples of incorrect code for this rule:
Examples of correct code for this rule:
If you don’t want to notify generator functions that have no yield
expression, then it’s safe to disable this rule.
This rule was introduced in ESLint v1.0.0-rc-1.
© OpenJS Foundation and other contributors
Licensed under the MIT License.
https://eslint.org/docs/latest/rules/require-yield