cartant / eslint-plugin-rxjs

ESLint rules for RxJS
MIT License
312 stars 37 forks source link

How to use with eslint 9 flat config? #136

Open Christoph142 opened 4 weeks ago

Christoph142 commented 4 weeks ago

I don't have the slightest idea how to make it work. I added import rxjs from "eslint-plugin-rxjs-updated"; at the top of eslint.config.mjs and rxjs.configs.recommended into extends config block for ts files. But all I get is an error about the first rule specified in the package: TypeError: Key "rules": Key "rxjs/no-async-subscribe": Could not find plugin "rxjs".

(I also tried installing the original eslint-plugin-rxjs package in addition as well as using an alias for this package: "eslint-plugin-rxjs": "npm:eslint-plugin-rxjs-updated@^1.0.12". Both didn't yield any improvement)

Anything I forgot or any hint to make it work?

Christoph142 commented 4 weeks ago

@fast-facts since Issues are disabled on your fork. Could you shed some light on it here?

DaveMBush commented 1 day ago

Try this https://www.npmjs.com/package/@smarttools/eslint-plugin-rxjs

eslint-plugin-rxjs seems to be abandoned. The above ports it to modern eslint

@fast-facts now that I have an "official" version can you point people to it from your readme? 🙏