lint-staged
17.6.0 · 26 Sep 2026MIT26.8M / weekRepositoryHomepagenpmAtom feed
16.4.0 is the newest release of 16.x.
In short
1 security3 fixed
- security
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 withchalkanddebug, which were also removed in the same version.
Release note
Patch Changes
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 stringand can't be mutated. Thanks @outslept!export default { --- "*": (files: string[]) => void console.log('staged files', files) +++ "*": (files: readonly string[]) => void console.log('staged files', files) }This version has been published from GitHub Actions using Trusted Publishing for npm packages.
Fix searching configuration files when the working directory is a subdirectory of a git repository, and there are
package.jsonfiles in the working directory. This situation might happen when running lint-staged for a single package in a monorepo.- security
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 withchalkanddebug, 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.