ReactiveX / rxjs-tslint

TSLint rules targeting RxJS
MIT License
309 stars 41 forks source link

rxjs-pipeable-operators-only rule not producing any output #62

Closed cmckni3 closed 6 months ago

cmckni3 commented 5 years ago

In particular, trying to enforce using pipeable operators.

Sample code

Sample code in the codebase:

this.accountService.loadAccount().subscribe(account => {
  this.account = account;
});

Expect output

I expect a warning/error about this not using pipeable operators

Actual output

> ng lint
All files pass linting.
✨  Done in 13.05s.

tslint.json

{
  "rulesDirectory": [
    "node_modules/codelyzer",
    "node_modules/rxjs-tslint"
  ],
  "rules": {
    "rxjs-pipeable-operators-only": true
  }
}

Versions

ng: 6.2.8 rxjs: 6.3.3 rxjs-tslint: 0.1.5