format-imports

JSON →
library 4.0.8 ·javascript
verified Jun 4, 2026

A CLI and library to format JavaScript/TypeScript import/export statements with grouping, sorting, deduplication, and unused import removal. Current stable version is 4.0.8, released with support for Import Attributes, ArkTS, and async config resolution. Unlike similar tools (e.g., eslint-plugin-import), it works as a standalone formatter with ESLint, Prettier, and EditorConfig compatibility, and can be used in CI/CD or integrated into IDEs via its VSCode and IntelliJ plugins. Actively maintained with monthly releases.