Skip to content
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

Auto-sort imports in TypeScript #160

Merged
merged 3 commits into from
Jul 19, 2024

Conversation

jschuurk-kr
Copy link
Contributor

Sorts typescript imports using https://github.com/trivago/prettier-plugin-sort-imports. How to sort is defined in frontend/.prettierrc.cjs.

There's also an eslint plugin to sort imports, but sorting imports is formatting, not linting, hence the choice for the prettier plugin. Also, we already run prettier with --write and don't run eslint with --fix.

closes #159

@jschuurk-kr jschuurk-kr linked an issue Jul 18, 2024 that may be closed by this pull request
@praseodym praseodym changed the title 159 auto sort imports in typescript Auto-sort imports in TypeScript Jul 18, 2024
@Lionqueen94 Lionqueen94 added this pull request to the merge queue Jul 19, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 19, 2024
@Lionqueen94 Lionqueen94 added this pull request to the merge queue Jul 19, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 19, 2024
@Lionqueen94 Lionqueen94 added this pull request to the merge queue Jul 19, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 19, 2024
@Lionqueen94 Lionqueen94 added this pull request to the merge queue Jul 19, 2024
Merged via the queue into main with commit d91d138 Jul 19, 2024
3 checks passed
@Lionqueen94 Lionqueen94 deleted the 159-auto-sort-imports-in-typescript branch July 19, 2024 11:02
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.

auto-sort imports in TypeScript
4 participants