lint-staged
17.6.0 · 26 Sep 2026MIT26.8M / weekRepositoryHomepagenpmAtom feed
Upgrading lint-staged from 16.4.0 to 17.0.0
1 release in betweenevery note read
- 4
- changes to make
- 0
- advisories fixed
- 2
- new
- 3
- fixes
Start here
Before you upgrade
Tick each one off as you go- breaking17.0.0
- breaking17.0.0
- breaking17.0.0
- breaking17.0.0
Release by release
- new
Add new option
--hide-allfor hiding all unstaged changes and untracked files, before running tasks. This makes it easier to run tools like Knip which check for unused code. Untracked files are included in the backup stash and restored automatically after running. - new
Lint-staged now runs
git update-index --againafter running tasks, instead ofgit add <originally staged files>. This should improve compatibility when using non-default indexes, for example when committing with a pathspecgit commit -m "message" .instead of adding files to the index. - fixed
All tests now pass on the Bun runtime (latest).
- fixed
Remove manual handling for
git stash --keep-indexresurrecting deleted files, because the issue was fixed in Git2.23.0and lint-staged requires at least Git2.32.0. - fixed
Fix documentation about multiple config files and the
--cwdoption. When using it, all tasks will be run in the specified directory. For example, to run everything in the actualprocess.cwd(), uselint-staged --cwd=".".
- new
1 internal line (docs, tests, tooling) left out.