Download Latest Version v16.2.3 source code.tar.gz (1.9 MB)
Email in envelope

Get an email when there's a new version of lint-staged

Home / v16.2.1
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2025-09-25 2.3 kB
v16.2.1 source code.tar.gz 2025-09-25 1.9 MB
v16.2.1 source code.zip 2025-09-25 1.9 MB
Totals: 3 Items   3.8 MB 0

Patch Changes

  • #1664 8277b3b Thanks @iiroj! - The built-in TypeScript types have been updated to more closely match the implementation. Notably, the list of staged files supplied to task functions is readonly string[] and can't be mutated. Thanks @outslept!

    diff export default { --- "*": (files: string[]) => void console.log('staged files', files) +++ "*": (files: readonly string[]) => void console.log('staged files', files) }

  • #1654 70b9af3 Thanks @iiroj! - This version has been published from GitHub Actions using Trusted Publishing for npm packages.

  • #1659 4996817 Thanks @iiroj! - Fix searching configuration files when the working directory is a subdirectory of a git repository, and there are package.json files in the working directory. This situation might happen when running lint-staged for a single package in a monorepo.

  • #1654 7021f0a Thanks @iiroj! - Return the caret semver range (^) to direct dependencies so that future patch and minor versions are allowed. This enables projects to better maintain and deduplicate their own transitive dependencies while not requiring direct updates to lint-staged. This was changed in 16.2.0 after the vulnerability issues with chalk and debug, which were also removed in the same version.

    Given the recent vulnerabilities in the npm ecosystem, it's best to be very careful when updating dependencies.

Source: README.md, updated 2025-09-25