qmetrics.net

lint-staged

Git pre-commit runner for linters on staged files only

Node package that runs configured shell tasks against git-staged paths matching globs, often wired through pre-commit hooks. Scopes formatters and linters to files about to be committed.

Overview

lint-staged is a tool for running code-quality commands only on files you have staged for commit, instead of scanning an entire repository. That keeps pre-commit checks faster and avoids unrelated linter noise when a task is opinionated.

It resolves the git root, collects staged paths, filters them with picomatch glob patterns, and passes absolute file paths as arguments to each configured command. Configuration can live in package.json, dedicated JSON or YAML rc files, or JavaScript modules with default exports; monorepos can place configs per package so the nearest file wins.

Tasks for different globs can run concurrently by default, with array syntax to sequence multiple commands on the same file set. CLI flags adjust behavior for CI, diffs between branches, concurrency limits, stash backups before mutations, hiding partial unstaged hunks, and whether successful task edits are re-staged automatically.

Typical setup pairs the package with a pre-commit hook manager so teammates share the same workflow through version-controlled package and hook files. Supported commands include arbitrary shell strings, npm scripts, and custom functions with TypeScript typing helpers available.

Key features

  • Runs tasks only on git-staged files
  • Glob-based command mapping via picomatch
  • JSON, YAML, or JS configuration files
  • Concurrent or ordered multi-command runs
  • Git stash backup before task edits
  • Monorepo-friendly per-directory configs
  • Branch diff and CI-oriented CLI flags
  • TypeScript types for Node API

Use cases

  • ESLint on staged JavaScript before commit
  • Prettier only on changed files in hooks
  • Monorepo package-scoped lint rules
  • CI runs against full tree with --all
  • Prevent empty commits when tasks revert changes

Tags

Similar software

Playwright

Cross-browser web automation and testing framework

Playwright drives Chromium, Firefox, and WebKit through one API for tests, scripts, and agent-driven browser control.

★ 101.2k⟳ yesterdayApache-2.0

Puppeteer

JavaScript library for automating Chrome and Firefox

Puppeteer exposes a high-level JavaScript API to drive Chrome or Firefox through the DevTools Protocol or WebDriver BiDi. It defaults to headless browser control for scripts and tests.

★ 95.9k⟳ yesterdayApache-2.0

Storybook

Isolated workshop for UI components and pages

Storybook runs a local dev workshop where teams build, test, and document components in isolation. It integrates with major frontend frameworks and addons for docs, accessibility, visual review, and agent tooling.

★ 91.7k⟳ todayMIT

act

Local runner for GitHub Actions workflows

A command-line tool that executes GitHub Actions workflows on your machine using Docker. It mirrors GitHub’s environment for faster feedback while editing workflow files.

★ 72.8k⟳ 12 days agoMIT
Build & DeploymentDesktop/CLI app

Chrome DevTools MCP

MCP and CLI bridge from coding agents to Chrome DevTools

Lets coding agents control and inspect a live Chrome session for automation, debugging, performance traces, and Lighthouse-style checks.

★ 59.6k⟳ todayApache-2.0

Shannon

Autonomous AI penetration tester for web apps and APIs

Shannon analyzes web application source code, plans attack paths, and runs real exploits against staging targets. Only vulnerabilities confirmed with a working proof of concept appear in reports.

★ 52.4k⟳ 2 days agoAGPL-3.0
Open Source Alternative to:XBOW