Skip to content

fix(formatter/sort_imports): treat submodule imports as internal patterns#22371

Closed
Jungzl wants to merge 1 commit into
oxc-project:mainfrom
Jungzl:fix/formatter-sortImports
Closed

fix(formatter/sort_imports): treat submodule imports as internal patterns#22371
Jungzl wants to merge 1 commit into
oxc-project:mainfrom
Jungzl:fix/formatter-sortImports

Conversation

@Jungzl

@Jungzl Jungzl commented May 13, 2026

Copy link
Copy Markdown

@leaysgur

Copy link
Copy Markdown
Member

Thank you!
But there are a few things I'd like to address..., so I'll take care of them. #22440

@leaysgur leaysgur closed this May 15, 2026
graphite-app Bot pushed a commit that referenced this pull request May 15, 2026
Closes #22371, follows azat-io/eslint-plugin-perfectionist#732

---

As a baseline, while the result effectively follows the behavior of a perfectionist, there is no fundamental reason why it must be done that way.

Node.js subpaths are more flexible and aren't necessarily "internal", you can also alias external modules.

However, I do think it's consistent in the sense that it treats them the same way as other conventions like `@`.
@Jungzl Jungzl deleted the fix/formatter-sortImports branch May 16, 2026 05:55
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