prettier-plugin-one-line-imports

JSON →
library 1.0.3 ·javascript
verified May 27, 2026

Prettier plugin (v1.0.3) that forces TypeScript imports to remain on a single line, overriding Prettier's default multi-line import formatting. Requires Prettier >=3.0.0. It preserves comments inside imports by keeping them multi-line. Installation requires adding the plugin to the Prettier plugins array in config. Ships with TypeScript types. Release cadence: sporadic bug fixes. Key differentiator: solves an age-old Prettier issue (GitHub #5995) by offering a simple override without configuration options.

total hits 21
actors 8 distinct systems
last hit 2d ago AhrefsBot
Amazonbot
4
MetaBot
4
GPTBot
2
Script
1
ClaudeBot
1
Search engines
1
Humans
2

top countries 🇺🇸 United States · 🇳🇴 Norway · 🇨🇦 Canada · 🇸🇬 Singapore · 🇩🇪 Germany