The import organizer extension will help you organize your file imports inside a JS/TS project. This extension does not use the built-in vs-code organizer as it relies on a configuration file allowing a more granular control over the result.
The extensions requires a configuration file inside the root of your project called .sorterconfig.json
Required. Path for the source folder. Files that are not included here will be ignored
Organize import on document save. Defaults to false
Replace absolute imports with specialIdentifier. Defaults to false
String used for absolute imports. Defaults to @
Should add a new line after each block. Defaults to false
Folders included when using the 'Organize imports of all files'
Folders excluded when using the 'Organize imports of all files'
Required Specifies the groups
Required. Name of the block. Will be inserted as a comment before any import block
Wether the name should be displayed or not block. Defaults to
Any imports related to one of the specified libraries will be added to the block
Folder or file path relative to the specified root inside the config. Any import from a subdir of this path will be added to the block
The extension is currently in alpha, please report any bug