Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,31 @@ The package includes the following rules:
| [prefer-takeuntil](docs/rules/prefer-takeuntil.md) | Disallow `subscribe` calls without an accompanying `takeUntil` within Angular components (and, optionally, within services, directives, and pipes). | 💭 |

<!-- end auto-generated rules list -->

## Examples

```mjs
// eslint.json.mjs

import rxjsAngularX from "eslint-plugin-rxjs-angular-x";

export default [
{
files: ["**/*.ts"],
plugins: {
"rxjs-angular-x": rxjsAngularX,
},
rules: {
"rxjs-angular-x/prefer-takeuntil": [
"error",
{
checkComplete: false,
checkDecorators: ["Component", "Directive", "Injectable"],
alias: ["takeUntilDestroyed"],
checkDestroy: false,
},
],
},
}
]
```