Packages

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

Other targets from 16.4.0Latest17.6.0

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

  1. 17.0.0

    6 May 20262 new · 3 fixes
    • new

      Add new option --hide-all for 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 --again after running tasks, instead of git add <originally staged files>. This should improve compatibility when using non-default indexes, for example when committing with a pathspec git 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-index resurrecting deleted files, because the issue was fixed in Git 2.23.0 and lint-staged requires at least Git 2.32.0.

    • fixed

      Fix documentation about multiple config files and the --cwd option. When using it, all tasks will be run in the specified directory. For example, to run everything in the actual process.cwd(), use lint-staged --cwd=".".

1 internal line (docs, tests, tooling) left out.