A Visual Studio Code extension that automatically reorganizes import statements in your TypeScript and JavaScript files following a specific order pattern.
Features
This extension automatically reorders your imports following this hierarchy:
External Libraries (e.g., 'react', 'lodash')
Shared Packages (e.g., '@mo/*')
Alias Imports (configured through settings)
Relative Imports ('./' or '../')
Example:
// Before
import { useState } from 'react'
import { MyComponent } from './components/MyComponent'
import { SharedUtil } from '@mo/utils'
import { Feature } from '@modules/feature'
// After
import { useState } from 'react'
import { SharedUtil } from '@mo/utils'
import { Feature } from '@modules/feature'
import { MyComponent } from './components/MyComponent'