It's a tutorial for prettier auto sort imports. Pretty handy tool to use.
Find out more on the blog link - https://blog.nerdjfpb.com/how-to-auto-sort-imports-in-frontend-example-with-typescript-nextjs/
I created two branches for the example to play with
main
branch (contain the code without auto sort)prettier-applied
branch (contain the code with the sort and configure applied)
you can also check the diff between two branches - https://github.com/nerdjfpb/auto-sort-import-example/pull/1/files
# Clone the repo (ssh one, get the http link from repo)
git clone git@github.com:nerdjfpb/auto-sort-import-example.git
# Go to the folder
cd auto-sort-import-example
# Install dependencies
yarn
# Run the project
yarn dev