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
Fixescartant#1
Adds the option to specify a class that components extends from which already implements the unsubscribe ngOnDestroy pattern.
Cherry-picked [cartant/eslint-plugin-rxjs-angular@`2e9b0cf`
(#10)](cartant@2e9b0cf)
and fixed conflicts.
---------
Co-authored-by: Avasam <[email protected]>
|`checkDecorators`| An optional array of decorator names to check. | String[]|
60
+
|`superClass`| An optional array of superclass names that already implement a `Subject`-based `ngOnDestroy`| String[]|
60
61
61
62
<!-- end auto-generated rule options list -->
62
63
63
-
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"]`.
64
+
This rule accepts a single option which is an object with a `checkDecorators` and `superClass` properties.
65
+
66
+
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"]`.
67
+
68
+
The `superClass` property is an array containing the names of classes to extend from that already implement a `Subject`-based `ngOnDestroy`.
|`alias`| An optional array of operator names that alias for `takeUntil`. | String[]|
62
+
|`checkComplete`| Check for `complete` calls. | Boolean |
63
+
|`checkDecorators`| An optional array of decorator names to check. | String[]|
64
+
|`checkDestroy`| Check for `Subject`-based `ngOnDestroy`. | Boolean |
65
+
|`superClass`| An optional array of superclass names that already implement a `Subject`-based `ngOnDestroy`| String[]|
65
66
66
67
<!-- end auto-generated rule options list -->
67
68
68
-
This rule accepts a single option which is an object with `checkComplete`, `checkDecorators`, `checkDestroy` and `alias` properties.
69
+
This rule accepts a single option which is an object with `checkComplete`, `checkDecorators`, `checkDestroy`, `superClass` and `alias` properties.
69
70
70
71
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.
71
72
72
73
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"]`.
73
74
75
+
The `checkDestroy` property is a boolean that determines whether or not a `Subject`-based `ngOnDestroy` must be implemented.
76
+
77
+
The `superClass` property is an array containing the names of classes to extend from that already implement a `Subject`-based `ngOnDestroy`.
78
+
74
79
The `alias` property is an array of names of operators that should be treated similarly to `takeUntil`.
75
80
76
81
```json
@@ -81,7 +86,8 @@ The `alias` property is an array of names of operators that should be treated si
0 commit comments