You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This rule accepts a single option which is an object with a `checkDecorators` property which is an array containing the names of the decorators that determine whether or not a class is checked. By default, `checkDecorators` is `["Component"]`.
51
+
This rule accepts a single option which is an object with a `checkDecorators` and `superClass` properties.
52
+
53
+
The `checkDecorators` property is an array containing the names of the decorators that determine whether or not a class is checked. By default, `checkDecorators` is `["Component"]`.
54
+
55
+
The `superClass` property is an array containing the names of classes to extend from that already implements a `Subject`-based `ngOnDestroy`.
52
56
53
57
```json
54
58
{
@@ -61,4 +65,4 @@ This rule accepts a single option which is an object with a `checkDecorators` pr
Copy file name to clipboardExpand all lines: docs/rules/prefer-takeuntil.md
+8-3Lines changed: 8 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -50,12 +50,16 @@ class SomeComponent implements OnDestroy, OnInit {
50
50
51
51
## Options
52
52
53
-
This rule accepts a single option which is an object with `checkComplete`, `checkDecorators`, `checkDestroy` and `alias` properties.
53
+
This rule accepts a single option which is an object with `checkComplete`, `checkDecorators`, `checkDestroy`, `superClass` and `alias` properties.
54
54
55
55
The `checkComplete` property is a boolean that determines whether or not `complete` must be called after `next` and the `checkDestroy` property is a boolean that determines whether or not a `Subject`-based `ngOnDestroy` must be implemented.
56
56
57
57
The `checkDecorators` property is an array containing the names of the decorators that determine whether or not a class is checked. By default, `checkDecorators` is `["Component"]`.
58
58
59
+
The `checkDestroy` property is a boolean that determines whether or not a `Subject`-based `ngOnDestroy` must be implemented.
60
+
61
+
The `superClass` property is an array containing the names of classes to extend from that already implements a `Subject`-based `ngOnDestroy`.
62
+
59
63
The `alias` property is an array of names of operators that should be treated similarly to `takeUntil`.
60
64
61
65
```json
@@ -66,12 +70,13 @@ The `alias` property is an array of names of operators that should be treated si
0 commit comments