Skip to content

Commit

Permalink
feat: Enable prefer-takeuntil for takeUntilDestroyed
Browse files Browse the repository at this point in the history
  • Loading branch information
jmeinlschmidt committed Oct 20, 2023
1 parent e2b2e31 commit b45deca
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,14 @@ module.exports = {

'rxjs-angular/prefer-async-pipe': 'warn',
'rxjs-angular/prefer-composition': 'off', // I prefer takeUntilDestroyed() operator
'rxjs-angular/prefer-takeuntil': 'off', // I prefer takeUntilDestroyed() operator
'rxjs-angular/prefer-takeuntil': [
'warn',
{
alias: ['takeUntilDestroyed'],
checkDestroy: false,
checkComplete: false,
}
],

// Reference https://github.com/cartant/eslint-plugin-rxjs/blob/main/docs/rules/finnish.md
'rxjs/finnish': [
Expand Down

0 comments on commit b45deca

Please sign in to comment.