Skip to content

Instantly share code, notes, and snippets.

View Acetoshi's full-sized avatar
🎯
Focusing

David LE GALL Acetoshi

🎯
Focusing
View GitHub Profile
@phatnguyenuit
phatnguyenuit / how-to-sort-imports-like-a-pro.md
Last active October 24, 2025 09:17
How to sort imports like a pro in TypeScript

How to sort imports like a pro in TypeScript

Crossing reviews becomes a very common activity today in engineering behavior. To help us review changes for pull/merge requests easier, sorting imports can help us a much. The codebase becomes more professional and more consistent, reviewers will be happier, and the review process will be faster, focusing on the implementation changes ONLY.

Have you ever thought about how to sort imports in TypeScript projects automatically?

Let me show you how to archive sorting imports automatically in TypeScript projects with ESLint!