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

feat: use prettier to organize imports #1026

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

feat: use prettier to organize imports #1026

wants to merge 1 commit into from

Conversation

benwaples
Copy link
Contributor

Description

Adds a plugin to prettier that sorts, combines and removes unused imports using the organizeImports feature of the TS language server.

Motivation and Context

This PR addresses: BED-5112

Organized imports helps devs parse where code is coming from. This is particularly helpful as we replace MUI with DoodleUI and many of the components will have similar, if not the same, names to help migrate to the new component library.

Additionally, this plugin will remove unused imports, so one less thing to review for.

The npm documentation is very helpful, feel free to give it a review!

How Has This Been Tested?

confirmed that prettier will automatically update imports.

Screenshots (optional):

n/a

Types of changes

  • Chore (a change that does not modify the application functionality)

Checklist:

@benwaples benwaples self-assigned this Dec 18, 2024
@benwaples benwaples added enhancement New feature or request user interface A pull request containing changes affecting the UI code. labels Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request user interface A pull request containing changes affecting the UI code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant