cartant / eslint-plugin-rxjs

ESLint rules for RxJS
MIT License
312 stars 37 forks source link

feat: Add `no-subscribe-in-pipe` rule to forbid calling `subscribe` within `pipe` operators #131

Open Danevandy99 opened 3 months ago

Danevandy99 commented 3 months ago

@cartant This PR adds a new rule for catching the pattern of subscribe calls within functions passed to RXJS pipe operators. This was previously caught by the no-nested-subscribe until 3.1.5, when it was changed because of #67.

JasonWeinzierl commented 11 hours ago

@Danevandy99 You could open a PR for this rule under fork eslint-plugin-rxjs-x. Also worth considering if this should be added to the recommended config and/or the fork's new strict config.