Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No nested pipe similar to no-nested-subscribe #139

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

birenrao
Copy link

@birenrao birenrao commented Jan 21, 2025

Hi @cartant

In this PR I would like to add new rule: no-nested-pipe

Last year, my team have spent significant effort on improving the maintainability and readability of rxjs statement in the codebase. Avoiding nested pipe has been the most useful rule on driving the better behavior in this area. The team have been enforcing this manually through PR review check last year. I have come cross your library and find it very useful, hence would like to introduce no-nested-pipe rule so that we could all benefit from it.

would you please review this PR and suggest if there is any correction and could please approve this PR if everything is ok

this is just new rule created based on the no-nested-subscribe, in our code we found this one of big issue when its making code complex and have certain issue as well so we wanted to avoid nested pipe in the code currently there is not other solution available in the next
example in the docs about the growing code face issues with nested pipes for which we require this rule to avoid this complexity
added new test file for no-nested-pipe valid and invalid scenarios
rule usage standalone code for playground
test description update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant