Effect CommunityEC
Effect Community2y ago
10 replies
youcef

ESLint rule for leaving effects hanging in a generator function

is there some sort of eslint rule (or something similar) for leaving effects hanging in a gen function, I've done it way too many times lol. As in:
Effect.gen(function* (_) {
  // ...
  // should raise a warning in my IDE
  PubSub.publish(pubsub, item)
  // bounus: auto suggestion for yield* _(PubSub.publish(pubsub, item))
  // ...
}
Was this page helpful?