@mattinton/prettier-plugin-tidy-imports weekly downloads statistics
By mattinton · npm · Prettier plugins
A prettier plugin to tidy your imports
@mattinton/prettier-plugin-tidy-imports has 64 recorded weekly downloads on npm, an increase of 14.3% over the past 30 days.
About @mattinton/prettier-plugin-tidy-imports
Prettier Plugin Tidy Imports
A prettier plugin that, sorts, combines, and removes unsused imports from your Javascript/Typescript project.
Example
Before

After

Sorting
Imports are sorted into 4 distinct groups Side Efffect, Namespace, Third Party, and Relative. Every group is then sorted alphabetically except side effect imports as their order matters. Inside third party and relative groups, default imports are placed at the top, and named imports (imports inside {}) are also ordered.
Definitions
- Side Effect -
tailwindcss/tailwind.css - Namespace -
import * as yup from "yup" - Third Party -
import { merge } from "lodash" - Relative -
import Utils, { map, filter } from './utils
Typescript Path Aliases
This package doesn't know the difference between third party imports, and aliases defined in your tsconfig.json paths config. If you want to make sure these are grouped separately, you should prefix your aliases with a symbol not used in third party modules such as the tilde (~).
Installation
npm install --save-dev @mattinton/prettier-plugin-tidy-imports
yarn add -D @mattinton/prettier-plugin-tidy-imports
NOTE: This package requires prettier and typescript to be installed as peer dependencies.
Usage Warning
This plugin breaks Prettier's rule of only printing code as this plugin transforms your code by removing/sorting imports. If this concerns you please don't use this package.
Description from the npm listing.
- prettier
- typescript
- imports
- plugin
- sort
- unused
- prettier-plugin
- tidy-imports
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (544)Similar npm Prettier plugins plugins
All 20 @mattinton/prettier-plugin-tidy-imports alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/@mattinton/prettier-plugin-tidy-imports. First seen Oct 16, 2026; last successful collection Oct 22, 2026. See the methodology.