awesome-repositories.com
Blog
awesome-repositories.com

Descubre los mejores repositorios open-source con nuestra búsqueda potenciada por IA.

ExplorarBúsquedas curadasAlternativas open-sourceSoftware autohospedableBlogMapa del sitio
ProyectoAcerca deCómo clasificamosPrensaServidor MCP
Aviso legalPrivacidadTérminos
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
trivago avatar

trivago/prettier-plugin-sort-imports

0
View on GitHub↗
3,944 estrellas·162 forks·TypeScript·Apache-2.0·2 vistas

Prettier Plugin Sort Imports

This project is a Prettier plugin designed to alphabetize, group, and format module import statements in JavaScript and TypeScript files. It functions as an automated import organizer that ensures consistent declaration order and spacing across a project.

The plugin uses custom regular expression patterns to sequence dependency imports into logical groups, allowing for the separation of internal and external modules. It supports the preservation of side-effect imports and provides the ability to sort individual named members within a single declaration by string length or alphabetization.

Users can configure sorting behavior through case-sensitivity toggles and use comment markers to exclude specific files or statements from being reorganized. The tool also manages visual separation by inserting new lines between defined import groups.

Features

  • Prettier Plugins - Functions as an extension for the Prettier formatter to introduce custom import sorting and formatting rules.
  • Import Grouping - Categorizes import statements into logical blocks by matching declaration strings against custom regular expressions.
  • Automated Import Sorting - Uses a consistent rule set to arrange third party and internal modules automatically.
  • Import Organizers - Automatically sorts and manages JavaScript import statements to maintain a clean project structure.
  • Import Sorters - Provides an automated formatter that sequences dependency imports into groups using regular expressions.
  • Custom Sorting Patterns - Organizes import declarations based on custom regular expression patterns for third-party and builtin modules.
  • TypeScript Import Management - Organizes TypeScript imports into logical groups using regular expressions to improve readability.
  • Regex-Based Grouping - Sequences import statements into specific groups based on user-defined regular expressions.
  • AST-Based Code Manipulation - Implements import rearrangement by modifying the abstract syntax tree before the final code generation phase.
  • Formatting Opt-Out Mechanisms - Allows bypassing the import sorting process for specific files or statements using dedicated comment markers.
  • Import Exclusion Markers - Prevents the reorganization of imports in specific files or lines using dedicated comment markers.
  • Position Preservation - Maintains the original position of side-effect imports while sorting other declarations around them.
  • Declaration Sorting - Enforces alphabetical or length-based ordering of individual named imports within a single declaration block.
  • Specifier Sorting - Sorts individual named members within a single import declaration by string length or alphabetization.
  • JavaScript and TypeScript Formatting - Ensures consistent import declaration order and spacing across TypeScript project files.

Historial de estrellas

Gráfico del historial de estrellas de trivago/prettier-plugin-sort-importsGráfico del historial de estrellas de trivago/prettier-plugin-sort-imports

Búsqueda con IA

Explora más repositorios increíbles

Describe lo que necesitas en lenguaje sencillo: la IA clasifica miles de proyectos open-source curados por relevancia.

Start searching with AI

Preguntas frecuentes

¿Qué hace trivago/prettier-plugin-sort-imports?

This project is a Prettier plugin designed to alphabetize, group, and format module import statements in JavaScript and TypeScript files. It functions as an automated import organizer that ensures consistent declaration order and spacing across a project.

¿Cuáles son las características principales de trivago/prettier-plugin-sort-imports?

Las características principales de trivago/prettier-plugin-sort-imports son: Prettier Plugins, Import Grouping, Automated Import Sorting, Import Organizers, Import Sorters, Custom Sorting Patterns, TypeScript Import Management, Regex-Based Grouping.

¿Qué alternativas de código abierto existen para trivago/prettier-plugin-sort-imports?

Las alternativas de código abierto para trivago/prettier-plugin-sort-imports incluyen: pycqa/isort — isort is a Python import sorter and code formatter that organizes import statements into alphabetical groups and… nicklockwood/swiftformat — SwiftFormat is a tool for the Swift language that functions as a code formatter, linter, and refactoring utility. It… diffplug/spotless — Spotless is a multi-language formatting orchestrator and Gradle plugin that automates code styling across various… tailwindlabs/prettier-plugin-tailwindcss — This project is a Prettier plugin and Tailwind CSS class sorter that automatically organizes utility classes into a… databricks/scala-style-guide. concrete-utopia/utopia — Utopia is a development platform for building React components through a visual interface that synchronizes changes…

Alternativas open-source a Prettier Plugin Sort Imports

Proyectos open-source similares, clasificados según cuántas características comparten con Prettier Plugin Sort Imports.
  • pycqa/isortAvatar de PyCQA

    PyCQA/isort

    6,948Ver en GitHub↗

    isort is a Python import sorter and code formatter that organizes import statements into alphabetical groups and sections. It functions as both a utility to automatically rearrange imports for a consistent layout and as a linting tool to verify if code follows specific ordering rules. The project provides configurable layout settings for indentation, wrapping modes, and section ordering to ensure compliance with project style guides and PEP 8. It allows for the exclusion of specific lines or files through inline comments and docstrings. The tool integrates into development workflows via IDE

    Pythonauto-formattercleanercli
    Ver en GitHub↗6,948
  • nicklockwood/swiftformatAvatar de nicklockwood

    nicklockwood/SwiftFormat

    8,835Ver en GitHub↗

    SwiftFormat is a tool for the Swift language that functions as a code formatter, linter, and refactoring utility. It automatically applies consistent style rules and visual formatting to source files to ensure a uniform appearance across a project. The project differentiates itself by providing both a command-line interface for batch processing and an Xcode extension for integration directly into the development environment. It includes specialized capabilities for modernizing legacy API usage, simplifying language constructs, and inferring formatting options by analyzing an existing codebase

    Swift
    Ver en GitHub↗8,835
  • diffplug/spotlessAvatar de diffplug

    diffplug/spotless

    5,527Ver en GitHub↗

    Spotless is a multi-language formatting orchestrator and Gradle plugin that automates code styling across various programming languages within a single build pipeline. It functions as a coordinator for multiple third-party formatters, a code style linting tool, and a system for inserting and updating standardized license headers. The project distinguishes itself through git-integrated style enforcement, using pre-push hooks and git references to apply formatting only to modified files or lines. It supports shared build configurations, allowing formatting rules to be distributed and loaded acr

    Java
    Ver en GitHub↗5,527
  • tailwindlabs/prettier-plugin-tailwindcssAvatar de tailwindlabs

    tailwindlabs/prettier-plugin-tailwindcss

    7,010Ver en GitHub↗

    This project is a Prettier plugin and Tailwind CSS class sorter that automatically organizes utility classes into a consistent and recommended order. It functions as a frontend styling formatter and CSS utility organizer, removing duplicate classes and sorting style attributes across HTML and JavaScript files. The tool ensures consistent markup formatting by ordering utility classes within HTML attributes, template literals, JavaScript expressions, and custom framework props. It integrates with Tailwind CSS configuration files and stylesheets to synchronize sorting behavior with custom theme

    TypeScript
    Ver en GitHub↗7,010
Ver las 30 alternativas a Prettier Plugin Sort Imports→