rxjs-tslint-rules icon indicating copy to clipboard operation
rxjs-tslint-rules copied to clipboard

TSLint rules for RxJS

Results 21 rxjs-tslint-rules issues
Sort by recently updated
recently updated
newest added

`const SHARE_REPLAY_CONFIG = { bufferSize: 1, refCount: true }; observable.pipe(shareReplay(SHARE_REPLAY_CONFIG)) ` I am using a constant variable and then passing it to the shareReplay operator. If we do this, lint...

Bumps [@angular/core](https://github.com/angular/angular/tree/HEAD/packages/core) from 4.4.6 to 11.0.5. Changelog Sourced from @​angular/core's changelog. 11.0.5 (2020-12-16) Bug Fixes compiler: handle strings inside bindings that contain binding characters (#39826) (f5aab2b), closes #39601 core: fix...

dependencies

Bumps [karma](https://github.com/karma-runner/karma) from 1.7.1 to 6.3.16. Release notes Sourced from karma's releases. v6.3.16 6.3.16 (2022-02-10) Bug Fixes security: mitigate the "Open Redirect Vulnerability" (ff7edbb) v6.3.15 6.3.15 (2022-02-05) Bug Fixes helper:...

dependencies

Angular services also can use the `OnDestroy`, if subscriptions are done there for background tasks, we should be able to link them as "use a subscription object and unsubscribe on...

enhancement

The following code snippet does proper unsubscribe handling in ngOnDestroy but results in a false positive lint error. ```typescript @Component({ selector: "superclass-composed-component", template: "{{ value }}" }) export class SuperclassComposedComponent...

enhancement

I have in an Angular project warnings for `rxjs-throw-error` on code like this. ```js throwError(new HttpErrorResponse({})) ``` I have worked with subclassing Error on other projects before as well. Would...

enhancement

It's possible to add support for class inheritance on the rxjs-prefer-angular-takeuntil rule? In the current projects i work on, all the common logic of a component is added on a...

enhancement

What is the best configuration or more strict configuration of `rxjs-tslint-rules`? ``` "rxjs-add": true, "rxjs-ban-observables": true, "rxjs-ban-operators": true, "rxjs-deep-operators": true, "rxjs-no-create": true, "rxjs-no-unsafe-catch": true, "rxjs-no-unsafe-first": true, "rxjs-no-unsafe-switchmap": true, "rxjs-no-unsafe-takeuntil": true,...

question

## Background Right now Observables can either be enforced to use Finnish notation via the `rxjs-finnish` rule, or disallowed from using Finnish notation via the `rxjs-no-finnish` rule. On the other...

enhancement

Several rule have failure messages that would be more helpful if they mentioned any situations in which the usage is allowed. For example, `shareReplay` can be allowed if a config...

bug