awesome-repositories.com
Blog
MCP
awesome-repositories.com

Entdecke die besten Open-Source-Repositories mit KI-gestützter Suche.

EntdeckenKuratierte SuchenOpen-Source-AlternativenSelf-hosted SoftwareBlogSitemap
ProjektÜber unsRanking-MethodikPresseMCP-Server
RechtlichesDatenschutzAGB
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
trivago avatar

trivago/prettier-plugin-sort-imports

0
View on GitHub↗
3,944 Stars·162 Forks·TypeScript·Apache-2.0·2 Aufrufe

Prettier Plugin Sort Imports

Dieses Projekt ist ein Prettier-Plugin, das darauf ausgelegt ist, Modul-Import-Statements in JavaScript- und TypeScript-Dateien alphabetisch zu sortieren, zu gruppieren und zu formatieren. Es fungiert als automatisierter Import-Organizer, der eine konsistente Deklarationsreihenfolge und Abstände über ein Projekt hinweg sicherstellt.

Das Plugin verwendet benutzerdefinierte reguläre Ausdrucksmuster, um Abhängigkeitsimporte in logische Gruppen zu sequenzieren, was die Trennung interner und externer Module ermöglicht. Es unterstützt die Beibehaltung von Side-Effect-Importen und bietet die Möglichkeit, einzelne benannte Mitglieder innerhalb einer Deklaration nach String-Länge oder Alphabet zu sortieren.

Benutzer können das Sortierverhalten über Case-Sensitivity-Toggles konfigurieren und Kommentar-Marker verwenden, um spezifische Dateien oder Statements von der Neuordnung auszuschließen. Das Tool verwaltet zudem die visuelle Trennung durch das Einfügen neuer Zeilen zwischen definierten Importgruppen.

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.

Star-Verlauf

Star-Verlauf für trivago/prettier-plugin-sort-importsStar-Verlauf für trivago/prettier-plugin-sort-imports

KI-Suche

Entdecke weitere awesome Repositories

Beschreibe in einfachen Worten, was du brauchst — die KI bewertet tausende kuratierte Open-Source-Projekte nach Relevanz.

Start searching with AI

Häufig gestellte Fragen

Was macht trivago/prettier-plugin-sort-imports?

Dieses Projekt ist ein Prettier-Plugin, das darauf ausgelegt ist, Modul-Import-Statements in JavaScript- und TypeScript-Dateien alphabetisch zu sortieren, zu gruppieren und zu formatieren. Es fungiert als automatisierter Import-Organizer, der eine konsistente Deklarationsreihenfolge und Abstände über ein Projekt hinweg sicherstellt.

Was sind die Hauptfunktionen von trivago/prettier-plugin-sort-imports?

Die Hauptfunktionen von trivago/prettier-plugin-sort-imports sind: Prettier Plugins, Import Grouping, Automated Import Sorting, Import Organizers, Import Sorters, Custom Sorting Patterns, TypeScript Import Management, Regex-Based Grouping.

Welche Open-Source-Alternativen gibt es zu trivago/prettier-plugin-sort-imports?

Open-Source-Alternativen zu trivago/prettier-plugin-sort-imports sind unter anderem: 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…

Open-Source-Alternativen zu Prettier Plugin Sort Imports

Ähnliche Open-Source-Projekte, sortiert nach der Anzahl der gemeinsamen Funktionen mit Prettier Plugin Sort Imports.
  • pycqa/isortAvatar von PyCQA

    PyCQA/isort

    6,948Auf GitHub ansehen↗

    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
    Auf GitHub ansehen↗6,948
  • nicklockwood/swiftformatAvatar von nicklockwood

    nicklockwood/SwiftFormat

    8,835Auf GitHub ansehen↗

    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
    Auf GitHub ansehen↗8,835
  • diffplug/spotlessAvatar von diffplug

    diffplug/spotless

    5,527Auf GitHub ansehen↗

    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
    Auf GitHub ansehen↗5,527
  • tailwindlabs/prettier-plugin-tailwindcssAvatar von tailwindlabs

    tailwindlabs/prettier-plugin-tailwindcss

    7,010Auf GitHub ansehen↗

    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
    Auf GitHub ansehen↗7,010
  • Alle 30 Alternativen zu Prettier Plugin Sort Imports anzeigen→