Skip to content

feat(order): add orderBySplitPaths option #3196

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tw3
Copy link

@tw3 tw3 commented Jun 27, 2025

No description provided.

Copy link

codecov bot commented Jun 27, 2025

Codecov Report

Attention: Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.

Project coverage is 0.00%. Comparing base (01c9eb0) to head (5700f01).

Files with missing lines Patch % Lines
src/rules/order.js 0.00% 5 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (01c9eb0) and HEAD (5700f01). Click for more details.

HEAD has 18 uploads less than BASE
Flag BASE (01c9eb0) HEAD (5700f01)
24 6
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #3196       +/-   ##
==========================================
- Coverage   82.25%   0.00%   -82.26%     
==========================================
  Files          94      94               
  Lines        4283    4262       -21     
  Branches     1478    1427       -51     
==========================================
- Hits         3523       0     -3523     
- Misses        760    4262     +3502     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 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.

Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

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

Looks like there's some uncovered lines, so we'll need some more test cases.

Valid values: `{ order?: "asc" | "desc" | "ignore", orderImportKind?: "asc" | "desc" | "ignore", caseInsensitive?: boolean }` \
Default: `{ order: "ignore", orderImportKind: "ignore", caseInsensitive: false }`
Valid values: `{ order?: "asc" | "desc" | "ignore", orderImportKind?: "asc" | "desc" | "ignore", caseInsensitive?: boolean, orderBySplitPaths?: boolean }` \
Default: `{ order: "ignore", orderImportKind: "ignore", caseInsensitive: false, orderBySplitPaths: true }`
Copy link
Member

Choose a reason for hiding this comment

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

booleans should never default to true; can we invert the naming here so it can default to false?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants