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.

testingweb-framework
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.

Use import to load the plugin; the package is ESM-only (no CJS export).

// In eslint.config.js: import plugin from 'eslint-plugin-rxjs-angular-updated';

Rules are accessed via the plugin name in ESLint configuration, not by importing the 'rules' property.

// In .eslintrc.js: plugins: ['rxjs-angular-updated']

Prefix changed from 'rxjs-angular' to 'rxjs-angular-updated' to avoid conflicts with the original package.

// In ESLint config: 'rxjs-angular-updated/prefer-async-pipe': 'error'

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 footguns
breakingPlugin prefix changed from 'rxjs-angular' to 'rxjs-angular-updated'.
breakingESLint v9 flat config only; .eslintrc.* formats no longer supported.
deprecatedPackage is a temporary fork; updates are limited to version bumps only.
gotchaRule names must be prefixed with 'rxjs-angular-updated/' not 'rxjs-angular'.
gotchaRequires TypeScript parser and project configuration; rules will silently fail without 'project' in parserOptions.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
14 hits · last 30 days
gptbot
4
ahrefsbot
4
amazonbot
4
script
1
chatgpt-user
1
Resources