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

Découvrez les meilleurs dépôts open-source grâce à notre recherche par IA.

ExplorerRecherches sélectionnéesAlternatives open sourceLogiciels auto-hébergésBlogPlan du site
ProjetÀ proposNotre méthodologiePresseServeur MCP
Mentions légalesConfidentialitéConditions d'utilisation
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
okonet avatar

okonet/lint-staged

0
View on GitHub↗
14,669 stars·464 forks·JavaScript·MIT·7 vueswww.npmjs.com/package/lint-staged↗

Lint Staged

lint-staged is a git pre-commit task runner that executes linters and formatters specifically on files staged in git. It functions as a staged file filter and a monorepo task orchestrator, identifying the correct configuration and working directory for files across multiple packages in a repository.

The system automatically adds formatting changes back to the git stage after a successful task run. It uses a mechanism to match files in the git index against glob patterns to determine which tasks to execute and can automatically update git indices after formatting.

The project covers sequential command execution and concurrency control to prevent race conditions. It includes capabilities for git revision analysis, JavaScript-based configuration, and working state protection to prevent data loss during automated tasks.

Features

  • Staged File Processors - Executes commands like linters or formatters exclusively against files currently staged in Git.
  • Commit-Integrated Formatters - Automatically adds formatting changes back to the Git stage after a successful task run.
  • Code Formatting Tools - Automatically applies formatting changes to files during the commit process to maintain consistent style.
  • Staged Modification Integrators - Automatically re-stages files modified by formatters to ensure formatting changes are included in the current commit.
  • Automated Index Modifiers - Automatically adds modifications from formatting tools back to the current commit if tools finish without errors.
  • Staged File Indexers - Identifies modified files by querying the Git index to limit task execution to staged changes only.
  • Monorepo Orchestration Tools - Identifies the correct configuration and working directory for files across multiple packages in a monorepo.
  • Pre-Commit Quality Hooks - Runs linters and formatters only on staged files to ensure code quality before committing to a Git repository.
  • Staged-File Task Runners - Executes linters and formatters specifically on files staged in Git before they are committed.
  • Glob Pattern Selectors - Matches staged files against glob patterns to determine which specific files are passed as arguments to tasks.
  • JavaScript-Configurable Automation Frameworks - Allows defining complex task logic and custom file matching through JavaScript functions instead of static glob patterns.
  • Monorepo Hook Execution - Locates the nearest configuration file for a staged file and executes tasks within that specific package directory.
  • Task Concurrency Control - Executes tasks in parallel or serially to prevent race conditions when multiple tools edit the same files.
  • Sequential Task Execution - Executes a chain of commands in a specific order and halts the pipeline if any single task fails.
  • Working Tree Management - Backs up the repository state and hides unstaged changes to ensure tools only modify intended files.
  • Working Tree Protections - Backs up the repository and hides unstaged changes before running tasks to prevent data loss or accidental commits.
  • Dynamic Configuration Evaluators - Resolves task definitions by executing JavaScript functions that calculate configuration objects at runtime based on staged files.
  • Hierarchical Configuration Lookups - Searches upward from staged files to the nearest configuration file to support independent settings in monorepos.
  • Quality Gates - Prevents buggy or unformatted code from entering the version control system by automating checks before the final commit.
  • Build And Automation - Run linters on staged git files to ensure code quality.
  • Outils de qualité de code - Runs linters on staged Git files.

Historique des stars

Graphique de l'historique des stars pour okonet/lint-stagedGraphique de l'historique des stars pour okonet/lint-staged

Recherche par IA

Explorez plus de dépôts awesome

Décrivez vos besoins en langage naturel — l'IA classe des milliers de projets open source sélectionnés par pertinence.

Start searching with AI

Questions fréquentes

Que fait okonet/lint-staged ?

lint-staged is a git pre-commit task runner that executes linters and formatters specifically on files staged in git. It functions as a staged file filter and a monorepo task orchestrator, identifying the correct configuration and working directory for files across multiple packages in a repository.

Quelles sont les fonctionnalités principales de okonet/lint-staged ?

Les fonctionnalités principales de okonet/lint-staged sont : Staged File Processors, Commit-Integrated Formatters, Code Formatting Tools, Staged Modification Integrators, Automated Index Modifiers, Staged File Indexers, Monorepo Orchestration Tools, Pre-Commit Quality Hooks.

Quelles sont les alternatives open-source à okonet/lint-staged ?

Les alternatives open-source à okonet/lint-staged incluent : lint-staged/lint-staged — Lint-staged is a command-line utility designed to automate code quality checks and formatting tasks within a Git… sds/overcommit — Overcommit is a Git hook manager and pre-commit validation framework designed to automate the execution of scripts and… j178/prek — Prek is a Git hook manager written in Rust that runs configured hooks as a single binary without requiring Python or… nicklockwood/swiftformat — SwiftFormat is a tool for the Swift language that functions as a code formatter, linter, and refactoring utility. It… treeverse/lakefs — lakeFS is a data lake versioning system that provides Git-like branching and commits for large datasets stored in… pylint-dev/pylint — Pylint is a static code analyzer for Python that scans source code for errors, coding standard violations, code…

Alternatives open source à Lint Staged

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec Lint Staged.
  • lint-staged/lint-stagedAvatar de lint-staged

    lint-staged/lint-staged

    14,460Voir sur GitHub↗

    Lint-staged is a command-line utility designed to automate code quality checks and formatting tasks within a Git repository. It functions as a pre-commit hook runner that executes defined operations exclusively on files currently staged for commit, ensuring that only code meeting project standards is permanently saved. The tool distinguishes itself by providing granular control over the development workflow through file filtering and task orchestration. It uses glob-pattern matching to isolate specific file types and executes sequences of shell commands in a strict order. To maintain reposito

    JavaScriptdeveloper-experienceeslintgit
    Voir sur GitHub↗14,460
  • sds/overcommitAvatar de sds

    sds/overcommit

    4,008Voir sur GitHub↗

    Overcommit is a Git hook manager and pre-commit validation framework designed to automate the execution of scripts and checks during various Git events. It serves as a workflow automation tool that ensures code quality and project standards are met before changes are committed or pushed to a remote repository. The system distinguishes itself through a comprehensive YAML-based configuration that allows for detailed hook behavior control, including file execution filtering, conditional skipping, and the management of hook dependencies. It provides specialized roles such as a commit message vali

    Ruby
    Voir sur GitHub↗4,008
  • j178/prekAvatar de j178

    j178/prek

    6,297Voir sur GitHub↗

    Prek is a Git hook manager written in Rust that runs configured hooks as a single binary without requiring Python or other external runtimes. It executes hooks faster than standard tools through parallel processing and bundled Rust implementations, and includes a built-in hook repository that enables fully offline operation without network access or environment setup. The tool supports both TOML and YAML configuration formats with identical semantics, and can run hooks from existing pre-commit configuration files without modification. Prek distinguishes itself through workspace-aware monorepo

    Rustgitgit-hookspre-commit
    Voir sur GitHub↗6,297
  • nicklockwood/swiftformatAvatar de nicklockwood

    nicklockwood/SwiftFormat

    8,835Voir sur 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
    Voir sur GitHub↗8,835
  • Voir les 30 alternatives à Lint Staged→