Angular 16 introduces a new takeUntilDestroyed() operator for destroying subscriptions, see their v16 blog post. The prefer-takeuntil rule should by default not raise a lint error when this operator is used on a subscription.
In the meantime we can add this operator to the alias option:
'rxjs-angular/prefer-takeuntil': [
'error',
{
alias: ['takeUntilDestroyed'],
},
],
Angular 16 introduces a new
takeUntilDestroyed()operator for destroying subscriptions, see their v16 blog post. Theprefer-takeuntilrule should by default not raise a lint error when this operator is used on a subscription.In the meantime we can add this operator to the
aliasoption: