Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(eslint-plugin): [sort-keys-in-type-decorator] preserve unconfigured properties during autofix #2456

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
merged 3 commits into from
May 25, 2025

Conversation

JamesHenry
Copy link
Member

Fixes #2455

The autofix was removing properties that weren't in the expected order configuration. This fix ensures all properties are preserved, with configured properties sorted according to the expected order and unconfigured properties appended at the end.

Generated with Claude Code

…ed properties during autofix

The autofix was removing properties that weren't in the expected order configuration.
This fix ensures all properties are preserved, with configured properties sorted
according to the expected order and unconfigured properties appended at the end.

Fixes #2455

Co-authored-by: JamesHenry <[email protected]>
Copy link

nx-cloud bot commented May 25, 2025

View your CI Pipeline Execution ↗ for commit 537935c.

Command Status Duration Result
nx run-many -t e2e-suite --parallel 1 ✅ Succeeded 15s View ↗
nx run-many -t test --codeCoverage ✅ Succeeded 44s View ↗
nx run-many -t build,typecheck,check-rule-docs,... ✅ Succeeded 37s View ↗
nx-cloud record -- pnpm nx sync:check ✅ Succeeded 2s View ↗
nx-cloud record -- pnpm format-check ✅ Succeeded 6s View ↗
nx run-many -t test ✅ Succeeded 30s View ↗
nx run-many -t build ✅ Succeeded 13s View ↗

☁️ Nx Cloud last updated this comment at 2025-05-25 13:52:53 UTC

Copy link

codecov bot commented May 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.84%. Comparing base (90af575) to head (537935c).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2456      +/-   ##
==========================================
+ Coverage   92.81%   92.84%   +0.02%     
==========================================
  Files         195      195              
  Lines        4090     4093       +3     
  Branches      954      954              
==========================================
+ Hits         3796     3800       +4     
  Misses        226      226              
+ Partials       68       67       -1     
Flag Coverage Δ
unittest 92.84% <100.00%> (+0.02%) ⬆️

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

Files with missing lines Coverage Δ
...nt-plugin/src/rules/sort-keys-in-type-decorator.ts 83.33% <100.00%> (+2.63%) ⬆️
...n/tests/rules/sort-keys-in-type-decorator/cases.ts 100.00% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@JamesHenry JamesHenry marked this pull request as ready for review May 25, 2025 13:53
@JamesHenry JamesHenry merged commit ee9f2fe into main May 25, 2025
8 checks passed
@JamesHenry JamesHenry deleted the claude/issue-2455-20250525_133002 branch May 25, 2025 13:54
@bschaeublin
Copy link
Contributor

Thx @JamesHenry , thought I covered that initially.. 🙈

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.

[sort-keys-in-type-decorator] autofix removes providers array
2 participants