# Install lint-staged with npm

Lint files staged by git. Version 17.0.7 via npm; verified 2026-06-20.

## Install

```sh
sudo av install npm:lint-staged
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g lint-staged
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:lint-staged
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/lint-staged>
- **Version:** 17.0.7
- **Source summary:** Lint files staged by git
- **Homepage:** <https://github.com/lint-staged/lint-staged#readme>
- **Repository:** <https://github.com/lint-staged/lint-staged>
- **Upstream docs:** <https://github.com/lint-staged/lint-staged#readme>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/lint-staged/-/lint-staged-17.0.7.tgz>
- **Issue tracker:** <https://github.com/lint-staged/lint-staged/issues>
- **Published:** 2026-05-31T10:49:39.894Z
- **Last updated:** 2026-06-20T19:37:47.480Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- lint-staged (cli)
- lint-staged (alias)

## Dependencies

- listr2
- picomatch
- string-argv
- tinyexec

## Build dependencies

- @changesets/changelog-github
- @changesets/cli
- @commitlint/cli
- @commitlint/config-conventional
- @eslint/js
- @vitest/coverage-istanbul
- @vitest/eslint-plugin
- consolemock
- cross-env
- eslint
- eslint-config-prettier
- eslint-plugin-n
- eslint-plugin-prettier
- eslint-plugin-simple-import-sort
- husky
- mock-stdin
- prettier
- semver
- vitest

## Install behavior

- Post-install hook: not defined
- Bottle: not available

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 17.0.7
- Package-manager updated: 2026-06-20
- Local data: ok
- Upstream repository: https://github.com/lint-staged/lint-staged
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for lint-staged. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Beta: 11.3.0-beta.2, Latest: 17.0.7, Next: 13.1.4
- **Version Count:** 289
- **Maintainers:** okonet, iiroj
- **Author:** Andrey Okonetchnikov
- **Publisher:** GitHub Actions
- **Engines:** Node: >=22.22.1
- **Optional Dependencies:** yaml
- **Funding:** <https://opencollective.com/lint-staged>
- **Integrity:** sha512-JrSobt+tW3rH8IOMi8tDZd3foorM5yPEkLD/V2NxobgHrFfHWGee4MOLVuZeScgxftEwbHrPHIFA/ZL+nUJeuA==
- **Shasum:** 2ed5ffb49d283425778125386278bb4d7ce24d22
- **Unpacked Size:** 157,724
- **File Count:** 0
- **Created At:** 2016-01-15T11:00:29.432Z
- **Latest Published At:** 2026-05-31T10:49:39.894Z
- **Modified At:** 2026-05-31T10:49:40.170Z

## Other Package-Manager Records

- Nix - lint-staged: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/lint-staged/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Matched curated package taxonomy and local package facts.
- [lint-prepush](https://www.automicvault.com/pkg/npm/lint-prepush/) - Package names and metadata indicate a similar tool family. Shared terms: files, git, lint.
- [nano-staged](https://www.automicvault.com/pkg/npm/nano-staged/) - Local package facts share a topical domain. Shared terms: eslint, files, git, lint, prettier.
- [pretty-quick](https://www.automicvault.com/pkg/npm/pretty-quick/) - Local package facts share a topical domain. Shared terms: code, git, picomatch, prettier, tinyexec.

## Sources

- Nucleus package database
- package-page enrichment
- package version freshness
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
