Skip to content

Sort imports with prettier - #114

Merged
kvvasuu merged 1 commit into
mainfrom
chore/sort-imports
Oct 4, 2026
Merged

kvvasuu merged 1 commit into
mainfrom
chore/sort-imports

Conversation

@kvvasuu

@kvvasuu kvvasuu commented Oct 4, 2026

Copy link
Copy Markdown
Collaborator

Imports were ordered by hand. Prettier now sorts them with @trivago/prettier-plugin-sort-imports, so every file, including the ones lint-staged formats on commit, reads the same way.

@kvvasuu
kvvasuu added this pull request to stack #113 October 4, 2026 21:19
Base automatically changed from build/vite to main October 4, 2026 21:20
The trivago plugin groups imports from packages to the closest folders with a blank line between groups, and puts namespace imports first in each group. Side-effect imports stay in place.
@kvvasuu
kvvasuu force-pushed the chore/sort-imports branch from 7643434 to 534bff0 Compare October 4, 2026 21:20
@kvvasuu
kvvasuu merged commit c77cd35 into main Oct 4, 2026
1 check passed
@kvvasuu
kvvasuu deleted the chore/sort-imports branch October 4, 2026 21:21
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.

1 participant