Differentiate third party import from absolute paths #129
Unanswered
urbanbuddha
asked this question in
Ideas
Replies: 2 comments 2 replies
-
![]() Please give a solution for this. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I think would be a cool feature if we could have something like
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi team,
Thanks for this helpful plugin.
My request is: Can we have an option, eg. another special key-phrase or plugin property, that would separate third party modules over absolute path imports?
I understand the plugin can support regex imports if a project was setup with path aliases, ie.
@ui
,@core
.Unfortunately, I have a project created from create-react-app and we have absolute paths enabled on the
/src
. The files are not grouped in domain/function specific folders. Doing so would be a large refactoring effort.There is another prettier sort import plugin that distinguishes between npm packages (third party) vs. local imports/types. So I was wondering if we can achieve something similar?
Example
Given
Actual
Expected
Thanks for your time
Beta Was this translation helpful? Give feedback.
All reactions