-
Notifications
You must be signed in to change notification settings - Fork 138
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
Sort modules #72
Sort modules #72
Conversation
Hi @ratierd , I just changed the base of your PR to |
Use an option object composed from prettier configuration as parameter for getSortedModules method. Add sortModules option to enable sorting modules in import statements
Sure thing 🙂 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your PR. Could you please update it? Otherwise it looks good to me 👍
I left a note regarding a remaining debugger in the code.
…s into sort_modules
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 👍
Add an option to sort imports module declarations so that :
import DefaultModule, { moduleB, moduleC, moduleA };
Will be transformed into :
import DefaultModule, { moduleA, moduleB, moduleC };
The option is disabled by default
Closes #40
Fixes #67 default module issue -> #44 (comment)