ESLint plugin providing RxJS-specific lint rules for Angular applications. Version 2.0.1, actively maintained by cartant. It offers three opinionated rules: prefer-async-pipe (forbids subscribe in components), prefer-composition (forbids uncomposed subscribe), and prefer-takeuntil (requires takeUntil with subscribe). Unlike general RxJS linting tools, this plugin targets Angular-specific patterns. Requires ESLint ^8.0.0, TypeScript >=4.0.0, and @typescript-eslint/parser.
npm install eslint-plugin-rxjs-angularVerified import paths — ran on the pinned version, not inferred.
Configures ESLint with @typescript-eslint/parser and enables all three rxjs-angular rules.
Add desired rules to 'rules' in ESLint config.
Ensure '@typescript-eslint/parser' is configured with 'project' pointing to tsconfig.json.
Use additional lint rules for other async operations if needed.
Configure 'checkDecorators' option to include additional Angular decorators.
Run 'npm install eslint-plugin-rxjs-angular --save-dev' and add 'plugins: ["rxjs-angular"]' to config.
Add 'project: join(__dirname, './tsconfig.json')' to parserOptions.
Ensure tsconfig.json includes all linted files or use a separate tsconfig.eslint.json.