lint-staged
17.6.0 · 26 Sep 2026MIT26.8M / weekRepositoryHomepagenpmAtom feed
16.4.0 is the newest release of 16.x.
In short
3 fixed
Release note
Patch Changes
Lint-staged now explicitly warns about potential data loss when using
--no-stash.Function tasks (introduced in v16.0.0) only receive the staged files matching the configured glob, instead of all staged files.
This version fixes incorrect behavior where unstaged changes were committed when using the
--no-stashoption. This happened because--no-stashimplied--no-hide-partially-staged, meaning unstaged changes to files which also had other staged changes were added to the commit by lint-staged; this is no longer the case.The previous (incorrect) behavior can still be achieved by using both options
--no-stash --no-hide-partially-stagedat the same time.