Skip to content

feat(eslint-plugin): prefer-signals read-only suggestion is now a fix #2175

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

reduckted
Copy link
Contributor

Fixes #2170

The suggestion to add a readonly modifier in the prefer-signals rule is now an auto fix.

Copy link

nx-cloud bot commented Dec 12, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit f8113bc. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 7 targets

Sent with 💌 from NxCloud.

Copy link

codecov bot commented Dec 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.78%. Comparing base (390df5a) to head (f8113bc).
Report is 16 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2175      +/-   ##
==========================================
- Coverage   90.78%   90.78%   -0.01%     
==========================================
  Files         177      177              
  Lines        3507     3506       -1     
  Branches      590      590              
==========================================
- Hits         3184     3183       -1     
  Misses        170      170              
  Partials      153      153              
Flag Coverage Δ
unittest 90.78% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
packages/eslint-plugin/src/rules/prefer-signals.ts 91.11% <ø> (ø)
.../eslint-plugin/tests/rules/prefer-signals/cases.ts 100.00% <ø> (ø)

@Frotty
Copy link

Frotty commented Jan 21, 2025

👍 Can this get reviewed?

Copy link
Member

@JamesHenry JamesHenry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @reduckted!

@JamesHenry JamesHenry merged commit e36de15 into angular-eslint:main Jan 23, 2025
8 checks passed
@reduckted reduckted deleted the feature/prefer-signals-use-fix branch January 23, 2025 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[prefer-signals] Convert suggestion fix to full autofix for readonly requirement
3 participants