# Presenting @trivago/prettier-plugin-sort-imports

DevFeed: [Presenting @trivago/prettier-plugin-sort-imports](<https://devfeed.tech/articles/presenting-trivago-prettier-plugin-sort-imports-28016.md>)

Original publisher: [Read original article](<https://tech.trivago.com/post/2021-12-17-aprettierpluginthatsortsyourimports/>)

Author: Ayush Sharma Software Engineer; Learner; Open Source Enthusiast Follow

Published: 2021-12-17T00:00:00Z

Content type: tutorial

Language: en

Sources: [Trivago](<https://devfeed.tech/sources/trivago.md>)

Topics: [Prettier](<https://devfeed.tech/topics/prettier.md>), [import](<https://devfeed.tech/topics/import.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [TypeScript](<https://devfeed.tech/topics/typescript.md>), [modules](<https://devfeed.tech/topics/modules.md>), [formatting](<https://devfeed.tech/topics/formatting.md>)

Tags: [article](<https://devfeed.tech/tags/article.md>), [formatting](<https://devfeed.tech/tags/formatting.md>), [frontend](<https://devfeed.tech/tags/frontend.md>), [import](<https://devfeed.tech/tags/import.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [modules](<https://devfeed.tech/tags/modules.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [plugin](<https://devfeed.tech/tags/plugin.md>), [typescript](<https://devfeed.tech/tags/typescript.md>)

## AI overview

trivago released @trivago/prettier-plugin-sort-imports, a Prettier plugin that sorts TypeScript and JavaScript import declarations according to a configured order. The article explains its motivation, configuration, and handling of third-party and local modules.

## Source excerpt

I'm happy to share that trivago has released a Prettier plugin which sorts import declarations in TypeSCript and JavaScript modules for a given configured order. Throughout this article, I'll explain to you the motivation behind this Prettier plugin and how it works in detail.