ReactiveX / rxjs-tslint

TSLint rules targeting RxJS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Migrating TsLint to EsLint

break7533 opened this issue · comments

Will the migration affect the way this plugin works?

For the moment we create the rules in a tslint.json file. While migrating to ESlint this will disappear. Is it possible to add the rule to an eslint.json file and keep the plugin alive or will it require more work?

Did someone ever try using these rules with ESLint?
In my project, I use ESLint exclusively since TSLint is now deprecated.

Yeah, in the meanwhile in the projects I work on we just moved all the rules to the eslint.json file and everything works dandy

@break7533 do you have an example of how to use rxjs-tslint with ESLint?
I'm trying to configure the rules in eslintrc.js but it always errors out saying that the rule definition was not found.

We are now using eslint-plugin-rxjs

And on .eslintrc.json we just add the rules, example

"rules": {
        "rxjs/no-internal": "error",
        "rxjs/no-async-subscribe": "error",
        "rxjs/no-nested-subscribe": "error",
        "rxjs/no-unbound-methods": "error",
}

Yeah, I have tried eslint-plugin-rxjs.
The bad part is that it does not have a rule for detecting usages of non-pipeable operators.
I guess I'll have to live with that.