Registry / testing / eslint-plugin-rxjs-angular-updated

eslint-plugin-rxjs-angular-updated

JSON →
library1.0.50jsnpmunverified

Fork of cartant's eslint-plugin-rxjs-angular updated for ESLint v9 compatibility. Current version 1.0.50. Provides three opinionated ESLint rules for enforcing RxJS best practices in Angular components: prefer-async-pipe (forbids calling subscribe in components), prefer-composition (forbids non-composed subscribe calls), and prefer-takeuntil (forbids subscribe without takeUntil). Requires @typescript-eslint/parser and TypeScript project configuration. Not recommended for new projects; prefer the original package if ESLint v8 is acceptable.

npm install eslint-plugin-rxjs-angular-updated
INSTALL
IMPORT
SIG · ESLINT-PLUGIN-RXJS
E
eslint-plugin-rxjs-angular-updated
testingjavascriptv1.0.50
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

plugin
// In eslint.config.js: import plugin from 'eslint-plugin-rxjs-angular-updated';
// Do not require() in ESM context: const plugin = require('eslint-plugin-rxjs-angular-updated');
Use import to load the plugin; the package is ESM-only (no CJS export).
rules
// In .eslintrc.js: plugins: ['rxjs-angular-updated']
// Do not import rules directly: import { rules } from 'eslint-plugin-rxjs-angular-updated';
Rules are accessed via the plugin name in ESLint configuration, not by importing the 'rules' property.
prefer-async-pipe
// In ESLint config: 'rxjs-angular-updated/prefer-async-pipe': 'error'
// Do not use the original package prefix: 'rxjs-angular/prefer-async-pipe': 'error'
Prefix changed from 'rxjs-angular' to 'rxjs-angular-updated' to avoid conflicts with the original package.

Minimal ESLint flat config (v9) setup using the updated plugin with two rules enabled.

// eslint.config.js import plugin from 'eslint-plugin-rxjs-angular-updated'; export default [ { files: ['**/*.ts'], languageOptions: { parser: '@typescript-eslint/parser', parserOptions: { project: './tsconfig.json', }, }, plugins: { 'rxjs-angular-updated': plugin, }, rules: { 'rxjs-angular-updated/prefer-async-pipe': 'error', 'rxjs-angular-updated/prefer-takeuntil': 'error', }, }, ];
Debug
Known issues
breakingPlugin prefix changed from 'rxjs-angular' to 'rxjs-angular-updated'.
fix
Update ESLint config: replace 'rxjs-angular/' with 'rxjs-angular-updated/' in plugin and rule references.
affects: >=1.0.0
breakingESLint v9 flat config only; .eslintrc.* formats no longer supported.
fix
Migrate to flat config (eslint.config.js) as shown in Quickstart.
affects: >=1.0.0
deprecatedPackage is a temporary fork; updates are limited to version bumps only.
fix
Consider using the original eslint-plugin-rxjs-angular if ESLint v8 is acceptable, or migrate to a maintained alternative.
affects: >=1.0.0
gotchaRule names must be prefixed with 'rxjs-angular-updated/' not 'rxjs-angular'.
fix
Use 'rxjs-angular-updated/prefer-takeuntil' instead of 'rxjs-angular/prefer-takeuntil'.
affects: >=1.0.0
gotchaRequires TypeScript parser and project configuration; rules will silently fail without 'project' in parserOptions.
fix
Ensure '@typescript-eslint/parser' and parserOptions.project point to valid tsconfig.json.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Failed to load plugin 'rxjs-angular-updated'
Package not installed or not found in node_modules.
fix
Run: npm install eslint-plugin-rxjs-angular-updated --save-dev
Cannot find module '@typescript-eslint/parser'
Missing peer dependency @typescript-eslint/parser.
fix
Run: npm install @typescript-eslint/parser --save-dev
Definition for rule 'rxjs-angular-updated/prefer-async-pipe' was not found
Rule name uses wrong prefix or plugin not configured in plugins array.
fix
Ensure plugin is imported and added to 'plugins' object with key 'rxjs-angular-updated'.
Upgrade
Version history
1.0.50latest on npm
Audit
Dependencies
@typescript-eslint/parserrequiredRequired by the ESLint rules for TypeScript parsing
Agent activity
6 hits · last 30 days
node
6
Resources
eslint-plugin-rxjs-angular-updated — npm install eslint-plugin-rxjs-angular-updated · libregistry