Organize imports: add an option to put all absolute paths after node_modules ones
See original GitHub issueFeature Request
Add a configuration option that to sort all the absolute paths (i.e. with baseUrl = /src
in jsconfig.json
) after all the node_modules paths.
Reason
More and more people use alias to avoid long relative paths. It’s a common practice to have first the third-party imports, then the absolute paths, and finally the relative ones.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:16
- Comments:7
Top Results From Across the Web
Organize imports: add an option to put all absolute paths after ...
Add a configuration option that to sort all the absolute paths (i.e. with baseUrl = /src in jsconfig.json ) after all the node_modules...
Read more >Advanced Features: Absolute Imports and Module Path Aliases
These options allow you to configure module aliases, for example a common pattern is aliasing certain directories to use absolute paths. One useful...
Read more >Auto import in Visual Studio Code only offering absolute path ...
I've set my Import Module Specifier setting for TypeScript in Visual Studio Code to all three options (auto, relative, and absolute) and none...
Read more >Clean Up Your Imports using Absolute Imports & Alias on ...
Absolute Import is a great way to clean up your imports Setting up ... so here is all of the setup I use...
Read more >Understanding relative and absolute imports in Next.js
An absolute import provides a straightforward way to import modules. This import type specifies a path starting from the project's root. Now, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oh yes, the current way makes this feature useless. Absolute paths are so common these days.
same problem here, but i usually use
$
the absolute-like module resolution. can’t really use this feature unless it sorts based on the expanded paths, or is configurable.