Packages

lint-staged

17.6.0 · 26 Sep 2026MIT26.8M / weekRepositoryHomepagenpmAtom feed

Upgrading lint-staged from 17.5.0 to 17.6.0

2 releases in betweenevery note read

0
changes to make
0
advisories fixed
2
new
5
fixes

Release by release

  1. 17.6.0

    26 Sep 20262 new · 4 fixes
    • new

      Task functions like { title, task } can now use a logger function log() to emit output while the task runs. By default, the output will only be visible if the task fails, unless the --verbose option was used. Additionally, when the task rejects, the error will be shown in the output.

    • new

      lint-staged now stages changes to all tracked files modified by tasks, including files that weren’t originally staged or didn’t match the configured globs. This can happen when your task has side-effects, or it's a function that ignores the staged files like () => "prettier --write .".

    • fixed

      The assignment of staged files to lint-staged configuration files (when using multiple, for example in a monorepo) has been rewritten to be more efficient. As a reminder, each staged file is assigned to exactly one configuration (the closest one), even if that config doesn't match the file in its globs.

    • fixed

      Fix running parallel tasks for a single glob, when tasks are created by a function. Nesting one level of arrays inside an array of tasks will result in the inner tasks running in parallel. This behavior should now be consistent when creating tasks using functions. In the following example eslint and prettier will run in parallel (for all files, when any JS files are staged):

    • fixed

      Various performance improvements from skipping redundant internal Git calls.

    • fixed

      Partially staged changes are hidden in a uniquely-named patch file to avoid multiple invocations of lint-staged overwriting it. This makes it safer to run lint-staged in multiple worktrees at the same time.

  2. 17.5.1

    10 Sep 20261 fix
    • fixed

      Fix TypeScript issue TS1254 from defineConfig() by changing the signature from const to a function: