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

Support es2022 private properties in prefer-takeuntil #11

Open
Michsior14 opened this issue Jun 24, 2022 · 0 comments · May be fixed by #12
Open

Support es2022 private properties in prefer-takeuntil #11

Michsior14 opened this issue Jun 24, 2022 · 0 comments · May be fixed by #12

Comments

@Michsior14
Copy link

Current behavior

The following code throws error ("Forbids calling subscribe without an accompanying takeUntil") in the current version:

@Component()
class Test {
  #destroyer = new Subject();
  
  public ngOnInit(): void {
    someStream.pipe(takeUntil(this.#destroyer)).subscribe();
  }
}

Expected behavior

The # prefixed variables can be used within takeUntil when prefer-takeuntil rule is enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant