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

Include sorting imports with formatting #245

Open
carlgieringer opened this issue Feb 21, 2023 · 1 comment
Open

Include sorting imports with formatting #245

carlgieringer opened this issue Feb 21, 2023 · 1 comment
Assignees
Labels
clean code Work to improve the codebase devprod Development productivity. Local development, automated testing, etc. good first issue Good for newcomers

Comments

@carlgieringer
Copy link
Contributor

carlgieringer commented Feb 21, 2023

E.g. with a prettier plugin:

Or as another check:everything step using this tool:

@carlgieringer carlgieringer added good first issue Good for newcomers clean code Work to improve the codebase devprod Development productivity. Local development, automated testing, etc. labels Feb 21, 2023
@carlgieringer
Copy link
Contributor Author

We can triggers VSCode's 'sort imports' on save: https://stackoverflow.com/a/54690944/39396

It won't introduce our pattern of grouping the imports by third-party, other package, and local, but it will respect that grouping (separated by a linebreak) if it already exists.

@carlgieringer carlgieringer self-assigned this Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clean code Work to improve the codebase devprod Development productivity. Local development, automated testing, etc. good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant