[prefer-signals] add rule for prefer signals instead of BehaviorSubject #1824
Labels
package: eslint-plugin
Angular-specific TypeScript rules
triage
This issue needs to be looked at and categorized by a maintainer
Description and reproduction of the issue
Since signals is released, today angular team is highly recommend using signals for local state rather than using
rxjs
(for exampleBehaviorSubject
) in every situation angular/angular#49684, also that rule will help for migration to upcoming fully signal components and local change detection.I already have that rule for our team needs (rule is checking
new BehaviorSubject
in class declaration), and I can provide PR for that rule.// your repro code case
Versions
@angular-eslint/eslint-plugin
X.Y.Z
@typescript-eslint/parser
X.Y.Z
ESLint
X.Y.Z
node
X.Y.Z
# Please run `npx ng version` in your project and paste the full output here:
ng version
output per the instructions given here.The text was updated successfully, but these errors were encountered: