Detect and remove unused ES6 imports, unused module exports, and unused top-level variables with eslint-plugin-unused-imports. This ESLint plugin helps maintain clean and efficient code by identifying potentially dead code, reducing bundle sizes, and improving overall code readability. Integrate seamlessly into your ESLint configuration to automatically flag unused imports and exports during development, promoting consistent cleanup and preventing accumulation of unnecessary code.
The eslint-plugin-unused-imports npm package saw initial releases in late 2019, with sporadic updates through 2021. After a long pause, releases resumed in mid-2023, peaking in August 2024 with four versions. There have been no releases in the first seven months of 2025. The package's release frequency is inconsistent, with periods of active development followed by extended inactivity.
Eslint-plugin-unused-imports downloads show a strong upward trend. From February 2024 to July 2025, downloads steadily increased, peaking at over 19 million. August 2025's partial data indicates a potential decrease, but it's still a substantial figure, exceeding 14 million downloads.