Skip to content

feat: add groups-related options to sort-named-exports and sort-named-imports#499

Merged
azat-io merged 8 commits into
azat-io:mainfrom
hugop95:feat/sort-named-exports-imports/groups
Apr 8, 2025
Merged

feat: add groups-related options to sort-named-exports and sort-named-imports#499
azat-io merged 8 commits into
azat-io:mainfrom
hugop95:feat/sort-named-exports-imports/groups

Conversation

@hugop95
Copy link
Copy Markdown
Contributor

@hugop95 hugop95 commented Mar 26, 2025

Description

This PR adds the following options to sort-named-exports and sort-named-imports:

sort-named-exports

  • groups option
    • selectors: export
    • modifiers:
      • type: matches type exports.
      • value: matches value exports.
    • Deprecates groupKind for groups with the modifiers.
  • customGroups option with elementNamePattern filter.
  • newlinesBetween option.

sort-named-imports

  • groups option
    • selectors: import
    • modifiers:
      • type: matches type imports.
      • value: matches value imports.
    • Deprecates groupKind for groups with the modifiers.
  • customGroups option with elementNamePattern filter.
  • newlinesBetween option.

What is the purpose of this pull request?

  • New Feature

@hugop95 hugop95 force-pushed the feat/sort-named-exports-imports/groups branch 2 times, most recently from c75a5eb to 3107915 Compare March 30, 2025 13:24
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 30, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (b05fb54) to head (421e69e).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #499   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           96        97    +1     
  Lines         7651      7734   +83     
  Branches      1578      1564   -14     
=========================================
+ Hits          7651      7734   +83     

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

@hugop95 hugop95 force-pushed the feat/sort-named-exports-imports/groups branch 7 times, most recently from 1dc74f8 to c41b1ba Compare March 31, 2025 07:24
@hugop95 hugop95 mentioned this pull request Apr 1, 2025
1 task
@hugop95 hugop95 force-pushed the feat/sort-named-exports-imports/groups branch from c41b1ba to 4424cfe Compare April 3, 2025 16:53
@hugop95 hugop95 marked this pull request as ready for review April 4, 2025 08:30
@azat-io azat-io merged commit ae7a4a1 into azat-io:main Apr 8, 2025
10 checks passed
@hugop95 hugop95 deleted the feat/sort-named-exports-imports/groups branch April 8, 2025 21:50
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.

2 participants